/* ============================================================
   «Ясно» — вечерняя клиника. Токены по DESIGN.md
   Палитра: night / porcelain / bone / ink / amber (замерено:
   15.20:1, 14.84:1, 8.57:1). Два радиуса, ноль теней.
   ============================================================ */

/* ---------- Шрифты (локально, без внешних запросов) ---------- */
@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tenor-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tenor-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0, U+2113;
}
@font-face {
  font-family: "Tenor Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tenor-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/golos-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+2020, U+20A0-20C0, U+2113;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}

/* ---------- Токены ---------- */
:root {
  --night: #0f1519;
  --porcelain: #f1eee8;
  --bone: #ede9e2;
  --ink: #161c21;
  --amber: #e2a648;
  --line-on-dark: rgba(237, 233, 226, 0.16);
  --line-on-light: rgba(22, 28, 33, 0.14);
  --muted-on-dark: rgba(237, 233, 226, 0.68);   /* 9.9:1 к night */
  --muted-on-light: rgba(22, 28, 33, 0.72);     /* 9.4:1 к porcelain */

  --font-display: "Tenor Sans", "Golos Text", sans-serif;
  --font-text: "Golos Text", system-ui, sans-serif;

  /* шкала 1.333, корпус 18 */
  --fs-small: 0.844rem;    /* 13.5 */
  --fs-body: 1.125rem;     /* 18 */
  --fs-lead: 1.5rem;       /* 24 */
  --fs-h3: 2rem;           /* 32 */
  --fs-h2: clamp(2rem, 1.53rem + 2vw, 3.55rem);          /* 32→56.8 */
  --fs-display: clamp(2.5rem, 1.72rem + 3.35vw, 4.75rem);/* 40→76 */
  --fs-h1: clamp(2.5rem, 1.1576rem + 5.7277vw, 6.3125rem);/* 40→101 */

  /* отступы, база 8 */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --section: clamp(4rem, 2.591rem + 6.01vw, 8rem);
  --gutter: clamp(20px, 1.25rem + 3.8vw, 75px);

  /* движение */
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--amber); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}
.light :focus-visible { outline-color: var(--ink); }

.wrap { max-width: 1290px; margin-inline: auto; padding-inline: var(--gutter); }

.light { background: var(--porcelain); color: var(--ink); }

section { padding-top: var(--section); padding-bottom: var(--section); }

/* типографика заголовков */
.display { font-family: var(--font-display); line-height: 1.06; letter-spacing: 0; }
h2.display { font-size: var(--fs-h2); line-height: 1.08; margin-bottom: var(--s-5); text-wrap: balance; }

.muted { color: var(--muted-on-dark); }
.light .muted { color: var(--muted-on-light); }

.num { font-variant-numeric: tabular-nums; }

/* ---------- CTA (единственная пилюля) ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--amber);
  color: var(--night);
  font-weight: 500;
  font-size: var(--fs-body);
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  min-height: 52px;
  white-space: nowrap;
  transition: transform 160ms var(--out), background-color 160ms ease;
}
.cta:hover { background: #eab254; }
.cta:active { transform: scale(0.97); }

.link-plain {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 150ms ease;
}
.link-plain:hover { text-decoration-color: var(--amber); }
.light .link-plain:hover { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }

/* ---------- Навигация ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding-top: var(--s-3);
}
.nav-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.brand {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  letter-spacing: 0.14em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: var(--s-3);
  margin-left: auto;
  list-style: none;
  padding: 0; margin-block: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--muted-on-dark);
  padding: 12px 4px; /* тап-зона */
  transition: color 150ms ease;
}
.nav-links a:hover { color: var(--bone); }
.nav-tel {
  margin-left: var(--s-4);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-small);
  padding: 12px 0;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-tel { margin-left: auto; }
}

