/* ------------------------------------------------------------ tokens */
:root {
  --bg: #f7f6f2;
  --bg-2: #efede6;
  --card: #ffffff;
  --ink: #0e0f0c;
  --ink-2: #3c3e38;
  --muted: #5f615a;
  --line: rgb(14 15 12 / .09);
  --line-2: rgb(14 15 12 / .16);
  --accent: #ffd400;
  --accent-2: #ffe766;
  --accent-ink: #0e0f0c;
  --ok: #1f8a4c;
  --dark: #0e0f0c;
  --dark-2: #191a16;
  --dark-3: #24261f;
  --dark-ink: #f4f3ee;
  --dark-muted: #a4a69c;
  --dark-line: rgb(244 243 238 / .1);

  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --shadow-1: 0 1px 2px rgb(14 15 12 / .05), 0 8px 24px -12px rgb(14 15 12 / .18);
  --shadow-2: 0 1px 2px rgb(14 15 12 / .06), 0 24px 60px -24px rgb(14 15 12 / .28);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); text-decoration: none; transition: top 160ms var(--ease-out); }
.skip:focus { top: 12px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(30px, 2.4vw + 18px, 48px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(17px, .4vw + 15px, 20px); line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 3px rgb(255 212 0 / .25); }
.sec { padding-block: clamp(72px, 7vw, 120px); }
.sec-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--row { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 48px; }
@media (max-width: 799px) { .sec-head--row { grid-template-columns: 1fr; } }
.hl { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); padding-inline: .04em; }

/* ------------------------------------------------------------ buttons and links */
.btn { --b-bg: var(--ink); --b-fg: var(--bg); display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
       background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
       transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn--accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 8px 20px -10px rgb(14 15 12 / .5); }
  .btn--accent:hover { --b-bg: #ffdc2e; box-shadow: 0 8px 22px -10px rgb(180 140 0 / .7); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn:hover svg { transform: translateX(3px); }
}
.tlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 240ms var(--ease-out); padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .tlink:hover { background-size: 100% 1.5px; } }

/* ------------------------------------------------------------ reveal on scroll (once, opacity and 14px, never hides content without script) */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(247 246 242 / .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__bar { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.logo__mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.logo__mark::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); }
.nav__links { display: flex; gap: 4px; margin-left: 24px; }
.nav__links a { position: relative; padding: 8px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: rgb(14 15 12 / .06); color: var(--ink); } }
.nav__links a.is-current { color: var(--ink); background: rgb(14 15 12 / .06); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__note { font-size: 13px; color: var(--muted); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgb(14 15 12 / .06); cursor: pointer; place-items: center; }
.nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background-color 160ms ease; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform 240ms var(--ease-out); }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 939px) { .nav__note { display: none; } }
@media (max-width: 859px) {
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gut) 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 4px; border-radius: 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: grid; }
}
@media (max-width: 479px) { .nav__right .btn { padding: 0 14px; } }

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 6vw, 96px); position: relative; overflow: clip; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgb(255 212 0 / .16), transparent 70%); pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__text { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(38px, 3.6vw + 16px, 66px); line-height: 1.02; letter-spacing: -0.035em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__proof { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 32px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.hero__proof dt { font-size: 13px; color: var(--muted); }
.hero__proof dd { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 979px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .hero__proof { grid-template-columns: repeat(2, auto); } }

/* the live monthly report */
.app { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); overflow: hidden; }
.app__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.app__dots { display: flex; gap: 6px; } .app__dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e1da; }
.app__title { font-size: 13px; font-weight: 600; }
.app__tag { margin-left: auto; font-size: 12px; color: var(--muted); padding: 3px 8px; border-radius: 999px; background: var(--bg-2); }
.app__body { padding: 20px; display: grid; gap: 18px; }
.app__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.app__label { font-size: 12px; color: var(--muted); }
.app__big { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.app__big small { font-size: 15px; color: var(--muted); font-weight: 500; }
.meter { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.meter > i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--ink), #3a3c35); transition: width 700ms var(--ease-out); }
.tasks { display: grid; gap: 2px; }
.task { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 10px; border-radius: 10px; transition: background-color 300ms ease; }
.task.is-now { background: rgb(255 212 0 / .14); }
.task__check { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: background-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.task__check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.2; fill: none; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 320ms var(--ease-out) 80ms; }
.task.is-done .task__check { background: var(--ink); box-shadow: none; }
.task.is-done .task__check svg { stroke-dashoffset: 0; }
.task__name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task__meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.task.is-done .task__meta { color: var(--ink); font-weight: 600; }
.app__foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip { padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); display: grid; gap: 2px; }
.chip b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.chip--save { background: var(--accent); }
.chip--save .app__label { color: rgb(14 15 12 / .7); }
.hero__visual { position: relative; padding-bottom: 58px; }
.float { position: absolute; left: -28px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--dark-ink); box-shadow: var(--shadow-2); font-size: 13px; }
.float b { display: block; font-size: 15px; }
.float__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.float__ic svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2; }
@media (max-width: 979px) { .float { left: 16px; } }
@media (max-width: 479px) { .hero__visual { padding-bottom: 0; } .float { position: static; margin-top: 12px; } .app__body { padding: 16px; } }

