/* =========================================================
   Эко-дома Шилкино — стили лендинга
   Порядок: шрифты → токены → база → компоненты → блоки
   страницы (в порядке разметки) → диалоги → адаптив
   ========================================================= */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tenor-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tenor-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/tenor-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/golos-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/golos-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/golos-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --paper: #ECEADC;      /* Лён — фон страницы */
  --sage-tint: #DCDFCB;  /* Шалфей светлый — плашки, светлые секции */
  --sage: #B3BB9A;       /* Шалфей — линии, иллюстрации */
  --pine: #4B5A3C;       /* Хвоя — второстепенный текст */
  --moss: #2E3A28;       /* Мох — заголовки, кнопки, тёмные секции */
  --moss-2: #374532;     /* карточки на тёмном фоне */
  --ink: #1E241B;        /* основной текст */
  --larch: #C4874A;      /* Лиственница — акценты */
  --glow: #F6D58E;       /* Лампа — свет на тёмном */

  --line: color-mix(in srgb, var(--moss) 16%, transparent);
  --line-dark: color-mix(in srgb, var(--paper) 18%, transparent);

  /* type */
  --f-display: "Tenor Sans", "Times New Roman", serif;
  --f-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* shape & rhythm */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-text);
  overflow-x: clip;
}

img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; color: var(--moss); }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--larch); outline-offset: 3px; }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--moss);
  color: var(--paper);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted { color: var(--pine); }

/* ---------- Components ---------- */

/* section scaffolding */
.section { padding: var(--section-y) 0; }
.section-tint { background: var(--sage-tint); }
.section-dark { background: var(--moss); color: var(--paper); }

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 16px;
}
.section-dark .section-title { color: var(--paper); }

.section-lead {
  max-width: 60ch;
  font-size: 18px;
  color: var(--pine);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-dark .section-lead { color: color-mix(in srgb, var(--paper) 80%, transparent); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--moss);
  border-radius: 999px;
  font: 500 16px/1.2 var(--f-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--moss); color: var(--paper); }
.btn-primary:hover { background: var(--pine); border-color: var(--pine); }
.btn-ghost { background: transparent; color: var(--moss); }
.btn-ghost:hover { background: color-mix(in srgb, var(--moss) 8%, transparent); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--moss); }
.btn-light:hover { background: var(--glow); border-color: var(--glow); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.round-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50%;
  background: transparent;
  color: var(--moss);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.round-btn:hover { border-color: currentColor; }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 22px; height: 22px; }
.round-btn-solid { background: var(--moss); border-color: var(--moss); color: var(--paper); }

.icon {
  flex: none;
  width: 30px; height: 30px;
  color: var(--pine);
}

/* list with the gable-triangle marker */
.tri-list { display: grid; gap: 8px; }
.tri-list li { position: relative; padding-left: 20px; }
.tri-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 9px; height: 8px;
  background: var(--larch);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.section-dark .tri-list li::before,
.ny-card .tri-list li::before { background: var(--glow); }

.stars { color: var(--larch); letter-spacing: 2px; }

.price-num {
  font-family: var(--f-display);
  font-weight: 400;
  white-space: nowrap;
}
.price-note { margin-top: 16px; font-size: 15px; color: var(--pine); }

/* ---------- Season bar ---------- */
.season-bar {
  background: var(--moss);
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
.season-bar a {
  display: block;
  padding: 10px var(--gutter);
  color: var(--glow);
  text-decoration: none;
}
.season-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }

body:not(.is-ny) [data-season="ny"] { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(1200px + 2 * var(--gutter));
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--moss);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 36px; height: 34px; }
.brand-mark .logo-bulbs { fill: var(--larch); }
.brand-name {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--pine);
  font-size: 15px;
  text-decoration: none;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--moss); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--moss);
  cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- 1. Hero ---------- */
.hero { padding-top: clamp(24px, 4vw, 56px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px 48px;
}


.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 8.6vw, 62px);
  line-height: 1.08;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-lead {
  max-width: 34ch;
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--pine);
}
.hero-facts { margin-top: 24px; }
.hero-copy .btn-row { margin-top: 32px; }

