/*
Theme Name: АСУ метрология сервис
Theme URI: https://asums.ru/
Author: ООО «АСУ метрология сервис»
Description: Тема сайта asums.ru. Классическая, без Elementor. Рассчитана на WordPress 6.0 и PHP 7.3.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.3
Text Domain: asums
*/

@import url("assets/fonts/fonts.css");

/* Graph-paper world: every block snaps to a visible teal grid. One accent: brand teal. Sharp corners. */
:root {
  --cell: 24px;
  --paper: #fbfdfd;
  --paper-2: #f1f7f9;
  --grid: #dcebef;
  --rule: #9fc6d2;
  --ink: #10232b;
  --ink-2: #3b535d;
  --ink-3: #5d737c;
  --teal: #0a7aa2;
  --teal-deep: #075a78;
  --teal-ink: #064a62;
  --teal-wash: #e2f1f5;
  --white: #ffffff;
  --error: #b3261e;
  --display: "Tektur", "Arial Narrow", sans-serif;
  --text: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 240ms;
  --wrap: 1392px;
  --gut: calc(var(--cell) * 2);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: -1px -1px;
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--teal); color: var(--white); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
input, textarea, select { caret-color: var(--teal); }
html { scrollbar-color: var(--rule) var(--paper); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 3px solid var(--paper); }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

.skip {
  position: absolute; left: var(--cell); top: -100px; z-index: 30;
  background: var(--teal); color: var(--white); padding: 12px 20px; font-weight: 600;
}
.skip:focus { top: var(--cell); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Type ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  color: var(--ink);
}
.h1 { font-size: clamp(2.25rem, 0.7rem + 4.7vw, 5.25rem); }
.h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.h2--sm { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.h3 { font-family: var(--text); font-weight: 650; font-size: 1.3125rem; line-height: 1.22; letter-spacing: -0.005em; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.body { max-width: 56ch; color: var(--ink-2); }
.body > * + * { margin-top: 0.9em; }
.num { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 100; text-transform: uppercase; }
.muted { color: var(--ink-3); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: var(--cell); height: 64px; }
.top .brand small { display: none; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; }
.brand b { font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; font-variation-settings: "wdth" 100; }
.brand small { display: block; font: 400 0.75rem/1.2 var(--text); color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
}
.nav a:hover { color: var(--teal-deep); background: var(--teal-wash); }
.nav a[aria-current="page"] { color: var(--white); background: var(--teal); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 18px; }
.top .btn { flex: none; }
.phone { text-transform: uppercase; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; white-space: nowrap; font-variation-settings: "wdth" 100; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

.top.has-primary .top-cta { display: none; }
.top:not(.has-primary) .phone { display: none; }
@media (max-width: 1280px) {
  .menu-toggle { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--grid); font-size: 1.0625rem; }
  .nav a[aria-current="page"] { clip-path: none; padding-left: 12px; }
  .top .btn { display: none; }
}

/* ---------- Buttons: sharp plane, one diagonal ---------- */
.btn {
  --fg: var(--white); --bg: var(--teal); --bd: var(--teal);
  position: relative; display: inline-flex; align-items: center; gap: 28px;
  min-height: 48px; padding: 0 16px 0 20px;
  font: 600 1rem/1.1 var(--text); color: var(--fg); background: var(--bg); border: 1px solid var(--bd);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform 120ms var(--ease);
}
.btn::after {
  content: ""; width: 18px; height: 18px; flex: none;
  background: linear-gradient(to top left, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px));
}
.btn:hover { --bg: var(--teal-deep); --bd: var(--teal-deep); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--line { --fg: var(--ink); --bg: transparent; --bd: var(--ink); }
.btn--line:hover { --bg: var(--ink); --bd: var(--ink); color: var(--white); }
.btn--sm { min-height: 40px; font-size: 0.9375rem; gap: 20px; }
.btn--light { --fg: var(--teal-ink); --bg: var(--white); --bd: var(--white); }
.btn--light:hover { --bg: var(--teal-wash); --bd: var(--teal-wash); color: var(--teal-ink); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--teal-deep); }
.link-arrow svg { width: 20px; height: 20px; transition: transform var(--t) var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- Cell grid: hairline-ruled cells ---------- */
.cells { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cells > * { background: var(--paper); }
.cell { position: relative; padding: var(--cell); }
.dots { position: relative; isolation: isolate; background-color: var(--paper); }
.dots::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, var(--rule) 1.1px, transparent 1.4px);
  background-size: 12px 12px; background-position: 6px 6px;
}

/* Signature: a cell lights from inside and the diagonal is drawn across it */
.lit { position: relative; isolation: isolate; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.lit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top left, transparent calc(50% - 0.75px), var(--teal) calc(50% - 0.75px), var(--teal) calc(50% + 0.75px), transparent calc(50% + 0.75px));
  clip-path: inset(100% 100% 0 0);
  transition: clip-path var(--t) var(--ease);
}
/* ASUMS_NO_SLASH_V1: в карточках оборудования лежат логотипы
   поставщиков. Диагональ поверх логотипа партнёра читается как
   «мы с ними больше не работаем». */
