/* «Воздух и Отдых» — стили лендинга */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #202719;
  --olive: #303a27;
  --cream: #f4ebdd;
  --cream-light: #faf5ec;
  --champagne: #d9c7a5;
  --gold: #b78a50;
  --gold-deep: #84602f;
  --brown: #382b20;
  --error: #9c3324;

  --ink-soft: rgba(56, 43, 32, 0.76);
  --line: rgba(56, 43, 32, 0.16);
  --line-soft: rgba(56, 43, 32, 0.10);
  --on-dark: #f4ebdd;
  --on-dark-soft: rgba(244, 235, 221, 0.76);
  --line-dark: rgba(217, 199, 165, 0.24);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 136px);
  --r-photo: 6px;
  --r-btn: 10px;
  --r-card: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.15, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 6.6vw, 6rem); line-height: 0.96; letter-spacing: -0.012em; }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.75rem); line-height: 1.02; letter-spacing: -0.008em; }
h3 { font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; font-weight: 600; }

:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible,
.section--olive .booking__head :focus-visible,
.footer :focus-visible { outline-color: var(--champagne); }

.container {
  width: min(100%, 1280px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--r-btn);
}
.skip:focus { top: 12px; }

.photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--r-photo);
  background: var(--champagne);
}
img[data-zoom] { cursor: zoom-in; }

/* ── Кнопки ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 0.9375rem; }
.btn--wide { width: 100%; }
.btn--primary { background: var(--forest); color: var(--cream); }
.btn--primary:hover { background: var(--olive); }
.btn--ghost { border-color: var(--gold); color: var(--brown); background: transparent; }
.btn--ghost:hover { background: rgba(183, 138, 80, 0.14); }
.btn--light { background: var(--champagne); color: var(--forest); }
.btn--light:hover { background: var(--cream); }
.btn--outline-light { border-color: var(--gold); color: var(--on-dark); }
.btn--outline-light:hover { background: rgba(217, 199, 165, 0.14); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ── Шапка ──────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 235, 221, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  width: min(100%, 1280px + 2 * var(--gutter));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--forest);
  text-decoration: none;
}
.brand__mark { width: 56px; height: 48px; flex: none; --mark-weight: 1.6; }
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.12;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.brand__name span { display: block; }
.brand__name i { text-transform: none; letter-spacing: 0.08em; font-weight: 500; }

.nav { display: flex; gap: 32px; }
.nav a {
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav a:hover { border-color: var(--gold); }
.nav__phone { display: none; }
.header__phone { font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.header__phone:hover { color: var(--olive); }
.menu-btn {
  display: none;
  min-height: 44px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* ── Первый экран ───────────────────────────────────────── */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero__lead {
  max-width: 31em;
  margin: clamp(20px, 2.6vw, 32px) 0 0;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  color: var(--ink-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(28px, 3.4vw, 44px); }

/* Фото трёх домов сменяют друг друга, под фото — вкладки */
.trio__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--champagne);
}
.trio__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}
.trio__stage img.is-active { opacity: 1; }
.trio__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.trio__tabs button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: left;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 200ms var(--ease);
}
.trio__tabs button small { font-size: 0.8125rem; font-weight: 400; }
.trio__tabs button[aria-selected="true"] { color: var(--brown); }
.trio__tabs button:hover { color: var(--brown); }
/* полоска над активной вкладкой показывает, сколько осталось до смены фото */
.trio__tabs button::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
}
.trio__tabs button[aria-selected="true"]::before { transform: scaleX(1); }
.trio.is-playing .trio__tabs button[aria-selected="true"]::before { animation: trio-progress var(--trio-time, 6s) linear forwards; }
@keyframes trio-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* лёгкое приближение активного фото, пока идёт полоска */
  .trio__stage img.is-active { animation: trio-zoom var(--trio-time, 6s) linear forwards; }
  @keyframes trio-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
}

/* ── Секции ─────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--light { background: var(--cream-light); }
.section--dark { background: var(--forest); color: var(--on-dark); }
.section--olive { background: var(--olive); color: var(--on-dark); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p { max-width: 32em; margin: 0; color: var(--ink-soft); }
.section--dark .section-head p { color: var(--on-dark-soft); }

.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { border-top: 1px solid var(--line); }
.plain-list--dark li,
.plain-list--dark li:first-child { border-color: var(--line-dark); }

/* ── Дома ───────────────────────────────────────────────── */
.house-main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.house-main__media { display: grid; gap: clamp(8px, 1vw, 16px); }
.house-main__photo { aspect-ratio: 4 / 5; }
.house-main__yard { aspect-ratio: 3 / 2; }
.house-main + .house-main { margin-top: clamp(64px, 9vw, 128px); }
.house-main--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.house-main--flip .house-main__media { order: 2; }
.house-meta {
  margin: 12px 0 20px;
  font-weight: 500;
  color: var(--ink-soft);
}
.house-main__body > p:not(.house-meta) { max-width: 34em; color: var(--ink-soft); }
.house-main__body .plain-list { max-width: 30em; margin-top: 24px; }
.house-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 28px;
}
.price {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.rates { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.price--dark { margin: -4px 0 20px; color: var(--champagne); }
.price.price--dark span { color: var(--on-dark-soft); }
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 88px); }
.promos .promo { margin-top: 0; grid-template-columns: 1fr; align-content: start; }
.promos .promo .btn { justify-self: start; }
.check small { font-weight: 400; font-size: 0.8125rem; color: var(--ink-soft); margin-left: 4px; }
.price span {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.house-main__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1vw, 16px);
  margin-top: clamp(32px, 4vw, 56px);
}
.house-main__thumbs .photo { aspect-ratio: 4 / 5; }

