/* =========================================================================
   Липецкий профнастил. Одностраничный сайт.
   Дизайн-система: docs/03-design-system.md
   Правило: цвета, размеры и отступы берутся только из токенов ниже.
   ========================================================================= */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* ---------- 1. Токены ---------- */
:root {
  /* Палитра по каталогу RAL — та же, что у покрытий профнастила */
  --c-anthracite: #303235;   /* графит: линии чертежа и контуры */
  --c-ink: #292426;          /* основной текст */
  --c-muted: #70676A;        /* второстепенный текст */
  --c-accent: #59191F;       /* RAL 3005: винно-красный акцент */
  --c-accent-hover: #431218;
  --c-accent-tint: #A94750;  /* акцент для текста на тёмных секциях */
  --c-paper: #FFFFFF;        /* листы: карточки, чертёж, форма */
  --c-bg: #FBF9F7;           /* тёплый светлый фон страницы */
  --c-zinc: #F1EDEC;         /* светлый розовато-серый фон секций */
  --c-line: #C9CDCF;         /* тонкие линии */
  --c-steel: #A5A8A6;        /* RAL 9006: оси, неактивные элементы */
  --c-error: #B3261E;

  --font: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --narrow: 75%;             /* font-stretch для заголовков и цифр */

  /* Шкала 1,25 от 17 px */
  --fs-xs: 0.8125rem;
  --fs-s: 0.9375rem;
  --fs-m: 1.0625rem;
  --fs-l: 1.3125rem;
  --fs-xl: 1.625rem;
  --fs-h2: clamp(1.875rem, 1.35rem + 2vw, 2.875rem);
  --fs-h1: clamp(2.5rem, 1.3rem + 4.6vw, 4.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --container: 76rem;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --radius: 2px;             /* сталь — острые кромки, скругление минимальное */
  --header-h: 4.5rem;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-stretch: var(--narrow); line-height: 1.08; color: var(--c-anthracite); }
h2 { font-size: var(--fs-h2); font-weight: 620; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-l); font-weight: 620; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--c-accent-tint); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -3rem; z-index: 100;
  padding: var(--space-2) var(--space-4); background: var(--c-accent); color: var(--c-ink);
}
.skip-link:focus { top: var(--space-4); }

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

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 2.75rem; padding: var(--space-2) var(--space-5);
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-size: var(--fs-s); font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { min-height: 3.25rem; padding-inline: var(--space-6); font-size: var(--fs-m); }
.btn--accent { background: var(--c-accent); color: var(--c-bg); }
.btn--accent:hover { background: var(--c-accent-hover); text-decoration: none; }
.btn--line { border-color: var(--c-anthracite); color: var(--c-anthracite); background: transparent; }
.btn--line:hover { background: var(--c-anthracite); color: var(--c-bg); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- 4. Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: inset 0 3px 0 var(--c-accent);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.site-header__logo { display: inline-flex; align-items: center; gap: var(--space-3); flex: none; color: var(--c-ink); text-decoration: none; }
.site-header__logo img { width: auto; height: 2.5rem; }
.brand-name { display: grid; font-stretch: var(--narrow); font-size: 1.05rem; font-weight: 650; line-height: .9; letter-spacing: .01em; text-transform: uppercase; }
.brand-name strong { color: var(--c-accent); font-weight: 700; }
.site-nav { display: flex; gap: var(--space-5); margin-left: auto; font-size: var(--fs-s); }
.site-nav a { text-decoration: none; padding-block: var(--space-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { border-bottom-color: var(--c-accent); }
.site-header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-stretch: var(--narrow); font-size: var(--fs-l); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .site-nav {
    display: none; position: absolute; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; margin: 0; padding: var(--space-3) var(--gutter) var(--space-5);
    background: var(--c-bg); border-bottom: 1px solid var(--c-line); font-size: var(--fs-m);
  }
  .site-nav a { padding-block: var(--space-3); border-bottom: 1px solid var(--c-line); }
  .site-header.is-open .site-nav { display: flex; }
  .site-header__phone { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; padding: 0; border: 1.5px solid var(--c-anthracite);
    border-radius: var(--radius); background: transparent; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 1.125rem; height: 2px; background: var(--c-anthracite); position: relative;
  }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .site-header.is-open .nav-toggle__bar { background: transparent; }
  .site-header.is-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
  .site-header.is-open .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }
}
@media (max-width: 720px) {
  .site-header__phone, .site-header__cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .site-header__logo img { height: 2.25rem; }
  .brand-name { font-size: .92rem; }
}

/* ---------- 5. Секции ---------- */
.section { padding-block: var(--space-9); }
.section--zinc { background: var(--c-zinc); }
.section--dark { background: var(--c-anthracite); color: var(--c-bg); }
.section--dark h2, .section--dark h3 { color: var(--c-bg); }
.section-head { display: grid; gap: var(--space-4); max-width: 46rem; margin-bottom: var(--space-7); }
.section-head h2, .calc__intro h2, .contacts__person h2 { color: var(--c-accent); }
.section-head p { color: var(--c-muted); font-size: var(--fs-l); line-height: 1.45; }
.footnote { margin-top: var(--space-5); max-width: 46rem; font-size: var(--fs-xs); color: var(--c-muted); }
@media (max-width: 720px) { .section { padding-block: var(--space-8); } }

/* ---------- 6. Hero ---------- */
.hero { padding-block: var(--space-8); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-6) var(--space-7); align-items: end; margin-bottom: var(--space-7);
}
.hero__title { font-size: var(--fs-h1); font-weight: 640; line-height: 1.0; letter-spacing: -0.012em; max-width: 13.5em; }
.hero__lead { font-size: var(--fs-l); line-height: 1.45; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
@media (max-width: 900px) {
  .hero { padding-top: var(--space-7); }
  .hero__grid { grid-template-columns: 1fr; margin-bottom: var(--space-6); }
}

/* Лист чертежа */
.sheet { margin: 0; background: var(--c-paper); border: 1.5px solid var(--c-anthracite); }
.sheet__tabs { display: flex; overflow-x: auto; border-bottom: 1.5px solid var(--c-anthracite); scrollbar-width: none; }
.sheet__tabs::-webkit-scrollbar { display: none; }
.sheet__tab {
  flex: 1 0 auto; min-height: 3rem; padding: var(--space-2) var(--space-5);
  border: 0; border-right: 1px solid var(--c-anthracite); background: transparent;
  font-stretch: var(--narrow); font-size: var(--fs-l); font-weight: 600; color: var(--c-anthracite);
  cursor: pointer;
}
.sheet__tab:last-child { border-right: 0; }
.sheet__tab:hover { background: var(--c-zinc); }
.sheet__tab[aria-selected="true"] { background: var(--c-accent); color: var(--c-bg); }
.sheet__tab:focus-visible { outline-offset: -4px; }
.sheet__body { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; }
.sheet__drawing { min-height: 14rem; padding: var(--space-4); display: flex; align-items: center; }
.sheet__drawing svg { width: 100%; height: auto; overflow: visible; }
.sheet__note { padding: var(--space-3) var(--space-4); border-top: 1px solid var(--c-line); font-size: var(--fs-xs); color: var(--c-muted); }
@media (max-width: 900px) {
  .sheet__body { grid-template-columns: 1fr; }
  .sheet__drawing { min-height: 0; }
}
@media (max-width: 600px) {
  .sheet__tabs { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .sheet__tab { padding-inline: var(--space-2); border-bottom: 1px solid var(--c-anthracite); }
  .sheet__tab:nth-child(3n) { border-right: 0; }
  .sheet__tab:nth-last-child(-n + 3) { border-bottom: 0; }
}

/* Штамп — таблица в духе основной надписи чертежа */
.stamp { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.stamp th, .stamp td { padding: var(--space-2) var(--space-3); border: 1px solid var(--c-anthracite); text-align: left; vertical-align: top; }
.stamp th { width: 45%; font-weight: 400; color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.3; padding-top: 0.65rem; }
.stamp td { font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-m); color: var(--c-anthracite); }
.sheet .stamp { height: 100%; }
.sheet .stamp tr:first-child th, .sheet .stamp tr:first-child td { border-top: 0; }
.sheet .stamp tr:last-child th, .sheet .stamp tr:last-child td { border-bottom: 0; }
.sheet .stamp td { border-right: 0; }
@media (max-width: 900px) {
  .sheet .stamp th:first-child { border-left: 0; }
  .sheet .stamp tr:first-child th, .sheet .stamp tr:first-child td { border-top: 1px solid var(--c-anthracite); }
}

/* Элементы SVG-чертежа (строит main.js) */
.dwg-section { fill: none; stroke: var(--c-anthracite); stroke-linejoin: miter; }
.dwg-axis { stroke: var(--c-steel); fill: none; }
.dwg-dim { stroke: var(--c-anthracite); fill: none; }
.dwg-arrow { fill: var(--c-anthracite); }
.dwg-text { fill: var(--c-anthracite); font-family: var(--font); font-stretch: var(--narrow); font-weight: 600; }
.dwg-tag { fill: var(--c-accent); }
.dwg-text--on-tag { fill: var(--c-bg); }
.dwg-break { stroke: var(--c-anthracite); fill: none; }
.dwg-dims { transition: opacity .4s .5s; }
.is-drawing .dwg-section { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-drawing .dwg-dims { opacity: 0; }
.is-drawn .dwg-section { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1); }

/* ---------- 7. Профили ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.profile {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}
.profile:target { border-color: var(--c-anthracite); box-shadow: inset 0 3px 0 var(--c-accent); }
.profile__drawing { padding-block: var(--space-2) var(--space-3); border-bottom: 1px solid var(--c-line); }
.profile__name { font-size: var(--fs-xl); font-weight: 650; }
.profile__use { color: var(--c-ink); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); margin: 0; }
.specs div { display: grid; }
.specs dt { font-size: var(--fs-xs); color: var(--c-muted); }
.specs dd { margin: 0; font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-l); color: var(--c-anthracite); }
.profile__analog { font-size: var(--fs-s); color: var(--c-muted); }
.profile__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--c-line);
}
.profile__price { font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-l); }
@media (max-width: 1100px) { .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .profiles { grid-template-columns: 1fr; } }

/* ---------- 8. Сравнение ---------- */
.task-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.chip {
  min-height: 2.5rem; padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--c-anthracite); border-radius: var(--radius); background: transparent;
  font-size: var(--fs-s); font-weight: 500; cursor: pointer;
}
.chip:hover { background: var(--c-paper); }
.chip[aria-pressed="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-bg); }
.table-scroll { overflow-x: auto; background: var(--c-paper); border: 1px solid var(--c-anthracite); }
.compare { width: 100%; min-width: 58rem; border-collapse: collapse; font-size: var(--fs-s); }
.compare th, .compare td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.compare thead th { font-weight: 500; font-size: var(--fs-xs); color: var(--c-muted); border-bottom: 1.5px solid var(--c-anthracite); }
.compare tbody th { font-stretch: var(--narrow); font-weight: 650; font-size: var(--fs-m); white-space: nowrap; }
.compare tbody th a { text-decoration: none; }
.compare tbody th a:hover { text-decoration: underline; }
.compare .num { text-align: right; font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-m); white-space: nowrap; }
.compare thead .num { font-size: var(--fs-xs); font-weight: 500; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr { transition: opacity .2s; }
.compare tbody tr.is-dim { opacity: .3; }
.compare tbody tr.is-match { background: #F8EDEF; }
.compare tbody tr.is-match > th:first-child { box-shadow: inset 4px 0 0 var(--c-accent); }

/* ---------- 9. Шире лист ---------- */
.width { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; }
.width__text { display: grid; gap: var(--space-4); }
.width__text h2 { margin-bottom: var(--space-2); }
.width__text .footnote { margin-top: var(--space-2); }
.width__chart { display: grid; gap: var(--space-6); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; gap: var(--space-2) var(--space-4); align-items: center; }
.pair__delta { grid-column: 2; grid-row: 1 / span 2; font-stretch: var(--narrow); font-weight: 650; font-size: var(--fs-xl); color: var(--c-anthracite); text-align: right; }
.bar {
  grid-column: 1; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
  width: calc(var(--v) / 112 * 100%); min-width: 13rem; min-height: 2.5rem; padding: var(--space-1) var(--space-3);
  font-size: var(--fs-s);
}
.bar--base { background: var(--c-zinc); border: 1px solid var(--c-line); }
.bar--skn { background: var(--c-accent); color: var(--c-bg); }
.bar__label { font-weight: 600; font-stretch: var(--narrow); font-size: var(--fs-m); }
.bar__value { white-space: nowrap; }
@media (max-width: 900px) { .width { grid-template-columns: 1fr; gap: var(--space-6); } }

/* ---------- 10. Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6) var(--space-7); }
.calc__intro { grid-column: 1 / -1; display: grid; gap: var(--space-4); max-width: 46rem; }
.calc__intro p { color: var(--c-muted); font-size: var(--fs-l); line-height: 1.45; }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-content: start; }
.calc__form .field:first-child { grid-column: 1 / -1; }
.calc__result { display: grid; gap: var(--space-5); align-content: start; padding: var(--space-5); background: var(--c-paper); border: 1.5px solid var(--c-anthracite); }
.result { display: grid; gap: var(--space-4); margin: 0; }
.result div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--c-line); }
.result dt { color: var(--c-muted); font-size: var(--fs-s); }
.result dd { margin: 0; font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-l); text-align: right; white-space: nowrap; }
.result .result__main dd { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1; color: var(--c-accent-tint); }
.calc__note { font-size: var(--fs-xs); color: var(--c-muted); }
.calc__note.is-warning { color: var(--c-accent); font-size: var(--fs-s); }
.calc__result .btn { width: 100%; white-space: normal; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .calc__form { grid-template-columns: 1fr; } }

/* ---------- 11. Поля форм ---------- */
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-size: var(--fs-s); font-weight: 500; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: var(--space-2) var(--space-3);
  border: 1.5px solid var(--c-steel); border-radius: var(--radius); background: var(--c-paper);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-anthracite); }
.field input[aria-invalid="true"] { border-color: var(--c-error); }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.field__error { font-size: var(--fs-xs); color: var(--c-error); font-weight: 500; }
.section--dark .field input, .section--dark .field select {
  background: #2C3134; border-color: #6B7479; color: var(--c-bg);
  font-stretch: var(--narrow); font-weight: 600; font-size: var(--fs-l);
}
.section--dark .field input:hover, .section--dark .field select:hover { border-color: var(--c-bg); }
.section--dark .field input[aria-invalid="true"] { border-color: var(--c-accent-tint); }
.section--dark .field__hint { color: #B9BEC0; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-3); }
.field--check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--c-anthracite); }
.field--check label { font-weight: 400; font-size: var(--fs-s); }
.field--check .field__error { grid-column: 2; }