.brand-cell.lit::after { display: none; }
.lit:hover, .lit:focus-within { background-color: var(--teal-wash); }
.lit:hover::after, .lit:focus-within::after { clip-path: inset(0 0 0 0); }
a.lit { color: inherit; text-decoration: none; display: block; }
a.lit:focus-visible { outline-offset: -3px; }

/* ---------- Sections ---------- */
.section { padding: calc(var(--cell) * 2.5) 0; }
.section--tight { padding: calc(var(--cell) * 3) 0; }
.section-head { margin-bottom: calc(var(--cell) * 2); max-width: 60ch; }
.section-head .lead { margin-top: var(--cell); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--cell) * 3) 0 calc(var(--cell) * 3); border-bottom: 1px solid var(--rule); }
.hero { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); gap: calc(var(--cell) * 2); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: var(--cell); }
.hero-copy .lead { margin-top: calc(var(--cell) * 1.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: calc(var(--cell) * 2); }
.hero-media { display: grid; grid-template-rows: auto auto; gap: var(--cell); }
.disc-frame { position: relative; aspect-ratio: 1; }
.disc { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.disc-frame::before {
  content: ""; position: absolute; inset: -12px; border: 1px solid var(--rule); border-radius: 50%; pointer-events: none;
}
/* ASUMS_NO_SLASH_V1: диагональ через круглую фотографию убрана.
   Полоса поверх портрета читается как траурная лента — в русской
   визуальной культуре это однозначный сигнал, и на страницах
   «О компании» и «Вакансии» с фотографиями людей это недопустимо.
   Мотив «одна диагональ» остаётся на кнопках и текстовых карточках.
   Кольцо вокруг фотографии (::before) сохранено. */
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 14px 16px 16px; }
.fact .num { display: block; font-size: 1.875rem; line-height: 1; color: var(--teal-ink); }
.fact span:last-child { display: block; margin-top: 8px; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }

.hero-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: calc(var(--cell) * 2) 0 0; }
.hero-facts dd { margin: 0; }
.hero-facts .fact:first-child .num { font-size: 1.5rem; padding-top: 0.2rem; }

/* ---------- Brand matrix: category rows, brand cells ---------- */
.matrix { grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 2fr)); }
.matrix-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px; min-height: 104px; }
.matrix-head .go svg { width: 22px; height: 22px; color: var(--teal); }
.matrix-cell { display: grid; place-items: center; padding: 16px; min-height: 104px; text-align: center; }
.matrix-cell img { max-height: 36px; width: auto; max-width: 88%; opacity: 0.85; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.15; text-transform: uppercase; font-variation-settings: "wdth" 100; color: var(--ink); }
.more { font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- Knowledge: one featured article, two follow-ups ---------- */
.featured { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.featured .feat-main { grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: calc(var(--cell) * 1.5); padding: calc(var(--cell) * 1.5); align-items: end; min-height: 320px; }
.featured .feat-main img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.featured h3 { font-family: var(--text); font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
.featured .feat-main h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); }
.featured .feat-side { padding: calc(var(--cell) * 1.25); display: grid; gap: 10px; align-content: start; }
.featured .feat-side h3 { font-size: 1.375rem; }
.featured p { color: var(--ink-2); font-size: 0.9375rem; }
.featured .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-deep); margin-top: 6px; }
.featured .go svg { width: 20px; height: 20px; }