/* ------------------------------------------------------------ pains */
.pains { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pain { padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.pain h3 { display: flex; align-items: flex-start; gap: 10px; }
.pain__ic { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.pain__ic svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pain p { color: var(--ink-2); font-size: 15px; }
.pain--alert { background: var(--ink); color: var(--dark-ink); box-shadow: none; }
.pain--alert p { color: var(--dark-muted); }
.pain__count { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.pain__count small { font-size: 15px; color: var(--dark-muted); font-weight: 500; letter-spacing: 0; }
@media (max-width: 979px) { .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .pains { grid-template-columns: 1fr; } }
/* icon motion: each draws itself once when it comes into view */
.js .pain [data-draw] { stroke-dasharray: var(--len, 80); stroke-dashoffset: var(--len, 80); transition: stroke-dashoffset 900ms var(--ease-out) .2s; }
.js .pain.is-in [data-draw] { stroke-dashoffset: 0; }

/* ------------------------------------------------------------ services bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; grid-template-rows: auto auto 1fr; gap: 8px; overflow: hidden; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); } }
.tile p { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.tile__ui { margin-top: 16px; align-self: end; }
.tile--a { grid-column: span 4; } .tile--b { grid-column: span 2; } .tile--c { grid-column: span 2; } .tile--d { grid-column: span 4; }
.tile--e { grid-column: span 3; } .tile--f { grid-column: span 3; }
@media (max-width: 979px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { grid-column: span 1 !important; } .tile--a, .tile--d { grid-column: span 2 !important; } }
@media (max-width: 639px) { .bento { grid-template-columns: 1fr; } .tile, .tile--a, .tile--d { grid-column: auto !important; } }

/* tile A: a release update that keeps every modification */
.upd { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.upd__ver { font-size: 13px; color: var(--muted); }
.upd__ver b { display: block; font-size: 17px; color: var(--ink); font-weight: 600; }
.upd__track { position: relative; height: 6px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.upd__track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); border-radius: inherit; }
.mods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mod { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 300ms ease, box-shadow 300ms ease; }
.mod::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color 300ms ease; }
.mod.is-ok { background: #eef7f1; box-shadow: inset 0 0 0 1px rgb(31 138 76 / .25); }
.mod.is-ok::before { background: var(--ok); }
.upd__state { font-size: 13px; font-weight: 600; white-space: nowrap; }

/* tile B: a print form */
.doc { position: relative; height: 150px; border-radius: var(--r-md); background: var(--bg); padding: 16px 18px; display: grid; gap: 7px; align-content: start; overflow: hidden; }
.doc i { display: block; height: 7px; border-radius: 4px; background: var(--bg-2); }
.doc i:nth-child(1) { width: 46%; height: 9px; background: #dedbd2; }
.doc i:nth-child(2) { width: 80%; } .doc i:nth-child(3) { width: 64%; } .doc i:nth-child(4) { width: 90%; } .doc i:nth-child(5) { width: 72%; }
.doc__stamp { position: absolute; right: 14px; bottom: 14px; padding: 6px 10px; border-radius: 8px; background: var(--accent); font-size: 12px; font-weight: 700; transform: rotate(-4deg); }

/* tile C: migration modules */
.modules { display: grid; gap: 8px; }
.modrow { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; align-items: center; }
.modrow .meter { grid-column: 1 / -1; height: 6px; }
.modrow .meter > i { background: var(--ink); }

/* tile D: integrations, lines between 1С and the outside */
.flow { width: 100%; height: auto; display: block; }
.flow--v { display: none; max-width: 340px; margin-inline: auto; }
@media (max-width: 559px) { .flow:not(.flow--v) { display: none; } .flow--v { display: block; } }
.flow .node rect { fill: var(--bg); stroke: var(--line-2); }
.flow .node text { font: 500 13px var(--font); fill: var(--ink); }
.flow .hub rect { fill: var(--ink); stroke: none; }
.flow .hub text { fill: var(--accent); font-weight: 700; font-size: 15px; }
.flow .wire { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.flow .pulse { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 400; stroke-dashoffset: 14; }
.flow .pulse--back { stroke: var(--ink); }
.is-live .flow .pulse { animation: wire-run 3.2s var(--ease-io) infinite; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes wire-run { 0% { stroke-dashoffset: 14; } 60%, 100% { stroke-dashoffset: -400; } }

/* tile E: a question answered */
.chat { display: grid; gap: 8px; }
.bub { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bub--q { justify-self: end; background: var(--ink); color: var(--dark-ink); border-bottom-right-radius: 6px; }
.bub--a { background: var(--bg); border-bottom-left-radius: 6px; }
.bub__who { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--bg); width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.2s ease-in-out 2; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* tile F: a CRM funnel */
.funnel { display: grid; gap: 8px; }
.fun { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; font-size: 13px; }
.fun__bar { height: 26px; border-radius: 8px; background: var(--bg-2); overflow: hidden; }
.fun__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width 900ms var(--ease-out); }
.fun:last-child .fun__bar i { background: var(--accent); }
.is-in .fun__bar i { width: var(--w); }
.fun b { font-weight: 600; min-width: 2.5ch; text-align: right; }

/* ------------------------------------------------------------ prices and calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.calc__in { padding: clamp(24px, 3vw, 40px); display: grid; gap: 24px; align-content: start; }
.calc__out { padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--dark-ink); display: grid; gap: 20px; align-content: start; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc__hours { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.calc__hours small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) var(--p), var(--bg-2) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--bg-2); }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--card), 0 2px 10px rgb(14 15 12 / .35); transition: transform 160ms var(--ease-out); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--card), 0 2px 10px rgb(14 15 12 / .35); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--ink); }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -12px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out); }
.preset:active { transform: scale(.97); }
.preset[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .preset:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.vs { display: grid; gap: 14px; }
.vs__line { display: grid; gap: 8px; }
.vs__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dark-muted); }
.vs__top b { color: var(--dark-ink); font-size: 18px; font-weight: 600; }
.vs__bar { height: 12px; border-radius: 999px; background: var(--dark-3); overflow: hidden; }
.vs__bar i { display: block; height: 100%; border-radius: inherit; background: #5d6056; width: 100%; transition: width 500ms var(--ease-out); }
.vs__line--us .vs__bar i { background: var(--accent); }
.save { padding-top: 20px; border-top: 1px solid var(--dark-line); display: grid; gap: 4px; }
.save__big { font-size: clamp(34px, 2.4vw + 18px, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent); }
.save__sub { color: var(--dark-muted); font-size: 14px; }
.calc__note { font-size: 13px; color: var(--dark-muted); }
@media (max-width: 859px) { .calc { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.plan { padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 6px; align-content: start; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .plan:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); } }
.plan__name { font-weight: 600; }
.plan__desc { font-size: 14px; color: var(--muted); }
.plan__price { margin-top: 14px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.plan__old { font-size: 14px; color: var(--muted); }
.plan__old s { text-decoration-thickness: 1.5px; }
.plan--best { background: var(--accent); box-shadow: none; }
.plan--best .plan__desc, .plan--best .plan__old { color: rgb(14 15 12 / .7); }
.plan__badge { justify-self: start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--accent); margin-bottom: 8px; }
.plan .btn { margin-top: 16px; justify-self: start; }
@media (max-width: 859px) { .plans { grid-template-columns: 1fr; } }

.compare { margin-top: 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); align-items: center; font-size: 15px; }
.compare__row:first-child { border-top: 0; font-size: 13px; color: var(--muted); background: #fbfaf7; }
.compare__row > :first-child { font-weight: 600; }
.compare__row > :nth-child(2) { color: var(--muted); }
.compare__row > :nth-child(3) { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.compare__row > :nth-child(3)::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%230e0f0c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.compare__row:first-child > :nth-child(3)::before { content: none; }
.compare__row:first-child > :nth-child(3) { color: var(--ink); font-weight: 700; }
@media (max-width: 639px) {
  .compare__row { grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 14px 18px; }
  .compare__row > :first-child { grid-column: 1 / -1; }
  .compare__row:first-child { display: none; }
  .compare__row > :nth-child(2)::before { content: "Франчайзи: "; }
}

/* ------------------------------------------------------------ ERP band (dark) */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .lead, .dark .muted { color: var(--dark-muted); }
.dark .eyebrow { color: var(--dark-muted); }
.erp__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cd { padding: 16px; border-radius: var(--r-md); background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); }
.cd b { display: block; font-size: clamp(30px, 2vw + 14px, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.cd span { font-size: 13px; color: var(--dark-muted); }
.countdown__cap { grid-column: 1 / -1; font-size: 14px; color: var(--dark-muted); }
@media (max-width: 859px) { .erp__top { grid-template-columns: 1fr; } }

.road { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.road__line { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--dark-3); }
.road__line i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--accent); transition: width 200ms linear; }
.stage { position: relative; display: grid; gap: 12px; align-content: start; }
.stage__dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--dark-2); box-shadow: inset 0 0 0 1.5px var(--dark-3); font-weight: 700; color: var(--dark-muted); transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out); }
.stage.is-on .stage__dot { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 6px rgb(255 212 0 / .14); transform: scale(1.04); }
.stage h3 { font-size: 18px; }
.stage__mods { display: flex; flex-wrap: wrap; gap: 6px; }
.stage__mods span { font-size: 13px; padding: 5px 10px; border-radius: 999px; background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); color: var(--dark-muted); transition: color 300ms ease, box-shadow 300ms ease; }
.stage.is-on .stage__mods span { color: var(--dark-ink); box-shadow: inset 0 0 0 1px rgb(255 212 0 / .45); }
@media (max-width: 859px) {
  .road { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .road__line { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .road__line i { inset: 0 0 auto 0; width: 100%; height: var(--p, 0%); transition: height 200ms linear; }
  .stage { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .stage > :not(.stage__dot) { grid-column: 2; }
  .stage__dot { grid-row: 1 / span 3; }
}

.mig { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mig__card { padding: 24px; border-radius: var(--r-lg); background: var(--dark-2); box-shadow: inset 0 0 0 1px var(--dark-line); display: grid; gap: 4px; align-content: start; }
.mig__vol { font-size: 13px; color: var(--dark-muted); }
.mig__name { font-weight: 600; font-size: 17px; }
.mig__price { margin-top: 16px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.mig__old { font-size: 14px; color: var(--dark-muted); }
.mig__old s { text-decoration-thickness: 1.5px; }
@media (max-width: 859px) { .mig { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ cases */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: grid; grid-template-rows: auto 1fr; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.case__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .case:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); } .case:hover .case__img img { transform: scale(1.03); } }
.case__body { padding: 22px 24px 26px; display: grid; gap: 10px; align-content: start; }
.case__tag { font-size: 13px; color: var(--muted); }
.case__metric { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); }
.case__metric b { white-space: nowrap; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.case__metric span { font-size: 14px; color: var(--muted); }
.case p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 979px) { .cases { grid-template-columns: 1fr; } .case { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: none; } .case__img { aspect-ratio: auto; height: 100%; min-height: 220px; } }
@media (max-width: 559px) { .case { grid-template-columns: 1fr; } .case__img { aspect-ratio: 16 / 9; height: auto; min-height: 0; } }

/* ------------------------------------------------------------ steps + form */
.start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { display: grid; gap: 0; counter-reset: s; margin-top: 32px; }
.step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 18px; padding-bottom: 26px; }
.step::before { counter-increment: s; content: counter(s); grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--card); box-shadow: 0 0 0 1px var(--line); position: relative; z-index: 1; transition: background-color 300ms ease; }
.step.is-in::before { background: var(--accent); box-shadow: none; }
.step::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.step:last-child::after { content: none; }
.step h3 { font-size: 17px; align-self: center; }
.step p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
.form { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-2); display: grid; gap: 16px; position: sticky; top: 92px; }
.form h3 { font-size: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select { height: 50px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); font-size: 16px; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%230e0f0c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; }
@media (hover: hover) and (pointer: fine) { .field input:hover, .field select:hover { border-color: rgb(14 15 12 / .4); } }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--ink); background-color: var(--card); box-shadow: 0 0 0 4px rgb(255 212 0 / .45); }
.field input[aria-invalid="true"] { border-color: #c2341b; box-shadow: 0 0 0 4px rgb(194 52 27 / .12); }
.field__err { font-size: 13px; font-weight: 500; color: #b02e17; }
.form .btn { width: 100%; height: 54px; font-size: 16px; }
.form__fine { font-size: 13px; color: var(--muted); }
.form__status { font-size: 14px; font-weight: 500; min-height: 1.4em; }
.form__status:empty { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form__status.is-ok { color: var(--ok); }
.assure { display: grid; gap: 10px; padding-top: 4px; font-size: 14px; color: var(--ink-2); }
.assure li { display: flex; gap: 10px; }
.assure li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%230e0f0c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 859px) { .start { grid-template-columns: 1fr; } .form { position: static; } }

/* ------------------------------------------------------------ faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: start; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2.5v7M2.5 6h7' fill='none' stroke='%230e0f0c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform 240ms var(--ease-out), background-color 160ms ease; }
.qa[open] summary::after { transform: rotate(45deg); background-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover::after { background-color: #e5e2d9; } .qa[open] summary:hover::after { background-color: var(--accent); } }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 48px 22px 0; color: var(--ink-2); }
@media (max-width: 859px) { .faq { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ close + footer */
.close { border-radius: var(--r-xl); background: var(--ink); color: var(--dark-ink); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px 48px; align-items: center; position: relative; overflow: hidden; }
.close::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 56px solid var(--accent); opacity: .9; }
.close > * { position: relative; z-index: 1; }
.close h2 { font-size: clamp(28px, 2vw + 16px, 44px); }
.close p { color: var(--dark-muted); margin-top: 12px; max-width: 52ch; }
@media (max-width: 799px) { .close { grid-template-columns: 1fr; } .close::after { width: 200px; height: 200px; border-width: 32px; right: -90px; top: auto; bottom: -110px; } }
.foot { padding: 48px 0 40px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.foot h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.foot ul { display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } }
.foot__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 799px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ reduced motion: everything rests, nothing stays hidden */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .pain [data-draw] { stroke-dashoffset: 0; }
}

