/* ================================================================
   site.css — «Звёздное небо», редакция «Apple», октябрь 2026
   ----------------------------------------------------------------
   Принципы (из дизайн-докладов Apple WWDC, переложенные на веб):
   • Системный шрифт (SF Pro на iPhone/Mac, Segoe UI на Windows).
     Крупные заголовки — плотнее (отрицательный трекинг), текст — свободнее.
   • Спокойная палитра: белый / светло-серый / чёрный. Золото — только акцент.
   • Шапка и панели — «стекло»: полупрозрачный слой с размытием,
     страница прокручивается под ним.
   • Отклик мгновенный: кнопка сжимается в момент нажатия, а не после.
   • Движение — пружинами без «отскока» (критическое затухание),
     отскок только там, где был бросок пальцем.
   • Тёмная тема — чёрный фон, плитки чуть светлее.
   ================================================================ */

/* Фирменный шрифт лежит на самом сайте (без загрузки с Google — быстрее и без передачи данных посетителей) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/cormorant-garamond-600.woff2') format('woff2');
}

:root {
  /* фон страницы, фон плиток, фон панелей (форма, окна), фон полей ввода */
  --paper: #ffffff;
  --raised: #f5f5f7;
  --panel: #ffffff;
  --field: #f5f5f7;
  --ink: #1d1d1f;
  --accent: #d4af37;          /* золото «Звёздного неба» */
  --accent-ink: #806010;      /* золото для мелкого текста на светлом — контраст ≥4.5 даже на сером */
  --accent-hover: #dfbe4f;
  --on-accent: #1d1d1f;
  --gold-text: linear-gradient(180deg, #c99a2e 0%, #a77d1c 100%);

  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Фирменный шрифт названия — классическая антиква с тонкими засечками */
  --brand: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  /* старые имена — указывают на новые шрифты */
  --serif: var(--display);

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --r-tile: 28px;
  --r-card: 20px;
  --head-h: 52px;

  /* Пружины без отскока (Apple: damping 1.0). Длительность подобрана под «response». */
  --spring: cubic-bezier(.22, 1, .36, 1);
  --spring-bounce: cubic-bezier(.34, 1.36, .64, 1);
  --ease: var(--spring);
  --soft: cubic-bezier(.45, 0, .2, 1);

  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.0575, 0.1804, 0.3209, 0.4553, 0.5731, 0.6712, 0.7502, 0.8123, 0.8602, 0.8967, 0.9241, 0.9445, 0.9597, 0.9708, 0.9789, 0.9848, 0.9891, 0.9922, 0.9945, 0.996, 0.9972, 0.998, 0.9986, 1);
    --spring-bounce: linear(0, 0.018, 0.0647, 0.1305, 0.2081, 0.2915, 0.3762, 0.4591, 0.5377, 0.6106, 0.6768, 0.7359, 0.7879, 0.8328, 0.8712, 0.9034, 0.9301, 0.9519, 0.9694, 0.9831, 0.9936, 1.0015, 1.0071, 1.011, 1.0134, 1.0147, 1.0152, 1.015, 1.0143, 1.0133, 1.0122, 1.0109, 1.0096, 1.0084, 1.0072, 1.0061, 1.005, 1.0041, 1.0033, 1.0026, 1);
  }
}

/* Тёмная тема: глубокий графитовый фон (не чисто чёрный), плитки чуть светлее */
html[data-theme="dark"] {
  --paper: #121317;
  --raised: #1b1c21;
  --panel: #23242a;
  --field: #2f3037;
  --ink: #f5f5f7;
  --accent-ink: #e3c460;
  --gold-text: linear-gradient(180deg, #f6e2a4 0%, #d4af37 100%);
  color-scheme: dark;
}

/* «Ночные» блоки (первый экран, удобства, финал) — тёмные при любой теме */
.theme-night {
  --paper: #121317;
  --raised: #1b1c21;
  --panel: #23242a;
  --field: #2f3037;
  --ink: #f5f5f7;
  --accent-ink: #e3c460;
  --gold-text: linear-gradient(180deg, #f6e2a4 0%, #d4af37 100%);
  color-scheme: dark;
  background-color: var(--paper);
  color: var(--ink-80);
}

/* Производные оттенки — пересчитываются и внутри «ночных» блоков */
:root, .theme-night, html[data-theme="dark"] {
  --ink-80: color-mix(in srgb, var(--ink) 82%, var(--paper));
  --ink-60: color-mix(in srgb, var(--ink) 58%, var(--paper));
  --ink-40: color-mix(in srgb, var(--ink) 40%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 11%, var(--paper));
  --line-strong: color-mix(in srgb, var(--ink) 22%, var(--paper));
  --on-ink: var(--paper);
  --glass: color-mix(in srgb, var(--paper) 72%, transparent);
  /* старые имена из прошлого дизайна (встроенные стили страниц) */
  --primary-gold: var(--accent);
  --dark-gold: var(--accent-ink);
  --light-gold: #f0e68c;
  --white: var(--paper);
  --light-gray: var(--raised);
  --dark-gray: var(--ink);
  --text-gray: var(--ink-60);
  --on-gold: var(--on-accent);
}

[hidden] { display: none !important; }

/* ================================================================
   БАЗА И ТИПОГРАФИКА
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--paper); color: var(--ink-80);
  font-family: var(--sans); font-size: 17px; line-height: 1.47; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { color: inherit; font-family: inherit; }

/* Заголовки: чем крупнее — тем плотнее буквы и строки */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 600; font-optical-sizing: auto; }
h1 { font-size: clamp(44px, 7vw, 96px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -.03em; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.16; letter-spacing: -.02em; }
h4 { font-size: 19px; line-height: 1.25; letter-spacing: -.016em; }
p { margin: 0 0 1em; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }

/* Подпись над заголовком — золотом, обычными буквами */
.eyebrow { display: block; margin-bottom: 10px; font: 600 clamp(17px, 1.6vw, 21px)/1.2 var(--display); letter-spacing: -.01em; color: var(--accent-ink); }
.eyebrow .idx { display: none; }

/* Ссылка «Подробнее ›» */
.more-link, .rooms-compare, .hero-alt a, .gal-more { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-ink); font-weight: 400; text-decoration: none; }
.more-link::after, .rooms-compare::after, .hero-alt a::after, .gal-more::after { content: '›'; margin-left: 4px; font-size: 1.15em; line-height: 1; transition: transform .35s var(--spring); }
.more-link:hover, .rooms-compare:hover, .hero-alt a:hover, .gal-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link:hover::after, .rooms-compare:hover::after, .hero-alt a:hover::after, .gal-more:hover::after { transform: translateX(3px); }

.mono { font-size: 13px; color: var(--ink-60); }
.caps { font-weight: 600; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scroll-fade { opacity: 1; transform: none; }

/* Разделы: фон во всю ширину, содержимое — по центру */
section {
  position: relative; max-width: none; margin: 0;
  padding: clamp(64px, 9vw, 120px) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 0;
}
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head h2 + p, .section-head h2 + a { margin-top: 16px; }
.section-head p { margin-left: auto; margin-right: auto; max-width: 560px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-60); }

/* ================================================================
   КНОПКИ — «пилюли». Отклик в момент нажатия.
   ================================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border: 0; border-radius: 980px;
  background: var(--accent); color: var(--on-accent);
  font: 500 16px/1.2 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .45s var(--spring);
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-ghost, .btn-outline {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover, .btn-outline:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.btn-outline { color: var(--accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-ink); }
.btn-large { width: 100%; min-height: 56px; font-size: 17px; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 15px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Мгновенный отклик на нажатие: элемент чуть «проседает» под пальцем */
.btn:active, .header-cta:active, .chip:active, .quiz-opt:active, .route-btn:active, .rp-card:active, .dp-chip:active, .stepper button:active, .cg-arrow:active, .close-btn:active {
  transform: scale(.96); transition: transform .08s ease-out;
}
.card:active { transform: scale(.985); transition: transform .1s ease-out; }

/* ================================================================
   ШАПКА — стеклянный слой, страница прокручивается под ним
   ================================================================ */
header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  height: var(--head-h); margin-bottom: calc(var(--head-h) * -1);
  padding: 0 max(var(--gutter), calc((100% - 1240px) / 2));
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .5s ease, box-shadow .5s ease;
}
header.is-scrolled:not(.theme-night) { box-shadow: 0 1px 0 var(--line); }
header.theme-night { --glass: rgba(27, 28, 33, .62); }