/* ---------- Logo wall ---------- */
.logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.logos li { list-style: none; display: grid; place-items: center; min-height: 96px; padding: 16px; }
.logos img { max-height: 40px; width: auto; max-width: 100%; opacity: 0.82; transition: opacity var(--t) var(--ease); }
.logos li:hover img { opacity: 1; }
.logos-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.logos-caption h2 { font: 600 1rem/1.3 var(--text); color: var(--ink-2); }

/* ---------- Services bento (5 items, 5 cells) ---------- */
.services { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.svc { display: flex; flex-direction: column; gap: 14px; min-height: 240px; padding: calc(var(--cell) * 1.25); }
.svc h3 { max-width: 22ch; }
.svc p { color: var(--ink-2); max-width: 44ch; }
.svc .go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--teal-deep); }
.svc .go svg { width: 22px; height: 22px; }
.svc--main { grid-column: span 7; grid-row: span 2; }
.svc--main .h3 { font-size: 2rem; }
.svc--a { grid-column: span 5; }
.svc--b { grid-column: span 5; }
.svc--c { grid-column: span 6; }
.svc--d { grid-column: span 6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { list-style: none; font-size: 0.875rem; padding: 5px 10px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.svc-media { display: grid; grid-template-columns: 1fr 180px; gap: var(--cell); align-items: end; }
.svc-media img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }

/* ---------- Reference units: spec strip, one row per unit ---------- */
.units { border-top: 2px solid var(--ink); }
.unit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: calc(var(--cell) * 2); padding: calc(var(--cell) * 1.5) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.unit h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 100; }
.unit .kind { margin-top: 10px; color: var(--ink-3); font-size: 0.9375rem; }
.unit dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 0.9375rem; }
.unit dt { color: var(--ink-3); }
.unit dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Two ways: on site vs lab ---------- */
.ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.way { padding: calc(var(--cell) * 2); display: grid; gap: var(--cell); grid-template-columns: minmax(0, 1fr) 160px; align-items: start; }
.way img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.way .num { font-size: clamp(2.5rem, 1.6rem + 2vw, 3.75rem); line-height: 0.9; color: var(--teal); display: block; margin-bottom: 12px; }

/* ---------- Map ---------- */
.map-block { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: calc(var(--cell) * 2); align-items: start; }
.map { position: relative; aspect-ratio: 1216 / 640; }
.map > img { width: 100%; height: 100%; }
.map ul { list-style: none; }
.map li { position: absolute; transform: translate(-4px, -4px); font-size: 0.75rem; line-height: 1; white-space: nowrap; color: var(--ink); font-weight: 500; }
.map li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--ink); vertical-align: -1px; }
.map li.hq { font-weight: 700; font-size: 0.875rem; color: var(--teal-ink); }
.map li.hq::before { width: 12px; height: 12px; background: var(--teal); outline: 3px solid var(--teal-wash); }
.map li.l { transform: translate(calc(-100% + 4px), -4px); }
.map li.l::before { display: none; }
.map li.l::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; background: var(--ink); vertical-align: -1px; }
.cases { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.case { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.case .num { font-size: 1.125rem; color: var(--teal); }
.case h3 { font: 600 1.0625rem/1.35 var(--text); margin: 4px 0 6px; }
.case p { font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Brands ---------- */
.brand-groups { display: grid; gap: calc(var(--cell) * 2); }
.brand-group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: calc(var(--cell) * 2); align-items: start; }
.brand-group h2 { font-size: clamp(1.5rem, 1rem + 1.1vw, 2rem); hyphens: auto; overflow-wrap: break-word; }
.brand-group > p { grid-column: 1; }
.brand-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.brand-cell { display: grid; grid-template-rows: 56px auto; gap: 12px; min-height: 150px; padding: 20px; }
.brand-cell img { max-height: 40px; width: auto; max-width: 70%; align-self: center; }
.brand-cell .wordmark { font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; align-self: center; font-variation-settings: "wdth" 100; line-height: 1.05; }
.brand-cell p { font-size: 0.875rem; color: var(--ink-2); }

/* ---------- Knowledge list ---------- */
.articles { list-style: none; border-top: 2px solid var(--ink); }
.articles li { border-bottom: 1px solid var(--rule); }
.articles a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--cell); align-items: center; padding: 22px 16px 22px 0; }
.articles h3 { font-family: var(--text); font-weight: 650; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; }
.articles p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; max-width: 70ch; }
.articles svg { width: 28px; height: 28px; color: var(--teal); transition: transform var(--t) var(--ease); }
.articles a:hover svg { transform: translate(4px, -4px); }

