/* Versta's self-hosted fonts (copied from assets/template/fonts/, same files as
   verstalabs.ru). Manrope and Space Grotesk files are variable, so one file per
   subset serves every weight. Space Grotesk and Space Mono have no Cyrillic:
   Onest and JetBrains Mono cover it per character, exactly as on the live site. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/manrope-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/space-grotesk-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/space-grotesk-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/onest-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/onest-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/onest-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/onest-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/space-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/space-mono-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/jetbrains-mono-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/jetbrains-mono-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* VERSTA homepage rebuild — 10.11.2026. Colours, fonts and radii are the verified
   VERSTA tokens; layout, rhythm and motion are new. See DESIGN.md. */

:root {
  --paper: #f4f4f1; --surface: #ffffff; --surface-2: #fbfbf9;
  --ink: #0c0d10; --muted: #5c6069; --line: #e6e6e1; --hair: rgba(12, 13, 16, .13);
  --accent: #2540ff;
  --lime: #cdf522; --lime-ink: #0c0d10;
  --panel: #101218; --panel-ink: #f2f2ef; --panel-muted: #9a9ea7; --panel-line: rgba(242, 242, 239, .14);
  --fd: 'Space Grotesk', 'Onest', system-ui, sans-serif;
  --fb: 'Manrope', system-ui, sans-serif;
  --fm: 'Space Mono', 'JetBrains Mono', ui-monospace, monospace;
  --gut: clamp(16px, 4.4vw, 64px);
  --sec: clamp(72px, 9vw, 148px);
  --hd: 64px;
  --r-card: 20px; --r-panel: 30px; --r-pill: 44px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0a0b0d; --surface: #121317; --surface-2: #15171c;
  --ink: #f2f2ef; --muted: #9a9ea7; --line: #23262d; --hair: rgba(242, 242, 239, .14);
  --accent: #8094ff;
  --panel: #15171c; --panel-line: rgba(242, 242, 239, .12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--fb); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--lime-ink); }

.wrap { max-width: 1680px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.ar { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.ar--up { transform: rotate(-45deg); }
.ar--down { transform: rotate(90deg); }

.kicker { font: 500 15px/1.3 var(--fd); color: var(--muted); }
.h2 { font: 600 clamp(34px, 4.6vw, 80px)/1.02 var(--fd); letter-spacing: -.035em; text-wrap: balance; }
.h3 { font: 600 clamp(24px, 2.2vw, 36px)/1.1 var(--fd); letter-spacing: -.025em; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: var(--r-pill); background: var(--lime); color: var(--lime-ink); font: 600 16px/1 var(--fd); white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover .ar { transform: translateX(3px); }
.btn:hover .ar--up { transform: rotate(-45deg) translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ink { background: #0c0d10; color: #f4f4f1; }
.btn--ink:hover { background: #fff; color: #0c0d10; }
.btn--lineink { background: none; color: #0c0d10; box-shadow: inset 0 0 0 1.5px #0c0d10; }
.btn--lineink:hover { background: #0c0d10; color: #f4f4f1; }

.lnk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 16px/1.2 var(--fd); color: var(--ink); background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(50% + 14px) / 100% 1.5px; transition: background-size .3s var(--ease); }
.lnk:hover { background-size: 0 1.5px; background-position: 100% calc(50% + 14px); }
.lnk:hover .ar { transform: translateX(4px); }
.lnk:hover .ar--down { transform: rotate(90deg) translateX(4px); }
.lnk--on { color: var(--panel-ink); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.is-stuck { border-bottom-color: var(--hair); }
.hd-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 3px; min-height: 44px; padding-top: 11px; font: 700 21px/1 var(--fd); letter-spacing: .01em; }
.logo i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(12, 13, 16, .22); }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav-g { position: relative; }
.nav-l { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 13px; border-radius: 10px; font: 500 15px/1 var(--fd); transition: background-color .15s; }
.nav-l:hover, .nav-l[aria-expanded="true"] { background: var(--hair); }
.caret { width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
[aria-expanded="true"] > .caret { transform: rotate(225deg); margin-top: 3px; }
.drop { position: absolute; left: 0; top: calc(100% + 8px); min-width: 264px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .2s var(--ease), visibility 0s .2s; }
.drop--wide { min-width: 344px; left: auto; right: 0; }
.nav-g.is-open .drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop a { display: block; padding: 10px 12px; border-radius: 10px; }
.drop a:hover { background: var(--paper); }
.drop b { display: block; font: 500 15px/1.3 var(--fd); }
.drop span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.hd-act { display: flex; align-items: center; gap: 8px; }
.ico-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color .15s; }
.ico-btn:hover { background: var(--hair); }
.btn .short { display: none; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 8px; font: 500 15px/1 var(--fd); }
.menu-btn i { position: relative; width: 22px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 8.5px; }
.menu-btn.is-open i::before { top: 4px; transform: rotate(45deg); }
.menu-btn.is-open i::after { top: 4px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu-in { min-height: 100%; display: flex; flex-direction: column; padding-bottom: 28px; }
.menu-top { height: var(--hd); display: flex; align-items: center; justify-content: space-between; }
.menu-top .menu-btn { display: inline-flex; }
.menu-nav { display: grid; margin-top: 12px; border-top: 1px solid var(--hair); }
.menu-nav a { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--hair); font: 600 28px/1.1 var(--fd); letter-spacing: -.02em; }
.menu-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 16px; }
.menu-sub a { display: flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.25; color: var(--muted); }
.menu-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 14px; }
.menu-foot .btn { width: 100%; }
.menu-contacts { display: flex; flex-wrap: wrap; gap: 0 20px; }
.menu-contacts a { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px/1 var(--fd); }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - var(--hd)); display: flex; }
.hero > .wrap { width: 100%; display: flex; flex-direction: column; padding-top: clamp(28px, 7vh, 84px); padding-bottom: clamp(20px, 3.4vh, 36px); }
.hero-h { margin-top: clamp(14px, 2.2vh, 24px); font: 600 clamp(56px, 7.6vw, 132px)/1 var(--fd); letter-spacing: -.045em; }
.hero-h .ln { display: block; }
.hl { margin-inline: -.05em; padding-inline: .05em; background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 58% / 0% 80%; animation: hl .65s .7s var(--ease) forwards; }
@keyframes hl { to { background-size: 100% 80%; color: var(--lime-ink); } }
.hero-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(24px, 4vw, 72px); align-items: end; margin-top: clamp(24px, 4.4vh, 52px); }
.hero-lead { max-width: 34em; font-size: clamp(18px, 1.42vw, 23px); line-height: 1.45; text-wrap: pretty; }
.hero-cta { display: grid; gap: 14px; justify-items: start; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 22px; font: 500 14px/1.4 var(--fd); color: var(--muted); }
.facts li { position: relative; }
.facts li + li::before { content: ''; position: absolute; left: -12px; top: .62em; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.hero-k, .hero-h .ln, .hero-row, .route { animation: rise .8s var(--ease) both; }
.hero-h .ln:nth-child(1) { animation-delay: .06s; }
.hero-h .ln:nth-child(2) { animation-delay: .14s; }
.hero-row { animation-delay: .26s; }
.route { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* route: the brand dot travels one process, input → result */
.route { margin-top: auto; padding-top: clamp(28px, 5vh, 64px); }
.route-top { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.route-t { font: 500 15px/1.3 var(--fd); color: var(--muted); margin-right: 4px; }
.route-pick { display: flex; gap: 2px; }
.route-pick button, .tabs button { min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font: 500 15px/1 var(--fd); color: var(--muted); transition: color .2s, background-color .2s; }
.route-pick button:hover, .tabs button:hover { color: var(--ink); }
.route-pick button[aria-pressed="true"] { color: var(--ink); background: var(--hair); }
.route-pause { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; margin-left: auto; color: var(--muted); }
.route-pause:hover { color: var(--ink); background: var(--hair); }
.route-pause i { width: 10px; height: 12px; border: solid currentColor; border-width: 0 3px; }
.route-pause[aria-pressed="true"] i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.route-body { position: relative; margin-top: 14px; }
.route-line { position: relative; height: 2px; background: var(--hair); }
.route-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 0; }
.route-dot { position: absolute; left: -9px; top: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); will-change: transform; z-index: 1; }
.route-stops { display: grid; grid-template-columns: repeat(3, 1fr); }
.route-stops li { position: relative; padding: 20px 20px 0 0; display: grid; gap: 4px; align-content: start; }
.route-stops li::before { content: ''; position: absolute; left: 0; top: -2px; width: 2px; height: 12px; background: var(--ink); opacity: .3; transition: opacity .3s; }
.route-stops span { font: 500 13px/1.3 var(--fd); color: var(--muted); }
.route-stops b { font: 500 clamp(17px, 1.5vw, 23px)/1.22 var(--fd); letter-spacing: -.015em; color: var(--muted); transition: color .35s, opacity .25s; }
.route-stops li.on b { color: var(--ink); }
.route-stops li.on::before { opacity: 1; }
.route.swap .route-stops b { opacity: 0; }
.route .route-more { margin-left: auto; }
.route .route-pause { margin-left: 0; }

/* ---------- section head ---------- */
section { padding-block: var(--sec) 0; }
.pr, .ct { padding-block: var(--sec); }
.cs, .cl { padding-bottom: var(--sec); }
.hero { padding-block: 0; }
.sh { display: grid; gap: 12px; margin-bottom: clamp(32px, 4.4vw, 68px); }
.sh--row { grid-template-columns: 1fr auto; align-items: end; }
.sh--row > div { display: grid; gap: 12px; }
.sh .lnk { justify-self: start; }
.sh--row > .lnk { justify-self: end; }

/* ---------- how ---------- */
.how { padding-top: clamp(64px, 7vw, 112px); }
.tabs { display: inline-flex; gap: 2px; margin-top: 12px; padding: 4px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hair); justify-self: start; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; min-height: clamp(300px, 24vw, 380px); padding: clamp(20px, 2vw, 32px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hair); }
.step { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); font: 500 15px/1 var(--fd); }
.card--out .step { border-bottom-color: var(--panel-line); }
.step span { font: 400 13px/1 var(--fm); color: var(--muted); }
.card > :nth-child(2) { margin-top: 24px; }
.card-l { font: 500 14px/1.3 var(--fd); color: var(--muted); }
.card-m { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hair); font: 500 14px/1.3 var(--fd); color: var(--muted); }
.quote { margin-top: 10px; margin-bottom: 20px; font: 500 clamp(21px, 1.9vw, 30px)/1.2 var(--fd); letter-spacing: -.02em; text-wrap: balance; }
.card-h { font: 600 clamp(21px, 1.9vw, 30px)/1.15 var(--fd); letter-spacing: -.02em; }
.card-h--lg { margin-top: 10px; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.card-t { margin-top: 14px; margin-bottom: 20px; font-size: 16px; line-height: 1.5; color: var(--panel-muted); }
.fields { margin-top: 20px; }
.fields > div { display: grid; grid-template-columns: minmax(96px, .8fr) 1.2fr 18px; gap: 12px; align-items: center; min-height: 50px; border-top: 1px solid var(--hair); }
.fields dt { font-size: 14px; color: var(--muted); }
.fields dd { font: 500 16px/1.25 var(--fd); }
.ck { width: 18px; height: 18px; color: var(--accent); }
.card--out { background: var(--panel); color: var(--panel-ink); border-color: transparent; }
.card--out .step span, .card--out .card-l { color: var(--panel-muted); }
.status { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--panel-line); font: 500 14px/1.3 var(--fd); }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.demo [data-f], .demo .quote { transition: opacity .2s, transform .3s var(--ease); }
.demo.swap [data-f], .demo.swap .quote { opacity: 0; transform: translateY(6px); }
.demo .card--ai [data-f] { transition-delay: .07s; }
.demo .card--out [data-f] { transition-delay: .14s; }
.how-lead { max-width: 40em; color: var(--muted); }
@media not (hover: hover) { .hover-only { display: none; } }
.demo { position: relative; }
.demo .card { position: relative; transition: opacity .5s var(--ease), box-shadow .3s; }
.demo .card + .card::before { content: ''; position: absolute; z-index: 1; left: -25px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4 12.5 8l-4 4' fill='none' stroke='%235c6069' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border: 1px solid var(--hair); }
.quote mark { color: inherit; padding: 0 .08em; margin: 0 -.08em; border-radius: .12em; background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 50% / 0% 100%; transition: background-size .45s var(--ease), color .3s, opacity .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.quote mark.on { background-size: 100% 100%; color: var(--lime-ink); }
.fields > div { position: relative; transition: background-color .2s; }
.fields > div::before { content: ''; position: absolute; inset: 0 -12px; border-radius: 10px; background: var(--hair); opacity: 0; transition: opacity .2s; pointer-events: none; }
.fields dd, .ck { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.demo.seq .fields > div:not(.on) dd { opacity: 0; transform: translateY(6px); }
.demo.seq .fields > div:not(.on) .ck { opacity: 0; transform: scale(.4); }
.demo.seq .card--out:not(.on) { opacity: .38; }
.demo.seq .card--out:not(.on) .status i { background: var(--panel-muted); }
.demo .card--out.on .status i { animation: ping 1s var(--ease) 1; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(205, 245, 34, .7); } 100% { box-shadow: 0 0 0 12px rgba(205, 245, 34, 0); } }
@media (hover: hover) {
  .fields > div[data-linked]:hover::before { opacity: 1; }
  .demo[data-focus] .quote mark.on { background-size: 0% 100%; color: inherit; }
  .demo[data-focus="0"] .quote mark[data-k="0"], .demo[data-focus="1"] .quote mark[data-k="1"], .demo[data-focus="2"] .quote mark[data-k="2"] { background-size: 100% 100%; color: var(--lime-ink); }
}
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 14px; }
.demo-replay { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font: 500 15px/1 var(--fd); box-shadow: inset 0 0 0 1px var(--hair); transition: background-color .2s; }
.demo-replay:hover { background: var(--hair); }
.demo-replay:hover svg { transform: rotate(-90deg); }
.demo-replay svg { transition: transform .4s var(--ease); }
.demo-note { font-size: 15px; color: var(--muted); }
.demo-note span { color: var(--ink); }

/* ---------- services ---------- */
.sv-list { border-top: 1px solid var(--ink); }
.sv-list a { display: grid; grid-template-columns: 72px minmax(0, 7fr) minmax(0, 5fr) 24px; gap: 0 24px; align-items: start; padding: clamp(24px, 2.8vw, 44px) 0; border-bottom: 1px solid var(--hair); transition: border-color .2s; }
.sv-n { padding-top: .9em; font: 400 13px/1 var(--fm); color: var(--muted); }
.sv-name { font: 600 clamp(30px, 4vw, 72px)/1 var(--fd); letter-spacing: -.04em; transition: transform .35s var(--ease); }
.sv-d { max-width: 34em; padding-top: .35em; font-size: 17px; line-height: 1.55; color: var(--muted); transition: color .2s; }
.sv-a { width: 24px; height: 24px; margin-top: .8em; }
.sv-list a:hover { border-bottom-color: var(--ink); }
.sv-list a:hover .sv-name { transform: translateX(14px); }
.sv-list a:hover .sv-d { color: var(--ink); }
.sv-list a:hover .sv-a { transform: rotate(-45deg) translateX(5px); color: var(--accent); }
.sv-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 28px; font-size: 17px; }
.sv-ask b { font: 600 17px/1.3 var(--fd); }
.sv-ask span { color: var(--muted); }

