/* 1711 Studio — v3. Концепция: ../../DESIGN.md. Система: ../../../site-v2/DESIGN.md. Движение: ../../../MOTION.md */

/* ============ Шрифты: свои файлы вместо Google Fonts (06.12.2026) ============
   Внешний CSS Google блокировал первую отрисовку на ~0,8 с на телефоне (Lighthouse). Наборы и unicode-range — как у Google:
   браузер скачивает только те файлы, символы которых есть на странице. Шрифты ниш в «Прикладах» по-прежнему с Google (niches.js). */
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geologica-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: 'Geologica'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geologica-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geologica-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/geologica-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: 'Martian Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/martian-mono-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: 'Martian Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/martian-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/martian-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/martian-mono-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; }

/* ============ Токены ============ */
:root {
  --bg: #000;
  --bg-1: #0A0A0B;
  --bg-2: #141416;
  --fg: #EDEDEA;
  --fg-2: rgba(237, 237, 234, .66);
  --fg-3: rgba(237, 237, 234, .5);
  --line: rgba(237, 237, 234, .14);
  --line-2: rgba(237, 237, 234, .06);
  --paper: #F3F3F0;
  --white: #FFFFFF;
  --ink: #0D0D0F;
  --ink-2: rgba(13, 13, 15, .66);
  --ink-3: rgba(13, 13, 15, .58);
  --rule: rgba(13, 13, 15, .14);
  --chrome: linear-gradient(180deg, #F6F6F4, #D9DADD);
  --bad: #E5534B;

  --accent: #496EE9;          /* сигналы: статус, подчёркивание, активный шаг, отметки, фокус */
  --fill: #496EE9;            /* заливка кнопок при наведении */
  --on-fill: #fff;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --sans: 'Geologica', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, monospace;

  --m: 40px;                  /* поле */
  --hh: 72px;                 /* высота шапки */
  --h2: clamp(36px, 4.4vw, 64px);
  --sp: 136px;                /* отступ секции */
  --t0: .15s;                 /* старт каскада первого экрана */
}
@media (max-width: 1023px) { :root { --m: 32px; --sp: 104px; } }
@media (max-width: 767px)  { :root { --m: 20px; --hh: 64px; --sp: 80px; } }

/* Тема секции: компоненты берут цвета отсюда, а не из конкретного фона */
.hero, .sec--dark { --t1: var(--fg); --t2: var(--fg-2); --t3: var(--fg-3); --ln: var(--line); --mark: rgba(237, 237, 234, .5); }
.sec--paper, .sec--white { --t1: var(--ink); --t2: var(--ink-2); --t3: var(--ink-3); --ln: var(--rule); --mark: rgba(13, 13, 15, .42); }

/* ============ Основа ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg);
  scroll-behavior: smooth; scroll-padding-top: var(--hh);
}
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }   /* иначе высота из атрибута height перебивает aspect-ratio: в «Прикладах» фото тянулись до 750 px и обрезались */
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.sprite { position: absolute; }

.wrap { width: min(100% - 2 * var(--m), 1600px); margin-inline: auto; }
.mono {
  font: 400 12px/1.4 var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
}
.h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }

/* Сетка 12 колонок на тёмных экранах: отдельные элементы, чтобы линии вставали ровно в пиксель */
.cols {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin-inline: auto; z-index: 0;
  width: min(100% - 2 * var(--m), 1600px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); pointer-events: none;
}
.cols i { border-left: 1px solid var(--line-2); }
.cols i:last-child { border-right: 1px solid var(--line-2); }
/* Свет сетки под курсором на первом экране (main.js): над линиями колонок, под содержимым. Холст создаёт JS — только мышь, без reduced-motion */
.hero__light { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .wrap, .sec > .wrap { position: relative; z-index: 1; }

/* Фирменная деталь: крестики совмещения на углах рамки (центр креста — на линии рамки) */
.marked { position: relative; }
.marked::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none; z-index: 3;
  --c: var(--mark);
  background:
    linear-gradient(var(--c), var(--c)) left 0 top 5px / 11px 1px,
    linear-gradient(var(--c), var(--c)) left 5px top 0 / 1px 11px,
    linear-gradient(var(--c), var(--c)) right 0 top 5px / 11px 1px,
    linear-gradient(var(--c), var(--c)) right 5px top 0 / 1px 11px,
    linear-gradient(var(--c), var(--c)) left 0 bottom 5px / 11px 1px,
    linear-gradient(var(--c), var(--c)) left 5px bottom 0 / 1px 11px,
    linear-gradient(var(--c), var(--c)) right 0 bottom 5px / 11px 1px,
    linear-gradient(var(--c), var(--c)) right 5px bottom 0 / 1px 11px;
  background-repeat: no-repeat;
}

/* ============ Кнопки (MOTION.md: магнит, заливка из точки входа, прокатка надписи, стрелка) ============ */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 52px; padding: 0 22px; border-radius: 2px;
  font: 500 16px/20px var(--sans); white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: translate .35s var(--spring), scale .2s var(--ease), color .45s var(--ease);
}
.btn::after {                       /* заливка: круг из точки входа курсора */
  content: ""; position: absolute; z-index: -1;
  left: var(--bx, 50%); top: var(--by, 50%);
  width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  transform: scale(0); transition: transform .6s var(--ease);
}
.btn__label { position: relative; display: block; height: 20px; overflow: hidden; }
.btn__label > span { position: relative; display: block; transition: transform .45s var(--ease); }
.btn__label > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.btn__arr { position: relative; width: 16px; height: 16px; overflow: hidden; flex: none; }
.btn__arr::before, .btn__arr::after {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h13M9 3l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .45s var(--ease);
}
.btn__arr::after { transform: translateX(-120%); }
.btn:active { scale: .97; }