/* ── Баня и чан ─────────────────────────────────────────── */
.banya__photos {
  display: grid;
  grid-template-columns: 1fr 0.75fr 0.3267fr;
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(8px, 1vw, 16px);
  aspect-ratio: 2.12 / 1;
}
.banya__photos .photo { height: 100%; min-height: 0; background: var(--olive); }
.banya__p1, .banya__p2 { grid-row: 1 / -1; }
.banya__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 72px);
}
.banya__cols h3 { margin-bottom: 16px; }
.banya__cols p { max-width: 30em; color: var(--on-dark-soft); }
.banya__cols .btn { margin-top: 4px; }
.banya__cols .plain-list + .btn { margin-top: 28px; }

.promo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px clamp(20px, 3vw, 40px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--gold);
  border-radius: var(--r-card);
}
.promo__mark { width: 76px; height: 65px; color: var(--champagne); --mark-weight: 1.4; }
.promo p { margin: 8px 0 0; color: var(--on-dark-soft); }

/* ── Перед поездкой ─────────────────────────────────────── */
.trip__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.trip__head p { max-width: 26em; margin: 20px 0 28px; color: var(--ink-soft); }
.trip__list > div {
  display: grid;
  grid-template-columns: minmax(0, 11em) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.trip__list > div:first-child { border-top: 1px solid var(--line); }
.trip__list dt { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.trip__list dd { color: var(--ink-soft); }

/* ── Бронирование ───────────────────────────────────────── */
.booking__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.booking__head p { max-width: 32em; margin: 0; color: var(--on-dark-soft); }
.booking__head .booking__call { margin-top: 12px; }
.booking__call a { font-weight: 600; color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.booking__call a:hover { color: var(--champagne); }
.booking__card {
  padding: clamp(20px, 3vw, 40px);
  background: var(--cream);
  color: var(--brown);
  border-radius: var(--r-card);
}

/* Две колонки: слева даты и контакты, справа дом, гости, услуги и итог */
.bk {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "dates side"
    "contacts side"
    "contacts total";
  gap: clamp(24px, 3vw, 40px) clamp(24px, 3.4vw, 48px);
  align-items: start;
}
.bk__dates { grid-area: dates; }
.bk__side { grid-area: side; display: grid; gap: 24px; }
.bk__contacts { grid-area: contacts; }
.bk__total {
  grid-area: total;
  padding: clamp(20px, 2vw, 24px);
  background: var(--cream-light);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.bk__block { min-width: 0; margin: 0; padding: 0; border: 0; }
.bk__block legend {
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.1;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Календарь */
.cal { border: 1px solid var(--line-soft); border-radius: 14px; background: var(--cream-light); padding: clamp(12px, 1.4vw, 20px); }
.cal__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cal__status { flex: 1; margin: 0; text-align: center; font-weight: 600; font-size: 0.9375rem; }
.cal__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.cal__nav:hover:not(:disabled) { background: rgba(183, 138, 80, 0.16); }
.cal__nav:disabled { opacity: 0.35; cursor: default; }
.cal__nav svg, .lightbox__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.cal__title { margin-bottom: 4px; font-family: var(--serif); font-size: 1.375rem; font-weight: 600; text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal__wd { padding: 8px 0; font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); text-align: center; }
.cal__day {
  position: relative;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.cal__day:hover:not(:disabled) { background: rgba(183, 138, 80, 0.2); }
.cal__day:disabled { color: rgba(56, 43, 32, 0.3); cursor: default; }
.cal__day.is-weekend:not(:disabled) { color: var(--gold-deep); font-weight: 600; }
.cal__legend { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 0.8125rem; color: var(--ink-soft); }
.cal__legend-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--gold); }
.cal__day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
}
.cal__day.is-between,
.cal__day.is-preview { background: rgba(217, 199, 165, 0.55); border-radius: 0; }
.cal__day.is-start,
.cal__day.is-end,
.cal__day.is-weekend.is-start:not(:disabled),
.cal__day.is-weekend.is-end:not(:disabled) { background: var(--forest); color: var(--cream); }
.cal__day.is-start:hover,
.cal__day.is-end:hover { background: var(--olive); }
.cal__day.is-start.has-end { border-radius: 8px 0 0 8px; }
.cal__day.is-end { border-radius: 0 8px 8px 0; }

/* Выбор дома */
.houses-pick { display: grid; gap: 8px; }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.pick__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.pick__name, .pick__price { display: flex; flex-direction: column; line-height: 1.3; }
.pick__name b { font-weight: 600; }
.pick__price { align-items: flex-end; font-weight: 600; text-align: right; white-space: nowrap; }
.pick small { font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }
.pick:hover .pick__box { border-color: var(--gold); }
.pick input:checked + .pick__box { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.pick input:checked + .pick__box small { color: var(--on-dark-soft); }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

/* Гости */
.guests { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 4px 16px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stepper__label { font-weight: 500; }
.stepper__ctrl { display: flex; align-items: center; gap: 4px; }
.stepper__ctrl button {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px; /* 12 у блока минус 4 отступа */
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.stepper__ctrl button:hover:not(:disabled) { background: rgba(183, 138, 80, 0.16); }
.stepper__ctrl button:disabled { opacity: 0.35; cursor: default; }
.stepper__ctrl output { min-width: 2ch; text-align: center; font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

/* Флажки */
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 500; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__box {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background: var(--cream-light);
  border: 1px solid var(--gold);
  border-radius: 6px;
  transition: background-color 200ms var(--ease);
}
.check input:checked + .check__box {
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4EBDD' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--forest);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.check--consent { font-weight: 400; font-size: 0.9375rem; line-height: 1.5; }
.check--consent a { text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Поля */
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9375rem; }
.field label small, .stepper__label small { font-weight: 400; color: var(--ink-soft); font-size: 0.8125rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-size: 1rem;
  transition: border-color 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: rgba(56, 43, 32, 0.45); }
.field input:hover, .field textarea:hover { border-color: var(--gold); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 1px; border-color: var(--gold-deep); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__error { margin: 8px 0 0; font-size: 0.8125rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.field__error--form { margin-top: 16px; text-align: center; }

/* Баня и чан в форме */
.extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 4px 4px 4px 16px;
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.extra + .extra { margin-top: 8px; }
.extra__text { display: flex; flex-direction: column; line-height: 1.3; }
.extra__text b { font-weight: 600; }
.extra__note { font-size: 0.8125rem; color: var(--ink-soft); }
.extra--check { position: relative; cursor: pointer; padding-right: 16px; }
.extra--check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.extra--check input:checked + .check__box {
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4EBDD' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--forest);
}
.extra--check input:focus-visible + .check__box { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.extra--check:hover:not(.is-off) { border-color: var(--gold); }
.extra.is-off { background: transparent; border-style: dashed; cursor: default; }
.extra.is-off .extra__text b { color: var(--ink-soft); }
.extra.is-off .check__box { opacity: 0.35; }
.extra.is-off input { cursor: default; }
.stepper--bare { padding: 0; background: none; border: 0; gap: 8px; }
.stepper__unit { font-size: 0.8125rem; color: var(--ink-soft); }

/* Комментарий по запросу */
.comment summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
}
.comment summary::-webkit-details-marker { display: none; }
.comment summary::before { content: "+"; margin-right: 8px; font-size: 1.0625rem; }
.comment[open] summary::before { content: "−"; }
.comment .field { margin: 4px 0 0; }

/* Расчёт стоимости */
.receipt__empty { margin: 0 0 16px; font-size: 0.9375rem; color: var(--ink-soft); }
.receipt { margin: 0; }
.receipt:empty { display: none; }
.receipt > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.receipt > div:first-child { padding-top: 0; }
.receipt dt { font-weight: 600; }
.receipt dt small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-soft); }
.receipt dd { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .is-discount dd { color: var(--gold-deep); }
.receipt .is-total dt, .receipt .is-total dd { font-size: 1.0625rem; font-weight: 600; }
.receipt--done .is-total { border-bottom: 0; }
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 12px 0 8px;
}
.total span { font-weight: 600; }
.total b {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.bk__total .check--consent { margin-top: 4px; }
.bk__total .btn { margin-top: 8px; }

.done { text-align: center; padding: clamp(16px, 4vw, 48px) 0; outline: 0; }
.done__mark { width: 92px; height: 79px; margin: 0 auto 24px; color: var(--forest); --mark-weight: 1.3; }
.done > p { max-width: 28em; margin: 16px auto 28px; color: var(--ink-soft); }
.receipt--done { max-width: 30em; margin: 0 auto 28px; text-align: left; }
.receipt--done > div:first-child { padding-top: 8px; border-top: 1px solid var(--line); }
.done__test { padding: 16px 20px; border: 1px dashed var(--gold); border-radius: var(--r-btn); font-size: 0.8125rem; }

/* ── Подвал ─────────────────────────────────────────────── */
.footer { background: var(--forest); color: var(--on-dark-soft); padding-block: clamp(56px, 7vw, 96px) 40px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
}
.footer__logo { width: min(100%, 400px); margin: -24px 0 0 -20px; }
.footer h3 { margin-bottom: 16px; font-size: 1.5rem; color: var(--on-dark); }
.footer p { margin: 0 0 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--champagne); }
.footer__phone { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; color: var(--on-dark); white-space: nowrap; }
.footer__links li { padding: 4px 0; }
.footer .footer__note { margin: clamp(40px, 5vw, 64px) 0 0; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.8125rem; }

/* ── Согласие на cookie ─────────────────────────────────── */
.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  width: min(440px, calc(100vw - 48px));
  padding: 20px;
  background: var(--cream-light);
  color: var(--brown);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(32, 39, 25, 0.12);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.cookie p { margin: 0 0 16px; }
.cookie a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; }
.cookie__actions .btn { flex: 1; }

/* ── Мобильная панель и лайтбокс ────────────────────────── */
.bookbar { display: none; }

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(22, 27, 17, 0.96);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(22, 27, 17, 0.96); }
.lightbox img { max-width: min(92vw, 1100px); max-height: 88dvh; border-radius: var(--r-photo); }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(244, 235, 221, 0.1);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--cream);
  cursor: pointer;
}
.lightbox__btn:hover { background: rgba(244, 235, 221, 0.2); }
.lightbox__btn:focus-visible { outline-color: var(--champagne); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -24px; }

/* ── Адаптив ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .header__phone { display: none; }
  .nav { gap: 24px; }
  .bk { grid-template-columns: 1fr; grid-template-areas: "dates" "side" "contacts" "total"; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav__phone { display: block; font-weight: 600; }
  .menu-btn { display: block; }
  .header__cta { display: none; }
  .header__inner { gap: 12px; }
  .brand__mark { width: 42px; height: 36px; }
  .brand__name { font-size: 0.9375rem; }

  .hero__grid, .house-main, .trip__grid, .section-head, .banya__cols, .booking__head { grid-template-columns: 1fr; }
  /* на телефоне фото идёт сразу после кнопок, факты — под ним */
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__text { display: contents; }
  .trio { order: 4; margin-top: 36px; }
  .trio__tabs button small { display: none; }

  .house-main__photo { aspect-ratio: 1 / 1; }

  .banya__photos {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    aspect-ratio: auto;
  }
  .banya__photos .photo { height: auto; aspect-ratio: 1 / 1; }
  .banya__p1 { grid-column: 1 / -1; grid-row: auto; }
  .banya__p2 { grid-column: 1 / -1; grid-row: auto; }
  /* на телефоне сначала название дома, потом его фото — так видно, где начинается следующий дом */
  .house-main { display: flex; flex-direction: column; gap: 0; }
  .house-main__body { display: contents; }
  .house-main__body > * { order: 3; }
  .house-main__body > h3 { order: 0; }
  .house-main__body > .house-meta { order: 1; margin-bottom: 16px; }
  .house-main .house-main__media,
  .house-main--flip .house-main__media { order: 2; margin-bottom: 24px; }
  .house-main + .house-main { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
  .banya__p3, .banya__p4, .banya__p5 { grid-column: span 2; }

  .promos { grid-template-columns: 1fr; }
  .promo, .promos .promo { grid-template-columns: 1fr; text-align: left; }
  .promo__mark { width: 60px; height: 51px; }

  .trip__list > div { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__logo { margin: -12px 0 0 -12px; width: min(100%, 320px); }

  body { padding-bottom: 84px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  body.cookie-open .bookbar { display: none; }
  .bookbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(244, 235, 221, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 300ms var(--ease);
  }
  .bookbar.is-visible { transform: none; }
  .bookbar .btn { flex: 1; }
  .bookbar__call {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: none;
    border: 1px solid var(--gold);
    border-radius: var(--r-btn);
  }
  .bookbar__call svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
}

@media (max-width: 560px) {
  .fields-2 { grid-template-columns: 1fr; }
  .guests { grid-template-columns: 1fr; }
  .stepper__ctrl button { width: 40px; }
  .house-main__thumbs { grid-template-columns: repeat(2, 1fr); }
  .hero__actions .btn { flex: 1 1 100%; }
  .house-buy .btn { flex: 1 1 100%; }
  .booking__card { margin-inline: calc(var(--gutter) * -0.5); }
  .cal__day { height: 44px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

@media print {
  .header, .bookbar, .lightbox { display: none; }
}