/* ---------- cases (markup shared with the Dolibarr «Избранные кейсы» publisher) ---------- */
.case-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(16px, 2vw, 32px); }
.case-card { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 20px; }
.case-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.case-card:first-child .case-media { grid-column: 1; grid-row: 1; }
.case-card:first-child .case-info { grid-column: 2; grid-row: 1; padding-bottom: 8px; }
.case-card:last-child:nth-child(even) { grid-column: 1 / -1; }
.case-media { overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--surface); aspect-ratio: 16 / 9; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .8s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.03); }
.case-info { display: grid; gap: 10px; align-content: start; }
.case-top { display: flex; gap: 0 14px; font: 500 14px/1.3 var(--fd); color: var(--muted); }
.case-num { font: 400 13px/1.45 var(--fm); }
.case-title { font: 600 clamp(28px, 3vw, 52px)/1.02 var(--fd); letter-spacing: -.035em; }
.case-card:first-child .case-title { font-size: clamp(32px, 4vw, 68px); }
.case-title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-card); }
.case-text { max-width: 36em; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 0 18px; font: 400 13px/1.4 var(--fm); color: var(--muted); }
.case-go { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; font: 500 15px/1.2 var(--fd); transition: color .2s; }
.case-card:hover .case-go { color: var(--accent); }
/* phone version of the same block (m/index.html) */
.mrail { display: grid; gap: 40px; }
.mstack-link { display: grid; gap: 8px; }
.mstack-media { display: block; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--surface); aspect-ratio: 16 / 9; margin-bottom: 8px; }
.mstack-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.mstack-top { display: flex; gap: 0 14px; font: 500 14px/1.3 var(--fd); color: var(--muted); }
.mstack-top b { font: 400 13px/1.45 var(--fm); }
.mstack-t { font: 600 30px/1.05 var(--fd); letter-spacing: -.03em; }
.mstack-d { color: var(--muted); }
.mstack-tags { display: flex; flex-wrap: wrap; gap: 0 18px; font: 400 13px/1.4 var(--fm); color: var(--muted); }