/* ============================================================ inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { opacity: .5; }
.phero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); position: relative; overflow: clip; }
.phero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; z-index: -1; background: radial-gradient(closest-side, rgb(255 212 0 / .14), transparent 70%); pointer-events: none; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.phero h1 { font-size: clamp(36px, 3vw + 18px, 60px); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 20px; }
.phero__aside { display: grid; gap: 12px; }
@media (max-width: 859px) { .phero__grid { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 18px; border-radius: var(--r-md); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.kpi b { display: block; white-space: nowrap; font-size: clamp(22px, 1.1vw + 13px, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi--accent { background: var(--accent); box-shadow: none; }
.kpi--accent span { color: rgb(14 15 12 / .7); }
@media (max-width: 479px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > :last-child { grid-column: 1 / -1; } }

/* service detail rows */
.svc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 64px; padding-block: 40px; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__num { font-size: 14px; font-weight: 600; color: var(--muted); }
.svc h2 { font-size: clamp(26px, 1.4vw + 16px, 36px); margin-top: 8px; }
.svc__body { display: grid; gap: 16px; align-content: start; }
.svc__body > p { color: var(--ink-2); font-size: 17px; }
.ticks-list { display: grid; gap: 10px; }
.ticks-list li { display: flex; gap: 12px; align-items: flex-start; }
.ticks-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%230e0f0c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.svc__cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 8px; }
.svc__price { font-weight: 600; }
@media (max-width: 859px) { .svc { grid-template-columns: 1fr; } }

