/* ---------- Шрифты (свои, без Google) ---------- */
@font-face {
  font-family: "Piazzolla";
  src: url("../fonts/Piazzolla-normal-cyrillic.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Piazzolla";
  src: url("../fonts/Piazzolla-normal-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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";
  src: url("../fonts/GolosText-normal-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/GolosText-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}

/* ---------- Токены ---------- */
:root {
  /* день: речная дымка и зелень с логотипа усадьбы */
  --mist: #E8ECE5;
  --mist-deep: #D9E0D6;
  --forest-ink: #1D2B23;
  --forest-soft: #4B5D52;
  --forest: #2E5A42;
  --forest-dark: #234634;
  /* вечер: река в сумерках и свет гирлянд над бассейном */
  --dusk: #15232B;
  --dusk-ink: #E3E8E1;
  --dusk-soft: #9DB0AA;
  --lamp: #E9B85C;

  --bg: var(--mist);
  --fg: var(--forest-ink);
  --muted: var(--forest-soft);
  --line: rgb(29 43 35 / 0.16);
  --accent: var(--forest);

  --serif: "Piazzolla", "PT Serif", Georgia, serif;
  --sans: "Golos Text", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
  --section-pad: clamp(96px, 13vw, 200px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

body[data-time="evening"] {
  --bg: var(--dusk);
  --fg: var(--dusk-ink);
  --muted: var(--dusk-soft);
  --line: rgb(227 232 225 / 0.16);
  --accent: var(--lamp);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 1.1s var(--ease-io), color 1.1s var(--ease-io);
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }

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

::selection { background: var(--forest); color: var(--mist); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--forest);
  color: var(--mist);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографика ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.1vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 7vw, 104px);
}
.section-lead {
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  transition: color 1.1s var(--ease-io);
}
@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 40px;
  }
}

.link {
  display: inline-block;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease-out);
}
.link:hover { background-size: 0% 1px; background-position: right bottom; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: var(--mist);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out);
}
.btn:hover { background: var(--forest-dark); border-color: var(--forest-dark); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { background: transparent; border-color: currentColor; }
.btn--light { background: var(--mist); color: var(--forest-ink); border-color: var(--mist); }
.btn--light:hover { background: #fff; border-color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px var(--gutter);
  color: #fff;
  transition: transform .5s var(--ease-out), background-color .4s, color .4s, box-shadow .4s;
}
.site-header.is-solid {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 16px;
}
.nav a, .header-phone { text-decoration: none; opacity: .86; transition: opacity .2s; }
.nav a:hover, .header-phone:hover { opacity: 1; }
.header-phone { display: none; font-weight: 500; font-size: 16px; white-space: nowrap; }

.menu-toggle {
  margin-left: auto;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
  padding: 96px var(--gutter) 40px;
  background: var(--forest-ink);
  color: var(--mist);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a {
  font-family: var(--serif);
  font-size: clamp(36px, 10vw, 56px);
  line-height: 1.1;
  text-decoration: none;
}
.menu__phone { font-size: 20px; font-weight: 500; text-decoration: none; }
.js .menu.is-open nav a {
  animation: menu-in .7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(24px); }
}
body.menu-open .site-header { color: var(--mist); background: transparent; box-shadow: none; }

@media (min-width: 1000px) {
  .nav, .header-phone { display: flex; }
  .menu-toggle, .menu { display: none !important; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--forest-ink);
  color: #fff;
}
.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(12 22 16 / .42) 0, rgb(12 22 16 / 0) 180px),
    linear-gradient(to top, rgb(12 22 16 / .62) 0%, rgb(12 22 16 / .18) 42%, rgb(12 22 16 / 0) 60%);
}
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 0 var(--gutter) clamp(28px, 5vw, 56px);
  will-change: transform, opacity;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 13.5vw, 220px);
  line-height: .86;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-top: clamp(20px, 3vw, 36px);
}
.hero__lead {
  max-width: 24em;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__phone { font-weight: 500; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .5); }
.hero__rating {
  position: absolute;
  top: clamp(84px, 11vh, 120px);
  right: var(--gutter);
  font-size: 15px;
  text-decoration: none;
  opacity: .9;
}
.hero__rating strong { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-right: 4px; }

/* Вступление: дом-шалаш раскрывается треугольником, потом встаёт название */
.js .hero__media { clip-path: polygon(50% 46%, 50% 46%, 50% 46%); }
.js .hero__media img { transform: scale(1.22); }
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__bottom, .js .hero__rating { opacity: 0; transform: translateY(16px); }
.js .site-header { transform: translateY(-100%); }