/* главная: на тёмном — светлый металл, на светлом — чернила; линия — вторая */
.btn--main { background: var(--chrome); color: var(--ink); }
.btn--main::after { background: var(--fill); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::after { background: var(--fill); }
.btn--line { color: var(--fg); box-shadow: inset 0 0 0 1px rgba(237, 237, 234, .28); }
.btn--line::after { background: var(--fg); }
.btn--lineink { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(13, 13, 15, .3); }
.btn--lineink::after { background: var(--ink); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: scale(1); }
  .btn:hover .btn__label > span { transform: translateY(-100%); }
  .btn:hover .btn__arr::before { transform: translateX(120%); }
  .btn:hover .btn__arr::after { transform: none; }
  .btn--main:hover, .btn--ink:hover { color: var(--on-fill); }
  .btn--line:hover { color: var(--ink); }
  .btn--lineink:hover { color: var(--paper); }
}

/* Стрелка внешней ссылки ↗: улетает и прилетает */
.ext { position: relative; width: 10px; height: 10px; overflow: hidden; flex: none; }
.ext::before, .ext::after {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 9 9 1M3 1h6v6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / 10px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 9 9 1M3 1h6v6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / 10px no-repeat;
  transition: transform .45s var(--ease);
}
.ext::after { transform: translate(-110%, 110%); }

/* ============ Шапка ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--hh);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
.header.is-scrolled { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* Встроенный браузер Telegram (ссылка из чата): поверх страницы висит его адресная панель, и закреплённая шапка
   оказывалась «посреди экрана» (владелец 06.12.2026, то же было на Luxe). Там шапка уезжает вместе со страницей.
   Класс .tg-browser ставит скрипт в <head>. */
.tg-browser { scroll-padding-top: 0; }
.tg-browser .header { position: absolute; }
.header__row { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }

.logo { grid-column: 1 / 4; justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 44px; white-space: nowrap; }
/* 21 px по высоте знака с выносами = 3394 × 1460 ед. → 48.8 px; размер задан явно, чтобы колонка не ужимала знак */
.logo__mark { flex: none; width: 48.8px; height: 21px; max-width: none; fill: var(--fg); transition: transform .45s var(--spring); }
.logo__word { color: var(--fg-3); padding-left: 12px; border-left: 1px solid var(--line); line-height: 20px; }

.nav { grid-column: 4 / 9; display: flex; gap: 32px; }
.nav a { position: relative; display: inline-flex; align-items: center; height: 44px; font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color .3s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav a.is-cur { color: var(--fg); }
.nav a.is-cur::after { transform: none; }
.nav__i { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--fg); }
  .nav a:hover::after { transform: none; }
}

.header__side { grid-column: 9 / 13; justify-self: end; display: flex; align-items: center; gap: 24px; }
/* Плашка UA / RU: высота 44 как у .btn--sm, рамка как у .btn--line, текущий язык залит металлом кнопки */
.lang { display: flex; height: 44px; padding: 4px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(237, 237, 234, .28); }
.lang > * { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; border-radius: 1px; color: var(--fg-3); transition: color .3s var(--ease), background-color .3s var(--ease); }
.lang [aria-current] { background: var(--chrome); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .lang a:hover { color: var(--fg); } }
/* Три языка: переключатель 140 px начинается на W − 216, логотип со словом кончается на 149 → на ≤ 380 они сходятся.
   Там в шапке остаётся только знак 1711 (кончается на 69); кнопки языков не уменьшаем, цель касания 44 px. */
@media (max-width: 380px) { .header .logo__word { display: none; } }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--fg); transition: transform .4s var(--ease); }
.burger i:first-child { top: 18px; }
.burger i:last-child { top: 25px; }
.is-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.is-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ Первый экран ============ */
.hero { position: relative; display: flex; flex-direction: column; container-type: inline-size; padding-top: var(--hh); background: var(--bg); color: var(--fg); }
.hero__in { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-bottom: 32px; }

.hero__meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; padding: 22px 0; }
.hero__where { grid-column: 1 / 9; display: flex; gap: 16px; }
.idx { color: var(--fg-2); }
.hero__status { grid-column: 9 / 13; display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.hero__status i { width: 6px; height: 6px; background: var(--accent); }

/* Кегль h1 посчитан: делитель = ширина самой длинной строки в em. --kw: вторая строка «які приводять клієнтів» по краям букв = 10.433 em
   (Geologica 600, трекинг −.045 em); --kn: на ≤ 999 самая длинная строка = 6.64 em.
   На ≥ 1200 заголовок занимает 7 колонок — вторая строка ровно от края сетки до границы 8-й колонки. */
.hero { --W: min(100cqw - 2 * var(--m), 1600px); --kw: 10.433; --kn: 6.64; --h1: calc(var(--W) * 7 / 12 / var(--kw)); }
/* Русская версия: «которые приводят клиентов» = 13.392 em, на ≤ 999 самая длинная строка «которые приводят» = 8.80 em (замер 06.12.2026) */
:lang(ru) .hero { --kw: 13.392; --kn: 8.80; }
/* EN: строки «Websites and bots» 8.39 em и «that bring in clients» 8.68 em короче украинской 10.43, поэтому --kw оставлен
   украинский (кегль на ≥ 1200 тот же 76 px, строки занимают ~83 % колонок, знак не уезжает ниже). На ≤ 999 самая длинная
   строка «Websites and bots» = 8.39 em (замер 06.12.2026, без этого на 390 была прокрутка вбок до 460 px) */
:lang(en) .hero { --kn: 8.40; }
.hero__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; margin-top: 24px; }
.h1 { grid-column: 1 / 8; font-weight: 600; font-size: var(--h1); line-height: .9; letter-spacing: -.045em; }
.h1__l { display: block; white-space: nowrap; clip-path: inset(-.3em -.2em -.3em -.2em); }
.h1__l > span { display: block; }
.h1__l--1 > span { margin-left: -.042em; }   /* боковой отступ «С» — буква встаёт на линию сетки */
.h1__l--2 > span { margin-left: -.033em; }   /* «я» */