.hero-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--pine);
  text-decoration: none;
}
.hero-rating b { color: var(--moss); font-weight: 600; }
.hero-rating:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }

/* vertical 3:4 video, rounded like every other photo on the page */
.hero-media {
  justify-self: end;
  /* fits the first screen on short laptop displays: height ≈ viewport minus header */
  width: min(100%, clamp(300px, (100vh - 200px) * .75, 460px));
  width: min(100%, clamp(300px, (100svh - 200px) * .75, 460px));
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sage-tint);
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* ---------- 2. Why ---------- */
#why { padding-top: clamp(72px, 9vw, 120px); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr; /* the icon's extra height goes to the text row, not between title and text */
  align-items: start;
  gap: 4px 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.why-item .icon { grid-row: 1 / 3; margin-top: -2px; }
.why-item h3 { font-size: 18px; }
.why-item p { color: var(--pine); }

/* ---------- 3. A day ---------- */
.day-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}
.day-item { display: grid; gap: 20px; align-content: start; }
.day-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-md);
}
.day-text { display: grid; gap: 6px; }
.day-time {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1;
  color: var(--larch);
}
.day-item h3 { font-size: 20px; }
.day-item p { color: var(--pine); }

/* ---------- 4. House ---------- */
/* minmax(0, 1fr): the gallery track is wider than the page and must not stretch the column */
.houses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 80px; }

.house { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }

.gallery { position: relative; }
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 26vw, 320px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track li { scroll-snap-align: start; }
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sage-tint);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.house-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px 64px;
  align-items: start;
}
.house-intro { display: grid; gap: 24px; }
.house-intro .btn { justify-self: start; }
.house-lead { font-size: 18px; }
.house-specs { display: grid; gap: 14px; }
.house-specs li { display: flex; gap: 14px; align-items: center; }
.house-specs .icon { width: 26px; height: 26px; }
.house-price p:first-child { color: var(--moss); }
.price-from { font-size: 18px; color: var(--pine); }
.house-price .price-num { font-size: 44px; line-height: 1.1; }

.amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--sage-tint);
}
.amenity-group h3 {
  font-size: 17px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.amenity-group ul { display: grid; gap: 6px; font-size: 16px; color: var(--ink); }

/* ---------- 5. Spa (dark) ---------- */
.spa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .8fr);
  gap: 20px;
  align-items: stretch;
}
.spa-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--moss-2);
}
.spa-media { position: relative; aspect-ratio: 4 / 3.4; background: var(--moss); }
.spa-media img, .spa-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 40px;
  fill: var(--moss-2);
}
.spa-body { display: grid; gap: 14px; align-content: start; padding: 4px 28px 30px; }
.spa-body h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
}
.spa-body p, .spa-body li { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.spa-body .tri-list { font-size: 15px; }
.spa-body .spa-price {
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  color: var(--glow);
}

.spa-combo {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px 28px;
  border: 1.5px solid var(--glow);
  border-radius: var(--r-lg);
}
.spa-combo h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
}
.combo-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.combo-price .price-num { font-size: 52px; line-height: 1; color: var(--glow); }
.combo-price s { font-size: 18px; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.spa-combo p { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.spa-combo .btn { justify-self: start; }

/* ---------- 6. Territory ---------- */
.territory-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px 64px;
  align-items: center;
}
.feature-list { display: grid; }
.feature-list div { padding: 18px 0; border-top: 1px solid var(--line); }
.feature-list div:last-child { border-bottom: 1px solid var(--line); }
.feature-list dt { font-weight: 600; color: var(--moss); }
.feature-list dd { color: var(--pine); }

.territory-photos {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: clamp(440px, 52vw, 640px);
}
/* contain: size — the photo fills its cell instead of setting the row height */
.territory-photos img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--r-md);
  contain: size;
}
.territory-photos .tp-a { grid-row: 1 / 3; border-top-left-radius: 120px; }