/* ---------- about + process: dark panel ---------- */
.pr { margin-inline: clamp(8px, 1.1vw, 16px); border-radius: var(--r-panel); background: var(--panel); color: var(--panel-ink); }
.pr :focus-visible, .ft :focus-visible { outline-color: var(--lime); }
.kicker--on { color: var(--panel-muted); }
.pr-top { display: grid; gap: 24px; justify-items: start; }
.pr-say { max-width: 21em; font: 500 clamp(27px, 3.5vw, 62px)/1.1 var(--fd); letter-spacing: -.035em; text-wrap: pretty; }
.pr-say mark { background: var(--lime); color: var(--lime-ink); padding: 0 .12em; border-radius: .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pr-h { margin-top: clamp(64px, 8vw, 128px); max-width: 20em; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; margin-top: 32px; border-top: 1px solid var(--panel-line); }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: 0 0; transition: transform 1.6s var(--ease) .2s; }
.steps.in::before { transform: none; }
.steps li { padding-top: 24px; display: grid; gap: 10px; align-content: start; }
.steps-n { font: 400 13px/1 var(--fm); color: var(--lime); }
.steps h3 { font: 600 clamp(18px, 1.45vw, 23px)/1.18 var(--fd); letter-spacing: -.015em; }
.steps p { font-size: 15px; line-height: 1.5; color: var(--panel-muted); }

