/* ==========================================================================
   Александра — дизайн-система
   1. Токены  2. База  3. Типографика  4. Лэйаут  5. Компоненты  6. Секции
   Все страницы сайта подключают только этот файл.
   ========================================================================== */

/* 1. Токены ---------------------------------------------------------------- */
:root {
  /* палитра: бордовый бархат + свет свечи */
  --ink: #0d0608;
  --wine-950: #16070c;
  --wine-900: #220a12;
  --wine-800: #33101b;
  --wine-700: #4c0c24;
  --flame: #c63325;
  --flame-hi: #e0533f;
  --candle: #e3b366;
  --candle-hi: #f2cd8a;
  --paper: #f4ebdf;
  --paper-muted: #cdbbaa;
  --paper-dim: #a08c7d;
  --line: rgba(227, 179, 102, .22);
  --line-soft: rgba(244, 235, 223, .1);
  --surface: rgba(244, 235, 223, .04);
  --surface-2: rgba(244, 235, 223, .07);

  /* шрифты */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* шкала */
  --fs-hero: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-micro: .75rem;

  --space-section: clamp(72px, 10vw, 136px);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --arch: 999px 999px 20px 20px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* 2. База ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--paper);
  background: var(--ink);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--flame); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--candle); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3. Типографика ----------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h1 em, h2 em { font-style: italic; color: var(--candle); }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--paper-muted); line-height: 1.6; max-width: 56ch; }
.muted { color: var(--paper-muted); }
.eyebrow { /* deslop-ignore 10 */
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--candle);
}
.prose { max-width: 68ch; color: var(--paper-muted); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); color: var(--paper); margin-top: 1.6em; }
.prose h3 { color: var(--paper); margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--paper); font-weight: 600; }
.prose a { color: var(--candle); }
.prose--legal { font-size: .9375rem; }
.prose--legal h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.todo { background: rgba(198, 51, 37, .25); color: #ffd6cf; padding: 0 4px; border-radius: 4px; outline: 1px dashed var(--flame-hi); }

/* 4. Лэйаут ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * .6); }
.section--band { background: var(--wine-900); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }

/* 5. Компоненты ------------------------------------------------------------ */

/* Кнопки */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--paper);
  --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--candle); }
.btn:active { transform: translateY(0); }
.btn img { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--flame), #8f1a20);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 140, 120, .45);
  background: var(--btn-bg);
  box-shadow: 0 12px 32px -8px rgba(198, 51, 37, .6), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary:hover { border-color: rgba(255, 180, 160, .8); box-shadow: 0 16px 40px -8px rgba(198, 51, 37, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--gold { --btn-bg: var(--candle); --btn-fg: var(--ink); --btn-bd: var(--candle); }
.btn--gold:hover { --btn-bg: var(--candle-hi); }
.btn--ghost { --btn-bg: transparent; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--candle); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, gap .2s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { border-color: currentColor; gap: 12px; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); } /* deslop-ignore 19 */
.brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.brand__role { display: block; font-family: var(--font-body); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-dim); margin-top: 4px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--paper-muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--paper); background: var(--surface-2); }
.site-header__cta { flex: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--paper); position: relative; transition: transform .25s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Хлебные крошки */
.breadcrumbs { padding-top: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--paper-dim); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.breadcrumbs a { text-decoration: none; color: var(--paper-muted); }
.breadcrumbs a:hover { color: var(--candle); }

/* Арочная рамка для фото — фирменный мотив */
.arch { position: relative; isolation: isolate; }
.arch__frame {
  position: relative; border-radius: var(--arch); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.arch__frame img { width: 100%; height: 100%; object-fit: cover; }
.arch::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; z-index: -1;
  border-radius: var(--arch); border: 1px solid var(--line);
}
.arch::after {
  content: ""; position: absolute; z-index: -2; inset: 10% -20% -10%;
  background: none;
  filter: blur(30px);
}

/* Карточки */
.card {
  position: relative; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  padding: clamp(22px, 3vw, 32px);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--line); background: var(--surface-2); }