/* ---------- 7. Prices ---------- */
.prices-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.price-card-plain { background: transparent; border: 1px solid color-mix(in srgb, var(--moss) 22%, transparent); }
.price-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.price-card > .muted { margin-top: 6px; font-size: 15px; }
.price-card h4 { margin-top: 28px; font-size: 17px; }
.price-card .btn { margin-top: 24px; }

.price-rows { margin-top: 12px; }
.price-rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.price-rows li:last-child { border-bottom: 0; }
.price-rows small { display: block; font-size: 13px; color: var(--pine); }
.price-rows b {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--moss);
  white-space: nowrap;
}
.price-rows-small b { font-size: 22px; }

/* New Year */
.ny { margin-top: clamp(56px, 7vw, 88px); }
.ny-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.ny-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ny-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--moss);
  color: var(--paper);
}
/* aspect-ratio: auto drops the ratio implied by width/height attributes, so the text sets the card height */
.ny-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; aspect-ratio: auto; contain: size; }
.ny-body { display: grid; gap: 12px; align-content: start; padding: 28px 26px 30px; }
.ny-dates { color: var(--glow); font-size: 15px; }
.ny-body h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paper);
}
.ny-price { color: color-mix(in srgb, var(--paper) 82%, transparent); }
.ny-price .price-num { font-size: 36px; color: var(--glow); margin-right: 4px; }
.ny-body p:not(.ny-dates):not(.ny-price), .ny-body li { color: color-mix(in srgb, var(--paper) 82%, transparent); font-size: 15px; }

/* ---------- 8. Offers ---------- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.offer {
  display: grid;
  gap: 8px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--sage-tint);
}
.offer-num {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  color: var(--moss);
  margin-bottom: 8px;
}
.offer h3 { font-size: 20px; }
.offer p:last-child { color: var(--pine); }

/* ---------- 9. Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.score {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--moss);
  color: color-mix(in srgb, var(--paper) 85%, transparent);
}
.score-num { font-family: var(--f-display); font-size: 84px; line-height: 1; color: var(--glow); }
.score .stars { color: var(--glow); }
.score .btn { margin-top: 14px; border-color: color-mix(in srgb, var(--paper) 45%, transparent); color: var(--paper); }
.score .btn:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); }

.review {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--paper);
}
.review blockquote p { font-size: 16px; line-height: 1.6; }
.review figcaption { font-size: 14px; color: var(--pine); }

.insta-strip { margin-top: clamp(40px, 5vw, 64px); }
.insta-strip ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.insta-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
}
.insta-strip p { margin-top: 18px; text-align: center; color: var(--pine); }
.insta-strip a { color: var(--moss); text-underline-offset: 3px; }

/* ---------- 10. Rules ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}
.rules-grid li {
  display: flex;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.rules-grid h3 { font-size: 18px; margin-bottom: 4px; }
.rules-grid p { color: var(--pine); }

/* ---------- 11. FAQ ---------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px 64px;
  align-items: start;
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--moss);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; color: var(--pine); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding-bottom: 22px; color: var(--pine); }

/* ---------- 12. Booking (dark) ---------- */
.booking { position: relative; overflow: hidden; text-align: center; }
.booking-inner { display: grid; justify-items: center; }
.booking .section-lead { margin-left: auto; margin-right: auto; }

.sprig { position: absolute; color: var(--sage); opacity: .35; pointer-events: none; }
.sprig-booking { width: 300px; height: 150px; right: -40px; top: 32px; transform: rotate(-8deg); }

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 26px;
  border: 1.5px solid color-mix(in srgb, var(--moss) 30%, transparent);
  border-radius: 999px;
  color: var(--moss);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.contact-btn svg { flex: none; width: 24px; height: 24px; color: var(--larch); }
.contact-btn:hover { background: color-mix(in srgb, var(--moss) 7%, transparent); border-color: var(--moss); }