.hero__side { grid-column: 8 / 13; padding-left: 32px; display: grid; gap: 20px; justify-items: start; }
.hero__lead { font-size: 18px; line-height: 28px; color: var(--fg-2); max-width: 30em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__notes { color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Знак и табличка стоят на одной линии. Ячейка знака забирает всю оставшуюся высоту экрана,
   знак = min(ширина ячейки, высота ячейки × 1.9733) — отношение сторон viewBox 3394 × 1720 (цифры + STUDIO) */
.hero__plate {
  position: relative; flex: 1; min-height: 160px; margin-top: 40px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); align-items: end;
}
.plate { grid-column: 1 / 10; height: 100%; padding-bottom: 32px; container-type: size; display: flex; align-items: flex-end; }   /* воздух между STUDIO и линией под знаком (на телефоне — линией таблички) */
.plate__svg { flex: none; width: min(100cqw, 100cqh * 1.9733); height: auto; aspect-ratio: 3394 / 1720; max-width: none; overflow: visible; }
/* Линия под знаком и крестики светлеют у курсора: --rx (x курсора на линии), --rk, --k1, --k2 (0…1) пишет main.js, без JS — 0 */
.hero__rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: radial-gradient(280px 1px at var(--rx, -999px) 50%, rgba(237, 237, 234, calc(.62 * var(--rk, 0))), transparent) var(--line);
}
.hero__rule::before, .hero__rule::after {      /* крестики на концах линии */
  content: ""; position: absolute; top: -5px; width: 11px; height: 11px;
  background: linear-gradient(var(--mark), var(--mark)) center / 11px 1px no-repeat, linear-gradient(var(--mark), var(--mark)) center / 1px 11px no-repeat;
}
.hero__rule::before { left: -5px; --mark: rgba(237, 237, 234, calc(.5 + .5 * var(--k1, 0))); transform: scale(calc(1 + .45 * var(--k1, 0))); }
.hero__rule::after { right: -5px; --mark: rgba(237, 237, 234, calc(.5 + .5 * var(--k2, 0))); transform: scale(calc(1 + .45 * var(--k2, 0))); }

.spec { grid-column: 10 / 13; align-self: end; padding-left: 32px; }
.spec__r { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0 15px; border-top: 1px solid var(--line); }
.spec dt { color: var(--fg-3); transition: color .35s var(--ease); }
.spec dd { font-size: 18px; line-height: 24px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec__r--live { align-items: flex-end; }
.spec__r--live dt { text-wrap: balance; }      /* на 1200–1439 подпись в две ровные строки, а не «…за» отдельно */
.spec__r--live dd { color: var(--fg); }
.spec__r--live dt::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; vertical-align: 1px; background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .spec__r:hover dt { color: var(--fg); } }

/* Знак 1711 / STUDIO: металл и блик. Вход — классы и маски из main.js, тайминг там же.
   Размеры внутри SVG в единицах viewBox (px в CSS = единица): цифры −30…1400, STUDIO под ними */
.plate__glint { pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.plate.is-lit .plate__glint { opacity: 1; }

/* код знака: строки проступают по очереди (--i), подсветка как в редакторе */
.plate__code text { font: 400 120px/1 var(--mono); opacity: 0; transform: translateY(24px); transition: opacity .45s var(--ease) calc(var(--i) * 80ms), transform .45s var(--ease) calc(var(--i) * 80ms); }
.plate.is-code .plate__code text { opacity: 1; transform: none; }
.plate__code .p { fill: var(--fg-3); }      /* < > = " / */
.plate__code .t { fill: var(--fg); }        /* svg, g, path, text */
.plate__code .a { fill: var(--fg-2); }      /* атрибуты */
.plate__code .v { fill: var(--accent); }    /* значения */

/* сканер: вертикальная линия 1.5 px в любом масштабе, шлейф слева; положение пишет main.js */
.plate__scan { opacity: 0; transition: opacity .3s var(--ease); }
.plate__scan line { stroke: var(--accent); stroke-width: 1.5px; }
.plate.is-scan .plate__scan { opacity: 1; }
.plate__word { font: 400 150px/1 var(--mono); letter-spacing: 37px; fill: var(--fg-2); }
.js .plate__word tspan { opacity: 0; }
.js .plate__word tspan.is-on { opacity: 1; }
/* курсор «_»: x пишет main.js. Мигает 0,9 с (вкл 0,45 / выкл 0,45), пока ждёт; горит ровно, пока идёт ввод */
.plate__caret { fill: var(--accent); opacity: 0; transition: opacity .4s var(--ease); }
.plate.is-caret .plate__caret { opacity: 1; animation: caret-blink .9s steps(1) infinite; }
.plate.is-typing .plate__caret { animation: none; }
@keyframes caret-blink { 50% { fill-opacity: 0; } }

/* Каскад первого экрана */
.js [data-enter] { opacity: 0; transform: translateY(24px); }
.js .h1__l > span { transform: translateY(140%); }
.is-ready [data-enter], .is-ready .h1__l > span {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease) calc(var(--t0) + var(--d, 0) * 90ms), transform .8s var(--ease) calc(var(--t0) + var(--d, 0) * 90ms);
}
.h1__l--1 > span { --d: 1; }
.h1__l--2 > span { --d: 2; }