.js.is-ready .hero__media { animation: aframe 1.9s var(--ease-io) .1s forwards; }
.js.is-ready .hero__media img { animation: settle 2.6s var(--ease-out) .1s forwards; }
.js.is-ready .hero__title .line > span { animation: rise 1.1s var(--ease-out) forwards; animation-delay: 1.15s; }
.js.is-ready .hero__title .line:nth-child(2) > span { animation-delay: 1.25s; }
.js.is-ready .hero__bottom, .js.is-ready .hero__rating { animation: fade-up .9s var(--ease-out) 1.55s forwards; }
.js.header-ready .site-header { transform: none; }
.js.header-ready .site-header.is-hidden { transform: translateY(-100%); }

@keyframes aframe {
  0%   { clip-path: polygon(50% 46%, 50% 46%, 50% 46%); }
  38%  { clip-path: polygon(50% 20%, 63% 74%, 37% 74%); }
  52%  { clip-path: polygon(50% 20%, 63% 74%, 37% 74%); }
  100% { clip-path: polygon(50% -130%, 270% 210%, -170% 210%); }
}
@media (max-aspect-ratio: 3/4) {
  @keyframes aframe {
    0%   { clip-path: polygon(50% 46%, 50% 46%, 50% 46%); }
    38%  { clip-path: polygon(50% 26%, 80% 64%, 20% 64%); }
    52%  { clip-path: polygon(50% 26%, 80% 64%, 20% 64%); }
    100% { clip-path: polygon(50% -130%, 270% 210%, -170% 210%); }
  }
}
@keyframes settle { to { transform: scale(1.04); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- Вступительный текст ---------- */
.intro { padding-block: var(--section-pad); }
.intro__grid { display: grid; gap: 40px; }
.intro__lead {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 20em;
}
.intro__photo { overflow: hidden; }
.intro__photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.intro__photo figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.intro__text { display: grid; gap: 16px; max-width: 32em; color: var(--muted); }

@media (min-width: 900px) {
  .intro__grid { grid-template-columns: repeat(12, 1fr); column-gap: 40px; row-gap: 72px; }
  .intro__lead { grid-column: 1 / span 9; }
  .intro__photo { grid-column: 8 / span 5; grid-row: 2 / span 2; }
  .intro__text { grid-column: 2 / span 5; grid-row: 2; align-self: start; padding-top: 8vw; }
}

/* ---------- Дома: прогулка вдоль берега ---------- */
.houses { position: relative; }
.houses__pin { padding-block: var(--section-pad) 0; }
.houses__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 64px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.houses__note { margin-top: 16px; color: var(--muted); font-size: 16px; }

.path { display: none; width: min(520px, 42vw); }
.path__line { position: relative; height: 1px; background: var(--line); }
.path__fill {
  position: absolute;
  inset: 0;
  background: var(--forest);
  transform-origin: left;
  transform: scaleX(0);
}
.path__stops {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.path__stops li { position: relative; transition: color .3s; }
.path__stops li::before {
  content: "";
  position: absolute;
  top: -19px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border: 1px solid var(--forest-soft);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color .3s, border-color .3s, transform .3s var(--ease-out);
}
.path__stops li:first-child::before { left: 0; margin-left: 0; }
.path__stops li:last-child::before { left: auto; right: 0; margin-left: 0; }
.path__stops li.is-active { color: var(--forest-ink); }
.path__stops li.is-active::before { background: var(--forest); border-color: var(--forest); transform: scale(1.25); }

.houses__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.houses__viewport::-webkit-scrollbar { display: none; }
.houses__track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding-inline: var(--gutter);
  list-style: none;
}
.house, .houses__all {
  flex: 0 0 auto;
  width: min(82vw, 420px);
  scroll-snap-align: center;
}
.house__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--mist-deep);
}
.house__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  transition: scale 1.2s var(--ease-out);
}
.house:hover .house__media img { scale: 1.04; }
.house__body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px 20px;
  padding-top: 20px;
}
.house__name {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.house__desc { grid-column: 1 / -1; color: var(--muted); max-width: 26em; font-size: 17px; min-height: 3.2em; }
.house__price {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  white-space: nowrap;
}
.house__body .link { justify-self: end; font-size: 16px; }

.houses__all {
  align-self: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.checklist { display: grid; gap: 10px; margin-top: 20px; list-style: none; font-size: 17px; }
.checklist li { padding-left: 22px; position: relative; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 1px;
  background: currentColor;
}

/* Режим с закреплением: секция стоит, дома едут вбок */
.houses.is-pinned .houses__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 72px 24px;
}
.houses.is-pinned .path { display: block; }
.houses.is-pinned .houses__head { margin-bottom: 4vh; }
.houses.is-pinned .h2 { font-size: clamp(44px, 4.6vw, 72px); }
.houses.is-pinned .houses__viewport { overflow: visible; scroll-snap-type: none; padding: 0; }
.houses.is-pinned .houses__track { gap: clamp(40px, 6vw, 112px); will-change: transform; }
.houses.is-pinned .house { width: min(28vw, 34vh); }
.houses.is-pinned .house:nth-child(even) { margin-top: 6vh; }
.houses.is-pinned .house__media img { scale: 1.14; }
.houses.is-pinned .house:hover .house__media img { scale: 1.18; }
.houses.is-pinned .houses__all { width: min(32vw, 420px); }
.houses.is-pinned .houses__track::after { content: ""; flex: 0 0 10vw; }

/* ---------- Территория ---------- */
.grounds { padding-block: var(--section-pad); }
.grounds__grid { display: grid; gap: 56px; }
.spot { display: grid; gap: 20px; }
.spot__media { overflow: hidden; border-radius: 2px; }
.spot__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.spot__text { display: grid; gap: 12px; max-width: 28em; }
.spot__text p { color: var(--muted); }
.grounds__more { display: grid; gap: 32px; list-style: none; padding-top: 16px; border-top: 1px solid var(--line); }
.grounds__more li { display: grid; gap: 8px; padding-top: 16px; }
.grounds__more p { color: var(--muted); }

@media (min-width: 900px) {
  .grounds__grid { grid-template-columns: repeat(12, 1fr); column-gap: 40px; row-gap: clamp(80px, 9vw, 140px); }
  .spot { grid-column: 1 / -1; grid-template-columns: subgrid; align-items: end; gap: 0 40px; }
  .spot--pool .spot__media { grid-column: 1 / span 8; }
  .spot--pool .spot__text { grid-column: 9 / span 4; padding-bottom: 8px; }
  .spot--beach .spot__media { grid-column: 5 / span 8; grid-row: 1; }
  .spot--beach .spot__text { grid-column: 1 / span 4; grid-row: 1; align-self: start; }
  .spot--fish .spot__media { grid-column: 2 / span 5; }
  .spot--fish .spot__text { grid-column: 7 / span 4; align-self: center; }
  .grounds__more { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* ---------- Вечер ---------- */
.evening { padding-block: var(--section-pad); }
.evening .section-lead { color: var(--muted); }
.evening__wide { overflow: hidden; border-radius: 2px; }
.evening__wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.evening__grid { display: grid; gap: 48px; margin-top: 56px; }
.ritual { display: grid; gap: 12px; align-content: start; }
.ritual p { color: var(--muted); }
.ritual .ritual__price {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--accent);
  transition: color 1.1s var(--ease-io);
}
.ritual__media { overflow: hidden; border-radius: 2px; margin-bottom: 8px; }
.ritual__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 900px) {
  .evening__wide img { aspect-ratio: 21 / 9; }
  .evening__grid { grid-template-columns: 1fr 1fr 1.3fr; gap: 56px; margin-top: 72px; }
  .ritual { padding-top: 24px; border-top: 1px solid var(--line); }
  .ritual--fire { border-top: 0; padding-top: 0; margin-top: -24px; }
}

/* ---------- Галерея ---------- */
.gallery { padding-block: var(--section-pad); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 10px;
  list-style: none;
}
.gallery__item a { display: block; height: 100%; overflow: hidden; border-radius: 2px; cursor: zoom-in; }
.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: scale .9s var(--ease-out), opacity .3s;
}
.gallery__item a:hover img { scale: 1.05; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* ---------- Лайтбокс ---------- */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(14 22 18 / .96);
  color: var(--mist);
  overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__img {
  max-width: calc(100vw - 2 * var(--gutter));
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  touch-action: pan-y;
}
.lightbox__count { position: absolute; left: var(--gutter); bottom: 24px; font-size: 15px; opacity: .8; }
.lightbox__btn {
  position: absolute;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.lightbox__close { top: 16px; right: var(--gutter); z-index: 1; padding: 10px 0; font-size: 16px; font-weight: 500; }
.lightbox__prev, .lightbox__next { top: 72px; bottom: 0; width: 22vw; }
.lightbox__prev { left: 0; cursor: w-resize; }
.lightbox__next { right: 0; cursor: e-resize; }
.lightbox__prev:focus-visible, .lightbox__next:focus-visible { outline-offset: -6px; }

::view-transition-group(photo) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
::view-transition-old(photo), ::view-transition-new(photo) { height: 100%; object-fit: cover; }

/* ---------- Цены и бронирование ---------- */
.booking { padding-block: var(--section-pad); border-top: 1px solid var(--line); }
.booking__grid { display: grid; gap: 96px; }
.prices .h2, .book .h2 { margin-bottom: 40px; }

.price-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.price-table caption { text-align: left; margin-bottom: 12px; }
.price-table th, .price-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}
.price-table td {
  text-align: right;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 16px;
}
.note { color: var(--muted); font-size: 15px; max-width: 34em; }

.book__lead { color: var(--muted); max-width: 30em; }
.book__phone {
  display: inline-block;
  margin: 20px 0 40px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1.1;
}
.book__phone:hover { color: var(--forest); }

.form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 36px); background: var(--mist-deep); border-radius: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field--narrow { grid-column: 1 / -1; }
.field__label { font-size: 14px; color: var(--muted); }
.field input, .field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  font-size: 17px;
  transition: border-color .2s;
}
.field input:hover, .field select:hover { border-color: var(--forest-soft); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--forest); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #A3402A; }
.form__error { min-height: 0; color: #A3402A; font-size: 15px; }
.form__error:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__hint { font-size: 14px; color: var(--muted); }

@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr 120px; }
  .field--narrow { grid-column: auto; }
}

