/* ============================================================================
   Эко-деревня «Юность» — стили
   Природный минимализм: светлый, воздушный, без перегруза декором.
   ============================================================================ */

/* ---------- Дизайн-токены ------------------------------------------------- */
:root {
  /* Палитра */
  --pine: #274B36;       /* хвойный зелёный — заголовки, акценты */
  --grass: #58775C;      /* травянисто-зелёный — вторичный */
  --sage: #A7B29A;       /* шалфейный — мягкие акценты */
  --milk: #F6F3EA;       /* молочный фон */
  --gold: #C39A55;       /* приглушённое золото — CTA, акценты */
  --graphite: #242824;   /* графитовый текст */

  /* Производные */
  --bg: #F6F3EA;
  --bg-2: #EFEADD;       /* чуть темнее молока — чередование секций */
  --surface: #FFFFFF;
  --text: #242824;
  --text-soft: #57605A;  /* приглушённый текст */
  --line: rgba(36, 40, 36, .10);
  --line-soft: rgba(36, 40, 36, .06);
  --pine-soft: rgba(39, 75, 54, .08);

  /* Шрифты */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Форма */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(36, 40, 36, .05);
  --shadow: 0 14px 40px rgba(36, 40, 36, .10);
  --shadow-lg: 0 28px 70px rgba(36, 40, 36, .16);
  --container: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Glassmorphism (эффект «жидкого стекла») — подкручивать здесь */
  --glass-blur: 16px;
  --glass-opacity: 0.15;
}

/* ---------- Сброс и база -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
svg { display: block; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Типографика --------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--pine);
  line-height: 1.08;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-soft); }
.lead { font-size: 1.12rem; color: var(--text); }

/* ---------- Раскладка ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
[id] { scroll-margin-top: 88px; } /* отступ под липкую шапку при переходе по якорю */

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; }

/* «Надзаголовок» — eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grass);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Кнопки -------------------------------------------------------- */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: var(--milk);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
  box-shadow: 0 6px 18px rgba(39, 75, 54, .22);
}
.btn svg { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(39, 75, 54, .30); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #fff; box-shadow: 0 6px 18px rgba(195,154,85,.30); }
.btn--gold:hover { box-shadow: 0 12px 26px rgba(195,154,85,.40); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--pine);
  border: 1.5px solid var(--pine);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--pine); color: var(--milk); box-shadow: 0 10px 24px rgba(39,75,54,.22); }

.btn--light { --btn-bg: var(--surface); --btn-fg: var(--pine); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: #fff; }

.btn--block { width: 100%; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* =========================================================================
   ШАПКА
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 234, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(36,40,36,.05);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand { display: inline-flex; align-items: baseline; gap: 8px; }
.brand__mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--pine);
  letter-spacing: -.02em;
}
.brand__mark span { color: var(--gold); }
.brand__tag { font-size: .74rem; color: var(--grass); font-weight: 600; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .96rem;
  color: var(--text);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--pine); background: var(--pine-soft); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { display: none; } /* кнопка CTA видна только внутри мобильного меню */

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--pine);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__eyebrow { font-size: .82rem; }
.hero h1 { margin-bottom: 22px; }
.hero__text { font-size: 1.15rem; max-width: 540px; }

.hero__points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 36px 0 38px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hero__point { text-align: center; }
.hero__point-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--pine);
  line-height: 1;
}
.hero__point-label { display: block; margin-top: 8px; font-size: .82rem; color: var(--text-soft); line-height: 1.3; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; }
.hero__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}
.hero__badge {
  position: absolute;
  left: -22px;
  bottom: 34px;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
}
.hero__badge-ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pine-soft);
  color: var(--pine);
  display: grid;
  place-items: center;
}
.hero__badge-ico svg { width: 24px; height: 24px; }
.hero__badge strong { display: block; font-family: var(--font-head); color: var(--pine); font-size: 1.05rem; }
.hero__badge span { font-size: .82rem; color: var(--text-soft); }

/* декоративное пятно */
.hero__blob {
  position: absolute;
  z-index: -1;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,178,154,.45), transparent 70%);
  top: -120px; right: -120px;
  filter: blur(10px);
}

