/* REAGENTMED.RU — основной стиль. Шрифты подключаются из fonts.css (локальные файлы). */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efede8;
  --ink: #1d1f22;
  --ink-2: #3a3d42;
  --muted: #5d6066;
  --line: rgba(29, 31, 34, 0.12);
  --line-strong: rgba(29, 31, 34, 0.22);
  --red: #d71920;
  --red-dark: #b0141a;
  --red-tint: #fbeceb;
  --ok: #1f6b45;
  --ok-tint: #e7f2ec;
  --err: #a3161b;

  --font-body: 'Golos Text', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(2.1rem, 1.4rem + 2.8vw, 3.6rem);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(29, 31, 34, 0.05), 0 8px 24px rgba(29, 31, 34, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(215, 25, 32, 0.45); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--text-2xl); letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav li + li { margin-top: 0; }
.nav a {
  display: block; padding: 0.55rem 0.8rem; font-size: var(--text-sm); text-decoration: none;
  color: var(--ink-2); border-radius: var(--radius-sm); font-weight: 500;
}
.nav a:hover { color: var(--ink); background: rgba(29, 31, 34, 0.05); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.header-phone { font-size: var(--text-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1060px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; margin: 0; box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; gap: 0; }
  .nav a { padding: 0.85rem 0; font-size: var(--text-base); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--red-dark); }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.35rem; border-radius: var(--radius-md);
  font: 600 var(--text-sm)/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { font: 500 var(--text-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); flex: none; }
@media (min-width: 1000px) { .line-card .eyebrow { white-space: nowrap; letter-spacing: 0.03em; } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }
.lead { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.92); padding: .45rem .7rem; border-radius: var(--radius-sm); font-size: var(--text-xs); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.fact { padding: 1.1rem 1.25rem 0 0; }
.fact + .fact { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.fact b { display: block; font: 500 clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem)/1.1 var(--font-mono); letter-spacing: -0.02em; margin-bottom: .35rem; }
.fact span { font-size: var(--text-sm); color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 4 / 3; order: -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 1rem; }
}

/* Product lines (home + catalog) */
.lines { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.line-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.line-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.line-card .media { background: var(--surface-2); aspect-ratio: 16 / 10; overflow: hidden; }
.line-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.line-card:hover .media img { transform: scale(1.03); }
.line-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.line-card h3 { margin: 0; }
.line-card p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.line-card .meta { margin-top: auto; padding-top: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: var(--text-xs); color: var(--muted); border-top: 1px solid var(--line); }
.line-card .arrow { font-weight: 600; color: var(--ink); font-size: var(--text-sm); white-space: nowrap; }
.line-card.big { grid-column: span 7; grid-row: span 2; }
.line-card.big .media { aspect-ratio: auto; flex: 1; min-height: 320px; }
.line-card.big .body { flex: none; }
.line-card.side { grid-column: span 5; }
.line-card.side .media { aspect-ratio: 16 / 8; }
.line-card.quad { grid-column: span 6; }
.line-card.tri { grid-column: span 4; }
.line-card.quad .media { aspect-ratio: 16 / 9; }
.line-card .note { font-size: var(--text-xs); color: var(--muted); border-left: 3px solid var(--line-strong); padding-left: .7rem; }
@media (max-width: 860px) {
  .line-card.big, .line-card.side, .line-card.quad, .line-card.tri { grid-column: 1 / -1; grid-row: auto; }
  .line-card.big .media, .line-card.side .media { aspect-ratio: 16 / 10; }
}

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.compare > div { padding: clamp(1.4rem, 3vw, 2.2rem); }
.compare > div + div { border-left: 1px solid var(--line-strong); }
.compare h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.compare h3 .mono { font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.compare dl { margin: 0; display: grid; gap: .9rem; }
.compare dt { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.compare dd { margin: .15rem 0 0; }
.compare .big-num { font: 500 2rem/1 var(--font-mono); letter-spacing: -0.02em; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line-strong); }
.steps li { margin: 0; padding: 1.25rem 1.25rem 0 0; counter-increment: s; }
.steps li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 var(--text-xs)/1 var(--font-mono); color: var(--red); margin-bottom: .9rem; }
.steps b { display: block; margin-bottom: .35rem; }
.steps p { font-size: var(--text-sm); color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { margin-top: 1.25rem; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 1.25rem; }
}

/* Two-col */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split.rev { grid-template-columns: 7fr 5fr; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } }

/* Registry list */
.registry { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.registry li { margin: 0; display: grid; grid-template-columns: 11rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.registry .mono { font-size: var(--text-sm); }
.registry .t { font-size: var(--text-sm); }
.registry a { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .registry li { grid-template-columns: 1fr; gap: .25rem; } }

/* Article cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color .2s ease; }
.post-card:hover { border-color: var(--ink); color: inherit; }
.post-card .kicker { font: 500 var(--text-xs)/1.3 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.post-card .more { margin-top: auto; padding-top: .75rem; font-size: var(--text-sm); font-weight: 600; }
.posts.feature { grid-template-columns: 1.6fr 1fr 1fr; }
.posts.feature .post-card:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.posts.feature .post-card:first-child p, .posts.feature .post-card:first-child .kicker { color: rgba(255,255,255,.72); }
.posts.feature .post-card:first-child h3 { font-size: var(--text-xl); max-width: 22ch; }
@media (max-width: 860px) { .posts, .posts.feature { grid-template-columns: 1fr; } }

/* Distributor band */
.buy-band { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.buy-band h2 { margin-bottom: .5rem; }
.buy-band p { color: rgba(255,255,255,.75); margin: 0; }
.buy-band .actions { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.buy-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.buy-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.buy-band .eyebrow { color: rgba(255,255,255,.65); }
@media (max-width: 760px) { .buy-band { grid-template-columns: 1fr; } }

.buy-box { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 1.4rem; background: var(--surface); }
.buy-box h2, .buy-box h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.buy-box p { font-size: var(--text-sm); color: var(--muted); }
.buy-box .btn { width: 100%; }
.buy-box .btn + .btn { margin-top: .5rem; }

/* Page header (interior) */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); max-width: 26ch; }
.page-head .lead { margin: 0; }
.crumbs { font-size: var(--text-xs); color: var(--muted); margin: 0 0 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Meta table */
.meta-list { margin: 0; display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0; border-top: 1px solid var(--line-strong); font-size: var(--text-sm); }
.meta-list dt, .meta-list dd { padding: .75rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.meta-list dt { color: var(--muted); padding-right: 1.5rem; }
@media (max-width: 560px) { .meta-list { grid-template-columns: 1fr; } .meta-list dt { border-bottom: 0; padding-bottom: 0; } .meta-list dd { padding-top: .2rem; } }

/* Catalog table */
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; height: 46px; padding: 0 1rem 0 2.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); font: inherit; font-size: var(--text-sm); color: var(--ink); }
.search svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 .95rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; font: 500 var(--text-xs)/1 var(--font-body); color: var(--ink-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { font-size: var(--text-xs); color: var(--muted); margin-left: auto; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow-x: auto; }
table.cat { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 620px; }
table.cat th { text-align: left; font: 500 var(--text-xs)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .9rem 1rem; border-bottom: 1px solid var(--line-strong); background: var(--surface); position: sticky; top: 0; }
table.cat td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cat tr:last-child td { border-bottom: 0; }
table.cat tbody tr { transition: background-color .15s ease; }
table.cat tbody tr:hover { background: #faf9f7; }
table.cat .name a { font-weight: 600; text-decoration: none; }
table.cat .name a:hover { text-decoration: underline; }
table.cat .name small { display: block; color: var(--muted); font-weight: 400; font-size: var(--text-xs); margin-top: .15rem; }
.kit { font: 500 var(--text-xs)/1 var(--font-mono); display: inline-block; padding: .4rem .55rem; border-radius: var(--radius-sm); background: var(--surface-2); white-space: nowrap; }
.tag { font-size: var(--text-xs); color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  table.cat { min-width: 0; }
  table.cat th:nth-child(2), table.cat td:nth-child(2) { display: none; }
  table.cat .name small { display: none; }
  table.cat th, table.cat td { padding: .75rem .6rem; }
  .count { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.product-media { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .ph { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem; text-align: center; }
.product-media .ph .code { font: 700 clamp(2.4rem, 2rem + 3vw, 4.5rem)/1.05 var(--font-body); letter-spacing: -0.03em; }
.product-media .ph img { width: 120px; height: auto; object-fit: contain; }
.product h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.product .full { color: var(--muted); font-size: var(--text-sm); margin-bottom: 1.5rem; }
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 2rem; }
.variant { border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 1rem 1.1rem; background: var(--surface); }
.variant .k { font: 500 1.4rem/1 var(--font-mono); display: block; margin: .3rem 0 .45rem; }
.variant .f { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.variant p { margin: 0; font-size: var(--text-xs); color: var(--muted); }
.product h2 { font-size: 1.2rem; margin-top: 2.25rem; }
.badge-ru { display: inline-flex; gap: .5rem; align-items: center; font: 600 var(--text-xs)/1 var(--font-body); padding: .45rem .65rem; background: var(--ok-tint); color: var(--ok); border-radius: var(--radius-sm); margin-bottom: 1rem; }
.composition { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid var(--line); }
.composition li { margin: 0; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.related { display: flex; flex-wrap: wrap; gap: .5rem; }
.related a { font: 500 var(--text-xs)/1 var(--font-mono); padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); }
.related a:hover { border-color: var(--ink); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product-media { position: static; } }
@media (max-width: 420px) { .variants { grid-template-columns: 1fr; } }

/* Prose (articles, legal) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin: 1.2em 0 1.6em; }
.prose th, .prose td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; border-bottom-color: var(--line-strong); }
.prose .note { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.2rem; border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--ink-2); }
.prose ol li, .prose ul li { padding-left: .2em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } .article-aside { position: static; } }
.legal { padding-block: clamp(2rem, 5vw, 3.5rem); }
.legal .prose { max-width: 78ch; }
.legal .prose h2 { font-size: 1.2rem; }
.legal .prose p, .legal .prose li { font-size: var(--text-sm); }

/* Docs list */
.doc-group + .doc-group { margin-top: 3rem; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.doc-list li { margin: 0; }
.doc { display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: inherit; }
.doc:hover { border-color: var(--ink); color: inherit; }
.doc .ic { width: 44px; height: 52px; border: 1px solid var(--line-strong); border-radius: 4px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font: 500 10px/1 var(--font-mono); color: var(--red); background: var(--bg); }
.doc .t { font-weight: 600; font-size: var(--text-sm); display: block; }
.doc .d { font-size: var(--text-xs); color: var(--muted); }
.doc .s { font: 500 var(--text-xs)/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .doc { grid-template-columns: 36px 1fr; } .doc .s { display: none; } .doc .ic { width: 36px; height: 44px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.card h2 { font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--text-sm); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: #fff;
  padding: .75rem .9rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29,31,34,.08); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field .err { font-size: var(--text-xs); color: var(--err); min-height: 0; }
.consents { grid-column: 1 / -1; display: grid; gap: .85rem; margin-top: .25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: var(--text-xs); line-height: 1.5; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.check.invalid { color: var(--err); }
.form-foot { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.form-foot .btn { min-width: 220px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; border-radius: var(--radius-md); padding: 1rem 1.1rem; font-size: var(--text-sm); display: none; }
.form-status.ok { display: block; background: var(--ok-tint); color: var(--ok); }
.form-status.bad { display: block; background: var(--red-tint); color: var(--err); }
.contact-list { margin: 0; display: grid; gap: 1.25rem; }
.contact-list dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem; }
.contact-list dd { margin: 0; font-size: var(--text-sm); }
.contact-list dd a { font-weight: 600; font-size: var(--text-base); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #17181a; color: rgba(255,255,255,.72); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); font-size: var(--text-sm); }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.foot-grid h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); font-weight: 500; margin-bottom: 1rem; font-family: var(--font-mono); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li + li { margin-top: .5rem; }
.foot-grid ul a { text-decoration: none; }
.foot-grid ul a:hover { text-decoration: underline; }
.foot-logo { background: #fff; display: inline-block; padding: .55rem .8rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.foot-logo img { height: 34px; width: auto; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--text-xs); color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* 404 */
.nf { padding-block: clamp(4rem, 10vw, 8rem); }
.nf .code { font: 500 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font-mono); color: var(--red); letter-spacing: -0.04em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .buy-box, .article-aside { display: none; } body { background: #fff; } }
.split > * { min-width: 0; }
.prose .table-wrap { margin: 1.2em 0 1.6em; }
.prose .table-wrap table { margin: 0; min-width: 520px; }
@media (max-width: 640px) { .prose .table-wrap table { display: table; } }

/* Плашка о cookie */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -8px 24px rgba(29, 31, 34, 0.08); }
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.cookie-inner p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); flex: 1; }
.cookie-inner .btn { flex: none; min-height: 44px; }
@media (max-width: 640px) { .cookie-inner { flex-direction: column; align-items: stretch; gap: .8rem; } }
.hero h1.h1-long { max-width: 26ch; font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.6rem); line-height: 1.15; }
.hero h1.h1-long .h1-rest { display: block; margin-top: 1.25rem; max-width: 52ch; font: 400 var(--text-lg)/1.5 var(--font-body, inherit); letter-spacing: 0; color: var(--ink-2); }