.rules { display: grid; gap: 0; margin-top: 40px; }
.rules div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.rules dt { color: var(--muted); }
.rules dd { text-align: right; font-weight: 500; }

@media (min-width: 1000px) {
  .booking__grid { grid-template-columns: 5fr 7fr; gap: clamp(64px, 8vw, 140px); }
}

/* ---------- Дорога ---------- */
.road { padding-block: var(--section-pad); background: var(--mist-deep); }
.road__grid { display: grid; gap: 48px; }
.road__info .h2 { margin-bottom: 32px; }
.road__address { font-style: normal; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; max-width: 22em; }
.distances { display: grid; margin: 32px 0 40px; }
.distances div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.distances dt { color: var(--muted); }
.distances dd { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.road__links { display: flex; flex-wrap: wrap; gap: 12px; }

.map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 6px;
  background:
    linear-gradient(115deg, transparent 0 46%, rgb(46 90 66 / .12) 46% 54%, transparent 54%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgb(29 43 35 / .06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgb(29 43 35 / .06) 39px 40px),
    var(--mist);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 500;
}
.map__load span:last-child { border-bottom: 1px solid currentColor; }
.map__pin {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--forest);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 8px rgb(46 90 66 / .16);
}
@media (min-width: 900px) {
  .road__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: stretch; }
  .map { min-height: 100%; }
}

