/* ─────────────────────────────────────────────────────────
   В гостях у Шарика — зоогостиница для собак
   Палитра: ночной лес, слоновая кость, латунь
   ───────────────────────────────────────────────────────── */

:root {
  --bg:        #0C1712;
  --bg-2:      #10201A;
  --bg-3:      #16291F;
  --ivory:     #F1ECE2;
  --ivory-80:  rgba(241, 236, 226, 0.80);
  --ivory-60:  rgba(241, 236, 226, 0.60);
  --ivory-30:  rgba(241, 236, 226, 0.30);
  --line:      rgba(241, 236, 226, 0.14);
  --brass:     #C8A45D;
  --brass-2:   #E3C883;

  --display: "Prata", "Times New Roman", Georgia, serif;
  --text:    "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --t--1: 0.875rem;
  --t-0:  1.0625rem;
  --t-1:  1.25rem;
  --t-2:  1.5625rem;

  --sec-y: clamp(4.5rem, 10vw, 9rem);
  --r: 4px;
  --bar-h: 76px;
  --pad: 1.25rem;          /* боковое поле колонки */
  --col: 1240px;           /* ширина колонки вместе с полями */
}
@media (min-width: 640px)  { :root { --pad: 2rem; } }
@media (min-width: 1024px) { :root { --pad: 3rem; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ivory);
  font: 400 var(--t-0) / 1.7 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  padding: 0.75rem 1.1rem; background: var(--brass); color: var(--bg);
  font-weight: 600; text-decoration: none; transition: top 160ms ease-out;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; }

.wrap {
  width: 100%; max-width: var(--col);
  margin-inline: auto; padding-inline: var(--pad);
}

section[id] { scroll-margin-top: calc(var(--bar-h) + 8px); }

.ic {
  width: 20px; height: 20px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── типографика секций ───────────────────────────────── */

.kicker {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--brass); font-size: var(--t--1); font-weight: 500;
  letter-spacing: 0.04em;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--brass); }

.h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lead {
  margin-top: 1.25rem; max-width: 60ch;
  color: var(--ivory-80); font-weight: 300;
  font-size: clamp(var(--t-0), 1.6vw, var(--t-1));
}

/* ── кнопки ───────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r);
  font: 500 var(--t--1) / 1.2 var(--text); letter-spacing: 0.03em;
  text-align: center; text-wrap: balance;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
}
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: var(--t-0); }

.btn--brass { background: var(--brass); color: var(--bg); }
.btn--brass:hover { background: var(--brass-2); }

.btn--line { background: transparent; color: var(--ivory); border-color: var(--ivory-30); }
.btn--line:hover { border-color: var(--ivory); }

/* ── шапка ────────────────────────────────────────────── */

.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  transition: background-color 300ms ease-out, border-color 300ms ease-out;
  border-bottom: 1px solid transparent;
}
.bar.is-solid, .bar.is-open {
  background: rgba(12, 23, 18, 0.88);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.bar__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--bar-h);
  max-width: var(--col); margin-inline: auto; padding-inline: var(--pad);
}

.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.logo__mark { width: 34px; height: 34px; flex: 0 0 auto; margin-left: -5px; fill: var(--brass); }
.logo__text { display: flex; flex-direction: column; }
.logo__word { font: 400 1.15rem / 1.05 var(--display); letter-spacing: 0.01em; white-space: nowrap; }
.logo__sub { margin-top: 0.25rem; font-size: 0.7rem; color: var(--ivory-60); letter-spacing: 0.08em; }

.nav { display: none; }
.nav a {
  color: var(--ivory-80); font-size: var(--t--1); font-weight: 500;
  text-decoration: none; transition: color 200ms ease-out;
}
.nav a:hover { color: var(--ivory); }
.nav__call { display: none; }
.bar__cta { display: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--ivory-30); border-radius: var(--r);
  cursor: pointer; transition: border-color 200ms ease-out;
}
.burger:hover { border-color: var(--ivory); }
.burger__box { display: grid; gap: 6px; }
.burger__box span { display: block; width: 20px; height: 1.5px; background: var(--ivory); }

