/* Шаблон «Ґорґани» — технічний: темний графіт і світлі розділи, один сильний акцент (сигнальний помаранчевий, як на
   гірському спорядженні), точна сітка й тонкі лінії, нумерація розділів (01, 02…), цифри моноширинним (JetBrains Mono),
   текст і заголовки — Geologica. Шапка, перший екран і темні розділи — на всю ширину, без рамок і заокруглень; кнопки —
   заокруглені. Спершу телефон, потім великі екрани.
   Спільні вузли (календар, форма заявки, вікна, нижня панель) мають ту саму розмітку, що й у «Карпатах» і «Полонині»
   (../common.js) — тут лише їхній вигляд; правила, що виправляли знайдені раніше вади, перенесено разом з поясненнями. */
:root {
  --bg: #fff;
  /* Нейтральна світла підкладка для дрібних елементів (наведення, поля, календар у формі) — холодна сіра, без відтінку */
  --soft: #f1f2f4;
  --bg-2: #e3e5e8;
  --ink: #0f1114;
  --ink-2: #33383f;
  --muted: #5b6169;
  --line: rgba(15, 17, 20, 0.12);
  --line-2: rgba(15, 17, 20, 0.24);
  /* Графіт: темні розділи, картки на темному, найтемніший — шапка й підвал */
  --g1: #16191d;
  --g2: #1f2328;
  --g3: #0e1013;
  --d-line: rgba(255, 255, 255, 0.12);
  --d-line-2: rgba(255, 255, 255, 0.24);
  --d-muted: rgba(255, 255, 255, 0.66);
  /* Акцент — сигнальний помаранчевий: кнопки й акценти на темному; глибший — для тексту на білому */
  --accent: #ff6a2b;
  --accent-2: #ff8452;
  --accent-3: #c4450d;
  --on-accent: #170a04;
  --sans: "Geologica", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  /* Відступ розділу. Два світлі розділи поспіль не додають відступи один до одного (див. .section + .section) */
  --section: clamp(52px, 6vw, 88px);
  --hdr-h: 72px;
  --demo-h: 0px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgba(8, 10, 13, 0.08), 0 16px 36px -22px rgba(8, 10, 13, 0.4);
  --shadow-lg: 0 30px 70px -30px rgba(4, 6, 8, 0.6);
  --card: 0 1px 2px rgba(8, 10, 13, 0.06), 0 18px 40px -22px rgba(8, 10, 13, 0.34);
}
@media (max-width: 699.98px) { :root { --hdr-h: 64px; } }
/* Дуже вузькі екрани (250–300 px): поля по краях трохи менші (календар — див. «Вільні дати») */
@media (max-width: 299.98px) { :root { --gutter: 14px; } }
:root:has(.demobar) { --demo-h: 38px; }

*, *::before, *::after { box-sizing: border-box; }
/* Атрибут hidden ховає завжди, навіть якщо в елемента є display: flex чи grid */
[hidden] { display: none !important; }
/* -webkit-tap-highlight-color: transparent — на телефоні Chrome сам підсвічує блакитним прямокутником усе, що не кнопка
   (пункти списку будиночків, фото в картці, посилання); підсвітка лишалась і виглядала негарно (користувач, 23.10) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--demo-h) + var(--hdr-h)); }
/* Меню відкрите — сторінка не прокручується: смуга прокрутки зникає, її ширину (--sbw) компенсуємо відступом, щоб сторінка
   не зсувалась убік. Вікно (заявка, будиночок, галерея) на компʼютері смугу прокрутки сторінки лишає — дві смуги, у вікні
   й на сторінці: без неї праворуч під вікном лишалось порожнє місце (користувач, 24.10, як у «Карпатах»); колесо миші над
   затемненням гортає сторінку під вікном. На телефоні (дотик) — як і раніше */
html.menu-open { overflow: hidden; padding-right: var(--sbw, 0px); }
/* Шапка й далі на всю ширину (темна смуга доходить до краю, де була смуга прокрутки), а її вміст не зсувається */
html.menu-open .hdr__bar { border-right: var(--sbw, 0px) solid var(--g3); }
html.menu-open .demobar { border-right: var(--sbw, 0px) solid var(--accent); }
@media (pointer: coarse) {
  html:has(dialog[open]) { overflow: hidden; padding-right: var(--sbw, 0px); }
  html:has(dialog[open]) .hdr__bar { border-right: var(--sbw, 0px) solid var(--g3); }
  html:has(dialog[open]) .demobar { border-right: var(--sbw, 0px) solid var(--accent); }
}
.is-preview .hero__media img { animation: none; transform: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Довге слово власника переноситься, а не вилазить за край на вузькому екрані */
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.15em; height: 1.15em; flex: none; }
.ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); background: var(--bg-2); }
.ph .i { width: 32px; height: 32px; opacity: 0.5; }