/* ============ Секции ============ */
.sec { position: relative; padding: var(--sp) 0; }
.sec--paper { background: var(--paper); color: var(--ink); }
.sec--white { background: var(--white); color: var(--ink); }
.sec--dark { background: var(--bg); color: var(--fg); }

.sec__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 24px; margin-bottom: 80px; }
.sec__idx { grid-column: 1 / 4; color: var(--t3); padding-top: calc(var(--h2) * .16); }
.h2 { grid-column: 4 / 13; font-size: var(--h2); line-height: 1.02; font-weight: 600; letter-spacing: -.035em; max-width: 15em; text-wrap: balance; }
.sec__lead { grid-column: 4 / 10; font-size: 18px; line-height: 28px; color: var(--t2); max-width: 36em; text-wrap: pretty; }

/* Появление при прокрутке: 28 px вверх, .8 с, очередь 90 мс, один раз */
.js [data-reveal], .js .rv { opacity: 0; transform: translateY(28px); }
.js .is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease) calc(var(--i, 0) * 90ms), transform .8s var(--ease) calc(var(--i, 0) * 90ms); }

/* ============ 01. Принципи ============ */
.pr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); }
.pr__c { position: relative; display: grid; align-content: start; gap: 12px; padding: 0 28px 40px; transition: background-color .45s var(--ease); }
.pr__c + .pr__c { border-left: 1px solid var(--ln); }
.pr__c::before {                    /* линия акцента сверху вырастает слева */
  content: ""; position: absolute; left: -1px; right: 0; top: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.pr__n { color: var(--t3); margin-top: 8px; }
.pr__c > p { color: var(--t2); text-wrap: pretty; }

/* Схемы: в покое показывают итог, при наведении проигрываются заново */
.dg {
  height: 136px; margin: 0 -28px 8px; padding: 28px 28px 0; border-bottom: 1px solid var(--ln);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--t2);
}
.dg__row { display: flex; align-items: center; gap: 10px; }
.dg__row span { flex: none; }
.dg__row i { flex: 1; min-width: 12px; height: 1px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px); opacity: .55; transform-origin: left; }
.dg__row b { flex: none; font-weight: 400; color: var(--t1); }
.dg__roll { overflow: hidden; height: 17px; }
.dg__roll span { display: block; }
.dg__eq { align-self: flex-end; color: var(--accent); }
.dg--price { gap: 8px; }   /* 4 строки с подписью «Приклад»: 4 × 17 + 3 × 8 = 92 px, на телефоне доступно 95 */
.dg__row s { flex: none; width: 10px; height: 10px; border: 1px solid var(--t1); background: var(--t1); }

.dg__track { position: relative; height: 24px; container-type: inline-size; }
.dg__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: .55; }
.dg__track i { position: absolute; top: 6px; left: calc(var(--x) * 100%); width: 1px; height: 13px; margin-left: calc(var(--x) * -1px); background: currentColor; }
/* точка сдвигается на ширину дорожки (100cqw), а не обёртка: иначе её коробка вылезает за край экрана */
.dg__go b { position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--accent); transform: translateX(100cqw); }   /* в покое — у «Запуску» */
.dg__labels { display: flex; justify-content: space-between; }

.dg__ticks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 24px; }
.dg__ticks i { background: var(--ln); }
.dg__ticks i:first-child { background: var(--t1); }

/* is-play ставит main.js: мышь — при наведении; телефон — карточка в середине экрана и по касанию */
.pr__c.is-play::before { transform: none; }
  .pr__c.is-play .dg__row i { animation: dg-draw .6s var(--ease) both; }
  .pr__c.is-play .dg__row + .dg__row i { animation-delay: .12s; }
  .pr__c.is-play .dg__row + .dg__row + .dg__row i { animation-delay: .24s; }
  .pr__c.is-play .dg__roll span { animation: dg-roll .5s var(--ease) .4s both; }
  .pr__c.is-play .dg__eq { animation: dg-pop .45s var(--spring) .8s both; }
  .pr__c.is-play .dg__row s { animation: dg-tick .4s var(--spring) .45s both; }
  .pr__c.is-play .dg__row + .dg__row s { animation-delay: .6s; }
  .pr__c.is-play .dg__row + .dg__row + .dg__row s { animation-delay: .75s; }
  .pr__c.is-play .dg__go b { animation: dg-go 1.4s var(--ease) both; }
  .pr__c.is-play .dg__ticks i { animation: dg-month .35s var(--ease) calc(var(--i) * 70ms) both; }
@keyframes dg-draw { from { transform: scaleX(0); } }
@keyframes dg-roll { from { transform: translateY(100%); } }
@keyframes dg-pop { from { opacity: 0; transform: scale(.7); } }
@keyframes dg-tick { from { background: transparent; transform: scale(.5); } to { background: var(--accent); border-color: var(--accent); } }
@keyframes dg-go { from { transform: none; } }
@keyframes dg-month { to { background: var(--accent); } }

/* ============ 02. Послуги та ціни ============ */
.svc-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-bottom: 14px; border-bottom: 1px solid var(--ln); color: var(--t3); }
.svc-head :nth-child(1) { grid-column: 1; }
.svc-head :nth-child(2) { grid-column: 2 / 5; }
.svc-head :nth-child(3) { grid-column: 5 / 9; }
.svc-head :nth-child(4) { grid-column: 9 / 11; }
.svc-head :nth-child(5) { grid-column: 11 / 13; text-align: right; padding-right: 48px; }