.bar.is-open .nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: grid; gap: 0.25rem;
  padding: 1rem 1.25rem 1.75rem;
  background: rgba(12, 23, 18, 0.96);
  border-bottom: 1px solid var(--line);
}
.bar.is-open .nav a {
  display: flex; align-items: center; min-height: 50px;
  font-family: var(--display); font-size: var(--t-1); color: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.bar.is-open .nav__call { display: flex; font-family: var(--text); color: var(--brass); border: 0; }

/* кнопка брони видна с планшета; полное меню — только там, где помещается рядом с логотипом */
@media (min-width: 1024px) {
  .bar__cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .burger { display: none; }
  .nav { display: flex; align-items: center; gap: 1.5rem; margin-left: 2rem; margin-right: 1.5rem; }
}
@media (min-width: 1280px) {
  .nav { gap: 2rem; }
}

/* ── первый экран ─────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--bar-h) + 2rem);
}

.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Вторая подстраховка от светлой полосы на стыке: сплошная заливка у самого низа
   отдельным слоем, независимо от градиента затемнения. */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0, var(--bg) 80px, rgba(12, 23, 18, 0) 200px);
}
.hero__media img { object-fit: cover; object-position: 55% 50%; z-index: -2; }

/* Затемнение задаём в пикселях, а не в процентах: на низком экране проценты
   сжимаются, фотография остаётся яркой до самого низа и на стыке видна полоса. */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 23, 18, 0.5) 0, rgba(12, 23, 18, 0) 200px),
    linear-gradient(0deg,
      #0C1712 0, #0C1712 70px,
      rgba(12, 23, 18, 0.93) 220px,
      rgba(12, 23, 18, 0.66) 430px,
      rgba(12, 23, 18, 0.22) 640px,
      rgba(12, 23, 18, 0) 820px);
}
@media (min-width: 1024px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(12, 23, 18, 0.45) 0, rgba(12, 23, 18, 0) 220px),
      linear-gradient(90deg, rgba(12, 23, 18, 0.85) 0, rgba(12, 23, 18, 0.45) 42%, rgba(12, 23, 18, 0) 70%),
      linear-gradient(0deg,
        #0C1712 0, #0C1712 80px,
        rgba(12, 23, 18, 0.9) 260px,
        rgba(12, 23, 18, 0.55) 520px,
        rgba(12, 23, 18, 0.12) 720px,
        rgba(12, 23, 18, 0) 900px);
  }
}

.hero__content, .hero__stats {
  width: calc(100% - 2 * var(--pad));
  max-width: calc(var(--col) - 2 * var(--pad));
  margin-inline: auto;
}

.hero__place { color: var(--brass); font-size: var(--t--1); font-weight: 500; letter-spacing: 0.04em; }

.hero__h1 {
  margin-top: 1.1rem; max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  letter-spacing: -0.015em; line-height: 1.02;
}

.hero__sub {
  margin-top: 1.5rem; max-width: 46ch;
  color: var(--ivory-80); font-weight: 300;
  font-size: clamp(var(--t-0), 1.7vw, var(--t-1));
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero__stats {
  margin-top: 3.5rem;
  display: grid; gap: 0;
  border-top: 1px solid var(--line);
}
.hero__stats div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.hero__stats div:last-child { border-bottom: 0; }
.hero__stats dt { font: 400 var(--t-2) / 1 var(--display); color: var(--ivory); }
.hero__stats dd { margin: 0.4rem 0 0; color: var(--ivory-60); font-size: var(--t--1); max-width: 26ch; }


@media (min-width: 720px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 4.5rem; }
  .hero__stats div { padding: 1.5rem 0 3rem; border-bottom: 0; }
}
@media (min-width: 1024px) {
  .hero__stats div { padding-bottom: 3.5rem; }
}

/* ── сбор ─────────────────────────────────────────────── */