/* ---------- Герой ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: 0;
  overflow: clip;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.8s var(--out);
}
.is-loaded .hero-media img { transform: scale(1); }
/* скрим читаемости: снизу к тексту */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 21, 25, 0.88) 0%, rgba(15, 21, 25, 0.42) 34%, rgba(15, 21, 25, 0) 62%),
    linear-gradient(to bottom, rgba(15, 21, 25, 0.6) 0%, rgba(15, 21, 25, 0) 22%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(40px, 8vh, 88px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: 0.98;
  max-width: 14ch;
}
.hero h1 .line {
  display: block;
  overflow: clip;
}
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 900ms var(--out);
}
.is-loaded .hero h1 .line:nth-child(1) > span { transform: translateY(0); transition-delay: 120ms; }
.is-loaded .hero h1 .line:nth-child(2) > span { transform: translateY(0); transition-delay: 240ms; }
.hero-sub {
  max-width: 46ch;
  margin-top: var(--s-3);
  color: var(--bone);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease 480ms, transform 700ms var(--out) 480ms;
}
.hero-actions {
  margin-top: var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease 600ms, transform 700ms var(--out) 600ms;
}
.is-loaded .hero-sub, .is-loaded .hero-actions { opacity: 1; transform: none; }
.hero-note { font-size: var(--fs-small); color: var(--muted-on-dark); max-width: 24ch; }

/* ---------- Обещания ---------- */
.promises .wrap > p.lead {
  font-size: var(--fs-lead);
  line-height: 1.4;
  max-width: 52ch;
  color: var(--muted-on-dark);
}
.promise-lines {
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
}
.promise-lines li {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.12;
  padding-top: var(--s-4); padding-bottom: var(--s-4);
  border-top: 1px solid var(--line-on-dark);
  text-wrap: balance;
}
.promise-lines li:last-child { border-bottom: 1px solid var(--line-on-dark); }
/* асимметричные отступы — не метрономный список */
.promise-lines li:nth-child(2) { padding-left: clamp(0px, 8vw, 180px); }
.promise-lines li:nth-child(3) { padding-left: clamp(0px, 4vw, 90px); }
.promise-lines em {
  font-style: normal;
  color: var(--amber);
}

/* ---------- Цены ---------- */
.prices-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3);
  justify-content: space-between;
}
.prices-head p { max-width: 52ch; }
.price-group { margin-top: var(--s-6); }
.price-group h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin-bottom: var(--s-2);
}
.price-row {
  border-top: 1px solid var(--line-on-light);
}
.price-group .price-row:last-of-type { border-bottom: 1px solid var(--line-on-light); }
.price-row summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s-3);
  padding-top: 14px; padding-bottom: 14px;
  cursor: pointer;
  min-height: 44px;
}
.price-row summary::-webkit-details-marker { display: none; }
.price-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.price-name .chev {
  flex: none;
  font-size: var(--fs-small);
  color: var(--muted-on-light);
  transition: transform 200ms var(--out);
  transform-origin: 40% 50%;
}
.price-row[open] .chev { transform: rotate(90deg); }
.price-val {
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.add-btn {
  border: 1px solid var(--line-on-light);
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 18px;
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, transform 160ms var(--out);
}
.add-btn:hover { background: var(--ink); color: var(--porcelain); }
.add-btn:active { transform: scale(0.96); }
.add-btn[data-added="1"] { background: var(--ink); color: var(--porcelain); }
.price-what {
  padding: 0 0 var(--s-3);
  max-width: 62ch;
  color: var(--muted-on-light);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.price-what strong { color: var(--ink); font-weight: 500; }
.price-guarantee {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-on-light);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  justify-content: space-between;
  font-size: var(--fs-small);
  color: var(--muted-on-light);
}
.price-guarantee strong { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) {
  .price-row summary { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row .add-btn { grid-column: 2; grid-row: 1; }
  .price-row .price-val { grid-column: 1; grid-row: 2; justify-self: start; padding-bottom: 6px; }
  .price-row summary { grid-template-rows: auto auto; row-gap: 2px; }
}

/* ---------- Пространство ---------- */
.space { padding-block: 0; }
.space-full { position: relative; }
.space-full img { width: 100%; height: clamp(320px, 72vh, 720px); object-fit: cover; }
.space-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-6) 0 var(--s-4);
  background: linear-gradient(to top, rgba(15, 21, 25, 0.82), rgba(15, 21, 25, 0));
}
.space-caption p { max-width: 44ch; }
.space-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-4);
  align-items: end;
  padding-block: var(--s-4) 0;
}
.space-grid figure { margin: 0; }
.space-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.space-grid figure:nth-child(2) img { aspect-ratio: 1 / 1; }
.space-grid figcaption {
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
  max-width: 40ch;
}
@media (max-width: 700px) {
  .space-grid { grid-template-columns: 1fr; }
}

