/* Хвоя — night-forest palette. The lit A-frame window is the only warm colour;
   it reappears only where the guest acts: the booking button and selected dates. */
:root {
  --spruce: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M13 0 6 9h3.5L3 18h4.2L0 28h11v4h4v-4h11l-7.2-10H23l-6.5-9H20z'/%3E%3C/svg%3E");
  --night: #13261E;
  --pine: #1F3A2E;
  --moss: #4A6656;
  --fog: #E8EEEA;
  --paper: #FAFBF8;
  --ink: #17241D;
  --muted: #5B6A61;
  --line: #CCD7D0;
  --lake: #2F6472;
  --lake-wash: #D8E6E8;
  --lamp: #F3B23F;
  --lamp-deep: #D9921C;
  --lamp-ink: #2E2006;
  --danger: #A63D2A;
  --ok: #2F6B48;

  --display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--fog); color: var(--ink); font: 400 17px/1.6 var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--lake); text-underline-offset: 3px; }
a:hover { color: var(--pine); }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; }
h2 { font: 500 clamp(24px, 3vw, 30px)/1.2 var(--display); letter-spacing: -0.01em; }
h3 { font: 600 17px/1.4 var(--text); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn--lamp { background: var(--lamp); color: var(--lamp-ink); }
.btn--lamp:hover { background: var(--lamp-deep); color: var(--lamp-ink); }
.btn--dark { background: var(--pine); color: #fff; }
.btn--dark:hover { background: var(--night); color: #fff; }
.btn--quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger-quiet { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn--block { width: 100%; }
.btn--big { min-height: 56px; font-size: 17px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 18px; cursor: pointer; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field > span { font-weight: 500; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px var(--lake-wash); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pine); flex: none; }
.form-error { color: var(--danger); font-weight: 500; }
.stack > * + * { margin-top: 4px; }

.notice { padding: 16px 20px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); margin-bottom: 24px; }
.notice p:last-child { margin-bottom: 0; }
.notice .btn { margin-top: 4px; }
.notice--warn { background: #FFF6E3; border-color: #F0D59C; }
.notice--ok { background: #E6F2EA; border-color: #B7D6C2; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.badge--ok { background: #DCEFE3; color: var(--ok); }
.badge--warn { background: #FCEBC4; color: #7A5300; }
.badge--off { background: #E3E7E4; color: var(--muted); }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18px/1 var(--display); }
.logo__mark { width: 28px; height: 28px; }
.logo--dark { color: var(--pine); }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: inherit; text-decoration: none; font-size: 15px; opacity: .85; white-space: nowrap; }
@media (max-width: 1180px) { .topnav { gap: 14px; } .topnav a { font-size: 14px; } }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.topbar__phone { margin-left: auto; color: inherit; text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.topnav + .topbar__phone { margin-left: 0; }
.topbar--over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; transition: background .2s, color .2s, border-color .2s; }
.topbar--over .logo { color: #fff; }
.topbar--over.is-solid { background: var(--paper); color: var(--ink); border-color: var(--line); }
.topbar--over.is-solid .logo { color: var(--ink); }
@media (max-width: 1040px) { .topnav { display: none; } }

/* ---------- hero ---------- */
/* Night palette with one warm light: the evening photo of the chan under the garlands.
   The arch-topped frame echoes the sauna window. */
.hero {
  --forest-h: calc(max(100vw, 980px) * 280 / 1600);
  --sun-x: 76%; --sun-y: 64%;
  position: relative; overflow: hidden;
  /* Sunset low behind the pines: warm glow at the sun, deep green-blue overhead. */
  background:
    radial-gradient(22% 26% at var(--sun-x) var(--sun-y), rgba(255, 214, 150, .7), rgba(255, 170, 90, .22) 50%, transparent 80%),
    radial-gradient(70% 60% at var(--sun-x) var(--sun-y), rgba(243, 160, 63, .26), transparent 70%),
    linear-gradient(to bottom, #0A1611, #11241B 40%, #22392C 72%, #3F5040);
  color: #fff; padding: 112px 0 calc(var(--forest-h) * .62);
}
.hero__in { position: relative; z-index: 3; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(24px, 5vw, 72px); }
.hero__title {
  font: 600 clamp(46px, 6.2vw, 112px)/.95 var(--display); letter-spacing: -0.04em; margin: 0 0 22px;
  margin-left: -0.04em; overflow-wrap: normal; word-break: keep-all;
}
.hero__tagline { font-size: clamp(18px, 2vw, 22px); max-width: 32ch; margin-bottom: 20px; color: #E6EEE9; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero__facts li { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: 15px; }
.hero__facts a { color: inherit; text-decoration: none; }
.hero__photo { position: relative; z-index: 1; margin: 0; width: min(380px, 32vw); aspect-ratio: 415 / 540; border-radius: 999px 999px 18px 18px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(243, 178, 63, .45); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
@media (max-width: 760px) {
  .hero { padding-top: 84px; }
  .hero__in { z-index: 1; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__photo { order: -1; width: 100%; aspect-ratio: 4 / 3.4; border-radius: 160px 160px 16px 16px; }
  .hero__photo img { object-position: 50% 40%; }
}

/* ---------- home layout ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: 48px; padding-bottom: 96px; }
.home__aside { position: sticky; top: 88px; }
.section { padding: 40px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; padding-top: 0; }
.lead-p { font-size: 18px; max-width: 64ch; }
@media (max-width: 1000px) {
  .home { grid-template-columns: 1fr; }
  .home__aside { position: static; order: -1; }
}

/* gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(120px, 190px)); gap: 8px; border-radius: var(--r-lg); overflow: hidden; }
.gallery__item { position: relative; padding: 0; border: 0; background: var(--pine); cursor: zoom-in; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--lead { grid-row: span 2; }
.gallery__all { margin-top: 12px; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; }
  .gallery__item--lead { grid-column: span 2; grid-row: auto; }
  .gallery__item:nth-child(n+4) { display: none; }
}

.specs { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; }
.specs div { display: grid; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; font: 500 22px/1.3 var(--display); }

.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.amenities ul { list-style: none; padding: 0; margin: 0 0 16px; }
.amenities li { padding: 6px 0 6px 24px; position: relative; }
.amenities li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 13px; height: 16px; background: var(--moss);
  -webkit-mask: var(--spruce) center / contain no-repeat; mask: var(--spruce) center / contain no-repeat;
}
@media (max-width: 640px) { .amenities { grid-template-columns: 1fr; } }

.extras-list { list-style: none; padding: 0; margin: 0; }
.extras-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.extras-list li div { display: grid; }
.extras-list__price { white-space: nowrap; font-weight: 600; }

.checkin { display: flex; gap: 40px; margin-bottom: 20px; }
.checkin div { display: grid; }
.checkin strong { font: 500 24px/1.3 var(--display); }
.rules { padding-left: 20px; margin: 0 0 28px; }
.rules li { margin-bottom: 6px; }

.rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rating__num { font: 600 44px/1 var(--display); }
.stars { color: var(--lamp-deep); letter-spacing: 2px; }
.stars__off { color: var(--line); }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin-top: 24px; }
.review header { display: flex; justify-content: space-between; gap: 12px; }
.review p { margin-top: 8px; }
.review__reply { padding-left: 14px; border-left: 3px solid var(--line); color: var(--muted); }
.review__reply span { font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--lake-wash); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 24px/1 var(--text); color: var(--muted); }
.faq summary::after { transition: rotate .35s cubic-bezier(.2, .8, .2, 1); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > p { overflow: hidden; }
.faq details p { max-width: 64ch; }

/* ---------- booking card ---------- */
.book-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: 0 18px 40px -24px rgba(19, 38, 30, .45); }
.book-card__price { margin: 0; font-size: 16px; }
.book-card__price strong { font: 600 28px/1.2 var(--display); }
.book-card__sub { font-size: 14px; margin: 4px 0 18px; }
.book-card__fine { font-size: 13px; margin: 12px 0 0; }
.dates-field { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; }
.dates-field__part, .guests__toggle {
  display: grid; text-align: left; gap: 2px; padding: 10px 14px; border: 0; background: #fff; color: var(--ink);
  font: inherit; cursor: pointer; min-height: 60px;
}
.dates-field__part + .dates-field__part { border-left: 1px solid var(--line); }
.dates-field__part span, .guests__toggle span { font-size: 12px; font-weight: 600; color: var(--muted); }
.dates-field__part strong, .guests__toggle strong { font-weight: 500; font-size: 16px; }
.dates-field__part.is-active { box-shadow: inset 0 0 0 2px var(--pine); }
.guests { position: relative; margin-bottom: 16px; }
.guests__toggle { width: 100%; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-md) var(--r-md); }
.guests__panel { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 16px; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .3); }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; }
.stepper + .stepper { border-top: 1px solid var(--line); }
.stepper > div:first-child { display: grid; }
.stepper small { color: var(--muted); font-size: 13px; }
.stepper__ctrl { display: flex; align-items: center; gap: 10px; }
.stepper__ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper__ctrl button:disabled { opacity: .35; cursor: not-allowed; }
.stepper__ctrl output { min-width: 18px; text-align: center; font-weight: 600; }

.quote { margin-bottom: 14px; }
.quote:empty { display: none; }
.lines { width: 100%; border-collapse: collapse; font-size: 15px; }
.lines td { padding: 6px 0; vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines__total td { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; font-size: 17px; }
.lines__due td { font-weight: 600; color: #7A5300; }
.quote__err { color: var(--danger); font-size: 15px; margin: 0; }

.mobile-bar { display: none; }
@media (max-width: 1000px) {
  .mobile-bar {
    display: flex; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .2s;
  }
  .mobile-bar.is-visible { transform: none; }
  .is-home .footer { padding-bottom: 96px; }
}

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(var(--months, 2), minmax(0, 1fr)); gap: 28px; position: relative; }
.cal__month h3 { text-align: center; font: 500 16px/1.2 var(--display); margin: 8px 0 14px; text-transform: lowercase; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; }
.cal__dow { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.cal__day {
  position: relative; display: grid; place-items: center; align-content: center; gap: 1px; aspect-ratio: 1 / 1.02; min-height: 44px;
  border: 0; background: transparent; color: var(--ink); font: 500 15px/1 var(--text); cursor: pointer; border-radius: 0;
}
.cal__day small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.cal__day:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 10px; }
.cal__day:disabled { cursor: default; color: #A6B1AA; }
.cal__day:disabled small { visibility: hidden; }
.cal__day.is-busy { color: #A6B1AA; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal__day.is-checkout-only small { visibility: hidden; }
.cal__day.is-range { background: var(--lake-wash); }
.cal__day.is-start, .cal__day.is-end { background: var(--lamp); color: var(--lamp-ink); border-radius: 10px; }
.cal__day.is-start small, .cal__day.is-end small { color: var(--lamp-ink); }
.cal__day.is-start.has-range { border-radius: 10px 0 0 10px; }
.cal__day.is-end { border-radius: 0 10px 10px 0; }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--lake); }
.cal__nav { position: absolute; top: 2px; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.cal__nav button { pointer-events: auto; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); margin-top: 16px; }
.cal__legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cal__legend .lg-free::before { border: 1px solid var(--line); background: #fff; }
.cal__legend .lg-busy::before { background: repeating-linear-gradient(135deg, var(--line) 0 2px, transparent 2px 5px); border: 1px solid var(--line); }
.cal__legend .lg-sel::before { background: var(--lamp); }
.cal__status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.cal__status p { margin: 0; font-weight: 500; }
.cal-inline { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
@media (max-width: 760px) { .cal { --months: 1 !important; } .cal__month + .cal__month { display: none; } }

.picker-dialog { width: min(760px, calc(100vw - 24px)); border: 0; border-radius: var(--r-lg); padding: 20px 24px; background: var(--paper); color: var(--ink); }
.picker-dialog::backdrop { background: rgba(10, 22, 17, .55); }
.picker-dialog__head, .picker-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.picker-dialog__head { margin-bottom: 12px; }
.picker-dialog__title { margin: 0; font-weight: 600; }
.picker-dialog__foot { margin-top: 16px; }
@media (max-width: 640px) {
  .picker-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 16px; max-height: 92vh; }
}

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 16, 12, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--r-md); }
.lightbox figcaption { text-align: center; margin-top: 12px; color: #D5DED8; }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 26px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- pages ---------- */
.page { padding-top: 48px; padding-bottom: 96px; }
.page__title { font: 600 clamp(30px, 5vw, 48px)/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose { max-width: 68ch; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.checkout { padding-top: 32px; padding-bottom: 96px; }
.checkout__back { margin: 0 0 8px; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.summary { position: sticky; top: 88px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.summary h2 { font-size: 20px; }
.summary__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.summary__dates div { display: grid; }
.summary__dates span { font-size: 13px; color: var(--muted); }
.summary__now { margin-top: 12px; padding: 12px 14px; background: #FFF6E3; border-radius: var(--r-md); display: flex; justify-content: space-between; font-weight: 600; }
@media (max-width: 1000px) { .checkout__grid { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }
.step { border: 0; padding: 0; margin: 0 0 40px; }
.step legend { display: flex; align-items: center; gap: 12px; font: 500 22px/1.2 var(--display); margin-bottom: 20px; padding: 0; }
.step__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pine); color: #fff; font: 600 15px/1 var(--text); }
.extras { display: grid; gap: 10px; }
.extra { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.extra.is-on { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.extra__info { flex: 1; display: grid; }
.extra__info small { color: var(--muted); }
.extra__price { font-weight: 600; white-space: nowrap; }
.extra input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--pine); }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.pay-option input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--pine); }
.pay-option div { display: grid; gap: 2px; }
.pay-option small { color: var(--muted); }
.promo { display: flex; gap: 8px; margin-top: 16px; }
.promo-msg:empty { display: none; }
.promo input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; text-transform: uppercase; }
.promo .btn { min-height: 42px; }
.promo-msg { font-size: 14px; margin: 6px 0 0; }

.manage__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 16px; }
.manage__dates div { display: grid; }
.manage__dates strong { font: 500 22px/1.3 var(--display); }
.manage__block { padding: 28px 0; border-top: 1px solid var(--line); }
.manage__block h2 { font-size: 22px; }
.manage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.confirm { border: 0; border-radius: var(--r-lg); padding: 28px; max-width: 460px; background: var(--paper); color: var(--ink); }
.confirm::backdrop { background: rgba(10, 22, 17, .55); }
.confirm h2 { font-size: 22px; }
.confirm__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.rate { border: 0; padding: 0; margin: 0 0 16px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate legend { font-weight: 500; font-size: 15px; margin-bottom: 6px; float: left; width: 100%; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 36px; color: var(--line); cursor: pointer; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--lamp-deep); }
.rate input:focus-visible + label { outline: 3px solid var(--lamp); border-radius: 4px; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--night); color: #C9D4CD; padding: 40px 0 32px; font-size: 15px; }
.footer > .wrap { position: relative; z-index: 1; }
.footer a { color: #fff; }
.footer__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer__name { font: 600 22px/1 var(--display); color: #fff; }
.footer__legal { margin-top: 32px; font-size: 13px; color: #8FA197; }
@media (max-width: 760px) { .footer__in { grid-template-columns: 1fr; } }

/* ================= forest ================= */

/* Paper-like grain over the light background: a hint of bark and moss rather than flat colour. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero treeline: far layers are dark, near ones fade to the page colour, like mist rolling toward you. */
.forest { position: absolute; z-index: 2; bottom: -1px; left: 50%; width: max(100vw, 980px); height: var(--forest-h); transform: translateX(-50%); pointer-events: none; }
.forest__layer { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; will-change: transform; }
.forest__l1 { fill: #4C6B5D; }
.forest__l2 { fill: #2E4C3E; }
.forest__l3 { fill: #1A3127; }
.forest__l4 { fill: #0A1510; }
.forest__meadow { fill: var(--fog); }
.forest__mist {
  position: absolute; left: -10%; right: -10%; bottom: 14%; height: 40%; pointer-events: none;
  background:
    radial-gradient(40% 60% at 20% 70%, rgba(200, 216, 207, .22), transparent 70%),
    radial-gradient(35% 55% at 65% 75%, rgba(200, 216, 207, .18), transparent 70%),
    radial-gradient(30% 50% at 95% 65%, rgba(200, 216, 207, .16), transparent 70%);
  filter: blur(8px);
}
.forest__mist--2 { bottom: 8%; opacity: .8; }
.forest__mist--3 { bottom: 0; height: 30%; opacity: .9; background: linear-gradient(to top, rgba(232, 238, 234, .55), transparent); filter: none; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; }

.fireflies { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.footer-forest { position: relative; height: calc(max(100vw, 980px) * 150 / 1600); margin-top: 32px; overflow: hidden; pointer-events: none; }
.footer-forest svg { position: absolute; bottom: -1px; left: 50%; width: max(100vw, 980px); height: 100%; transform: translateX(-50%); }
.footer-forest__back { fill: #3B5B49; opacity: .55; }
.footer-forest__front { fill: var(--night); }

.strip-forest { display: block; width: calc(100% + 48px); height: 30px; margin: -24px -24px 16px; fill: #D3DED7; clip-path: inset(0 round 20px 20px 0 0); }

/* Pine branch ornament beside "О доме". */
.section--about { position: relative; }
.branch { position: absolute; top: -46px; right: -6px; width: clamp(150px, 22vw, 236px); fill: none; stroke: var(--moss); stroke-linecap: round; opacity: .8; pointer-events: none; }
.branch__stem { stroke-width: 2.6; }
.branch__needles { stroke-width: 1.2; }
.branch__cone ellipse { fill: #8A6A47; stroke: none; }
.section--about h2 { position: relative; max-width: calc(100% - 160px); }
@media (max-width: 640px) { .branch { top: -30px; width: 130px; opacity: .7; } }

/* ================= motion ================= */
@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated entrance: the forest rises, the name lifts in word by word, the arch lights up. */
  .forest__layer { animation: forest-rise 1.3s cubic-bezier(.2, .7, .2, 1) both; }
  .forest__l2 { animation-delay: .1s; }
  .forest__l3 { animation-delay: .2s; }
  .forest__l4 { animation-delay: .3s; }
  .forest__mist { animation: mist-in 2s .6s ease both, mist-drift 38s 2.6s ease-in-out infinite alternate; }
  .forest__mist--2 { animation-duration: 2s, 52s; animation-direction: normal, alternate-reverse; }
  .forest__mist--3 { animation: mist-in 2s .6s ease both; }
  .forest__meadow { animation: none; }
  @keyframes forest-rise { from { translate: 0 70px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
  @keyframes mist-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mist-drift { from { translate: -4% 0; } to { translate: 5% 0; } }

  .hero__word { display: inline-block; overflow: hidden; padding: .06em .02em .1em; margin: -.06em -.02em -.1em; vertical-align: top; }
  .hero__word > span { display: inline-block; animation: word-up 1s calc(.45s + var(--i) * .14s) cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes word-up { from { translate: 0 110%; } to { translate: 0 0; } }
  .hero__tagline, .hero__facts { animation: fade-up .8s 1s ease both; }
  .hero__facts { animation-delay: 1.15s; }
  @keyframes fade-up { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

  .hero__photo { animation: arch-open 1.5s .35s cubic-bezier(.3, .7, .1, 1) both; }
  .hero__photo img { animation: photo-settle 2.4s .35s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes arch-open {
    from { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); box-shadow: 0 30px 80px -30px rgba(243, 178, 63, 0); }
    to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }
  }
  @keyframes photo-settle { from { scale: 1.14; filter: brightness(.6); } to { scale: 1; filter: none; } }
  @media (max-width: 760px) {
    @keyframes arch-open {
      from { clip-path: inset(100% 0 0 0 round 160px 160px 16px 16px); }
      to { clip-path: inset(0 0 0 0 round 160px 160px 16px 16px); }
    }
  }
  .fireflies { animation: mist-in 2.5s 1.2s ease both; }

  /* Wind: the nearest spruces rock a little, each on its own rhythm. */
  .sway { animation: sway var(--t, 7s) var(--d, 0s) ease-in-out infinite alternate; }
  @keyframes sway { from { rotate: -1.4deg; } to { rotate: 1.4deg; } }

  /* Reveal on scroll (classes are added by forest.js, so without JS nothing stays hidden). */
  .will-reveal[data-reveal] { opacity: 0; translate: 0 18px; scale: .97; transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
  .will-reveal[data-reveal].is-in { opacity: 1; translate: 0 0; scale: 1; }

  .branch.will-reveal path { stroke-dashoffset: var(--len); }
  .branch.will-reveal .branch__stem { transition: stroke-dashoffset 1.4s cubic-bezier(.4, 0, .2, 1); }
  .branch.will-reveal .branch__needles { transition: stroke-dashoffset 2.6s .4s cubic-bezier(.4, 0, .2, 1); }
  .branch.will-reveal .branch__cone { opacity: 0; scale: .4; transform-box: fill-box; transform-origin: 50% 0; transition: opacity .6s 1.8s, scale .8s 1.8s cubic-bezier(.3, 1.5, .5, 1); }
  .branch.is-in path { stroke-dashoffset: 0; }
  .branch.is-in .branch__cone { opacity: 1; scale: 1; }

  /* Calendar answers a pick with a small spring. */
  .cal__day.is-start, .cal__day.is-end { animation: pick .32s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes pick { from { scale: .78; } to { scale: 1; } }

  .btn { transition: background .15s, border-color .15s, translate .15s, box-shadow .2s; }
  .btn--lamp:hover { translate: 0 -1px; box-shadow: 0 10px 24px -10px rgba(217, 146, 28, .7); }
}

/* ================= painted forest scene ================= */
.hero.has-scene .forest { display: none; }
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.scene--front { z-index: 4; }
.scene__layer { position: absolute; left: 0; top: 0; will-change: transform; }
.scene__blur { filter: blur(7px); opacity: .92; }
.scene__rays, .scene__rays::after {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: radial-gradient(60% 70% at var(--sun-x) var(--sun-y), #000 8%, rgba(0, 0, 0, .45) 42%, transparent 78%);
  mask: radial-gradient(60% 70% at var(--sun-x) var(--sun-y), #000 8%, rgba(0, 0, 0, .45) 42%, transparent 78%);
}
.scene__rays {
  background: repeating-conic-gradient(from 0deg at var(--sun-x) var(--sun-y), rgba(255, 214, 150, 0) 0deg 4deg, rgba(255, 214, 150, .14) 5.5deg, rgba(255, 214, 150, 0) 7deg 12deg);
  filter: blur(5px);
}
.scene__rays::after {
  content: "";
  background: repeating-conic-gradient(from 2.6deg at var(--sun-x) var(--sun-y), rgba(255, 220, 160, 0) 0deg 7deg, rgba(255, 220, 160, .11) 8.5deg, rgba(255, 220, 160, 0) 10deg 17deg);
}
.scene__mist {
  position: absolute; left: -10%; right: -10%; bottom: calc(var(--forest-h) * .08); height: calc(var(--forest-h) * .5);
  background:
    radial-gradient(40% 60% at 20% 70%, rgba(214, 226, 218, .26), transparent 70%),
    radial-gradient(35% 55% at 62% 75%, rgba(230, 214, 186, .22), transparent 70%),
    radial-gradient(30% 50% at 95% 65%, rgba(214, 226, 218, .2), transparent 70%);
  filter: blur(10px);
}

/* The spruce bough hanging into the frame, with dew on the twig tips. */
.bough { position: absolute; top: 0; left: -1%; transform-origin: 0 0; }
.bough canvas { display: block; }
@media (max-width: 760px) { .bough { left: -10%; } }

.dew {
  position: absolute; width: var(--s); height: calc(var(--s) * 1.18);
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; transform-origin: 50% 0;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, 0) 24%),
    radial-gradient(ellipse at 56% 82%, rgba(255, 210, 140, .8) 0 16%, rgba(255, 210, 140, 0) 48%),
    radial-gradient(circle at 50% 46%, rgba(200, 232, 218, .2) 0 42%, rgba(12, 28, 20, .42) 82%, rgba(0, 0, 0, .55) 100%);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, .45), inset 0 -.5px 1px rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(.6px) brightness(1.45) saturate(1.4);
  backdrop-filter: blur(.6px) brightness(1.45) saturate(1.4);
}
.dew--gone { opacity: 0; }

/* Condensation on the photo glass. */
.glass { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(232, 238, 234, .1), transparent 55%); }
.drop {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55) 0 10%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 60% 72%, rgba(255, 220, 160, .28), transparent 60%),
    rgba(255, 255, 255, .04);
  box-shadow: 0 .5px .8px rgba(0, 0, 0, .3);
}
.drop--big {
  height: calc(var(--s) * 1.12); border-radius: 50% 50% 48% 48% / 44% 44% 56% 56%;
  -webkit-backdrop-filter: blur(1px) brightness(1.3); backdrop-filter: blur(1px) brightness(1.3);
}
.trail {
  position: absolute; width: 2px; height: 0; border-radius: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08));
}

/* Overlays for the whole page. */
.fx-needles { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 70; pointer-events: none; }
.fx-shade { position: fixed; inset: 0; z-index: 65; pointer-events: none; mix-blend-mode: multiply; opacity: .075; filter: blur(4px); transform-origin: 100% 0; }

.card-needles { position: absolute; top: -20px; right: 12px; width: 98px; rotate: -8deg; pointer-events: none; filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, .25)); }
.footer-forest canvas { position: absolute; inset: 0; }
.footer-forest.is-painted svg { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .scene__layer[data-layer="far"], .scene__layer[data-layer="mid"], .scene__layer[data-layer="near"] { animation: forest-rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .scene__layer[data-layer="mid"] { animation-delay: .1s; }
  .scene__layer[data-layer="near"] { animation-delay: .2s; }
  .scene--front .scene__layer { animation: mist-in 1.6s .5s ease both; }
  .scene__rays { animation: mist-in 3s .8s ease both; }
  .scene__rays::after { animation: rays 8s ease-in-out infinite alternate; }
  @keyframes rays { from { opacity: .15; } to { opacity: 1; } }
  .scene__mist { animation: mist-in 2s .6s ease both, mist-drift 40s 2.6s ease-in-out infinite alternate; }

  .bough { animation: bough-in 1.8s .6s cubic-bezier(.2, .8, .2, 1) both, bough-sway 7s 2.4s ease-in-out infinite alternate; }
  @keyframes bough-in { from { translate: -30px -70%; opacity: 0; } to { translate: 0 0; opacity: 1; } }
  @keyframes bough-sway { from { rotate: -.8deg; } to { rotate: 1.4deg; } }

  .dew { animation: dew-wobble var(--wob, 3s) ease-in-out infinite alternate; }
  @keyframes dew-wobble { from { scale: 1 1; } to { scale: .97 1.06; } }
  .dew--drip { animation: dew-swell 1.3s ease-in forwards, dew-fall 1s 1.3s cubic-bezier(.55, 0, 1, .6) forwards; }
  @keyframes dew-swell { to { scale: 1.15 1.5; } }
  @keyframes dew-fall { from { translate: 0 0; scale: 1.1 1.55; opacity: 1; } to { translate: 0 460px; scale: .85 1.7; opacity: 0; } }
  .dew--grow { animation: dew-grow 5s ease-out both; }
  @keyframes dew-grow { from { scale: .1; opacity: 0; } to { scale: 1; opacity: 1; } }

  .drop--run { animation: drop-run 4s cubic-bezier(.6, 0, .9, .6) forwards; }
  @keyframes drop-run { 0% { translate: 0 0; } 18% { translate: 0 2px; } 100% { translate: 1px var(--run); opacity: .15; } }
  .drop--grow { animation: dew-grow 4.5s ease-out both; }
  .trail { animation: trail 9s ease-out forwards; }
  @keyframes trail { 0% { height: 0; opacity: 1; } 45% { height: var(--run); opacity: 1; } 100% { height: var(--run); opacity: 0; } }

  .fx-shade { animation: shade-sway 9s ease-in-out infinite alternate; }
  @keyframes shade-sway { from { rotate: -.8deg; translate: -6px 0; } to { rotate: .9deg; translate: 8px 4px; } }
}

/* ================= WebGL atmosphere & the lake ================= */
.scene__gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero.has-gl .scene__rays, .hero.has-gl .scene__mist { display: none; }
.scene:not(.scene--front) { scale: calc(1 + var(--p, 0) * .12); transform-origin: var(--sun-x) var(--sun-y); }
.scene--front { scale: calc(1 + var(--p, 0) * .32); transform-origin: 50% 35%; }

.lake {
  position: relative; height: clamp(440px, 72vh, 660px); overflow: hidden; color: #fff; touch-action: pan-y;
  background: linear-gradient(#13283A, #3F5A62 24%, #C08A5C 36%, #0C1A16 38.5%, #050B08);
}
.lake::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, var(--night)); pointer-events: none; }
.lake__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lake__copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: 64px; pointer-events: none; }
.lake__copy > * { pointer-events: auto; max-width: 38ch; }
.lake__copy p { color: #E3ECE7; font-size: 18px; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.lake__title { font: 600 clamp(34px, 5.4vw, 72px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 16px; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.lake__hint { position: absolute; z-index: 1; right: var(--gutter); bottom: 28px; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .62); transition: opacity .6s; pointer-events: none; }
.lake.is-touched .lake__hint { opacity: 0; }
.is-home .footer-forest { display: none; }

/* ================= interface motion ================= */
.topbar__progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: linear-gradient(90deg, var(--moss), var(--lamp)); transform-origin: 0 50%; scale: 0 1; pointer-events: none; }
.topbar { transition: background .35s, color .35s, border-color .35s, min-height .35s, box-shadow .35s; }
.topbar__in { transition: min-height .35s; }
.topbar.is-scrolled:not(.topbar--over), .topbar--over.is-solid {
  background: rgba(250, 251, 248, .74); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 10px 30px -18px rgba(19, 38, 30, .35);
}
.topbar.is-scrolled .topbar__in { min-height: 56px; }

/* 3D tilt + glare following the cursor. */
.gallery__item, .review, .manage__dates { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.review, .manage__dates { position: relative; }
.tilting { transition: transform .1s linear, box-shadow .5s; box-shadow: 0 24px 50px -28px rgba(19, 38, 30, .55); z-index: 1; }
.glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .45s; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 244, 220, .7), transparent 48%); }
.tilting .glare { opacity: 1; }

.btn { position: relative; transition: background .15s, border-color .15s, translate .3s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, scale .15s; }
.btn.magnet { translate: var(--mx, 0) var(--my, 0); transition: background .15s, border-color .15s, translate .08s linear, box-shadow .2s; }
.btn:active { scale: .97; }

@media (prefers-reduced-motion: no-preference) {
  /* Reveal on scroll. */
  html.mo [data-rv] { opacity: 0; translate: 0 26px; transition: opacity .9s cubic-bezier(.2, .8, .2, 1), translate .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
  html.mo [data-rv].in { opacity: 1; translate: none; }
  html.mo .gallery__item[data-rv] { translate: none; opacity: 1; clip-path: inset(100% 0 0 0 round 12px); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
  html.mo .gallery__item[data-rv].in { clip-path: inset(0 0 0 0 round 0); }
  html.mo .gallery__item[data-rv] img { scale: 1.25; transition: scale 1.6s cubic-bezier(.2, .8, .2, 1), transform .4s; transition-delay: calc(var(--i, 0) * 110ms); }
  html.mo .gallery__item[data-rv].in img { scale: 1.1; }
  html.mo .map[data-rv] { translate: none; opacity: 1; clip-path: inset(0 100% 0 0 round 20px); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1); }
  html.mo .map[data-rv].in { clip-path: inset(0 0 0 0 round 20px); }
  html.mo .amenities__group[data-rv] li::before { scale: 0; transition: scale .6s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
  html.mo .amenities__group[data-rv].in li::before { scale: 1; }
  html.mo .amenities__group[data-rv].in li:nth-child(2)::before { transition-delay: .08s; }
  html.mo .amenities__group[data-rv].in li:nth-child(3)::before { transition-delay: .16s; }
  html.mo .amenities__group[data-rv].in li:nth-child(4)::before { transition-delay: .24s; }
  html.mo .amenities__group[data-rv].in li:nth-child(n+5)::before { transition-delay: .32s; }

  /* Headings rise word by word from behind a mask. */
  [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .02em .1em; margin: -.04em -.02em -.1em; }
  [data-words] .w > span { display: inline-block; translate: 0 108%; transition: translate 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--k, 0) * 80ms); }
  [data-words].in .w > span { translate: none; }

  /* Lively details. */
  .btn--lamp { overflow: hidden; }
  .btn--lamp::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 250, 230, .65) 50%, transparent 62%) 0 0 / 260% 100% no-repeat;
    animation: sheen 6.5s ease-in-out 2.5s infinite;
  }
  @keyframes sheen { 0% { background-position: 130% 0; } 45%, 100% { background-position: -60% 0; } }
  .btn--lamp.is-ready { animation: ready 1.2s cubic-bezier(.2, .8, .2, 1); }
  @keyframes ready { 0% { box-shadow: 0 0 0 0 rgba(243, 178, 63, .7); } 100% { box-shadow: 0 0 0 18px rgba(243, 178, 63, 0); } }
  .quote.is-fresh tr { animation: row-in .5s cubic-bezier(.2, .8, .2, 1) both; }
  .quote.is-fresh tr:nth-child(2) { animation-delay: .05s; }
  .quote.is-fresh tr:nth-child(3) { animation-delay: .1s; }
  .quote.is-fresh tr:nth-child(4) { animation-delay: .15s; }
  .quote.is-fresh tr:nth-child(n+5) { animation-delay: .2s; }
  @keyframes row-in { from { opacity: 0; translate: 0 8px; } }
  .cal--next .cal__month { animation: month-next .5s cubic-bezier(.2, .8, .2, 1) both; }
  .cal--prev .cal__month { animation: month-prev .5s cubic-bezier(.2, .8, .2, 1) both; }
  .cal--next .cal__month + .cal__month, .cal--prev .cal__month + .cal__month { animation-delay: .06s; }
  @keyframes month-next { from { opacity: 0; translate: 48px 0; } }
  @keyframes month-prev { from { opacity: 0; translate: -48px 0; } }
  .cal__day { transition: background .2s, color .2s, box-shadow .2s, border-radius .2s; }
  .extra, .pay-option { transition: border-color .25s, box-shadow .25s, background .4s, translate .3s cubic-bezier(.2, .8, .2, 1); }
  .extra:hover, .pay-option:hover { translate: 0 -2px; }
  .extra.is-on { animation: picked .7s cubic-bezier(.2, .8, .2, 1); }
  @keyframes picked { from { background: #FFF3D6; } }
  .lake__hint { animation: hint 2.4s ease-in-out infinite alternate; }
  @keyframes hint { from { translate: 0 0; } to { translate: 0 -6px; } }
  .badge--ok { animation: badge 2.6s ease-out 1; }
  @keyframes badge { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 72, .45); } 100% { box-shadow: 0 0 0 16px rgba(47, 107, 72, 0); } }

  /* Soft cross-fade between pages. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .35s ease both; }
  ::view-transition-new(root) { animation: vt-in .55s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes vt-out { to { opacity: 0; scale: .985; } }
  @keyframes vt-in { from { opacity: 0; scale: 1.015; } }
}

/* ================= home: one continuous forest behind the whole page ================= */
.is-home { background: #0B1712; }
.backdrop { position: fixed; inset: 0; height: 100lvh; z-index: 0; overflow: hidden; pointer-events: none; background: #0B1712; }
.bd__scene { position: absolute; inset: 0; width: 100% !important; height: 100% !important; transform-origin: 50% 40%; will-change: transform, opacity; }
.bd__flies { z-index: 10; }
.is-home .hero, .is-home .home, .is-home .lake, .is-home .footer { position: relative; z-index: 1; }

/* The hero dissolves into the forest instead of ending on a hard edge. */
.is-home .hero {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--forest-h) * .55), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--forest-h) * .55), transparent);
}

/* Main column: light text on dark frosted glass, so the forest shows through. */
.is-home .home__main {
  --ink: #EEF3EF; --muted: #A9BAB0; --line: rgba(255, 255, 255, .14); --moss: #9CBDA5; --lake: #A6D3DC;
  color: var(--ink);
}
.is-home .home__main a:hover { color: #fff; }
.is-home .home__main > .section {
  background: rgba(8, 18, 13, .52);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 24px;
  padding: 32px clamp(20px, 3vw, 40px); margin-bottom: 22px;
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
}
.is-home .home__main > #photos { background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-home .stars__off { color: rgba(255, 255, 255, .2); }
.is-home .btn--quiet { border-color: rgba(255, 255, 255, .28); }
.is-home .btn--quiet:hover { border-color: #fff; }
/* Light cards keep the light palette. */
.is-home .cal-inline, .is-home .book-card {
  --ink: #17241D; --muted: #5B6A61; --line: #CCD7D0; --moss: #4A6656; --lake: #2F6472;
  color: var(--ink);
}
.is-home .cal-inline { background: rgba(250, 251, 248, .94); }
.is-home .map { border-color: rgba(255, 255, 255, .12); }
@media (max-width: 760px) {
  .is-home .home__main > .section { background: rgba(8, 18, 13, .82); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 24px 18px; }
}

/* Header over the dark page: dark glass instead of paper. */
.is-home .topbar--over.is-solid { background: rgba(9, 20, 15, .62); color: #fff; border-color: rgba(255, 255, 255, .08); }
.is-home .topbar--over.is-solid .logo { color: #fff; }
.is-home .mobile-bar { background: rgba(9, 20, 15, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .1); color: #fff; }
.is-home .mobile-bar .muted { color: #A9BAB0; }
.is-home .footer { background: transparent; }
.is-home .footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(19, 38, 30, 0), rgba(10, 20, 15, .92) 40%); z-index: -1; }
.is-home .lake::after { background: linear-gradient(transparent, rgba(10, 20, 15, .9)); }
.is-home .fx-shade { display: none; }