/* ---------- History ---------- */
.history { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--cell) * 2); align-items: center; }
.archive { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cell); }
.archive img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.archive figure { margin: 0; }
.archive figure:nth-child(2) { margin-top: calc(var(--cell) * 3); }

/* ---------- Request block (one committed colour plane per page) ---------- */
.request { position: relative; isolation: isolate; background: var(--teal); color: var(--white); }
.request::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: var(--cell) var(--cell); background-position: -1px -1px;
}
.request .display { color: var(--white); }
.request-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--cell) * 2); align-items: start; }
.request .lead { color: var(--white); margin-top: var(--cell); }
.request-contacts { margin-top: calc(var(--cell) * 2); display: grid; gap: 10px; font-size: 1rem; }
.request-contacts a { color: var(--white); }
.request-contacts .num { font-size: 1.75rem; color: var(--white); text-decoration: none; }

.form { background: var(--paper); color: var(--ink); border: 1px solid var(--white); }
.form-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); }
.field { position: relative; background: var(--paper); padding: 16px 18px 18px; display: grid; gap: 8px; transition: background-color var(--t) var(--ease); }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.8125rem; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--white);
  border: 1px solid var(--rule); border-radius: 0; padding: 11px 12px; min-height: 46px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field .ok { position: absolute; top: 14px; right: 16px; width: 20px; height: 20px; color: var(--teal); opacity: 0; transform: scale(0.6); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.field.is-done { background: var(--teal-wash); }
.field.is-done .ok { opacity: 1; transform: none; }
/* ASUMS_LIT_FIX_V1: иконка без размеров вылезает за пределы этого квадрата 20×20. */
.field .ok svg { width: 100%; height: 100%; display: block; }
.field.is-error { background: #fbeceb; }
.field .err { display: none; font-size: 0.8125rem; color: var(--error); }
.field.is-error .err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 18px; background: var(--paper); border-top: 1px solid var(--rule); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); max-width: 52ch; }
/* KLMS_A11Y_V1: минимум размера цели в WCAG 2.2 AA — 24px. Чекбокс
   согласия был 20px, ссылки на политики в подвале 21px. */
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--teal); flex: none; }
.form-status { padding: 16px 18px; background: var(--teal-wash); color: var(--teal-ink); font-weight: 600; border-top: 1px solid var(--rule); }
/* KLMS_CRM_FORM_V1 */
.form-status.is-error { background: #fbeceb; color: var(--error); }
/* KLMS_CRM_SENT_V1: сообщение об успехе лежит внутри формы, поэтому
   скрывать форму целиком нельзя — человек увидел бы пустоту вместо
   номера обращения. Убираем только поля. */
.form--sent .form-cells, .form--sent .form-foot, .form--sent .captcha-slot { display: none; }
.form--sent .form-status { border-top: 0; }
/* Поле-приманка: человек его не видит и с клавиатуры не достанет, бот
   заполняет всё подряд. Не display:none — часть ботов такие пропускает,
   а нам нужно, чтобы он его нашёл и выдал себя. */
.decoy { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.captcha-slot { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: calc(var(--cell) * 3) 0 calc(var(--cell) * 2); border-bottom: 1px solid var(--rule); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.875rem; color: var(--ink-3); margin-bottom: calc(var(--cell) * 1.5); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: calc(var(--cell) * 2); align-items: end; }
.page-head .lead { margin-top: var(--cell); }
.page-head .disc-frame { max-width: 320px; justify-self: end; width: 100%; }

/* ---------- Content blocks for inner pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: calc(var(--cell) * 2); align-items: start; }
.split > h2 { position: sticky; top: 88px; }
.kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kinds .cell h3 { margin-bottom: 8px; }
.kinds .cell p { color: var(--ink-2); font-size: 0.9375rem; }
.checklist { list-style: none; display: grid; gap: 10px; max-width: 56ch; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.checklist svg { width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.doc { padding: 18px; display: grid; gap: 12px; align-content: start; }
.doc img { border: 1px solid var(--grid); aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; background: var(--white); }
.doc--wide img { aspect-ratio: 3 / 2; }
.doc b { font-weight: 600; }
.doc span { font-size: 0.875rem; color: var(--ink-3); }
.timeline { list-style: none; border-left: 1px solid var(--rule); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 calc(var(--cell) * 1.25) calc(var(--cell) * 1.25); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; background: var(--paper); border: 2px solid var(--teal); }
.timeline .num { font-size: 1.5rem; color: var(--teal-ink); line-height: 1.1; display: block; }
.timeline p { color: var(--ink-2); max-width: 62ch; margin-top: 4px; }
.people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person { padding: 20px; }
.person b { display: block; font-family: var(--text); font-weight: 650; font-size: 1.0625rem; line-height: 1.3; }
.person span { display: block; color: var(--ink-2); font-size: 0.9375rem; margin: 6px 0 10px; }
.reqs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; font-size: 0.9375rem; margin: 0; }
.reqs dt { color: var(--ink-3); }
.reqs dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Vacancies */
.jobs { border-top: 2px solid var(--ink); }
.job { border-bottom: 1px solid var(--rule); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: var(--cell); align-items: center; padding: 22px 0; }
.job summary::-webkit-details-marker { display: none; }
.job summary h2 { font-family: var(--text); font-weight: 650; font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem); line-height: 1.25; }
.job summary .num { font-size: 1.125rem; color: var(--teal-ink); white-space: nowrap; }
.job summary svg { width: 26px; height: 26px; color: var(--teal); transition: transform var(--t) var(--ease); }
.job[open] summary svg { transform: rotate(45deg); }
.job summary:hover h2 { color: var(--teal-deep); }
.job-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--cell) * 2); padding: 0 0 calc(var(--cell) * 1.5); }
.job-body h3 { font: 600 0.9375rem/1.3 var(--text); margin-bottom: 10px; }
.job-body ul { list-style: none; display: grid; gap: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.job-body li { padding-left: 16px; position: relative; }
.job-body li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--teal); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }

/* Article */
.article { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: calc(var(--cell) * 3); align-items: start; }
.prose { max-width: 58ch; font-size: 1.0625rem; color: var(--ink); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--text); font-weight: 700; font-size: 1.625rem; line-height: 1.25; letter-spacing: -0.01em; margin-top: 2em; }
.prose h3 { font: 600 1.1875rem/1.35 var(--text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.4em; }
.prose li::marker { color: var(--teal); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--rule); vertical-align: top; }
.prose th { background: var(--teal-wash); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.aside { position: sticky; top: 88px; display: grid; gap: var(--cell); }
.aside .cells .cell { padding: 20px; }
.toc { list-style: none; display: grid; gap: 8px; font-size: 0.9375rem; }
.note { padding: 16px 18px; background: var(--teal-wash); border: 1px solid var(--rule); color: var(--ink); font-size: 0.9375rem; }
.draft-flag { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 4px 10px; background: #fff4d6; border: 1px solid #e8c766; color: #5c4400; }

/* Contacts */
.contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid .cell { padding: 22px; display: grid; gap: 8px; align-content: start; }
.contact-grid .num { font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.contact-grid svg { width: 26px; height: 26px; color: var(--teal); }

/* ---------- Footer ---------- */
.foot { border-top: 2px solid var(--ink); padding: calc(var(--cell) * 2.5) 0 calc(var(--cell) * 2); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr); gap: calc(var(--cell) * 1.5); }
.foot h2 { font: 600 0.9375rem/1.3 var(--text); margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; gap: 8px; font-size: 0.9375rem; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--teal-deep); text-decoration: underline; }
.foot .brand { margin-bottom: 14px; }
.foot-legal { margin-top: calc(var(--cell) * 2); padding-top: var(--cell); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.8125rem; color: var(--ink-3); }
.foot-legal a { color: var(--ink-3); display: inline-flex; align-items: center; min-height: 24px; }
/* KLMS_A11Y_V1: адреса в карточках руководства — тоже отдельные цели. */
.person a { display: inline-flex; align-items: center; min-height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-head { grid-column: 1 / -1; min-height: 0; }
  .featured { grid-template-columns: 1fr; }
  .featured .feat-main { grid-row: auto; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--main { grid-column: 1 / -1; grid-row: auto; }
  .svc--a, .svc--b, .svc--c, .svc--d { grid-column: span 1; }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .unit { grid-template-columns: 1fr 1fr; }
  .unit > :last-child { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .brand-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --cell: 20px; --gut: 20px; }
  body { font-size: 16px; }
  .hero-grid, .map-block, .history, .request-grid, .page-head-grid, .split, .article, .brand-group { grid-template-columns: 1fr; }
  .hero-media { grid-template-columns: 1fr; }
  .disc-frame { max-width: 420px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ways, .kinds, .docs, .contact-grid, .job-body { grid-template-columns: 1fr; }
  .way { grid-template-columns: 1fr; padding: var(--cell); }
  .way img { order: -1; width: 128px; }
  .split > h2, .aside { position: static; }
  .page-head .disc-frame { justify-self: start; max-width: 240px; }
  .article .aside { order: -1; }
}
@media (max-width: 600px) {
  .services, .logos, .brand-cells, .people, .form-cells { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .form-cells, .people { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .fact dd { display: grid; grid-template-columns: minmax(96px, auto) 1fr; align-items: center; gap: 14px; }
  .fact span:last-child { margin-top: 0; }
  .featured .feat-main { grid-template-columns: 1fr; }
  .featured .feat-main img { width: 140px; order: -1; }
  .unit { grid-template-columns: 1fr; gap: var(--cell); }
  .svc-media { grid-template-columns: 1fr; }
  .svc-media img { width: 140px; }
  .map li { font-size: 0.6875rem; }
  .map li:not(.hq):not(.keep) { font-size: 0; }
  .job summary { grid-template-columns: minmax(0, 1fr) 28px; }
  .job summary .num { grid-column: 1; grid-row: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

.stack { display: grid; gap: 0; }

/* Figure as the heading itself (no label above a heading) */
.fig-head { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-variation-settings: "wdth" 100; line-height: 1.02; color: var(--ink); }
.fig-head b { display: block; font-weight: 600; font-size: clamp(2.25rem, 1.5rem + 1.8vw, 3.25rem); color: var(--teal); line-height: 0.95; margin-bottom: 8px; }
.fig-head span { display: block; font-size: 1.125rem; letter-spacing: 0.01em; }
.case h3 b { color: var(--teal-deep); font-weight: 650; }
.logos img { max-height: none; }

@media (max-width: 600px) { .top .phone { display: none; } }

@media (max-width: 600px) {
  .matrix-cell .wordmark { font-size: 0.8125rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .brand-cell .wordmark { font-size: 1rem; overflow-wrap: anywhere; }
}

/* Instrument classes: a ruled two-column register, no icon cards */
.si-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--cell) * 2); border-top: 2px solid var(--ink); }
.si-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--cell); padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.si-list b { font-weight: 650; }
.si-list span { color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 860px) { .si-list { grid-template-columns: 1fr; } .si-list li { grid-template-columns: 1fr; gap: 4px; } }
