/* Шрифты со своего домена: без запросов к Google, без блокировки рендера. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/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: 400;
  font-display: swap;
  src: url("assets/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+2000-206F,U+2074,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: 500;
  font-display: swap;
  src: url("assets/fonts/manrope-500-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: 500;
  font-display: swap;
  src: url("assets/fonts/manrope-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,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: 600;
  font-display: swap;
  src: url("assets/fonts/manrope-600-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: 600;
  font-display: swap;
  src: url("assets/fonts/manrope-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,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: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-700-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: 700;
  font-display: swap;
  src: url("assets/fonts/manrope-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+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plexmono-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/plexmono-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+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plexmono-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/plexmono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --ink: #0a0c12;
  --surface: #11141d;
  --line: rgba(232, 238, 255, 0.15);
  --line-strong: rgba(232, 238, 255, 0.28);
  --text: #f4f6fa;
  --muted: #aeb5c5;
  --blue: #1d5eff;
  --blue-soft: #83a8ff;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 48px;
  --space-5: 72px;
  --space-6: 96px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Та же ease-out, но ступеньками: 30 шагов на весь переход. Для анимаций, которые
     крутятся сами, без участия человека (сцена первого экрана, появление секций).
     Браузер рисует кадр, только когда значение сменилось, — на мониторе 240 Гц
     вместо 240 кадров в секунду выходит 60–70, на глаз так же плавно. */
  --ease-out-steps: var(--ease-out);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --ease-out-steps: linear(0, 0.142 0%, 0.142 3.333%, 0.275 3.333%, 0.275 6.667%, 0.398 6.667%, 0.398 10%, 0.508 10%, 0.508 13.333%, 0.602 13.333%, 0.602 16.667%, 0.682 16.667%, 0.682 20%, 0.747 20%, 0.747 23.333%, 0.8 23.333%, 0.8 26.667%, 0.843 26.667%, 0.843 30%, 0.877 30%, 0.877 33.333%, 0.904 33.333%, 0.904 36.667%, 0.925 36.667%, 0.925 40%, 0.942 40%, 0.942 43.333%, 0.955 43.333%, 0.955 46.667%, 0.966 46.667%, 0.966 50%, 0.974 50%, 0.974 53.333%, 0.981 53.333%, 0.981 56.667%, 0.986 56.667%, 0.986 60%, 0.99 60%, 0.99 63.333%, 0.993 63.333%, 0.993 66.667%, 0.995 66.667%, 0.995 70%, 0.997 70%, 0.997 73.333%, 0.998 73.333%, 0.998 76.667%, 0.999 76.667%, 0.999 83.333%, 1 83.333%, 1 100%); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Весь фон — один неподвижный фиксированный слой: каждый полноэкранный слой браузер
   заново собирает на каждом кадре прокрутки, а на слабой видеокарте (или вовсе без
   неё) это и есть главная цена кадра. Раньше слоёв было два (сетка и свечение),
   растворение сетки делала mask-image — ещё проход на каждом кадре, — а поверх
   лежало звёздное поле на холсте. Звёзды убраны по просьбе владельца (27.09):
   вместо них бегут строки кода (.code-bg ниже).
   Слои сверху вниз:
   1–3. Синее свечение: сверху справа — за сценой первого экрана, слева — у текста,
        внизу — холодный бирюзовый отсвет. Места — от окна (vh).
   4. Растворение сетки к краям и вниз в цвет страницы.
   5–6. Сетка в 72px. */