.logo { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo-star { width: 15px; height: 15px; flex-shrink: 0; fill: var(--accent); }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text { font: 600 21px/1 var(--brand); letter-spacing: 0; }
.logo-sub { display: none; }
/* Логотип ведёт на главную: звезда вспыхивает и поворачивается, надпись золотится */
.logo-star { transition: transform .7s var(--spring), filter .4s ease; }
.logo-text { transition: color .3s ease; }
.logo:hover .logo-star, .logo:focus-visible .logo-star { transform: rotate(90deg) scale(1.25); filter: drop-shadow(0 0 6px rgba(212, 175, 55, .9)); }
.logo:hover .logo-text, .logo:focus-visible .logo-text { color: var(--accent-ink); }
.logo:active .logo-star { transform: rotate(90deg) scale(1.05); transition-duration: .15s; }
/* внутренние страницы: стрелка «назад» перед звездой и подпись «на главную» при наведении */
.logo-inner { position: relative; }
.logo-back { width: 8px; height: 8px; margin: 0 2px 0 1px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: rotate(45deg); opacity: .55; flex-shrink: 0; transition: transform .45s var(--spring), opacity .3s ease; }
.logo-inner:hover .logo-back, .logo-inner:focus-visible .logo-back { transform: translateX(-3px) rotate(45deg); opacity: 1; }
.logo-words { position: relative; }
.logo-home { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; font: 600 15px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; color: var(--accent-ink); opacity: 0; transform: translateY(70%); transition: opacity .25s ease, transform .45s var(--spring); pointer-events: none; }
/* при наведении «Звёздное небо» уезжает вверх, на его место въезжает «На главную» — всё внутри капсулы */
.logo-inner .logo-words { overflow: hidden; }
.logo-inner .logo-text { display: block; transition: transform .45s var(--spring), opacity .25s ease, color .3s ease; }
@media (hover: hover) { .logo-inner:hover .logo-home { opacity: 1; transform: none; } .logo-inner:hover .logo-text { opacity: 0; transform: translateY(-70%); } }
.logo-inner:focus-visible .logo-home { opacity: 1; transform: none; }
.logo-inner:focus-visible .logo-text { opacity: 0; transform: translateY(-70%); }
@media (prefers-reduced-motion: reduce) { .logo-star, .logo-back, .logo-home { transition: none; } }

header nav { display: flex; align-items: center; gap: 26px; }
header nav a, .nav-more summary { color: var(--ink-80); font-size: 13.5px; letter-spacing: -.005em; text-decoration: none; transition: color .3s ease; white-space: nowrap; }
header nav a:hover, header nav a.active, .nav-more summary:hover, .nav-more.has-active summary { color: var(--ink); text-decoration: none; }
header nav a.active { font-weight: 600; }

.nav-more { position: relative; }
.nav-more summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; user-select: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ''; width: 5px; height: 5px; margin-top: -3px; border: solid currentColor; border-width: 0 1.2px 1.2px 0; transform: rotate(45deg); transition: transform .45s var(--spring); }
.nav-more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.nav-more-list {
  position: absolute; top: calc(100% + 18px); right: -18px; z-index: 50;
  display: flex; flex-direction: column; min-width: 220px; padding: 8px;
  border-radius: 16px; background: color-mix(in srgb, var(--panel) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 0 0 .5px var(--line), 0 20px 50px -12px rgba(0, 0, 0, .28);
  transform-origin: calc(100% - 40px) 0;
  animation: popIn .45s var(--spring);
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.nav-more-list a { padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.nav-more-list a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }

.phone { color: var(--ink); font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.phone:hover { color: var(--ink); text-decoration: none; }
.header-cta {
  display: inline-flex; align-items: center; min-height: 30px; padding: 5px 14px; border-radius: 980px;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .3s ease, transform .45s var(--spring);
}
.header-cta:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }

/* Переключатель темы: солнце катится по дорожке и становится луной */
.theme-toggle {
  --track: color-mix(in srgb, var(--ink) 10%, var(--paper));
  position: relative; flex-shrink: 0; width: 44px; height: 24px; padding: 0;
  border: 0; border-radius: 999px; background: var(--track); cursor: pointer;
  box-shadow: inset 0 0 0 .5px var(--line-strong);
  transition: background-color .9s var(--soft), box-shadow .4s ease;
  view-transition-name: theme-toggle;
}
html[data-theme="dark"] .theme-toggle { --track: #2c2c2e; }
.theme-toggle:hover { box-shadow: inset 0 0 0 .5px var(--line-strong), 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.theme-toggle .tstars { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff4cc; opacity: 0; transition: opacity .4s; }
html[data-theme="dark"] .theme-toggle .tstars { opacity: .8; transition: opacity .8s ease .6s; }
.theme-toggle .tstars circle:nth-child(3) { display: none; }
.theme-toggle .knob { --x: 0px; --rot: -150deg; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; transform: translateX(var(--x)) rotate(var(--rot)); transition: transform .8s var(--spring); }
html[data-theme="dark"] .theme-toggle .knob { --x: 20px; --rot: 0deg; }
.theme-toggle .rays { position: absolute; left: -4px; top: -4px; width: 26px; height: 26px; fill: none; stroke: #d4af37; stroke-width: 1.3; stroke-linecap: round; transform-origin: 50% 50%; transform: scale(.85); transition: transform .7s var(--spring) .3s, opacity .5s ease .3s; }
html[data-theme="dark"] .theme-toggle .rays { transform: scale(.5) rotate(45deg); opacity: 0; transition: transform .5s var(--spring), opacity .3s; }
.theme-toggle .rays g { transform-origin: 0 0; transition: transform .8s var(--spring); }
html:not([data-theme="dark"]) .theme-toggle:hover .rays g { transform: rotate(22deg); }
.theme-toggle .disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 0 6px rgba(244, 196, 70, .45); transition: box-shadow 1s; }
html[data-theme="dark"] .theme-toggle .disc { box-shadow: 0 1px 3px rgba(0, 0, 0, .5), 0 0 6px rgba(240, 233, 214, .2); }
.theme-toggle .sun, .theme-toggle .moon { position: absolute; inset: 0; border-radius: 50%; transition: opacity .9s var(--soft); }
.theme-toggle .sun { background: radial-gradient(circle at 34% 32%, #fbe39a, #e9c45a 45%, #d4af37); }
.theme-toggle .moon { background: radial-gradient(circle at 34% 32%, #fffaf0, #efe8d4 55%, #ddd4bb); opacity: 0; }
html[data-theme="dark"] .theme-toggle .sun { opacity: 0; }
html[data-theme="dark"] .theme-toggle .moon { opacity: 1; }
.theme-toggle .craters { display: none; }
.theme-toggle .shade { position: absolute; inset: -1px; border-radius: 50%; background: var(--track); transform: translate(105%, -105%); transition: transform .6s var(--soft); }
html[data-theme="dark"] .theme-toggle .shade { transform: translate(40%, -32%); transition: transform .9s var(--soft) .25s; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
::view-transition-group(theme-toggle) { animation: none; z-index: 3; }
::view-transition-old(theme-toggle) { display: none; }
::view-transition-new(theme-toggle) { animation: none; }
html.theme-vt *:not(.theme-toggle):not(.theme-toggle *), html.theme-vt *::before, html.theme-vt *::after { transition: none !important; }
html.theme-anim *:not(.theme-toggle):not(.theme-toggle *) { transition: background-color .8s ease, color .8s ease, border-color .8s ease !important; }

.burger { display: none; }
.nav-glass { display: none; }

/* ================================================================
   БОКОВОЕ МЕНЮ (телефоны и планшеты): панель выезжает справа
   Над тёмной заставкой — тёмная, ниже — по теме сайта (menu.js)
   ================================================================ */
.drawer.theme-night { background: none; color: inherit; }
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; transition: visibility 0s linear .5s; }
.drawer.open { visibility: visible; pointer-events: auto; transition: none; }
.dr-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity .4s ease; }
.drawer.open .dr-scrim { opacity: 1; }
/* размытие появляется, когда панель уже на месте — в момент выезда видеокарта не считает его каждый кадр */
.dr-blur { position: absolute; inset: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.drawer.settled .dr-blur { opacity: 1; transition: opacity .35s ease; }
.dr-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(85vw, 400px);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--paper); color: var(--ink);
  box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .45), inset .5px 0 0 var(--line);
  transform: translate3d(100%, 0, 0); transition: transform .5s var(--spring); will-change: transform;
}
.drawer.open .dr-panel { transform: translate3d(var(--drag, 0px), 0, 0); }
.drawer.dragging .dr-panel { transition: none; }
.dr-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: var(--head-h); margin: 0 -24px 6px; padding: 0 10px 0 24px; background: var(--paper); }
.dr-top .eyebrow { margin: 0; font: 600 11px/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent-ink); }
.dr-close { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); cursor: pointer; }
.dr-close::before, .dr-close::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.6px; margin: -.8px 0 0 -8px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.dr-close::after { transform: rotate(-45deg); }
.dr-close:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.dr-nav { display: flex; flex-direction: column; }
.dr-nav > a, .dr-more summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; font: 600 clamp(24px, 6.4vw, 28px)/1.2 var(--display); letter-spacing: -.025em; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
.dr-nav > a:hover, .dr-more summary:hover { color: var(--accent-ink); }
.dr-nav a.active { color: var(--accent-ink); }
.dr-more summary::-webkit-details-marker { display: none; }
.dr-more summary::after { content: ''; width: 9px; height: 9px; margin: -4px 4px 0 0; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .45s var(--spring), margin .45s var(--spring); }
.dr-more[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.dr-more-list { display: flex; flex-direction: column; padding: 0 0 8px; }
.dr-more[open] .dr-more-list { animation: popIn .45s var(--spring); }
.dr-more-list a { padding: 8px 0; font-size: 18px; color: var(--ink-80); text-decoration: none; }
.dr-more-list a:hover, .dr-more-list a.active { color: var(--accent-ink); }
.dr-foot { margin-top: auto; padding-top: 28px; }
.dr-foot .btn { width: 100%; min-height: 54px; font-size: 17px; }
.dr-contacts { display: flex; justify-content: center; gap: 18px; margin: 22px 0 10px; }
.dr-contacts a { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-60); text-decoration: none; }
.dr-contacts i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--field); color: var(--ink); transition: transform .45s var(--spring), background-color .3s; }
.dr-contacts a:hover i { background: color-mix(in srgb, var(--accent) 22%, var(--field)); transform: translateY(-2px); }
.dr-contacts svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dr-phone { display: block; text-align: center; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
/* пункты выплывают по очереди */
.dr-panel > *:not(.dr-top) { opacity: 0; transform: translate3d(24px, 0, 0); transition: opacity .2s ease, transform .2s ease; }
.drawer.open .dr-panel > *:not(.dr-top) { opacity: 1; transform: none; transition: opacity .45s ease .12s, transform .6s var(--spring) .12s; }
.drawer.open .dr-panel > .dr-foot { transition-delay: .2s; }
.dr-nav > * { opacity: 0; transform: translate3d(18px, 0, 0); transition: opacity .2s ease, transform .2s ease; }
.drawer.open .dr-nav > * { opacity: 1; transform: none; transition: opacity .45s ease, transform .6s var(--spring); }
.drawer.open .dr-nav > :nth-child(1) { transition-delay: .08s; } .drawer.open .dr-nav > :nth-child(2) { transition-delay: .11s; }
.drawer.open .dr-nav > :nth-child(3) { transition-delay: .14s; } .drawer.open .dr-nav > :nth-child(4) { transition-delay: .17s; }
.drawer.open .dr-nav > :nth-child(5) { transition-delay: .2s; } .drawer.open .dr-nav > :nth-child(6) { transition-delay: .23s; }
html.dr-lock { overflow: hidden; }
html.dr-lock .m-cta { transform: translateY(calc(100% + 24px)); }
html.lite .dr-blur { display: none; }
html.lite .dr-scrim { background: rgba(0, 0, 0, .55); }
@media (min-width: 961px) { .drawer { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .dr-panel, .dr-panel > *, .dr-nav > * { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* Ноутбуки: всё в одну строку */
@media (max-width: 1280px) and (min-width: 961px) {
  header { gap: 18px; }
  header nav { gap: 18px; }
  header nav a, .nav-more summary { font-size: 13px; }
}
/* Средние экраны: «Отзывы» и «Как добраться» — в «Ещё» (копии добавляет menu.js),
   кнопка «Забронировать» видна всегда */
.nav-more-list a.nm-mid { display: none; }
@media (max-width: 1280px) {
  header nav > a.nav-mid { display: none; }
  .nav-more-list a.nm-mid { display: block; }
  .nav-more.has-active-mid > summary { color: var(--ink); }
  .nav-more.has-active-mid > summary::before { content: ''; position: absolute; left: 50%; bottom: -10px; width: 7px; height: 7px; margin-left: -7px; background: var(--accent);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
}
/* узкий ноутбук: у телефона в шапке остаётся только значок (номер читается программами для незрячих) */
@media (max-width: 1140px) and (min-width: 961px) {
  header { gap: 16px; }
  header nav { gap: 16px; }
  header .phone { font-size: 0; gap: 0; width: 32px; height: 32px; justify-content: center; }
  header .phone::after { left: 14px; }
}

/* Телефон в шапке — значком (на узких экранах) */
.phone-ico { display: none; }

/* ================================================================
   ПЕРВЫЙ ЭКРАН — ночное небо, звезда и название (story.js)
   ================================================================ */
.story { height: 170vh; padding: 0; overflow-x: clip; view-timeline: --story block; }
/* Пока story.js не расставил сцену, фото и название скрыты — иначе при открытии
   на миг мелькала готовая карточка с фото, а потом пропадала */
.story:not(.is-ready) .showcase, .story:not(.is-ready) .hw-line { visibility: hidden; }
.story-pin {
  /* высота «большого» экрана (lvh): когда телефон прячет строку адреса при прокрутке,
     снизу не остаётся чёрной полосы */
  position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: radial-gradient(90% 55% at 50% 105%, #12162a 0%, transparent 70%), linear-gradient(180deg, #000 0%, #04050a 60%, #0a0d1a 100%);
}
.story-sky { position: absolute; inset: -4% -2% -12%; z-index: 0; pointer-events: none; will-change: transform; }
.sky-c { position: absolute; inset: 0; background: no-repeat 0 0 / 100% 100%; }
.sky-c1 { opacity: .5; will-change: opacity; }   /* мерцание задаёт theme.js (ZNSky), 5 раз в секунду; свой слой — иначе каждое мерцание перерисовывало всё небо */

/* Луч и горизонт */
.beam { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; z-index: 1; pointer-events: none; will-change: transform, opacity; }
.beam i { position: absolute; left: 0; transform: translateX(-50%); display: block; }
.beam-core { top: 0; transform-origin: 50% 0; height: 74%; width: 1.5px; background: linear-gradient(180deg, transparent 0%, rgba(212, 175, 55, .35) 22%, #f2e1ad 55%, rgba(242, 225, 173, .45) 82%, transparent 100%); }
.beam-glow { top: 0; height: 78%; width: 240px; background: radial-gradient(50% 100% at 50% 100%, rgba(212, 175, 55, .32) 0%, rgba(212, 175, 55, .08) 40%, transparent 75%); }
.beam-flare { top: 74%; width: min(1400px, 140vw); height: 240px; margin-top: -120px; background:
    radial-gradient(50% 5% at 50% 50%, #fffaf0 0%, rgba(247, 230, 176, .55) 40%, transparent 100%),
    radial-gradient(40% 40% at 50% 50%, rgba(212, 175, 55, .28) 0%, transparent 70%); }
/* золотой горизонт под названием убран по просьбе — луч просто мягко гаснет книзу */
.beam .beam-flare, .beam .beam-glow { display: none; }
.story.is-off .sky-c, .page-hero.is-off .sky-c, .theme-switching .sky-c { animation-play-state: paused; }
/* экран со звездой ушёл из вида — все его анимации на паузе */
.story.is-off *:not([data-zs]), .story.is-off *::before, .story.is-off *::after { animation-play-state: paused !important; }

/* Звезда и название — строго по центру */
.hero-words { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--gutter) 14vh; pointer-events: none; text-align: center; }
.hw-title { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--display); line-height: 1; }
.hw-eyebrow { display: inline-flex; align-items: center; gap: 16px; margin: 0 0 clamp(14px, 2vh, 22px); font: 600 clamp(11px, 1vw, 13px)/1.2 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #e3c460; will-change: opacity; }
.hw-eyebrow::before, .hw-eyebrow::after { content: ''; width: clamp(24px, 4vw, 56px); height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 196, 96, .7)); }
.hw-eyebrow::after { transform: scaleX(-1); }
.hw-line { position: relative; display: block; font-family: var(--brand); font-size: clamp(64px, 12.6vw, 204px); font-weight: 600; letter-spacing: -.012em; line-height: .9; white-space: nowrap; padding: 0 .04em .06em; will-change: transform, opacity; }
.ch {
  display: inline-block; opacity: 0; transform: translate3d(0, 34%, 0) scale(.96);
  /* верхний слой — бегущий блик (сдвигается переменной --sx), нижний — золото */
  background-image:
    linear-gradient(105deg, transparent 0 38%, rgba(255, 252, 238, .95) 50%, transparent 62%),
    linear-gradient(180deg, #fffaf0 0%, #f6e7bd 38%, #dcb658 72%, #b98f2e 100%);
  background-size: var(--lw, 600px) 100%, 100% 100%;
  background-position: calc(var(--sx, -2000px) - var(--ox, 0px)) 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .04em; margin-bottom: -.04em;
  animation: chIn .45s var(--spring) both; will-change: transform, opacity;
}
/* буква проявилась: анимация и отдельный слой больше не нужны */
.ch.done { animation: none; opacity: 1; transform: none; filter: none; will-change: auto; }
/* обёртки букв: слово не переносится, каждую букву отдельно сдвигает прокрутка */
.chs { display: inline-block; white-space: nowrap; }
.chw { display: inline-block; will-change: transform; }
.ch.sp { width: .26em; }
@keyframes chIn { 0% { opacity: 0; } 30% { opacity: .9; } to { opacity: 1; transform: none; } }

.star { position: relative; width: clamp(140px, 14vw, 220px); aspect-ratio: 1; margin-bottom: clamp(14px, 2.6vh, 30px); will-change: transform, opacity; }
.star-in { position: absolute; inset: 0; animation: starIn .6s cubic-bezier(.25, 1, .5, 1) both; }
/* звезда раскрывается из точки и доворачивается на место (раньше это считал скрипт в каждом кадре) */
@keyframes starIn { 0% { opacity: 0; rotate: -40deg; scale: .15; } 40% { opacity: 1; } 100% { opacity: 1; rotate: 0deg; scale: 1; } }
.star-in > * { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.star-dust { width: 200%; height: 200%; }
.st-halo { width: 260%; height: 260%; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .3) 0%, rgba(212, 175, 55, .08) 32%, transparent 62%); opacity: .9; }
/* ореол неподвижен: его «дыхание» заставляло перерисовывать полэкрана в каждом кадре */
.st-ring { width: 70%; height: 70%; border-radius: 50%; border: 1px solid rgba(246, 220, 142, .6); opacity: 0; animation: stRing 5s cubic-bezier(.2, .7, .2, 1) infinite; }
.st-ring-2 { animation-delay: 2.5s; }
@keyframes stRing { 0% { transform: translate(-50%, -50%) scale(.3); opacity: .8; } 100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; } }
.st-streak { width: 520%; height: 2px; border-radius: 50%; background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, .3) 30%, #fff8e0 50%, rgba(212, 175, 55, .3) 70%, transparent 100%); animation: stStreak 6s ease-in-out infinite; }
@keyframes stStreak { 0%, 100% { transform: translate(-50%, -50%) scaleX(.75); opacity: .55; } 50% { transform: translate(-50%, -50%) scaleX(1); opacity: .95; } }
.st-rays { overflow: visible; transform: none; }
.st-rays-long { left: -30%; top: -30%; width: 160%; height: 160%; animation: stSpin 60s linear infinite, stBreath 5s ease-in-out infinite; }
.st-rays-short { left: 5%; top: 5%; width: 90%; height: 90%; opacity: .7; animation: stSpinR 40s linear infinite; }
@keyframes stSpin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes stSpinR { from { rotate: 45deg; } to { rotate: -315deg; } }
@keyframes stBreath { 0%, 100% { scale: .95; } 50% { scale: 1.03; } }
.st-core { left: 42%; top: 42%; transform: none; width: 16%; height: 16%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #fff6d6 35%, rgba(212, 175, 55, .6) 70%, transparent 100%); box-shadow: 0 0 30px 10px rgba(255, 243, 196, .5); animation: stCore 3s ease-in-out infinite; }
@keyframes stCore { 50% { scale: 1.15; } }

.shooting { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.shooting i { position: absolute; width: 150px; height: 1.2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(246, 220, 142, .8) 70%, #fff); transform-origin: 100% 50%; opacity: 0; animation: shoot 1.4s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(var(--a, 25deg)) translateX(0) scaleX(.2); } 15% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a, 25deg)) translateX(420px) scaleX(1); } }

.corner { display: none; }
/* Кнопки под названием — появляются при прокрутке (story.js) */
.hero-cta { position: absolute; left: 0; right: 0; bottom: calc(18vh + 8px); z-index: 4; display: flex; align-items: center; justify-content: center; gap: 22px; }
.hero-cta .more-link { color: #e3c460; font-size: 17px; }

/* Карточка-витрина: поднимается из-под горизонта */
.showcase {
  position: absolute; z-index: 5; left: 50%; top: 52%;
  width: min(1100px, 90vw); height: min(68vh, 620px);
  margin-left: calc(min(1100px, 90vw) / -2); margin-top: calc(min(68vh, 620px) / -2 + 20px);
  transform-origin: 50% 0; will-change: transform, opacity;
}
.sc-frame { position: relative; width: 100%; height: 100%; border-radius: var(--r-tile); overflow: hidden; isolation: isolate; background: #3a311c; transition: background-color .8s ease; }
/* Свечение вокруг фото — мягкие градиенты вместо огромной размытой тени.
   Тень с размытием 100–120px браузер перерисовывал в каждом кадре прокрутки (главная причина лагов),
   градиент рисуется в десятки раз быстрее, а выглядит так же. */
.showcase::before, .showcase::after { content: ''; position: absolute; z-index: -1; left: -9%; right: -9%; pointer-events: none; }
.showcase::before { top: -120px; height: 300px; background: radial-gradient(50% 50% at 50% 50%, rgba(212, 175, 55, .2) 0%, rgba(212, 175, 55, .08) 45%, transparent 75%); }
.showcase::after { bottom: -130px; height: 300px; background: radial-gradient(50% 50% at 50% 45%, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .3) 50%, transparent 78%); }
/* Рамка фото — тонкая золотая линия (просвет 1.5px между краем и снимком).
   По ней бегут огоньки: квадрат с конусным градиентом поворачивается за снимком,
   и виден только в просвете — это дёшево, двигается только поворот. */
.sc-inner { position: absolute; inset: 2px; z-index: 1; overflow: hidden; border-radius: calc(var(--r-tile) - 2px); background: #0b0b0d; }
@media (max-width: 760px) { .sc-inner { inset: 1.5px; border-radius: calc(var(--r-tile) - 1.5px); } }
.sc-run { position: absolute; z-index: 0; display: block; pointer-events: none; opacity: 0; will-change: rotate, opacity;
  background: conic-gradient(from 0deg, transparent 0deg 268deg, rgba(212, 175, 55, 0) 268deg, rgba(212, 175, 55, .7) 315deg, #f6dc8e 340deg, #fffdf5 354deg, #fff 358.5deg, transparent 360deg);
  transition: opacity .45s ease; }
.sc-run-l { transform: scaleX(-1); }
.sc-run.orbit { animation: scOrbit 6s linear infinite; opacity: 1; }
@keyframes scOrbit { from { rotate: 180deg; } to { rotate: 540deg; } }
/* вспышка там, где луч касается фото */
.sc-hit { position: absolute; left: 50%; top: 0; z-index: 6; width: 130px; height: 130px; margin: -65px 0 0 -65px; pointer-events: none; opacity: 0; border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0%, rgba(246, 220, 142, .8) 12%, rgba(212, 175, 55, .28) 34%, transparent 66%); will-change: opacity, transform; }
.sc-inner img { width: 100%; height: 100%; object-fit: cover; }
.sc-inner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, transparent 30%, transparent 55%, rgba(0, 0, 0, .75) 100%); pointer-events: none; }
.sc-bar {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 32px; padding: 14px 14px 14px 26px; border-radius: 22px;
  background: rgba(28, 28, 30, .84);
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .25), inset 0 0 0 .5px rgba(255, 255, 255, .12);
}
.sc-item { display: flex; flex-direction: column; line-height: 1.2; }
.sc-item small { font-size: 12px; color: rgba(245, 245, 247, .6); }
.sc-item b { font: 600 21px/1.2 var(--display); letter-spacing: -.02em; color: #f5f5f7; white-space: nowrap; }
.sc-bar .btn { margin-left: auto; }
.glow-edge { display: none; }

.story.is-static { height: auto; }
.story.is-static .story-pin { position: relative; height: 100vh; }
.story.is-static .ch { animation: none; opacity: 1; transform: none; filter: none; }
.story.is-static .star-in { animation: none; }

/* Телефоны и слабые устройства: звезда и небо проще */
.story.is-lite .st-ring, .story.is-lite .st-rays-short { display: none; }
.story.is-lite .st-halo, .story.is-lite .st-streak { animation: none; }
.story.is-lite .story-sky-2 { display: none; }

@media (max-width: 760px) {
  .story { height: 157vh; }
  .hw-line { font-size: clamp(60px, 21vw, 112px); white-space: normal; line-height: .92; }
  .hw-eyebrow { gap: 10px; letter-spacing: .26em; }
  .hero-words { padding-bottom: 22vh; }
  .hero-cta { bottom: calc(18vh + 12px); flex-direction: column; gap: 12px; }
  .star { width: 120px; }
  .beam-glow { width: 150px; }
  .showcase { width: 92vw; height: 70vh; margin-left: -46vw; margin-top: calc(-35vh + 26px); top: 50%; }
  .sc-bar { left: 10px; right: 10px; bottom: 10px; flex-wrap: wrap; gap: 10px 20px; padding: 14px 16px; border-radius: 20px; }
  .sc-item b { font-size: 18px; }
  .sc-bar .btn { width: 100%; margin: 4px 0 0; }
  body.m-cta-on .showcase { translate: 0 -36px; }
}

/* ================================================================
   ЦИФРЫ ОБ ОТЕЛЕ
   ================================================================ */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  max-width: none; margin: 0; padding: clamp(56px, 7vw, 96px) max(var(--gutter), calc((100% - var(--wrap)) / 2));
  background: var(--paper);
}
.stat { text-align: center; }
.stat b {
  display: block; font: 700 clamp(44px, 5.4vw, 72px)/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--ink-60); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ================================================================
   СВОБОДНЫЕ ДАТЫ (быстрый поиск)
   ================================================================ */
#daty { background: var(--raised); padding-bottom: clamp(64px, 9vw, 120px); }
.quick-book {
  display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 6px;
  max-width: 820px; margin: 0 auto; padding: 8px; border-radius: 22px;
  background: var(--panel); box-shadow: 0 2px 4px rgba(0, 0, 0, .03), 0 18px 40px -20px rgba(0, 0, 0, .18);
}
.qb-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 16px; border-radius: 16px; cursor: pointer; transition: background-color .3s ease; }
.qb-field:hover { background: var(--field); }
.qb-field > span { font-size: 12px; font-weight: 600; color: var(--ink-60); }
.qb-field .dp-field { height: auto; padding: 0; border: 0; background: transparent; gap: 8px; box-shadow: none; }
.qb-field .dp-field .dp-ico { display: none; }
.qb-field .dp-field .dp-val { font-size: 17px; color: var(--ink); }
.qb-field .dp-field.dp-empty .dp-val { color: var(--ink-40); }
.qb-field input[type="date"] { border: 0; background: transparent; color: var(--ink); font: inherit; padding: 0; }
.qb-btn { min-height: 52px; padding: 12px 26px; }
.hero-alt { margin: 22px 0 0; text-align: center; font-size: 17px; }
.dates .qb-results { max-width: 980px; margin: 40px auto 0; }

.qb-results { padding-top: 8px; }
.qbr-title { margin: 0 0 18px; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); text-align: center; }
.qbr-wait { font-size: 15px; color: var(--ink-60); }
.qbr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qbr-card { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; border-radius: 20px; background: var(--panel); }
.qbr-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.qbr-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.qbr-info b { font: 600 18px/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); }
.qbr-st { color: var(--ink-60); }
.qbr-ok { color: var(--ink); font-weight: 500; }
.qbr-no { color: var(--ink-60); text-decoration: line-through; }
.qbr-sum { color: var(--ink-60); }
.qbr-sum strong { color: var(--ink); font-weight: 600; }
.qbr-card.is-busy img { filter: grayscale(1); opacity: .5; }
.qbr-card.is-busy .qbr-info b { color: var(--ink-60); }
.qbr-book { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.qbr-empty { margin: 16px 0 0; color: var(--ink); text-align: center; }
.qbr-more { display: block; margin-top: 18px; font-size: 15px; text-align: center; }

/* ================================================================
   НОМЕРА — плитки как на apple.com
   ================================================================ */
#nomera { padding-bottom: clamp(64px, 9vw, 120px); }
.rooms-compare { margin-top: 14px; font-size: 17px; }
.rooms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; grid-column: span 3; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  border-radius: var(--r-tile); background: var(--raised); cursor: pointer; outline-offset: 4px;
  transition: box-shadow .6s var(--spring), transform .45s var(--spring);
}
@media (hover: hover) { .card:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); } }
/* все четыре номера — одинаковые плитки, по две в ряд (раньше «Комфорт» был огромным) */
.card-gallery { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, var(--raised)); }
.card .card-gallery { aspect-ratio: 4 / 3; }
.card .cg-track { height: 100%; }
.cg-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; }
.card .cg-track img { height: 100%; aspect-ratio: auto; transition: transform 1.2s var(--spring); }
@media (hover: hover) { .card:hover .cg-track img { transform: scale(1.03); } }

