/* ─────────────────────────────────────────────────────────────────────────
   ТракЭндПартс · сайт-визитка · V1
   Индустриальный B2B: чертёжная эстетика, каталожная типографика,
   один сигнальный акцент. Токены — только здесь, вне :root никаких hex.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* нейтрали */
  --bg:        #f4f3ee;
  --surface:   #ffffff;
  --fg:        #1d1e20;
  --muted:     #66655f;
  --border:    #e3e0d7;

  /* акцент — сигнальный оранжевый, тёмный оттенок для контраста ≥4.5:1 */
  --accent:       #c2410c;
  --accent-hover: #9a3412;
  --accent-soft:  color-mix(in oklab, var(--accent) 12%, transparent);

  --fg-soft: color-mix(in oklab, var(--fg) 6%, transparent);

  /* тёмные секции (шапка, тендерная секция, подвал) */
  --bg-dark:      #151619;
  --surface-dark: #1d1f23;
  --fg-dark:      #f0efe9;
  --muted-dark:   #a6a49b;
  --border-dark:  rgba(240, 239, 233, 0.14);

  /* семантика */
  --success: #15803d;
  --danger:  #b91c1c;

  /* шрифты: Oswald (дисплей, кириллица) + Golos Text (текст, кириллица)
     + JetBrains Mono (артикулы, метки) */
  --font-display: 'Oswald', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body:    'Golos Text', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* шкала размеров */
  --fs-h1: clamp(38px, 5.2vw, 64px);
  --fs-h2: clamp(27px, 3.4vw, 42px);
  --fs-h3: 20px;
  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-meta: 13px;

  /* сетка и ритм */
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1160px;
  --gutter: 24px;

  /* индустриальная геометрия — острые углы */
  --radius: 4px;
  --radius-lg: 6px;

  /* состояние и движение */
  --focus-ring: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 65%);
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

/* ─── сброс и база ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
ul { margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--fg-dark); color: var(--bg-dark);
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; transition: top var(--motion-fast) var(--ease-standard);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── сеточные примитивы ───────────────────────────────────────────────── */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, var(--gap-2xl)); }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }

/* ─── типографика ──────────────────────────────────────────────────────── */
h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}
h3, .h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 62ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--gap-md);
}
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); letter-spacing: 0.01em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* заголовок секции: контурный каталожный номер + название */
.sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: clamp(28px, 4vw, 44px); flex-wrap: wrap; }
.sec-idx {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
@supports (-webkit-text-stroke: 1px black) {
  .sec-idx { color: transparent; -webkit-text-stroke: 1.2px var(--muted); opacity: 0.9; }
}
.sec-head .sec-note { margin-left: auto; }

/* ─── шапка ────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); padding-block: 13px; position: relative; }
.logo {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--fg-dark); white-space: nowrap;
}
.logo em { font-style: normal; }
.topnav nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.topnav nav a {
  font-size: 14px; color: rgba(240, 239, 233, 0.72);
  padding-block: 4px; transition: color var(--motion-fast) var(--ease-standard);
}
.topnav nav a:hover { color: var(--fg-dark); }
.topnav nav a[aria-current="page"] {
  color: var(--fg-dark);
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.topnav-cta { display: flex; align-items: center; gap: var(--gap-md); }
.nav-phone { font-family: var(--font-mono); font-size: 14px; color: var(--fg-dark); white-space: nowrap; }
.nav-phone:hover { color: var(--fg-dark); text-decoration: underline; text-underline-offset: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--border-dark); border-radius: var(--radius);
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--fg-dark); transition: transform var(--motion-base) var(--ease-standard), opacity var(--motion-base) var(--ease-standard); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ─── кнопки ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent); }
.btn-arrow::after { content: '→'; transition: transform var(--motion-fast) var(--ease-standard); }
.btn-arrow:hover::after { transform: translateX(3px); }
.btn-dark-outline { background: transparent; color: var(--fg-dark); border-color: var(--border-dark); }
.btn-dark-outline:hover { border-color: var(--fg-dark); }

/* ─── карточки и поверхности ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card-flat { background: transparent; border: 0; padding: 0; }
.card-rule { background: transparent; border: 0; border-top: 1px solid var(--fg); border-radius: 0; padding: 24px 0 0; }

/* признак блока: каталожная карточка направления */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--motion-fast) var(--ease-standard);
}
.cat-card:hover { border-color: var(--muted); }
.cat-card.wide { grid-column: span 2; }
.cat-card .idx { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.cat-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}
.cat-card .examples { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.cat-card .examples li { padding-left: 16px; position: relative; margin-top: 5px; }
.cat-card .examples li::before { content: '—'; position: absolute; left: 0; color: var(--border); color: var(--muted); opacity: 0.6; }
.cat-card .more { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--fg); font-weight: 500; }
.cat-card .more:hover { color: var(--accent); }