/* ---------- Врачи ---------- */
.doctors-intro { max-width: 56ch; margin-bottom: var(--s-6); }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.doc { min-width: 0; }
.doc img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.doc h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.15;
  margin-top: var(--s-3);
}
.doc .role { margin-top: 6px; font-weight: 500; }
.doc .bio { margin-top: 10px; font-size: var(--fs-small); color: var(--muted-on-light); line-height: 1.55; }
@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ---------- Первый визит ---------- */
.visit-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-on-dark);
  counter-reset: none;
}
.visit-steps > div {
  padding: var(--s-4) var(--s-3) 0 0;
  border-right: 1px solid var(--line-on-dark);
  padding-left: var(--s-3);
}
.visit-steps > div:first-child { padding-left: 0; }
.visit-steps > div:last-child { border-right: 0; }
.visit-time {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-small);
  color: var(--amber);
  letter-spacing: 0.06em;
}
.visit-steps h3 { font-family: var(--font-display); font-size: var(--fs-lead); margin-top: var(--s-2); }
.visit-steps p { margin-top: 10px; font-size: var(--fs-small); color: var(--muted-on-dark); line-height: 1.55; }
.visit-close { margin-top: var(--s-6); max-width: 56ch; font-size: var(--fs-lead); line-height: 1.4; }
@media (max-width: 900px) {
  .visit-steps { grid-template-columns: 1fr; border-top: 0; }
  .visit-steps > div {
    border-right: 0;
    border-top: 1px solid var(--line-on-dark);
    padding: var(--s-3) 0;
  }
}

/* ---------- Сведения (118н) ---------- */
.info-note { max-width: 62ch; margin-bottom: var(--s-5); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2) var(--s-6);
}
.info-item {
  border-top: 1px solid var(--line-on-light);
  padding-top: 14px; padding-bottom: 14px;
  display: grid;
  gap: 4px;
}
.info-item dt { font-size: var(--fs-small); color: var(--muted-on-light); }
.info-item dd { margin: 0; }
.info-acc { margin-top: var(--s-5); }
.info-acc details { border-top: 1px solid var(--line-on-light); }
.info-acc details:last-child { border-bottom: 1px solid var(--line-on-light); }
.info-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: 16px; padding-bottom: 16px;
  cursor: pointer;
  font-weight: 500;
  min-height: 44px;
}
.info-acc summary::-webkit-details-marker { display: none; }
.info-acc summary .chev { transition: transform 200ms var(--out); color: var(--muted-on-light); }
.info-acc details[open] summary .chev { transform: rotate(90deg); }
.info-acc .acc-body {
  padding-bottom: var(--s-3);
  max-width: 72ch;
  color: var(--muted-on-light);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.info-acc .acc-body ul { margin: 8px 0 0; padding-left: 20px; }
.info-acc .acc-body li { margin-bottom: 4px; }
@media (max-width: 800px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ---------- Запись + контакты ---------- */
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s-7);
}
.field { display: grid; gap: 8px; margin-bottom: var(--s-3); }
.field label { font-size: var(--fs-small); color: var(--muted-on-dark); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: 2px;
  padding: 13px 16px;
  min-height: 48px;
  width: 100%;
  transition: border-color 150ms ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(237, 233, 226, 0.45); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: var(--s-3) 0;
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--bone);
  border-radius: 2px;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.consent input::before {
  content: "";
  width: 12px; height: 12px;
  transform: scale(0);
  transition: transform 140ms var(--out);
  background: var(--night);
  clip-path: polygon(14% 44%, 0 60%, 42% 100%, 100% 16%, 84% 4%, 40% 70%);
}
.consent input:checked { background: var(--amber); border-color: var(--amber); }
.consent input:checked::before { transform: scale(1); }
.form-error {
  color: var(--amber);
  font-size: var(--fs-small);
  margin-top: var(--s-2);
  min-height: 1.4em;
}
.form-done {
  border: 1px solid var(--line-on-dark);
  border-radius: 2px;
  padding: var(--s-4);
  font-size: var(--fs-lead);
  line-height: 1.4;
}
.contact-list { display: grid; gap: var(--s-3); align-content: start; }
.contact-list h3 { font-family: var(--font-display); font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.contact-item { border-top: 1px solid var(--line-on-dark); padding-top: 14px; }
.contact-item .k { font-size: var(--fs-small); color: var(--muted-on-dark); margin-bottom: 4px; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid var(--line-on-dark);
  padding-top: var(--s-4); padding-bottom: var(--s-4);
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  justify-content: space-between;
}
.footer a { color: inherit; }

/* ---------- Смета (сигнатурный приём) ---------- */
.estimate-chip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  background: var(--night);
  color: var(--bone);
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  padding: 14px 22px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  font-weight: 500;
  transform: translateY(140%);
  transition: transform 320ms var(--drawer);
}
.estimate-chip .sum { color: var(--amber); font-variant-numeric: tabular-nums; }
.estimate-chip.is-on { transform: translateY(0); }
.estimate-chip:active { transform: translateY(0) scale(0.97); }