/* ---------- calculator ---------- */
.cl-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(24px, 4vw, 72px); align-items: end; }
.cl-a { display: grid; gap: 16px; justify-items: start; }
.cl-t { max-width: 36em; color: var(--muted); }
.cl-a .btn { margin-top: 12px; }
.cl-b { padding: clamp(22px, 2.2vw, 36px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hair); }
.cl-k { font: 500 14px/1.3 var(--fd); color: var(--muted); }
.cl-term { margin-top: 8px; font: 600 clamp(32px, 3.6vw, 60px)/1 var(--fd); letter-spacing: -.04em; }
.cl-rows { margin-top: 24px; }
.cl-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
.cl-rows dt { color: var(--muted); }
.cl-rows dd { font: 500 17px/1.4 var(--fd); }

/* ---------- contact: lime panel ---------- */
.ct { margin-inline: clamp(8px, 1.1vw, 16px); border-radius: var(--r-panel); background: var(--lime); color: #0c0d10; }
.ct :focus-visible { outline-color: #0c0d10; }
.kicker--lime { color: rgba(12, 13, 16, .72); }
.ct-h { margin-top: 16px; font: 600 clamp(42px, 7.4vw, 136px)/.98 var(--fd); letter-spacing: -.045em; }
.ct-h span { display: block; }
.ct-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(24px, 4vw, 72px); align-items: end; margin-top: clamp(32px, 5vw, 80px); }
.ct-t { max-width: 26em; font-size: clamp(18px, 1.42vw, 23px); line-height: 1.45; }
.ct-act { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-n { flex-basis: 100%; margin-top: 4px; font: 500 14px/1.4 var(--fd); color: rgba(12, 13, 16, .72); }

/* ---------- footer ---------- */
.ft { margin-top: clamp(8px, 1.1vw, 16px); padding-top: clamp(48px, 6vw, 96px); background: var(--panel); color: var(--panel-ink); overflow: hidden; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px 24px; }
.ft-brand p { font: 500 clamp(20px, 1.7vw, 27px)/1.25 var(--fd); letter-spacing: -.015em; }
.ft-mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font: 500 17px/1 var(--fd); border-bottom: 1.5px solid var(--lime); }
.ft-col { display: grid; align-content: start; }
.ft-h { margin-bottom: 8px; font: 500 14px/1.3 var(--fd); color: var(--panel-muted); }
.ft-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-self: start; font-size: 16px; transition: color .15s; }
.ft-col a:hover, .ft-legal a:hover { color: var(--lime); }
.ft-city { margin-top: 8px; font-size: 14px; color: var(--panel-muted); }
.ft-mark { margin-top: clamp(40px, 6vw, 96px); padding-inline: var(--gut); font: 700 min(23.8vw, 400px)/.86 var(--fd); letter-spacing: -.045em; white-space: nowrap; }
.ft-mark i { display: inline-block; width: .15em; height: .15em; margin-left: .04em; border-radius: 50%; background: var(--lime); }
.ft-bot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-block: 20px 24px; margin-top: clamp(16px, 2vw, 32px); border-top: 1px solid var(--panel-line); font-size: 14px; color: var(--panel-muted); }
.ft-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.ft-legal a, .ft-motion { display: inline-flex; align-items: center; min-height: 44px; }
.ft-motion { margin-left: auto; color: var(--panel-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--panel-muted); }
.ft-tag { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--panel-line); font: 400 12px/1.4 var(--fm); }