/* ---------- Типографіка ---------- */
.h2 { font-weight: 600; font-size: clamp(30px, 3.9vw, 52px); line-height: 1.06; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.h3 { font-weight: 600; font-size: clamp(27px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.4em; }
.h4 { font: 600 12px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 30px 0 14px; }
.h2 em, .h3 em { font-style: normal; color: var(--accent-3); }
.eyebrow { margin: 0 0 10px; font: 500 12.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.section { padding-block: var(--section); }
/* Світлі розділи йдуть поспіль на білому — між ними один відступ, а не два */
.section:not(.section--dark) + .section:not(.section--dark) { padding-top: 0; }
/* Перехід з меню: заголовок розділу — одразу під шапкою, а не після порожнього відступу */
.section { scroll-margin-top: calc(24px - var(--section)); }
.section:not(.section--dark) + .section:not(.section--dark) { scroll-margin-top: 24px; }
.section--dark { background: var(--g1); color: #fff; }
.section--dark .h2 em { color: var(--accent); }
.section--dark .section__lead { color: var(--d-muted); }
/* Номер і назва розділу над заголовком — моноширинним, далі тонка лінія до краю (як на кресленні) */
.idx { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 500 12.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.idx b { font-weight: 600; color: var(--accent-3); }
.idx span { min-width: 0; overflow-wrap: anywhere; }
.idx::after { content: ""; flex: 1 1 24px; height: 1px; background: var(--line-2); }
.section--dark .idx, .perks .idx { color: var(--d-muted); }
.section--dark .idx b { color: var(--accent); }
.section--dark .idx::after { background: var(--d-line-2); }
.section__head { display: grid; gap: 16px 56px; margin-bottom: clamp(28px, 3.2vw, 46px); }
@media (min-width: 900px) { .section__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; } }
.section__lead { margin: 0; max-width: 48ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; color: var(--ink-2); }
.prose p { margin: 0 0 1em; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link .i { width: 16px; height: 16px; }

/* ---------- Кнопки ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1.15 var(--sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -16px rgba(255, 106, 43, 0.9); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.36); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.6); }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color 0.2s, border-color 0.2s; }
.chip .i { width: 17px; height: 17px; }
.chip:hover { border-color: var(--ink); }
.chip--light { border-color: var(--d-line-2); color: #fff; }
.chip--light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .i { width: 16px; height: 16px; }
.stars span:not(.on) { opacity: 0.3; }

/* ---------- Демо-смужка ---------- */
.demobar { height: var(--demo-h); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; text-align: center; line-height: 1.2; }
.demobar .i { width: 16px; height: 16px; }
.demobar a { color: var(--on-accent); }
/* Рядки рівні — без одного слова («ви.») в останньому рядку на вузькому екрані */
.demobar span { text-wrap: balance; }
@media (max-width: 640px) { .demobar span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; } :root:has(.demobar) { --demo-h: 44px; } }
/* Вужче за 360 px довгий текст не вміщається у два рядки — показуємо коротший (з запасом на смугу прокрутки) */
.demobar .demobar__short { display: none; }
@media (max-width: 359.98px) { .demobar .demobar__long { display: none; } .demobar .demobar__short { display: -webkit-box; } }
@media (max-width: 299.98px) { :root:has(.demobar) { --demo-h: 54px; } .demobar span { -webkit-line-clamp: 3; font-size: 11.5px; } }

/* ---------- Шапка: темна смуга на всю ширину ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; }
.hdr__bar { background: var(--g3); color: #fff; border-bottom: 1px solid var(--d-line); transition: box-shadow 0.3s; }
.hdr.is-solid .hdr__bar { box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.9); }
.hdr__in { display: flex; align-items: center; gap: 12px; height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.logo__mark { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--d-line-2); color: var(--accent); }
.logo__mark svg { width: 24px; height: 24px; }
.logo__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.logo__text small { font: 500 10px/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 4px; }
/* Довга назва власника не обрізається «…»: якщо не вміщається в рядок, переноситься на другий (рівними рядками) */
.logo__text b { font-weight: 700; font-size: 20px; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.logo--long .logo__text b { font-size: 17px; }
.logo--xl .logo__text b { font-size: 15px; }
.hdr__nav { display: none; gap: 2px; margin-left: auto; }
.hdr__nav a { position: relative; padding: 9px 13px; text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, 0.78); white-space: nowrap; transition: color 0.2s; }
.hdr__nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.hdr__nav a:hover { color: #fff; }
.hdr__nav a:hover::after { transform: none; }
.hdr__end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr__phone { display: none; align-items: center; gap: 8px; padding: 0 12px; text-decoration: none; font: 500 14.5px/1 var(--mono); white-space: nowrap; color: #fff; }
.hdr__phone .i { width: 18px; height: 18px; color: var(--accent); }
.hdr__cta { display: none; }
.hdr__burger { flex: none; width: 46px; height: 46px; border: 1px solid var(--d-line-2); border-radius: 12px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; transition: background-color 0.2s, border-color 0.2s; }
.hdr__burger:hover { border-color: #fff; }
.hdr__burger[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hdr__burger .i { width: 22px; height: 22px; }
@media (min-width: 480px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1100px) { .hdr__nav { display: flex; } .hdr__end { margin-left: 8px; } .hdr__burger { display: none; } }
@media (min-width: 1320px) { .hdr__phone { display: inline-flex; } }
@media (max-width: 380px) {
  .hdr__in { gap: 8px; }
  .logo { gap: 8px; }
  .logo__mark { width: 36px; height: 36px; border-radius: 10px; }
  .logo__mark svg { width: 20px; height: 20px; }
  .logo__text b { font-size: 18px; }
  .logo--long .logo__text b { font-size: 16px; }
  .hdr__burger { width: 42px; height: 42px; }
}
/* Найвужчі екрани: дуже довга назва — дрібніше й до трьох рядків (у шапці 64 px висоти це вміщається) */
@media (max-width: 339.98px) {
  .logo--long .logo__text b { font-size: 15px; }
  .logo--xl .logo__text b { font-size: 13px; -webkit-line-clamp: 3; }
}

/* Меню на телефоні й планшеті: компактна темна панель одразу під шапкою, без прокрутки всередині (на 320×568
   уміщається); розділи — з номерами, як на сторінці. Тло закриває меню (data-menu-close), пункт веде до розділу. */
/* Ширина 100vw, а не inset: 0: коли меню закривається, смуга прокрутки сторінки повертається одразу, а меню ще згасає —
   з inset: 0 воно б на мить звузилось на ширину смуги й панель смикнулась */
.menu { position: fixed; inset: 0 auto 0 0; width: 100vw; z-index: 45; visibility: hidden; transition: visibility 0s 0.26s; }
.menu-open .menu { visibility: visible; transition: visibility 0s; }
.menu__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 8, 0.56); opacity: 0; transition: opacity 0.26s ease; }
.menu-open .menu__backdrop { opacity: 1; }
.menu__panel { position: absolute; top: calc(var(--demo-h) + var(--hdr-h)); left: 0; right: 0; max-height: calc(100dvh - var(--demo-h) - var(--hdr-h)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 4px var(--gutter) 16px; border-radius: 0 0 20px 20px; background: var(--g3); color: #fff; border-top: 1px solid var(--d-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); opacity: 0; transform: translateY(-8px); transition: opacity 0.22s ease, transform 0.26s var(--ease); }
.menu-open .menu__panel { opacity: 1; transform: none; }
/* Без видимої смуги прокрутки (на невисокому екрані меню все одно гортається пальцем і коліщатком) */
.menu__panel::-webkit-scrollbar { display: none; }
/* Планшет: панель праворуч під кнопкою меню, а не на всю ширину */
@media (min-width: 700px) { .menu__panel { left: auto; width: 440px; padding-inline: 18px; border-radius: 0 0 0 20px; border-left: 1px solid var(--d-line); } }
/* Розділи — простим списком: номер моноширинним, тонкі лінії між рядками */
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 2px; border-bottom: 1px solid var(--d-line); text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; touch-action: manipulation; transition: color 0.2s; }
.menu__nav a small { flex: none; width: 2.2ch; font: 500 12px/1 var(--mono); color: var(--accent); }
.menu__nav a:hover, .menu__nav a:focus-visible, .menu__nav a:active { color: var(--accent); }
.menu__foot { display: grid; gap: 10px; margin-top: 14px; }
/* Звʼязок — рядок кнопок: телефон і месенджери (назва — для читачів екрана) */
.menu__contacts { display: flex; justify-content: center; gap: 10px; }
.menu__ic { position: relative; flex: none; width: 44px; height: 44px; border: 1px solid var(--d-line-2); border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.menu__ic:hover { border-color: var(--accent); color: var(--accent); }
.menu__ic .i { width: 20px; height: 20px; }
.menu__ic span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Невисокий телефон (320×568): рядки трохи нижчі — меню вміщається без прокрутки */
@media (max-height: 640px) { .menu__nav a { min-height: 39px; font-size: 17px; } .menu__foot { margin-top: 10px; gap: 8px; } .menu__ic { width: 40px; height: 40px; } }

/* ---------- Перший екран: фото на всю ширину, без рамки ---------- */
/* z-index: випадна панель швидкого пошуку лежить поверх наступних розділів */
.hero { position: relative; z-index: 3; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding: calc(var(--demo-h) + var(--hdr-h) + 28px) 0 clamp(24px, 3.2vw, 40px); color: #fff; background: var(--g3); }
.hero__media { position: absolute; inset: calc(var(--demo-h) + var(--hdr-h)) 0 0; z-index: -1; overflow: hidden; background: var(--g3); }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
/* Фото рівно трохи темніше, донизу — глибше (під текстом), без темної «плями» (користувач, 24.10) */
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 13, 0.34) 0%, rgba(8, 10, 13, 0.18) 34%, rgba(8, 10, 13, 0.42) 62%, rgba(8, 10, 13, 0.86) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: end; }
@media (min-width: 1000px) { .hero__in { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; } }
.hero__text { min-width: 0; max-width: 880px; }
.hero__eyebrow { display: flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 16px; font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.hero__eyebrow .i { width: 17px; height: 17px; color: var(--accent); }
.hero__eyebrow span { min-width: 0; overflow-wrap: anywhere; }
.hero__title { font-weight: 600; font-size: clamp(38px, 10.6vw, 58px); line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 16px; text-wrap: balance; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.32); }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin: 0 0 22px; max-width: 48ch; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.55; color: rgba(255, 255, 255, 0.93); text-shadow: 0 1px 14px rgba(4, 6, 8, 0.7), 0 0 2px rgba(4, 6, 8, 0.4); }
/* Цифри першого екрана — рядком через тонкі лінії, моноширинним (як табличка характеристик) */
.hero__stats { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.hero__stats--1 { grid-template-columns: 1fr; }
.hero__stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero__stats li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 12px 0 0; }
.hero__stats li + li { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
.hero__stats b { font: 500 clamp(18px, 5.2vw, 26px)/1.1 var(--mono); letter-spacing: -0.03em; white-space: nowrap; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.hero__stats span { font: 500 11px/1.35 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 20px; text-decoration: none; font: 500 13px/1.3 var(--mono); color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 12px rgba(4, 6, 8, 0.6); }
@media (max-width: 520px) { .hero__actions .btn { width: 100%; } }
@media (max-width: 699.98px) { .hero__rating { display: none; } }
@media (min-width: 700px) { .hero__title { font-size: clamp(56px, 7.2vw, 90px); } .hero__stats b { font-size: clamp(22px, 2.2vw, 28px); } }
/* На компʼютері заголовок зменшується на невисоких екранах — перший екран з пошуком уміщається цілком */
@media (min-width: 1000px) { .hero__title { font-size: clamp(52px, min(6.2vw, 10.5svh), 84px); } }
/* Плавна поява першого екрана */
.js .hero__text > *, .js .next, .js .quick-wrap { animation: rise 0.8s var(--ease) both; }
.js .hero__text > :nth-child(2) { animation-delay: 0.05s; }
.js .hero__text > :nth-child(3) { animation-delay: 0.1s; }
.js .hero__text > :nth-child(4) { animation-delay: 0.15s; }
.js .hero__text > :nth-child(5) { animation-delay: 0.2s; }
.js .hero__text > :nth-child(6) { animation-delay: 0.25s; }
.js .hero__text > :nth-child(7) { animation-delay: 0.3s; }
.js .next { animation-delay: 0.32s; }
.js .quick-wrap { animation-delay: 0.38s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.is-preview .hero__text > *, .is-preview .next, .is-preview .quick-wrap { animation: none; }

/* Акція — смужка над заголовком */
.promo { display: flex; width: fit-content; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 18px; padding: 6px 14px 6px 6px; border-radius: 12px; background: rgba(13, 15, 18, 0.62); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.3; transition: border-color 0.2s; }
.promo:hover { border-color: var(--accent); }
.promo__tag { flex: none; padding: 5px 9px; border-radius: 8px; background: var(--accent); color: var(--on-accent); font: 600 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.promo__text { min-width: 0; }
.promo .i { flex: none; width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 520px) { .promo { font-size: 13px; gap: 8px; } .promo__tag { font-size: 10.5px; padding: 5px 7px; } }

/* «Найближче вільно» — з календаря: дати, будиночок, сума й кнопка, що відкриває заявку саме на ці дати */
.next { position: relative; display: grid; gap: 6px; min-width: 0; padding: 18px 20px 20px; border-radius: var(--r-lg); background: rgba(12, 14, 17, 0.7); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.8); }
.next__label { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
/* Зелена точка «наживо»: дані з календаря, не з рекламного тексту */
.next__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; }
.next__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #3ddc84; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
.next__dates { margin: 0; font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.next__meta { margin: 0; font: 500 13px/1.45 var(--mono); color: rgba(255, 255, 255, 0.76); }
.next__meta span { white-space: nowrap; }
.next__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.next__price { display: flex; flex-direction: column; margin: 0; }
.next__price b { font: 500 21px/1.15 var(--mono); letter-spacing: -0.03em; white-space: nowrap; }
.next__price small { font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
/* Кнопка поруч із сумою, а коли не вміщається — рядком нижче на всю ширину */
.next__go { flex: 1 1 auto; }
@media (min-width: 1000px) { .next__go { flex: 0 0 auto; padding: 0 16px; } .next__go .i { display: none; } }
/* Телефон: картка компактніша й іде одразу після кнопок першого екрана */
@media (max-width: 999.98px) {
  .next { max-width: 560px; padding: 14px 16px 16px; }
  .next__dates { font-size: 22px; }
  .next__row { margin-top: 6px; padding-top: 12px; }
}

.quick-wrap { display: none; }
@media (min-width: 960px) {
  .quick-wrap { display: block; position: relative; z-index: 2; margin-top: clamp(20px, 3.2vh, 34px); }
  .quick { display: grid; grid-template-columns: 1fr 1fr 0.8fr auto; align-items: center; padding: 8px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 18px 34px -20px rgba(0, 0, 0, 0.7); }
  .quick__f { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-width: 0; min-height: 60px; padding: 8px 24px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; transition: background-color 0.2s, box-shadow 0.2s; }
  /* Тонкі роздільники між полями (не біля підсвіченого поля) */
  .quick__f + .quick__f::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line-2); }
  .quick__f:hover::before, .quick__f:hover + .quick__f::before, .quick__f.is-active::before, .quick__f.is-active + .quick__f::before { opacity: 0; }
  .quick__f span { font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .quick__f b { font-size: 16.5px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
  .quick__date:hover { background: var(--soft); }
  .quick__date.is-empty b { color: var(--muted); font-weight: 500; }
  .quick__date.is-active { background: var(--soft); box-shadow: inset 0 0 0 2px var(--accent); }
  .quick__date:focus-visible { outline-offset: -3px; }
  .quick__go { min-height: 60px; padding: 0 30px; border-radius: 12px; font-size: 16px; }
  /* Випадна панель з календарем на 2 місяці — під пошуком або над ним (enhance.js вибирає, де вміщається) */
  .quick__pop { position: absolute; top: calc(100% + 12px); left: var(--gutter); z-index: 5; width: min(760px, calc(100% - var(--gutter) * 2)); padding: 22px 26px 16px; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); scroll-margin-bottom: 20px; animation: popIn 0.25s var(--ease); }
  .quick__pop[hidden] { display: none; }
  .quick__pop.is-up { top: auto; bottom: calc(100% + 12px); animation-name: popDown; }
  @keyframes popDown { from { transform: translateY(-14px) scale(0.985); opacity: 0; } }
  .quick__pop.is-leaving { opacity: 0; transform: translateY(10px) scale(0.99); transition: opacity 0.22s ease, transform 0.22s ease; pointer-events: none; }
  .quick__pop.is-up.is-leaving { transform: translateY(-10px) scale(0.99); }
  .quick__pop .day { aspect-ratio: auto; height: 44px; }
  .quick__guests { cursor: default; }
  .quick__guests .step { min-height: 0; margin: 1px 0 0 -6px; padding: 0; border: 0; background: transparent; gap: 4px; justify-content: flex-start; }
  .quick__guests .step__btn { width: 30px; height: 30px; border-radius: 8px; }
  .quick__guests .step__v { min-width: 2.2ch; font-size: 16.5px; font-weight: 600; }
  .quick__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  /* Два рядки зарезервовано: висота панелі не змінюється від підказки до підказки */
  .quick__status { flex: 1; min-width: 0; margin: 0; min-height: 2.9em; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
  .quick__clear { flex: none; padding: 4px 0; border: 0; background: none; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
}
/* Невисокі екрани ноутбуків (1366×768, 1280×720, 1920×1080 зі збільшенням 125%): шапка нижча, перший екран щільніший,
   щоб швидкий пошук було видно повністю (і планшет 1024×768 лежачи). .98 — бо з масштабом 125% висота буває дробовою. */
@media (min-width: 960px) and (max-height: 819.98px) {
  :root { --hdr-h: 64px; }
  .hero { padding-top: calc(var(--demo-h) + var(--hdr-h) + 16px); padding-bottom: 22px; }
  .promo { margin-bottom: 12px; }
  .hero__eyebrow { margin-bottom: 10px; }
  .hero__title { margin-bottom: 12px; }
  .hero__lead { margin-bottom: 14px; font-size: 16px; }
  .hero__stats { margin-bottom: 16px; }
  .hero__stats li { padding-top: 9px; }
  .hero__rating { margin-top: 12px; }
  .quick-wrap { margin-top: 16px; }
  .quick__f, .quick__go { min-height: 54px; }
  .next { padding: 14px 16px 16px; }
  .next__dates { font-size: 24px; }
  .next__row { margin-top: 6px; padding-top: 12px; }
  /* Заголовок дрібніший — у два рядки, рейтинг — у розділі «Відгуки»: так над пошуком лишається все головне */
  .hero__title { font-size: clamp(44px, min(5.2vw, 8.8svh), 76px); }
  .hero__rating { display: none; }
  .hero__stats b { font-size: 22px; }
}
@media (min-width: 960px) and (max-height: 679.98px) {
  .hero__lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Про нас ---------- */
.about__grid { display: grid; gap: 44px; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; } }
.about__text .h2 { margin-bottom: 20px; }
.about__lead { margin: 0 0 16px; font-weight: 500; font-size: clamp(18.5px, 1.55vw, 21px); line-height: 1.5; letter-spacing: -0.012em; color: var(--ink); }
.signature { margin: 20px 0 0; font: 500 14px/1.4 var(--mono); color: var(--ink-2); }
.about__media { position: relative; padding: 0 0 48px 16%; }
.about__img { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.about__img img, .about__img .ph { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { position: relative; aspect-ratio: 5 / 4; }
/* Мітки кадру по кутах — як на технічному кресленні */
.about__img--a::before, .about__img--a::after { content: ""; position: absolute; z-index: 1; width: 22px; height: 22px; border: 2px solid #fff; pointer-events: none; }
.about__img--a::before { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.about__img--a::after { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.about__img--b { position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1; border: 6px solid #fff; border-radius: calc(var(--r-lg) + 6px); box-shadow: var(--card); }
.about__seal { position: absolute; left: 44%; bottom: 0; z-index: 1; margin: 0; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--g1); color: #fff; box-shadow: var(--shadow-lg); }
.about__seal b { font: 500 36px/1 var(--mono); letter-spacing: -0.04em; color: var(--accent); }
.about__seal span { font: 500 11.5px/1.35 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 479.98px) { .about__media { padding-left: 10%; } .about__seal { left: 46%; padding: 10px 12px; gap: 9px; } .about__seal b { font-size: 28px; } .about__seal span { font-size: 10.5px; } }

/* Переваги — темна смуга на всю ширину під «Про нас»: номер, значок у рамці, назва й опис, між ними — тонкі лінії */
.perks { background: var(--g1); color: #fff; }
.perks__list { list-style: none; margin-block: 0; padding-block: clamp(26px, 3.2vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.perks__list--1 { grid-template-columns: 1fr; }
@media (max-width: 559.98px) { .perks__list { grid-template-columns: 1fr; gap: 18px; } }
@media (min-width: 1000px) {
  .perks__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perks__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perks__list--3 li + li, .perks__list--4 li + li { padding-left: 28px; border-left: 1px solid var(--d-line); }
}
.perks li { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; }
.perks__no { position: absolute; top: -2px; right: 0; font: 500 11px/1 var(--mono); color: rgba(255, 255, 255, 0.4); }
.perks__icon { flex: none; width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 106, 43, 0.6); color: var(--accent); }
.perks__icon .i { width: 24px; height: 24px; }
.perks li > span:last-child { min-width: 0; padding-right: 22px; }
.perks b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.perks small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--d-muted); }

/* ---------- Будиночки: картки, що перевертаються (фото ↔ технічний паспорт) ---------- */
.houses__grid { display: grid; gap: 22px; }
@media (min-width: 700px) { .houses__grid--2, .houses__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .houses__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Картка — контейнер: паспорт на звороті розкладається за шириною самої картки (на широкій — цифри в один рядок) */
.house { min-width: 0; container-type: inline-size; }
/* Обидва боки лежать в одній клітинці сітки: висота картки — за вищим боком, тож довгий текст власника нічого не ламає */
.house__flip { display: grid; height: 100%; perspective: 1800px; }
/* Бік, що відвернувся, ще й ховається (visibility) рівно посередині оберту — тоді його немає ні для кліків, ні для читачів екрана */
.house__face { grid-area: 1 / 1; min-width: 0; display: flex; flex-direction: column; border-radius: var(--r-lg); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform 0.7s cubic-bezier(0.5, 0, 0.25, 1), visibility 0s 0.3s, box-shadow 0.45s; }
.house__front { border: 1px solid var(--line); background: #fff; }
.house__back { visibility: hidden; border: 1px solid var(--g1); background: var(--g1); color: #fff; transform: rotateY(180deg); }
.house.is-flipped .house__front { visibility: hidden; transform: rotateY(-180deg); }
.house.is-flipped .house__back { visibility: visible; transform: rotateY(0deg); box-shadow: var(--card); }
@media (hover: hover) and (min-width: 900px) { .house:not(.is-flipped) .house__front:hover { box-shadow: var(--card); } }
.house__media { position: relative; flex: 1 0 auto; display: flex; overflow: hidden; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0; cursor: pointer; }
.collage { flex: 1; display: grid; gap: 3px; min-height: clamp(220px, 58vw, 290px); }
.collage--2, .collage--3 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.collage--3 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.collage--3 .collage__ph:first-child { grid-row: 1 / 3; }
.collage__ph { position: relative; min-height: 0; overflow: hidden; background: var(--bg-2); }
.collage__ph img, .collage__ph .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.house__front:hover .collage__ph img { transform: scale(1.04); }
/* «Ще N фото» — невеликою позначкою в кутку, фото лишається світлим */
.collage__more { position: absolute; right: 8px; bottom: 8px; padding: 5px 9px; border-radius: 8px; background: rgba(12, 14, 17, 0.72); color: #fff; font: 500 12.5px/1.2 var(--mono); white-space: nowrap; }
.house__body { display: flex; flex-direction: column; padding: 18px 20px 20px; }
.house__no { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font: 500 12px/1.35 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.house__no b { flex: none; font-weight: 600; color: var(--accent-3); }
.house__no span { min-width: 0; }
.house__name { margin: 0; font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -0.03em; }
/* Характеристики одним рядком, моноширинним: «до 4 гостей / 2 спальні / 72 м²» */
.house__spec { margin: 8px 0 0; font: 500 13px/1.6 var(--mono); color: var(--ink-2); }
.house__spec span { white-space: nowrap; }
.house__spec i { margin: 0 8px; font-style: normal; color: var(--line-2); }
.house__short { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
/* Ціна й кнопки внизу картки — у сусідніх картках на одному рівні */
.house__foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.house__price { margin: 0 0 14px; font: 500 13px/1.3 var(--mono); color: var(--muted); }
.house__price b { font: 600 22px/1.2 var(--mono); letter-spacing: -0.04em; white-space: nowrap; color: var(--ink); }
/* Кнопки ділять рядок, а на дуже вузькій картці стають одна під одною — нічого не вилазить за край */
.house__actions, .sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.house__actions .btn, .sheet__actions .btn { flex: 1 1 150px; }
.house__actions .btn .i:first-child { width: 17px; height: 17px; }
/* Зворот — технічний паспорт: цифри таблицею, зручності, ціни за сезонами */
.sheet { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.sheet__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.house__back .house__no { color: var(--d-muted); }
.house__back .house__no b { color: var(--accent); }
.sheet__back { flex: none; width: 40px; height: 40px; border: 1px solid var(--d-line-2); border-radius: 10px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.sheet__back:hover { border-color: var(--accent); color: var(--accent); }
.sheet__back .i { width: 19px; height: 19px; }
.sheet__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; border-top: 1px solid var(--d-line); }
/* Підпис угорі, цифра — внизу клітинки: якщо довгий підпис переноситься, цифри в рядку все одно на одному рівні */
.sheet__specs div { min-width: 0; display: flex; flex-direction: column; padding: 11px 0; border-bottom: 1px solid var(--d-line); }
.sheet__specs div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--d-line); }
.sheet__specs dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted); }
.sheet__specs dd { margin: auto 0 0; padding-top: 4px; font: 500 19px/1.2 var(--mono); letter-spacing: -0.03em; white-space: nowrap; }
.sheet__features { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.86); }
.sheet__features li { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.sheet__features .i { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.sheet__rates { margin: 16px 0 0; }
.sheet__rates p { margin: 0 0 6px; font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted); }
.sheet__rates dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--d-line); }
.sheet__rates div { min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--d-line); }
.sheet__rates div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--d-line); }
.sheet__rates dt { font-size: 12.5px; line-height: 1.3; color: rgba(255, 255, 255, 0.72); }
.sheet__rates dd { margin: 3px 0 0; font: 500 15px/1.2 var(--mono); letter-spacing: -0.03em; white-space: nowrap; }
.sheet__actions { margin-top: auto; padding-top: 18px; }
@media (max-width: 359.98px) { .sheet__specs dd { font-size: 17px; } .house__body, .sheet { padding-inline: 16px; } }
/* Широка картка: чотири цифри паспорта — в один рядок, а ще ширша — й зручності двома стовпчиками */
@container (min-width: 330px) {
  .sheet__specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet__specs div:nth-child(n + 2) { padding-left: 12px; border-left: 1px solid var(--d-line); }
  .sheet__specs dd { font-size: 17px; }
}
@container (min-width: 380px) { .sheet__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: 13.5px; } }
@media (min-width: 900px) {
  /* Один будиночок — велика горизонтальна картка */
  .houses__grid--1 .house__front { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .houses__grid--1 .house__media { border-radius: calc(var(--r-lg) - 1px) 0 0 calc(var(--r-lg) - 1px); }
  .houses__grid--1 .collage { min-height: 380px; }
  .houses__grid--1 .house__body { padding: 28px 30px 26px; }
  .houses__grid--1 .house__name { font-size: 34px; }
  .houses__grid--1 .sheet { padding: 28px 30px 26px; }
  .houses__grid--1 .sheet__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Характеристики у вікні будиночка — рядком з іконками */
.specs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.specs li { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px/1.4 var(--mono); color: var(--ink-2); white-space: nowrap; }
.specs .i { width: 18px; height: 18px; color: var(--accent-3); }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font: 600 22px/1.2 var(--mono); letter-spacing: -0.04em; white-space: nowrap; color: var(--ink); }
.price small { font: 500 12.5px/1.3 var(--mono); color: var(--muted); }

.slider { position: relative; overflow: hidden; background: var(--bg-2); }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
/* overflow: збільшене при наведенні фото не заходить на сусіднє */
.slider__slide { flex: 0 0 100%; aspect-ratio: 4 / 3; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; }
.slider__slide img, .slider__slide .ph { width: 100%; height: 100%; object-fit: cover; }
.slider__btn { position: absolute; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.95); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.25s; box-shadow: var(--shadow); }
.slider__btn .i { width: 20px; height: 20px; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider:hover .slider__btn, .slider__btn:focus-visible { opacity: 1; }
@media (hover: none) { .slider__btn { display: none; } }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.slider__dots span { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.6); transition: width 0.3s var(--ease), background-color 0.3s; }
.slider__dots span.on { width: 20px; background: #fff; }

/* ---------- Відпочинок: темний розділ на всю ширину ---------- */
/* Головні враження — фото, а підпис під ним (не поверх фото: текст на світлому небі не читався на телефоні) */
.feat { display: grid; gap: 28px 22px; margin-bottom: clamp(30px, 3.4vw, 44px); }
@media (min-width: 760px) { .feat--2, .feat--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feat--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat__card { margin: 0; min-width: 0; }
.feat__img { display: block; overflow: hidden; aspect-ratio: 16 / 11; border-radius: var(--r-lg); background: var(--g3); }
.feat__img img, .feat__img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feat__card:hover .feat__img img { transform: scale(1.04); }
.feat__card figcaption { display: flex; align-items: flex-start; gap: 14px; padding: 16px 2px 0; border-top: 1px solid var(--d-line); margin-top: 16px; }
.feat__no { flex: none; padding-top: 4px; font: 600 13px/1 var(--mono); color: var(--accent); }
.feat__txt { display: grid; gap: 6px; min-width: 0; }
.feat__card b { font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.025em; }
.feat__txt > span { font-size: 15px; line-height: 1.55; color: var(--d-muted); max-width: 52ch; }
/* Решта зручностей — таблицею з тонкими лініями: значок у рамці, назва й опис */
.amen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--d-line); }
@media (min-width: 560px) { .amen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .amen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .amen--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.amen--1 { grid-template-columns: 1fr; }
.amen li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--d-line); transition: background-color 0.25s; }
.amen__icon { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; border: 1px solid rgba(255, 106, 43, 0.55); color: var(--accent); }
.amen__icon .i { width: 21px; height: 21px; }
.amen__txt { display: flex; flex-direction: column; min-width: 0; }
.amen b { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.amen__txt > span { margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--d-muted); }

/* ---------- Галерея ---------- */
.gallery .section__head .btn { justify-self: start; }
@media (min-width: 900px) { .gallery .section__head .btn { justify-self: end; } }
.gallery__grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 38vw, 250px); }
.gallery__item { position: relative; min-width: 0; padding: 0; border: 0; overflow: hidden; border-radius: var(--r); background: var(--bg-2); cursor: zoom-in; }
.gallery__item img, .gallery__item .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
/* Телефон: непарна кількість — перше фото на всю ширину, решта парами */
.gallery__grid--1 .gallery__item--1, .gallery__grid--3 .gallery__item--1, .gallery__grid--5 .gallery__item--1, .gallery__grid--7 .gallery__item--1 { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 230px); }
  .gallery__grid .gallery__item { grid-column: auto; grid-row: auto; }
  .gallery__grid--1 .gallery__item--1 { grid-column: 1 / -1; grid-row: span 2; }
  .gallery__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 28vw, 420px); }
  .gallery__grid--3 { grid-template-columns: 2fr 1fr; }
  .gallery__grid--3 .gallery__item--1 { grid-row: span 2; }
  .gallery__grid--4 { grid-auto-rows: clamp(220px, 24vw, 340px); }
  .gallery__grid--5 .gallery__item--1 { grid-column: span 2; grid-row: span 2; }
  .gallery__grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Сім фото — мозаїка: велике ліворуч, високе праворуч, широке внизу */
  .gallery__grid--7 .gallery__item--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gallery__grid--7 .gallery__item--2 { grid-column: 3; grid-row: 1; }
  .gallery__grid--7 .gallery__item--3 { grid-column: 4; grid-row: 1 / 3; }
  .gallery__grid--7 .gallery__item--4 { grid-column: 3; grid-row: 2; }
  .gallery__grid--7 .gallery__item--5 { grid-column: 1; grid-row: 3; }
  .gallery__grid--7 .gallery__item--6 { grid-column: 2 / 4; grid-row: 3; }
  .gallery__grid--7 .gallery__item--7 { grid-column: 4; grid-row: 3; }
}
.gallery__cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 11px; border-radius: 8px; background: rgba(12, 14, 17, 0.8); color: #fff; font: 500 12.5px/1.3 var(--mono); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { display: none; } }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 10, 13, 0.58); color: #fff; font: 500 38px/1 var(--mono); letter-spacing: -0.04em; }

.lightbox { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 13, 0.97); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.lightbox::backdrop { background: rgba(8, 10, 13, 0.97); }
.lightbox__fig { margin: 0; height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 72px 8px 28px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lightbox__fig figcaption { font: 500 13px/1.4 var(--mono); color: rgba(255, 255, 255, 0.72); text-align: center; }
.lightbox__nav, .lightbox__close { width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.06); color: #fff; display: grid; place-items: center; cursor: pointer; margin: 0 16px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; margin: 0; z-index: 2; }
@media (max-width: 700px) {
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lightbox__nav { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); margin: 0; z-index: 2; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }
  .lightbox__fig { padding-bottom: 100px; }
  /* Вертикальне фото не має виштовхувати підпис під кнопки «‹ ›»: місце під відступи й підпис у два рядки */
  .lightbox__fig img { max-height: calc(100dvh - 232px); }
}

/* ---------- Вільні дати ---------- */
/* minmax(0, 1fr): календар не розпирає сторінку на дуже вузькому екрані */
.avail__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.avail .h2 { margin-bottom: 14px; font-size: clamp(30px, 3.4vw, 46px); }
.avail .h2 em { font-style: normal; color: var(--accent-3); }
/* Дві колонки — лише коли календарю на 2 місяці вистачає місця */
@media (min-width: 1200px) {
  .avail__grid { grid-template-columns: 0.8fr 1.2fr; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 0; align-items: start; }
  .avail__intro { grid-column: 1; grid-row: 1; }
  .avail__cal { grid-column: 2; grid-row: 1 / 3; }
  .avail__sum { grid-column: 1; grid-row: 2; }
}
.avail__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.tab:hover { border-color: var(--ink); }
.tab.on { background: var(--g1); border-color: var(--g1); color: #fff; }
.sum { padding: 20px 22px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.sum__label { margin: 0 0 4px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sum__dates { margin: 0; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.sum__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 14px; }
.sum__price b { display: block; font: 600 28px/1.1 var(--mono); letter-spacing: -0.04em; color: var(--ink); }
.sum__price small { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.sum__warn { margin: 12px 0 0; color: #b02a12; font-weight: 600; font-size: 14.5px; }
.sum__next { margin: 10px 0 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.sum__note { margin: 12px 0 0; color: var(--ink-2); font-weight: 500; font-size: 14.5px; line-height: 1.45; }
.sum__hint { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
/* Повідомлення «У «…» ці дати зайняті. Вільно: [кнопки]» — і в «Вільних датах», і у формі */
.alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.alt { min-height: 40px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.alt:hover { background: var(--ink); color: #fff; }

.cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; -webkit-user-select: none; user-select: none; }
@media (min-width: 760px) { .cal--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; } }
/* Календар усередині форми й випадної панелі — без власної рамки */
.cal--flat { gap: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.cal--flat.cal--two { gap: 32px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
/* Місяць з роком — завжди в один рядок. Розмір — від ширини самого місяця (cqi), а не екрана: на вузькому вікні компʼютера
   зі смугою прокрутки «Листопад 2026» інакше вилазив за стрілки */
.cal__month { container-type: inline-size; }
.cal__title { font-weight: 600; font-size: clamp(13px, 7.6cqi, 21px); letter-spacing: -0.02em; text-transform: capitalize; white-space: nowrap; }
.cal__nav { flex: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 1px var(--line-2); }
.cal__nav:not(:disabled):hover { box-shadow: 0 0 0 1px var(--ink); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__nav.is-hidden { visibility: hidden; }
.cal--flat .cal__nav { background: var(--soft); box-shadow: none; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px 0; }
.cal__wd { padding: 6px 0; text-align: center; font: 500 11px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.day { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; font: 500 15px/1.05 var(--mono); color: var(--ink); cursor: pointer; transition: background-color 0.15s, opacity 0.15s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: manipulation; }
.day:focus-visible { z-index: 1; outline-offset: 0; }
.day__p { font: 500 9px/1 var(--mono); color: var(--muted); letter-spacing: -0.04em; }
@media (min-width: 760px) { .day__p { font-size: 10px; } }
.day.is-in .day__p, .day.is-out .day__p { color: rgba(255, 255, 255, 0.85); }
.day:hover:not(:disabled):not([aria-disabled="true"]):not(.is-in):not(.is-out) { background: var(--soft); }
.day:disabled, .day[aria-disabled="true"] { cursor: default; }
.day.is-off { color: rgba(15, 17, 20, 0.24); }
.day.is-busy { color: rgba(15, 17, 20, 0.34); text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(15, 17, 20, 0.08) 5px 6px); }
/* Зайнятий день, який можна обрати днем виїзду (усі ночі до нього вільні) */
.day.is-exit { color: rgba(15, 17, 20, 0.6); }
/* Ближче за мінімум ночей після заїзду — неактивні, з підказкою «мінімум N ночей» */
.day.is-short { color: rgba(15, 17, 20, 0.28); }
.day.is-short .day__p { opacity: 0.55; }
/* Заїзд з цього дня неможливий (далі зайнято, а мінімум ночей не вміщається) — день блідий, як недоступний */
.day.is-nostart { color: rgba(15, 17, 20, 0.3); }
.day.is-nostart .day__p { opacity: 0.5; }
/* Після вибору заїзду: дати за першою зайнятою ніччю — бліді, але натискаються як новий заїзд */
.day.is-far { opacity: 0.38; }
.day.is-far:hover { opacity: 0.75; }
.day.is-range { background: rgba(255, 106, 43, 0.14); border-radius: 0; }
.day.is-in, .day.is-out { background: var(--g1); color: #fff; text-decoration: none; opacity: 1; }
.day.is-in { border-radius: 10px 0 0 10px; }
.day.is-out { border-radius: 0 10px 10px 0; }
.day.is-in.is-alone { border-radius: 10px; }
/* «Сьогодні» — точка праворуч угорі від числа (під числом стоїть ціна) */
.day__n { position: relative; }
.day.is-today .day__n::after { content: ""; position: absolute; top: 1px; left: calc(100% + 1.5px); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.day.is-in.is-today .day__n::after, .day.is-out.is-today .day__n::after { background: #fff; }
/* Дуже вузько: крапка «сьогодні» менша й ближче до числа, щоб не налазила на ціну сусіднього дня */
@media (max-width: 269.98px) { .day.is-today .day__n::after { top: 1px; left: calc(100% + 0.5px); width: 3px; height: 3px; } }
.cal__status { margin: 12px 0 0; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
.cal__status:empty { display: none; }
.cal__note { color: var(--ink-2); }
.cal__warn { color: #b02a12; font-weight: 600; }
.cal__note + .cal__warn { display: block; margin-top: 4px; }
.cal__legend { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.cal__legend li { display: inline-flex; align-items: center; gap: 8px; }
.cal__legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); background: #fff; }
.cal__legend .lg-busy { background: repeating-linear-gradient(135deg, #fff 0 3px, rgba(15, 17, 20, 0.22) 3px 4px); }
.cal__legend .lg-sel { background: var(--g1); border-color: var(--g1); }
/* Дуже вузький екран: менші поля календаря й стрілки — назва місяця вміщається між стрілками */
@media (max-width: 299.98px) { .cal:not(.cal--flat) { padding: 12px; } .cal__nav { width: 36px; height: 36px; } }

/* ---------- Ціни: картка з темною шапкою, фото будиночків і умовами внизу ---------- */
.prices__card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.prices__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prices__table { width: 100%; min-width: 680px; border-collapse: collapse; }
.prices__table th, .prices__table td { padding: 18px 22px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
/* Темний фон — на всьому рядку, а не на кожній клітинці: на екранах з масштабом 125% між клітинками проглядала світла риска */
.prices__table thead tr { background: var(--g1); }
.prices__table thead th { vertical-align: top; border-bottom: 0; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.prices__table thead small { display: block; margin-top: 5px; font: 500 12px/1.3 var(--mono); letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.6); }
.prices__table tbody th { position: sticky; left: 0; z-index: 1; background: #fff; padding-block: 14px; }
.prices__house { display: flex; align-items: center; gap: 14px; min-width: 0; }
.prices__no { flex: none; font: 600 12px/1 var(--mono); color: var(--accent-3); }
.prices__img { flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.prices__img img, .prices__img .ph { width: 100%; height: 100%; object-fit: cover; }
.prices__img .ph .i { width: 20px; height: 20px; }
.prices__name { display: flex; flex-direction: column; min-width: 0; font-size: 19px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.prices__name small { margin-top: 4px; font: 500 12.5px/1.3 var(--mono); letter-spacing: 0; color: var(--muted); }
.prices__table td { font: 500 16.5px/1.3 var(--mono); letter-spacing: -0.03em; white-space: nowrap; }
.prices__table tbody tr:last-child > * { border-bottom: 0; }
.prices__table tbody tr:hover > * { background: #f7f8f9; }
.notes { list-style: none; margin: 0; padding: 16px 22px; display: flex; flex-wrap: wrap; gap: 10px 32px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.notes li { display: flex; align-items: center; gap: 10px; }
.notes .i { width: 20px; height: 20px; color: var(--accent-3); }
@media (max-width: 700px) {
  .prices__card { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .prices__wrap { overflow: visible; }
  .prices__table { min-width: 0; }
  .prices__table thead { display: none; }
  .prices__table, .prices__table tbody, .prices__table tr, .prices__table th, .prices__table td { display: block; }
  .prices__table tr { margin-bottom: 12px; padding: 16px 18px 6px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
  .prices__table tbody tr:hover > * { background: none; }
  .prices__table tbody th { position: static; padding: 0 0 12px; border-bottom: 1px solid var(--line); background: none; }
  .prices__table td, .prices__table tbody tr:last-child td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
  .prices__table td::before { content: attr(data-label); font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: normal; }
  .prices__table tr td:last-child { border-bottom: 0; }
  .notes { flex-direction: column; gap: 10px; padding: 6px 2px 0; border: 0; }
}

/* ---------- Відгуки: темний розділ ---------- */
.score { display: flex; align-items: center; gap: 14px; }
@media (min-width: 900px) { .reviews .score { justify-self: end; } }
.score b { font-weight: 600; font-size: 62px; line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); }
.score small { display: block; margin-top: 6px; color: var(--d-muted); font: 500 12.5px/1.3 var(--mono); }
.score .stars .i { width: 20px; height: 20px; }
/* Телефон: картки гортаються вбік; ширина картки — 82 % стрічки, тож край наступної видно завжди, на будь-якій ширині.
   overflow-y: hidden — стрічка не рухається вгору-вниз (раніше її можна було посмикати пальцем) */
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 8px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
/* Картки у стрічці зʼявляються лише проявленням, без зсуву вниз (зсув обрізався б краєм стрічки) */
@media (max-width: 899.98px) { .js .reviews__track .reveal { transform: none; } }
/* Вузький телефон: менші поля картки відгуку — текст не стискається у вузький стовпчик */
@media (max-width: 359.98px) { .review { padding: 20px 18px; gap: 14px; } }
@media (min-width: 900px) { .reviews__track { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; margin: 0; gap: 20px; } }
.review { margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; scroll-snap-align: start; border-radius: var(--r-lg); background: var(--g2); border: 1px solid var(--d-line); color: #fff; transition: transform 0.4s var(--ease), border-color 0.3s; }
@media (hover: hover) and (min-width: 900px) { .review:hover { transform: translateY(-3px); border-color: var(--d-line-2); } }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review__no { font: 600 12px/1 var(--mono); color: var(--accent); }
.review blockquote { margin: 0; flex: 1; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--d-line); }
.review__ava { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--d-line-2); color: var(--accent); font: 600 18px/1 var(--mono); }
.review b { display: block; font-size: 15.5px; font-weight: 600; }
.review small { display: block; font: 500 12px/1.4 var(--mono); color: var(--d-muted); }
.reviews__more { margin: 30px 0 0; }

/* ---------- Як доїхати ---------- */
.loc__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .loc__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 64px; align-items: start; } }
.loc__info .h2 { margin-bottom: 22px; }
.loc__addr { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; font-weight: 600; }
.loc__addr .i { margin-top: 3px; color: var(--accent-3); }
.ways { list-style: none; margin: 0 0 28px; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ways li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ways__icon { flex: none; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent-3); }
.ways__icon .i { width: 21px; height: 21px; }
.ways b { display: block; font-weight: 600; }
.ways small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.loc__map { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--bg-2); }
/* Карта Google — чорно-біла: яскраві кольори карти випадали з палітри сайту */
.loc__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.06); }
/* Координати на карті — моноширинним, як на кресленні */
.loc__geo { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: 8px; background: rgba(12, 14, 17, 0.84); color: #fff; font: 500 12px/1.3 var(--mono); pointer-events: none; }
.nearby { margin-top: 16px; padding: 4px 0 0; }
.nearby .h4 { margin: 14px 0 6px; }
.nearby ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
/* Відстані — як у таблиці характеристик: назва, крапки до відстані, відстань моноширинним */
.nearby li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.nearby li span { min-width: 0; }
.nearby li i { flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted var(--line-2); transform: translateY(-4px); }
.nearby b { flex: none; font: 500 15px/1.3 var(--mono); white-space: nowrap; color: var(--ink); }

/* ---------- Питання ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; } .faq__head { position: sticky; top: calc(var(--demo-h) + var(--hdr-h) + 24px); align-self: start; } }
/* Заїзд і виїзд — завжди в один ряд: на вузьких екранах плашки компактніші, значки — поки вміщаються */
.rules { list-style: none; margin: 26px 0 0; padding: 0; display: flex; gap: 10px; }
.rules li { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.rules .i { color: var(--accent-3); }
.rules span { display: flex; flex-direction: column; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rules b { font: 600 19px/1.3 var(--mono); letter-spacing: -0.03em; text-transform: none; color: var(--ink); white-space: nowrap; }
@media (max-width: 399.98px) { .rules li { gap: 10px; padding: 11px 14px 11px 12px; } .rules b { font-size: 17px; } }
/* Значки годинника ховаються лише тоді, коли блоку «Правила» справді бракує місця */
.faq__head { container-type: inline-size; }
@container (max-width: 252.98px) { .rules li > .i { display: none; } }
.faq__list { display: grid; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 2px; font-weight: 600; font-size: 17px; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s; }
.qa__icon .i { width: 18px; height: 18px; }
.qa summary:hover .qa__icon { border-color: var(--ink); }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.qa .prose { padding: 0 2px 20px; max-width: 64ch; }

/* ---------- Заклик: фото на всю ширину ---------- */
.cta { position: relative; isolation: isolate; padding-block: clamp(84px, 11vw, 150px); color: #fff; text-align: center; background: var(--g3); }
.cta__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--g3); }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8, 10, 13, 0.5), rgba(8, 10, 13, 0.82)); }
.cta__inner { max-width: 900px; }
.cta__title { margin: 0 0 18px; font-size: clamp(30px, 12.4vw, 40px); }
@media (min-width: 700px) { .cta__title { font-size: clamp(40px, 5.4vw, 72px); } }
.cta__title.h2 em { color: var(--accent); }
.cta__lead { max-width: 52ch; margin: 0 auto 26px; font-size: 18px; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 14px rgba(4, 6, 8, 0.6), 0 0 2px rgba(4, 6, 8, 0.35); }
.cta__points { list-style: none; margin: 0 auto 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.cta__points li { display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/1.4 var(--mono); text-shadow: 0 1px 12px rgba(4, 6, 8, 0.6); }
.cta__points .i { width: 18px; height: 18px; color: var(--accent); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
@media (max-width: 520px) { .cta__actions .btn { width: 100%; } .cta__points { flex-direction: column; align-items: center; } }

/* ---------- Підвал ---------- */
.footer { background: var(--g3); color: rgba(255, 255, 255, 0.76); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); }
@media (max-width: 959.98px) { .footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 0.8fr; } }
.footer .logo { color: #fff; }
.footer__brand p { max-width: 40ch; margin: 20px 0 0; font-size: 15px; }
.footer h3 { margin: 0 0 16px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { display: inline-flex; align-items: flex-start; gap: 10px; text-decoration: none; font-size: 15px; }
.footer ul a .i { margin-top: 3px; width: 17px; height: 17px; }
.footer ul a small { flex: none; padding-top: 3px; font: 500 11px/1.3 var(--mono); color: rgba(255, 255, 255, 0.42); }
.footer ul a:hover { color: #fff; }
.footer__links { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 28px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--d-line); font: 500 12.5px/1.4 var(--mono); color: rgba(255, 255, 255, 0.5); }
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Нижня панель на телефоні ---------- */
.mbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 8px; border-radius: 999px; background: rgba(14, 16, 19, 0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1); transform: translateY(160%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s; }
.mbar.is-on { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
.mbar__dates { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px 4px 4px; border-radius: 999px; color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color 0.2s; }
.mbar__dates:active { background: rgba(255, 255, 255, 0.08); }
.mbar__ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--d-line-2); color: var(--accent); }
.mbar__ico .i { width: 20px; height: 20px; }
.mbar__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mbar__txt b { font-size: 15.5px; font-weight: 600; }
/* Текст ніколи не заходить під «Забронювати»: якщо «за ніч» не вміщається, воно переноситься на другий,
   прихований рядок і зникає; а що не влазить і тоді — обрізається «…» */
.mbar__txt small { display: flex; flex-wrap: wrap; height: 1.2em; overflow: hidden; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
/* «за ніч» або вміщається цілком, або переходить на прихований рядок — не обрізається наполовину */
.mbar__txt small > span + span { flex-shrink: 0; }
.mbar__txt b, .mbar__txt small > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbar__book { flex: none; padding: 0 20px; }
@media (max-width: 374px) {
  .mbar { left: 8px; right: 8px; gap: 6px; padding: 6px; }
  .mbar__dates { gap: 8px; padding-right: 2px; }
  .mbar__ico { width: 34px; height: 34px; }
  .mbar__ico .i { width: 18px; height: 18px; }
  .mbar__txt b { font-size: 14.5px; }
  .mbar__txt small { font-size: 11.5px; }
  .mbar__book { padding: 0 15px; font-size: 14.5px; }
}
/* Вужче за 300 px «Вільні дати» поруч з іконкою вже не вміщаються */
@media (max-width: 299.98px) { .mbar__ico { display: none; } }
/* До 270 px «Вільні дати» в нижній панелі трохи дрібніші — вміщаються поруч із кнопкою, не обрізаючись */
@media (max-width: 269.98px) { .mbar__txt b { font-size: 13.5px; } .mbar__book { padding: 0 14px; } }
@media (min-width: 960px) { .mbar { display: none; } }
/* Поки відкрите вікно чи меню, панель ховається. + --sbw — щоб вона не стрибала вбік, коли зникає смуга прокрутки */
html:has(dialog[open]) .mbar, .menu-open .mbar { transform: translateY(160%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s 0.45s; }
/* Під меню смуга прокрутки зникає — панель зсуваємо на її ширину; під вікном на компʼютері смуга лишається */
.menu-open .mbar { right: calc(12px + var(--sbw, 0px)); }
@media (max-width: 374px) { .menu-open .mbar { right: calc(8px + var(--sbw, 0px)); } }

/* ---------- Вікна ---------- */
/* overflow: clip — вікно взагалі не прокручується. Поки шторка виїжджає (translateY), вона на мить нижче краю: браузер
   на відкритті ставить фокус на форму й прокручував би до неї саме вікно, а анімація тягнула б назад — вікно тремтіло;
   ще й зʼявлялась тимчасова смуга прокрутки, і наприкінці вікно стрибком ширшало. hidden — запасний для старих браузерів. */
.modal { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; overflow: clip; background: transparent; color: var(--ink); }
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
/* Без розмиття тла: на слабких телефонах воно гальмує появу вікна */
.modal::backdrop { background: rgba(6, 8, 10, 0.62); }
/* Фон — на 0,1 % прозорий: інакше Chrome з відеокартою вважає вікно, що прокручується, суцільним прямокутником і не малює
   під ним нічого — у заокруглених кутах проступав незатемнений фон сторінки («квадратні кути»). clip-path — кути напевно */
.modal__box { position: relative; width: 100%; max-height: 94dvh; overflow: auto; overscroll-behavior: contain; background: #fff; background: color-mix(in srgb, #fff 99.9%, transparent); border-radius: 22px 22px 0 0; clip-path: inset(0 round 22px 22px 0 0); animation: sheetUp 0.45s var(--ease); }
@keyframes sheetUp { from { transform: translateY(48px); opacity: 0; } }
@keyframes popIn { from { transform: translateY(18px) scale(0.985); opacity: 0; } }
/* Вікно зникає плавно: enhance.js ставить .is-closing на 0,18 с перед закриттям */
@keyframes sheetDown { to { transform: translateY(40px); opacity: 0; } }
@keyframes popOut { to { transform: translateY(12px) scale(0.985); opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal.is-closing .modal__box { animation: sheetDown 0.18s ease-in forwards; }
.modal.is-closing::backdrop, .lightbox.is-closing, .lightbox.is-closing::backdrop { animation: fadeOut 0.18s ease-in forwards; }
@media (min-width: 760px) {
  .modal[open] { align-items: center; padding: 24px; }
  /* Тінь по краю — вікно не зливається зі сторінкою за ним (clip-path тут не потрібен: він обрізав би тінь) */
  .modal__box { max-width: 640px; max-height: min(900px, calc(100dvh - 48px)); border-radius: 22px; clip-path: none; box-shadow: 0 40px 90px -24px rgba(4, 6, 8, 0.7), 0 12px 32px -12px rgba(4, 6, 8, 0.4), 0 0 0 1px rgba(15, 17, 20, 0.1); animation-name: popIn; }
  .modal.is-closing .modal__box { animation-name: popOut; }
}
/* Тонка охайна прокрутка у вікнах: без стрілок і з відступом від заокруглених кутів */
@media (hover: hover) and (pointer: fine) {
  .modal__box::-webkit-scrollbar, .modal__body::-webkit-scrollbar, .pick__list::-webkit-scrollbar { width: 12px; }
  .modal__box::-webkit-scrollbar-track, .modal__body::-webkit-scrollbar-track { background: transparent; margin-block: 22px; }
  .pick__list::-webkit-scrollbar-track { background: transparent; margin-block: 12px; }
  .modal__box::-webkit-scrollbar-thumb, .modal__body::-webkit-scrollbar-thumb, .pick__list::-webkit-scrollbar-thumb { border: 4px solid transparent; border-radius: 999px; background: rgba(15, 17, 20, 0.2) padding-box; }
  .modal__box::-webkit-scrollbar-thumb:hover, .modal__body::-webkit-scrollbar-thumb:hover { background-color: rgba(15, 17, 20, 0.36); }
  @supports not selector(::-webkit-scrollbar) {
    .modal__box, .modal__body, .pick__list { scrollbar-width: thin; scrollbar-color: rgba(15, 17, 20, 0.25) transparent; }
  }
}
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.96); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; }
.modal__close .i { width: 20px; height: 20px; }
.modal--house .modal__box { display: flex; flex-direction: column; max-width: 1120px; }
/* Тип будиночка — під назвою, як у картці, а не міткою над нею */
.modal__body { display: flex; flex-direction: column; padding: 28px 22px 12px; }
.modal__body > * { order: 2; }
.modal__body > .h3 { order: 0; }
.modal__body > .eyebrow { order: 1; margin: -4px 0 14px; color: var(--accent-3); }
.modal__body .specs { margin-bottom: 18px; }
.modal__cta { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
@media (min-width: 980px) {
  .modal--house .modal__box { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: minmax(0, 1fr) auto; height: min(780px, calc(100dvh - 48px)); overflow: hidden; }
  .modal--house .modal__media { grid-row: 1 / 3; min-height: 0; }
  .modal--house .modal__media .slider, .modal--house .modal__media .slider__track { height: 100%; }
  .modal--house .modal__media .slider__slide { aspect-ratio: auto; height: 100%; }
  .modal--house .modal__body { overflow: auto; padding: 44px 40px 16px; }
  .modal--house .modal__cta { position: static; padding: 18px 40px; }
}
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 15px; }
.features li { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* Вузький телефон: зручності — одним стовпчиком (довге слово не вміщалось у пів ширини) */
@media (max-width: 379.98px) { .features { grid-template-columns: 1fr; } }
.features .i { width: 18px; height: 18px; color: var(--accent-3); }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th, .ptable td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.ptable td { text-align: right; font: 500 15px/1.3 var(--mono); white-space: nowrap; }
.ptable small { display: block; color: var(--muted); font: 500 12px/1.4 var(--mono); }

.book { padding: 30px 22px calc(22px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .book { padding: 38px; } }
/* Біля верхнього краю вікна всередині — мʼяке затемнення: текст, що прокручується вгору, згасає під ним, а не обрізається
   краєм. top: −(верхній відступ вікна) — sticky рахує від внутрішнього відступу, тож так воно прилипає до самого краю;
   хрестик (z-index 3) — над ним */
.modal__box.book::before { content: ""; position: sticky; top: -30px; z-index: 2; display: block; height: 30px; margin: -30px -22px 0; pointer-events: none; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%); }
@media (max-width: 339.98px) { .modal__box.book::before { margin-inline: -16px; } }
@media (min-width: 760px) { .modal__box.book::before { top: -38px; height: 38px; margin: -38px -38px 0; } }
/* Згасання й тінь по верхньому краю наростають з прокруткою самого вікна (--edge від 0 до 1 за перші 40 px ставить
   enhance.js): угорі вікна, без прокрутки (і коли в Safari тягнеш угору «з пружиною»), їх немає — інакше тінь висіла над
   порожнім білим (користувач, 24–25.10, як у «Карпатах»). Анімацію від прокрутки (animation-timeline) не брати: Safari
   рахував її від прокрутки сторінки. На компʼютері тінь мʼякша (користувач, 25.10: «для ПК занадто сильні») */
.modal__box.book::before { box-shadow: inset 0 14px 14px -14px rgba(8, 10, 13, 0.28); opacity: var(--edge, 0); }
@media (min-width: 760px) { .modal__box.book::before { box-shadow: inset 0 12px 12px -12px rgba(8, 10, 13, 0.14); } }
/* Підпис «Бронювання» над заголовком вікна не потрібен — заголовок «Заявка на відпочинок» говорить сам */
.book__head .eyebrow { display: none; }
.book__head p:last-child { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.book__head .h3 { padding-right: 44px; }
.book__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > span { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 78px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.22); }
.field.is-bad input, .field.is-bad .dates { border-color: #c4361b; box-shadow: 0 0 0 3px rgba(196, 54, 27, 0.12); }
.field__err { color: #b42318; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
/* Поле-пастка для ботів: людині не видно й не доступне з клавіатури, але й не display: none — інакше боти його пропускають */
.book__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.field__hint { color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
/* Поле «Дати»: кнопка, під нею — наш календар на місяць */
.dates { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.dates:hover { border-color: rgba(15, 17, 20, 0.45); }
.dates:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.22); }
.dates .i { width: 20px; height: 20px; color: var(--accent-3); }
.dates .i:last-child { color: var(--muted); transition: transform 0.25s var(--ease); }
.dates[aria-expanded="true"] .i:last-child { transform: rotate(180deg); }
.dates__v { flex: 1; min-width: 0; }
.dates.is-empty .dates__v { color: var(--muted); font-weight: 500; }

/* Власний випадний список (будиночок) — замість системного */
.pick { position: relative; }
.pick__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; text-align: left; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.pick__btn:hover { border-color: rgba(15, 17, 20, 0.45); }
.pick__btn:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 106, 43, 0.22); }
.pick.is-open .pick__btn { border-color: rgba(15, 17, 20, 0.5); }
.pick__btn > .i { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 0.25s var(--ease); }
.pick.is-open .pick__btn > .i { transform: rotate(180deg); }
.pick__main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pick__v { font-size: 16px; font-weight: 600; }
.pick__sub { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.pick__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; max-height: min(340px, 60dvh); margin: 0; padding: 6px; overflow: auto; overscroll-behavior: contain; list-style: none; border-radius: 16px; background: #fff; box-shadow: 0 26px 50px -22px rgba(6, 8, 10, 0.55), 0 0 0 1px rgba(15, 17, 20, 0.1); transform-origin: top center; animation: pickIn 0.2s var(--ease); }
.pick__list.is-leaving { opacity: 0; transform: translateY(-4px) scale(0.98); transition: opacity 0.16s ease, transform 0.16s ease; pointer-events: none; }
@keyframes pickIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
/* У вікні заявки список будиночків зʼявляється й зникає без анімації: з нею відеокарта малює список окремим шаром,
   і Chrome на цей час губив заокруглення вікна, що прокручується */
.modal .pick__list { animation: none; }
.modal .pick__list.is-leaving { transform: none; transition: none; }
.pick__opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 12px; cursor: pointer; transition: background-color 0.15s; }
.pick__opt.is-active { background: var(--soft); }
.pick__img { flex: none; width: 56px; height: 42px; overflow: hidden; border-radius: 9px; background: var(--bg-2); }
.pick__img img, .pick__img .ph { width: 100%; height: 100%; object-fit: cover; }
.pick__img .ph .i { width: 18px; height: 18px; }
.pick__opt b { font-size: 15.5px; font-weight: 600; }
.pick__opt small { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.pick__opt > .i { flex: none; width: 20px; height: 20px; color: var(--accent-3); opacity: 0; transition: opacity 0.15s; }
.pick__opt[aria-selected="true"] > .i { opacity: 1; }
.pick__opt[aria-selected="true"] b { color: var(--accent-3); }

/* Лічильник гостей «− 2 +» */
.step { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 52px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.step__btn { flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; transition: background-color 0.15s, opacity 0.15s; }
.step__btn .i { width: 18px; height: 18px; }
.step__btn:hover:not([aria-disabled="true"]) { background: var(--bg-2); }
.step__btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.step__v { min-width: 2ch; font: 600 17px/1 var(--mono); text-align: center; font-variant-numeric: tabular-nums; }
/* Календар у формі — окрема панель, щоб одразу виділявся серед полів. Згортається й розгортається плавно. */
.book__fold { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.42s var(--ease), opacity 0.32s ease; }
.book__fold.is-closed { grid-template-rows: 0fr; opacity: 0; }
.book__fold.is-instant { transition: none; }
.book__fold-in { min-height: 0; overflow: hidden; }
.book__cal { margin-top: 6px; padding: 14px 12px 12px; border-radius: 16px; background: var(--soft); }
.dates[aria-expanded="true"] { border-color: rgba(15, 17, 20, 0.5); }
.book__cal .day:hover:not(:disabled):not([aria-disabled="true"]):not(.is-in):not(.is-out) { background: #fff; }
.book__cal .cal__nav { background: #fff; }
.book__cal .cal__title { font-size: 19px; }
/* У формі клітинки не квадратні: на широкому вікні календар не розтягує форму */
.book__cal .day { aspect-ratio: auto; height: clamp(40px, 10.5vw, 50px); }
.book__cal .cal__head { margin-bottom: 6px; }
.book__cal .cal__nav { width: 38px; height: 38px; }
.book__conflict { padding: 12px 14px; border-radius: var(--r-sm); background: #fdeee6; color: #8a3014; font-size: 14.5px; font-weight: 500; line-height: 1.45; }
.book__conflict .alt { border-color: #8a3014; color: #8a3014; background: #fff; }
.book__conflict .alt:hover { background: #8a3014; color: #fff; }
@media (max-width: 360px) { .dates { font-size: 15px; padding: 12px; gap: 8px; } .book__cal { padding: 12px 8px 10px; } }
/* Найвужчі екрани (до 340 px; у вікні заявки на компʼютері ще й смуга прокрутки 12–15 px): шапка місяця й 7 днів тижня
   вміщаються повністю — менші кнопки «‹ ›» і заголовок; бічні відступи лишаються нормальними (текст не біля краю).
   Стоїть ПІСЛЯ правил календаря заявки — інакше ті б їх перебили */
@media (max-width: 339.98px) {
  .book { padding-inline: 16px; }
  .book__cal { padding-inline: 12px; }
  .cal__head, .book__cal .cal__head { gap: 4px; }
  .cal__nav, .book__cal .cal__nav { width: 32px; height: 32px; }
  /* Назва місяця в заявці — за шириною самого місяця (cqi): «Листопад 2026» вміщається між стрілками навіть на 250 px */
  .book__cal .cal__title { font-size: min(18px, 7.4cqi); }
}
/* Дуже вузько (вузька панель браузера на компʼютері): гості й імʼя — кожне на всю ширину,
   а у вікні будиночка кнопка «Забронювати» переходить під ціну */
@media (max-width: 339.98px) {
  .book__grid > .field:not(.field--full) { grid-column: 1 / -1; }
  .modal__cta { flex-wrap: wrap; row-gap: 10px; }
  .modal__cta .btn { flex: 1 1 100%; }
}
.book__quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--g1); font: 500 13px/1.4 var(--mono); color: rgba(255, 255, 255, 0.78); }
.book__quote b { font: 600 22px/1.2 var(--mono); letter-spacing: -0.04em; color: #fff; }
.book__quote em { font-style: normal; font-weight: 600; color: #fff; }
.book__quote.is-warn { background: #fdeee6; color: #8a3014; }
.book__err { margin: 12px 0 0; color: #b42318; font-weight: 600; font-size: 14.5px; }
.book .btn--block { margin-top: 20px; }
.book__alt { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.book__alt a { color: var(--ink); font-weight: 600; }
.done { padding: 52px 26px calc(36px + env(safe-area-inset-bottom)); text-align: center; }
.done__icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.done__icon .i { width: 36px; height: 36px; }
.done p { max-width: 42ch; margin: 0 auto 16px; color: var(--ink-2); }
/* Фокус на заголовках вікон («Заявка…», «Дякуємо…», назва будиночка) — для читачів екрана, рамка тут не потрібна */
.done [data-done-title]:focus, [data-dialog-focus]:focus { outline: none; }
/* Текст лише для читачів екрана */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.done__demo { padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); font-size: 14.5px; }
.done__demo a { font-weight: 600; }

/* ---------- Поява під час прокрутки ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* Картка будиночка переходить у фото ↔ паспорт трансформаціями своїх боків — поява тут лише проявленням */
.js .house.reveal { transform: none; }
/* Екран «Завантаження…» (розмітка спільна для всіх шаблонів — у index.html) */
.boot { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--g3); color: #fff; font: 500 15px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
/* Невидимий текст на екрані «Завантаження…»: браузер одразу просить шрифти першого екрана (заголовок, текст, цифри) */
.boot__fonts { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.boot__fonts span:nth-child(1) { font-family: var(--sans); font-weight: 600; }
.boot__fonts span:nth-child(2) { font-family: var(--sans); font-weight: 400; }
.boot__fonts span:nth-child(3) { font-family: var(--mono); font-weight: 500; }
/* Знак — вершина-трикутник з горизонталлю висоти */
.boot__mark { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--d-line-2); color: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.boot__mark::before { content: ""; width: 34px; height: 34px; background-color: currentColor;
  -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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 21.5 20h-19z'/%3E%3Cpath d='M7.4 14.5h9.2'/%3E%3Cpath d='M12 3.5v4'/%3E%3C/svg%3E") no-repeat center / contain;
          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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 21.5 20h-19z'/%3E%3Cpath d='M7.4 14.5h9.2'/%3E%3Cpath d='M12 3.5v4'/%3E%3C/svg%3E") no-repeat center / contain; }
@keyframes pulse { 50% { opacity: 0.5; transform: scale(0.96); } }
.boot--error { font-family: var(--sans); font-size: 16px; letter-spacing: 0; text-transform: none; padding: 24px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { animation: none; transform: none; }
  .modal__box, .js .hero__text > *, .js .next, .js .quick-wrap, .next__dot::after { animation: none; }
  .menu__panel, .menu__backdrop { transition: none; }
  /* Картка будиночка без обертання: боки просто змінюються */
  .house__face, .house.is-flipped .house__front, .house__back, .house.is-flipped .house__back { transform: none; transition: none; }
}
