/* ============================================================
   ARXITEK — «документы и проверки для разработчиков ПО»
   Дизайн-направление 2026-11-16: «протокол».
   Холодная бумага, гротеск Geist, один сине-зелёный акцент,
   волосяные линии, прямые углы, номера и подписи — монопространством.
   Чистый CSS: custom properties + ванильный JS. Без фреймворков.
   Палитра «Морская» (#145C74) выбрана Игорем 16.11.2026. Знак — «Допуск».
   ============================================================ */

:root {
  /* нейтрали — одна температура (холодный сине-серый) */
  --paper: #eef2f4;
  --surface: #f6f9fa;
  --ink: #0b1418;
  --ink-2: #41525a;
  --ink-3: #77888f;
  --line: #cfdbe0;
  --line-2: #dde6ea;

  /* один акцент: морской сине-зелёный */
  --acc: #145c74;
  --acc-2: #0f4557;
  --acc-soft: #d9e4e9;
  --acc-pale: #8fb2be;

  --ok: #145c74;
  --ok-soft: #d9e4e9;

  --r: 2px;

  --font-disp: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --maxw: 1200px;
  --nav-h: 64px;
}

* { 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(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-2); }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--acc); color: #fff; }
strong { color: var(--ink); font-weight: 600; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--acc); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 0; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
h4 { font-size: 16px; letter-spacing: -0.01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); letter-spacing: -0.01em; }
.lead:last-child { margin-bottom: 0; }

p a, .a a, li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(14,79,60,.38); }
p a:hover, .a a:hover, li a:hover { text-decoration-color: var(--acc); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; flex: 0 0 20px; height: 1px; background: var(--acc); opacity: .55;
}
.mono { font-family: var(--font-mono); }
.updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .04em; }

/* ---------- Каркас ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
section { padding: 84px 0; }
.section--tight { padding: 52px 0; }
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--ink-2); font-size: 17.5px; margin-top: 14px; }
.section-head h2 { max-width: 22ch; margin-bottom: 0; }
.section-head.center h2 { margin-left: auto; margin-right: auto; }

/* ---------- Навигация ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(237,236,229,0.92);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.site-nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-weight: 500; font-size: 14px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
/* Знак «Допуск»: уголки проверки + галочка. Уголки — чернила, галочка — акцент.
   Два цвета зашиты в data-URI: меняешь палитру — поменяй %230B1418 и %23145C74 здесь и в /favicon.svg. */
.brand-mark {
  width: 22px; height: 22px; flex: 0 0 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cg stroke='%230B1418' stroke-width='22' fill='none'%3E%3Cpath d='M32 90V32H90'/%3E%3Cpath d='M166 32H224V90'/%3E%3Cpath d='M32 166V224H90'/%3E%3Cpath d='M166 224H224V166'/%3E%3C/g%3E%3Cpath d='M92 130l28 28 46-58' fill='none' stroke='%23145C74' stroke-width='24'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand .brand-name b { font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-2); text-decoration: none;
  position: relative; padding: 6px 0; letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--acc);
}
.nav-cta { margin-left: 4px; }
/* рамка кнопки: .nav-links a перебивает padding .btn — задаём явно */
.nav-links a.nav-cta { padding: 10px 18px; line-height: 1.15; }
/* кнопка в навигации: специфичность .nav-links a не должна съедать белый текст */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus { color: #fff; background: var(--acc); }
.nav-links a.nav-cta:hover { background: var(--acc-2); }
.nav-links a.nav-cta::after { display: none; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: transparent;
  width: 44px; height: 38px; border-radius: var(--r); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 17px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before { content: ''; position: absolute; top: -5.5px; left: 0; }
.nav-toggle span::after { content: ''; position: absolute; top: 5.5px; left: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 15.5px;
  letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: var(--r); cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .08s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); background: var(--surface); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 76px; position: relative; overflow: hidden; }
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; max-width: 14em; }
.hero .lead { max-width: 32em; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-actions:last-child { margin-bottom: 0; }
.hero-mail {
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); letter-spacing: -0.01em;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
}
.hero-mail:hover { color: var(--acc); text-decoration-color: var(--acc); }