.fund { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.fund__inner { display: grid; gap: 1.75rem; align-items: center; }
.fund__h { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.fund__lead { margin-top: 0.75rem; font-size: var(--t-0); }
.fund__widget iframe { display: block; max-width: 100%; border: 0; }
.fund__fallback { margin-top: 0.75rem; color: var(--ivory-60); font-size: var(--t--1); }
.fund__fallback a {
  color: var(--brass-2); text-decoration-color: rgba(200, 164, 93, 0.5); text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease-out;
}
.fund__fallback a:hover { text-decoration-color: var(--brass-2); }

@media (min-width: 860px) {
  .fund__inner { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* ── манифест ─────────────────────────────────────────── */

.creed { padding-block: var(--sec-y); border-bottom: 1px solid var(--line); }
.creed__inner { display: flex; justify-content: center; }
.creed__text {
  max-width: 34ch; text-align: center;
  font: 400 clamp(1.45rem, 3vw, 2.3rem) / 1.35 var(--display);
  text-wrap: balance;
}

/* ── экскурсия ────────────────────────────────────────── */

.tour { padding-top: var(--sec-y); }

.tour__body { display: grid; gap: 3rem; margin-top: 3.5rem; }

.tour__rail { display: none; }
.rail { display: grid; gap: 0.5rem; }
.rail a {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.55rem 0;
  color: var(--ivory-60); font-size: var(--t--1); font-weight: 500;
  text-decoration: none; transition: color 200ms ease-out;
}
.rail a::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
  transition: width 240ms ease-out;
}
.rail a span { font-family: var(--display); color: var(--brass); font-size: 0.8rem; }
.rail a:hover { color: var(--ivory); }
.rail a.is-active { color: var(--ivory); }
.rail a.is-active::before { width: 40px; background: var(--brass); }

.stops { display: grid; gap: clamp(4rem, 9vw, 8rem); }

.stop { display: grid; gap: 1.75rem; }

.stop__media {
  aspect-ratio: 7 / 5; overflow: hidden; border-radius: var(--r);
  background: var(--bg-2);
}
.stop__media img { width: 100%; height: 100%; object-fit: cover; }

/* кадры из видео: показываем в своей пропорции и не крупнее оригинала */
.stop__media--frame { aspect-ratio: var(--w) / var(--h); max-width: calc(var(--w) * 1px); }

.stop__num { color: var(--brass); font-size: var(--t--1); font-weight: 500; letter-spacing: 0.04em; }
.stop__h { margin-top: 0.6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.stop__text > p:not(.stop__num) { margin-top: 1rem; max-width: 56ch; color: var(--ivory-80); font-weight: 300; }

.specs {
  display: grid; gap: 0; margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.specs div { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ivory-60); font-size: 0.8rem; letter-spacing: 0.04em; }
.specs dd { margin: 0.15rem 0 0; font-weight: 500; }

@media (min-width: 640px) {
  .specs { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .specs div { border-bottom: 0; padding-top: 1.1rem; }
}

@media (min-width: 1024px) {
  .tour__body { grid-template-columns: 220px 1fr; gap: 4rem; align-items: start; }
  .tour__rail { display: block; position: sticky; top: calc(var(--bar-h) + 2.5rem); }
  .stop { grid-template-columns: 1fr; }
  .stop__text { max-width: 44rem; }
}

/* появление остановок по мере прохода */
@media (prefers-reduced-motion: no-preference) {
  .stop__media { opacity: 0; transform: translateY(24px); transition: opacity 800ms ease-out, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .stop.is-in .stop__media { opacity: 1; transform: none; }
}

/* ── вольеры и стоимость ──────────────────────────────── */

.suites { padding-block: var(--sec-y); }

.tiers { display: grid; gap: 1.25rem; margin-top: 3rem; }

.tier {
  display: flex; flex-direction: column;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 200ms ease-out;
}
.tier:hover { border-color: var(--ivory-30); }
.tier--main { background: var(--bg-2); border-top: 2px solid var(--brass); }

.tier__kind {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.5rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--brass-2); font-size: var(--t-0); font-weight: 500; line-height: 1.35;
}
.tier__kind .ic { width: 24px; height: 24px; stroke: var(--brass); }

.tier__name { font-size: var(--t-2); }
.tier__paren { font-size: 0.68em; color: var(--ivory-60); white-space: nowrap; }
.tier__price { margin-top: 1.25rem; font: 400 clamp(2rem, 3vw, 2.6rem) / 1 var(--display); }
.tier__price span { display: block; margin-top: 0.4rem; font: 400 var(--t--1) / 1.3 var(--text); color: var(--ivory-60); }
.tier__for { margin-top: 1rem; color: var(--ivory-60); font-size: var(--t--1); }

.tier__list { margin-top: 1.25rem; display: grid; gap: 0.7rem; align-content: start; flex: 1; }
.tier__list li { position: relative; padding-left: 1.4rem; color: var(--ivory-80); font-size: var(--t--1); }
.tier__list li::before {
  content: ""; position: absolute; left: 0; top: calc(0.85em - 2.5px);
  width: 5px; height: 5px; border-radius: 50%; background: var(--brass);
}
.tier__list li.is-new { color: var(--ivory); font-weight: 500; }
.tier__list li.is-new::before {
  content: "+"; top: 0; width: auto; height: auto; border-radius: 0; background: none;
  color: var(--brass); font-weight: 600;
}

.tier .btn { margin-top: 2rem; }

@media (min-width: 880px) {
  .tiers { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
  .tier { padding: 2.5rem 2rem; }
  /* подпись в одну или две строки — названия и цены всё равно на одной линии */
  .tier__kind { min-height: calc(2.7em + 1.25rem); }
}

/* ── галерея-лента ────────────────────────────────────── */

.gallery { padding-block: var(--sec-y); border-top: 1px solid var(--line); }

.film {
  display: flex; gap: 0.9rem; align-items: flex-end;
  margin-top: 2.5rem;
  padding-inline: var(--pad); padding-bottom: 0.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.film::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .film { padding-inline: max(var(--pad), calc((100vw - var(--col)) / 2 + var(--pad))); gap: 1.25rem; } }

.film__item {
  flex: 0 0 auto; width: min(72vw, 340px); aspect-ratio: 9 / 7;
  scroll-snap-align: start; overflow: hidden; border-radius: var(--r);
  background: var(--bg-2);
}
.film__item--tall { width: min(60vw, 280px); aspect-ratio: 7 / 9; }
.film__item img { width: 100%; height: 100%; object-fit: cover; }

/* ── заселение ────────────────────────────────────────── */

.checkin { padding-block: var(--sec-y); border-top: 1px solid var(--line); }

.checkin__grid { display: grid; gap: 3rem; }

.steps { counter-reset: step; margin-top: 2.5rem; display: grid; gap: 2rem; }
.steps li { position: relative; padding-left: 3.25rem; counter-increment: step; }
.steps li::before {
  content: "0" counter(step);
  position: absolute; left: 0; top: 0.1rem;
  font: 400 var(--t-1) / 1 var(--display); color: var(--brass);
}
.steps h3 { font-size: var(--t-1); }
.steps p { margin-top: 0.4rem; max-width: 46ch; color: var(--ivory-80); font-weight: 300; }

.checkin__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.checkin__media img { width: 100%; height: 100%; object-fit: cover; }

.rules {
  margin-top: 4rem; padding: 2rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r);
}
.rules__h { font-size: var(--t-1); }
.rules__list { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.rules__list li { position: relative; padding-left: 1.4rem; color: var(--ivory-80); }
.rules__list li::before {
  content: ""; position: absolute; left: 0; top: calc(0.85em - 2.5px);
  width: 5px; height: 5px; border-radius: 50%; background: var(--brass);
}
.addr {
  color: inherit; text-decoration-color: var(--ivory-30); text-underline-offset: 4px;
  transition: color 200ms ease-out, text-decoration-color 200ms ease-out;
}
.addr:hover { color: var(--brass-2); text-decoration-color: var(--brass-2); }
.rules__calm { margin-top: 0.5rem; max-width: 62ch; color: var(--ivory-80); font-size: var(--t--1); }
.rules__calm a {
  color: var(--brass-2); text-decoration-color: rgba(200, 164, 93, 0.5); text-underline-offset: 4px;
}
.rules__calm a:hover { text-decoration-color: var(--brass-2); }
.rules__note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--brass-2); font-weight: 500; }

@media (min-width: 720px) {
  .rules { padding: 2.5rem 2.25rem; }
  .rules__list { grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 3rem; }
}
@media (min-width: 1024px) {
  .checkin__grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; }
  .checkin__media { order: -1; }
}

/* ── дорога ───────────────────────────────────────────── */

.road { padding-block: var(--sec-y); border-top: 1px solid var(--line); }
.road__grid { display: grid; gap: 2.5rem; }

.road__opts { display: grid; gap: 1.5rem; }
.road__opts li { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.road__opts .ic { margin-top: 0.35rem; stroke: var(--brass); width: 22px; height: 22px; }
.road__opts h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; font-size: var(--t-1); }
.soon {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--ivory-30); border-radius: 999px;
  font: 500 0.75rem / 1.4 var(--text); letter-spacing: 0.03em; color: var(--ivory-60);
}
.road__opts p { margin-top: 0.35rem; color: var(--ivory-80); font-size: var(--t--1); max-width: 44ch; }

@media (min-width: 1024px) {
  .road__grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: start; }
  .road__opts { padding-top: 3.5rem; }
}

/* ── вопросы ──────────────────────────────────────────── */

.faq { padding-block: var(--sec-y); border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: 2.5rem; }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 60px; padding: 1.1rem 0;
  font: 500 var(--t-0) / 1.4 var(--text);
  cursor: pointer; list-style: none;
  transition: color 200ms ease-out;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary:hover { color: var(--brass-2); }
.acc__item summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  background:
    linear-gradient(var(--brass), var(--brass)) center / 12px 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) center / 1px 12px no-repeat;
  transition: transform 220ms ease-out;
}
.acc__item[open] summary::after { transform: rotate(45deg); }
.acc__a { padding: 0 0 1.5rem; }
.acc__a p { max-width: 60ch; color: var(--ivory-80); font-weight: 300; }
.acc__a a {
  color: var(--brass-2); font-weight: 500;
  text-decoration-color: rgba(200, 164, 93, 0.5); text-underline-offset: 4px;
  transition: text-decoration-color 200ms ease-out;
}
.acc__a a:hover { text-decoration-color: var(--brass-2); }

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
  .faq__grid > div:first-child { position: sticky; top: calc(var(--bar-h) + 2.5rem); }
}

