/* officeforge.ru — дизайн-система «Производственный плакат».
   Три краски на серой бумаге: чёрная тушь, плакатный красно-оранжевый (наследник ember
   officeforge.co), чертёжная синяя. Плоские заливки, диагональные срезы, крупные цифры.
   Шрифты self-hosted (OFL): Unbounded (дисплей/цифры), Golos Text (текст), PT Mono (коды, часы, суммы). */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/unbounded-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/golos-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/assets/fonts/golos-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ptmono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ptmono-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #e6e7e1;
  --paper-2: #f3f3ee;
  --ink: #14130f;
  --ink-2: #2b2a25;
  --ink-soft: #5a5952;
  --rule: #b9bab2;
  --rule-soft: #cfd0c8;
  --red: #e3461a;
  --red-deep: #b8330f;
  --red-tint: #f6d6cb;
  --blue: #1e3f7b;
  --blue-deep: #15305f;
  --blue-tint: #d5deee;
  --green: #1f6b3a;
  --display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Golos Text", "PT Sans", "Segoe UI", Arial, sans-serif;
  --mono: "PT Mono", "Courier New", Consolas, monospace;
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --cut: clamp(22px, 3.5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul.plain, ol.plain { padding: 0; list-style: none; }
strong, b { font-weight: 700; }
small { font-size: 14px; }
::selection { background: var(--red); color: var(--paper-2); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper-2); }
.skip:focus { left: 8px; }