/* case pages */
.case-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-2); }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .case-photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); } }
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 64px; padding-block: 40px; border-top: 1px solid var(--line); }
.story h2 { font-size: clamp(24px, 1vw + 16px, 30px); }
.story__body { display: grid; gap: 16px; font-size: 17px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.chips span.is-key { background: var(--accent); box-shadow: none; }
@media (max-width: 859px) { .story { grid-template-columns: 1fr; } }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: t; }
.timeline li { position: relative; padding: 18px; border-radius: var(--r-md); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 6px; align-content: start; font-size: 15px; color: var(--ink-2); }
.timeline li::before { counter-increment: t; content: "Этап " counter(t); font-size: 13px; font-weight: 600; color: var(--muted); }
.timeline li b { color: var(--ink); font-size: 16px; }
.timeline li.is-key { background: var(--ink); color: var(--dark-muted); box-shadow: none; }
.timeline li.is-key b { color: var(--dark-ink); }
.timeline li.is-key::before { color: var(--accent); }
@media (max-width: 859px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .timeline { grid-template-columns: 1fr; } }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.more a { display: grid; gap: 4px; padding: 24px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.more a span { font-size: 13px; color: var(--muted); }
.more a b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) { .more a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); } }
@media (max-width: 639px) { .more { grid-template-columns: 1fr; } }
a.case { text-decoration: none; color: inherit; }
.case__more { margin-top: 6px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.case__more svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.case:hover .case__more svg { transform: translateX(3px); } }