/* правый блок героя — лист документа с печатью «Допуск» */
.hero-doc {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 30px 26px;
  box-shadow: 0 26px 48px -34px rgba(11,20,24,.45), 0 2px 8px -3px rgba(11,20,24,.12);
}
.hero-doc::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
  background: var(--acc);
}
.hero-doc .doc-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.hero-doc h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.18; margin: 0 0 6px; }
.hero-doc .doc-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--ink-3); margin: 0 0 20px;
}
.doc-lines span {
  display: block; height: 5px; background: var(--line-2); border-radius: 1px; margin-bottom: 8px;
}
.doc-lines span.s { width: 74%; }
.doc-lines span.m { width: 90%; }
.doc-lines span.xs { width: 54%; }
.doc-checks { list-style: none; margin: 18px 0 0; padding: 0; }
.doc-checks li {
  position: relative; padding: 9px 0 9px 30px; font-size: 13.5px; color: var(--ink-2); line-height: 1.42;
}
.doc-checks li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 16px; height: 16px;
  border: 1px solid var(--acc); border-radius: 2px;
}
.doc-checks li::after {
  content: ''; position: absolute; left: 4px; top: 17px; width: 8px; height: 4px;
  border-left: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc);
  transform: rotate(-45deg);
}
.doc-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 18px;
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line);
}
.doc-foot .doc-meta {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  color: var(--ink-3); line-height: 1.7; text-transform: uppercase;
}
.seal {
  width: 82px; height: 82px; flex: 0 0 82px;
  border: 2px solid var(--acc); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--acc); transform: rotate(-8deg);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(20,92,116,.4);
}
.seal svg { width: 30px; height: 30px; display: block; }
.seal span {
  font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .14em;
  text-transform: uppercase; margin-top: 2px; font-weight: 500;
}

/* Полоса «что остаётся у вас» */
.docrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc {
  background: var(--surface); border: 1px solid var(--line);
  padding: 20px 18px 16px; display: flex; flex-direction: column; min-height: 210px;
}
.doc .doc-tag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.doc h4 { font-size: 15.5px; line-height: 1.28; margin: 0 0 16px; letter-spacing: -0.01em; }
.doc .doc-lines { margin-bottom: 4px; }
.doc .doc-lines span { height: 5px; background: var(--line-2); border-radius: 1px; margin-bottom: 7px; }
.doc .doc-lines span.s { width: 68%; }
.doc .doc-foot {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.doc .doc-foot .mono { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.doc-tick { width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid var(--acc); border-radius: 2px; position: relative; }
.doc-tick::after {
  content: ''; position: absolute; left: 4px; top: 5px; width: 7px; height: 3px;
  border-left: 1.5px solid var(--acc); border-bottom: 1.5px solid var(--acc);
  transform: rotate(-45deg);
}
.doc-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); max-width: 56em; }

/* герой внутренних страниц */
.page-hero {
  padding: 66px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); max-width: 20em; margin-bottom: 18px; }
.page-hero .lead { max-width: 40em; margin-bottom: 28px; }
.page-hero .hero-actions { margin-bottom: 0; }

/* ---------- Сетки и списки ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Услуги: строки-реестр, не карточки */
.service-list { border-top: 1px solid var(--ink); }
.service-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 24px; align-items: baseline;
  padding: 24px 6px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background .16s ease, padding-left .16s ease;
}
.service-row:hover { background: var(--surface); padding-left: 14px; }
.service-row .idx {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .06em;
  transition: color .16s ease;
}
.service-row h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.service-row .sub { margin: 5px 0 0; font-size: 15px; color: var(--ink-2); max-width: 56ch; }
.service-row .price {
  font-family: var(--font-mono); font-size: 15px; color: var(--ink); text-align: right; white-space: nowrap;
  letter-spacing: -0.01em;
}
.service-row .price small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; letter-spacing: 0; }
.service-row:hover .idx { color: var(--acc); }
.service-row:hover .price { color: var(--acc); }

/* Чек-лист «что вы получаете» */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.check-list li {
  position: relative; padding: 14px 0 14px 36px; font-size: 16.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); line-height: 1.5;
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 19px; width: 15px; height: 15px;
  background: var(--acc); border-radius: 1px;
}
.check-list li::after {
  content: ''; position: absolute; left: 4px; top: 23px; width: 7px; height: 4px;
  border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}