/* ---------- 12. Покрытия ---------- */
.coatings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); margin-bottom: var(--space-8); }
.coating { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--c-anthracite); }
.coating p { color: var(--c-ink); }
.swatches__title { margin-bottom: var(--space-5); }
.swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.swatch { display: grid; gap: var(--space-1); font-size: var(--fs-s); }
.swatch::before { content: ""; display: block; aspect-ratio: 5 / 4; background: var(--c); border: 1px solid rgb(0 0 0 / .12); border-radius: var(--radius); margin-bottom: var(--space-2); }
.swatch span { font-weight: 600; font-stretch: var(--narrow); font-size: var(--fs-m); }
.swatch small { color: var(--c-muted); font-size: var(--fs-xs); line-height: 1.3; }
@media (max-width: 900px) {
  .coatings { grid-template-columns: 1fr; gap: var(--space-5); }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 13. Порядок работы (последовательность — нумерация уместна) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { counter-increment: step; display: grid; gap: var(--space-2); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--c-anthracite); }
.step::before { content: counter(step); font-stretch: var(--narrow); font-weight: 650; font-size: var(--fs-h2); line-height: 1; color: var(--c-anthracite); margin-bottom: var(--space-3); }
.step p { font-size: var(--fs-s); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-6); }
.faq__list { border-top: 1.5px solid var(--c-anthracite); }
.qa { border-bottom: 1px solid var(--c-line); }
.qa summary {
  display: flex; justify-content: space-between; gap: var(--space-4); align-items: baseline;
  padding: var(--space-4) 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-l); line-height: 1.3; color: var(--c-anthracite);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-weight: 400; font-size: var(--fs-xl); line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { padding-bottom: var(--space-5); max-width: 44em; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- 15. Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; }