.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 26px 28px 28px; flex: 1; }
.card-body h3 { font-size: clamp(24px, 2.2vw, 30px); }
.amen-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0 6px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-60); }
.amen-list li { display: inline-flex; align-items: center; white-space: nowrap; }
.card .price { margin: auto 0 0; padding-top: 6px; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.card .price span { font: 400 14px var(--sans); letter-spacing: 0; color: var(--ink-60); }
.card .count { margin: 0; font-size: 13px; color: var(--ink-60); }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 10px; }
.card .btn { min-height: 38px; padding: 8px 18px; font-size: 15px; }
.card .btn-ghost { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.card .btn-ghost:hover { background: var(--accent-hover); }
.card .more-link { font-size: 15px; }

/* Листалка фото */
.cg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.cg-track::-webkit-scrollbar { display: none; }
.cg-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cg-arrow {
  position: absolute; top: 50%; z-index: 3; width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center; padding: 0 0 2px; border: 0; border-radius: 50%;
  background: rgba(245, 245, 247, .72); color: #1d1d1f; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .3s ease, transform .45s var(--spring);
}
.cg-prev { left: 12px; }
.cg-next { right: 12px; }
.card-gallery:hover .cg-arrow, .cg-arrow:focus-visible { opacity: 1; }
.card-gallery .cg-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .cg-arrow { display: none; } }
.cg-dots { position: absolute; left: 50%; bottom: 12px; z-index: 3; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; transform: translateX(-50%); background: rgba(0, 0, 0, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.cg-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .5); cursor: pointer; pointer-events: auto; transition: width .5s var(--spring), background-color .3s; }
.cg-dots button[aria-current="true"] { width: 18px; background: #fff; }
.cg-caption { position: absolute; top: 12px; left: 12px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }

@media (max-width: 1000px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 1; }
}
@media (max-width: 640px) {
  .rooms { grid-template-columns: 1fr; gap: 16px; }
  .card { grid-column: auto; border-radius: 24px; }
  .card-body { padding: 22px 22px 24px; }
}

/* ================================================================
   УДОБСТВА — чёрный блок с плитками
   ================================================================ */
