/* Artel — вариант v4: v1 «Разбор» + тёмный блок аудита, крупные номера шагов и логотип в подвале (из v2),
   воронка с утечками (из v3), блок «Пример разбора», меню на телефоне, услуги по группам.
   Шрифты (OFL, свои файлы): Golos Text (текст и заголовки), IBM Plex Mono (метки), Caveat (пометки от руки). */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/golos-var.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/plexmono-500.woff2) format("woff2"); }
/* Caveat — только символы коротких пометок (partials/hand-chars.txt, tools/v4-font.sh) */
@font-face { font-family: "Caveat Notes"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/caveat-600-notes.woff2) format("woff2"); }
/* запасной шрифт с подогнанной шириной — чтобы подмена не сдвигала вёрстку */
@font-face { font-family: "Golos Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Roboto"); size-adjust: 107%; ascent-override: 93%; descent-override: 24%; line-gap-override: 0%; }

:root {
  --paper: #F4F2EA;
  --sheet: #FFFEFA;
  --ink: #16181D;
  --muted: #565A63;
  --rule: #D3D0C4;
  --grid: #E6E3D8;
  --field: #70747C;
  --pen: #C22E1A;
  --marker: #FFE04A;
  --error: #B3261E;
  --sans: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --hand: "Caveat Notes", "Segoe Print", "Bradley Hand", cursive;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.75rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration-color: var(--pen); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { background: var(--marker); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--marker); border-radius: 2px; }
h2, h3, summary { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding-top: 0.375rem; padding-bottom: 0.375rem; }
.logo { display: inline-block; padding: 0.5625rem 0; font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo:hover { background: none; }
.logo span { color: var(--pen); }
.nav { display: none; gap: 1.5rem; margin-left: auto; font: 500 0.8125rem/1 var(--mono); white-space: nowrap; }
.nav a { padding: 0.5rem 0; color: var(--ink); text-decoration: none; }
.nav a:hover { background: none; text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
.header-side { display: flex; align-items: center; gap: 0.375rem; margin-left: auto; }
.lang { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.625rem; font: 500 0.8125rem/1 var(--mono); white-space: nowrap; }
@media (min-width: 60rem) {
  .nav { display: flex; }
  .header-side { margin-left: 1rem; }
}

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.75rem 1.375rem;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--sheet);
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--pen); border-color: var(--pen); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--marker); border-color: var(--ink); color: var(--ink); }
.btn-small { min-height: 2.75rem; padding: 0.5rem 0.9rem; font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 22.5rem) {
  .btn-small { padding-inline: 0.5rem; font-size: 0.8125rem; }
  .site-header .wrap { gap: 0.5rem; }
  .header-side { gap: 0.125rem; }
  .lang { padding: 0 0.375rem; }
}