/* признак блока: марки техники */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center;
  padding: 5px 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* ─── списки-чеклисты ──────────────────────────────────────────────────── */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 34px; margin-top: 14px; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  border: 1.5px solid var(--fg); border-radius: 2px;
}
.check-list li::after {
  content: ''; position: absolute; left: 4.5px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
  transform: rotate(-45deg);
}

/* ─── шаги процесса ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-lg); }
.step { border-top: 2px solid var(--fg); padding-top: 18px; }
.step-num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600; line-height: 1;
  color: var(--fg); font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 12px; }
.step p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* ─── признаки/фичи ────────────────────────────────────────────────────── */
.feature .feature-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  margin-bottom: var(--gap-md);
  background: var(--surface);
}
.feature .feature-mark svg { width: 19px; height: 19px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ─── тёмная секция ────────────────────────────────────────────────────── */
.section-dark { background: var(--bg-dark); color: var(--fg-dark); border-top: 0; }
.section-dark .lead, .section-dark p { color: var(--muted-dark); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark h2, .section-dark h3 { color: var(--fg-dark); }
.section-dark .sec-idx { color: var(--muted-dark); opacity: 0.45; }
@supports (-webkit-text-stroke: 1px black) {
  .section-dark .sec-idx { color: transparent; -webkit-text-stroke: 1.2px var(--muted-dark); opacity: 0.8; }
}
.section-dark .card { background: var(--surface-dark); border-color: var(--border-dark); }
.section-dark .check-list li::before { border-color: var(--fg-dark); }
.section-dark .check-list li::after { border-color: var(--fg-dark); }

/* ─── фактурная полоса (техническая штриховка) ─────────────────────────── */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(135deg,
    color-mix(in oklab, var(--fg) 12%, transparent) 0 12px,
    transparent 12px 26px);
}

/* ─── таблицы ──────────────────────────────────────────────────────────── */
.ds-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); }
.ds-table th, .ds-table td { padding: 13px 16px; text-align: left; border: 1px solid var(--border); vertical-align: top; }
.ds-table th {
  color: var(--fg); font-weight: 600;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  background: color-mix(in oklab, var(--fg) 4%, var(--surface));
}
.ds-table td .meta { font-size: 12px; }
.ds-table tbody tr:hover { background: var(--fg-soft); }
.table-scroll { overflow-x: auto; }

/* ─── формы ────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field .req { color: var(--accent); }
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  transition: border-color var(--motion-fast) var(--ease-standard);
}
.input::placeholder, .textarea::placeholder { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.input:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field-error { color: var(--danger); font-size: 12.5px; min-height: 1em; }
.consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent label { font-size: 13.5px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
.form-grid .span-2 { grid-column: span 2; }
.form-note { font-size: 13px; color: var(--muted); }
.form-success {
  border: 1px solid var(--success);
  background: color-mix(in oklab, var(--success) 7%, transparent);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: 15px;
}
.form-success strong { color: var(--success); }

/* ─── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-bottom: 1px solid var(--border); }
.faq details { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none;
  padding: 19px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  transition: color var(--motion-fast) var(--ease-standard);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none;
  width: 12px; height: 12px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform var(--motion-base) var(--ease-standard);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq summary:hover { color: var(--accent); }
.faq .faq-a { margin: 0 0 20px; color: var(--muted); max-width: 72ch; }

/* ─── хлебные крошки ───────────────────────────────────────────────────── */
.bcrumbs {
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: var(--gap-md);
}
.bcrumbs a:hover { color: var(--accent); }
.bcrumbs .sep { color: var(--border); }