.estimate-panel {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(440px, 100vw);
  max-height: min(76svh, 640px);
  background: var(--night);
  color: var(--bone);
  border: 1px solid var(--line-on-dark);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% + 24px));
  transition: transform 320ms var(--drawer);
  visibility: hidden;
}
.estimate-panel.is-open { transform: translateY(0); visibility: visible; }
@media (min-width: 700px) {
  .estimate-panel { right: 20px; bottom: 20px; }
}
.estimate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3);
  border-bottom: 1px solid var(--line-on-dark);
}
.estimate-head h3 { font-family: var(--font-display); font-size: var(--fs-lead); }
.estimate-close { padding: 10px; min-width: 44px; min-height: 44px; color: var(--muted-on-dark); }
.estimate-close:hover { color: var(--bone); }
.estimate-items { overflow-y: auto; padding: var(--s-2) var(--s-3); flex: 1; }
.estimate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line-on-dark);
  font-size: var(--fs-small);
}
.estimate-item .p { font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimate-item .rm { color: var(--muted-on-dark); min-width: 36px; min-height: 36px; }
.estimate-item .rm:hover { color: var(--amber); }
.estimate-total {
  display: flex;
  justify-content: space-between;
  padding: var(--s-3);
  border-top: 1px solid var(--line-on-dark);
  font-weight: 500;
}
.estimate-total .sum { color: var(--amber); font-variant-numeric: tabular-nums; }
.estimate-foot { padding: 0 var(--s-3) var(--s-3); display: grid; gap: 10px; }
.estimate-foot .cta { justify-content: center; }
.estimate-note { font-size: 13px; color: var(--muted-on-dark); text-align: center; }

/* ---------- Появления по скроллу ---------- */
[data-reveal] { will-change: transform, opacity; }
[data-reveal="up"] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms var(--out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal="clip"] {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 900ms var(--out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal="row"] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms var(--out);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.is-in[data-reveal], .is-in [data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero h1 .line > span, .hero-sub, .hero-actions, .hero-media img {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .estimate-chip, .estimate-panel { transition-duration: 1ms; }
  .cta, .add-btn { transition: background-color 150ms ease, color 150ms ease; }
}

/* ---------- Печать не нужна, но не ломаем ---------- */
@media print {
  .estimate-chip, .estimate-panel, .nav { display: none; }
}