/* первый экран: миллиметровка, слева текст, справа размеченный мокап */
.hero { position: relative; padding: clamp(1.75rem, 5vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  background-position: center top;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
}
/* на телефоне порядок: текст с кнопками → мокап → площадки; на широком мокап справа на обе строки */
.hero-grid { position: relative; display: grid; gap: 1.75rem; }
.hero .platforms { margin-top: 0; }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 32.5rem); grid-template-areas: "text fig" "plat fig"; gap: 1.75rem 3.5rem; }
  .hero-text { grid-area: text; align-self: end; }
  .hero .platforms { grid-area: plat; align-self: start; }
  .fig-hero { grid-area: fig; align-self: center; }
  /* на широком экране мокап выше текста — убираем лишний воздух перед следующим блоком */
  .hero { padding-bottom: 1.5rem; }
  .hero + .section { padding-top: 3.25rem; }
}
.eyebrow { display: flex; gap: 0.625rem; color: var(--muted); font: 500 0.78125rem/1.5 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; margin-top: 0.34rem; background: var(--pen); }
.hero h1 {
  margin-top: 1rem;
  max-width: 13em;
  font-weight: 650;
  font-size: clamp(2.125rem, 1.25rem + 3.9vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero h1 em, .hero h1 .hl {
  font-style: normal;
  background: linear-gradient(transparent 56%, var(--marker) 56%, var(--marker) 93%, transparent 93%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
  margin: 0 -0.08em;
}
.hero .sub { margin-top: 1rem; max-width: 22em; font-weight: 550; font-size: clamp(1.3125rem, 1.05rem + 1.1vw, 1.875rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.hero .lead { margin-top: 1.125rem; max-width: 34rem; color: var(--muted); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); }
.hero .sub + .lead { margin-top: 0.75rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }
@media (max-width: 30rem) { .hero .actions .btn { flex: 1 1 100%; } }
.hero .platforms { padding-top: 0.875rem; border-top: 1px dashed var(--field); max-width: 34rem; color: var(--muted); font: 500 0.78125rem/1.6 var(--mono); }

/* рисунки с пометками (декор, скрыт от скринридеров) */
.fig { position: relative; width: 100%; }
.fig-cap { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.625rem; color: var(--muted); font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--ink) 1px, transparent 1px) left bottom / 2.5rem 0.4375rem repeat-x, linear-gradient(90deg, var(--field) 1px, transparent 1px) left bottom / 0.5rem 0.25rem repeat-x;
  border-bottom: 1px solid var(--ink); }
.fig-body { position: relative; margin-top: 0.875rem; container-type: inline-size; }
.fig-body svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig-hero .fig-body svg { aspect-ratio: 560 / 530; overflow: hidden; }
.fig-hero .fig-body { margin-bottom: 0.75rem; }
@media (max-width: 22.5rem) { .fig-hero .notes li { width: 33%; font-size: 1rem; } .fig-hero .notes li:nth-child(2) { left: 67% !important; } }
.mk .sheet { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.mk .ln { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.mk .g0 { fill: #F1EEE4; stroke: #C6C2B5; }
.mk .g1 { fill: #E7E4DA; }
.mk .g2 { fill: #C6C2B5; }
.mk .g3 { fill: #8D8A80; }
.mk .g4 { fill: #4E4D48; }
.mk .ink { fill: var(--ink); }
.mk .g2s { fill: none; stroke: #C6C2B5; stroke-width: 5; }
.mk .x { fill: none; stroke: #CFCBBF; stroke-width: 1; }
.mk .w { fill: none; stroke: var(--sheet); stroke-width: 5; opacity: 0.85; }
.mk .fld { fill: none; stroke: #8D8A80; stroke-width: 1; }
.mk .fold { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 6 4; }
.mk .arr { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pen path { fill: none; stroke: var(--pen); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.tag { position: absolute; padding: 0.1875rem 0.375rem; background: var(--ink); color: var(--sheet); font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.tag-line { padding: 0; background: none; color: var(--muted); }
.notes { counter-reset: note; }
.notes li {
  position: absolute;
  width: 31%;
  counter-increment: note;
  color: var(--pen);
  font: 600 1.0625rem/1.02 var(--hand);
  font-size: clamp(1.0625rem, 5cqw, 1.4375rem);
  text-wrap: balance;
  transform: rotate(-2deg);
  transform-origin: left top;
}
.notes li:nth-child(2) { transform: rotate(1.5deg); }
.notes li::before { content: counter(note); display: inline-block; width: 1.15em; height: 1.15em; margin-right: 0.3em; border: 1.5px solid currentColor; border-radius: 50%; line-height: 1.02; text-align: center; vertical-align: 0.04em; font-size: 0.9em; }
.hand { color: var(--pen); font: 600 1.25rem/1.05 var(--hand); }

/* воронка с утечками: горизонтально, на телефоне вертикально */
.fig-funnel { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.fig-funnel .fig-body { padding-top: 1.75rem; }
.fig-funnel .fn-wide { aspect-ratio: 1000 / 300; }
.fig-funnel .fn-tall { display: none; aspect-ratio: 340 / 620; }
.mk .band { stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.mk .post { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.pen .dash { stroke-dasharray: 7 6; }
.fig-funnel .tag i { font-style: normal; opacity: 0.7; }
.fig-funnel .tag.mid { transform: translateX(-50%); }
.fig-funnel .tag-line.fn-w { transform: translateX(-50%); }
.fig-funnel .fn-t { display: none; }
.fn-q { position: absolute; margin: 0; white-space: nowrap; transform: rotate(-2deg); font-size: clamp(1.125rem, 2.2cqw, 1.5rem); }
.fn-q { left: 30%; top: 14%; }
@media (max-width: 47.99rem) {
  .fig-funnel { max-width: 21.25rem; }
  .fig-funnel .fig-body { padding-top: 0; }
  .fig-funnel .fn-wide, .fig-funnel .fn-w { display: none; }
  .fig-funnel .fn-tall { display: block; }
  .fig-funnel .fn-t { display: block; }
  .fig-funnel .tag.fn-t:not(.tag-line) { transform: translateY(-50%); white-space: normal; max-width: 52%; }
  .fig-funnel { padding-bottom: 2.5rem; }
  .fn-q { left: 0; top: 100%; margin-top: 0.5rem; font-size: 1.375rem; }
}

/* секции */
main { counter-reset: section; }
.section { counter-increment: section; padding: clamp(2.75rem, 6vw, 5rem) 0; border-top: 1px solid var(--rule); }
.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); max-width: 44rem; }
.section-head .label { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.875rem; color: var(--muted); font: 500 0.78125rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.section-head .label::before { content: counter(section, decimal-leading-zero); padding: 0.125rem 0.375rem; background: var(--ink); color: var(--sheet); letter-spacing: 0.04em; }
.section-head h2 { font-weight: 650; font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p { margin-top: 0.875rem; color: var(--muted); }
.head-row { display: grid; gap: 1.75rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.head-row .section-head { margin-bottom: 0; }
@media (min-width: 56rem) { .head-row { grid-template-columns: minmax(0, 1fr) 25rem; gap: 3rem; align-items: end; } }

.grid { display: grid; gap: 1rem; counter-reset: card; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 40rem) { .grid:not(.cols-3) > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 40rem) and (max-width: 61.99rem) { .grid.cols-3 > :last-child:nth-child(odd), .steps > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 62rem) {
  .grid.cols-3 { grid-template-columns: repeat(6, 1fr); }
  .grid.cols-3 > * { grid-column: span 2; }
  .grid.cols-3 > :nth-child(3n+1):nth-last-child(2), .grid.cols-3 > :nth-child(3n+1):nth-last-child(2) ~ *,
  .grid.cols-3 > :nth-child(3n+1):nth-last-child(4), .grid.cols-3 > :nth-child(3n+1):nth-last-child(4) ~ * { grid-column: span 3; }
  .grid.cols-3 > :first-child:last-child { grid-column: 1 / -1; }
}

.card { display: flex; flex-direction: column; padding: 1.25rem 1.375rem 1.375rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--sheet); }
.grid > .card:not(.member)::before { counter-increment: card; content: counter(section, decimal-leading-zero) "." counter(card); margin-bottom: 0.75rem; color: var(--muted); font: 500 0.75rem/1 var(--mono); letter-spacing: 0.04em; }
.card h3, .card h4 { margin: 0; font-weight: 650; font-size: 1.1875rem; line-height: 1.22; letter-spacing: -0.015em; }
.card p { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }
.card .where { margin-top: auto; padding-top: 0.875rem; color: var(--ink); font: 500 0.78125rem/1.5 var(--mono); }
/* «с чем приходят»: не карточки, а список замечаний на полях */
.tasks { gap: 0 2rem; }
.tasks > .card { padding: 1.125rem 0 1.75rem; border: 0; border-top: 1.5px solid var(--ink); border-radius: 0; background: none; }
.tasks > .card:not(.member)::before { color: var(--pen); }

/* цифры */
.numbers { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .numbers { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); } }
.numbers dt { font-weight: 650; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; }
.numbers dd { margin-top: 0.5rem; color: var(--muted); }

/* кейсы */
.case h3 { font-size: 1.3125rem; }
.case dl { margin-top: 1rem; }
.case dt { margin-top: 0.875rem; color: var(--muted); font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.case dd { margin-top: 0.125rem; }
.case .metrics { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.125rem; padding-top: 1rem; border-top: 1px dashed var(--field); }
.case .metrics b { display: block; font-weight: 650; font-size: 1.5rem; line-height: 1.1; }
.case .metrics span { color: var(--muted); font-size: 0.875rem; }
.case .found { display: grid; gap: 0.375rem; margin-top: 0.25rem; }
.case .found li { position: relative; padding-left: 1.375rem; }
.case .found li::before { content: "—"; position: absolute; left: 0; color: var(--pen); }
.case .case-link { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--field); color: var(--ink); font-weight: 500; }
.case .case-link a { display: inline-block; padding: 0.5rem 0; }
/* один кейс — не на всю ширину, чтобы строки читались */
.grid:has(> .case:only-child) { grid-template-columns: minmax(0, 48rem); }

/* аудит + контакты */
.split { display: grid; gap: 2.25rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.split .section-head { margin-bottom: 0; }
.ticks { margin-top: 1.25rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li + li { margin-top: 0.375rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2rem; height: 1.2rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 11c2 2 3 4 4 6C9 11 13 6 18 3' fill='none' stroke='%23C22E1A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.contact-lines { margin-top: 1.5rem; font-weight: 550; font-size: 1.1875rem; line-height: 1.4; }
.contact-lines a { display: inline-block; padding: 0.4rem 0; }

/* формы: лист поверх листа */
.lead-form { position: relative; display: grid; gap: 0.875rem; padding: 1.5rem; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--sheet); }
.lead-form::before { content: ""; position: absolute; inset: 0.5rem -0.5rem -0.5rem 0.5rem; z-index: -1; border: 1px solid var(--field); border-radius: 3px; background: var(--paper); }
.split { isolation: isolate; }
.lead-form label { display: grid; gap: 0.3rem; font-size: 0.9375rem; color: var(--muted); }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--field);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.4 var(--sans);
}
.lead-form textarea { resize: vertical; min-height: 5.5rem; }
.lead-form select { appearance: none; padding-right: 2.25rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.125rem) 50%, calc(100% - 0.75rem) 50%; background-size: 0.375rem 0.375rem; background-repeat: no-repeat; }
.lead-form select:invalid { color: var(--muted); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); box-shadow: 0 0 0 4px var(--marker); }
.lead-form .check { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; font-size: 0.875rem; line-height: 1.45; }
.lead-form .check input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--ink); }
.lead-form .btn { justify-self: start; }
@media (max-width: 30rem) { .lead-form .btn { justify-self: stretch; } }
.lead-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9375rem; }
.form-status:empty { height: 0; margin-top: -0.875rem; }
.form-status.is-ok { padding: 0.75rem 1rem; border-left: 3px solid var(--ink); background: var(--marker); color: var(--ink); font-weight: 600; }
.form-status.is-error { color: var(--error); }
.form-alt { color: var(--muted); font-size: 0.875rem; }
.form-alt a { display: inline-block; padding: 0.75rem 0; margin: -0.75rem 0; }
.form-done { align-content: center; min-height: 12rem; }
.form-done p { padding: 0.875rem 1rem; border-left: 3px solid var(--ink); background: var(--marker); color: var(--ink); font-weight: 600; }
.cta-card .direct { color: var(--muted); font-size: 0.875rem; }
.cta-card .direct a { display: inline-block; padding: 0.5rem 0; }
.consent-note { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.consent-note a { display: inline-block; padding: 0.75rem 0; margin: -0.75rem 0; }

/* кнопка Telegram вместо формы */
.cta-card { justify-items: start; gap: 1rem; padding: 1.75rem 1.5rem; }
.cta-card p { color: var(--muted); }
.cta-card .handle { color: var(--ink); font: 500 1rem/1.3 var(--mono); }
.cta-card .handle a { display: inline-block; padding: 0.5rem 0; }
.book-call { margin-top: 1.25rem; }
.btn-icon { gap: 0.5rem; white-space: nowrap; }
.btn-icon svg { flex: none; }
@media (max-width: 30rem) { .cta-card .btn { align-self: stretch; justify-self: stretch; padding-inline: 0.5rem; } }
@media (max-width: 22.5rem) { .cta-card .btn { gap: 0.375rem; font-size: 0.9375rem; white-space: normal; text-align: center; } }

/* шаги: линейка с отметками */
.steps { display: grid; gap: 1.75rem 0; counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; counter-increment: step; padding: 1.125rem 1.25rem 0 0; border-top: 1.5px solid var(--ink); }
.steps li::before { content: counter(step); display: block; color: var(--pen); font: 650 clamp(3rem, 2.4rem + 2vw, 4.25rem)/0.9 var(--sans); letter-spacing: -0.05em; font-variant-numeric: lining-nums; }
.steps li::after { content: ""; position: absolute; left: 0; top: -0.4375rem; width: 1.5px; height: 0.8125rem; background: var(--ink); }
.steps h3 { margin-top: 0.625rem; font-weight: 650; font-size: 1.1875rem; line-height: 1.22; letter-spacing: -0.015em; }
.steps p { margin-top: 0.375rem; color: var(--muted); font-size: 0.9375rem; }

/* вопросы */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0.875rem 0; font-weight: 600; font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; flex: none; width: 1.75rem; height: 1.75rem; border: 1px solid var(--ink); border-radius: 50%; font: 500 1.125rem/1.6rem var(--mono); text-align: center; }
.faq details[open] summary::after { content: "−" / ""; background: var(--marker); }
.faq summary:hover::after { background: var(--marker); }
.faq details p { padding: 0 0 1.25rem; color: var(--muted); max-width: 38rem; }

/* команда: место под фото */
.team .member { flex-direction: row; align-items: flex-start; gap: 1.125rem; }
.avatar { flex: none; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border: 1px dashed var(--field); border-radius: 2px; background: repeating-linear-gradient(135deg, transparent 0 7px, var(--grid) 7px 8px) var(--paper); color: var(--muted); font: 500 1.0625rem/1 var(--mono); letter-spacing: 0.06em; object-fit: cover; }
img.avatar { border-style: solid; border-color: var(--ink); background: var(--paper); }
.member-text { min-width: 0; }
.team .role { margin-top: 0.375rem; color: var(--ink); font: 500 0.78125rem/1.5 var(--mono); }
@media (max-width: 24rem) { .avatar { width: 4.5rem; height: 4.5rem; } }

/* подвал */
.site-footer { padding: 1.75rem 0 2.5rem; border-top: 1px solid var(--ink); color: var(--muted); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer .links a { display: inline-block; padding: 0.7rem 0; }
.site-footer .wrap > p:first-child { padding: 0.7rem 0; font: 500 0.8125rem/1.7 var(--mono); }
.site-footer .legal { flex-basis: 100%; }

/* текстовые страницы: лист с красной линией полей */
.prose { max-width: 43rem; padding: clamp(2rem, 6vw, 4rem) 0; }
@media (min-width: 40rem) { .prose { margin-block: clamp(2rem, 5vw, 3.5rem); padding: clamp(2rem, 4vw, 3rem) 2.5rem clamp(2rem, 4vw, 3rem) 3.5rem; border: 1px solid var(--rule); border-radius: 3px; background: linear-gradient(90deg, transparent 2.25rem, #E0998B 2.25rem, #E0998B calc(2.25rem + 1px), transparent calc(2.25rem + 1px)) var(--sheet); } }
.prose h1 { font-weight: 650; font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); line-height: 1.08; letter-spacing: -0.03em; }
.prose h2 { margin-top: 2rem; font-weight: 650; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.015em; }
.prose p, .prose ul { margin-top: 0.875rem; }
.prose ul { padding-left: 1.25rem; list-style: disc; }
.prose li::marker { color: var(--pen); }
.prose li + li { margin-top: 0.25rem; }
.prose .draft { margin-top: 1.5rem; padding: 0.875rem 1rem; border: 1px dashed var(--error); border-radius: 2px; color: var(--error); font-size: 0.9375rem; }
.prose mark { background: none; color: var(--error); }
.prose .actions { margin-top: 2rem; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 20; padding: 0.75rem 1rem; background: var(--ink); color: var(--sheet); }
.skip:focus { left: 0; }

/* ——— добавлено в v4 ——— */

/* меню на телефоне */
.menu { position: relative; }
.menu summary { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--ink); border-radius: 3px; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary, .menu summary:hover { background: var(--marker); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 15rem; padding: 0.375rem 0; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--sheet); box-shadow: 0.375rem 0.375rem 0 var(--ink); }
.menu-panel .nav { display: flex; flex-direction: column; gap: 0; margin: 0; font-size: 0.9375rem; }
.menu-panel a { display: flex; align-items: center; min-height: 2.875rem; padding: 0.5rem 1.125rem; color: var(--ink); text-decoration: none; }
.menu-panel a:hover { background: var(--marker); text-decoration: none; }
.menu-lang { border-top: 1px solid var(--rule); font: 500 0.875rem/1.2 var(--mono); }
@media (min-width: 60rem) { .menu { display: none; } }
@media (max-width: 29.99rem) { .site-header .lang { display: none; } }

/* услуги по группам */
.svc { counter-reset: card; }
.svc-group { display: grid; gap: 1rem; padding: 1.125rem 0 1.75rem; border-top: 1.5px solid var(--ink); }
.svc-group:last-child { padding-bottom: 0; }
.group-title { font: 500 0.875rem/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
.group-title::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.625rem; background: var(--pen); }
.svc-group .grid { counter-reset: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 68rem) { .svc-group .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); } }
.svc-group .grid > * { grid-column: auto !important; }
/* четыре карточки в группе — 2×2, а не 3+1 */
@media (min-width: 68rem) { .svc-group .grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* до широкого экрана: две колонки, нечётная последняя карточка — на всю ширину; семь карточек на широком экране — 3+2+2 */
@media (min-width: 40rem) and (max-width: 67.99rem) {
  .svc-group .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-group .grid > :last-child:nth-child(odd) { grid-column: 1 / -1 !important; }
}
@media (min-width: 68rem) {
  .svc-group .grid:has(> :nth-child(7):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .svc-group .grid:has(> :nth-child(7):last-child) > * { grid-column: span 3 !important; }
  .svc-group .grid:has(> :nth-child(7):last-child) > :nth-child(-n+3) { grid-column: span 2 !important; }
}
@media (min-width: 62rem) { .svc-group { grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; } }

/* тёмный блок вокруг формы разбора */
.section-dark { border-top: 0; background: var(--ink); color: var(--sheet); }
.section-dark + .section { border-top: 0; }
.section-dark .section-head .label { color: #C9C6BB; }
.section-dark .section-head .label::before { background: var(--marker); color: var(--ink); }
.section-dark .section-head p { color: #C9C6BB; }
.section-dark .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 11c2 2 3 4 4 6C9 11 13 6 18 3' fill='none' stroke='%23FFE04A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.section-dark .lead-form { border-color: var(--sheet); color: var(--ink); }
.section-dark .lead-form::before { border-color: #8D8A80; background: #2A2D34; }
.section-dark :focus-visible { outline-color: var(--marker); box-shadow: none; }
.section-dark .lead-form :focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 3px var(--marker); }

/* пример разбора: размеченный документ */
.doc { position: relative; max-width: 58rem; padding: 1.25rem 1.25rem 1.5rem; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--sheet); box-shadow: 0.5rem 0.5rem 0 var(--grid); }
.doc-stamp { display: inline-block; margin-top: 1.125rem; padding: 0.375rem 0.75rem; border: 1.5px solid var(--pen); border-radius: 2px; color: var(--pen); font: 500 0.875rem/1.4 var(--mono); transform: rotate(-0.6deg); }
.doc-brand { margin-top: 1.125rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--field); font-size: 1.0625rem; }
.doc-brand b { font: 500 0.8125rem/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-right: 0.375rem; }
.doc h3 { margin-top: 1.5rem; font-weight: 650; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; }
.doc-saw { margin-top: 0.5rem; counter-reset: saw; }
.doc-saw li { position: relative; counter-increment: saw; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.125rem 0.75rem; padding: 0.875rem 0; border-bottom: 1px solid var(--rule); }
.doc-saw li::before { content: counter(saw); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1.5px solid var(--pen); border-radius: 50%; color: var(--pen); font: 500 0.875rem/1 var(--mono); }
.doc-saw p { color: var(--muted); }
.doc-saw b { color: var(--ink); font-weight: 650; background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 94%, transparent 94%); }
.doc-saw .hand { grid-column: 2; justify-self: start; transform: rotate(-2deg); white-space: nowrap; font-size: 1.25rem; }
.doc-saw .hand::before { content: "← "; font-family: var(--sans); font-weight: 400; }
.doc-test { margin-top: 0.75rem; }
.doc-test li { position: relative; padding-left: 1.75rem; }
.doc-test li + li { margin-top: 0.4375rem; }
.doc-test li::before { content: "—"; position: absolute; left: 0; color: var(--pen); font-weight: 650; }
.doc-foot { margin-top: 1.5rem; padding-top: 0.875rem; border-top: 1px dashed var(--field); color: var(--muted); font: 500 0.8125rem/1.6 var(--mono); }
@media (min-width: 48rem) {
  .doc { padding: 1.75rem 2.25rem 2rem; }
  .doc-saw li { grid-template-columns: 2rem minmax(0, 1fr) 10.5rem; align-items: center; }
  .doc-saw .hand { grid-column: 3; font-size: 1.4375rem; }
  .doc-saw li:nth-child(even) .hand { transform: rotate(1.5deg); }
}

/* крупный логотип в подвале */
.site-footer { padding-top: 0; overflow: hidden; }
.site-footer .footer-logo-wrap { display: block; }
.footer-logo { padding: clamp(1.5rem, 4vw, 3rem) 0 0.5rem; font-weight: 700; font-size: clamp(5.5rem, 24vw, 19rem); line-height: 0.82; letter-spacing: -0.06em; color: var(--ink); white-space: nowrap; }
.footer-logo span { color: var(--pen); }