.section-dark .contact-btn { border-color: color-mix(in srgb, var(--paper) 35%, transparent); color: var(--paper); }
.section-dark .contact-btn svg { color: var(--glow); }
.section-dark .contact-btn:hover { background: color-mix(in srgb, var(--paper) 10%, transparent); border-color: var(--paper); }

.contact-buttons-stack { flex-direction: column; align-items: stretch; }
.contact-buttons-stack .contact-btn { justify-content: center; padding: 0 20px; }

/* ---------- 13. Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 40px 64px;
  align-items: center;
}
.contacts-copy { display: grid; gap: 20px; }
.contacts-copy .section-title { margin-bottom: 0; }
.address { display: flex; gap: 12px; align-items: flex-start; font-size: 18px; color: var(--moss); }
.address .icon { width: 26px; height: 26px; margin-top: 1px; }
.contacts-copy .tri-list { color: var(--pine); }
.contacts-copy .btn-row { margin-top: 8px; }

.map {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--sage-tint);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  background: var(--moss);
  color: color-mix(in srgb, var(--paper) 78%, transparent);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1.6fr;
  gap: 32px 56px;
  align-items: start;
}
.footer-brand { display: grid; gap: 8px; justify-items: start; }
.footer-logo { width: 170px; height: auto; color: var(--paper); }
.footer-logo .logo-bulbs { fill: var(--glow); }
.footer-logo text {
  fill: currentColor;
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: 9px;
}
.footer-contacts { display: grid; gap: 8px; }
.footer-contacts a { color: var(--paper); text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-note { display: grid; gap: 10px; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; }
dialog::backdrop {
  background: color-mix(in srgb, var(--moss) 70%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.book-dialog {
  width: min(440px, calc(100% - 32px));
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
}
.book-dialog-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 36px clamp(20px, 6vw, 28px) 28px;
}
.book-dialog-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 6vw, 26px);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-right: 60px;
}
.book-dialog p { color: var(--pine); }
.book-dialog .contact-buttons { margin-top: 8px; }
.dialog-close { position: absolute; top: 18px; right: 18px; }

.viewer {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  background: rgba(22, 28, 19, .96);
  color: var(--paper);
}
.viewer::backdrop { background: transparent; }
.viewer[open] { display: block; overflow: hidden; overscroll-behavior: contain; }

/* page scroll lock while a dialog is open (see openDialog in main.js) */
html.is-locked, html.is-locked body { overflow: hidden; overscroll-behavior: none; }

.viewer-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: pan-x pinch-zoom; /* vertical drags do nothing: the page behind stays put */
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide {
  flex: 0 0 100%;
  display: grid;
  /* definite row/column, so max-height: 100% on the photo works and it always fits the screen */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-width: 0;
  padding: 72px 80px;
  scroll-snap-align: center;
  scroll-snap-stop: always; /* exactly one photo per swipe */
}
.viewer-slide img {
  max-width: min(100%, 1100px);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-sm);
}
.viewer .round-btn { position: absolute; color: var(--paper); background: rgba(22, 28, 19, .5); }
.viewer-close { top: 16px; right: 16px; }
.viewer-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 16px; top: 50%; transform: translateY(-50%); }
.viewer-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .8; }