/* ---------- scroll reveal (armed only when JS is running) ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hd-act { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 900px) {
  .hero-row, .cl-in, .ct-row { grid-template-columns: 1fr; align-items: start; }
  .demo { grid-template-columns: 1fr; gap: 24px; }
  .demo .card + .card::before { left: 50%; top: -30px; margin: 0 0 0 -17px; transform: rotate(90deg); }
  .card { min-height: 0; }
  .card > :nth-child(2) { margin-top: 20px; }
  .sv-list a { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .sv-d { grid-column: 2 / -1; padding-top: 12px; }
  .sv-a { grid-row: 1; grid-column: 3; }
  .case-stack { grid-template-columns: 1fr; }
  .case-card:first-child { display: flex; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-h { font-size: clamp(34px, 10.6vw, 72px); letter-spacing: -.04em; }
  .hero > .wrap { padding-top: 22px; }
  .hero-row { gap: 20px; margin-top: 18px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { justify-items: stretch; }
  .facts { display: grid; gap: 2px; }
  .facts li + li::before { display: none; }
  .btn .full { display: none; } .btn .short { display: inline; }
  .hd-in { gap: 8px; }
  .ico-btn { display: none; }
  .route { padding-top: 26px; }
  .route-t { flex-basis: 100%; }
  .route .route-more { display: none; }
  .route .route-pause { margin-left: auto; }
  .route-body { margin-top: 8px; padding-left: 30px; }
  .route-line { position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .route-fill { transform: scaleY(0); }
  .route-dot { left: -8px; top: -9px; }
  .route-stops { grid-template-columns: 1fr; }
  .route-stops li { padding: 0 0 14px; gap: 1px; }
  .route-stops li:last-child { padding-bottom: 0; }
  .route-stops li::before { left: -24px; top: 8px; width: 10px; height: 2px; }
  .route-stops b { font-size: 17px; }
  .sh--row { grid-template-columns: 1fr; }
  .sh--row > .lnk { justify-self: start; }
  .tabs { margin-left: -4px; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--panel-line); gap: 0; margin-top: 24px; }
  .steps::before { left: -1px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); }
  .steps li { padding: 0 0 28px 22px; }
  .steps li:last-child { padding-bottom: 0; }
  .ct-act .btn { width: 100%; }
  .ft-motion { margin-left: 0; }
}
@media (max-width: 380px) {
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .route-pick button { padding: 0 11px; }
  .btn { padding: 0 16px; font-size: 15px; gap: 8px; }
  .hero-h { font-size: 33px; }
}

/* The dot keeps travelling under reduced motion (it is small and slow); large
   movement and scaling are removed and entrances become short fades. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-k, .hero-h .ln, .hero-row, .route { animation-name: fade; animation-duration: .5s; }
  .js .rv { transform: none; transition: opacity .5s; }
  .sv-list a:hover .sv-name, .case-card:hover .case-media img { transform: none; }
  .demo.swap [data-f] { transform: none; }
}
@keyframes fade { from { opacity: 0; } }

/* «Остановить анимацию»: everything settles in its final state. */
.motion-paused .hero-k, .motion-paused .hero-h .ln, .motion-paused .hero-row, .motion-paused .route { animation: none; }
.motion-paused .hl { animation: none; background-size: 100% 80%; color: var(--lime-ink); }
.motion-paused .card--out .status i { animation: none; }
.motion-paused .rv { opacity: 1; transform: none; transition: none; }
.motion-paused .steps::before { transition: none; transform: none; }
.motion-paused * { scroll-behavior: auto; }

/* dark theme: the result card inverts so it still reads as the outcome */
:root[data-theme="dark"] .card--out { background: #f2f2ef; color: #0c0d10; }
:root[data-theme="dark"] .card--out .step span, :root[data-theme="dark"] .card--out .card-l, :root[data-theme="dark"] .card--out .card-t { color: #5c6069; }
:root[data-theme="dark"] .card--out .step, :root[data-theme="dark"] .card--out .status { border-color: rgba(12, 13, 16, .13); }
:root[data-theme="dark"] .card--out .status i { outline: 1px solid rgba(12, 13, 16, .3); }