.service-card { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.service-card__badge { font-size: var(--fs-small); color: var(--candle); }
.service-card__list { list-style: none; margin: 0; padding: 0; color: var(--paper-muted); font-size: .9375rem; }
.service-card__list li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.service-card__more { margin-top: auto; padding-top: 8px; }

.grid { display: grid; gap: clamp(14px, 2vw, 20px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Цифры доверия */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line-soft); max-width: 720px; margin-inline: auto; }
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat__value { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1; color: var(--candle); }
.stat__label { margin-top: 8px; font-size: var(--fs-small); color: var(--paper-muted); }

/* Шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); list-style: none; margin: 0; padding: 0; }
.step { counter-increment: step; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before {
  content: counter(step, upper-roman); display: block; margin-bottom: 12px;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--candle); letter-spacing: .1em;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--paper-muted); }

/* Регалии */
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cred { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.cred:last-child { border-bottom: 1px solid var(--line-soft); }
.cred__mark { font-family: var(--font-display); font-size: 1.375rem; color: var(--candle); line-height: 1.2; }
.cred__title { font-weight: 600; color: var(--paper); }
.cred__text { color: var(--paper-muted); font-size: .9375rem; margin-top: 2px; }

/* Отзывы */
.reviews-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-soft); background: transparent; color: var(--paper-muted); font-size: .875rem; font-weight: 500;
  transition: all .2s;
}
.chip:hover { color: var(--paper); border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--candle); border-color: var(--candle); color: var(--ink); }
.reviews { columns: 3 300px; column-gap: clamp(14px, 2vw, 20px); }
.review {
  break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 20px);
  padding: 20px 22px 16px; border-radius: 20px 20px 20px 6px;
  background: linear-gradient(160deg, rgba(76, 12, 36, .55), rgba(34, 10, 18, .6));
  border: 1px solid var(--line-soft);
}
.review[hidden] { display: none; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line); flex: none; } /* deslop-ignore 19 */
.review__name { font-weight: 700; font-size: .9375rem; }
.review__topic { font-size: var(--fs-micro); color: var(--candle); letter-spacing: .06em; text-transform: uppercase; }
.review__text { color: var(--paper); font-size: .9375rem; line-height: 1.6; }
.review__meta { margin-top: 10px; font-size: var(--fs-micro); color: var(--paper-dim); text-align: right; }

/* FAQ */
.faq { border-top: 1px solid var(--line-soft); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; flex: none; width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: grid; place-items: center; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: 1.25rem; color: var(--candle);
  transition: transform .25s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 24px; color: var(--paper-muted); max-width: 68ch; }

/* Форма */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: var(--fs-small); font-weight: 600; color: var(--paper); }
.field__label small { font-weight: 400; color: var(--paper-dim); }
.field__input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 235, 223, .18); background: rgba(13, 6, 8, .55);
  transition: border-color .2s, box-shadow .2s;
}
.field__input::placeholder { color: var(--paper-dim); }
.field__input:focus { outline: none; border-color: var(--candle); box-shadow: 0 0 0 3px rgba(227, 179, 102, .2); }
.field__input[aria-invalid="true"] { border-color: var(--flame-hi); }
textarea.field__input { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--paper-muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--flame); flex: none; }
.consent a { color: var(--candle); }
.form__status { min-height: 1.5em; font-size: var(--fs-small); }
.form__status--error { color: #ff9c8f; }
.form__status--ok { color: #a7e3b5; }

/* Блок связи */
.contact { display: grid; max-width: 560px; }
.contact__panel {
  border-radius: calc(var(--radius) + 8px); padding: clamp(24px, 4vw, 40px);
  background: var(--wine-900);
  border: 1px solid var(--line);
}
.messengers { display: grid; gap: 12px; margin-top: 28px; }
.messenger {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--line-soft); background: var(--surface); text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.messenger:hover { border-color: var(--line); background: var(--surface-2); transform: translateX(4px); }
.messenger img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.messenger__name { font-weight: 700; }
.messenger__hint { font-size: var(--fs-small); color: var(--paper-muted); }
.messenger::after { content: "→"; margin-left: auto; color: var(--candle); }

/* CTA-баннер */
.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 72px); text-align: center;
  background: var(--wine-900);
  border: 1px solid var(--line);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 16px auto 28px; max-width: 48ch; color: var(--paper-muted); }
.cta-band .btn-row { justify-content: center; }