.space-parallax {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-color: #05070e;
  background-image:
    radial-gradient(52% 48vh at 80% 14vh, rgba(29, 94, 255, 0.26) 0%, transparent 70%),
    radial-gradient(42% 44vh at 6% 52vh, rgba(29, 94, 255, 0.15) 0%, transparent 72%),
    radial-gradient(46% 34vh at 62% 100vh, rgba(83, 230, 255, 0.08) 0%, transparent 74%),
    radial-gradient(132% 104.4vh at 50% -8vh, rgba(10, 12, 18, 0) 0%, rgba(10, 12, 18, 0.45) 45%, #0a0c12 85%),
    linear-gradient(rgba(131, 168, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 168, 255, 0.06) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 72px 72px, 72px 72px;
  background-position: 0 0, 0 0, 0 0, 0 0, center top, center top;
}
/* Бегущие строки кода на фоне (script.js: initCodeBackground). Колонки едва видны —
   это фактура, а не текст для чтения. Высота — как у окна со скрытой адресной
   строкой (lvh): на телефоне слой не пересчитывается, когда она сворачивается.
   line-height 24px — то же число, что LINE в скрипте. */
.code-bg { position: fixed; z-index: 0; inset: 0 0 auto; height: 100vh; height: 100lvh; overflow: hidden; pointer-events: none; }
.code-bg-col { position: absolute; top: 0; width: 34ch; margin: 0; overflow: hidden; color: rgba(131, 168, 255, 0.075); font: 12px/24px "IBM Plex Mono", monospace; white-space: pre; will-change: transform; }
.code-bg-col:nth-child(even) { color: rgba(131, 168, 255, 0.05); }
/* Неподвижный код — без отдельных слоёв: рисуется один раз вместе с фоном. */
.code-bg.is-still .code-bg-col { will-change: auto; }
/* На телефоне две колонки уже и тише: текст сайта здесь почти весь поверх кода. */
@media (max-width: 820px) {
  .code-bg-col { width: 28ch; color: rgba(131, 168, 255, 0.06); }
  .code-bg-col:nth-child(even) { color: rgba(131, 168, 255, 0.04); }
}
.header, .mobile-navigation, main, .footer { position: relative; z-index: 1; }

::selection { color: var(--ink); background: var(--blue-soft); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3c465d; border: 3px solid var(--ink); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 4px; }

.section-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.header {
  width: min(1180px, calc(100% - 64px));
  height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
  background: transparent;
}

.brand { position: relative; display: block; width: 174px; height: 60px; overflow: hidden; flex: 0 0 auto; }
/* По линии под шапкой время от времени пробегает огонёк.
   Элемент шириной с шапку, светится только его правый край; двигается одним transform.
   Один пробег — класс is-scanning, его ставит script.js (initAmbient), пока шапка видна.
   Бесконечной CSS-анимацией не делать: она держит перерисовку экрана с частотой
   монитора (240 раз в секунду на игровом) даже в паузах между пробегами. */
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent 0%, transparent calc(100% - 200px), rgba(131, 168, 255, 0.9) calc(100% - 48px), #fff 100%); filter: drop-shadow(0 0 4px rgba(83, 140, 255, 0.9)); opacity: 0; transform: translate3d(-100%, 0, 0); pointer-events: none; }
/* Движение и затухание — две анимации, чтобы у каждой был свой шаг: ~60 смен
   в секунду (steps), а не каждый кадр монитора. Сдвиг держит конечную точку
   (forwards), пока огонёк гаснет. */
.header.is-scanning::after { animation: header-scan-move 3.64s steps(219) forwards, header-scan-fade 4.2s linear; }
@keyframes header-scan-move { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes header-scan-fade {
  0% { opacity: 0; animation-timing-function: steps(25); }
  10% { opacity: 1; }
  87% { opacity: 1; animation-timing-function: steps(33); }
  100% { opacity: 0; }
}
.brand::before { content: ""; position: absolute; z-index: 0; inset: 14px 12px; background: rgba(29, 94, 255, 0.34); opacity: 0; filter: blur(14px); transition: opacity 180ms ease; }
.brand img {
  position: relative;
  z-index: 1;
  display: block;
  width: 174px;
  height: auto;
  max-width: none;
  transform: translate3d(0, -19px, 0) scale(1);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.42));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  transition: transform 180ms ease, filter 180ms ease;
}

.navigation { display: flex; gap: var(--space-3); margin-left: auto; margin-right: var(--space-3); }
.navigation a, .footer a { color: #dfe4ef; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; transition: color 180ms ease-out; }
.navigation a:hover, .footer a:hover { color: var(--blue-soft); }
.mobile-navigation, .mobile-contact-bar { display: none; }
.header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 180ms ease-out, background 180ms ease-out;
}
.header-cta:hover { border-color: var(--blue-soft); background: rgba(29, 94, 255, 0.12); }

.language-switcher { display: flex; align-items: center; gap: 3px; margin-right: 16px; }
.language-button { min-width: 28px; min-height: 32px; padding: 0 5px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #9faabe; font: 500 10px "IBM Plex Mono", monospace; cursor: pointer; transition: color 180ms ease-out, border-color 180ms ease-out; }
.language-button:hover { color: #fff; }.language-button.is-active { color: #fff; border-color: var(--blue-soft); }
.icon-arrow { position: relative; width: 11px; height: 11px; display: inline-block; flex: 0 0 auto; }
.icon-arrow::before { content: ""; position: absolute; inset: 2px 0 auto auto; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.icon-arrow::after { content: ""; position: absolute; right: 1px; top: 6px; width: 9px; border-top: 1.5px solid currentColor; transform: rotate(-45deg); transform-origin: right center; }

.hero { position: relative; padding: var(--space-6) 0; }
.hero::before { content: ""; position: absolute; top: 0; left: 0; width: 35%; border-top: 2px solid var(--blue); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.78fr); align-items: center; gap: clamp(32px, 4vw, 64px); }
.hero-copy { max-width: 700px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); }
/* Плашка над заголовком: «Приймаю замовлення:» и слово, которое печатается по кругу. */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 var(--space-3); padding: 8px 15px 8px 13px; border: 1px solid rgba(131, 168, 255, 0.26); border-radius: 999px; background: rgba(29, 94, 255, 0.09); color: #b9c7e6; font: 500 12px "IBM Plex Mono", monospace; letter-spacing: 0.03em; text-shadow: none; }
.hero-eyebrow .status-dot { color: #53e6ff; }
/* Ширина под самое длинное слово (шрифт моноширинный: 13 знаков, межбуквенный интервал и курсор) и contain:
   каждая напечатанная буква не пересчитывает раскладку всего первого экрана. */
.hero-rotator { display: inline-block; width: 15ch; height: 1.25em; overflow: hidden; contain: strict; color: #fff; white-space: nowrap; line-height: 1.25; }
.hero-rotator::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.2em; background: var(--blue-soft); animation: caret-blink 1s steps(1) infinite; }
.hero h1, h2, h3 { margin: 0; font-family: Manrope, Arial, sans-serif; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.hero h1 { max-width: 730px; font-size: clamp(46px, 4.85vw, 72px); }
.hero h1 em, h2 em { color: var(--blue-soft); font-style: normal; font-weight: 500; }
.hero-lead { max-width: 510px; margin: calc(var(--space-3) + var(--space-1)) 0 var(--space-4); color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: 600 12px Manrope, Arial, sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1), border-color 180ms ease-out, background 180ms ease-out;
}
.button:hover { transform: translateY(-2px); border-color: var(--blue-soft); }
.button-primary { position: relative; isolation: isolate; overflow: hidden; border-color: var(--blue); background: var(--blue); color: #fff; }
/* Раз в несколько секунд по синей кнопке пробегает блик — только transform.
   Один проход — класс is-shining от script.js (initAmbient), только у видимых кнопок. */
.button-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%); transform: translate3d(-120%, 0, 0); pointer-events: none; }
.button-primary.is-shining::after { animation: button-shine 1s steps(60); }
@keyframes button-shine { from { transform: translate3d(-120%, 0, 0); } to { transform: translate3d(120%, 0, 0); } }
.button-primary:hover { background: #124cde; border-color: #124cde; }
.button-ghost { color: #e3e8f2; }
.hero-facts { max-width: 640px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-5) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero-facts b { display: block; color: #fff; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.hero-facts span { display: block; margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }



.services { position: relative; padding: calc(var(--space-6) + var(--space-3)) 0; }
/* подложка отдельным слоем — чтобы её можно было растворить, не трогая текст */
.services::before, .calc::before, .process::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* Секция сама является .section-shell, то есть уже с боковыми отступами.
     Подложку тянем на всю ширину окна, иначе вдоль краёв экрана
     остаются две тёмные полосы с резкими границами. */
  top: -1px; bottom: -1px;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: rgba(5, 8, 16, 0.4);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.section-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
/* --- соединительная линия в шапке секции --- */
.heading-connector { position: absolute; right: 0; bottom: calc(100% - 14px); width: min(360px, 34%); height: auto; pointer-events: none; overflow: visible; }
.hc-line { fill: none; stroke: var(--blue-soft); stroke-width: 1.4; stroke-linecap: round; opacity: 0.55; filter: drop-shadow(0 0 6px rgba(29, 94, 255, 0.55)); stroke-dasharray: 420; stroke-dashoffset: 420; }
.hc-node { fill: #0d1424; stroke: var(--blue); stroke-width: 1.6; opacity: 0; filter: drop-shadow(0 0 7px rgba(29, 94, 255, 0.7)); }
.hc-mid { fill: var(--blue); }
@keyframes hc-draw { to { stroke-dashoffset: 0; } }
@keyframes hc-pop { to { opacity: 1; } }
/* Линия рисуется, когда шапка секции реально попала в вьюпорт, а не при загрузке. */
.section-heading.is-revealed .hc-line { animation: hc-draw 2.4s steps(144) 0.3s forwards; }
.section-heading.is-revealed .hc-node { animation: hc-pop 700ms steps(42) 1.7s forwards; }
.section-heading.is-revealed .hc-mid { animation-delay: 1.2s; }
.section-heading h2, .process h2, .faq h2, .contact h2 { max-width: 760px; font-size: clamp(42px, 4.7vw, 68px); }
.section-intro { max-width: 310px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.service-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }

.service-card {
  position: relative;
  min-height: 350px;
  padding: var(--space-4) var(--space-3);
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(26, 38, 70, 0.3) 0%, rgba(9, 13, 26, 0.5) 100%);
  transition: transform 340ms cubic-bezier(.16, 1, .3, 1), border-color 300ms ease, background 300ms ease, box-shadow 340ms ease;
}
.service-card:not(.guarantee):hover {
  transform: translateY(-7px);
  border-color: rgba(131, 168, 255, 0.62);
  background: linear-gradient(158deg, rgba(33, 52, 100, 0.42) 0%, rgba(11, 16, 32, 0.55) 100%);
  box-shadow: 0 0 28px rgba(29, 94, 255, 0.2), 0 20px 44px rgba(0, 0, 0, 0.45);
}
.service-card:not(.guarantee):hover .service-icon { scale: 1.12; opacity: 1; }

.service-top { display: flex; justify-content: space-between; color: #7e8aa1; font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: 0.05em; }
.service-card h3 { max-width: 250px; margin-bottom: var(--space-2); font-size: clamp(27px, 2.65vw, 39px); }.service-card p { max-width: 300px; margin: 0; color: #c3cbdb; font-size: 15px; line-height: 1.65; }.service-meta { display: grid; gap: var(--space-1); padding-top: var(--space-3); }.service-meta p { max-width: none; color: #b6c0d3; font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: 0.03em; line-height: 1.7; }.service-card a { display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-3); color: #f2f5fb; font-size: 15px; font-weight: 600; }
/* «Кому підійде» в карточке услуги — обычным шрифтом: это целое предложение,
   и моноширинным, как код, оно читалось тяжело. Моноширинной остаётся только
   короткая строка «срок · цена» над ним, а цена в ней светлее — её ищут глазами. */
.service-meta .service-fit { max-width: 36em; color: #aeb8cc; font-family: Manrope, Arial, sans-serif; font-size: 14px; letter-spacing: 0; line-height: 1.6; }
.service-fit b { color: var(--blue-soft); font-weight: 600; }
.service-meta [data-price-from] { color: #fff; }

/* Карточка «ШІ для бізнесу» — на две колонки: слева описание,
   справа список конкретных задач, чтобы ИИ не звучал абстрактно. */
.service-card-wide { grid-column: span 2; }
.service-wide-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.service-card-wide .service-wide-body p { max-width: 340px; }
.service-card-wide h3 { max-width: none; }
/* Слово с дефисом («Онлайн-оплата») не рвём на «Онлайн-» и «оплата». */
.nobr { white-space: nowrap; }
.service-examples { display: grid; margin: 0; padding: 0; list-style: none; }
.service-examples li { position: relative; padding: 11px 0 11px 18px; border-top: 1px solid var(--line); color: #c3cbdb; font-size: 14px; line-height: 1.5; }
.service-examples li:last-child { border-bottom: 1px solid var(--line); }
.service-examples li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px rgba(29, 94, 255, 0.8); }

/* --- синее свечение за курсором (только мышь) ---
   Пятно — на уровне фона, под контентом: подсвечивает сетку и карточки, текст не заливает. */
.cursor-glow { position: fixed; top: 0; left: 0; z-index: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; background: radial-gradient(circle, rgba(29, 94, 255, 0.24) 0%, rgba(29, 94, 255, 0.09) 38%, transparent 70%); opacity: 0; pointer-events: none; will-change: transform; transition: opacity 400ms ease; }
html.cursor-on .cursor-glow { opacity: 1; }

/* --- живая карточка заявки справа от формы --- */
.contact .brief-preview { position: absolute; z-index: 1; right: 0; bottom: calc(var(--space-6) + var(--space-3)); width: 340px; overflow: hidden; border-radius: 18px; transform: rotateY(-8deg) rotateX(3deg); }
.brief-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid rgba(131, 168, 255, 0.16); background: rgba(6, 10, 22, 0.4); }
.brief-head .chat-avatar svg { width: 18px; height: 18px; }
.brief-typing { display: none; }
.brief-preview.is-typing .brief-idle { display: none; }
.brief-preview.is-typing .brief-typing { display: inline; }
.brief-idle { color: #8f9bb3; }
.brief-fields { display: grid; gap: 12px; margin: 0; padding: 16px 16px 20px; }
.brief-fields div { display: grid; gap: 4px; }
.brief-fields dt { color: #7f8ca6; font: 500 10px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.brief-fields dd { min-height: 1.5em; margin: 0; color: #eef2fb; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.brief-fields dd.is-empty::before { content: "…"; color: #3d4862; }
/* Курсор мигает у поля, которое сейчас печатается (класс ставит script.js). */
.brief-preview.is-typing .brief-fields dd.is-current::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--blue-soft); animation: caret-blink 1s steps(1) infinite; }
.brief-preview.is-typing .brief-fields dd.is-current.is-empty::before { content: none; }
/* Карточке нужно место справа от формы — на узких экранах её нет. */
@media (min-width: 1101px) { .contact-logo-stage { top: 22%; } }
@media (max-width: 1100px) { .contact .brief-preview { display: none; } }

/* --- бегущая строка со стеком --- */
.ticker { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: rgba(6, 10, 22, 0.55); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%); }
/* steps(3120) — 60 сдвигов в секунду вместо каждого кадра монитора: на 240 Гц
   это вдвое меньше перерисовок, а движение такое же ровное. */
.ticker-track { display: flex; width: max-content; animation: ticker-run 52s steps(3120) infinite; }
.ticker-track span { display: flex; align-items: center; gap: 28px; padding: 17px 0 17px 28px; color: #8f9bb3; font: 500 12px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ticker-track span::after { content: "/"; color: var(--blue); }
.ticker:hover .ticker-track, .ticker.is-offscreen .ticker-track { animation-play-state: paused; }
/* Сдвиг ровно на половину: вторая половина — копия первой, шов не виден. */
@keyframes ticker-run { to { transform: translate3d(-50%, 0, 0); } }

/* --- код бота: печатается в редакторе, потом тесты и деплой в терминале --- */
.code-demo { position: relative; padding: var(--space-5) 0 var(--space-6); }
.code-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.code-window, .term-window { overflow: hidden; border-radius: 16px; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(131, 168, 255, 0.16); background: rgba(6, 10, 22, 0.45); }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(131, 168, 255, 0.3); }
.code-bar b { margin-left: 10px; color: #cfdaf5; font: 500 12px "IBM Plex Mono", monospace; }
.code-live { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #53e6ff; font: 600 10px "IBM Plex Mono", monospace; letter-spacing: 0.14em; }
/* Точка «онлайн» светится, но не пульсирует: бесконечная пульсация держала
   перерисовку всего экрана с частотой монитора, пока точка видна. */
.code-live::before, .status-dot { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
/* Высота задана заранее под весь код — пока он печатается, страница не прыгает. */
.code-body { height: 452px; margin: 0; padding: 18px 20px 20px 10px; overflow: hidden; counter-reset: line; color: #c9d4ea; font: 12.5px/1.8 "IBM Plex Mono", monospace; white-space: pre; tab-size: 4; }
.code-line { display: block; min-height: 1.8em; counter-increment: line; }
.code-line::before { content: counter(line); display: inline-block; width: 2.4ch; margin-right: 18px; color: #3d4862; text-align: right; }
.code-caret { display: inline-block; width: 7px; height: 1.15em; margin-left: 1px; vertical-align: -0.2em; background: var(--blue-soft); animation: caret-blink 1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
.tok-com { color: #5d6b86; font-style: italic; }
.tok-str { color: #53e6ff; }
.tok-dec { color: #b69cff; }
.tok-kw { color: #7aa2ff; }
.tok-fn { color: #fff; font-weight: 500; }
.tok-call { color: #b9c8ff; }
.tok-num { color: #ffb86b; }
.term-body { height: 244px; padding: 16px 18px; overflow: hidden; color: #9aa6bd; font: 12.5px/1.9 "IBM Plex Mono", monospace; }
.term-line { white-space: pre; animation: term-in 260ms var(--ease-out) backwards; }
@keyframes term-in { from { opacity: 0; transform: translate3d(0, 4px, 0); } }
.term-prompt { color: #eef2fb; }
.term-ok { color: #53e6ff; }

/* --- калькулятор --- */
.calc { position: relative; padding: var(--space-5) 0 calc(var(--space-6) + var(--space-2)); }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-3); align-items: start; }
.calc-options { display: grid; gap: var(--space-4); margin: 0; }
.calc-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc-group legend { display: flex; gap: 10px; margin-bottom: var(--space-2); padding: 0; color: #9aa6bd; font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.calc-group legend span:first-child { color: var(--blue-soft); }
.calc-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calc-choice { position: relative; display: block; cursor: pointer; }
.calc-choice[hidden] { display: none; }
/* Сам input прячем визуально, но оставляем доступным клавиатуре и скринридерам. */
.calc-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.calc-choice-body { height: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(158deg, rgba(26, 38, 70, 0.3) 0%, rgba(9, 13, 26, 0.5) 100%); transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease; }
.calc-choice-body::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid rgba(131, 168, 255, 0.55); border-radius: 5px; background: transparent center / 12px no-repeat; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.calc-choice-radio .calc-choice-body::before { border-radius: 50%; }
.calc-choice-body b { flex: 1 1 auto; min-width: 0; color: #eef2fb; font-size: 15px; font-weight: 600; line-height: 1.35; }
.calc-choice-body small { flex: 0 0 auto; color: #9aa6bd; font: 12px "IBM Plex Mono", monospace; text-align: right; white-space: nowrap; }
.calc-choice:hover .calc-choice-body { border-color: rgba(131, 168, 255, 0.45); }
.calc-choice input:checked + .calc-choice-body { border-color: var(--blue); background: linear-gradient(158deg, rgba(29, 94, 255, 0.22) 0%, rgba(29, 94, 255, 0.06) 100%); box-shadow: 0 0 22px rgba(29, 94, 255, 0.16); }
.calc-choice input:checked + .calc-choice-body small { color: var(--blue-soft); }
.calc-choice-checkbox input:checked + .calc-choice-body::before { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.calc-choice-radio input:checked + .calc-choice-body::before { border-color: var(--blue); box-shadow: inset 0 0 0 4px #0b1330, inset 0 0 0 9px var(--blue); }
.calc-choice input:focus-visible + .calc-choice-body { outline: 2px solid var(--blue-soft); outline-offset: 2px; }

.calc-summary { position: sticky; top: var(--space-3); display: grid; gap: var(--space-2); padding: var(--space-4) var(--space-3) var(--space-3); border: 1px solid rgba(29, 94, 255, 0.45); border-radius: 16px; background: linear-gradient(160deg, rgba(29, 94, 255, 0.18) 0%, rgba(29, 94, 255, 0.05) 55%, rgba(9, 13, 26, 0.6) 100%); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35); }
.calc-summary-label { margin: 0; color: #9aa6bd; font: 500 11px "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.calc-total { margin: 0; color: #fff; font-size: clamp(46px, 4.6vw, 62px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-days { margin: 0; color: var(--blue-soft); font: 13px "IBM Plex Mono", monospace; letter-spacing: 0.02em; }
.calc-breakdown { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.calc-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: #c3cbdb; font-size: 14px; line-height: 1.45; }
.calc-breakdown li span:last-child { flex: 0 0 auto; color: #eef2fb; font: 13px "IBM Plex Mono", monospace; }
.calc-summary .button { width: 100%; margin-top: var(--space-1); }
.calc-note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

.process { position: relative; padding: calc(var(--space-6) + var(--space-2)) 0; }.process-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); }.process-heading p { max-width: 260px; color: var(--muted); font-size: 14px; line-height: 1.7; }.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); margin-top: var(--space-5); }.steps article {
  position: relative;
  min-width: 0;
  padding: var(--space-4) var(--space-3) var(--space-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(158deg, rgba(26, 38, 70, 0.3) 0%, rgba(9, 13, 26, 0.5) 100%);
  transition: transform 340ms cubic-bezier(.16, 1, .3, 1), border-color 300ms ease, background 300ms ease, box-shadow 340ms ease;
}
.steps article:hover {
  transform: translateY(-7px);
  border-color: rgba(131, 168, 255, 0.62);
  background: linear-gradient(158deg, rgba(33, 52, 100, 0.42) 0%, rgba(11, 16, 32, 0.55) 100%);
  box-shadow: 0 0 28px rgba(29, 94, 255, 0.2), 0 20px 44px rgba(0, 0, 0, 0.45);
}
.steps article:hover .step-icon { scale: 1.14; opacity: 1; }.steps article::before { content: ""; position: absolute; top: -4px; left: var(--space-3); width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(29, 94, 255, 0.18); }.steps article:last-child::before { background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(131, 168, 255, 0.22); }
.steps article:hover::before { background: var(--blue-soft); box-shadow: 0 0 0 4px rgba(131, 168, 255, 0.3); }.steps span { color: var(--blue-soft); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.08em; }
.step-icon {
  display: block;
  width: 88px; height: 88px;
  margin: var(--space-3) auto var(--space-3);
  object-fit: contain;
  opacity: 0.92;
  scale: 1;
  /* В картинках шагов зашита полупрозрачная тёмная подложка — на новом фоне
     она читалась квадратом. screen гасит тёмное и оставляет свечение. */
  mix-blend-mode: screen;
  transition: opacity 260ms ease, scale 260ms cubic-bezier(.16, 1, .3, 1);
}
.steps h3 { margin: var(--space-2) 0 10px; font-size: clamp(19px, 1.55vw, 23px); }.steps p { max-width: none; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.faq { padding: var(--space-6) 0; }.faq-list { margin-top: var(--space-4); border-top: 1px solid var(--line); }.faq-list details { border-bottom: 1px solid var(--line); }.faq-list summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; color: var(--text); cursor: pointer; font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 1.35; list-style: none; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--blue-soft); font: 500 24px "IBM Plex Mono", monospace; line-height: 1; }.faq-list details[open] summary::after { content: "−"; }.faq-list p { max-width: 72ch; margin: 0; padding: 0 0 var(--space-3); color: var(--muted); font-size: 14px; line-height: 1.75; opacity: 0; transition: opacity 200ms var(--ease-out); }.faq-list details[open]:not(.is-closing) p { opacity: 1; }

.contact { position: relative; isolation: isolate; padding: calc(var(--space-6) + var(--space-3)) 0; overflow: hidden; }/* Логотип в контактах — фоновый знак: небольшой, приглушённый, без анимаций. */ .contact-logo-stage { position: absolute; z-index: 0; top: 50%; right: 4%; width: min(320px, 28%); transform: translate3d(0, -50%, 0); pointer-events: none; }.contact-logo-stage img { display: block; width: 100%; opacity: 0.14; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%); }.contact > :not(.contact-logo-stage):not(.brief-preview) { position: relative; z-index: 1; }.contact-text { max-width: 510px; margin: var(--space-3) 0; color: var(--muted); font-size: 15px; line-height: 1.7; }.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--space-3); }.contact-form { width: min(100%, 690px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }.contact-form label { display: grid; gap: var(--space-1); }.contact-form label span { color: #b9c1d1; font: 10px "IBM Plex Mono", monospace; letter-spacing: .04em; }.contact-form input, .contact-form textarea { width: 100%; padding: 14px; color: var(--text); border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 13, 22, 0.6); font: 14px Manrope, Arial, sans-serif; outline: none; transition: border-color 180ms ease-out; }.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue-soft); }.contact-form textarea { resize: vertical; }.form-message, .form-feedback { grid-column: 1 / -1; } /* Ловушка для ботов: людям не видна и в таб-порядок не попадает. */ .form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }.contact-form .button { justify-self: start; }.contact-form .button:disabled { cursor: wait; opacity: 0.62; transform: none; }.form-feedback { min-height: 20px; margin: 0; color: #c3d2ff; font-size: 13px; font-weight: 600; line-height: 1.5; }

.footer { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }.footer-identity { display: grid; gap: 10px; }.footer-brand { font-size: 17px !important; font-weight: 700 !important; letter-spacing: -0.03em !important; }.footer-brand span { margin-left: 4px; color: var(--blue-soft); font: 9px "IBM Plex Mono", monospace; letter-spacing: .05em; }.footer-socials { display: flex; flex-wrap: wrap; gap: 14px; }.footer-social { min-height: 28px; display: inline-flex; align-items: center; gap: 7px; color: #aeb8cc !important; font: 500 11px Manrope, Arial, sans-serif !important; letter-spacing: 0 !important; transition: color 180ms ease-out, transform 180ms ease-out; }.footer-social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }.footer-social:hover { color: var(--blue-soft) !important; transform: translateY(-1px); }



/* ---------- Сцена в первом экране: диалог с ШІ-ассистентом ---------- */
.hero-stage {
  position: relative;
  min-height: 500px;
  display: grid;
  align-content: center;
  justify-items: start;
  perspective: 1400px;
  perspective-origin: 60% 50%;
}
.stage-panel {
  border: 1px solid rgba(29, 94, 255, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(150deg, rgba(38, 62, 122, 0.42) 0%, rgba(12, 18, 38, 0.72) 55%, rgba(8, 12, 26, 0.8) 100%);
  box-shadow: 0 0 22px rgba(29, 94, 255, 0.16), 0 18px 46px rgba(0, 0, 0, 0.5);
}

.chat-window { position: relative; z-index: 1; width: min(100%, 370px); border-radius: 22px; overflow: hidden; transform: rotateY(-9deg) rotateX(3deg); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid rgba(131, 168, 255, 0.16); background: rgba(6, 10, 22, 0.4); }
.chat-avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--blue); box-shadow: 0 0 16px rgba(29, 94, 255, 0.6); }
.chat-avatar svg { width: 17px; height: 17px; fill: #fff; }
.chat-who { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.35; }
.chat-who b { overflow: hidden; color: #eef2fb; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.chat-who i { color: #53e6ff; font-size: 12px; font-style: normal; }
.status-online { display: inline-flex; align-items: center; gap: 6px; }
.status-typing { display: none; }
.hero-stage.is-typing .status-online { display: none; }
.hero-stage.is-typing .status-typing { display: inline; }
.chat-time { flex: 0 0 auto; color: #7f8ca6; font: 11px "IBM Plex Mono", monospace; }
.chat-body { display: grid; gap: 10px; padding: 18px 16px 48px; }
.bubble { max-width: 86%; margin: 0; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; overflow-wrap: break-word; }
.bubble.bot { justify-self: start; border-radius: 16px 16px 16px 5px; background: rgba(131, 168, 255, 0.14); color: #e1e8f7; }
.bubble.me { justify-self: end; border-radius: 16px 16px 5px 16px; background: var(--blue); color: #fff; font-weight: 500; }
.chat-slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chat-slots span { padding: 4px 10px; border: 1px solid rgba(131, 168, 255, 0.35); border-radius: 8px; color: #cbd6ee; font: 12px "IBM Plex Mono", monospace; transition: background-color 240ms steps(15), border-color 240ms steps(15), color 240ms steps(15); }
.chat-slots span.is-picked { border-color: var(--blue); background: var(--blue); color: #fff; }

.lead-card { position: relative; z-index: 2; justify-self: end; width: 210px; margin-top: -38px; padding: 14px 16px; transform: rotateY(-14deg) rotateX(6deg) translateZ(40px); border-color: rgba(83, 230, 255, 0.45); }
.card-label { margin: 0; color: var(--blue-soft); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.lead-name { margin: 7px 0 3px; color: #fff; font-size: 15px; font-weight: 600; }
.lead-meta { margin: 0; color: #c3cbdb; font: 12px "IBM Plex Mono", monospace; }
.lead-source { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; color: #53e6ff; font-size: 12px; font-weight: 600; }
.lead-source::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* --- приложение, которое открывается поверх чата --- */
/* Без JS и при «меньше движения» его нет: финальный кадр — чат и заявка. */
.app-window { display: none; }
.hero-stage.demo-on .app-window { position: relative; z-index: 3; grid-area: 1 / 1; align-self: center; justify-self: start; display: block; width: min(calc(100% - 20px), 400px); margin: 34px 0 0 22px; overflow: hidden; border-radius: 18px; border-color: rgba(83, 230, 255, 0.4); background: linear-gradient(150deg, rgba(22, 36, 76, 0.97) 0%, rgba(9, 13, 28, 0.98) 60%); box-shadow: 0 0 30px rgba(29, 94, 255, 0.25), 0 24px 60px rgba(0, 0, 0, 0.6); transform: rotateY(-9deg) rotateX(3deg) translateZ(50px); transform-origin: 85% 100%; }
.hero-stage.demo-on .chat-window { grid-area: 1 / 1; transition: opacity 500ms var(--ease-out-steps); }
.hero-stage.app-open .chat-window { opacity: 0.15; }
.hero-stage.demo-on .app-window:not(.is-shown) { scale: 0.9; }
.hero-stage.demo-on .app-window { transition: opacity 460ms var(--ease-out-steps), translate 460ms var(--ease-out-steps), scale 460ms var(--ease-out-steps); }
.app-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid rgba(131, 168, 255, 0.16); background: rgba(6, 10, 22, 0.5); }
.app-logo { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.app-head > b { color: #eef2fb; font-size: 13px; font-weight: 600; white-space: nowrap; }
.app-tabs { display: flex; gap: 4px; margin-left: auto; }
.app-tabs span { padding: 3px 8px; border-radius: 6px; color: #7f8ca6; font-size: 10.5px; white-space: nowrap; }
.app-tabs .is-active { background: rgba(29, 94, 255, 0.22); color: #dfe8ff; }
.app-body { display: grid; gap: 12px; padding: 14px; }
.app-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.app-kpis div { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid rgba(131, 168, 255, 0.16); border-radius: 10px; background: rgba(6, 10, 22, 0.35); }
.app-kpis span { color: #8f9bb3; font-size: 10px; line-height: 1.3; }
.app-kpis b { color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-kpis i { color: #53e6ff; font: 10px "IBM Plex Mono", monospace; font-style: normal; }
.app-chart { display: block; width: 100%; height: 64px; }
/* Столбики растут снизу, по очереди. */
.app-chart rect { fill: rgba(29, 94, 255, 0.5); transform-box: fill-box; transform-origin: 50% 100%; }
.app-chart rect.is-today { fill: #53e6ff; }
.hero-stage.demo-on .app-chart rect { transform: scaleY(0.05); transition: transform 600ms var(--ease-out-steps); transition-delay: calc(var(--i) * 70ms + 200ms); }
.hero-stage.demo-on .app-window.is-shown .app-chart rect { transform: none; }
.app-list-title { margin: 2px 0 0; color: #8f9bb3; font: 500 10px "IBM Plex Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.app-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.app-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid rgba(131, 168, 255, 0.12); border-radius: 10px; background: rgba(6, 10, 22, 0.3); }
.app-list li > span { display: grid; min-width: 0; line-height: 1.35; }
.app-list b { overflow: hidden; color: #eef2fb; font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.app-list small { color: #8f9bb3; font: 10.5px "IBM Plex Mono", monospace; white-space: nowrap; }
.app-list em { flex: 0 0 auto; padding: 3px 8px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 600; }
.app-list em.is-done { background: rgba(83, 230, 255, 0.14); color: #53e6ff; }
.app-list .app-new { border-color: rgba(29, 94, 255, 0.6); background: rgba(29, 94, 255, 0.14); box-shadow: 0 0 18px rgba(29, 94, 255, 0.2); }

/* Сценарий: шаги появляются по очереди. Место под сообщения занято заранее,
   поэтому окно не прыгает. Без JS класса demo-on нет — всё видно сразу. */
.hero-stage.demo-on [data-step] { opacity: 0; translate: 0 10px; transition: opacity 420ms var(--ease-out-steps), translate 420ms var(--ease-out-steps); }
.hero-stage.demo-on [data-step].is-shown { opacity: 1; translate: 0 0; }

/* --- иконки услуг --- */
.service-icon {
  width: 132px; height: 132px;
  margin: var(--space-4) auto var(--space-4);
  object-fit: contain;
  opacity: 0.95;
  /* scale — отдельное свойство, поэтому не конфликтует с анимацией transform */
  scale: 1;
  transition: opacity 260ms ease, scale 260ms cubic-bezier(.16, 1, .3, 1);
}
/* Иконки оживают только при наведении. Раньше все шесть качались по кругу —
   и, пока услуги на экране, браузер перерисовывал его с частотой монитора:
   ~14% видеокарты на RTX 4060 при 240 Гц против ~1% без этого (замер 27.09.2026). */
.service-icon:hover { opacity: 1; scale: 1.16; }


/* --- гарантия: последняя карточка сетки, выделена синим ---
   Сетка услуг в три колонки: сайты, боты, застосунки; ШІ (широкая) и цифровые
   продукты; онлайн-оплата (широкая) и гарантия. Так ряды заполнены ровно. */
.service-card.guarantee {
  border-color: rgba(29, 94, 255, 0.45);
  background: linear-gradient(158deg, rgba(29, 94, 255, 0.2) 0%, rgba(29, 94, 255, 0.06) 55%, rgba(9, 13, 26, 0.5) 100%);
}
.service-card.guarantee:hover {
  transform: translateY(-7px);
  border-color: rgba(83, 140, 255, 0.75);
  background: linear-gradient(158deg, rgba(29, 94, 255, 0.3) 0%, rgba(29, 94, 255, 0.1) 55%, rgba(10, 14, 28, 0.55) 100%);
  box-shadow: 0 0 34px rgba(29, 94, 255, 0.28), 0 22px 50px rgba(0, 0, 0, 0.5);
}
.service-card.guarantee:hover .service-icon { scale: 1.1; }
.service-card.guarantee .service-icon { opacity: 1; }
.guarantee-body { display: grid; gap: var(--space-2); }
.service-card.guarantee h3 { max-width: none; margin: 0; }
.guarantee-note { color: var(--blue-soft); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.1em; }
.service-card.guarantee .button { width: 100%; margin-top: var(--space-3); white-space: nowrap; }
/* Девиз мельче основного текста — в карточке он должен влезать в одну строку. */
.service-card.guarantee .guarantee-note { max-width: none; font-size: 12px; text-wrap: balance; }

/* --- визуал в героя --- */





/* --- ниже первого экрана: браузер не считает раскладку, пока секция не подъехала --- */
.services, .code-demo, .calc, .process, .faq, .contact, .footer { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* --- на телефоне параллакс-картинка не читается, но стоит дорого: заменяем градиентом --- */
/* ---------- Вступительная сцена героя: панели поднимаются каскадом ----------
   Проигрывается каждый раз, когда герой возвращается во вьюпорт (загрузка, скролл наверх). */
@keyframes panel-rise {
  from { opacity: 0; translate: 0 30px; }
}
html.reveal-ready :where(.hero-reveal) { opacity: 0; }
html.reveal-ready :where(.hero-reveal.is-revealed) { opacity: 1; }
html.reveal-ready .hero-reveal.is-revealed { animation: panel-rise 680ms var(--ease-out-steps) backwards; }
html.reveal-ready .hero-copy.is-revealed { animation-duration: 720ms; animation-delay: .05s; }
html.reveal-ready .chat-window.is-revealed { animation-delay: .18s; }

/* ---------- Появление секций при скролле ---------- */
/* Скрыты только после включения JS (html.reveal-ready): без JS всё видно сразу. */
html.reveal-ready .reveal { opacity: 0; }
html.reveal-ready .reveal.is-revealed {
  opacity: 1;
  animation: reveal-in 700ms var(--ease-out-steps) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
}
.service-card:nth-child(2) { --reveal-delay: 90ms; }
.service-card:nth-child(3) { --reveal-delay: 180ms; }
.service-card:nth-child(4) { --reveal-delay: 270ms; }
.service-card:nth-child(5) { --reveal-delay: 360ms; }
.calc-group:nth-child(2) { --reveal-delay: 90ms; }
.calc-group:nth-child(3) { --reveal-delay: 180ms; }
.calc-summary { --reveal-delay: 120ms; }
/* Последний ряд — онлайн-оплата и гарантия: гарантия въезжает чуть позже соседки. */
.service-card.guarantee { --reveal-delay: 90ms; }
.steps article:nth-child(2) { --reveal-delay: 90ms; }
.steps article:nth-child(3) { --reveal-delay: 180ms; }
.steps article:nth-child(4) { --reveal-delay: 270ms; }
.steps article:nth-child(5) { --reveal-delay: 360ms; }
.faq-list details:nth-child(2) { --reveal-delay: 70ms; }
.faq-list details:nth-child(3) { --reveal-delay: 140ms; }
.faq-list details:nth-child(4) { --reveal-delay: 210ms; }
.faq-list details:nth-child(5) { --reveal-delay: 280ms; }
.faq-list details:nth-child(6) { --reveal-delay: 350ms; }
.faq-list details:nth-child(7) { --reveal-delay: 420ms; }
.faq-list details:nth-child(8) { --reveal-delay: 490ms; }

/* Если анимация по какой-то причине не дошла до конца (замороженный таймлайн),
   JS форсит финальное состояние через .is-settled. */
.reveal.is-settled, .hero-reveal.is-settled { animation: none !important; }

/* На телефонах — без задержки двойного тапа у кнопок и ссылок. */
a, button, summary, input, textarea, label { touch-action: manipulation; }

/* Граница та же, что у мобильной раскладки (820px). Раньше здесь стояло 700px,
   и на 701–820px (раскладной телефон, узкий планшет) раскладка была уже мобильной,
   а фон — ещё десктопным: тёмный оверлей 0.7→0.9 без боковой подсветки,
   и по краям экрана читались тёмные полосы. */
@media (max-width: 820px) {
  /* Фон на телефоне стоит на месте и ровно в высоту окна. Высоту задаём явно,
     а не растяжкой от top до bottom: нижняя граница фиксированного блока на
     телефоне ездит вместе с адресной строкой, слой пересчитывался бы на каждом
     кадре её сворачивания — и фон дёргался. lvh — высота окна со скрытой
     строкой, она не меняется. Первая пара vh — запасная, для браузеров без lvh.
     Свечение на узком портретном экране крупнее и начинается на самом краю —
     иначе по бокам читаются чёрные полосы. */
  .space-parallax {
    inset: 0 0 auto;
    height: 100vh;
    height: 100lvh;
    background-image:
      radial-gradient(90% 42% at 85% 6%, rgba(29, 94, 255, 0.28) 0%, transparent 72%),
      radial-gradient(80% 40% at 0% 62%, rgba(29, 94, 255, 0.14) 0%, transparent 74%),
      radial-gradient(90% 30% at 60% 100%, rgba(83, 230, 255, 0.08) 0%, transparent 74%),
      radial-gradient(132% 104.4% at 50% -8%, rgba(10, 12, 18, 0) 0%, rgba(10, 12, 18, 0.45) 45%, #0a0c12 85%),
      linear-gradient(rgba(131, 168, 255, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(131, 168, 255, 0.06) 1px, transparent 1px);
  }
}

/* --- экономия батареи: если система просит меньше движения, статичный фон --- */
@media (prefers-reduced-motion: reduce) {
  .hc-line { stroke-dashoffset: 0; animation: none; }
  .hc-node { opacity: 1; animation: none; }
}

/* --- крупные визуалы в шапках секций --- */
.section-visual { position: absolute; top: 50%; right: 25%; width: clamp(130px, 13vw, 186px); height: auto; transform: translateY(-50%); opacity: 0.9; pointer-events: none; }
.faq-head { position: relative; }
.faq-head .section-visual { top: -18px; right: 13%; width: clamp(120px, 12vw, 166px); transform: none; }

/* --- пальцу нужна зона не меньше 44px, а ссылки в карточках были 21px --- */
@media (hover: none) and (pointer: coarse) {
  .service-card > a { min-height: 44px; align-items: center; }
  .faq-list summary { min-height: 52px; }
}
/* Подписи полей формы были 10px — это интерфейс, а не декор. */
.contact-form label > span { font-size: 13px; letter-spacing: 0.02em; }
@media (max-width: 1080px) {
  .calc-layout { grid-template-columns: 1fr; }
  .code-layout { grid-template-columns: 1fr; }
  .term-body { height: 236px; }
  .calc-summary { position: static; }
  .chat-window { width: min(100%, 340px); }
  .lead-card { width: 190px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-3) var(--space-4); }
  
  
}
@media (max-width: 820px) {
  .service-icon { width: 104px; height: 104px; margin: var(--space-3) auto var(--space-3); }.hero-stage { min-height: 0; margin-top: var(--space-3); display: grid; perspective: none; }.chat-window { width: 100%; max-width: 440px; transform: none; }.lead-card { width: min(76%, 240px); margin-top: -34px; transform: none; }.hero-stage.demo-on .app-window { width: calc(100% - 14px); margin: 26px 0 0 14px; transform: none; }
  body { padding-bottom: 80px; }
  .section-shell, .header { width: min(100% - 36px, 1180px); }
  .header { height: 82px; }.brand { width: 145px; height: 50px; }.brand img { width: 145px; height: auto; transform: translate3d(0, -15px, 0) scale(1); }.navigation { display: none; }.mobile-navigation { width: min(100% - 36px, 1180px); min-height: 44px; margin: 0 auto 12px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }.mobile-navigation::-webkit-scrollbar { display: none; }.mobile-navigation a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: #dfe4ef; font-size: 12px; font-weight: 600; white-space: nowrap; }.language-switcher { margin-left: auto; margin-right: 8px; }.language-button { min-width: 25px; }.header-cta { min-height: 40px; padding: 0 10px; font-size: 10px; gap: 7px; }.mobile-contact-bar { position: fixed; z-index: 20; left: 18px; right: 18px; bottom: 12px; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--blue); border-radius: 14px; background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(1, 12, 35, 0.45); font-size: 13px; font-weight: 700; }
  .hero { padding: calc(var(--space-5) - var(--space-2)) 0 var(--space-5); }.hero::before { width: 80px; }.hero-layout { grid-template-columns: 1fr; gap: var(--space-4); }.hero h1 { max-width: 610px; font-size: clamp(42px, 10.8vw, 64px); line-height: 1.04; }.hero-lead { max-width: 31ch; margin: var(--space-3) 0 var(--space-3); font-size: 15px; }.contact-logo-stage { top: auto; bottom: var(--space-4); right: 0; width: min(240px, 60%); transform: none; }
  .services { padding: calc(var(--space-5) + var(--space-1)) 0; }.section-heading, .process-heading { display: block; }.heading-connector, .section-visual { display: none; }.section-intro, .process-heading p { margin-top: var(--space-3); }.service-list { grid-template-columns: 1fr; gap: 0; }.service-card-wide { grid-column: auto; }.code-demo { padding: var(--space-4) 0 var(--space-5); }.code-body { height: auto; min-height: 520px; font-size: 11px; white-space: pre-wrap; word-break: break-word; }.code-line { padding-left: 3.4ch; text-indent: -3.4ch; }.code-line::before { margin-right: 1ch; }.ticker-track span { padding: 14px 0 14px 22px; gap: 22px; font-size: 11px; }.calc { padding: var(--space-4) 0 calc(var(--space-5) + var(--space-1)); }.calc-options { gap: var(--space-3); }.calc-choices { grid-template-columns: 1fr; }.calc-summary { padding: var(--space-3); }.service-wide-body { grid-template-columns: 1fr; gap: var(--space-3); }.steps { grid-template-columns: 1fr; gap: var(--space-2); }.service-card, .service-card:not(:first-child) { min-height: 0; padding: var(--space-4) var(--space-3); }.service-meta { padding-top: var(--space-3); }.process { padding: calc(var(--space-5) + var(--space-1)) 0; }.steps { margin-top: var(--space-3); }.steps article { padding: var(--space-4) var(--space-3) var(--space-3); }.step-icon { width: 76px; height: 76px; }.faq { padding: calc(var(--space-5) + var(--space-1)) 0; }.faq-list { margin-top: var(--space-3); }.faq-list summary { min-height: 56px; padding: var(--space-2) 0; font-size: 18px; }.faq-list p { padding-bottom: var(--space-3); }.contact { padding: calc(var(--space-5) + var(--space-1)) 0; }.contact-form { grid-template-columns: 1fr; }.contact-form input, .contact-form textarea { font-size: 16px; }.form-message, .form-feedback { grid-column: auto; }.footer { min-height: 125px; flex-wrap: wrap; gap: var(--space-1); padding: calc(var(--space-3) - var(--space-1)) 0; }
}

@media (max-width: 500px) {
  .section-shell, .header, .mobile-navigation { width: min(100% - 28px, 1180px); }
}


/* Телефон — самостоятельная композиция, а не сжатый десктоп. */
@media (max-width: 820px) {
  body { padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom))); }
  .section-shell, .header, .mobile-navigation { width: min(100% - 32px, 1180px); }
  .header { height: 76px; }
  .brand { width: 138px; height: 46px; }
  .brand img { width: 138px; transform: translate3d(0, -14px, 0) scale(1); }
  .header-cta { display: none; }
  .language-switcher { display: flex; gap: 2px; margin-left: auto; margin-right: 0; }
  .language-button { min-width: 30px; min-height: 44px; padding: 0 6px; }
  .mobile-navigation { min-height: 48px; margin-bottom: var(--space-2); gap: 0; }
  .mobile-navigation a { min-height: 48px; padding: 0 12px; }
  .hero { padding-top: var(--space-4); padding-bottom: var(--space-5); }
  .hero-layout { gap: var(--space-3); }
  .hero-lead { max-width: 34ch; font-size: 16px; line-height: 1.7; }
  .hero-actions { gap: var(--space-2); }
  .hero-actions .button { min-height: 54px; }
  .hero-facts { margin-top: var(--space-4); gap: var(--space-2); }
  .mobile-contact-bar {
    left: 16px; right: 16px; bottom: max(12px, env(safe-area-inset-bottom));
    opacity: 0; transform: translateY(140%); pointer-events: none;
    transition: opacity 260ms ease, transform 320ms cubic-bezier(.16, 1, .3, 1);
  }
  .mobile-contact-bar.is-visible { opacity: 1; transform: none; pointer-events: auto; }
}

@media (max-width: 520px) {
  .section-shell, .header, .mobile-navigation { width: min(100% - 28px, 1180px); }
  .mobile-navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .mobile-navigation a { justify-content: center; padding: 0 2px; font-size: 11.5px; letter-spacing: -0.01em; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; justify-content: center; }
  .hero h1 br { display: none; }
  .hero-facts { grid-template-columns: 1fr; gap: 12px; }
  .hero-facts li { display: flex; align-items: baseline; gap: 14px; }
  .hero-facts b { flex: 0 0 104px; font-size: 22px; }
  .hero-facts span { margin: 0; }
}

/* Хедер и секция контактов красят свой фон сами. Пока они были шириной
   с контент-колонку, заливка обрывалась за 14–16px до края экрана, и по бокам
   оставались светлые полосы просвечивающего космоса — на телефоне это читается
   как шов, а не как приём. Тянем заливку во всю ширину, отступы держим паддингом:
   контент остаётся ровно там же, где был. */
@media (max-width: 820px) {
  .header { width: 100%; padding: 0 16px; }
  .contact { width: 100%; padding-left: 16px; padding-right: 16px; }
  /* Ширина водяного знака считается от паддинг-бокса секции, а он теперь во всю
     ширину экрана — без вычета отступов знак вылезал бы на 16px за левый край. */
  .contact-logo-stage { right: 16px; }
}
@media (max-width: 520px) {
  .header { padding: 0 14px; }
  .contact { padding-left: 14px; padding-right: 14px; }
  .contact-logo-stage { right: 14px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 42px; }
}

@media (hover: hover) and (pointer: fine) {
}

/* На тач-экранах ссылки футера получают нормальную зону нажатия (28px пальцем не попадёшь). */
@media (hover: none) and (pointer: coarse) {
  .footer-social { min-height: 44px; padding: 8px 2px; }
  .footer-brand { min-height: 44px; display: inline-flex; align-items: center; }
  .footer > a[href="#top"] { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  /* Контент всегда виден: !important перебивает даже замороженные анимации. */
  html.reveal-ready .reveal, html.reveal-ready .hero-reveal { opacity: 1 !important; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* --- страница 404 --- */
.notfound { min-height: 82vh; display: flex; align-items: center; padding: var(--space-6) 0; }
.notfound-code { margin: 0 0 var(--space-3); color: var(--blue-soft); font: 500 13px "IBM Plex Mono", monospace; letter-spacing: 0.22em; }
.notfound h1 { max-width: 640px; margin: 0; font-size: clamp(44px, 6vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.notfound h1 em { color: var(--blue-soft); font-style: normal; font-weight: 500; }
.notfound-text { max-width: 460px; margin: var(--space-3) 0 var(--space-4); color: var(--muted); font-size: 16px; line-height: 1.7; }