.svc { border-bottom: 1px solid var(--ln); }
.svc__row {
  position: relative; isolation: isolate; list-style: none; cursor: pointer;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center;
  min-height: 96px; padding: 20px 0;
  transition: color .4s var(--ease);
}
.svc__row::-webkit-details-marker { display: none; }
.svc__row::before {                 /* тёмная заливка поднимается снизу */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -20px; right: -20px; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.svc__i { grid-column: 1; color: var(--t3); transition: color .4s var(--ease); }
.svc__name { grid-column: 2 / 5; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; padding-right: 16px; }
.svc__tag { display: inline-block; vertical-align: 5px; margin-left: 8px; padding: 3px 7px 2px; border: 1px solid currentColor; border-radius: 2px; color: var(--accent); letter-spacing: .06em; }
.svc__desc { grid-column: 5 / 9; color: var(--t2); padding-right: 24px; transition: color .4s var(--ease); }
.svc__term { grid-column: 9 / 11; font-variant-numeric: tabular-nums; }
.svc__price { grid-column: 11 / 13; justify-self: end; padding-right: 48px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc__price small { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.svc__x { position: absolute; right: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; transition: transform .45s var(--spring); }
.svc__x::before, .svc__x::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transition: transform .45s var(--ease); }
.svc__x::before { width: 16px; height: 1px; margin: -.5px 0 0 -8px; }
.svc__x::after { width: 1px; height: 16px; margin: -8px 0 0 -.5px; }
.svc[open] .svc__x::after { transform: scaleY(0); }
.svc[open] .svc__i { color: var(--accent); }

.svc__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; padding: 4px 0 40px; }
.svc__inc { grid-column: 2 / 9; columns: 2; column-gap: 32px; }
.svc__inc li { position: relative; break-inside: avoid; padding: 6px 0 6px 22px; color: var(--t2); }
.svc__inc li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 1px; background: var(--accent); }
.svc__go { grid-column: 10 / 13; justify-self: end; }

@supports selector(::details-content) {
  .svc { interpolate-size: allow-keywords; }
  .svc::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
  .svc[open]::details-content { height: auto; }
}

/* is-lit ставит main.js: мышь — при наведении; телефон — пока строка раскрыта */
.svc__row.is-lit { color: var(--paper); }
.svc__row.is-lit::before { transform: none; }
.svc__row.is-lit .svc__i { color: var(--accent); }
.svc__row.is-lit .svc__desc { color: rgba(243, 243, 240, .66); }
.svc__row.is-lit .svc__x { transform: rotate(90deg); }

/* Подсказка под ценой при наведении: «Що входить» / «Згорнути». Высота строки не меняется.
   Цена — строка 28.8 px по центру → низ на 50% + 14.4; подсказка на 5.6 px ниже. Только мышь: на телефоне нет наведения */
.svc__hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .svc__hint {
    display: block; position: absolute; right: 48px; top: calc(50% + 20px); color: rgba(243, 243, 240, .66); pointer-events: none;
    opacity: 0; translate: 0 -4px; transition: opacity .3s var(--ease), translate .3s var(--ease);
  }
  .svc__row.is-lit .svc__hint { opacity: 1; translate: none; transition-delay: .15s; }
  .svc__hint span + span, .svc[open] .svc__hint span:first-child { display: none; }
  .svc[open] .svc__hint span + span { display: inline; }
}

.svc-help { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 24px 0; margin-top: 56px; }
.svc-help p { grid-column: 2 / 9; color: var(--t2); font-size: 18px; line-height: 28px; text-wrap: pretty; }
.svc-help .btn { grid-column: 10 / 13; justify-self: end; }

/* ============ 03. Процес ============ */
.steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.steps::before { background: var(--line); }
.steps::after { background: var(--accent); transform: scaleX(var(--p)); transform-origin: left; }   /* заполняется в такт прокрутке */
.step { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 28px 24px 0 0; }
.step::before {                     /* засечка шага */
  content: ""; position: absolute; left: 0; top: -6px; width: 1px; height: 13px; background: var(--fg-3);
  transition: background-color .3s var(--ease), transform .45s var(--spring);
}
.step__n { color: var(--fg-3); transition: color .3s var(--ease); }
.step__t { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.step > p:not(.step__you) { color: var(--fg-2); text-wrap: pretty; }
.step__you { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.step__you span { display: block; margin-bottom: 4px; color: var(--fg-3); }
.step.is-on::before { background: var(--accent); transform: scaleY(1.6); }
.step.is-on .step__n { color: var(--accent); }

.incl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 96px; }
.incl__c { border-top: 1px solid var(--line); padding-top: 24px; }
.incl__c:first-child { grid-column: 1 / 7; padding-right: 32px; }
.incl__c:last-child { grid-column: 7 / 13; padding-left: 32px; border-left: 1px solid var(--line); }
.incl__t { color: var(--fg-3); margin-bottom: 16px; font-weight: 400; }
/* сеткой, а не columns: пункты идут парами по строкам, обе колонки кончаются на одной линии (8 = 4 × 2) */
.incl__c:first-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.incl li { position: relative; break-inside: avoid; padding: 7px 0 7px 22px; }
.incl li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--accent); }
.incl__c:last-child li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-left: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
.incl__c:last-child li::before { display: none; }
.incl__c:last-child li .mono { color: var(--fg-2); }
.incl__note { margin-top: 16px; color: var(--fg-2); font-size: 14px; max-width: 34em; }

/* ============ 04. Роботи: два окна рядом, сайт у зменшеному масштабі гортається всередині ============
   Знімок — 1440 px сторінки на кілька екранів; у вікні ~660 px він ×0,46, тож видно 1,5–2 екрани. */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px 40px; align-items: start; }