/* =========================================================================
   ОБ ЭКО-ДЕРЕВНЕ + КАРУСЕЛЬ
   ========================================================================= */
.about__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about__text p + p { margin-top: 16px; }
.about__text .btn { margin-top: 28px; }

/* Карусель на CSS scroll-snap (нативный свайп на тач-устройствах) */
.carousel { position: relative; }
.carousel__viewport {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 6px 18px;
  margin: -6px -6px 0;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.carousel__slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.carousel__controls { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.carousel__btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--pine);
  display: grid;
  place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--shadow-sm);
}
.carousel__btn:hover { background: var(--pine); color: var(--milk); transform: translateY(-2px); }
.carousel__btn:disabled { opacity: .4; cursor: default; transform: none; background: var(--surface); color: var(--pine); }
.carousel__btn svg { width: 22px; height: 22px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
  opacity: .5;
  transition: opacity .2s var(--ease), width .25s var(--ease), background .2s var(--ease);
}
.carousel__dot.is-active { opacity: 1; width: 24px; border-radius: 6px; background: var(--pine); }

/* =========================================================================
   FAQ — аккордеон
   ========================================================================= */
.faq { max-width: 820px; margin-inline: auto; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq__item.is-open { box-shadow: var(--shadow-sm); border-color: var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--pine);
}
.faq__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pine-soft);
  color: var(--pine);
  display: grid;
  place-items: center;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.faq__icon svg { width: 18px; height: 18px; }
.faq__item.is-open .faq__icon { transform: rotate(135deg); background: var(--pine); color: var(--milk); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__a { padding: 0 24px 24px; color: var(--text-soft); }

/* =========================================================================
   ГАЛЕРЕЯ
   ========================================================================= */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall { grid-row: span 2; }

/* =========================================================================
   ПРЕИМУЩЕСТВА
   ========================================================================= */
.adv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.adv-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.adv-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.adv-card:hover::before { transform: scaleX(1); }
.adv-card__ico {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--pine-soft);
  color: var(--pine);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.adv-card__ico svg { width: 30px; height: 30px; }
.adv-card:hover .adv-card__ico { background: var(--pine); color: var(--milk); }
.adv-card h3 { margin-bottom: 10px; }
.adv-card p { font-size: .98rem; }

/* =========================================================================
   БРОНИРОВАНИЕ
   ========================================================================= */
.booking { position: relative; }
.booking__card {
  position: relative;
  background: linear-gradient(135deg, var(--pine), #1d3a29);
  color: var(--milk);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px);
  overflow: hidden;
  text-align: center;
}
.booking__card::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,154,85,.35), transparent 70%);
  top: -120px; right: -80px;
}
.booking__card .eyebrow { color: var(--sage); }
.booking__card .eyebrow::before { background: var(--gold); }
.booking__card h2 { color: var(--milk); }
.booking__card > .lead { color: rgba(246,243,234,.85); max-width: 560px; margin: 16px auto 0; }
.booking__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  position: relative;
}
.booking__note { margin-top: 20px; font-size: .9rem; color: rgba(246,243,234,.65); }

.messenger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  background: rgba(246,243,234,.10);
  border: 1px solid rgba(246,243,234,.22);
  color: var(--milk);
  font-weight: 700;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.messenger svg { width: 20px; height: 20px; }
.messenger:hover { background: rgba(246,243,234,.20); transform: translateY(-2px); }

/* =========================================================================
   ПОДВАЛ
   ========================================================================= */
.site-footer { background: #1c3325; color: rgba(246,243,234,.78); padding-block: 64px 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,243,234,.14);
}
.footer__brand .brand__mark { color: var(--milk); }
.footer__about { margin-top: 16px; font-size: .95rem; color: rgba(246,243,234,.65); max-width: 320px; }
.footer__col h4 {
  color: var(--milk);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  opacity: .8;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: rgba(246,243,234,.78); font-size: .96rem; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--gold); }
.footer__contact { display: flex; gap: 10px; align-items: baseline; }
.footer__contact a { font-family: var(--font-head); font-weight: 700; color: var(--milk); font-size: 1.05rem; }
.footer__contact-note { font-size: .82rem; color: rgba(246,243,234,.5); margin-top: 10px; }