.check-list li strong { color: var(--ink); font-weight: 600; }

/* «Сроки / что нужно от вас» */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.spec-box { border-top: 2px solid var(--ink); padding-top: 20px; }
.spec-box h4 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px; font-weight: 500;
}
.spec-box ul { margin: 0; padding: 0; list-style: none; }
.spec-box ul li {
  position: relative; padding: 9px 0 9px 20px; font-size: 15.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); line-height: 1.5;
}
.spec-box ul li:last-child { border-bottom: none; }
.spec-box ul li::before {
  content: ''; position: absolute; left: 0; top: 17px; width: 7px; height: 1px; background: var(--acc);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0;
  font-family: var(--font-disp); font-weight: 500; font-size: 17.5px; letter-spacing: -0.015em;
  color: var(--ink); position: relative;
  transition: color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 20px; color: var(--acc); font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--acc); }
.faq .a { padding: 0 0 24px; color: var(--ink-2); max-width: 58em; }
.faq .a p { margin-bottom: .8em; }

/* ---------- CTA-блок ---------- */
.cta {
  background: var(--ink); color: #eceae2;
  padding: 64px 56px; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--acc-pale);
}
.cta .eyebrow { color: var(--acc-pale); }
.cta .eyebrow::before { background: var(--acc-pale); }
.cta h2 { color: #fff; max-width: 20em; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,0.68); max-width: 42em; font-size: 17px; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--acc-pale); color: var(--acc-2); }
.cta .hero-mail { color: rgba(255,255,255,0.75); text-decoration-color: rgba(255,255,255,.3); }
.cta .hero-mail:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Таблица цен ---------- */
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th {
  text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 0 16px 12px;
  border-bottom: 2px solid var(--ink); vertical-align: bottom;
}
.price-table td { padding: 18px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.price-table tbody tr:hover td { background: var(--surface); }
.price-table .svc { font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.price-table .svc small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; letter-spacing: 0; }
.price-table .pr { font-family: var(--font-mono); white-space: nowrap; letter-spacing: -0.02em; }

/* ---------- Калькулятор ---------- */
.calc {
  background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
}
.calc-pick { padding: 38px; border-right: 1px solid var(--line); }
.calc-pick h3 { margin-bottom: 6px; }
.calc-pick .hint { font-size: 14.5px; color: var(--ink-3); margin-bottom: 22px; max-width: 44ch; }
.calc-items { border-top: 1px solid var(--line-2); }
.calc-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 12px 14px 0;
  cursor: pointer; border-bottom: 1px solid var(--line-2);
  transition: background .14s ease;
}
.calc-item:hover { background: var(--acc-soft); }
.calc-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc-item .box {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  border: 1px solid var(--ink-3); border-radius: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s ease, border-color .14s ease;
}
.calc-item input:checked + .box { background: var(--acc); border-color: var(--acc); }
.calc-item input:checked + .box::after {
  content: ''; width: 9px; height: 5px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.calc-item input:focus-visible + .box { outline: 2px solid var(--acc); outline-offset: 2px; }
.calc-item .t { font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.calc-item .t small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 3px; letter-spacing: 0; }
.calc-item .p { margin-left: auto; font-family: var(--font-mono); font-size: 14px; white-space: nowrap; padding-left: 10px; letter-spacing: -0.02em; }
.calc-sub { border-top: 1px solid var(--ink); }

.calc-side { padding: 38px 32px; display: flex; flex-direction: column; }
.calc-rows, .calc-body .rows { flex: 1; }
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap;
  gap: 6px 14px; padding: 10px 0;
  font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line-2);
}
.calc-row > span:first-child { flex: 1 1 52%; min-width: 0; }
.calc-row .v { font-family: var(--font-mono); text-align: right; color: var(--ink); letter-spacing: -0.02em; }
.calc-row.total {
  margin-top: 14px; padding: 18px 0 0; border-top: 2px solid var(--ink); border-bottom: none;
  font-family: var(--font-disp); font-weight: 600; font-size: 24px; color: var(--ink); letter-spacing: -0.03em;
}
.calc-row.total .v { white-space: nowrap; font-weight: 600; }
.calc-note { font-size: 12.5px; color: var(--ink-3); margin: 16px 0; line-height: 1.5; }
.calc-form { margin-top: 4px; }
.calc-cta { margin-top: auto; }
.calc-success { display: none; }
.calc.success .calc-body { display: none; }
.calc.success .calc-success { display: block; }
.calc-subscription:empty { display: none; }

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-card { background: var(--surface); padding: 30px 26px; }
.team-card .role {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 10px; font-weight: 500;
}
.team-card h3 { font-size: 18px; margin-bottom: 8px; }
.team-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.step:first-child { border-top: 1px solid var(--ink); }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--acc); padding-top: 5px; letter-spacing: .06em; }
.step h3 { margin-bottom: 8px; font-size: 20px; }
.step p { color: var(--ink-2); margin: 0; max-width: 52em; }