#udobstva { padding-bottom: clamp(64px, 9vw, 120px); }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 16px; }
.feature { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 28px 24px; border-radius: var(--r-card); background: var(--raised); }
.feature dt { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font: 600 21px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.feature dd { margin: 0; font-size: 15px; color: var(--ink-60); }
.ud-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
/* Схема «Пешком от отеля»: вертикальная линия, как схема метро. Вся карточка — ссылка на «Как добраться».
   Где браузер умеет анимации, привязанные к прокрутке, золотая линия дорисовывается строго вместе
   с прокруткой (её двигает видеокарта, скрипт не нужен), точки загораются, когда линия до них дошла.
   Каждый отрезок принадлежит своей строке, высота строки постоянная (--rt-h), поэтому отрезки
   идут друг за другом без разрывов. Остальные браузеры показывают схему сразу целиком. */
.route { --rt-h: 66px; display: flex; flex-direction: column; justify-content: center; gap: 18px; margin: 0; padding: 28px 28px 24px; border-radius: var(--r-card); background: var(--raised); color: var(--ink); text-decoration: none; }
.route:hover, .route:focus-visible { text-decoration: none; color: var(--ink); }
.rt-eyebrow { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); }
.rt-list { list-style: none; margin: 0; padding: 0; }
.rt-stop { position: relative; display: flex; flex-direction: column; justify-content: flex-start; height: var(--rt-h); padding: 0 0 0 34px; }
.rt-stop:last-child { height: auto; }
/* отрезок до следующей точки: серая подложка и золотая линия поверх */
.rt-stop:not(:last-child)::before, .rt-stop:not(:last-child)::after { content: ''; position: absolute; left: 7px; top: 9px; width: 2px; height: var(--rt-h); border-radius: 1px; }
.rt-stop:not(:last-child)::before { background: var(--line); }
.rt-stop:not(:last-child)::after { background: var(--accent); transform-origin: 50% 0; }
.rt-dot { position: absolute; left: 0; top: 1px; z-index: 1; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--accent); background: var(--accent); }
.rt-home .rt-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.rt-name { font: 600 18px/1.1 var(--display); letter-spacing: -.01em; color: var(--ink); }
.rt-meta { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--ink-60); font-variant-numeric: tabular-nums; }
.rt-more { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--accent-ink, var(--accent)); }
.route:hover .rt-more span, .route:focus-visible .rt-more span { display: inline-block; transform: translateX(3px); transition: transform .2s; }
@supports (animation-timeline: view()) and (animation-range: cover 0% cover 100%) {
  @media (prefers-reduced-motion: no-preference) {
    .rt-stop:not(:last-child)::after {
      animation: rtLine linear both; animation-timeline: view();
      animation-range: cover 30vh cover calc(30vh + var(--rt-h));
    }
    .rt-stop:not(.rt-home) .rt-dot {
      animation: rtDot linear both; animation-timeline: view();
      animation-range: cover 30vh cover calc(30vh + 10px);
    }
  }
}
@keyframes rtLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rtDot { from { background: var(--raised); border-color: var(--ink-40); } to { background: var(--accent); border-color: var(--accent); } }
.photo-frame { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--raised); }
.photo-frame .pf-img { position: relative; height: 100%; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.photo-frame img.pf-kitchen { object-position: 88% 62%; }
.photo-frame figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 13px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } .ud-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr 1fr; gap: 10px; } .feature { padding: 20px 16px; } .feature dt { font-size: 18px; } }

/* ================================================================
   БРОНИРОВАНИЕ
   ================================================================ */
#kontakty {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start;
  background: var(--raised); padding-bottom: clamp(64px, 9vw, 120px);
}
#kontakty .section-head { text-align: left; margin: 0 0 32px; }
#kontakty .section-head p { margin-left: 0; }
.bf-aside { position: sticky; top: calc(var(--head-h) + 32px); }
.contacts { padding: 24px; border-radius: var(--r-card); background: var(--panel); }
.contacts h3 { margin-bottom: 16px; font-size: 19px; }
.contacts p { margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.contacts p:last-child { margin-bottom: 0; }
.contacts p span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-60); }

.booking-form { padding: clamp(24px, 4vw, 44px); border-radius: var(--r-tile); background: var(--panel); box-shadow: 0 2px 4px rgba(0, 0, 0, .02), 0 24px 60px -36px rgba(0, 0, 0, .25); }
.bf-step { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.bf-step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0; font: 600 21px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.bf-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--field); font: 600 13px var(--sans); color: var(--ink-60); transition: background-color .4s ease, color .4s ease, transform .5s var(--spring-bounce); }
.bf-num::before { content: none; }
.bf-step.is-done .bf-num, .quiz-q.is-done .bf-num { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.bf-step.is-missing legend { color: var(--accent-ink); }
.bf-hidden-select, .hp-field { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-tip { margin: 10px 0 0; font-size: 13px; color: var(--ink-60); }

.form-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--ink-60); }
.form-group input, .form-group .dp-field {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 0; border-radius: var(--radius);
  background: var(--field); color: var(--ink); font: inherit; font-size: 17px;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease, background-color .3s ease;
}
.form-group input::placeholder { color: var(--ink-40); }
.form-group input:focus, .form-group .dp-field:focus-visible { outline: none; background: var(--panel); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* Выбор номера */
.room-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rp-card { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--field); cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .35s ease, background-color .35s ease, transform .45s var(--spring); }
.rp-card:hover { background: color-mix(in srgb, var(--ink) 7%, var(--field)); }
.rp-card input { position: absolute; opacity: 0; pointer-events: none; }
.rp-card img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; }
.rp-body { display: flex; flex-direction: column; min-width: 0; padding-right: 22px; font-size: 13px; line-height: 1.35; }
.rp-name { font: 600 16px/1.25 var(--display); letter-spacing: -.015em; color: var(--ink); }
.rp-desc { color: var(--ink-60); }
.rp-price { margin-top: 3px; color: var(--ink); font-weight: 600; }
.rp-price small { font-weight: 400; color: var(--ink-60); }
.rp-status { margin-top: 2px; font-size: 12px; }
.rp-ok { color: var(--ink); }
.rp-no { color: #d1564b; font-weight: 500; }
.rp-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background-color .3s ease, box-shadow .3s ease, transform .5s var(--spring-bounce); }
.rp-check::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--spring-bounce); }
.rp-card:has(input:checked) { background: var(--panel); box-shadow: inset 0 0 0 2px var(--accent); }
.rp-card:has(input:checked) .rp-check { background: var(--accent); box-shadow: none; transform: scale(1.05); }
.rp-card:has(input:checked) .rp-check::after { transform: rotate(45deg) scale(1); }
.rp-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.rp-card.is-busy img { filter: grayscale(1); opacity: .5; }
/* номер нельзя выбрать: занят на долгий срок или на выбранные даты */
.rp-card.is-off, .rp-card.is-busy:not(:has(input:checked)) { cursor: not-allowed; }
.rp-card.is-off { opacity: .62; }
.rp-card.is-off:hover, .rp-card.is-busy:not(:has(input:checked)):hover { background: var(--field); }
.rp-card.is-off img { filter: grayscale(1); opacity: .5; }
.rp-card.is-busy:has(input:checked) { box-shadow: inset 0 0 0 2px #d1564b; }
/* кнопка «Все заняты» вместо «Забронировать» */
.btn.is-off { background: var(--field); color: var(--ink-60); cursor: not-allowed; box-shadow: none; }
.btn.is-off:hover { background: var(--field); color: var(--ink-60); }

/* Мессенджер — сегментированный переключатель как в iOS */
.messenger-options { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--field); }
.messenger-card { position: relative; cursor: pointer; }
.messenger-card input { position: absolute; opacity: 0; pointer-events: none; }
.messenger-card-content { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 10px; color: var(--ink-80); font-size: 15px; font-weight: 500; transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, transform .45s var(--spring); }
.messenger-card:active .messenger-card-content { transform: scale(.96); transition-duration: .08s; }
.messenger-checkmark { display: none; }
.messenger-card:hover .messenger-card-content { color: var(--ink); }
.messenger-card input:checked + .messenger-card-content { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 3px 10px rgba(0, 0, 0, .08); }
html[data-theme="dark"] .messenger-card input:checked + .messenger-card-content { background: #48484a; }
.messenger-card input:focus-visible + .messenger-card-content { outline: 2px solid var(--accent); outline-offset: 1px; }
.messenger-icon { font-size: 17px; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; transition: transform .5s var(--spring-bounce); }
.messenger-card input:checked + .messenger-card-content .messenger-icon { transform: scale(1.15); }
@media (max-width: 420px) { .messenger-card-content { flex-direction: column; gap: 2px; font-size: 13px; } }

/* Итог и согласие */
.price-calc { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding: 18px 20px; border-radius: 18px; background: var(--field); animation: popIn .5s var(--spring); }
.pc-info { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-60); }
.pc-info b { font: 600 18px/1.3 var(--display); letter-spacing: -.015em; color: var(--ink); }
.pc-total { text-align: right; }
.pc-total small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-60); }
.pc-total strong { font: 700 30px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-60); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.bf-safe { margin: 12px 0 0; font-size: 13px; text-align: center; color: var(--ink-60); }

/* Сообщения формы */
.form-notice { margin-top: 20px; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); color: var(--ink); font-size: 15px; animation: popIn .5s var(--spring); }
.form-notice a { color: var(--accent-ink); }
.form-notice-ok, .form-notice-wait { background: var(--field); }
.ok-head { margin: 0 0 4px; font: 600 22px/1.25 var(--display); letter-spacing: -.02em; }
.ok-head strong { font-weight: 600; }
.ok-sum { margin: 0 0 16px; color: var(--ink-60); font-size: 14px; }
.ok-sum strong { color: var(--ink); }
.ok-steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; }
.ok-steps li { position: relative; display: flex; flex-direction: column; padding: 0 0 12px 32px; font-size: 14px; color: var(--ink-60); counter-increment: s; }
.ok-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); font-size: 12px; font-weight: 600; color: var(--ink-60); }
.ok-steps li b { color: var(--ink); font-weight: 600; }
.ok-steps li.is-done::before { content: '✓'; background: var(--accent); color: var(--on-accent); }
.ok-steps li.is-now::before { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--ink); }
.ok-note { margin: 0; font-size: 13px; color: var(--ink-60); }
.send-spin { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-sending { opacity: .8; }
.welcome-back { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding: 14px 16px; border-radius: 18px; background: var(--field); }
.welcome-back p { margin: 0; color: var(--ink); }
.welcome-actions { display: flex; align-items: center; gap: 16px; }
.welcome-actions .btn { min-height: 36px; padding: 6px 16px; font-size: 14px; }

@media (max-width: 1080px) {
  #kontakty { grid-template-columns: 1fr; }
  #kontakty .section-head { text-align: center; margin-bottom: 0; }
  #kontakty .section-head p { margin-left: auto; }
  .bf-aside { position: static; }
  .contacts { display: none; }
}
@media (max-width: 560px) {
  .booking-form { margin: 0 calc(var(--gutter) * -1 + 8px); padding: 24px 18px; border-radius: 24px; }
  .bf-row, .room-pick { grid-template-columns: 1fr; }
  .price-calc { flex-direction: column; align-items: flex-start; }
  .pc-total { text-align: left; }
}

/* ================================================================
   ОКНО НОМЕРА — на компьютере всплывает из карточки,
   на телефоне — шторка снизу, которую можно смахнуть пальцем (ui.js)
   ================================================================ */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; padding: 24px; }
.modal.show { display: flex; align-items: center; justify-content: center; }
.modal::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); opacity: var(--scrim, 1); }
/* Размытие страницы под окном — отдельным слоем, который включается только когда окно
   уже встало на место (ui.js добавляет класс blurred). Пока окно летит или его тянут пальцем,
   размытия нет — поэтому анимация не нагружает телефон; неподвижное размытие почти ничего не стоит. */