/* ── бронирование ─────────────────────────────────────── */

.book { padding-block: var(--sec-y); border-top: 1px solid var(--line); background: var(--bg-2); }
.book__grid { display: grid; gap: 3rem; }

.book__contacts { margin-top: 2.25rem; display: grid; gap: 1rem; }
.book__contacts li { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.book__contacts .ic { stroke: var(--brass); }
.book__contacts a { font-weight: 500; text-decoration-color: var(--ivory-30); text-underline-offset: 4px; }
.book__contacts a:hover { text-decoration-color: var(--brass); }

.ask {
  padding: 2rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--r);
}
.ask__h { font-size: var(--t-2); }
.ask__lead { margin-top: 0.85rem; max-width: 46ch; color: var(--ivory-80); font-weight: 300; }

.ask__list { margin-top: 1.75rem; display: grid; }
.ask__list > div {
  display: grid; gap: 0.15rem;
  padding: 0.8rem 0; border-top: 1px solid var(--line);
}
.ask__list > div:last-child { border-bottom: 1px solid var(--line); }
.ask__list dt { color: var(--ivory); font-weight: 600; }
.ask__list dd { margin: 0; color: var(--ivory-60); font-size: var(--t--1); }

@media (min-width: 560px) {
  .ask__list > div { grid-template-columns: 9rem 1fr; gap: 0 1.5rem; align-items: baseline; }
}

