:root {
  --oo: #0B0B09;
  --bg-2: #10100D;
  --card: #151411;
  --line: rgba(236, 232, 223, .10);
  --line-2: rgba(236, 232, 223, .20);
  --wire: rgba(236, 232, 223, .14);
  --paber: #F4F5F1;
  --orange: #D9561C;
  --blue: #E08A5C;
  --text: #ECE8DF;
  --muted: #959084;
  --ink-muted: #6B675D;
  --ink: #0B0B09;
  --accent-text: #E5642A;
  --good: #D9561C;
  --header-bg: rgba(21, 20, 17, .94);
  --chip-bg: rgba(21, 20, 17, .9);
  --deep: #060605;
  --placeholder: #5C5850;
  --soft-text: #C2BCB0;
  --shadow-color: rgba(0, 0, 0, .6);
  --line-3: rgba(236, 232, 223, .32);
  --frame-in: color-mix(in srgb, var(--text) 4%, var(--card));

  --accent: var(--orange);
  /* тёмная тема по умолчанию при любой системной: полосы прокрутки и встроенные элементы браузера тоже тёмные */
  color-scheme: dark;

  --f-head: "Inter Tight", system-ui, sans-serif;
  --f-logo: "Unbounded", system-ui, sans-serif;
  --f-body: "Roboto", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --radius: 4px;
  /* Шестиугольная сетка (соты): одна плитка, используется как маска */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='41.57' height='72' viewBox='0 0 41.57 72'%3E%3Cpath d='M0 12L20.78 0L41.57 12V36L20.78 48L0 36Z M20.78 48V72' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E");
}

html[data-theme="light"] {
  --oo: #F2EFE8;
  --bg-2: #EAE6DC;
  --card: #FAF8F3;
  --line: rgba(26, 24, 19, .12);
  --line-2: rgba(26, 24, 19, .24);
  --wire: rgba(26, 24, 19, .16);
  --text: #16150F;
  --muted: #5E5A50;
  --blue: #8F3A10;
  --accent-text: #A9420F;
  --good: #A9420F;
  --header-bg: rgba(250, 248, 243, .94);
  --chip-bg: rgba(250, 248, 243, .92);
  --deep: #FAF8F3;
  --placeholder: #9A958A;
  --soft-text: #3B3830;
  --shadow-color: rgba(14, 14, 10, .14);
  --line-3: rgba(26, 24, 19, .36);
  --frame-in: color-mix(in srgb, #fff 45%, var(--card));
  color-scheme: light;
}

/* Тёмные «островки», которые остаются тёмными в любой теме */
.term, .printer, .mini, .ticket__cmd, .doc__bar {
  --oo: #0B0B09;
  --card: #151411;
  --line: rgba(236, 232, 223, .10);
  --line-2: rgba(236, 232, 223, .20);
  --text: #ECE8DF;
  --muted: #959084;
  --blue: #E08A5C;
  --accent-text: #E5642A;
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--oo);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 13px; }
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }

/* ---------- Logo ---------- */
.logo {
  font-family: var(--f-logo);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.logo--sm { font-size: 20px; }
.logo--xs { font-size: 16px; gap: 6px; }
.logo__pill {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.62em;
  background: var(--accent);
  color: var(--ink);
  line-height: 1;
  padding: 0.3em 0.85em 0.54em;
  position: relative;
  top: -0.235em;
  border-radius: 999px;
  display: inline-flex;
  align-items: baseline;
  letter-spacing: 0;
  transition: background .3s;
}
/* невидимая распорка высотой с курсор: плашка без курсора (подвал, счёт, чек) выровнена так же, как в шапке */
.logo__pill::after { content: ""; display: inline-block; width: 0; height: 1.05em; }

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  background: currentColor;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
.cursor--text { background: var(--accent); width: 0.55em; vertical-align: -2px; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.header .logo { margin-right: auto; }
.nav { display: flex; gap: 28px; font-family: var(--f-mono); font-size: 14px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--accent-text); }
.nav__mobile-only { display: none; }

.burger { display: none; background: none; border: 0; width: 32px; height: 32px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text); transition: .3s; }
.burger span:first-child { top: 11px; }
.burger span:last-child { top: 19px; }
.burger.open span:first-child { top: 15px; transform: rotate(45deg); }
.burger.open span:last-child { top: 15px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 3px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s, background .3s, border-color .2s, color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--muted); }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 104px; }

.hero__title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
html[lang="et"] .hero__title { font-size: clamp(30px, 3.3vw, 48px); }
.pill {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  padding: 0 .32em .06em;
  border-radius: 4px;
}
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }


/* Пример автоматизации в первом экране */
.run__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.run__tab {
  font: 13px var(--f-mono);
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.run__tab:hover { color: var(--text); }
.run__tab[aria-pressed="true"] { color: var(--text); border-color: var(--line); background: var(--card); }

/* Терминал-пасхалка (открывается клавишей ` или кнопкой $_ в подвале) */
.term {
  position: relative;
  background: #060605;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 40px 80px -20px var(--shadow-color);
  overflow: hidden;
  transition: border-color .3s;
  cursor: text;
}
.term--live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.term:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.term__bar i:nth-child(1) { background: #FF5F57; }
.term__bar i:nth-child(2) { background: #FEBC2E; }
.term__bar i:nth-child(3) { background: #28C840; }
.term__title { margin-left: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.term__hint {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--accent-text);
  white-space: nowrap;
  animation: hint 2.4s ease-in-out infinite;
}
.term--live .term__hint { animation: none; color: var(--muted); }
@keyframes hint { 50% { opacity: .45; } }
.term__body {
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.85;
  padding: 20px 22px 24px;
  height: 340px;
  white-space: pre-wrap;
  overflow: hidden;
  scrollbar-width: none;
}
.term--live .term__body { overflow-y: auto; }
.term__input {
  position: absolute;
  left: 0; bottom: 0;
  width: 1px; height: 1px;
  opacity: 0;
  border: 0;
  font-size: 16px;
  pointer-events: none;
}
.t-cmd { color: var(--text); }
.t-cmd::before { content: "$ "; color: var(--accent-text); }
.t-ok { color: var(--muted); }
.t-ok b, .t-live b, .t-out b { color: var(--accent-text); font-weight: 400; }
.t-bar { color: var(--blue); }
.t-live { color: var(--text); }
.t-live u { color: var(--blue); text-decoration: none; }
.t-out { color: var(--text); }
.t-dim { color: var(--muted); }
.t-err { color: var(--orange); }

.term-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(620px, calc(100vw - 32px));
  z-index: 90;
}
.term-dock[hidden] { display: none; }
.term-dock .term { box-shadow: 0 30px 60px -20px var(--shadow-color); }
.term__close {
  margin-left: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.term__close:hover { color: var(--text); }
.term-open {
  margin-left: 10px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  opacity: .45;
  cursor: pointer;
}
.term-open:hover, .term-open:focus-visible { opacity: 1; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 104px 0; }
.section__head { margin-bottom: 52px; }
.section__head--stack { display: grid; gap: 18px; max-width: 760px; }
.section__head--stack .section__sub { max-width: 640px; }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section__sub { color: var(--muted); max-width: 460px; font-size: 17px; }
.label { font-family: var(--f-mono); font-size: 13px; color: var(--accent-text); display: block; margin-bottom: 14px; }
.section__title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: clamp(30px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Списки в тарифах */
.svc__list { margin-top: 22px; display: grid; gap: 10px; font-size: 15.5px; }
.svc__list li { display: flex; gap: 10px; }
.svc__list li::before { content: "–"; color: var(--muted); flex-shrink: 0; }

/* ---------- Cases (tasks) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab {
  padding: 11px 18px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--card); color: var(--text); border-color: var(--line); }

.case {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.case__col { position: relative; padding: 34px 32px 38px; border-right: 1px solid var(--line); animation: caseIn .5s ease backwards; }
.case__col:nth-child(2) { animation-delay: .08s; }
.case__col:nth-child(3) { animation-delay: .16s; border-right: 0; }
@keyframes caseIn { from { opacity: 0; transform: translateY(10px); } }
.case__label {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--muted);
}
.case__col--do .case__label { color: var(--blue); }
.case__col--after .case__label { color: var(--accent-text); }
.case__col p { font-size: 17px; line-height: 1.55; }
.case__col--before p { color: var(--muted); }
.case__col--after p { font-weight: 600; }
.case__chips { display: flex; flex-direction: column; gap: 8px; }
.case__chips { gap: 10px; }
.case__chips span { display: flex; gap: 10px; font-weight: 600; font-size: 16px; }
.case__chips span::before { content: "–"; color: var(--muted); font-weight: 400; }

/* ---------- Why ---------- */

/* ---------- B2B ---------- */
.b2b { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.b2b__lead { font-size: 19px; color: var(--muted); margin: 20px 0 34px; max-width: 580px; }
.b2b__points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; }
.point { padding: 20px 0 6px; border-top: 1px solid var(--line); }
.point h3 { font-family: var(--f-head); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.point p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.docs { position: relative; padding: 30px 10px 40px 30px; }
.doc { background: var(--paber); color: var(--ink); border-radius: 4px; box-shadow: 0 40px 80px -20px var(--shadow-color); }
.doc--back {
  position: absolute;
  inset: 10px 60px 70px 0;
  background: #DCDFD7;
  padding: 26px;
  transform: rotate(-6deg);
}
.doc__kicker { font-size: 11px; color: var(--ink-muted); }
.doc__lines { display: grid; gap: 10px; margin-top: 20px; }
.doc__lines i { height: 6px; border-radius: 3px; background: #BFC3BA; }
.doc__lines i:nth-child(2n) { width: 80%; }
.doc--front { position: relative; margin-left: 40px; overflow: hidden; transform: rotate(2deg); transition: transform .4s; }
/* лист повёрнут: под тёмной полосой фон тоже тёмный, иначе по сглаженному краю полосы проступает светлая линия */
.doc--front { background: linear-gradient(var(--ink) 0 40px, var(--paber) 0); }
.docs:hover .doc--front { transform: rotate(0deg) translateY(-6px); }
.doc__bar { display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: var(--paber); padding: 14px 22px; }
.doc__bar .mono { font-size: 11.5px; color: var(--muted); }
.doc__body { padding: 26px 24px 22px; }
.doc h4 { font-family: var(--f-head); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 16px; }
.doc__rows div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 13.5px; padding: 2px 0; }
.doc__rows dt { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); padding-top: 1px; }
.doc__rows dd { font-weight: 600; }
.doc__items { display: grid; gap: 9px; margin: 18px 0; padding: 14px 0; border-top: 1px dashed #C9CCC4; border-bottom: 1px dashed #C9CCC4; font-size: 14px; }
.doc__items div, .doc__total { display: flex; justify-content: space-between; gap: 12px; }
.doc__total { font-weight: 800; font-size: 16px; }
.blur { font-family: var(--f-mono); filter: blur(4px); user-select: none; }
.doc__note { font-size: 11px; color: var(--ink-muted); margin-top: 14px; }
.doc__stamp {
  position: absolute;
  right: 22px;
  top: 92px;
  padding: 7px 14px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  transform: rotate(-10deg);
  box-shadow: 0 6px 16px -6px var(--shadow-color);
}

/* Перекидное табло: цифра при смене коротко «перещёлкивается» по вертикали (обёртки ставит script.js) */
.flap { display: inline-block; }
.flap.is-flip { animation: flapTick 60ms ease-out; }
@keyframes flapTick { from { transform: scaleY(.15); opacity: .4; } }
.plan__price b, .sec-head { font-variant-numeric: tabular-nums; }

/* Метки сервисов в карточке загораются по очереди слева направо, пока курсор на карточке */
.node .chips span { transition: border-color .15s, color .15s; }
.node:hover .chips span, .node.is-recv .chips span { border-color: var(--accent-text); color: var(--accent-text); }
.node:hover .chips span:nth-child(2), .node.is-recv .chips span:nth-child(2) { transition-delay: .12s; }
.node:hover .chips span:nth-child(3), .node.is-recv .chips span:nth-child(3) { transition-delay: .24s; }
.node:hover .chips span:nth-child(4), .node.is-recv .chips span:nth-child(4) { transition-delay: .36s; }
.node:hover .chips span:nth-child(5), .node.is-recv .chips span:nth-child(5) { transition-delay: .48s; }

/* Счёт заполняется при первом показе: строки по одной, итог пересчитывается, штамп опускается (классы ставит script.js) */
.docs.is-blank :is(.doc__items > div, .doc__total, .doc__stamp):not(.is-in) { visibility: hidden; }
.docs.is-blank .is-in { animation: docRow .2s ease-out; }
.docs.is-blank .doc__stamp.is-in { animation: docStamp .36s cubic-bezier(.5, 0, .75, 0) both; }
.docs.is-blank .doc--front.is-thud { animation: docThud .28s .3s ease-out; }
@keyframes docRow { from { opacity: 0; transform: translateY(-3px); } }
@keyframes docStamp {
  0% { opacity: 0; transform: rotate(-10deg) scale(2.2); }
  80% { opacity: 1; transform: rotate(-10deg) scale(.96); }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}
@keyframes docThud { 35% { transform: rotate(2deg) translateY(3px); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; counter-reset: none; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step:first-child { border-top-color: var(--accent-text); }
.step__num { display: block; margin-bottom: 18px; font-family: var(--f-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--line); }
.step h3 { font-family: var(--f-head); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq__aside { position: sticky; top: 110px; }
.faq__aside p { color: var(--muted); margin-top: 18px; max-width: 340px; }
.faq__aside a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  transition: color .2s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--accent-text); }
.faq__list summary::after {
  content: "+";
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 18px;
  color: var(--accent-text);
  transition: transform .3s, background .3s, color .3s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--ink); border-color: transparent; }
.faq__list details p { color: var(--muted); padding: 0 56px 26px 0; max-width: 660px; animation: pop .35s ease; }

/* ---------- Brief form ---------- */
.brief-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; align-items: start; }
/* Форма в стиле терминала с первого экрана: тёмное окно, сетка из шестиугольников, шаги по линии */
.brief-card {
  position: relative;
  background: #060605;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 40px 80px -20px var(--shadow-color);
  overflow: hidden;
  isolation: isolate;
}
.brief-card__bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.brief-card__label { font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.brief-card__count { margin-left: auto; padding: 3px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11.5px; }
.brief-card__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: calc(var(--done, 0) * 100%);
  background: var(--accent);
  transition: width .4s ease;
}
.brief-card__body { padding: 36px 40px 40px; }
.brief { display: flex; flex-direction: column; gap: 32px; }
.brief fieldset { position: relative; border: 0; min-width: 0; padding-left: 50px; }
.brief fieldset::before {
  content: "";
  position: absolute;
  left: 16px; top: 40px; bottom: -26px;
  border-left: 1px dashed var(--line);
  transition: border-color .3s;
}
.brief fieldset:last-of-type::before { display: none; }
.brief fieldset.done::before { border-left-style: solid; border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.brief legend { display: flex; align-items: center; gap: 10px; min-height: 32px; font-family: var(--f-head); font-weight: 600; font-size: 18px; margin-bottom: 14px; }
.brief legend .mono {
  position: absolute;
  left: 0; top: 0;
  width: 33px; height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--oo);
  color: var(--accent-text);
  font-size: 12px;
  transition: background .3s, color .3s, border-color .3s;
}
.brief fieldset.done legend .mono { background: var(--accent); border-color: transparent; color: var(--ink); }
.brief__submit { padding-left: 50px; }
.brief__legal { padding-left: 50px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--oo);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.opt:hover { border-color: var(--muted); }
.opt:active { transform: scale(.96); }
.opt[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: transparent; }
.opt[aria-pressed="true"]::before { content: "✓ "; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: span 2; }
.field > span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  background: var(--oo);
  border: 1px solid var(--line);
  height: 44px;
  border-radius: 4px;
  padding: 0 16px;
  color: var(--text);
  font: 500 15px var(--f-body);
  outline: none;
  resize: vertical;
  transition: border-color .2s;
}
.field textarea { height: auto; min-height: 104px; padding: 12px 16px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { border-color: var(--accent-text); }
.field.error input { border-color: #FF5F57; animation: shake .35s; }
.field.error > span { color: #FF5F57; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.brief__submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.brief__submit a { color: var(--blue); }

.brief-done { text-align: center; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; animation: pop .5s ease; }
.brief-done__icon {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}
.brief-done h3 { font-family: var(--f-head); font-weight: 800; font-size: 30px; }
.brief-done p { color: var(--muted); font-size: 18px; }
.brief-done .mono { font-size: 13px; margin-bottom: 18px; }

/* Ticket */
.ticket-wrap { --ticket-inset: 22px; position: sticky; top: 100px; filter: drop-shadow(0 30px 40px var(--shadow-color)); }
/* Обрывок бумаги, который остаётся в щели принтера после отрыва */
.ticket-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 40px;
  left: var(--ticket-inset);
  right: var(--ticket-inset);
  height: 10px;
  background: var(--paber);
  -webkit-mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 20px 6px repeat-x, linear-gradient(#000 0 0) top / 100% 4px no-repeat;
  mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 20px 6px repeat-x, linear-gradient(#000 0 0) top / 100% 4px no-repeat;
  opacity: 0;
}
.ticket-wrap.torn::after { opacity: 1; }
.ticket-wrap.printing .printer__led { animation: led .18s steps(2, jump-none) infinite alternate; }
@keyframes led { to { opacity: .25; box-shadow: none; } }
.printer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  background: #0A0C10;
  border: 1px solid var(--line);
  border-radius: 16px 16px 8px 8px;
}
.printer .mono { font-size: 11px; color: var(--muted); }
.printer::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -4px; height: 8px; border-radius: 4px; background: #000; }
.printer__led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.ticket {
  position: relative;
  margin: -2px var(--ticket-inset) 0;
  padding: 26px 24px 40px;
  background: var(--paber);
  color: var(--ink);
  font-size: 14px;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 20px 10px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 20px 10px repeat-x;
}
/* Печать: бумага выезжает из щели (сдвиг и обрезка по щели идут вместе), потом чек отрывают */
.ticket.pending { clip-path: inset(100% 0 0 0); }
.ticket.print {
  transform-origin: 15% 0;
  animation:
    feed 1.9s cubic-bezier(.35, .1, .3, 1) both,
    tear .65s cubic-bezier(.3, .7, .4, 1) 2.15s forwards;
}
@keyframes feed {
  from { transform: translateY(-100%); clip-path: inset(100% 0 0 0); }
  to { transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes tear {
  0% { transform: translateY(0) rotate(0); }
  22% { transform: translateY(-3px) rotate(-.8deg); }
  48% { transform: translateY(14px) rotate(1.4deg); }
  72% { transform: translateY(8px) rotate(-.5deg); }
  100% { transform: translateY(10px) rotate(0); }
}
/* После отрыва у чека зубчатый край и сверху */
.ticket-wrap.torn .ticket {
  -webkit-mask:
    conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 20px 10px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 20px) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 20px 10px repeat-x;
  mask:
    conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 20px 10px repeat-x,
    linear-gradient(#000 0 0) center / 100% calc(100% - 20px) no-repeat,
    conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 20px 10px repeat-x;
}
.ticket__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed #C9CCC4; }
.ticket__head .mono { font-size: 11.5px; color: var(--ink-muted); }
.ticket__title { font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 16px 0 12px; }
.ticket__title .mono { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--ink-muted); }
.ticket__rows div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 4px 0; }
.ticket__rows dt { font-family: var(--f-mono); font-size: 12px; color: var(--ink-muted); padding-top: 2px; }
.ticket__rows dd { font-weight: 700; overflow-wrap: anywhere; border-radius: 4px; }
.ticket .empty { color: var(--ink-muted) !important; font-weight: 500 !important; }
.ticket .flash { animation: flash .8s ease; }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 70%, transparent); } }
.ticket__task {
  margin: 14px 0;
  padding: 14px 0;
  border-top: 1px dashed #C9CCC4;
  border-bottom: 1px dashed #C9CCC4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 9.5em;
  overflow: hidden;
  line-height: 1.5;
}
.ticket__cmd {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  background: var(--ink);
  color: var(--accent);
  padding: 10px 12px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.ticket__barcode {
  height: 38px;
  margin-top: 18px;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px,
    var(--ink) 9px 12px, transparent 12px 13px, var(--ink) 13px 14px, transparent 14px 17px);
  opacity: .85;
}
.ticket__stamp {
  position: absolute;
  right: 18px;
  top: 74px;
  padding: 8px 16px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: 0;
  transform: rotate(-14deg) scale(1);
  pointer-events: none;
}
.ticket.stamped .ticket__stamp { transform: rotate(-14deg) scale(2.2); }
.ticket.stamped .ticket__stamp { animation: stamp .45s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes stamp { to { opacity: .85; transform: rotate(-14deg) scale(1); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__brand p { margin-top: 14px; font-size: 15px; max-width: 280px; }
.req { display: grid; gap: 8px; }
.req div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; font-size: 15px; }
.req dt { font-family: var(--f-mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.req a { color: var(--blue); }
.req a:hover { text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Header: языки и акцент ---------- */
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 4px; flex-shrink: 0; }
.lang button {
  padding: 5px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }

/* ---------- Работы ---------- */
.work { display: grid; gap: 20px; }
.project {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 36px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .3s;
}
.project:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.project__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 28px 30px 40px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    var(--oo);
  overflow: hidden;
}
.mini {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--oo);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 50px -20px var(--shadow-color);
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
  transition: transform .5s ease;
}
.project:hover .mini { transform: none; }
.mini__nav { display: flex; justify-content: space-between; align-items: center; }
.mini__logo { font-family: var(--f-logo); font-weight: 800; font-size: 12px; }
.mini__logo i { padding: 1px 5px; margin-left: 2px; border-radius: 999px; background: var(--accent); color: var(--ink); font: 700 8px var(--f-mono); }
.mini__links i { display: inline-block; width: 16px; height: 4px; margin-left: 5px; border-radius: 2px; background: var(--line); }
.mini__hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; align-items: center; }
.mini__text { display: flex; flex-direction: column; gap: 5px; }
.mini__prompt { margin-bottom: 2px; color: var(--accent-text); font: 7px var(--f-mono); }
.mini__text b { width: 95%; height: 9px; border-radius: 3px; background: var(--text); }
.mini__text b:nth-of-type(2) { width: 75%; }
.mini__text .mini__pill { width: 52%; background: var(--accent); }
.mini__btn { width: 40%; height: 10px; margin-top: 5px; border-radius: 3px; background: var(--accent); }
.mini__term { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; background: #060605; border: 1px solid var(--line); border-radius: 3px; }
.mini__term i { height: 4px; border-radius: 2px; background: var(--line); }
.mini__term i:nth-child(odd) { width: 70%; background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.mini__ticket {
  position: absolute;
  right: -16px;
  bottom: -22px;
  width: 76px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 9px 14px;
  background: var(--paber);
  border-radius: 4px;
  transform: rotate(9deg);
  box-shadow: 0 14px 24px -8px var(--shadow-color);
}
.mini__ticket i { height: 3px; border-radius: 2px; background: #C9CCC4; }
.mini__ticket i:first-child { width: 60%; height: 6px; background: var(--ink); }
.project__body { display: flex; flex-direction: column; gap: 14px; }
.project__title { font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.project__facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0 28px; }
.project__facts div { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px dashed var(--line); }
.project__facts dt { padding-top: 3px; color: var(--muted); font: 12px var(--f-mono); }
.project__facts dd { font-size: 15px; }
.project__facts .svc__list { margin-top: 0; gap: 6px; font-size: 15px; }
.project__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 6px; }
.project__stats div { padding: 12px; background: var(--oo); border: 1px solid var(--line); border-radius: 4px; }
.project__stats b { display: block; color: var(--accent-text); font-family: var(--f-head); font-weight: 800; font-size: 24px; line-height: 1.2; }
.project__stats span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.next-case {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 30px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  transition: border-color .3s;
}
.next-case:hover { border-color: var(--accent-text); }
.next-case > div { flex: 1; }
.next-case__title { margin-bottom: 4px; font-family: var(--f-head); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.next-case p { color: var(--muted); font-size: 15px; }
.project__plus {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px dashed var(--accent-text);
  border-radius: 50%;
  color: var(--accent-text);
  font: 28px var(--f-mono);
  transition: transform .3s;
}
.next-case:hover .project__plus { transform: rotate(90deg); }

/* ---------- Абонементы ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .3s;
}
.plan--featured { border-color: var(--accent-text); }
.plan__name { color: var(--muted); font-size: 12px; }
.plan__title { margin: 6px 0 8px; font-family: var(--f-head); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.plan__for { min-height: 3.2em; color: var(--muted); font-size: 15px; line-height: 1.5; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.plan__price b { font-family: var(--f-head); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; }
.plan__price span { color: var(--muted); font: 13px var(--f-mono); }
.plan .svc__list { margin: 22px 0 28px; font-size: 15px; }
.plan__btn { width: 100%; margin-top: auto; }
.plans__note { max-width: 820px; margin-top: 22px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- Заявка: юридическая строка ---------- */
.brief__legal { margin-top: -10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.brief__legal a, .footer__link { color: var(--blue); }
.brief__legal a { text-decoration: underline; text-underline-offset: 3px; }
.brief__legal a:hover, .footer__link:hover { text-decoration: underline; }
.footer__link { display: inline-block; margin-top: 14px; font-size: 14px; }

@keyframes pulseDark {
  0% { box-shadow: 0 0 0 0 rgba(14, 17, 22, .5); }
  100% { box-shadow: 0 0 0 8px transparent; }
}

/* ---------- Cookies ---------- */
.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 65;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px var(--shadow-color);
  animation: pop .4s ease;
}
.cookie p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cookie__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie__actions a { color: var(--blue); font-size: 14px; }

/* ---------- Доступность ---------- */
.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 3px; }
.btn:focus-visible, .opt:focus-visible, .tab:focus-visible, .lang button:focus-visible { border-radius: 4px; }
input:focus-visible, textarea:focus-visible { outline: none; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- Шапка: тема, поиск, прогресс ---------- */
.icon-btn {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.theme-toggle span { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--text) 50%, transparent 50%); border: 1.5px solid var(--text); }
/* Статичная линия под шапкой на всю ширину */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); pointer-events: none; }
.lang-hint {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 0 20px 40px -16px var(--shadow-color);
  font-size: 14px;
  transform: translateX(-50%);
  animation: pop .4s ease;
  white-space: nowrap;
}
.lang-hint a { color: var(--accent-text); font-weight: 700; }
.lang-hint button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }

/* ---------- Заявка: экран после отправки ---------- */
.brief-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 12px; }
.link-btn { background: none; border: 0; color: var(--muted); font: 600 14px var(--f-body); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.brief-done p#doneText { max-width: 560px; }

/* ---------- Подвал ---------- */
kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; background: var(--card); color: var(--text); font: 11px var(--f-mono); }

/* ---------- Пасхалки в терминале ---------- */
.term__matrix { position: absolute; inset: 44px 0 0; width: 100%; height: calc(100% - 44px); pointer-events: none; }
.t-game { color: var(--text); line-height: 1.2; letter-spacing: 1px; }
.t-game b { color: var(--accent); font-weight: 400; }
.t-game i { color: var(--orange); font-style: normal; }

/* ---------- Пауза анимаций вне экрана ---------- */
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------- Печать чека ---------- */
@media print {
  body.print-ticket * { visibility: hidden !important; }
  body.print-ticket #ticket, body.print-ticket #ticket * { visibility: visible !important; }
  body.print-ticket #ticket { position: fixed; top: 0; left: 0; width: 360px; margin: 0; clip-path: none !important; animation: none !important; transform: none !important; }
  body.print-ticket { background: #fff !important; }
}

/* ---------- Reveal ---------- */

/* ---------- Иконки ---------- */
.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.15em; height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brief-done__icon .ico { width: 34px; height: 34px; stroke-width: 2.5; }
.t-out .ico, .t-dim .ico { color: var(--accent-text); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .header__cta { display: none; }
}

@media (max-width: 1100px) {
  .nav { gap: 18px; font-size: 13px; }
  .header__inner { gap: 18px; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .b2b { grid-template-columns: 1fr; gap: 48px; }
  .docs { max-width: 520px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__aside { position: static; }
  .brief-wrap { grid-template-columns: 1fr; }
  .ticket-wrap { position: relative; top: 0; max-width: 440px; width: 100%; margin: 0 auto; }
  .case { grid-template-columns: 1fr; }
  .case__col { border-right: 0; border-bottom: 1px solid var(--line); }
  .case__col:nth-child(3) { border-bottom: 0; }
  .project { grid-template-columns: 1fr; }
  .project__visual { min-height: 280px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan__for { min-height: 0; }
}

@media (max-width: 900px) {
  .header__cta { display: none; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--oo);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .3s;
    z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 18px 24px; border-top: 1px solid var(--line); font-size: 16px; }
  .nav__mobile-only { display: block; color: var(--accent-text) !important; }
  .burger { display: block; }
  .header__inner { gap: 12px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero { min-height: auto; padding: 48px 0 0; }
  .hero__title { font-size: clamp(26px, 7.6vw, 36px); }
  .term__body { font-size: 11.5px; height: 300px; padding: 16px; }
  .term__hint { display: none; }
  .term-dock { right: 16px; bottom: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step__num { font-size: 34px; }
  .b2b__points { grid-template-columns: 1fr; }
  .docs { padding: 20px 0 30px 10px; }
  .doc--front { margin-left: 16px; }
  .doc--back { right: 30px; }
  .case__col { padding: 28px 24px 32px; }
  .faq__list summary { font-size: 16px; }
  .faq__list details p { padding-right: 0; }
  .brief-card__body { padding: 24px 20px; }
  .brief fieldset, .brief__submit, .brief__legal { padding-left: 42px; }
  .brief-card .term__title { display: none; }
  .fields { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .ticket-wrap { --ticket-inset: 14px; }
  .req div { grid-template-columns: 1fr; gap: 0; }
  .btn { padding: 16px 24px; }
  .lang button { padding: 4px 7px; font-size: 11px; }
  .lang-hint { left: 12px; right: 12px; transform: none; white-space: normal; border-radius: 4px; }
  .project { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .next-case { flex-direction: column; align-items: flex-start; padding: 22px; }
  .project__stats div { padding: 10px; }
  .project__stats span { font-size: 11px; overflow-wrap: anywhere; }
  .project__facts { grid-template-columns: 1fr; }
  .project__visual { min-height: 240px; }
  .plan { padding: 24px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .ticket__stamp { display: none; }
  .ticket.stamped .ticket__stamp { display: block; opacity: .85; transform: rotate(-14deg); }
  html { scroll-behavior: auto; }
}

/* ---------- Страница политики ---------- */
html:not([lang="ru"]) [data-lang-block="ru"],
html:not([lang="et"]) [data-lang-block="et"],
html:not([lang="en"]) [data-lang-block="en"] { display: none; }
.legal-page .header .logo { margin-right: 0; }
.legal__back { margin-right: auto; color: var(--muted); font-size: 13px; transition: color .2s; }
.legal__back:hover { color: var(--accent-text); }
.legal { padding: 64px 0 110px; }
.legal .sec-head b { margin-right: 10px; }
.legal__title { max-width: 900px; margin-bottom: 36px; }
.legal__summary { margin-bottom: 64px; }
.legal__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.legal__facts li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--soft-text); font-size: 15.5px; line-height: 1.55; list-style: none; }
.legal__facts b { color: var(--text); }
.legal__facts a, .legal a { color: var(--blue); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }
.legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal__toc { position: sticky; top: 100px; }
.legal__toc .frame__k { margin-bottom: 14px; }
.legal__toc ol { list-style: none; display: grid; border-top: 1px solid var(--line); }
.legal__toc a { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--soft-text); font-size: 14.5px; transition: color .2s; }
.legal__toc a:hover { color: var(--text); text-decoration: none; }
.legal__toc b { font: 500 12.5px/1.9 var(--f-mono); color: var(--accent-text); }
.legal__body { max-width: 760px; }
.legal__sec { display: grid; grid-template-columns: 1fr; padding: 28px 0 34px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal__sec:first-child { padding-top: 0; border-top: 0; }
.legal h2 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.legal__n { font: 500 13px var(--f-mono); color: var(--accent-text); }
.legal__text { padding-left: 0; }
.legal p, .legal li { color: var(--soft-text); font-size: 16px; line-height: 1.7; }
.legal p + p, .legal ul + p, .legal p + ul, .legal table + p { margin-top: 12px; }
.legal__text ul { display: grid; gap: 8px; margin: 12px 0; list-style: none; }
.legal__text li { position: relative; padding-left: 20px; }
.legal__text li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.legal b { color: var(--text); }
.legal__table { width: 100%; margin: 14px 0 16px; border-collapse: collapse; border: 1px solid var(--line-2); }
.legal__table td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--soft-text); font-size: 15px; vertical-align: top; }
.legal__table td.mono { width: 170px; color: var(--accent-text); border-right: 1px solid var(--line); }
@media (max-width: 900px) {
  .legal__grid { grid-template-columns: 1fr; gap: 36px; }
  .legal__toc { position: static; }
  .legal__facts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .legal { padding: 40px 0 80px; }
  .legal-page .header .logo { font-size: 20px; }
  .legal h2 { font-size: 21px; }
  .legal__table td.mono { width: auto; }
}

/* ---------- Страница 404 ---------- */
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; padding: 40px 20px; }
.nf__term { width: min(640px, 100%); transform: none; cursor: default; }
.nf__body { height: auto; overflow: visible; white-space: normal; }
.nf__body > div { white-space: pre-wrap; }
.nf__code { margin: 6px 0 4px; color: var(--accent); font-family: var(--f-head); font-weight: 800; font-size: clamp(72px, 16vw, 132px); line-height: 1; letter-spacing: -0.04em; }
.nf__links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-left: 16px; }
.nf__links a { color: var(--blue); }
.nf__links a:hover { text-decoration: underline; }

/* ---------- Сенсорные экраны: цели для пальца ---------- */
@media (max-width: 760px) {
  .header__inner { gap: 8px; }
  .header .logo { font-size: 20px; }
  .lang button { min-width: 36px; min-height: 36px; padding: 0 6px; }
  .icon-btn { width: 40px; height: 40px; }
  .burger { width: 44px; height: 44px; margin-right: -6px; }
  .burger span { left: 12px; right: 12px; }
  .burger span:first-child { top: 17px; }
  .burger span:last-child { top: 25px; }
  .burger.open span:first-child, .burger.open span:last-child { top: 21px; }
}


/* ---------- Схема: шапки, рамки, узлы, теги, провода ---------- */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
  font: 500 13px/1.4 var(--f-mono);
  color: var(--text);
}
.sec-head b { margin-right: 10px; color: var(--accent-text); font-weight: 500; }
.sec-head > :last-child:not(:first-child) { color: var(--muted); text-align: right; }
.tagbox {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font: 500 12px/1.3 var(--f-mono);
  color: var(--soft-text);
  white-space: nowrap;
}
.tagbox--accent { border-color: var(--accent-text); color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  padding: 3px 7px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  font: 12px/1.4 var(--f-mono);
  color: var(--soft-text);
  white-space: nowrap;
}
.frame {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.frame__bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.frame__k { display: block; margin-bottom: 4px; font: 12px var(--f-mono); color: var(--muted); }
.frame__name { font-family: var(--f-body); font-weight: 700; font-size: 20px; line-height: 1.25; }
.frame__label { font: 600 13px var(--f-mono); }
.frame__note { color: var(--muted); font-size: 15px; margin: -6px 0 22px; }
.frame__sub { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; color: var(--muted); font: 12.5px var(--f-mono); }
.frame__sub::before { content: ""; width: 18px; height: 1px; background: var(--line-2); }

.node {
  position: relative;
  padding: 14px 16px 16px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--card);
  transition: border-color .3s, background .3s;
}
.node::after { content: "↗"; position: absolute; top: 11px; right: 12px; font-size: 12px; color: var(--muted); }
.node__k { display: block; padding-right: 18px; margin-bottom: 8px; font: 12px var(--f-mono); color: var(--muted); }
.node__t { margin-bottom: 4px; font-family: var(--f-body); font-weight: 700; font-size: 17px; line-height: 1.3; }
.node__d { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.node .chips { margin-top: 12px; }

/* Схема в первом экране: триггер, шина, шаги */
.scheme { border: 1px solid var(--line-2); border-radius: 3px; background: color-mix(in srgb, var(--card) 55%, transparent); }
.scheme__body { padding: 26px 20px 22px; }
.scheme .node { background: var(--oo); }
.scheme .node__d { color: var(--muted); transition: color .3s; }
.scheme__trigger { width: min(340px, 100%); margin: 0 auto; }
.scheme__trigger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 22px;
  background: var(--line-2);
}
.scheme__kids { --n: 3; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.scheme__kids::before {
  content: "";
  position: absolute;
  top: -22px;
  left: calc((100% - (var(--n) - 1) * 12px) / (var(--n) * 2));
  right: calc((100% - (var(--n) - 1) * 12px) / (var(--n) * 2));
  height: 1px;
  background: var(--line-2);
}
.scheme__kids::after {
  content: "";
  position: absolute;
  top: -25px;
  left: calc(50% - 3px);
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.scheme__kids .node::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 23px;
  background: var(--line-2);
}
.node.is-active, .node.is-done { border-color: var(--accent-text); }
.node.is-active .node__d, .node.is-done .node__d { color: var(--text); }
.node.is-active::after { content: "…"; color: var(--accent-text); }
.node.is-done::after { content: "✓"; color: var(--accent-text); }
.scheme .run__tabs { border-top: 1px solid var(--line); background: none; padding: 10px 14px; }
/* «попробуйте на своём имени» под схемой */
.run__try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }
.run__try-k { font-size: 12px; color: var(--muted); }
.run__try input {
  flex: 1 1 140px;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: var(--oo);
  color: var(--text);
  font: 500 14px var(--f-body);
  outline: none;
  transition: border-color .2s;
}
.run__try input::placeholder { color: var(--placeholder); }
.run__try input:focus { border-color: var(--accent-text); }
.run__try .btn { height: 38px; padding: 0 16px; }
/* импульсы данных по проводам (точки создаёт script.js) */
.scheme__body { position: relative; }
.scheme__flow { position: absolute; inset: 0; pointer-events: none; }
.flow__dot { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--accent); will-change: transform; }
.flow__dot--head { background: color-mix(in srgb, var(--accent) 70%, #fff); }
.flow { position: absolute; z-index: 1; width: 0; height: 0; pointer-events: none; }
.case { position: relative; }
.node.is-hit, .case__col.is-hit { animation: hit .7s ease-out; }
.step.node.is-lit { border-color: var(--accent-text); }
/* цепочки «заявка → crm → …»: по звеньям по очереди пробегает подсветка (обёртки ставит script.js) */
.deps .dep { animation: depTok 5s calc(var(--i) * .3s + var(--row, 0s)) infinite; }
.deps li + li { --row: 2.4s; }
@keyframes depTok {
  0%, 14%, 100% { color: inherit; }
  4% { color: var(--accent-text); }
}
@keyframes hit { from { box-shadow: 0 0 0 2px var(--accent-text), 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); } }
/* у «стало» рамка и так оранжевая, поэтому вспышка ещё и заливкой */
.case__col--after.is-hit { animation: hit .7s ease-out, hitFill .9s ease-out; }
@keyframes hitFill { from { background: color-mix(in srgb, var(--accent) 16%, var(--card)); } }

/* Раздел «Что автоматизируем» */
.auto-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.auto-group--q, .auto-group--ai { grid-column: 1 / -1; }
.auto-group--q .nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auto-group--ai .nodes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nodes { display: grid; gap: 12px; }
.deps { margin-top: 22px; padding: 4px 0 2px 18px; border-left: 1px dashed var(--accent-text); display: grid; gap: 8px; }
.deps li { list-style: none; font: 13px var(--f-mono); color: var(--soft-text); }
.deps li:last-child { color: var(--muted); font-family: var(--f-body); font-size: 14px; }

@media (max-width: 1100px) {
  .auto-group--ai .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .auto-groups { grid-template-columns: 1fr; }
  .auto-group--q .nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .auto-group--q .nodes, .auto-group--ai .nodes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sec-head { flex-wrap: wrap; row-gap: 4px; font-size: 11px; margin-bottom: 24px; }
  .sec-head > :last-child { text-align: left; }
  .frame { padding: 16px; }
  .scheme__body { padding: 20px 14px 16px; }
  .scheme__trigger { width: 100%; }
  .scheme__trigger::before { left: 11px; }
  .scheme__kids { grid-template-columns: 1fr; margin-top: 22px; gap: 10px; padding-left: 22px; }
  .scheme__kids::before { top: -22px; bottom: 30px; left: 11px; right: auto; width: 1px; height: auto; }
  .scheme__kids::after { display: none; }
  .scheme__kids .node::before { left: -11px; top: 30px; bottom: auto; width: 11px; height: 1px; }
}

/* Карточки и панели в стиле схемы */
.plan, .case, .integr, .compare__scroll, .brief-card {
  border-color: var(--line-2);
}
.plan__name { font: 500 12.5px var(--f-mono); color: var(--soft-text); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); display: block; }
.plan--featured .plan__name { color: var(--accent-text); }
.plan__title { font-family: var(--f-body); font-weight: 700; }
.btn { border-radius: 3px; }

/* Типографика в духе nexuszone: узкий плотный гротеск */
.section__title, .hero__title { font-family: var(--f-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.section__title { font-size: clamp(38px, 5.2vw, 66px); }
.hero__title { font-size: clamp(40px, 4.9vw, 72px); margin-bottom: 30px; }
html[lang="et"] .hero__title { font-size: clamp(38px, 4.6vw, 66px); }
.pill { background: none; color: var(--accent-text); padding: 0; border-radius: 0; }
.plan__price b, .step__num { font-family: var(--f-head); letter-spacing: -0.03em; }
.tagbox--accent { background: color-mix(in srgb, var(--accent) 7%, transparent); }
@media (max-width: 760px) {
  .hero__title, html[lang="et"] .hero__title { font-size: clamp(32px, 9.6vw, 44px); }
  .section__title { font-size: clamp(32px, 9vw, 44px); }
}

/* Раздел «Услуги» в стиле схемы */
.frame__tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
/* на узком экране метки уходят под заголовок, а не сжимают его до слова в строке */
@media (max-width: 760px) {
  .frame__bar:has(> .frame__tags) { flex-wrap: wrap; }
  .frame__tags { justify-content: flex-start; }
}
.svc-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-group { display: flex; flex-direction: column; }
.svc-group .nodes { gap: 8px; }
.svc-group__chips { margin-top: auto; padding-top: 16px; }
.svc-group--local { grid-column: 1 / -1; }
/* схема: ваша система в центре, провода к четырём группам сервисов (как в первом экране) */
.hub { position: relative; margin-top: 6px; }
.hub .scheme__kids { --n: 4; }
.hub .scheme__trigger { text-align: center; }
.hub .scheme__trigger .node__t { margin: 0; }
.node--sm { padding: 12px 14px; }
.node--sm::after { top: 9px; }
.node--sm .node__t { margin: 0; font-size: 15.5px; padding-right: 16px; }
.node--sm .node__k { margin-bottom: 6px; }
.node--sm .chips { margin-top: 2px; }
.svc-extras { margin-top: 22px; display: block; font: 13px/1.8 var(--f-mono); color: var(--soft-text); }
.svc-extras > span:first-child { color: var(--muted); margin-right: 6px; }
@media (max-width: 1024px) {
  .svc-groups { grid-template-columns: 1fr; }
}

/* ---------- Все разделы в стиле схемы ---------- */
.frame--outer > .frame__bar { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.frame--outer > .frame__note { margin-top: 0; }

/* Отрасли: вкладки в полосе, три узла на проводе */
.frame .tabs { gap: 4px; margin-bottom: 18px; }
.frame .tab { padding: 7px 12px; font: 13px var(--f-mono); border-radius: 2px; }
.frame .tab[aria-selected="true"] { background: var(--card); border-color: var(--line-2); }
.case { gap: 34px; background: none; border: 0; border-radius: 0; }
.case__col { padding: 16px 18px 20px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--card); }
.case__col:nth-child(3) { border-right: 1px solid var(--line-2); }
.case__col--after { border-color: var(--accent-text); }
.case__col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -35px;
  width: 34px;
  height: 1px;
  background: var(--line-2);
}
.case__col:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 29px;
  left: -21px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.case__label { margin-bottom: 10px; }
.case__col p { font-size: 16px; }

/* Почему мы */

/* Для бизнеса */
.b2b__frame { margin-top: 8px; }
.b2b__points { gap: 10px; }
.point.node { padding: 14px 16px 16px; border-top: 1px solid var(--line-2); }
.point.node h3 { font-size: 17px; }
.b2b__fig { margin: 0; }
.fig-cap { margin-top: 18px; font: 12.5px var(--f-mono); color: var(--muted); }

/* Абонементы */
.plan { border-color: var(--line-2); border-radius: 2px; background: var(--card); padding: 18px 18px 20px; }
.plan--featured { border-color: var(--accent-text); }
.plans { gap: 12px; }
.plans__note { margin-top: 18px; }

/* Процесс: узлы на общей шине */
.steps { gap: 12px; margin-top: 26px; position: relative; }
.steps::before { content: ""; position: absolute; top: -14px; left: calc((100% - 3 * 12px) / 8); right: calc((100% - 3 * 12px) / 8); height: 1px; background: var(--line-2); }
.step.node { padding: 14px 16px 18px; border-top: 1px solid var(--line-2); }
.step.node::before { content: ""; position: absolute; left: 50%; top: -14px; width: 1px; height: 14px; background: var(--line-2); }
.step.node:first-child { border-color: var(--accent-text); }
.step__num { font-size: 13px; font-family: var(--f-mono); font-weight: 500; color: var(--accent-text); margin-bottom: 10px; letter-spacing: 0; }
.step.node h3 { font-size: 18px; }
.step.node p { font-size: 14.5px; }

/* Вопросы */
.faq__list.frame { padding-top: 16px; padding-bottom: 4px; }
.faq__list.frame details:last-of-type { border-bottom: 0; }
.faq__list.frame > .frame__bar { margin-bottom: 4px; }
.faq__list.frame details:first-of-type { border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .case { gap: 22px; }
  .case__col:not(:last-child)::after { top: auto; bottom: -23px; right: auto; left: 30px; width: 1px; height: 22px; }
  .case__col:not(:first-child)::before { top: -14px; left: 27px; }
  .steps::before { display: none; }
  .step.node::before { display: none; }
}
@media (max-width: 760px) {
}

/* Форма: шаги как узлы схемы */
.brief legend .mono { border-radius: 2px; border-color: var(--line-2); width: 32px; height: 26px; top: 3px; }
.brief .opt { border-radius: 2px; }

/* Чек оставляем как был: заголовок на Unbounded */
.ticket { --f-head: var(--f-logo); }

/* Раздел «Данные и безопасность» */
.data-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deps a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .data-nodes { grid-template-columns: 1fr; }
}

/* Раздел «Документы и данные» */
.docs-frame { margin-top: 56px; }
.docs-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plans-frame { margin-top: 18px; }
@media (max-width: 1024px) { .docs-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .docs-nodes { grid-template-columns: 1fr; } }

/* ---------- Шапка в стиле схемы ---------- */
.nav a { display: inline-flex; align-items: baseline; gap: 7px; }
.nav a b { color: var(--accent-text); font-weight: 500; font-size: .92em; }
.nav a:hover { color: var(--text); }
.header .logo__pill, .footer .logo__pill { border-radius: 3px; }
.lang { padding: 2px; border-color: var(--line-2); border-radius: 2px; }
.lang button { border-radius: 1px; }
.lang button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
.icon-btn { border-radius: 2px; border-color: var(--line-2); }
.icon-btn:hover { border-color: var(--accent-text); }

/* ---------- Первый экран в стиле «Что умеем» ---------- */
.hero__head { align-items: flex-end; }
.hero__head .hero__title { margin: 0; max-width: 760px; }
.hero__side { max-width: 440px; }
.hero__side .hero__lead { font-size: 18px; margin-bottom: 26px; }
.hero-groups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.hero-run { padding: 0; display: flex; flex-direction: column; }
.hero-run > .frame__bar { padding: 18px 22px 0; margin: 0; }
.hero-run .scheme__body { flex: 1; }
.hero-b2b { display: flex; flex-direction: column; }
.hero-b2b .nodes { gap: 8px; margin-top: auto; }
@media (max-width: 1024px) {
  .hero-groups { grid-template-columns: 1fr; }
  .hero__side { max-width: 620px; }
}
@media (max-width: 760px) {
  .hero { padding: 48px 0 80px; }
}
.hero__head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero__head .hero__title { max-width: none; }
.nav a.nav__mobile-only { display: none; }
@media (max-width: 1024px) {
  .hero__head { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .nav a, .nav a.nav__mobile-only { display: flex; }
  .nav a.nav__mobile-only { color: var(--text) !important; }
}
html[data-theme="light"] .lang button[aria-pressed="true"] { color: #8A360C; }

/* Шапка цветом рамок из «Что забираем на себя» */
.header { border-bottom-color: var(--line-2); }
.lang, .icon-btn { background: var(--oo); }

/* ---------- Заявка в стиле «Что забираем на себя» (чек не трогаем) ---------- */
.brief-card { background: color-mix(in srgb, var(--card) 55%, transparent); border-color: var(--line-2); border-radius: 3px; box-shadow: none; }
.brief-card__bar { padding: 18px 22px 16px; border-bottom-color: var(--line); align-items: flex-start; }
.brief-card__count { margin-left: auto; }
.brief-card__body { padding: 22px 22px 24px; }
.brief { gap: 12px; }
/* шаги: узлы на общем проводе слева */
.brief fieldset { padding: 14px 18px 18px; margin-left: 22px; border: 1px solid var(--line-2); border-radius: 2px; background: var(--card); transition: border-color .3s; }
.brief fieldset.done { border-color: var(--accent-text); }
.brief fieldset::before { left: -23px; top: 22px; bottom: -36px; border-left: 1px solid var(--line-2); }
.brief fieldset::after { content: ""; position: absolute; left: -22px; top: 22px; width: 22px; height: 1px; background: var(--line-2); transition: background .3s; }
.brief fieldset.done::before { border-color: var(--accent-text); }
.brief fieldset.done::after { background: var(--accent-text); }
.brief legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 0; margin-bottom: 14px; font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brief legend + * { clear: both; }
.brief legend .mono { position: static; width: auto; height: auto; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 2px; background: none; color: var(--accent-text); font-size: 12px; font-weight: 500; }
.brief fieldset.done legend .mono { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent-text); color: var(--accent-text); }
.brief__submit, .brief__legal { padding-left: 22px; }
/* варианты ответа как теги */
.opts { gap: 6px; }
.opt { min-height: 38px; padding: 0 12px; border-radius: 2px; border-color: var(--line-2); background: var(--oo); font: 500 13px var(--f-mono); }
.opt:hover { border-color: var(--accent-text); }
.opt[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); border-color: var(--accent-text); }
/* поля */
.field input, .field textarea { border-radius: 2px; border-color: var(--line-2); }
.brief-done__icon { border-radius: 2px; }
html[data-theme="light"] .opt[aria-pressed="true"],
html[data-theme="light"] .brief fieldset.done legend .mono { color: #8A360C; }
@media (max-width: 760px) {
  .brief-card__body { padding: 16px 14px 18px; }
  .brief fieldset { padding: 12px 14px 16px; margin-left: 16px; }
  .brief fieldset::before { left: -17px; }
  .brief fieldset::after { left: -16px; width: 16px; }
  .brief__submit, .brief__legal { padding-left: 16px; }
}

/* ---------- Пункты меню, кнопки первого экрана, сетка заголовков, вложенные рамки ---------- */
@media (min-width: 901px) {
  .nav a span { color: var(--soft-text); font-size: .92em; text-transform: uppercase; letter-spacing: .04em; transition: color .2s; }
  .nav a:hover span { color: var(--text); }
}
.hero__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
/* правая колонка всех заголовков разделов начинается там же, где текст первого экрана */
.section__head--split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.section__head--split .section__sub { max-width: none; }
@media (max-width: 1024px) {
  .section__head--split { grid-template-columns: 1fr; }
  .section__head--split:not(.hero__head) { gap: 18px; }
  .section__head--split .section__sub { max-width: 620px; }
}
.frame--outer .frame { background: var(--frame-in); border-color: var(--line-3); }

/* ---------- Пропорции: сетка 4/8 px, заголовок группы крупнее карточек внутри ---------- */
.frame { padding: 24px; }
.frame--outer .frame { padding: 20px; }
.frame__bar { align-items: center; }
.frame--outer > .frame__bar { padding-bottom: 16px; margin-bottom: 20px; }
.frame__name { font-size: 22px; }
.frame__label { font: 700 18px/1.3 var(--f-body); }
.frame__sub { align-items: flex-start; margin: -8px 0 16px; font: 14px/1.5 var(--f-body); }
.frame__sub::before { flex: none; margin-top: .75em; }
.auto-groups, .svc-groups, .hero-groups { gap: 16px; }
.node__t { margin-bottom: 6px; font-size: 16px; }
.node--sm .node__t { font-size: 15px; }
.node__d { font-size: 14px; }
/* теги карточек одного ряда стоят на одной линии */
.nodes > .node:not(.node--sm) { display: flex; flex-direction: column; }
.nodes > .node:not(.node--sm) > .chips { margin-top: auto; padding-top: 12px; }
.frame--outer .hero-run { padding: 0; }
.hero-run > .frame__bar { padding: 20px 20px 0; }
.faq__list.frame { padding-top: 16px; padding-bottom: 4px; }
@media (max-width: 760px) {
  .frame, .frame--outer .frame { padding: 16px; }
  .frame--outer .hero-run { padding: 0; }
  .hero-run > .frame__bar { padding: 16px 16px 0; }
  .frame__name { font-size: 20px; }
  .frame__label { font-size: 17px; }
}

/* ---------- Крупнее: шире контейнер, больше заголовки, карточки и мелкие подписи ---------- */
/* мелкий текст набран JetBrains Mono, логотип и значки остаются на Ubuntu Sans Mono */
.logo__pill { font-family: "Ubuntu Sans Mono", ui-monospace, monospace; }
.container { width: min(1280px, 100% - 48px); }
body { font-size: 18px; }
.nav { font-size: 15px; gap: 30px; }
@media (min-width: 901px) { .nav a span { font-size: 1em; letter-spacing: .02em; } .nav a b { font-size: 1em; } }
.btn { padding: 15px 26px; font-size: 16px; }
.btn--sm { padding: 12px 22px; font-size: 15px; }
.section__title { font-size: clamp(40px, 4.8vw, 68px); }
.hero__title { font-size: clamp(42px, 5.6vw, 86px); }
html[lang="et"] .hero__title { font-size: clamp(40px, 5.2vw, 80px); }
.section__sub, .hero__side .hero__lead { font-size: 19px; }
.hero__side { max-width: none; }
.sec-head { font-size: 14px; }
/* рамки и карточки */
.frame { padding: 28px; }
.frame--outer .frame { padding: 24px; }
.frame--outer .hero-run { padding: 0; }
.hero-run > .frame__bar { padding: 24px 24px 0; }
.scheme__body { padding: 28px 24px 24px; }
.frame--outer > .frame__bar { padding-bottom: 20px; margin-bottom: 24px; }
.frame__k { font-size: 13px; margin-bottom: 6px; }
.frame__name { font-size: 26px; }
.frame__label { font-size: 21px; }
.frame__sub { font-size: 16px; margin: -6px 0 20px; }
.frame__note { font-size: 17px; }
.auto-groups, .svc-groups, .hero-groups { gap: 20px; }
.nodes { gap: 14px; }
.svc-group .nodes, .hero-b2b .nodes { gap: 10px; }
.node { padding: 18px 20px 20px; }
.node--sm { padding: 15px 18px; }
.node__k { font-size: 13px; margin-bottom: 10px; }
.node__t { font-size: 19px; margin-bottom: 8px; }
.node--sm .node__t { font-size: 17px; }
.node__d { font-size: 16px; line-height: 1.55; }
.node::after { font-size: 14px; top: 14px; right: 14px; }
.chips span, .tagbox { font-size: 13px; }
.tagbox { padding: 6px 10px; }
.frame .tab, .run__tab { font-size: 14px; }
.case__col p { font-size: 18px; }
.step__num { font-size: 14px; }
.step.node h3 { font-size: 21px; }
.step.node p { font-size: 16px; }
.plan__name { font-size: 14px; }
.plan__price span, .svc-extras, .deps li { font-size: 14px; }
.fig-cap { font-size: 14px; }
.faq__list summary { font-size: 20px; padding: 26px 0; }
.faq__list details p { font-size: 17px; }
.field > span { font-size: 13px; }
.opt { min-height: 42px; padding: 0 14px; font-size: 14px; }
.brief legend { font-size: 19px; }
@media (max-width: 760px) {
  body { font-size: 17px; }
  .frame, .frame--outer .frame { padding: 18px; }
  .frame--outer .hero-run { padding: 0; }
  .hero-run > .frame__bar { padding: 18px 18px 0; }
  .frame__name { font-size: 22px; }
  .frame__label { font-size: 19px; }
  .node__t { font-size: 18px; }
  .faq__list summary { font-size: 18px; }
}
/* Martian Mono чуть уже стандартной ширины, чтобы подписи не растягивались; на остальные шрифты не влияет */
html { font-stretch: 87.5%; }
/* у Martian Mono крупные строчные: те же размеры выглядят на ступень больше */
.nav { font-size: 14px; }
.chips span, .tagbox, .node__k { font-size: 12px; }
.chips span { padding: 3px 6px; }
.frame .tab, .run__tab, .opt { font-size: 13px; }
.sec-head { font-size: 13px; }
/* шаги формы без провода слева: блоки, кнопка и согласие выровнены по краю карточки */
.brief fieldset::before, .brief fieldset::after { display: none; }
.brief fieldset { margin-left: 0; }
.brief__submit, .brief__legal { padding-left: 0; }
/* текст о согласии отделён от кнопки, как шаги формы между собой */
.brief__legal { margin-top: 4px; font-size: 14px; max-width: 720px; }
/* Десктоп: весь сайт чуть мельче — как масштаб браузера 93,5%. На планшетах и телефонах размеры прежние */
@media (min-width: 1025px) {
  html { zoom: .935; }
  /* vh внутри zoom тоже уменьшается — возвращаем полную высоту экрана */
  .nf { min-height: calc(100vh / .935); }
}