/* faq groups */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(24px, 1vw + 16px, 30px); margin-bottom: 12px; }

/* contacts */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ccard { padding: 20px; border-radius: var(--r-lg); background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 4px; }
.ccard span { font-size: 13px; color: var(--muted); }
.ccard b { font-size: 17px; font-weight: 600; }
.ccard--wide { grid-column: 1 / -1; }
@media (max-width: 859px) { .contacts { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .cards-2 { grid-template-columns: 1fr; } }

/* legal text */
.prose { max-width: 68ch; display: grid; gap: 14px; color: var(--ink-2); font-size: 16px; }
.prose h2 { font-size: 22px; color: var(--ink); margin-top: 24px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.prose a { text-underline-offset: 3px; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.nf__code { font-size: clamp(96px, 14vw, 180px); font-weight: 700; letter-spacing: -0.06em; line-height: .9; }
.nf__code span { display: inline-block; width: .62em; height: .62em; border-radius: 50%; border: .14em solid var(--accent); vertical-align: -.02em; }
.nf p { margin: 16px auto 28px; max-width: 44ch; color: var(--ink-2); }
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.nav__links a[aria-current="page"] { color: var(--ink); background: rgb(14 15 12 / .06); }
.form__fine a { color: inherit; text-underline-offset: 2px; }

.phero .countdown__cap { color: var(--muted); }
.timeline--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 479px) { .timeline--2 { grid-template-columns: 1fr; } }

/* consent checkbox (152-ФЗ: a separate, unticked consent) */
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start; font-size: 14px; color: var(--ink-2); }
.consent input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; display: grid; place-items: center; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.consent input::after { content: ""; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%230e0f0c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: scale(.6); transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out); }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { opacity: 1; transform: none; }
.consent input:active { transform: scale(.94); }
.consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: #c2341b; box-shadow: 0 0 0 4px rgb(194 52 27 / .12); }
@media (hover: hover) and (pointer: fine) { .consent input:hover { border-color: var(--ink); } }
.consent label { cursor: pointer; line-height: 1.45; }
.consent a { color: var(--ink); text-underline-offset: 2px; }
.consent .field__err { grid-column: 2; }
mark.todo { background: var(--accent); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 600; }