/* ---------- сетка ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.wrap-text { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid-4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.end { align-items: end; }
.center { align-items: center; }
.stack > * + * { margin-top: var(--stack, 16px); }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }

/* ---------- типографика ---------- */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
h1, h2 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(38px, 6.2vw, 82px); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-family: var(--text); font-size: clamp(20px, 2vw, 25px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h4 { font-family: var(--text); font-size: 18px; font-weight: 700; line-height: 1.3; }
.h-sub { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34em; text-wrap: pretty; }
.measure { max-width: 62ch; text-wrap: pretty; }
.soft { color: var(--ink-soft); }
.mono { font-family: var(--mono); font-size: .94em; letter-spacing: 0; }
.num { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.cap { font-family: var(--text); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1.5px solid currentColor; font-family: var(--mono); font-size: 13px; line-height: 1.2; }
.tag-fill { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.tag-red { background: var(--red); color: var(--ink); border-color: var(--red); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 26px;
  background: var(--ink); color: var(--paper-2);
  border: 2px solid var(--ink); border-radius: 0;
  font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .arrow { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn-red:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.btn-paper { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn-paper:hover { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.link-arrow .arrow { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .arrow { transform: translate(4px, -4px); }

/* ---------- поля (плакатные заливки) ---------- */
.field { position: relative; }
.field-ink { background: var(--ink); color: var(--paper-2); }
.field-red { background: var(--red); color: var(--ink); }
.field-blue { background: var(--blue); color: var(--paper-2); }
.field-paper { background: var(--paper-2); color: var(--ink); }
.field-ink a:hover, .field-blue a:hover { color: var(--red); }
.field-ink .soft, .field-blue .soft { color: #c9cac0; }
.field-red .soft { color: #4a1a0b; }
.field-ink ::selection, .field-blue ::selection { background: var(--red); color: var(--ink); }
.field-red ::selection { background: var(--ink); color: var(--paper-2); }
/* диагональные срезы: верх и низ секции режутся как плакатный клин */
.cut-top { padding-top: calc(var(--cut) + 16px); clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(-1 * var(--cut)); }
.cut-bottom { padding-bottom: calc(var(--cut) + 16px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--cut))); }
.cut-top.cut-bottom { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 calc(100% - var(--cut))); }
.cut-top-r { padding-top: calc(var(--cut) + 16px); clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); margin-top: calc(-1 * var(--cut)); }
.cut-bottom-r { padding-bottom: calc(var(--cut) + 16px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.cut-top-r.cut-bottom { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 calc(100% - var(--cut))); }
.cut-top.cut-bottom-r { clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(44px, 6vw, 80px); }
.section-head { margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.field-ink .rule, .field-blue .rule { background: #3a3934; }
.field-red .rule { background: #8e2c10; }

/* ---------- шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -.03em; text-decoration: none; }
.brand em { font-style: normal; color: var(--red); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu-head { display: none; }
.nav-links a { padding: 10px 12px; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--red-deep); }
body[data-page="services"] .nav-links a[data-nav="services"],
body[data-page="process"] .nav-links a[data-nav="process"],
body[data-page="prices"] .nav-links a[data-nav="prices"],
body[data-page="cases"] .nav-links a[data-nav="cases"],
body[data-page="about"] .nav-links a[data-nav="about"] { border-bottom-color: var(--red); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; padding: 0; border: 2px solid var(--ink); background: transparent; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .x { display: none; }
.nav-open .nav-toggle .x { display: block; } .nav-open .nav-toggle .bars { display: none; }

/* ---------- герой ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(56px, 8vw, 120px); }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 26px; }
.hero .actions { margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 15px; color: var(--ink-soft); }
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts .dot { width: 10px; height: 10px; background: var(--red); flex: none; }
.hero-stamp { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border: 2px solid var(--ink); font-family: var(--mono); font-size: 13.5px; line-height: 1.2; }
.hero-stamp i { width: 12px; height: 12px; background: var(--red); display: block; }

/* лист журнала — фирменный артефакт */
.sheet { background: var(--ink); color: var(--paper-2); padding: clamp(18px, 2.4vw, 30px); position: relative; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1.5px solid #3a3934; }
.sheet-head b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.sheet-head span { font-family: var(--mono); font-size: 13px; color: #b7b8ae; }
.sheet-rows { font-family: var(--mono); font-size: 13.5px; line-height: 1.4; }
.sheet-row { display: grid; grid-template-columns: 52px 52px 44px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #2e2d28; align-items: start; }
.sheet-row .d { color: #b7b8ae; } .sheet-row .c { color: var(--red); } .sheet-row .h { text-align: right; }
.sheet-row .w { font-family: var(--text); font-size: 14px; line-height: 1.4; }
.sheet-row .w small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 12px; color: #9b9c92; }
.sheet-total { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: end; padding-top: 16px; }
.sheet-total .num { font-size: 34px; color: var(--paper-2); }
.sheet-total small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: #b7b8ae; }
.sheet-note { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: #8d8e85; }
.stamp { align-self: center; transform: rotate(-8deg); padding: 7px 12px; border: 2.5px solid var(--red); color: var(--red); font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }

/* ---------- лента-лозунг ---------- */
.slogan { padding-block: clamp(28px, 4vw, 52px); }
.slogan p { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3.1vw, 40px); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.slogan-row { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-top: 18px; font-family: var(--mono); font-size: 14px; }

/* ---------- реестр (список-ведомость) ---------- */
.ledger { border-top: 1.5px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: clamp(16px, 3vw, 40px); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.ledger-row h3 { display: flex; gap: 14px; align-items: flex-start; }
.ledger-row h3 .arrow { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--red); }
.ledger-row p { color: var(--ink-2); }
.ledger-row .codes { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); line-height: 1.7; text-align: right; }
.ledger-row .codes b { display: block; color: var(--ink); font-weight: 400; }
.ledger-row a.link-arrow { margin-top: 10px; }
.field-ink .ledger { border-top-color: var(--paper-2); } .field-ink .ledger-row { border-bottom-color: #3a3934; } .field-ink .ledger-row p { color: #d6d7ce; } .field-ink .ledger-row .codes { color: #b7b8ae; } .field-ink .ledger-row .codes b { color: var(--paper-2); }

/* ---------- плиты с цифрами (ставка/факты) ---------- */
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.plates-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plate { background: var(--paper-2); padding: 22px 20px 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.plate .num { font-size: clamp(28px, 3.2vw, 42px); }
.plate p { font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.plate-red { background: var(--red); } .plate-red p { color: var(--ink); }
.plate-ink { background: var(--ink); color: var(--paper-2); } .plate-ink p { color: #d6d7ce; }
.field-ink .plates { background: #3a3934; border-color: #3a3934; }

/* ---------- шаги (лестница) ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.step { background: var(--paper-2); padding: 20px 18px 22px; min-height: 230px; display: grid; grid-template-rows: auto 1fr; gap: 16px; border-top: 3px solid var(--ink); }
.step .num { font-size: 30px; color: var(--red); }
.step h3 { font-size: 18px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.steps-stair .step:nth-child(2) { margin-top: 14px; } .steps-stair .step:nth-child(3) { margin-top: 28px; } .steps-stair .step:nth-child(4) { margin-top: 42px; } .steps-stair .step:nth-child(5) { margin-top: 56px; } .steps-stair .step:nth-child(6) { margin-top: 70px; }
.steps-stair .step:nth-child(6) { background: var(--red); border-top-color: var(--red); } .steps-stair .step:nth-child(6) .num { color: var(--ink); }

/* ---------- таблица прайса ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--paper-2); }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.table th { background: var(--ink); color: var(--paper-2); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #ece8e3; }
.table td.code, .table td.rate { font-family: var(--mono); white-space: nowrap; }
.table td.code { color: var(--red-deep); width: 84px; }
.table td.rate { text-align: right; width: 130px; font-size: 16px; }
.table td.group { background: var(--paper); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.table tr.hi td { background: var(--red-tint); }

/* ---------- карточки-плиты услуг ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.tile { background: var(--paper-2); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; text-decoration: none; color: var(--ink); transition: background .22s var(--ease); }
.tile:hover { background: var(--red); color: var(--ink); }
.tile .codes { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.tile:hover .codes { color: #4a1a0b; }
.tile h3 { font-size: 20px; }
.tile p { font-size: 15px; color: var(--ink-2); flex: 1; }
.tile:hover p { color: var(--ink); }
.tile .link-arrow { font-size: 15px; }

/* ---------- двухколоночные аргументы ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.pair > div { padding: clamp(22px, 3vw, 36px); background: var(--paper-2); }
.pair > div + div { background: var(--ink); color: var(--paper-2); }
.pair h3 { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); font-weight: 700; }
.pair ul { margin-top: 18px; display: grid; gap: 10px; }
.pair li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.pair li .arrow { width: 18px; height: 18px; margin-top: 5px; color: var(--red); }
.pair > div + div li .arrow { color: var(--red); }
.pair p.soft { margin-top: 10px; }

/* ---------- список со стрелками ---------- */
.marks { display: grid; gap: 12px; }
.marks li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; }
.marks .arrow { width: 20px; height: 20px; margin-top: 5px; color: var(--red); }
.marks b { display: block; }

/* ---------- хронология кейса ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--red); }
.timeline > div { padding: 20px 18px 0 0; position: relative; }
.timeline > div::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--red); }
.timeline .mono { display: block; color: var(--red); font-size: 14px; }
.timeline b { display: block; margin-top: 8px; font-size: 18px; }
.timeline p { margin-top: 6px; font-size: 14.5px; color: #d6d7ce; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: #3a3934; border: 2px solid #3a3934; }
.facts > div { background: var(--ink); padding: 22px 20px; }
.facts .num { font-size: clamp(30px, 3.4vw, 44px); color: var(--red); }
.facts p { margin-top: 10px; font-size: 14.5px; color: #d6d7ce; }

/* ---------- вопросы ---------- */
.grid-4-8 > div:first-child h2 { font-size: clamp(26px, 3vw, 40px); }
.grid-5-7 > div:first-child h2 { font-size: clamp(26px, 3.4vw, 46px); }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: grid; grid-template-columns: 1fr 28px; gap: 20px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; border: 2px solid var(--ink); display: grid; place-items: center; transition: transform .25s var(--ease), background .25s var(--ease); }
.faq summary .plus::before { content: ""; width: 12px; height: 2px; background: currentColor; position: absolute; }
.faq summary .plus::after { content: ""; width: 2px; height: 12px; background: currentColor; position: absolute; transition: transform .25s var(--ease); }
.faq summary .plus { position: relative; }
.faq details[open] summary .plus { background: var(--red); border-color: var(--red); }
.faq details[open] summary .plus::after { transform: rotate(90deg); }
.faq details > div { padding: 0 60px 24px 0; color: var(--ink-2); max-width: 70ch; }
.faq details > div p + p { margin-top: 10px; }

/* ---------- форма заявки ---------- */
.lead-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contacts-list { display: grid; gap: 10px; margin-top: 26px; font-size: 18px; }
.contacts-list a { text-decoration: none; font-weight: 700; display: inline-flex; gap: 12px; align-items: center; }
.contacts-list .cap { display: block; color: #b7b8ae; margin-bottom: 2px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(20px, 3vw, 32px); background: var(--paper-2); color: var(--ink); }
.form .wide { grid-column: 1 / -1; }
.form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.form label .opt { font-weight: 400; color: var(--ink-soft); }
.form input, .form textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); outline: none; transition: box-shadow .2s var(--ease); }
.form input::placeholder, .form textarea::placeholder { color: #7a7972; }
.form input:focus, .form textarea:focus { box-shadow: 0 0 0 3px var(--red); }
.form textarea { min-height: 132px; resize: vertical; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; font-size: 13.5px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; min-height: 22px; font-size: 14px; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red-deep); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.form-foot small { color: var(--ink-soft); max-width: 40ch; }

/* ---------- внутренние страницы ---------- */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 72px); border-bottom: 1.5px solid var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--red-deep); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.page-head h1 { font-size: clamp(34px, 5.2vw, 68px); }
.page-head .lead { margin-top: 22px; }
.page-head .actions { margin-top: 30px; }
.page-head .aside { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--ink-soft); padding-top: 10px; border-top: 1.5px solid var(--ink); }
.page-head .aside b { color: var(--ink); font-weight: 400; }

.prose { max-width: 70ch; text-wrap: pretty; }
.prose h2 { font-size: clamp(24px, 2.8vw, 34px); margin-top: 48px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 10px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin-top: 12px; }
.prose li + li { margin-top: 6px; }
.prose a { font-weight: 600; }

.callout { padding: clamp(20px, 3vw, 30px); background: var(--red); color: var(--ink); }
.callout-ink { background: var(--ink); color: var(--paper-2); }
.callout-blue { background: var(--blue); color: var(--paper-2); }
.callout h3 { font-family: var(--display); font-size: clamp(19px, 2vw, 24px); }
.callout p { margin-top: 10px; }
.callout .actions { margin-top: 18px; }

.cta-band { padding-block: clamp(56px, 8vw, 110px); }
.cta-band h2 { max-width: 16ch; }
.cta-band .lead { margin-top: 20px; max-width: 40em; }
.cta-band .actions { margin-top: 30px; }

/* ---------- подвал ---------- */
.site-footer { background: var(--ink); color: var(--paper-2); padding: clamp(48px, 6vw, 80px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.footer-grid p { color: #c9cac0; max-width: 36ch; margin-top: 14px; font-size: 15px; }
.footer-grid .footer-heading { max-width: none; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b7b8ae; }
.footer-grid .footer-heading-spaced { margin-top: 26px; }
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid li a { text-decoration: none; font-size: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(32px, 4vw, 56px); padding-top: 22px; border-top: 1px solid #3a3934; font-family: var(--mono); font-size: 12.5px; color: #9b9c92; }
.footer-bottom a { text-decoration: none; }

/* ---------- 404 / юридические ---------- */
.legal { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 120px); }
.legal h1 { font-size: clamp(30px, 4.2vw, 52px); }
.legal .rev { margin-top: 14px; font-family: var(--mono); font-size: 14px; color: var(--ink-soft); }
.legal h2 { font-family: var(--text); font-size: 21px; margin-top: 36px; margin-bottom: 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.not-found .num { font-size: clamp(90px, 18vw, 200px); color: var(--red); }
.not-found h1 { margin-top: 16px; font-size: clamp(26px, 3.5vw, 40px); }
.not-found p { margin: 14px auto 28px; max-width: 40ch; }

/* ---------- появление (одно авторское движение: срез наезжает) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-wipe { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease); }
.reveal-wipe.in { clip-path: inset(0 0 0 0); }
html.no-js .reveal, html.no-js .reveal-wipe { opacity: 1; transform: none; clip-path: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-stair .step { margin-top: 0 !important; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2 / -1; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-open .nav-toggle { background: var(--red); }
  .nav-open .nav-links {
    display: grid; position: fixed; inset: 72px 0 0; z-index: 55;
    background: var(--paper-2); padding: 22px var(--gutter) max(32px, env(safe-area-inset-bottom));
    align-content: start; gap: 0; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    box-shadow: inset 6px 0 0 var(--red);
  }
  .nav-open .nav-menu-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 4px 12px; border-bottom: 2px solid var(--ink);
    color: var(--ink-soft); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  }
  .nav-open .nav-links a {
    display: flex; align-items: center; min-height: 58px; padding: 13px 4px;
    border-bottom: 1px solid var(--rule); color: var(--ink);
    font-family: var(--display); font-weight: 700; font-size: clamp(22px, 5.8vw, 32px); line-height: 1.12;
    transition: padding-left .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  }
  .nav-open .nav-links a:hover, .nav-open .nav-links a:focus-visible { padding-left: 12px; background: var(--red-tint); color: var(--ink); }
  .nav-open .nav-links .nav-cta {
    display: inline-flex; width: 100%; min-height: 56px; margin: 24px 0 0; padding: 0 20px;
    justify-content: center; justify-self: stretch; background: var(--red); color: var(--ink);
    border: 2px solid var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.1;
  }
  .nav-open .nav-links .nav-cta:hover, .nav-open .nav-links .nav-cta:focus-visible { padding-left: 20px; background: var(--paper-2); color: var(--ink); }
  .nav-open { overflow: hidden; overscroll-behavior: none; }
  .grid-2, .grid-3, .grid-7-5, .grid-5-7, .grid-4-8, .lead-block, .pair { grid-template-columns: minmax(0, 1fr); }
  .ledger-row { grid-template-columns: 1fr; gap: 10px; }
  .ledger-row .codes { text-align: left; }
  .ledger-row .codes b { display: inline; margin-right: 10px; }
  .facts { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .section { padding-block: clamp(56px, 8vw, 96px); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(28px, 8.7vw, 40px); line-height: 1.06; }
  h2 { font-size: clamp(25px, 7.8vw, 34px); line-height: 1.08; }
  h1, h2 { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
  .lead { font-size: 17px; line-height: 1.5; }
  .nav { min-height: 64px; } .nav-open .nav-links { inset: 64px 0 0; }
  .brand { font-size: 20px; } .brand-mark { width: 30px; height: 30px; }
  .actions { gap: 10px; }
  .actions .btn { width: 100%; padding-inline: 18px; white-space: normal; text-align: center; }
  .plates, .plates-2, .tiles, .steps { grid-template-columns: 1fr; }
  .plate { min-height: 0; }
  .step { min-height: 0; }
  .tile { min-height: 0; padding: 21px 18px 23px; }
  .sheet-row { grid-template-columns: 46px 46px 1fr; }
  .sheet-row .h { grid-column: 3; text-align: left; display: none; }
  .sheet-row .w { grid-column: 1 / -1; }
  .sheet-row .w::before { content: attr(data-h); font-family: var(--mono); color: #b7b8ae; margin-right: 10px; }
  .sheet-total { grid-template-columns: 1fr auto; } .stamp { display: none; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:last-child { grid-column: auto; }
  .faq summary { font-size: 17px; }
  .faq details > div { padding-right: 0; }
  .page-head { padding-block: 32px 40px; }
  .page-head h1 { font-size: clamp(23px, 7.2vw, 34px); line-height: 1.08; }
  .page-head .lead { margin-top: 18px; }
  .page-head .actions { margin-top: 24px; }
  .crumbs { margin-bottom: 16px; }
  .table-wrap { width: 100%; max-width: 100%; overflow-x: hidden; }
  .table, .table tbody { display: block; width: 100%; min-width: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table tbody tr { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px; border-bottom: 1px solid var(--rule-soft); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: break-word; }
  .table td.code { grid-column: 1; width: auto; font-size: 13px; }
  .table td.rate { grid-column: 2; grid-row: 1 / span 2; width: auto; text-align: right; align-self: start; }
  .table td:not(.code):not(.rate):not(.group) { grid-column: 1; }
  .table td.group { grid-column: 1 / -1; }
  .table tbody tr:hover td { background: transparent; }
  .table tbody tr:hover { background: #ece8e3; }
  .contacts-list { min-width: 0; }
  .contacts-list a { max-width: 100%; overflow-wrap: anywhere; }
  .form { padding: 18px; }
  .section-head { margin-bottom: 30px; }
  .mt-3 { margin-top: 32px; }
  .mt-4 { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal, .reveal-wipe { opacity: 1; transform: none; clip-path: none; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .btn, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .field-ink, .field-red, .field-blue { background: #fff !important; color: #000 !important; clip-path: none !important; }
}