.case { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: start; }   /* minmax: без него колонка тянулась по строке «название + ссылка» и на 320 давала прокрутку вбок */
.case__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; }
.case__kind { grid-column: 1 / -1; color: var(--t3); }
.case__t { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.case__txt { grid-column: 1 / -1; max-width: 34em; color: var(--t2); text-wrap: pretty; }
.contact__spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--ln); }
.contact__spec > div:last-child { border-bottom: 1px solid var(--ln); }
.contact__spec dt { color: var(--t3); }
.contact__spec dd { font-weight: 500; text-align: right; }
.case__link { justify-self: end; position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; font-weight: 500; white-space: nowrap; }
.case__link::after { content: ""; position: absolute; left: 0; right: 20px; bottom: 9px; height: 1px; background: currentColor; transform-origin: left; transition: transform .45s var(--ease); }
/* «Apartment» 145 px + зазор 24 + «Відкрити сайт» 133 = 302 px карточки = экран 342 (поля 2 × 20). Уже — ссылка под названием */
@media (max-width: 341px) {
  .case__info { grid-template-columns: minmax(0, 1fr); }
  .case__link { justify-self: start; }
}
@media (hover: hover) and (pointer: fine) {
  .case__link:hover::after { transform: scaleX(0); transform-origin: right; }
  .case__link:hover .ext::before { transform: translate(110%, -110%); }
  .case__link:hover .ext::after { transform: none; }
}

.case__shot { border: 1px solid var(--rule); background: var(--paper); }
.case__bar { display: flex; align-items: center; justify-content: space-between; height: 45px; padding-left: 16px; border-bottom: 1px solid var(--rule); color: var(--t3); }
.case__host { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.case__view { flex: none; display: flex; }
.case__view button {
  height: 44px; padding: 0 16px; border-left: 1px solid var(--rule); color: var(--t3);
  font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .3s var(--ease);
}
.case__view button[aria-pressed="true"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .case__view button:hover { color: var(--t1); } .case__view button[aria-pressed="true"]:hover { color: var(--accent); } }
.v-short { display: none; }
.case__progress { position: absolute; z-index: 2; left: 0; right: 0; top: 44px; height: 1px; pointer-events: none; }   /* поверх нижней линии строки адреса, как у «Прикладів» */
.case__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Окно квадратное. «Телефон»: экран сайта сжимается в смартфон по центру (высота окна − 2 × 24, пропорции 390 × 844),
   внутри — мобильная версия. Ширина телефона = (100cqh − 48px) × 390 / 844, половина — × .2311 */
.case__screen { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-1); container-type: size; }
.case__dev {
  position: absolute; inset: 0; overflow: hidden auto; scrollbar-width: none;
  border: 1px solid transparent; background: var(--bg-1);
  transition: inset .7s var(--ease), border-radius .7s var(--ease), border-color .7s var(--ease);
}
.case__dev::-webkit-scrollbar { display: none; }
.case__dev:focus-visible { outline-offset: -2px; }
.case__screen.is-m .case__dev { inset: 24px calc(50% - (100cqh - 48px) * .2311); border-radius: 28px; border-color: rgba(237, 237, 234, .3); }
.case__img { width: 100%; height: auto; transition: opacity .22s var(--ease); }
.case__dev.is-fade .case__img { opacity: 0; }
.case__img[hidden] { display: none; }            /* img { display: block } перебивает атрибут hidden */
.works__cap { margin-top: 40px; color: var(--t3); }

/* ============ 05. Приклади: вкладки ниш + окно с живым мини-сайтом ============
   Рамка — в системе 1711 (строки с линиями, моно-индексы, окно как у кейсов). Сами мини-сайты — niches.css. */
.show { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; align-items: start; }
.show__tabs { grid-column: 1 / 5; grid-row: 1; padding-right: 40px; }
.show__tab {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); row-gap: 4px; width: 100%;
  padding: 18px 0 19px; border-top: 1px solid var(--ln); text-align: left; color: var(--t2);
  transition: color .3s var(--ease);
}
.show__tab:last-child { border-bottom: 1px solid var(--ln); }
.show__tab::after {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.show__tab[aria-selected="true"] { color: var(--t1); }
.show__tab[aria-selected="true"]::after { transform: none; }
.show__i { grid-row: 1 / span 2; padding-top: 5px; color: var(--t3); transition: color .3s var(--ease); }   /* (28 − 16,8) / 2 */
.show__tab[aria-selected="true"] .show__i { color: var(--accent); }
.show__name { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.02em; }
.show__get { grid-column: 2; font-size: 14px; line-height: 20px; color: var(--t3); }
@media (hover: hover) and (pointer: fine) { .show__tab:hover { color: var(--t1); } }

.show__info { grid-column: 1 / 5; grid-row: 2; padding: 40px 40px 0 0; }
.show__title { margin-bottom: 12px; color: var(--t3); }
.show__list li { position: relative; break-inside: avoid; padding: 6px 0 6px 22px; color: var(--t2); }
.show__list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 1px; background: var(--accent); }
.show__info .btn { margin-top: 28px; }