.ask__note {
  margin-top: 1.75rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ivory-60); font-size: var(--t--1);
}

@media (min-width: 720px) {
  .ask { padding: 2.5rem 2.25rem; }
}
@media (min-width: 1024px) {
  .book__grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
}

/* ── подвал ───────────────────────────────────────────── */

.foot { padding-block: 3rem; border-top: 1px solid var(--line); color: var(--ivory-60); font-size: var(--t--1); }
.foot__inner { display: grid; gap: 1.5rem; }
.foot__word {
  display: flex; align-items: center; gap: 0.6rem;
  font: 400 1.2rem / 1.05 var(--display); letter-spacing: 0.01em; color: var(--ivory);
}
.foot__word .logo__mark { width: 28px; height: 28px; margin-left: -4px; }
.foot__sub { margin-top: 0.75rem; max-width: 48ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot__links a { color: var(--ivory); font-weight: 500; text-decoration-color: var(--ivory-30); text-underline-offset: 4px; }
.foot__links a:hover { color: var(--brass-2); }
.foot__small { color: var(--ivory-30); }

@media (min-width: 860px) {
  .foot__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .foot__small { grid-column: 1 / -1; }
}

/* ── движение ─────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  @keyframes drift {
    from { transform: scale(1.06) translateX(1.5%); }
    to   { transform: scale(1) translateX(0); }
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
  }
  .hero__media img { animation: drift 14s ease-out both; }
  .hero__place, .hero__h1, .hero__sub, .hero__cta, .hero__stats {
    animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero__h1    { animation-delay: 120ms; }
  .hero__sub   { animation-delay: 240ms; }
  .hero__cta   { animation-delay: 360ms; }
  .hero__stats { animation-delay: 520ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