/* Подвал */
.site-footer { margin-top: var(--space-section); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: rgba(13, 6, 8, .6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-title { font-size: var(--fs-micro); letter-spacing: .16em; text-transform: uppercase; color: var(--candle); margin: 0 0 16px; font-family: var(--font-body); font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--paper-muted); text-decoration: none; font-size: .9375rem; }
.footer-links a:hover { color: var(--paper); }
.footer-links img { width: 18px; height: 18px; border-radius: 4px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--fs-micro); color: var(--paper-dim); }
.footer-legal p { max-width: 70ch; }
.footer-legal a { color: var(--paper-muted); }

/* Мобильная панель связи */
.dock { display: none; }

/* 6. Секции ---------------------------------------------------------------- */

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__copy { display: grid; gap: 20px; justify-items: start; }
.hero__offer {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
  line-height: 1.2;
  color: var(--candle);
}
.hero__pains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  color: var(--paper-muted);
  max-width: 42ch;
}
.hero__pains li { padding-left: 0; }
.hero__note { margin: 0; font-size: var(--fs-small); color: var(--paper-muted); }
.hero__media { max-width: 440px; width: 100%; justify-self: end; }
.hero__media .arch__frame { aspect-ratio: 520 / 720; }
.hero__media .arch__frame img { object-position: 50% 30%; }
.hero__caption {
  position: absolute; left: -28px; bottom: 40px; z-index: 2;
  padding: 14px 18px; border-radius: 14px; max-width: 220px;
  background: var(--ink); border: 1px solid var(--line);
  font-size: var(--fs-small); line-height: 1.4; color: var(--paper-muted);
}
.hero__caption strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--candle); font-weight: 500; line-height: 1.1; }

/* Обо мне */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about__media { position: sticky; top: calc(var(--header-h) + 32px); max-width: 400px; }
.about__media .arch__frame { aspect-ratio: 360 / 500; }
.about__body { display: grid; gap: 28px; }
.quote {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); line-height: 1.3;
  padding-left: 24px; border-left: 2px solid var(--flame); color: var(--paper); margin: 0;
}

/* Внутренняя страница */
.page-hero { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.page-hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.page-hero__copy { display: grid; gap: 22px; justify-items: start; }
.page-hero__aside { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; }
.page-hero__aside h2 { font-size: 1.5rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--paper-muted); }
.checklist li::before { content: "✦"; color: var(--candle); font-size: .8rem; line-height: 1.9; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }

/* Анимации ----------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .arch::after { animation: flicker 6s ease-in-out infinite; }
  @keyframes flicker { 0%, 100% { opacity: .9; } 40% { opacity: .65; } 60% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Адаптив ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav__link { padding: 0 10px; }
  .site-header__cta .btn__label-long { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 10px -6px rgba(0, 0, 0, .35);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { min-height: 52px; font-size: 1.125rem; padding: 0 12px; }
  .hero__grid, .about, .contact, .page-hero__grid, .content-grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; max-width: 340px; margin-top: 16px; }
  .hero__caption { left: -12px; bottom: 24px; }
  .about__media { position: relative; top: 0; max-width: 320px; margin-inline: auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line-soft); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head--split { grid-template-columns: 1fr; }
  .toc { position: static; }
  .dock {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--line);
  }
  .dock .btn { min-height: 48px; padding: 8px 10px; font-size: .8125rem; gap: 8px; }
  .dock .btn img { width: 20px; height: 20px; }
  .dock .btn span { overflow: hidden; text-overflow: ellipsis; }
  body { padding-bottom: 76px; }
}
@media (max-width: 600px) {
  .hero__media { max-width: 280px; }
  .hero__caption { display: none; }
  .grid--3, .grid--2, .form__row, .footer-grid { grid-template-columns: 1fr; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero .btn-row .btn--ghost { flex: 1 1 40%; padding-inline: 12px; }
  .hero__pains { grid-template-columns: 1fr; }
  .cred { grid-template-columns: 64px 1fr; gap: 14px; }
  .reviews { columns: 1; }
}
@media (max-width: 380px) {
  .dock .btn span { display: none; }
  .hero .btn-row .btn--ghost { flex: 1 1 100%; }
}