/* ─── герой ────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 8vw, 120px); }
.hero-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--gap-2xl); align-items: center; }
.hero h1 { margin-bottom: var(--gap-md); }
.hero .lead { margin-bottom: var(--gap-lg); }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }

.blueprint-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.blueprint-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.blueprint {
  width: 100%; height: auto;
  color: var(--fg);
  background-image:
    linear-gradient(color-mix(in oklab, var(--fg) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--fg) 5%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: center;
}

/* ─── подвал «штамп» ───────────────────────────────────────────────────── */
.pagefoot { background: var(--bg-dark); color: var(--muted-dark); padding-block: var(--gap-xl) 28px; margin-top: 0; }
.pagefoot .logo { display: inline-block; margin-bottom: 12px; }
.stamp {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 1px; background: var(--border-dark);
  border: 1px solid var(--border-dark);
}
.stamp-cell { background: var(--bg-dark); padding: 24px; font-size: 14px; }
.stamp-cell h3 {
  font-family: var(--font-display);
  font-weight: 500; font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dark);
  margin: 0 0 14px;
}
.stamp-cell ul { list-style: none; padding: 0; }
.stamp-cell li { margin-top: 8px; }
.stamp-cell a:hover { color: var(--fg-dark); text-decoration: underline; text-underline-offset: 4px; }
.stamp-cell .sub { color: var(--muted-dark); font-size: 14.5px; line-height: 1.6; margin: 0; }
.stamp-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; margin-top: 26px;
  border-top: 1px solid var(--border-dark);
  font-size: 12.5px;
}

/* ─── полоса марок под героем ──────────────────────────────────────────── */
.brand-strip { padding-block: 26px; border-top: 1px solid var(--border); }
.brand-strip .row-between { flex-wrap: wrap; gap: 14px; }
.brand-strip .label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.brand-strip .fine { font-size: 12px; color: var(--muted); opacity: 0.8; margin-top: 14px; }

/* ─── CTA-полоса ───────────────────────────────────────────────────────── */
.cta-strip { text-align: center; }
.cta-strip .lead { margin: 16px auto 32px; max-width: 52ch; }
.cta-strip h2 { max-width: 24ch; margin-inline: auto; }

/* ─── страничный герой (внутренние страницы) ───────────────────────────── */
.page-hero { padding-block: clamp(40px, 6vw, 76px) clamp(36px, 5vw, 64px); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: var(--gap-md); }

/* ─── SEO-текст ────────────────────────────────────────────────────────── */
.seo-text { max-width: 76ch; }
.seo-text p { margin: 0 0 16px; color: color-mix(in oklab, var(--fg) 86%, var(--muted)); }
.seo-text h3 { margin: 28px 0 12px; }

/* ─── анимация чертежа (одна, с уважением к reduce) ────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .blueprint .dr {
    stroke-dasharray: 1400; stroke-dashoffset: 1400;
    animation: draw 1.8s var(--ease-standard) 0.2s forwards;
  }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ─── адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.wide { grid-column: span 2; }
}
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: var(--gap-xl); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .topnav nav {
    display: none;
    position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; gap: 2px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 12px var(--gutter) 20px;
  }
  .topnav.nav-open nav { display: flex; }
  .topnav nav a { padding: 12px 0; font-size: 16px; border-top: 1px solid var(--border-dark); }
  .topnav nav a[aria-current="page"] { text-decoration: none; border-left: 3px solid var(--accent); padding-left: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav-phone { display: none; }
  .stamp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card.wide { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .stamp { grid-template-columns: 1fr; }
  .topnav-cta .btn { padding: 10px 14px; font-size: 13.5px; }
  .sec-head { gap: 14px; }
}

/* ─── почта: картинка на кнопке → ссылка после нажатия ──────────────────── */
.email-reveal {
  display: inline-flex; align-items: center;
  padding: 2px 0 3px; margin: 0;
  background: none; border: 0; border-bottom: 1px dashed currentColor;
  color: inherit; font: inherit; line-height: 1; cursor: pointer;
  vertical-align: middle;
}
.email-reveal img { display: block; height: 1.25em; width: auto; }
.email-reveal:hover { border-bottom-color: var(--accent); }
.email-reveal:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.email-reveal-lg { font-size: 17px; }
.email-link { font-family: var(--font-mono); text-decoration: underline; text-underline-offset: 4px; }
.email-link-lg { font-size: 17px; }