/* ---------- Подвал ---------- */
.footer { padding-block: 72px 48px; background: var(--forest-ink); color: var(--mist); }
.footer__grid { display: grid; gap: 32px; font-size: 16px; }
.footer__mark { font-family: var(--serif); font-size: 32px; letter-spacing: -0.02em; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.footer__col p { opacity: .75; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr; }
}

/* ---------- Появления по скроллу ---------- */
.js [data-reveal="title"] .mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-reveal="title"] .mask > span { display: inline-block; transform: translateY(102%); transition: transform 1.1s var(--ease-out); }
.js [data-reveal="title"].is-in .mask > span { transform: none; }

/* Обрезаем саму картинку, а не рамку: иначе IntersectionObserver считает рамку невидимой */
.js [data-reveal="wipe"] img {
  clip-path: inset(100% 0 0 0);
  scale: 1.18;
  transition: clip-path 1.4s var(--ease-io), scale 1.8s var(--ease-out);
}
.js [data-reveal="wipe"].is-in img { clip-path: inset(0 0 0 0); scale: 1; }
.js [data-reveal="wipe"] figcaption { opacity: 0; transition: opacity .8s .9s; }
.js [data-reveal="wipe"].is-in figcaption { opacity: 1; }

.js [data-reveal="text"] { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal="text"].is-in { opacity: 1; transform: none; }

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

/* ---------- Без анимаций для тех, кто их отключил ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .hero__media { clip-path: none; }
  .js .hero__media img { transform: scale(1.04); }
  .js .hero__title .line > span, .js .hero__bottom, .js .hero__rating, .js .site-header { transform: none; opacity: 1; }
  .js [data-reveal] , .js [data-reveal] * { clip-path: none !important; transform: none !important; opacity: 1 !important; scale: 1 !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