.footer__socials { display: flex; gap: 10px; margin-top: 4px; }
.social {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(246,243,234,.08);
  color: var(--milk);
  transition: background .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }

.footer__legal { white-space: pre-line; font-size: .84rem; color: rgba(246,243,234,.5); line-height: 1.7; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .86rem;
  color: rgba(246,243,234,.5);
}
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__docs a:hover { color: var(--gold); }

/* =========================================================================
   ЭФФЕКТ «ЖИДКОГО СТЕКЛА» (glassmorphism)
   Переиспользуемая утилита для текстовых блоков поверх фото.
     .glass-panel        — база: размытие + рамка + скругление + тень + префикс Safari
     .glass-panel--light — светлый полупрозрачный фон (белый), для светлых/пёстрых фото
     .glass-panel--dark  — тёмный полупрозрачный фон (чёрный), для тёмных фото
   Подстройка — переменные --glass-blur и --glass-opacity из :root.
   ========================================================================= */
.glass-panel {
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(36, 40, 36, 0.12);
}
.glass-panel--light {
  background: rgba(255, 255, 255, var(--glass-opacity));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(39, 75, 54, 0.18);
}
.glass-panel--dark {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
}
/* Фолбэк: браузеры без backdrop-filter получают более плотный фон, иначе панель
   была бы почти прозрачной и текст бы не читался. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-panel--light { background: rgba(255, 255, 255, 0.78); }
  .glass-panel--dark { background: rgba(0, 0, 0, 0.6); }
}

/* =========================================================================
   ПОДПИСЬ-«СТЕКЛО» ПОВЕРХ ФОТО (.photo-cap)
   Используется в карусели (about) и галерее. Управляется из content.js
   (about.carousel[].caption, gallery.images[].caption) и админки.
   Положение — якорь tl/tr/bl/br/c + пиксельные сдвиги --dx (→) и --dy (↓).
   Цвет текста зависит от варианта стекла (dark/light).
   ========================================================================= */
.carousel__slide { position: relative; }
.photo-cap {
  position: absolute;
  z-index: 2;
  max-width: 86%;
  padding: .5em .85em;
  border-radius: 12px;                 /* плотнее, чем у базового .glass-panel (20px) */
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.25;
  --dx: 0px; --dy: 0px;
}
.photo-cap__text { display: block; }
.photo-cap__sub { display: block; font-weight: 600; font-size: .82em; opacity: .85; }
.photo-cap__body { display: block; }
.photo-cap--icon { display: flex; align-items: center; gap: .6em; }
.photo-cap__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.photo-cap__icon svg { width: 20px; height: 20px; }
.photo-cap.glass-panel--light .photo-cap__icon { background: rgba(39,75,54,.12); }
.photo-cap.glass-panel--dark { color: #fff; }
.photo-cap.glass-panel--light { color: var(--pine); }

.photo-cap--tl { top: calc(14px + var(--dy)); left: calc(14px + var(--dx)); }
.photo-cap--tr { top: calc(14px + var(--dy)); right: calc(14px - var(--dx)); }
.photo-cap--bl { bottom: calc(14px - var(--dy)); left: calc(14px + var(--dx)); }
.photo-cap--br { bottom: calc(14px - var(--dy)); right: calc(14px - var(--dx)); }
.photo-cap--c { top: 50%; left: 50%; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); }

/* =========================================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   АДАПТИВ
   ========================================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .about__grid { grid-template-columns: 1fr; }
  .adv__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Мобильное меню */
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    padding: 18px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  body.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  body.nav-open .nav a:not(.btn) { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__cta { display: inline-flex; width: 100%; margin-top: 14px; }
  .nav-toggle { display: inline-flex; }
  .header__actions .btn { display: none; } /* кнопку «Выбрать дом» убираем из шапки на мобиле */

  .hero__points { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; padding: 22px; }
  .hero__badge { left: 12px; bottom: 12px; padding: 12px 16px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .adv__grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .hero__cta .btn { width: 100%; }
  .booking__actions .messenger,
  .booking__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