/* ---------- Формы ---------- */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; color: var(--ink); letter-spacing: -0.005em; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; transition: border-color .14s ease, box-shadow .14s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 13px; color: var(--ink-3); }
.form-error { color: #a3372a; font-size: 14px; margin-top: 10px; }
.form-error:empty { display: none; }
.form-success { padding: 44px 0; }
.form-success .mark {
  width: 40px; height: 40px; background: var(--acc); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin: 0 0 18px;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 14px 0 18px; line-height: 1.45; }
.consent input { margin-top: 3px; }

/* ---------- Контакты ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--acc);
  padding: 24px 26px;
}
.contact-card .l {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 6px; font-weight: 500;
}
.contact-card .v { font-size: 19px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.02em; }
.contact-card .d { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 34px; margin-top: 84px; }
.site-footer > .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 320px; }
.foot-brand p { font-size: 14px; color: var(--ink-2); margin-top: 14px; margin-bottom: 0; }
.foot-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px; font-weight: 500;
}
.foot-col a, .foot-col span { display: block; font-size: 14.5px; color: var(--ink-2); margin-bottom: 9px; text-decoration: none; }
.foot-col a:hover { color: var(--acc); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; font-size: 13px; color: var(--ink-3); }
.foot-bottom .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.foot-disclaimer { font-size: 12.5px; color: var(--ink-3); max-width: 940px; margin: 14px 0 0; line-height: 1.55; }

/* ---------- 404 ---------- */
.e404 {
  max-width: var(--maxw); margin: 0 auto; padding: 104px 32px 88px; text-align: center;
}
.e404 h1 {
  font-family: var(--font-mono); font-size: clamp(72px, 13vw, 148px); font-weight: 500;
  letter-spacing: -0.06em; color: var(--acc); margin-bottom: 10px; line-height: 1;
}
.e404 p { color: var(--ink-2); margin: 0 auto 30px; font-size: 18px; max-width: 34em; }
.e404 .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-doc { max-width: 480px; }
  .docrow { grid-template-columns: 1fr 1fr; }
  .grid-2, .spec, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-pick { border-right: none; border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 16px 32px 22px;
  }
  .nav-open .nav-links a { padding: 10px 0; font-size: 16px; }
  .nav-open .nav-links a.nav-cta { margin-left: 0; margin-top: 10px; padding: 13px 22px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .hero { padding: 52px 0 48px; }
  .page-hero { padding: 44px 0 40px; }
  .grid-3, .team { grid-template-columns: 1fr; }
  .docrow { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .service-row { grid-template-columns: 1fr auto; gap: 10px; padding: 20px 2px; }
  .service-row .idx { display: none; }
  .service-row:hover { padding-left: 2px; }
  .cta { padding: 40px 26px; }
  .calc-pick, .calc-side { padding: 26px 22px; }
  /* таблица цен на узком экране — строки в две колонки, без горизонтальной прокрутки */
  .table-scroll { overflow: visible; }
  .price-table { font-size: 15px; min-width: 0; display: block; }
  .price-table thead { display: none; }
  .price-table tbody { display: block; }
  .price-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px;
    padding: 16px 0; border-bottom: 1px solid var(--line-2);
  }
  .price-table td { display: block; padding: 0; border: none; }
  .price-table td.svc { font-size: 16px; }
  .price-table td.pr { text-align: right !important; align-self: start; }
  .price-table td:last-child { grid-column: 1 / -1; color: var(--ink-3); font-size: 13.5px; margin-top: 4px; }
  .price-table tbody tr:hover td { background: transparent; }
}