.show__view { grid-column: 5 / 13; grid-row: 1 / span 2; }
.browser { position: relative; overflow: hidden; border: 1px solid var(--rule); background: var(--white); }
.browser__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 45px; padding-left: 16px; border-bottom: 1px solid var(--rule); color: var(--t3);
}
.browser__url { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser__play {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px;
  border-left: 1px solid var(--rule); color: var(--t2);
  font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .3s var(--ease);
}
.browser__play[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .browser__play:hover { color: var(--accent); } }
.browser__icon { width: 8px; height: 9px; border-inline: 2px solid currentColor; }                    /* ❚❚ */
.browser__play[aria-pressed="true"] .browser__icon { border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }   /* ▶ */
.browser__progress { position: absolute; z-index: 2; left: 0; right: 0; top: 44px; height: 1px; pointer-events: none; }   /* поверх нижней линии строки адреса */
.browser__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.browser__view { height: 600px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.browser__view::-webkit-scrollbar { display: none; }
.browser__view:focus-visible { outline-offset: -2px; }
.browser__toast {
  position: absolute; z-index: 3; top: 61px; left: 50%; max-width: calc(100% - 32px);
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font: 500 13px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translate(-50%, -8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.browser__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.niches__note { margin-top: 32px; max-width: 72em; font-size: 13px; line-height: 1.6; color: var(--t3); }
.niches__note a { text-decoration: underline; text-underline-offset: 2px; }

/* ============ 06. Заявка ============ */
.contact { padding-bottom: 0; }
.contact__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; padding-bottom: var(--sp); }
.contact__l { grid-column: 1 / 6; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.contact__l > * { grid-column: 1; }       /* у .h2 и .sec__idx свои колонки из шапок секций — здесь одна */
.contact__l .sec__idx { padding-top: 0; }
.contact__txt { color: var(--fg-2); font-size: 18px; line-height: 28px; max-width: 30em; }
.contact__spec { margin-top: 16px; }

.form { grid-column: 7 / 13; display: grid; gap: 32px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: grid; gap: 6px; }
.field__l { color: var(--fg-3); }
.field input, .field textarea {
  width: 100%; font: 400 16px/24px var(--sans); color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid rgba(237, 237, 234, .28); border-radius: 0; padding: 10px 0 11px; outline: 0;
  transition: border-color .3s var(--ease);
}
.field textarea { display: block; resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.is-bad input { border-color: var(--bad); }
/* Мигающий курсор в пустом «Коротко про справу»: видно, что сюда пишут. Настоящий появляется только в фокусе,
   а фокус при загрузке поднял бы клавиатуру на телефоне. Свой стоит там, где начнётся текст (отступ 10 + (24 − 20) / 2) */
.field__box { position: relative; display: block; }
.caret { position: absolute; left: 0; top: 12px; width: 1px; height: 20px; background: var(--fg); pointer-events: none; animation: caret 1.1s steps(1) infinite; }
.field textarea:focus + .caret, .field textarea:not(:placeholder-shown) + .caret { display: none; }
@keyframes caret { 50% { opacity: 0; } }

.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 2px;
  font-size: 14px; font-weight: 500; color: var(--fg-2); box-shadow: inset 0 0 0 1px rgba(237, 237, 234, .28);
  transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease), translate .35s var(--spring);
}
.chips input:checked + span { background: var(--fg); color: var(--ink); box-shadow: none; }
.chips input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chips label:hover span { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); translate: 0 -2px; } .chips label:hover input:checked + span { color: var(--ink); } }

.form__end { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.form__err { color: var(--bad); }
.form__ok { border: 1px solid var(--line); padding: 32px; display: grid; gap: 8px; color: var(--fg-2); }
.form__ok[hidden] { display: none; }
.form__ok-t { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
.form.is-sent > :not(.form__ok) { display: none; }

.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg); }
.foot__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; min-height: 96px; gap: 12px 0; }
.foot__in .logo { grid-column: 1 / 4; }
.foot__what { grid-column: 4 / 7; color: var(--fg-3); font-size: 14px; }
.foot__nav { grid-column: 7 / 11; display: flex; gap: 24px; }
.foot__nav a { display: inline-flex; align-items: center; height: 44px; color: var(--fg-3); transition: color .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .foot__nav a:hover { color: var(--fg); } }
.foot__c { grid-column: 11 / 13; justify-self: end; color: var(--fg-3); }

/* ============ Адаптив ============ */
@media (min-width: 1200px) {
  .hero { height: 100svh; min-height: 700px; max-height: 1100px; }
}