.contacts__person { display: grid; gap: var(--space-4); }
.contacts__person > p { color: var(--c-muted); font-size: var(--fs-l); line-height: 1.45; margin-bottom: var(--space-3); }
.stamp--contact { background: var(--c-paper); }
.stamp--contact th { width: 32%; }
.stamp--contact td { font-size: var(--fs-l); overflow-wrap: anywhere; }
.stamp--contact tr:last-child td { font-stretch: 100%; font-weight: 400; font-size: var(--fs-s); color: var(--c-ink); }
.stamp--contact a { text-decoration: none; }
.stamp--contact a:hover { text-decoration: underline; }
.contact-card { display: grid; align-content: start; gap: var(--space-5); padding: var(--space-7); background: linear-gradient(90deg, var(--c-accent) 0 .5rem, var(--c-paper) .5rem); border: 1.5px solid var(--c-accent); }
.contact-card__eyebrow { margin: 0; color: var(--c-accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-card h3 { font-size: var(--fs-xl); }
.contact-card > p:not(.contact-card__eyebrow) { margin: 0; color: var(--c-muted); font-size: var(--fs-l); line-height: 1.45; }
.contact-card .btn { justify-self: start; }
.contact-card__phone { color: var(--c-anthracite); font-size: var(--fs-l); font-weight: 650; text-decoration: none; }
.contact-card__phone:hover { color: var(--c-accent); text-decoration: underline; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-card { padding: var(--space-5); } }

/* ---------- 16. Подвал ---------- */
.site-footer { background: var(--c-anthracite); color: #C9CDCF; padding-block: var(--space-7); font-size: var(--fs-s); }
.site-footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-6); align-items: center; }
.site-footer__brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.site-footer__brand img { height: 2.5rem; width: auto; }
.site-footer .brand-name { color: var(--c-bg); }
.site-footer .brand-name strong { color: #E7DCDD; }
.site-footer__contacts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); color: var(--c-bg); font-weight: 600; }
.site-footer__contacts a { text-decoration: none; }
.site-footer__contacts a:hover { text-decoration: underline; }
.site-footer__legal { display: grid; gap: var(--space-1); text-align: right; font-size: var(--fs-xs); }
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__legal { text-align: left; }
}

/* ---------- 17. Мобильная панель ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 4.5rem; }
  .mobile-bar {
    position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-2);
    padding: var(--space-2) var(--gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--c-bg); border-top: 1px solid var(--c-line);
  }
  .mobile-bar .btn { min-height: 3rem; }
}

/* ---------- 18. Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