.prose li, .prose p { text-wrap: pretty; }

/* Яндекс Метрика consent bar */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin-inline: auto; display: flex; align-items: center; gap: 16px 24px;
  padding: 16px 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--dark-ink); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(12px); transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie p { font-size: 14px; color: var(--dark-muted); }
.cookie a { color: var(--dark-ink); text-underline-offset: 2px; }
.cookie__btns { display: flex; gap: 8px; flex: none; }
.cookie .btn--ghost { --b-fg: var(--dark-ink); box-shadow: inset 0 0 0 1px var(--dark-line); }
@media (hover: hover) and (pointer: fine) { .cookie .btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--dark-ink); } }
@media (max-width: 639px) { .cookie { flex-direction: column; align-items: stretch; } .cookie__btns > .btn { flex: 1; } }
.btn:disabled { opacity: .5; cursor: default; }

/* large screens: the whole layout scales up in proportion instead of sitting in a narrow column */
@media (min-width: 1560px) { body { zoom: 1.1; } }
@media (min-width: 1720px) { body { zoom: 1.2; } }
@media (min-width: 1880px) { body { zoom: 1.25; } }
@media (min-width: 2100px) { body { zoom: 1.4; } }
@media (min-width: 2400px) { body { zoom: 1.6; } }
@media (min-width: 2800px) { body { zoom: 1.85; } }
@media (min-width: 3400px) { body { zoom: 2.2; } }