.modal::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; -webkit-backdrop-filter: blur(9px) saturate(120%); backdrop-filter: blur(9px) saturate(120%); }
.modal.blurred::after { opacity: 1; }
.modal-content { z-index: 1; }
.modal-content {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 40px); border-radius: var(--r-tile); background: var(--panel); color: var(--ink-80);
  box-shadow: 0 0 0 .5px var(--line), 0 40px 100px -20px rgba(0, 0, 0, .45);
  will-change: transform;
}
.modal-content h2 { padding-right: 44px; font-size: clamp(28px, 4vw, 40px); }
.sheet-grab { display: none; }
.close-btn { position: absolute; top: 18px; right: 18px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--field); color: var(--ink-60); font-size: 22px; line-height: 1; cursor: pointer; transition: background-color .3s ease, transform .45s var(--spring); }
.close-btn:hover { background: color-mix(in srgb, var(--ink) 12%, var(--field)); color: var(--ink); }
.modal-gallery { margin: 20px 0; border-radius: var(--r-card); overflow: hidden; background: var(--field); }
.modal-gallery .cg-track img { aspect-ratio: auto; height: min(56vh, 500px); object-fit: contain; background: var(--field); }
.modal-gallery .cg-arrow { opacity: 1; }
.modal-sub { margin: 24px 0 12px; font-size: 21px; }
.modal-amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.modal-amenities li { display: flex; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--field); font-size: 15px; color: var(--ink); }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.modal-price { margin: 0; font: 700 30px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.modal-price span { font: 400 15px var(--sans); letter-spacing: 0; color: var(--ink-60); }
html.sheet-lock, html.sheet-lock body { overflow: hidden; }

/* Телефон: окно по центру с отступами, вырастает из карточки (ui.js); фото — на всю ширину сверху */
@media (max-width: 760px) {
  /* окно поменьше: сверху и снизу остаётся место, куда можно нажать, чтобы закрыть */
  .modal { padding: max(11vh, calc(env(safe-area-inset-top) + 24px)) 20px max(11vh, calc(env(safe-area-inset-bottom) + 24px)); }
  .modal.show { align-items: center; }
  .modal-content {
    display: flex; flex-direction: column; width: 100%; max-height: 100%;
    padding: 0 18px 22px; border-radius: 26px; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .55), 0 0 0 .5px var(--line);
  }
  .modal-content > * { flex-shrink: 0; }
  .close-btn { order: -2; position: sticky; top: 12px; align-self: flex-end; margin: 12px -6px -44px 0; width: 34px; height: 34px; background: rgba(0, 0, 0, .45); color: #fff; }
  .modal-gallery { order: -1; margin: 0 -18px 18px; border-radius: 0; }
  .modal-gallery .cg-track img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .modal-content h2 { padding-right: 0; }
  .modal-amenities { grid-template-columns: 1fr; }
  .modal-foot .btn { flex: 1 1 100%; }
}

/* ================================================================
   ФИНАЛ
   ================================================================ */
.finale { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(96px, 12vw, 160px); padding-bottom: clamp(96px, 12vw, 160px); overflow: hidden; }
.finale-star { position: relative; width: 72px; height: 72px; margin-bottom: 32px; }
.finale-star::before { content: ''; position: absolute; inset: -160%; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .28) 0%, rgba(212, 175, 55, .06) 35%, transparent 62%); }
.finale-star svg { position: relative; width: 100%; height: 100%; fill: url(#fsG); filter: drop-shadow(0 0 18px rgba(246, 220, 142, .65)); }
.finale-star svg path { fill: #f3dc94; }
.finale-text h2 { font-family: var(--brand); font-weight: 600; font-size: clamp(46px, 7vw, 96px); letter-spacing: -.01em; line-height: .98; }
.finale-text h2 em { font-style: normal; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.finale-text p { max-width: 520px; margin: 22px auto 32px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-60); }
.finale-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.theme-night .btn-ghost { color: var(--ink); }
.finale-ring { display: none; }

/* ================================================================
   ПОДВАЛ — тихий, мелкий текст на светло-сером
   ================================================================ */
.site-footer { margin-top: clamp(64px, 9vw, 120px); background: var(--raised); color: var(--ink-60); font-size: 12.5px; }
#kontakty ~ .site-footer, .finale ~ .site-footer, section[style*="raised"] ~ .site-footer { margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 32px; }
.site-footer .logo { margin-bottom: 12px; }
.site-footer .logo-text { font-size: 17px; }
.site-footer p { max-width: 360px; margin: 0; font-size: 12.5px; line-height: 1.6; }
.site-footer h4 { margin-bottom: 10px; font: 600 12.5px var(--sans); letter-spacing: 0; color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a, .site-footer a { color: var(--ink-60); font-size: 12.5px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter) 28px; border-top: 1px solid var(--line); font-size: 12px; }

/* ================================================================
   НИЖНЯЯ ПАНЕЛЬ «ЗАБРОНИРОВАТЬ» НА ТЕЛЕФОНЕ — плавающее стекло
   ================================================================ */
.m-cta { display: none; }

/* ================================================================
   КАЛЕНДАРЬ ДАТ (datepicker.js)
   ================================================================ */
.dp-field { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--field); color: var(--ink); font: inherit; font-size: 17px; text-align: left; cursor: pointer; }
.dp-ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--ink-60); stroke-width: 1.6; stroke-linecap: round; }
.dp-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-field.dp-empty .dp-val { color: var(--ink-40); }
.dp-field.dp-invalid { box-shadow: inset 0 0 0 1.5px var(--accent); animation: dp-shake .35s; }
@keyframes dp-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.dp-warn { margin: 6px 0 0; font-size: 13px; color: var(--accent-ink); line-height: 1.4; }
html.dp-lock, html.dp-lock body { overflow: hidden; }

.dp-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s ease; }
.dp-overlay.dp-show { opacity: 1; }
.dp-dialog { position: relative; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 24px 20px; border-radius: var(--r-tile); background: var(--panel); color: var(--ink-80); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45); transform: translateY(16px) scale(.98); transition: transform .6s var(--spring); }
.dp-overlay.dp-show .dp-dialog { transform: none; }
.dp-grip { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dp-sum { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dp-sum-arrow { color: var(--ink-40); }
.dp-sum-cell { display: flex; flex-direction: column; align-items: flex-start; min-width: 118px; padding: 7px 14px; border: 0; border-radius: 14px; background: var(--field); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .3s ease; }
.dp-sum-cell small { font-size: 11px; font-weight: 600; color: var(--ink-60); line-height: 1.5; }
.dp-sum-cell b { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; white-space: nowrap; }
.dp-sum-cell.is-active { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dp-close { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--field); color: var(--ink-60); cursor: pointer; }
.dp-close:hover { color: var(--ink); }
.dp-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dp-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--field); color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap; transition: background-color .3s ease, color .3s ease, transform .45s var(--spring); }
.dp-chip b { font-size: 14px; font-weight: 600; }
.dp-chip small { font-size: 12px; color: var(--ink-60); }
.dp-chip:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 10%, var(--field)); }
.dp-chip.is-on { background: var(--ink); color: var(--paper); }
.dp-chip.is-on small { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }
.dp-chip:disabled { opacity: .4; cursor: default; text-decoration: line-through; }
.dp-hint { min-height: 1.5em; margin: 10px 0 6px; font-size: 14px; color: var(--ink-60); }
.dp-hint-warn { color: var(--accent-ink); }
.dp-body { position: relative; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dp-nav { position: absolute; top: 0; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--field); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.dp-nav:disabled { opacity: .3; cursor: default; }
.dp-prev { left: 0; }
.dp-next { right: 0; }
.dp-mtitle { margin-bottom: 6px; text-align: center; font: 600 17px/34px var(--display); letter-spacing: -.015em; color: var(--ink); }
.dp-wd, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-wd span { padding-bottom: 4px; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-40); }
.dp-wd span.is-weekend { color: var(--ink-60); }
.dp-grid { row-gap: 2px; }
.dp-day { position: relative; height: 42px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; transition: background-color .25s, color .25s; }
.dp-day.dp-pad { pointer-events: none; }
.dp-day:hover:not(:disabled):not(.is-start):not(.is-end):not(.is-preview-end) { background: var(--field); border-radius: 50%; }
.dp-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 50%; }
.dp-day:disabled { color: var(--ink-40); opacity: .5; cursor: default; }
.dp-day.is-today { color: var(--accent-ink); font-weight: 700; }
.dp-day.is-full { color: var(--ink-40); text-decoration: line-through; }
.dp-day.is-in, .dp-day.is-preview { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.dp-day.is-preview-end { background: color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 0 50% 50% 0; }
.dp-day.is-start, .dp-day.is-end { background: var(--accent); color: var(--on-accent); font-weight: 700; border-radius: 50%; }
.dp-day.is-start.has-end { border-radius: 50% 0 0 50%; }
.dp-day.is-end { border-radius: 0 50% 50% 0; }   /* конец периода — зеркально началу, полоса соединяется */
.dp-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.dp-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-60); }
.dp-legend i { width: 18px; height: 14px; border-radius: 4px; background: var(--field); position: relative; }
.dp-legend i::after { content: ''; position: absolute; left: 3px; right: 3px; top: 50%; height: 1px; background: var(--ink-40); }
.dp-nights { margin-left: auto; font-weight: 600; color: var(--ink); }
.dp-reset { padding: 8px 4px; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 15px; cursor: pointer; }
.dp-foot .dp-done { min-height: 44px; margin: 0; padding: 10px 26px; font-size: 16px; }