/* ---------- Footer legal links ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a, .link-button { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.footer-legal a:hover, .link-button:hover { text-decoration-color: currentColor; }

/* ---------- Cookie notice ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  gap: 14px;
  width: min(460px, calc(100% - 40px));
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 18px 48px -20px rgba(30, 36, 27, .45);
  font-size: 14px;
  line-height: 1.5;
  color: var(--pine);
}
.cookie-banner a { color: var(--moss); text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Document pages (privacy, consent) ---------- */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.doc-inner { max-width: calc(760px + 2 * var(--gutter)); }
.doc-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.doc-meta { margin-top: 10px; color: var(--pine); font-size: 15px; }
.doc h2 { margin: 36px 0 10px; font-size: 20px; }
.doc h3 { margin: 20px 0 8px; font-size: 17px; }
.doc p + p { margin-top: 10px; }
.doc ul { margin: 8px 0 0; padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 4px; }
.doc ul + p { margin-top: 12px; }
.doc a { color: var(--moss); text-underline-offset: 3px; }
.doc-table { overflow-x: auto; margin-top: 12px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-table th, .doc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table th { font-weight: 600; color: var(--moss); background: var(--sage-tint); }
.doc-footer { padding: 32px 0; }
.doc-footer p + p { margin-top: 8px; }
.doc-footer a { color: var(--paper); text-underline-offset: 3px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .gallery-item img, .btn, .round-btn, .contact-btn { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav { gap: 20px; }
  .spa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spa-combo { grid-column: 1 / -1; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ny-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 60px; }

  /* header: menu collapses */
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 18px; color: var(--moss); border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { justify-self: start; width: 100%; max-width: 460px; }

  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .day-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .house-body { grid-template-columns: minmax(0, 1fr); }
  .territory-grid { grid-template-columns: minmax(0, 1fr); }
  .prices-grid { grid-template-columns: minmax(0, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-note { grid-column: 1 / -1; }
  .insta-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  /* room for the action bar: 8 + 44 + 1px border + its bottom padding */
  body { font-size: 16px; padding-bottom: calc(53px + max(8px, env(safe-area-inset-bottom) - 10px)); }

  .header-cta { display: none; }

  .hero { padding-top: 16px; }
  .hero-copy .btn-row .btn { flex: 1 1 100%; }

  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .why-item { padding: 22px 0; }

  /* day: horizontal swipe */
  .day-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    scroll-padding: 0 var(--gutter);
  }
  .day-list::-webkit-scrollbar { display: none; }
  .day-item { scroll-snap-align: start; }

  .gallery-track {
    grid-auto-columns: 72%;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 4px;
    scroll-padding: 0 var(--gutter);
  }
  .gallery-controls { display: none; }

  .amenities { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .spa-grid { grid-template-columns: minmax(0, 1fr); }
  .spa-combo .btn { justify-self: stretch; }

  .territory-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; height: auto; }
  .territory-photos img { aspect-ratio: 3 / 4; height: auto; contain: none; }
  .territory-photos .tp-a { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; border-top-left-radius: 80px; }

  .ny-card { grid-template-columns: minmax(0, 1fr); }
  .ny-card img { aspect-ratio: 4 / 3; height: auto; min-height: 0; contain: none; }

  .offers-grid { grid-template-columns: minmax(0, 1fr); }

  .reviews-grid { grid-template-columns: minmax(0, 1fr); }

  .rules-grid { grid-template-columns: minmax(0, 1fr); }
  .rules-grid li { padding: 20px 0; }

  .faq summary { font-size: 17px; }

  .contact-buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .contact-btn { justify-content: center; }
  .sprig-booking { display: none; }

  .contacts-copy .btn-row { width: 100%; }
  .contacts-copy .btn-row .btn { flex: 1 1 100%; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    /* compact: 44px buttons; on iPhone only part of the home-indicator zone is kept free */
    padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom) - 10px);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .action-bar .btn { flex: 1; min-height: 44px; }

  .cookie-banner { left: 10px; right: 10px; width: auto; bottom: calc(61px + max(8px, env(safe-area-inset-bottom) - 10px)); }
  .doc-body { padding-bottom: 0; }
  /* the cookie table becomes a list of cards: name, then purpose and lifetime */
  .doc-table thead { display: none; }
  .doc-table table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; }
  .doc-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc-table td { padding: 2px 0; border: 0; }
  .doc-table td:first-child { font-weight: 600; color: var(--moss); }
  .doc-table td:last-child { font-size: 14px; color: var(--pine); }
  .doc-body .header-inner { gap: 12px; }
  .doc-body .btn-small { white-space: nowrap; }
  .action-bar .round-btn { width: 44px; height: 44px; }

  .viewer-prev, .viewer-next { top: auto; bottom: 12px; transform: none; }
  .viewer-slide { padding: 72px 12px 84px; }
}

@media (max-width: 400px) {
  .doc-body .brand-name { display: none; }
}
