/* =========================================================
   Промышленные технологии — стили сайта
   Светлая «металлическая» тема: графит из логотипа + акцент цвета расплава
   ========================================================= */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c1e2b;
  --graphite: #2b2d42;
  --text: #3d4150;
  --muted: #646a7a;
  --line: #e2e5ea;
  --line-strong: #cfd4dc;
  --bg: #ffffff;
  --surface: #f4f5f7;
  --surface-2: #eceef2;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fdf1e9;
  --ok: #15803d;
  --err: #b91c1c;
  --steel: linear-gradient(135deg, #fbfcfd 0%, #dfe3e9 38%, #f5f6f8 55%, #c9ced7 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 30, 43, .05), 0 8px 24px -12px rgba(28, 30, 43, .18);
  --shadow-lg: 0 24px 60px -24px rgba(28, 30, 43, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::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);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--graphite); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--graphite); color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--graphite); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--text); max-width: 46em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: .98rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(194, 65, 12, .7); }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--graphite); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--graphite); color: var(--graphite); }
.btn--light { background: #fff; color: var(--graphite); border-color: var(--line); }
.btn--light:hover { border-color: var(--graphite); color: var(--graphite); }
.btn[disabled] { opacity: .6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(28, 30, 43, .4); }
.site-header__bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); flex: none; }
.logo:hover { color: var(--graphite); }
.logo__mark { width: 46px; height: 32px; }
.logo__text { display: flex; flex-direction: column; font-weight: 800; font-size: .82rem; line-height: 1.05; letter-spacing: .06em; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 8px; white-space: nowrap;
  font-size: .94rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header-phone .icon { color: var(--accent); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.burger__close { display: none; }

@media (max-width: 1300px) {
  .header-phone span { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 10px; }
}
/* Полная навигация с телефоном-иконкой и кнопкой «Заявка» занимает ~1090px —
   ниже этого переходим на бургер (запас на ширину полосы прокрутки и шрифт до загрузки). */
@media (max-width: 1140px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    padding: 16px var(--gutter) 120px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current='page'] { box-shadow: none; color: var(--accent); }
  .nav__mobile-extra { display: grid; gap: 12px; margin-top: 24px; }
  .nav__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
  .nav__phone .icon { color: var(--accent); }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger__open { display: none; }
  body.nav-open .burger__close { display: block; }
}
@media (max-width: 560px) {
  .site-header__actions .btn { display: none; }
  .logo__text { font-size: .74rem; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { margin-bottom: clamp(32px, 4vw, 52px); max-width: 760px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { margin-bottom: 0; }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
/* Колонки сеток не растягиваются под широкие таблицы: те прокручиваются внутри .table-wrap */
.split > *, .hero__grid > *, .page-hero__grid > *, .duo > *, .cta > *, .site-footer__grid > * { min-width: 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.3fr 1fr; } .split--wide-right { grid-template-columns: 1fr 1.3fr; } }
.prose { max-width: 720px; }
@media (min-width: 900px) { .sticky { position: sticky; top: calc(var(--header-h) + 24px); } }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .4em; }

/* ---------- Главный экран ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff 100%),
    linear-gradient(90deg, rgba(43,45,66,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(43,45,66,.05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--surface);
}
.hero__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero h1 { max-width: 13em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--graphite), #6b7080); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__visual { position: relative; }
.hero__visual .ingot-art { width: 100%; max-width: 620px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(28,30,43,.15)); }
.chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.9);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .82rem; color: var(--muted); line-height: 1.3;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chip strong { color: var(--ink); font-size: 1rem; }
.chip--a { left: 0; top: 6%; }
.chip--b { right: 2%; bottom: 4%; }
@media (max-width: 560px) { .chip { position: static; } .hero__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 48px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 22px 24px; display: flex; flex-direction: column-reverse; gap: 4px; }
.stat dt { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.stat dd { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.stat dd small { font-size: .55em; font-weight: 700; color: var(--muted); margin-left: 4px; }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cards--grades { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.card--link a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--steel); color: var(--graphite); margin-bottom: 18px; border: 1px solid var(--line); }
.card__icon .icon { width: 24px; height: 24px; }
.card__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--graphite); text-decoration: none; }
.card__more .icon { width: 18px; height: 18px; transition: transform .2s; }
.card--link:hover .card__more .icon { transform: translateX(4px); }
.card--link:hover .card__more { color: var(--accent); }

.grade-card { padding: 22px 22px 20px; gap: 6px; min-height: 150px; }
@media (max-width: 560px) { .grade-card { padding: 18px 16px 16px; min-height: 0; } .grade-card__name { font-size: 1.3rem; } .grade-card::before { left: 16px; right: 16px; } }
.grade-card__name { font-size: 1.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; text-decoration: none; line-height: 1.1; }
.grade-card__name:hover { color: var(--ink); }
.grade-card__sys { font-size: .9rem; color: var(--muted); }
.grade-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.tag--accent { background: var(--accent-soft); border-color: #f6d4bf; color: var(--accent-hover); }
.grade-card::before { content: ''; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--steel); }
.grade-card[data-family='zinc']::before { background: linear-gradient(90deg, #b9c3cf, #8796a8); }

/* Две дороги: продажа сплавов / закупка лома */
.duo { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__item { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.duo__item--steel { background: var(--steel); }
.duo__item h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.duo__item .checklist { margin: 8px 0 24px; }
.duo__item .actions { margin-top: auto; }

/* ---------- Списки ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: 3px; width: 20px; height: 20px; }
.checklist--x .icon { color: var(--muted); }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { background: #fff; padding: 28px 26px; }
@media (min-width: 900px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.section--surface .step { background: #fff; }
.step__num { display: block; font-size: 2.4rem; font-weight: 800; line-height: 1; margin-bottom: 18px; background: linear-gradient(135deg, #9aa1ae, #2b2d42); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.04em; }
.step__title { font-size: 1.1rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: .97rem; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { font-weight: 700; }
.table-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.el { font-weight: 700; color: var(--ink); }

/* Фильтр каталога */
.filter { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
@media (max-width: 560px) { .filter { border-radius: 22px; } }
.filter button { border: 0; background: transparent; font: inherit; font-size: .92rem; font-weight: 700; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.filter button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,30,43,.12); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: border-color .2s; }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { transition: transform .25s; color: var(--accent); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__body { padding: 0 22px 18px; }
.faq__body p { margin: 0; }

/* Аккордеон сортов лома */
.scrap-list { display: grid; gap: 10px; }
.scrap-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.scrap-item summary { list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 18px 22px; cursor: pointer; }
.scrap-item summary::-webkit-details-marker { display: none; }
.scrap-item__name { font-weight: 800; color: var(--ink); font-size: 1.08rem; }
.scrap-item__short { grid-column: 1; font-size: .92rem; color: var(--muted); }
.scrap-item summary .faq__icon { grid-row: 1 / span 2; grid-column: 2; }
.scrap-item[open] .faq__icon { transform: rotate(45deg); }
.scrap-item__body { padding: 4px 22px 22px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .scrap-item__body { grid-template-columns: 1fr 1fr; } }
.scrap-item__body h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.scrap-item__body .checklist { font-size: .95rem; gap: 8px; margin: 0; }
.price-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-hover); font-size: .82rem; font-weight: 700; }

/* ---------- Информационные блоки ---------- */
.note { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .95rem; }
.note .icon { color: var(--graphite); margin-top: 2px; }
.note p:last-child { margin: 0; }
.note--accent { background: var(--accent-soft); border-color: #f6d4bf; }
.note--accent .icon { color: var(--accent); }

.panel { border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); background: #fff; }
.panel--steel { background: var(--steel); }

.kv { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; margin: 0; border-top: 1px solid var(--line); }
.kv dt, .kv dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--muted); font-size: .92rem; padding-right: 16px; }
.kv dd { color: var(--ink); font-weight: 600; word-break: break-word; }

.license { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.license__num { font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.license__meta { font-size: .9rem; color: var(--muted); }

.elements { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.elements li { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--steel); font-weight: 800; color: var(--graphite); font-size: 1.05rem; }

/* ---------- Страницы-разделы ---------- */
.page-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(90deg, rgba(43,45,66,.045) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(180deg, rgba(43,45,66,.045) 1px, transparent 1px) 0 0 / 48px 48px, var(--surface); border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .page-hero__grid.has-aside { grid-template-columns: 1.3fr 1fr; } }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero__aside .ingot-art { max-width: 420px; margin-left: auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Карточка марки */
.grade-hero__name { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
.spec { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec div { background: #fff; padding: 16px 18px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.spec dt { font-size: .82rem; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-weight: 800; color: var(--ink); }
.comp-bars { display: grid; gap: 10px; margin: 0 0 8px; }
.comp-bar { display: grid; grid-template-columns: 44px 1fr 92px; gap: 12px; align-items: center; font-size: .92rem; }
.comp-bar__track { height: 10px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.comp-bar__fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #8e97a4, var(--graphite)); }
.comp-bar__val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 20px; }
.form__title { font-size: 1.3rem; }
.form__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field__label { font-size: .88rem; font-weight: 700; color: var(--ink); }
.req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(43,45,66,.12); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--err); }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 26px 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--graphite); background: #fff; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:focus-within { border-color: var(--graphite); box-shadow: 0 0 0 4px rgba(43,45,66,.12); }
.dropzone__icon { width: 28px; height: 28px; color: var(--accent); }
.dropzone__text { font-size: .95rem; color: var(--ink); }
.dropzone__hint { font-size: .82rem; color: var(--muted); }
.dropzone__list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.dropzone__list li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.dropzone__list li.is-bad { border-color: var(--err); color: var(--err); }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); max-width: 440px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.form__status { margin: 0; font-weight: 600; font-size: .95rem; }
.form__status:empty { display: none; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }

/* ---------- CTA-полоса ---------- */
.cta { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 56px); background: var(--steel); border: 1px solid var(--line); display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .cta { grid-template-columns: 1fr 1.25fr; } }
.cta h2 { margin-bottom: 12px; }
.cta__contacts { display: grid; gap: 12px; margin-top: 24px; }
.cta__contacts a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.cta__contacts .icon { color: var(--accent); }

/* ---------- Карта ---------- */
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); min-height: 360px; display: grid; place-items: center; text-align: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { display: grid; gap: 14px; justify-items: center; padding: 24px; }
.map__placeholder .icon { width: 36px; height: 36px; color: var(--accent); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer__about p { margin-top: 16px; color: var(--muted); max-width: 26em; }
.site-footer__title { font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer__contacts span { color: var(--muted); font-size: .85rem; }
.site-footer__contacts a { font-weight: 700; color: var(--ink); }
.site-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: var(--muted); text-decoration: underline; }

/* ---------- Мобильная панель ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar__item { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line-strong); }
  .mobile-bar__item--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
  .mobile-bar__item--accent:hover { color: #fff; }
  .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ---------- Модальное окно ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(28, 30, 43, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__box { position: relative; background: #fff; border-radius: 20px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow-lg); }
.modal__title { font-size: 1.6rem; padding-right: 40px; }
.modal__lead { color: var(--muted); }
.modal__close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal .form__grid { grid-template-columns: 1fr; }
.modal[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Cookie ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie p { margin: 0; }
@media (max-width: 760px) { .cookie { bottom: 84px; } }

/* ---------- Появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .mobile-bar, .modal, .cookie, .form, .actions { display: none !important; }
  body { font-size: 12pt; }
}