.dp-overlay.dp-mobile { align-items: flex-end; padding: 0; }
.dp-mobile .dp-dialog { display: flex; flex-direction: column; width: 100%; height: 92vh; height: 92dvh; max-height: none; overflow: hidden; padding: 6px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; transform: translateY(100%); }
.dp-mobile .dp-grip { display: block; width: 38px; height: 5px; margin: 4px auto 10px; border-radius: 3px; background: var(--line-strong); }
.dp-mobile .dp-sum-cell { min-width: 0; padding: 6px 10px; }
.dp-mobile .dp-chips { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
.dp-mobile .dp-chips::-webkit-scrollbar { display: none; }
.dp-mobile .dp-body { flex: 1; min-height: 0; display: flex; }
.dp-mobile .dp-months { flex: 1; grid-template-columns: 1fr; gap: 18px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.dp-mobile .dp-nav { display: none; }
.dp-mobile .dp-mtitle { text-align: left; }
.dp-mobile .dp-day { height: 46px; font-size: 17px; }
.dp-mobile .dp-foot { margin-top: 0; padding-top: 10px; }
.dp-mobile .dp-legend { width: 100%; }
.dp-mobile .dp-foot .dp-done { flex: 1 1 140px; }

/* ================================================================
   ФОТО НА ВЕСЬ ЭКРАН (lightbox.js)
   ================================================================ */
html.lb-lock, html.lb-lock body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 56px 64px; background: rgba(0, 0, 0, .94); }
.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 12px; }
.lb-fig figcaption { display: flex; gap: 14px; color: #f5f5f7; font-size: 14px; }
.lb-count { opacity: .6; }
.lb-close, .lb-arrow { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #f5f5f7; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 24px; line-height: 1; }
.lb-arrow { top: 50%; width: 44px; height: 44px; margin-top: -22px; font-size: 26px; line-height: 1; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ================================================================
   ПЛАНШЕТ И ТЕЛЕФОН: меню на весь экран, плавающая панель
   ================================================================ */
@media (max-width: 960px) {
  header { gap: 10px; }
  .phone { order: 1; }
  .theme-toggle { order: 2; }
  .header-cta { display: none; }
  .burger {
    order: 3; position: relative; display: block; width: 40px; height: 40px; padding: 0; flex-shrink: 0;
    border: 0; border-radius: 50%; background: none; cursor: pointer;
  }
  .burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .5s var(--spring), opacity .3s ease; }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 50%; margin-top: -.75px; opacity: 0; }
  .burger span:nth-child(3) { bottom: 15px; }
  .burger.open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .burger.open span:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }

  /* меню в шапке на узких экранах прячется — вместо него боковая панель (.drawer, menu.js) */
  header nav { display: none; }
}
@media (max-width: 1080px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .m-cta {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 95;
    display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 24px;
    background: color-mix(in srgb, var(--panel) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 0 0 .5px var(--line), 0 12px 40px -10px rgba(0, 0, 0, .3);
    transform: translateY(calc(100% + 24px)); transition: transform .6s var(--spring);
  }
  .m-cta.show { transform: none; }
  .m-cta-price { display: flex; flex-direction: column; margin-right: auto; line-height: 1.2; }
  .m-cta-price small { font-size: 11px; font-weight: 600; color: var(--ink-60); }
  .m-cta-price b { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
  .m-cta-price b span { font-size: 12px; font-weight: 400; color: var(--ink-60); }
  .m-cta-chat { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--field); color: var(--ink); }
  .m-cta-chat svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .m-cta .m-cta-btn { min-height: 42px; margin: 0; padding: 8px 20px; font-size: 15px; }
  .qbr-list { grid-template-columns: 1fr; }
  .lb { padding: 56px 8px 24px; }
  .lb-arrow { top: auto; bottom: 18px; margin: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (max-width: 640px) {
  /* телефон — значком */
  .phone { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; font-size: 0; color: transparent; overflow: hidden; }
  .phone::before {
    content: ''; position: absolute; inset: 0; margin: auto; width: 17px; height: 17px; background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .qbr-card { grid-template-columns: 64px minmax(0, 1fr); }
  .qbr-card img { width: 64px; height: 64px; }
  .qbr-book { grid-column: 2; justify-self: start; }
  .quick-book { grid-template-columns: 1fr 1fr; padding: 6px; }
  .qb-btn { grid-column: 1 / -1; width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 380px) { .logo-text { font-size: 16px; } .theme-toggle { width: 42px; } }

/* ================================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ — пружина без отскока, только opacity и сдвиг
   ================================================================ */
.rv { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .4s ease, transform .5s var(--spring); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-zoom { transform: scale(.96); }
.rv-photo { opacity: 0; transform: scale(.97); transition: opacity .45s ease, transform .55s var(--spring); transition-delay: var(--d, 0s); }
.rv-photo.in { opacity: 1; transform: none; }
/* линия маршрута рисуется */

/* ================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ (pages/*.html)
   ================================================================ */
/* Первый экран страницы: ночное небо и маленькая звезда */
section.hero.page-hero {
  overflow: hidden; isolation: isolate; text-align: center;
  padding-top: calc(var(--head-h) + clamp(64px, 11vh, 120px)); padding-bottom: clamp(64px, 10vh, 110px);
  background: radial-gradient(80% 90% at 50% 120%, #141a33 0%, transparent 70%), linear-gradient(180deg, #08090d 0%, #121317 100%);
}
.ph-sky { position: absolute; inset: -10%; z-index: -1; pointer-events: none; will-change: transform; }
/* звёзды внутренних страниц — холст, см. .sky-c */
.ph-star { position: relative; width: 72px; height: 72px; margin: 0 auto 22px; will-change: transform; }
.ph-star > * { position: absolute; pointer-events: none; }
.ph-halo { inset: -80%; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .28), transparent 62%); }
.ph-ring { display: none; }
.ph-star svg { inset: -20%; width: 140%; height: 140%; animation: stSpin 60s linear infinite; filter: drop-shadow(0 0 8px rgba(212, 175, 55, .7)); }
.ph-star svg path { fill: #ecd07c; }
.ph-core { left: 40%; top: 40%; width: 20%; height: 20%; border-radius: 50%; background: radial-gradient(circle, #fff, #fff3c4 40%, transparent 72%); box-shadow: 0 0 22px 8px rgba(255, 243, 196, .45); }
.page-hero h1 { margin: 0 auto; max-width: min(100%, 900px); text-wrap: balance; overflow-wrap: normal; font-family: var(--brand); font-weight: 600; font-size: clamp(52px, 8.4vw, 116px); letter-spacing: -.01em; line-height: .95;
  background: linear-gradient(180deg, #fffaf0 0%, #f6e7bd 40%, #dcb658 80%, #c39a3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.page-hero p { max-width: 600px; margin: 18px auto 0; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.4; color: rgba(245, 245, 247, .62); }
.page-hero > h1, .page-hero > p, .page-hero > .ph-star { animation: heroIn .6s var(--spring) both; }
.page-hero > h1 { animation-delay: .03s; }
.page-hero > p { animation-delay: .08s; }
.page-hero.ph-shown > h1, .page-hero.ph-shown > p, .page-hero.ph-shown > .ph-star { animation: none; }
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }

/* Содержимое страниц — колонка для чтения */
section:not(.hero):not(.story):not(#daty):not(#nomera):not(#udobstva):not(#kontakty):not(.finale) {
  padding-left: max(var(--gutter), calc((100% - 980px) / 2)); padding-right: max(var(--gutter), calc((100% - 980px) / 2));
}
section:not(.hero):not(.story) > h2 { margin-bottom: 28px; }
section h3 { margin: 32px 0 12px; }
section > p, section > ul, section > ol { max-width: 760px; }
section ul:not([class]) { padding: 0; list-style: none; }
section ul:not([class]) > li { position: relative; padding: 6px 0 6px 26px; }
section ul:not([class]) > li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.note { font-size: 13px; color: var(--ink-60); }

/* Плитки: услуги, маршруты, отзывы, вопросы */
.service-card, .direction-card, .review-card, .faq-item, .addr-card, .route-btn, .quiz, .lad-step, .av-dates, .av-card, .cal-block {
  position: relative; overflow: hidden; isolation: isolate;
  border: 0; border-radius: var(--r-card); background: var(--raised);
  transition: transform .5s var(--spring), box-shadow .5s var(--spring), background-color .3s ease;
}
@media (hover: hover) {
  .route-btn:hover, .faq-item:hover { box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .28); }
}
.service-card { padding: 28px; margin: 0; }
.service-card h3, .direction-card h4, .review-card h4 { margin: 0 0 8px; font: 600 21px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.service-card p, .direction-card p { margin: 0; color: var(--ink-60); font-size: 16px; }
section:has(> .service-card) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
section:has(> .service-card) > :not(.service-card) { grid-column: 1 / -1; }
.direction-card { padding: 24px 26px; margin: 14px 0; }
.direction-card a { color: var(--accent-ink); font-weight: 500; }
.place-card h4 { display: flex; justify-content: flex-start; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.place-card .walk-time { margin-left: auto; }
.walk-time { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); font: 600 12px var(--sans); white-space: nowrap; }

.review-card { padding: 28px; margin: 14px 0; }
.review-stars { font-size: 17px; letter-spacing: 2px; margin-bottom: 10px; color: #a47e17; }
html[data-theme="dark"] .review-stars { color: var(--accent); }
.review-text { margin: 8px 0; font-size: 19px; line-height: 1.5; letter-spacing: -.015em; color: var(--ink); }
.review-author { margin: 12px 0 0; font-size: 14px; color: var(--ink-60); }

/* Плашки-призывы — тёмная плитка */
.page-cta, .ask-box, .rev-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px;
  margin: 32px 0 0; padding: 28px 30px; border-radius: var(--r-tile); position: relative; overflow: hidden;
  background: radial-gradient(110% 160% at 100% 0%, rgba(212, 175, 55, .22), transparent 55%), #1d1d1f; color: #f5f5f7;
}
html[data-theme="dark"] .page-cta, html[data-theme="dark"] .ask-box, html[data-theme="dark"] .rev-cta { background: radial-gradient(110% 160% at 100% 0%, rgba(212, 175, 55, .2), transparent 55%), #161617; }
.page-cta p, .ask-box p, .rev-cta p { margin: 0; color: rgba(245, 245, 247, .7); }
.ask-box h3, .rev-cta h3 { margin: 0 0 4px; font-size: 24px; color: #f5f5f7; }
.page-cta .btn, .ask-box .btn, .rev-cta .btn { margin: 0; }
.page-cta .btn-outline, .ask-box .btn-outline, .rev-cta .btn-outline, .page-cta .btn-ghost, .ask-box .btn-ghost, .rev-cta .btn-ghost { color: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(245, 245, 247, .35); }
.ask-actions, .addr-actions, .rev-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ask-actions .btn-outline.is-picked { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.rev-cta .link-btn, .rev-cta a:not(.btn) { color: #e3c460; }

/* Адрес и маршруты */
.addr-big { font: 600 22px/1.3 var(--display); letter-spacing: -.02em; color: var(--ink); }
.addr-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin: 24px 0; padding: 24px 26px; }
.addr-card .addr-big { margin: 0; }
.addr-label { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.copy-ok { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--accent-ink); font-weight: 600; }
.copy-ok:empty { display: none; }
.route-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.route-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 104px; padding: 14px; color: var(--ink); font-weight: 600; text-decoration: none; text-align: center; }
.route-btn:hover { text-decoration: none; color: var(--ink); }
.dist-list { padding: 0; margin: 12px 0 4px; max-width: 680px; list-style: none; }
.dist-list li { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dist-list li b { color: var(--ink); white-space: nowrap; }
.route-steps { list-style: none; counter-reset: r; padding: 0; margin: 16px 0 24px; max-width: 680px; }
.route-steps li { counter-increment: r; position: relative; display: flex; flex-direction: column; padding: 0 0 22px 50px; }
.route-steps li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; }
.route-steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 38px; bottom: 6px; width: 2px; border-radius: 1px; background: var(--line); }
.route-steps b { color: var(--ink); font-size: 17px; }
.route-steps span { color: var(--ink-60); }

/* Галерея */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 18px; min-height: 38px; border: 0; border-radius: 999px; background: var(--raised); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; transition: background-color .3s ease, color .3s ease, transform .45s var(--spring); }
.chip:hover { background: color-mix(in srgb, var(--ink) 9%, var(--raised)); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gal-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.gal-hint { margin: 0; font-size: 15px; color: var(--ink-60); }
.gal-hint a { color: var(--accent-ink); }
.gal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.room-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.room-section:last-child { border-bottom: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 22px 0; }
.gallery-grid img { width: 100%; height: 240px; object-fit: cover; border-radius: 18px; cursor: zoom-in; transition: transform .8s var(--spring), opacity .3s; }
@media (hover: hover) { .gallery-grid img:hover { transform: scale(1.02); } }

/* Вопросы и ответы */
.faq-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.faq-search { position: relative; display: block; max-width: 560px; }
.faq-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--ink-60); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.faq-search input { width: 100%; min-height: 50px; padding: 12px 16px 12px 44px; border: 0; border-radius: 14px; background: var(--raised); font: 17px var(--sans); color: var(--ink); transition: box-shadow .3s ease, background-color .3s ease; }
.faq-search input:focus { outline: none; background: var(--panel); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
details.faq-item { padding: 0; margin: 10px 0; }
/* Плашки «Совет» и «Заняты на долгий срок» на странице «Свободные даты» */
.av-tip { margin: 16px 0; padding: 22px 26px 24px; }
.av-tip h4 { display: flex; align-items: center; margin: 0 0 12px; font-size: 19px; letter-spacing: -.015em; }
.av-tip p { margin: 0; color: var(--ink-80); }
.av-tip + .av-tip { margin-top: 12px; }
@media (max-width: 640px) { .av-tip { padding: 18px 18px 20px; } .av-tip h4 { font-size: 17px; } }
/* Кнопка в конце страницы — крупная, ровно по центру */
section > p.end-cta { display: flex; justify-content: center; max-width: none; margin: 44px 0 0; text-align: center; }
.end-cta .btn { min-height: 56px; min-width: 300px; padding: 14px 40px; font-size: 17px; }
@media (max-width: 640px) { .end-cta .btn { width: 100%; min-width: 0; } }
details.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 20px 24px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary h3 { margin: 0; flex: 1; font-size: 18px; letter-spacing: -.015em; }
details.faq-item summary::after { content: ''; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 8%, transparent) center no-repeat; transition: transform .5s var(--spring), background-color .3s;
  background-image: linear-gradient(var(--ink-60), var(--ink-60)), linear-gradient(var(--ink-60), var(--ink-60)); background-size: 11px 1.5px, 1.5px 11px; }
details.faq-item[open] summary::after { transform: rotate(135deg); }
details.faq-item[open] .faq-a { animation: faqIn .5s var(--spring); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-a { padding: 0 24px 22px; color: var(--ink-80); }
.faq-a p { margin: 0; }
.faq-a a { color: var(--accent-ink); }
.faq-empty { padding: 16px 0; color: var(--ink-60); }

/* Подбор номера и сравнение */
.quiz { max-width: 780px; padding: 30px; border-radius: var(--r-tile); }
.quiz-q { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.quiz-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 20px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt { position: relative; display: flex; align-items: center; min-height: 56px; padding: 10px 14px; text-align: left; border: 0; border-radius: 16px; background: var(--panel); font: 500 16px var(--sans); color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .3s ease, background-color .3s ease, transform .45s var(--spring); }
.quiz-opt:hover { background: color-mix(in srgb, var(--accent) 6%, var(--panel)); }
.quiz-opt[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
.quiz-result { display: flex; gap: 20px; align-items: stretch; padding: 14px; border-radius: 24px; background: radial-gradient(110% 160% at 100% 0%, rgba(212, 175, 55, .22), transparent 55%), #1d1d1f; color: #f5f5f7; animation: popIn .6s var(--spring); }
.quiz-result img { width: 220px; min-height: 150px; object-fit: cover; border-radius: 16px; flex-shrink: 0; }
.qr-body { display: flex; flex-direction: column; min-width: 0; padding: 6px 4px; }
.qr-body h3 { margin: 0 0 6px; font-size: 28px; color: #f5f5f7; }
.qr-body p { margin: 0 0 8px; }
.qr-label { font-size: 12px; font-weight: 600; color: #e3c460; }
.qr-price { font: 600 22px var(--display); letter-spacing: -.02em; color: #f5f5f7; }
.qr-price span { font: 400 14px var(--sans); color: rgba(245, 245, 247, .6); }
.qr-price b { color: #f5f5f7; font-weight: 600; }
.qr-note { font-size: 13px; color: rgba(245, 245, 247, .6); }
.qr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 6px; }
.qr-actions .link-btn { color: #e3c460; }
.quiz-reset { margin-top: 12px; }
.nights-calc { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 16px; font-size: 17px; color: var(--ink); }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; overflow: hidden; background: var(--raised); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--ink); cursor: pointer; transition: background-color .3s, transform .45s var(--spring); }
.stepper button:disabled { color: var(--ink-40); cursor: default; }
.stepper button:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.stepper output { min-width: 36px; text-align: center; font-weight: 600; font-size: 18px; color: var(--ink); }
/* Сравнение номеров «лесенкой»: от простого к лучшему, у каждого следующего — только то, что добавляется.
   Ничего не нужно листать вбок: ступеньки идут сверху вниз и на телефоне, и на компьютере. */
.lad-common { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 14px; border-radius: 999px; background: var(--raised); font-size: 14px; font-weight: 500; color: var(--ink); }
.lad-common .lad-star { color: var(--accent-ink); font-size: 13px; }
.ladder { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.lad-step { position: relative; display: flex; gap: 16px; padding: 16px; border-radius: var(--r-card); background: var(--raised); overflow: visible; }
/* золотая перемычка между ступеньками */
.lad-step:not(:last-child)::after { content: ''; position: absolute; left: 59px; top: 100%; width: 2px; height: 12px; background: var(--accent); }
.lad-img { flex-shrink: 0; width: 88px; height: 88px; object-fit: cover; border-radius: 16px; }
.lad-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
.lad-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lad-head h3 { margin: 0; font: 600 19px/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); }
.lad-diff, .lad-busy { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lad-diff { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.lad-busy { background: var(--line); color: var(--ink-60); }
.lad-price { margin: 6px 0 8px; font-size: 13px; color: var(--ink-60); }
.lad-price b { font: 600 21px var(--display); letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lad-feat { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--ink-60); }
.lad-feat:not(.is-plus) li:not(:last-child)::after { content: ','; }
.lad-feat.is-plus { gap: 4px 12px; }
.lad-feat.is-plus li { color: var(--ink); font-weight: 500; }
.lad-feat.is-plus li::before { content: '+'; margin-right: 4px; font-weight: 700; color: var(--accent-ink); }
.lad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; }
.lad-btn { padding: 8px 18px; font-size: 14px; min-height: 36px; }
.lad-more { padding: 8px 2px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.lad-more span { display: inline-block; transition: transform .2s; }
.lad-step { cursor: pointer; }
@media (hover: hover) { .lad-step:hover .lad-more span { transform: translateX(3px); } }
/* окно номера на странице «Номера»: название и метка «Сейчас занят» в одну строку */
.modal-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-right: 44px; margin-bottom: 14px; }
.modal-title h2 { margin: 0; padding-right: 0; }
.lad-step.is-best { box-shadow: inset 0 0 0 2px var(--accent); }
.lad-step.is-best::before { content: 'Ваш выбор'; position: absolute; top: -10px; right: 16px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #1d1d1f); font-size: 12px; font-weight: 600; }
.lad-step.is-busy .lad-img { filter: saturate(.55); opacity: .85; }
@media (max-width: 420px) {
  .lad-step { gap: 12px; padding: 14px; }
  .lad-img { width: 72px; height: 72px; border-radius: 14px; }
  .lad-step:not(:last-child)::after { left: 49px; }
  .lad-head h3 { font-size: 18px; }
}
@media (min-width: 760px) {
  .ladder, .lad-common { max-width: 720px; }
  .lad-step { gap: 20px; padding: 18px; }
  .lad-img { width: 120px; height: 120px; border-radius: 18px; }
  .lad-step:not(:last-child)::after { left: 77px; }
}
.cmp-note { font-size: 14px; color: var(--ink-60); }
.cmp-note a { color: var(--accent-ink); }

/* Свободные даты (поверх встроенных стилей страницы) */
.av-dates { padding: 22px 24px !important; border-radius: var(--r-card) !important; box-shadow: none !important; }
.av-card { border-left: 0 !important; border-radius: var(--r-card) !important; box-shadow: inset 0 0 0 1px transparent; }
.av-card-free { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent) !important; }
.av-card-busy { opacity: .7; }
.cal-nav button { border: 0 !important; border-radius: 999px !important; background: var(--raised) !important; color: var(--ink) !important; }
.cal-block { padding: 18px !important; border-radius: var(--r-card) !important; }
.cal-block-off .cal-off { margin: 6px 0 0; color: var(--ink-60); font-size: 14px; }
.cal-day { border-radius: 50% !important; }
.cal-free { background-color: color-mix(in srgb, var(--accent) 18%, transparent) !important; color: var(--ink) !important; }
.cal-partial { background-color: color-mix(in srgb, var(--accent) 38%, transparent) !important; color: var(--ink) !important; }
.cal-full { background: transparent !important; color: var(--ink-40) !important; }
.cal-past { color: var(--ink-40) !important; }
.av-status-msg { border-left: 0 !important; border-radius: 16px !important; background: color-mix(in srgb, var(--accent) 12%, var(--panel)) !important; color: var(--ink) !important; }

@media (max-width: 760px) {
  section:has(> .service-card) { grid-template-columns: 1fr; }
  .quiz { padding: 20px 16px; border-radius: 24px; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz-result { flex-direction: column; gap: 12px; }
  .quiz-result img { width: 100%; height: 170px; min-height: 0; }
  .route-btns { grid-template-columns: 1fr; }
  .route-btn { flex-direction: row; min-height: 60px; justify-content: flex-start; gap: 14px; padding: 10px 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .page-cta, .ask-box, .rev-cta, .addr-card { padding: 22px 20px; border-radius: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-grid img { height: 160px; border-radius: 14px; }
}

/* ================================================================
   ЗНАЧКИ-ИЛЛЮСТРАЦИИ — как иконки приложений: эмодзи в скруглённом квадрате
   ================================================================ */
.ico {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; margin-right: 12px; vertical-align: middle;
  border-radius: 11px; font-size: 20px; line-height: 1; font-style: normal;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, var(--panel)), color-mix(in srgb, var(--accent) 8%, var(--panel)));
  box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 40%, transparent), 0 4px 10px -6px rgba(0, 0, 0, .25);
  transition: transform .6s var(--spring-bounce);
}
.feature .ico { width: 48px; height: 48px; margin: 0; border-radius: 13px; font-size: 24px; }
.service-card h3 { display: flex; flex-wrap: wrap; align-items: center; }
.service-card h3 .ico { width: 48px; height: 48px; border-radius: 13px; font-size: 24px; margin: 0 0 14px; flex-basis: auto; }
.service-card h3 .ico + * { flex-basis: 100%; }
.service-card h3 { flex-direction: column; align-items: flex-start; }
.direction-card h4 { display: flex; align-items: center; }
@media (hover: hover) { .service-card:hover .ico, .direction-card:hover .ico, .feature:hover .ico, .route-btn:hover .ico { transform: scale(1.08) rotate(-4deg); } }
.quiz-opt .ico { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.quiz-opt[aria-pressed="true"] .ico { transform: scale(1.1); }
.btn .ico { width: auto; height: auto; margin: 0; background: none; box-shadow: none; font-size: 16px; }
.route-btn .ico { width: 48px; height: 48px; margin: 0; border-radius: 13px; font-size: 24px; }
@media (max-width: 760px) { .route-btn .ico { width: 40px; height: 40px; font-size: 20px; } }
.amen-list .ico { width: auto; height: auto; margin: 0 5px 0 0; background: none; box-shadow: none; font-size: 1em; vertical-align: baseline; }
.modal-amenities .ico { width: 30px; height: 30px; margin-right: 10px; border-radius: 9px; font-size: 15px; }

/* ================================================================
   ДОСТУПНОСТЬ: меньше движения, меньше прозрачности, больше контраста
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .rv, .rv-photo { opacity: 1 !important; transform: none !important; }
  .ch { animation: none !important; opacity: 1; transform: none; filter: none; }
  .btn:active, .card:active, .chip:active, .quiz-opt:active, .rp-card:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  header, .nav-glass, .m-cta, .sc-bar, .nav-more-list, .cg-dots, .cg-arrow, .photo-frame figcaption, .modal::after, .dp-overlay, .lb-close, .lb-arrow {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  header { --glass: var(--paper); }
  header.theme-night { --glass: #161617; }
  .m-cta { background: var(--panel); }
  .sc-bar { background: rgba(28, 28, 30, .95); }
}
@media (prefers-contrast: more) {
  :root, .theme-night, html[data-theme="dark"] { --line: color-mix(in srgb, var(--ink) 35%, var(--paper)); --ink-60: color-mix(in srgb, var(--ink) 78%, var(--paper)); }
  .card, .booking-form, .service-card, .feature, .quiz, .faq-item { box-shadow: inset 0 0 0 1px var(--line); }
}
/* телефоны: без размытия под затемнением — плавнее при перетаскивании шторки */
@media (pointer: coarse) { .dp-overlay { -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Поля и легенда на странице «Свободные даты» */
.av-dates .dp-field, .av-dates input { background: var(--panel) !important; }
.cal-day { border-radius: 12px !important; }
.cal-legend i.cal-free, .cal-legend .cal-free { background-color: color-mix(in srgb, var(--accent) 18%, transparent) !important; }
.cal-legend i.cal-partial, .cal-legend .cal-partial { background-color: color-mix(in srgb, var(--accent) 38%, transparent) !important; }
.cal-legend i.cal-full, .cal-legend .cal-full { background: var(--raised) !important; box-shadow: inset 0 0 0 1px var(--line-strong); }
.quiz .stepper, .nights-calc .stepper { background: var(--raised); }

/* ================================================================
   ПЕРВЫЙ ЭКРАН: туманность, подсказка «листайте», блик на фото
   ================================================================ */
/* Туманность — мягкие цветные облака далеко за звездой, медленно плывут */
.nebula { position: absolute; inset: -6%; z-index: 0; pointer-events: none; will-change: transform, opacity; }
.nebula i { display: none; }
.nebula::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(37% 40.6% at 50% 41.9%, rgba(46, 58, 128, .55), rgba(46, 58, 128, .18) 55%, transparent),
    radial-gradient(26.7% 30.2% at 67.4% 47.7%, rgba(212, 175, 55, .16), rgba(212, 175, 55, .05) 55%, transparent),
    radial-gradient(25.5% 29% at 24.5% 60.4%, rgba(92, 52, 128, .32), transparent); }
/* облака неподвижны (сдвигаются только вместе с прокруткой) — медленный «дрейф» был заметен лишь как нагрузка */

/* Подсказка «листайте»: тонкая линия, по которой стекает искорка */
.scroll-cue { position: absolute; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); pointer-events: none; animation: cueIn .45s var(--spring) .5s both; }
.scroll-cue span { font: 600 10.5px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(245, 245, 247, .55); }
.scroll-cue i { position: relative; width: 1px; height: 44px; overflow: hidden; background: linear-gradient(rgba(245, 245, 247, .25), rgba(245, 245, 247, 0)); }
.scroll-cue i::after { content: ''; position: absolute; left: -1px; top: 0; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(transparent, #f3dc94); animation: cueDrop 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes cueIn { from { opacity: 0; transform: translate(-50%, 10px); } }
@keyframes cueDrop { 0% { transform: translateY(-16px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(46px); opacity: 0; } }

/* Блик пробегает по фото, когда карточка выпрямляется */
.sc-glare { position: absolute; top: -10%; bottom: -10%; left: 0; z-index: 2; width: 45%; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 250, 232, .38) 50%, transparent); will-change: transform, opacity; }

/* Звезда: чуть мягче свечение ядра */
.st-core { box-shadow: none; overflow: visible; }
/* свечение ядра звезды — градиентом (размытая тень перерисовывалась, пока звезда растёт при прокрутке) */
.st-core::after { content: ''; position: absolute; inset: -260%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 243, 196, .5) 0%, rgba(255, 243, 196, .3) 12%, rgba(212, 175, 55, .14) 26%, rgba(212, 175, 55, .05) 40%, transparent 56%); }

/* ================================================================
   ПЛАВНОСТЬ ВСЕГО САЙТА
   ================================================================ */
/* Переходы между страницами: старая растворяется, новая мягко проявляется (Chrome, Safari 18+) */
@view-transition { navigation: none; }   /* переходы между страницами без снимков — так быстрее */
header { view-transition-name: site-header; }
html:not(.theme-vt)::view-transition-group(site-header) { animation-duration: .3s; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }

/* Фото проявляются, когда загрузились, — без «выскакивания» */
img.lz { opacity: 0; transition: opacity .7s ease; }
img.lz.ok { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .nebula::before, .scroll-cue, .scroll-cue i::after, .sky-c { animation: none !important; }
  img.lz { opacity: 1; }
}

/* ================================================================
   ДОСТУПНОСТЬ: проверка по чек-листу UX Pro Rules
   ================================================================ */
/* Ссылка «Перейти к содержанию» — видна только при переходе клавишей Tab */
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 5000; padding: 10px 18px; border-radius: 980px; background: var(--accent); color: var(--on-accent); font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--spring); }
.skip-link:focus { transform: none; text-decoration: none; }
/* Заголовки подвала — теперь h2 (правильный порядок заголовков), выглядят как раньше */
.site-footer h2 { margin-bottom: 10px; font: 600 12.5px var(--sans); letter-spacing: 0; color: var(--ink); }
.direction-card h3 { margin: 0 0 8px; font: 600 21px/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.place-card h3 { display: flex; justify-content: flex-start; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
/* Пальцем легко попасть: ссылки подвала и логотип выше 24 px */
.footer-links a { display: inline-block; padding: 4px 0; }
.logo { padding: 8px 0; }
@media (pointer: coarse) { .footer-links { gap: 2px; } .footer-links a { padding: 7px 0; } }
/* Серый текст на странице «Свободные даты» темнее — читается */
.av-hint, .cal-count, .cal-weekdays span, .note { color: var(--ink-60) !important; }
/* Ошибка в форме — прямо под полем */
.field-err { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: #b3261e; animation: popIn .4s var(--spring); }
html[data-theme="dark"] .field-err { color: #ff8a80; }
.form-group input[aria-invalid="true"], .dp-field[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #b3261e; }
html[data-theme="dark"] .form-group input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #ff8a80; }

/* ================================================================
   ЛЁГКИЙ РЕЖИМ (html.lite) — слабые телефоны и компьютеры.
   Включается сам (theme.js / ui.js). Внешний вид тот же, но без
   самых тяжёлых для видеокарты эффектов: размытого стекла, бликов,
   мерцания, размытия букв при появлении.
   ================================================================ */
html.lite *, html.lite *::before, html.lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite header { background: color-mix(in srgb, var(--paper) 95%, transparent); }
html.lite header.theme-night { background: none; }
html.lite .m-cta, html.lite .nav-more-list { background: var(--panel); }
html.lite .nav-glass { background: var(--paper); }
html.lite .modal::before { background: rgba(0, 0, 0, .58); }
html.lite .modal::after { display: none; }
html.lite .ch { filter: none; animation-name: chInLite; }
html.lite .chw { will-change: auto; }   /* надпись уходит целиком — отдельные слои букв не нужны */
@keyframes chInLite { 0% { opacity: 0; } 30% { opacity: .9; } to { opacity: 1; transform: none; } }
html.lite .st-streak, html.lite .st-rays-long { animation: none; }
html.lite .st-ring, html.lite .st-rays-short, html.lite .story-sky-2, html.lite .shooting, html.lite .star-dust { display: none; }
html.lite .ph-star svg { animation: none; filter: none; }
html.lite .rv, html.lite .rv-photo { transition-duration: .5s, .6s; }

/* Лёгкий режим: огоньки пробегают по прокрутке, а после слияния рамка просто мягко горит */
html.lite .sc-run.orbit { animation: none; opacity: 0 !important; }
/* рамка «загорается» накладкой с прозрачностью — без перерисовки всего фото в каждом кадре */
.sc-frame::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: #8a7130; opacity: 0; transition: opacity .8s ease; }
html.lite .sc-frame.lit::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sc-run.orbit { animation: none; opacity: 0 !important; }
  .sc-frame.lit::after { opacity: 1; }
}

/* Короткое уведомление внизу экрана (например, «номер скопирован») */
.zn-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 300; max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: #1d1d1f; color: #f5f5f7; font-size: 14px; line-height: 1.35; text-align: center; box-shadow: 0 12px 40px -10px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s ease, transform .45s var(--spring); }
.zn-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================
   ШАПКА-КАПСУЛА: наверху страницы — свободная строка над ночным небом,
   при прокрутке отрывается от краёв и превращается в стеклянную «пилюлю».
   Размер шапки в раскладке страницы не меняется — меняется только её подложка
   (псевдоэлемент), поэтому страница под ней не дёргается.
   ================================================================ */
:root { --head-h: 60px; }
header {
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: padding .55s var(--spring);
}
header::before {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 0;
  transition: inset .55s var(--spring), border-radius .55s var(--spring), box-shadow .45s ease, background-color .5s ease, opacity .4s ease;
}
/* над ночным первым экраном, пока не листали, — без подложки: буквы прямо на небе */
header.theme-night:not(.is-scrolled)::before { opacity: 0; }
/* Над заставкой — тёмная пилюля без размытия: размытие движущейся сцены под шапкой
   стоило видеокарте больше, чем вся заставка. Пилюля появляется только прозрачностью
   и масштабом (это делает видеокарта), размеры и отступы шапки не меняются. */
header.theme-night { transition: none; padding-left: max(calc(var(--gutter) + 14px), calc((100% - 1260px) / 2 + 24px)); padding-right: max(calc(var(--gutter) + 8px), calc((100% - 1260px) / 2 + 10px)); }
header.theme-night::before {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 23, 29, .9);
  inset: 8px max(10px, calc((100% - 1260px) / 2)); border-radius: 999px;
  transition: opacity .35s ease, transform .55s var(--spring);
}
header.theme-night:not(.is-scrolled)::before { transform: scale(1.03, 1.25); }
header.is-scrolled { box-shadow: none !important; padding-left: max(calc(var(--gutter) + 14px), calc((100% - 1260px) / 2 + 24px)); padding-right: max(calc(var(--gutter) + 8px), calc((100% - 1260px) / 2 + 10px)); }
header.is-scrolled::before {
  inset: 8px max(10px, calc((100% - 1260px) / 2));
  border-radius: 999px;
  box-shadow: inset 0 0 0 .5px var(--line), 0 12px 32px -14px rgba(0, 0, 0, .28);
}
header.is-scrolled.theme-night::before { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 14px 36px -12px rgba(0, 0, 0, .65); }
/* наверху логотип чуть крупнее — при прокрутке шапка «собирается» */
.logo { transform-origin: 0 50%; transition: transform .55s var(--spring); }
header:not(.is-scrolled) .logo { transform: scale(1.08); }

/* Пункты меню: золотая плашка плавно переезжает за курсором */
header nav { position: relative; isolation: isolate; }
header nav > a, .nav-more summary { position: relative; }
.nav-pill { position: absolute; z-index: -1; left: 0; top: 50%; height: 32px; margin-top: -16px; border-radius: 999px; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 17%, transparent); box-shadow: inset 0 0 0 .5px color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: 0; transition: transform .5s var(--spring), width .5s var(--spring), opacity .25s ease; }
.nav-pill.on { opacity: 1; }
.nav-pill.jump { transition: opacity .25s ease; }
/* текущая страница: маленькая золотая звёздочка под пунктом */
header nav > a.active::after, .nav-more.has-active > summary::before {
  content: ''; position: absolute; left: 50%; bottom: -10px; width: 7px; height: 7px; margin-left: -3.5px; background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.nav-more.has-active > summary::before { margin-left: -7px; }

/* Телефон: значок трубки и зелёная точка */
@media (min-width: 641px) {
  header .phone { display: inline-flex; align-items: center; gap: 7px; position: relative; }
  header .phone::before {
    content: ''; width: 14px; height: 14px; flex-shrink: 0; background: var(--accent-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .45s var(--spring);
  }
  header .phone::after { content: ''; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -9px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 1.5px var(--paper); }
  header.theme-night .phone::after { box-shadow: 0 0 0 1.5px #1b1c21; }
  header .phone:hover::before { transform: rotate(-12deg) scale(1.1); }
}

/* Кнопка брони: цена и редкий блик */
.header-cta { position: relative; overflow: hidden; gap: 6px; }
.header-cta .hc-price { font-weight: 400; opacity: .78; }
.header-cta .hc-price::before { content: '·'; margin-right: 6px; opacity: .6; }
.header-cta::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-130%) skewX(-18deg);
  animation: ctaShine 7s ease-in-out 2.5s infinite; }
@keyframes ctaShine { 0%, 82% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(330%) skewX(-18deg); } }
@media (max-width: 1359px) { .header-cta .hc-price { display: none; } }

/* слабые устройства и «меньше прозрачности»: подложка без размытия */
html.lite header { background: none !important; }
html.lite header::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--paper) 96%, transparent); }
html.lite header.theme-night::before { background: rgba(27, 28, 33, .97); }
@media (prefers-reduced-transparency: reduce) { header::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
@media (prefers-reduced-motion: reduce) {
  header, header::before, .logo, .nav-pill { transition: none; }
  .header-cta::after { animation: none; display: none; }
}
.logo-text { white-space: nowrap; }
@media (max-width: 760px) {
  header.is-scrolled { padding-left: calc(var(--gutter) + 6px); padding-right: calc(var(--gutter) - 4px); }
  header.is-scrolled::before { inset: 8px 8px; }
  header.theme-night { padding-left: calc(var(--gutter) + 6px); padding-right: calc(var(--gutter) - 4px); }
  header.theme-night::before { inset: 8px 8px; }
  header { gap: 6px; }
}

/* ================================================================
   «КАК НА iPHONE» — пилюли-переключатели, островок, листы, суперэллипсы
   ================================================================ */
/* --- Пилюли-переключатели: плашка переезжает к выбранному варианту --- */
.seg { position: relative; isolation: isolate; }
.seg-thumb { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; opacity: 0;
  transition: transform .5s var(--spring), width .5s var(--spring), height .5s var(--spring), opacity .2s ease; will-change: transform; }
.seg-thumb.seg-jump { transition: opacity .2s ease; }
/* фильтры (галерея, вопросы): дорожка-капсула, тёмная плашка */
.chips.seg { flex-wrap: nowrap; gap: 2px; width: max-content; max-width: 100%; padding: 4px; border-radius: 999px; background: var(--raised); overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 0 0 .5px var(--line); }
.chips.seg::-webkit-scrollbar { display: none; }
.chips.seg .chip { flex-shrink: 0; background: transparent; white-space: nowrap; transition: color .3s ease, transform .3s var(--spring); }
.chips.seg .chip:hover { background: transparent; color: var(--ink); }
.chips.seg-ready .chip[aria-pressed="true"] { background: transparent; color: var(--paper); }
.chips.seg .seg-thumb { border-radius: 999px; background: var(--ink); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .3); }
/* вопросы подбора номера: золотая рамка переезжает между карточками */
.quiz-opts.seg-ready .quiz-opt[aria-pressed="true"] { box-shadow: none; background: transparent; }
.quiz-opts.seg .quiz-opt { background: var(--panel); }
.quiz-opts.seg-ready .quiz-opt[aria-pressed="true"] { background: transparent; }
.quiz-opts .seg-thumb { z-index: 1; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--accent), 0 6px 18px -8px color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
/* мессенджер в форме: белая плашка как в «Настройках» */
.messenger-options.seg-ready .messenger-card input:checked + .messenger-card-content { background: transparent; box-shadow: none; }
html[data-theme="dark"] .messenger-options.seg-ready .messenger-card input:checked + .messenger-card-content { background: transparent; }
.messenger-options .seg-thumb { border-radius: 10px; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 3px 10px rgba(0, 0, 0, .08); }
html[data-theme="dark"] .messenger-options .seg-thumb { background: #48484a; }

/* --- Островок: шапка-капсула сжимается в чёрную пилюлю --- */
.island { position: absolute; z-index: 5; left: 50%; top: 8px; height: calc(var(--head-h) - 16px); width: var(--iw, 160px);
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; border-radius: 999px;
  background: #000; color: #f5f5f7; font: 600 14px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .55);
  opacity: 0; pointer-events: none; transform: translateX(-50%) scale(.6, .7);
  transition: transform .55s var(--spring), opacity .25s ease, width .55s var(--spring); }
.island.isl-measure { transition: none; width: auto !important; visibility: hidden; }
header.island-on .island { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
/* пока горит островок — содержимое шапки уходит, капсула «стягивается» */
header > *:not(.island) { transition: opacity .3s ease, filter .3s ease, transform .5s var(--spring); }
header.island-on > *:not(.island) { opacity: 0; filter: blur(6px); pointer-events: none; }
header.island-on > .logo { transform: scale(.92); }
header.island-on::before { opacity: 0 !important; inset: 8px calc(50% - var(--iw, 160px) / 2) !important; border-radius: 999px; }
.island.isl-pop { animation: islPop .5s var(--spring); }
@keyframes islPop { 0% { scale: .92; } 45% { scale: 1.04; } 100% { scale: 1; } }
.isl-ico { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; }
.isl-ico svg { width: 22px; height: 22px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.isl-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid rgba(255, 255, 255, .22); border-top-color: #f6dc8e; animation: islSpin .8s linear infinite; }
@keyframes islSpin { to { rotate: 360deg; } }
.isl-ok-bg { fill: #34c759; stroke: none; }
.isl-ok-tick { stroke: #fff; stroke-width: 2.4; stroke-dasharray: 16; stroke-dashoffset: 16; animation: islTick .45s .15s var(--spring) forwards; }
@keyframes islTick { to { stroke-dashoffset: 0; } }
.isl-err-bg { fill: #ff453a; stroke: none; }
.isl-err-mark { stroke: #fff; stroke-width: 2.4; }
.isl-moon { fill: #f0e9d6; stroke: none; animation: islMoon .7s var(--spring); transform-origin: center; }
@keyframes islMoon { from { rotate: -60deg; scale: .4; opacity: 0; } }
.isl-sun { fill: #f4c446; stroke: none; }
.isl-rays { stroke: #f4c446; stroke-width: 1.8; transform-origin: center; animation: islRays .8s var(--spring); }
@keyframes islRays { from { rotate: -90deg; scale: .5; opacity: 0; } }
.isl-text { overflow: hidden; text-overflow: ellipsis; }

/* --- Лист снизу (телефон) / окно по центру (компьютер) --- */
.zp { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center; padding: 16px; }
.zp.show { display: flex; }
.zp-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); opacity: 0; transition: opacity .35s ease; }
.zp.open .zp-scrim { opacity: 1; }
.zp-card { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 24px 20px; border-radius: 26px; background: var(--panel); color: var(--ink-80);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(14px) scale(.96);
  transition: transform .5s var(--spring), opacity .3s ease; }
.zp.open .zp-card { opacity: 1; transform: none; }
.zp-grip { display: none; }
.zp-title { margin: 0 0 14px; font: 600 22px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); }
.zp-actions { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.zp-actions .btn { margin: 0; }
.zp-cancel { min-height: 44px; border: 0; background: none; color: var(--accent-ink); font: 500 16px var(--sans); cursor: pointer; border-radius: 12px; }
.zp-cancel:active { background: var(--field); }
.zp.zp-mobile { align-items: flex-end; padding: 0; }
.zp-mobile .zp-card { width: 100%; max-height: 88dvh; padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; opacity: 1;
  transform: translate3d(0, 100%, 0); transition: transform .5s cubic-bezier(.32, .72, 0, 1); }
.zp-mobile.open .zp-card { transform: translate3d(0, var(--zy, 0px), 0); }
.zp-mobile.zp-drag .zp-card { transition: none; }
.zp-mobile .zp-grip { display: block; width: 38px; height: 5px; margin: 2px auto 14px; border-radius: 3px; background: var(--line-strong); }
html.zp-lock { overflow: hidden; }
/* итог заявки в листе */
.zp-sum { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--field); }
.zp-sum img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.zp-sum b { display: block; font-size: 17px; color: var(--ink); }
.zp-sum span { display: block; font-size: 14px; color: var(--ink-60); margin-top: 2px; }
.zp-rows { margin: 12px 0 0; padding: 0; list-style: none; }
.zp-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: .5px solid var(--line); font-size: 15px; }
.zp-rows li span { color: var(--ink-60); }
.zp-rows li b { color: var(--ink); font-weight: 500; text-align: right; }
.zp-rows li.zp-total { border-bottom: 0; font-size: 17px; }
.zp-rows li.zp-total b { font-weight: 700; }
.zp-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-60); }

/* --- Отклик на нажатие: всё, что нажимается, чуть «проседает» --- */
.chip:active, .quiz-opt:active, .rp-card:active, .dr-contacts a:active i, .dr-nav > a:active, .header-cta:active, .zp-ok:active, .island:active { transform: scale(.96); transition-duration: .1s; }

/* --- Суперэллипсы (плавные углы, как у иконок iPhone) — там, где браузер умеет --- */
@supports (corner-shape: squircle) {
  .card, .rp-card, .service-card, .direction-card, .review-card, .faq-item, .addr-card, .route-btn, .quiz, .quiz-opt, .lad-step, .av-dates, .av-card, .cal-block,
  .feature, .route, .booking-form, .zp-card, .dp-dialog, .dr-panel, .bf-aside > *, .sc-frame, .sc-inner, .sc-bar, .m-cta, .price-calc, .form-notice, .messenger-options, .dp-field, .form-group input, .faq-search {
    corner-shape: squircle;
  }
  :root { --r-card: 28px; --r-tile: 38px; }
  .rp-card, .quiz-opt, .zp-sum, .dp-field, .form-group input { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .seg-thumb, .island, header > *:not(.island), .zp-card { transition-duration: .01s !important; }
  .island.isl-pop, .isl-ok-tick, .isl-moon, .isl-rays { animation: none; stroke-dashoffset: 0; }
}
html.lite .zp-scrim { background: rgba(0, 0, 0, .55); }

/* --- Просмотр фото как в «Фото» на iPhone: вырастает из миниатюры, тянется пальцем --- */
.lb { background: rgba(0, 0, 0, calc(.94 * var(--lbA, 1))); transition: background-color .3s ease; }
.lb:not(.lb-open) { background: rgba(0, 0, 0, 0); }
.lb.lb-drag { transition: none; }
.lb-fig img { transition: transform .45s var(--spring), opacity .3s ease; will-change: transform; touch-action: none; }
.lb.lb-drag .lb-fig img { transition: none; }
.lb .lb-close, .lb .lb-arrow, .lb figcaption { transition: opacity .25s ease; }
.lb:not(.lb-open) .lb-close, .lb:not(.lb-open) .lb-arrow, .lb:not(.lb-open) figcaption, .lb.lb-drag .lb-close, .lb.lb-drag .lb-arrow, .lb.lb-drag figcaption { opacity: 0; }
.lb.lb-out .lb-fig img { transition: transform .36s cubic-bezier(.32, .72, 0, 1), opacity .36s ease; }
@media (prefers-reduced-motion: reduce) { .lb-fig img { transition: opacity .2s ease !important; } }

/* ================================================================
   СКОРОСТЬ: браузер не рисует и не раскладывает блоки ниже экрана, пока до них не долистали
   (страница открывается быстрее, заставка не подтормаживает на старте)
   ================================================================ */
body > section:not(.story):not(.hero), body > .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* полоса прокрутки не исчезает, когда открыто окно или меню, — страница не перестраивается */
html { scrollbar-gutter: stable; }
/* затемнение под окном номера — отдельный слой */
.modal.has-scrim::before { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); pointer-events: none; will-change: opacity; }
html.lite .modal-scrim { background: rgba(0, 0, 0, .58); }
.modal-content { will-change: transform, opacity; }
/* блок уже дорисован заранее — дальше браузер держит его готовым */
body > .cv-ready { content-visibility: visible; }
/* шапка над ночным первым экраном — одного цвета с небом: у «ночных» блоков есть свой фон, у шапки его быть не должно */
header.theme-night { background-color: transparent; }