@media (max-width: 1199px) {
  /* заголовок во всю ширину, знак во всю ширину, табличка — 4 ячейки под ним */
  .hero { --h1: min(var(--W) / var(--kw), 72px); }    /* не крупнее, чем на 1440 (76), — без скачка на 1199 → 1200 */
  .h1 { grid-column: 1 / -1; }
  .hero__side { grid-column: 1 / -1; padding-left: 0; margin-top: 28px; grid-template-columns: minmax(0, 36em); }
  .hero__plate { flex: none; display: block; min-height: 0; margin-top: 56px; }
  .plate { height: auto; container-type: normal; }
  .plate__svg { width: 100%; }
  .hero__rule { display: none; }
  .spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .spec__r { flex-direction: column; justify-content: flex-start; gap: 6px; padding: 14px 16px 15px; border-top: 0; }
  .spec__r + .spec__r { border-left: 1px solid var(--line); }
  .spec__r:first-child { padding-left: 0; }

  .pr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr__c:nth-child(3) { border-left: 0; }
  .pr__c:nth-child(n+3) { border-top: 1px solid var(--ln); }

  .svc__name { grid-column: 2 / 6; }
  .svc__desc { grid-column: 6 / 10; }
  .svc__term { display: none; }
  .svc-head :nth-child(2) { grid-column: 2 / 6; }
  .svc-head :nth-child(3) { grid-column: 6 / 10; }
  .svc-head :nth-child(4) { display: none; }
  .svc-head :nth-child(5) { grid-column: 10 / 13; }
  .svc__price { grid-column: 10 / 13; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .step { border-top: 1px solid var(--line); }
  .step::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
  .step.is-on::after { transform: none; }


  .show { grid-template-rows: none; }
  .show__tabs { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; padding-right: 0; margin-bottom: 32px; }
  .show__tab:last-child { border-bottom: 0; }
  .show__view { grid-column: 1 / -1; grid-row: 2; }
  .show__info { grid-column: 1 / -1; grid-row: 3; padding: 40px 0 0; }
  .show__list { columns: 2; column-gap: 40px; }

  .contact__l { grid-column: 1 / -1; margin-bottom: 56px; }
  .form { grid-column: 1 / -1; }
}

@media (max-width: 1099px) {
  .nav {
    position: fixed; inset: var(--hh) 0 0; z-index: 39; display: flex; flex-direction: column; gap: 0;
    padding: 16px var(--m) 32px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .nav a { height: 64px; gap: 16px; font-size: 24px; font-weight: 500; color: var(--fg); border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav__i { display: inline; color: var(--fg-3); }
  .burger { display: block; }
  .logo { grid-column: 1 / 5; }
  .header__side { grid-column: 5 / 13; gap: 12px; }
}

@media (max-width: 1023px) {
  .cases { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }   /* окно во всю ширину: два по 330 px на 768 — мелко */
  .sec__idx, .h2, .sec__lead { grid-column: 1 / -1; }
  .sec__idx { padding-top: 0; }
  .sec__head { margin-bottom: 56px; }
  .svc-help p, .svc-help .btn { grid-column: 1 / -1; justify-self: start; }
  .svc__inc { grid-column: 2 / -1; }
  .svc__go { grid-column: 2 / -1; justify-self: start; margin-top: 16px; }
  .incl__c:first-child, .incl__c:last-child { grid-column: 1 / -1; padding: 24px 0 0; border-left: 0; }
  .incl__c:last-child { margin-top: 48px; }
  .foot__in { padding: 24px 0; }
  .foot__in .logo, .foot__what, .foot__nav, .foot__c { grid-column: 1 / -1; justify-self: start; }
  .foot__nav { flex-wrap: wrap; gap: 0 24px; }
}

@media (max-width: 999px) {
  /* три строки: самая широкая — «Сайти та боти,» = 6.64 em */
  .hero { --h1: min(var(--W) / var(--kn), 68px); }
  .h1__l--2 > span > span { display: block; }
  .h1__b { margin-left: -.038em; }          /* «к»: −.071 + уже сдвинуто на −.033 */
}

@media (max-width: 767px) {
  .incl__c:first-child ul { column-gap: 20px; }
  .cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols i:nth-child(n+5) { display: none; }
  .cols i:nth-child(4) { border-right: 1px solid var(--line-2); }
  .header__side .btn { display: none; }
  .hero__meta { padding: 18px 0 20px; }
  .hero__where { grid-column: 1 / -1; }
  .hero__status { display: none; }
  .hero__head { margin-top: 8px; }
  .hero__lead { font-size: 16px; line-height: 24px; }
  .hero__side { justify-items: stretch; gap: 20px; }
  .hero__actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero__notes { flex-direction: column; }
  .hero__notes .dot { display: none; }
  .hero__plate { margin-top: 48px; }
  .plate { padding-bottom: 24px; }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec__r { padding: 12px 12px 13px; }
  .spec__r:nth-child(odd) { padding-left: 0; border-left: 0; }
  .spec__r:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec dd { font-size: 16px; white-space: normal; }

  .pr { grid-template-columns: minmax(0, 1fr); }
  .pr__c { padding: 0 0 32px; }
  .pr__c + .pr__c { border-left: 0; border-top: 1px solid var(--ln); }
  .dg { margin: 0 0 8px; padding: 24px 0 0; height: 120px; }

  .svc-head { display: none; }
  .svc { border-top: 0; }
  .svc-list { border-top: 1px solid var(--ln); }
  .svc__row { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "i name price" "i desc desc"; gap: 6px 0; align-items: baseline; padding: 20px 36px 20px 0; min-height: 0; }
  .svc__i { grid-area: i; }
  .svc__name { grid-area: name; font-size: 20px; padding-right: 12px; }
  .svc__desc { grid-area: desc; font-size: 14px; padding-right: 0; }
  .svc__price { grid-area: price; padding-right: 0; font-size: 20px; }
  .svc__price small { font-size: 14px; }
  .svc__tag { display: table; margin: 6px 0 0; vertical-align: 0; }
  .svc__row::before { left: calc(-1 * var(--m)); right: calc(-1 * var(--m)); }
  .svc__body { display: block; padding: 0 0 32px 32px; }
  .svc__inc { columns: 1; }
  .svc-help .btn { width: 100%; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .step { padding-right: 0; }

  .case { gap: 20px; }
  .case__t { font-size: 28px; }
  .v-long { display: none; }
  .v-short { display: inline; }
  .case__view button { padding: 0 12px; }
  .case__screen.is-m .case__dev { inset: 12px calc(50% - (100cqh - 24px) * .2311); border-radius: 18px; }

  .show__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .show__tab { grid-template-columns: 32px minmax(0, 1fr); padding: 14px 0 15px; }
  .show__i { padding-top: 4px; }                          /* (24 − 16,8) / 2 */
  .show__name { font-size: 16px; line-height: 24px; }
  .show__get { display: none; }
  .show__list { columns: 1; }
  .show__info .btn { width: 100%; }
  .browser__view { height: 560px; }

  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .form__end .btn { width: 100%; }
}


/* ============ Без движения: всё сразу в конечном виде ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
  .js [data-enter], .js .h1__l > span, .js [data-reveal], .js .rv { opacity: 1; transform: none; }
  .js .plate__word tspan { opacity: 1; }         /* знак сразу в финале: 1711 / STUDIO, без курсора */
}
