/* КодЦех: стили сайта. Плоские цвета бренда: графит, фиолетовый (только кнопки), мятный (выделение в заголовке и цифры). Без градиентов и свечений. */
/* Шрифты локальные, OFL 1.1 (assets/fonts/OFL.txt). Onest переменный: один файл на все начертания. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(../fonts/jetbrains-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: #0E0F1A;
  --surface: #151726;
  --surface-2: #1C1F33;
  --line: #2A2E47;
  --text: #EDEEF5;
  --muted: #A6AAC2;
  --faint: #7B809C;
  --paper: #EDEEF5;
  --paper-ink: #0E0F1A;
  --paper-muted: #4A4E66;
  --paper-line: #CFD1DE;
  /* светлая поверхность секций главной (#case, #demos): тёмный текст, вторичный #4A4E66 даёт 7:1 */
  --light: #EEEFF6;
  --light-line: #D3D5E2;
  --shadow-dev: 0 24px 48px -16px rgba(14, 15, 26, .35), 0 4px 12px rgba(14, 15, 26, .12);
  --violet: #7C5CFF;
  --violet-press: #6A48F5;
  /* основная кнопка: белый на #7C5CFF даёт 4,35:1 — мало для AA, поэтому фон темнее (контраст считает tests/pages.test.js) */
  --btn-bg: #6A48F5;
  --btn-bg-hover: #5A37E6;
  --btn-text: #FFFFFF;
  --mint: #2EE6A8;
  --ink: #0E0F1A;

  --sans: "Onest", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --step-display: clamp(2.5rem, 1rem + 3.4vw, 4.25rem);
  --step-hero: clamp(2.25rem, 1.2rem + 3vw, 4rem);
  --step-h2: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --step-h3: 1.25rem;
  --space-section: clamp(64px, 8vw, 112px);
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: .15s;
  --t-mid: .3s;
  --t-slow: .5s;
}

*, *::before, *::after { box-sizing: border-box; }
/* якорь: на 12 px ниже шапки (64 px на смартфоне, 76 px на десктопе), чтобы линия раздела не сливалась с линией шапки */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 77px; }
@media (min-width: 900px) { html { scroll-padding-top: 89px; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2 { margin: 0; font-weight: 600; color: var(--text); text-wrap: balance; }
h3 { margin: 0; font-weight: 500; color: var(--text); }
h1 { font-size: var(--step-hero); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: var(--step-h2); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: var(--step-h3); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--text); text-underline-offset: 4px; text-decoration-color: var(--faint); transition: text-decoration-color var(--t-fast) var(--ease); }
a:hover { color: var(--text); text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--mint); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.5rem;
  background: var(--btn-bg); color: var(--btn-text);
  border: 0; border-radius: 12px;
  font: 600 1.0625rem/1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn .arr { font-family: var(--mono); }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; min-height: 44px; padding: 0 .25rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.fallback { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.fallback a { color: var(--text); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; min-height: 44px; }
.logo:hover { color: var(--text); }
.logo svg { width: 34px; height: 32px; flex: none; }
.logo-word { font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; }
.logo-word b { color: var(--mint); font-weight: 700; }
.nav { display: none; gap: 2rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; padding: .625rem 0; transition: color var(--t-fast) var(--ease); }
.nav a:hover, .nav a[aria-current="page"], .nav a[aria-current="location"] { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- метки разделов: одна система «01 Название» ---------- */
.kicker { font-family: var(--mono); font-size: .875rem; color: var(--muted); margin-bottom: 1rem; display: block; }
.eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.eyebrow .n { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--mono); font-size: .875rem; color: var(--mint); font-variant-numeric: tabular-nums; }
.eyebrow .n::after { content: ""; width: 28px; height: 1px; background: var(--faint); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); max-width: 820px; }
.section-head p { color: var(--muted); max-width: 58ch; }
.section-head .eyebrow { margin-bottom: .25rem; }
@media (min-width: 960px) {
  .split-head { max-width: none; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 4rem; align-items: end; }
  .split-head .eyebrow { grid-column: 1 / -1; }
  .split-head > p:not(.eyebrow) { justify-self: end; padding-bottom: .5rem; }
}
section { padding-block: var(--space-section); }
/* линия между разделами только там, где поверхность не меняется */
#why, #faq { border-top: 1px solid var(--line); }

/* разные масштабы заголовков разделов */
.h-xl { font-size: clamp(2.75rem, 1rem + 5.2vw, 5.75rem); line-height: .95; letter-spacing: -.05em; }
.h-l { font-size: var(--step-h2); }
.h-m { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.08; }
.h-s { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.025em; }

/* светлая поверхность: тёмный текст, устройства с тенью вместо рамки */
.light { background: var(--light); color: var(--paper-ink); }
.light h2, .light h3, .light b { color: var(--paper-ink); }
.light p, .light .section-head p, .light .eyebrow, .light .demo-note { color: var(--paper-muted); }
.light a, .light a:hover { color: var(--paper-ink); }
.light :focus-visible, .light .link-arrow:focus-visible, .light .strip:focus-visible { outline-color: var(--paper-ink); }
/* приподнятая полоса на всю ширину окна */
.raised { background: var(--surface); }

/* ---------- первый экран: две равные колонки, телефон вписывается в правую ---------- */
.hero { padding-block: 1.25rem 2.5rem; border-bottom: 1px solid var(--line); overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: center; }
@media (min-width: 960px) {
  .hero { min-height: calc(100svh - 77px); display: grid; align-items: center; padding-block: 1rem; }
  .hero .wrap { width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}
.hero h1 { font-size: var(--step-display); line-height: .98; letter-spacing: -.045em; margin-top: 1.25rem; max-width: 12.5em; }
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 2rem; }
/* доказательства под кнопками: три проверяемые цифры (сверяет tests/home.test.js) */
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2.75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 34rem; }
.hero-facts div { display: grid; gap: .375rem; align-content: start; }
.hero-facts dt { font-size: clamp(2.25rem, 1.6rem + 1.4vw, 3rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--text); }
.hero-facts dd { margin: 0; font-size: .875rem; line-height: 1.35; color: var(--muted); max-width: 16ch; }
@media (max-width: 639px) {
  /* смартфон: H1 в 36 px от шапки, плотные отступы, чтобы телефон заходил в первый экран */
  .hero { padding-top: 2.25rem; }
  .hero .wrap { gap: .75rem; }
  .hero .eyebrow { display: none; }
  .hero h1 { margin-top: 0; font-size: clamp(2rem, 1.1rem + 3.8vw, 2.5rem); line-height: 1; }
  .hero-lead { margin-top: .75rem; font-size: 1rem; }
  .hero-cta { margin-top: 1.25rem; gap: .5rem 1.25rem; }
  .hero-facts { margin-top: 1.25rem; padding-top: 1rem; gap: .75rem; }
  .hero-facts dt { font-size: 1.75rem; }
  .hero-facts dd { font-size: .75rem; }
}
h1 .hl { color: var(--mint); }

/* ссылка со стрелкой: второстепенное действие */
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 500; }
.link-arrow .arr { display: inline-block; font-family: var(--mono); transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .arr, .link-arrow:focus-visible .arr { transform: translateX(4px); }

/* ---------- телефоны ---------- */
.phone {
  position: relative; margin: 0;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 30px; padding: 22px 8px 8px;
}
.phone::before { content: ""; position: absolute; top: 9px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 3px; background: var(--line); }
.phone img { border-radius: 22px; width: 100%; aspect-ratio: 480 / 900; object-fit: cover; object-position: top; background: #F1F5F4; }
.phone figcaption, .shot-cap { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-top: .6rem; text-align: center; }

/* Объёмный телефон первого экрана (.hero-figure, .p3-*) — в assets/css/phone.css. */

/* ---------- услуги: крупный список и превью, которое меняется при наведении (ui.js) ---------- */
.svc-board { display: grid; gap: 3rem; }
@media (min-width: 960px) { .svc-board { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; align-items: start; } }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; padding: 1.5rem 0 1.625rem; border-bottom: 1px solid var(--line); }
.svc::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform var(--t-slow) var(--ease); }
.svc h3 { font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem); line-height: 1.08; letter-spacing: -.03em; transition: color var(--t-mid) var(--ease); }
.svc p { grid-column: 1 / -1; margin-top: .625rem; color: var(--muted); max-width: 46ch; transition: color var(--t-mid) var(--ease); }
.svc-board.is-live .svc { cursor: default; }
.svc-board.is-live .svc:not([data-active]) h3 { color: var(--muted); }
.svc-board.is-live .svc:not([data-active]) p { color: var(--faint); }
.svc-board.is-live .svc[data-active]::before, .svc:hover::before { transform: scaleX(1); }
.svc:hover h3 { color: var(--text); }
.svc-stage { display: none; }
@media (min-width: 960px) {
  /* высота сцены по самому высокому превью, всё выровнено по верху */
  .svc-stage { display: grid; position: sticky; top: 104px; height: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
}
.svc-prev { grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 1.25rem; padding: 1.75rem 2rem 0; opacity: 0; transform: translateY(12px); transition: opacity var(--t-mid) var(--ease), transform var(--t-slow) var(--ease); pointer-events: none; }
.svc-prev[data-active] { opacity: 1; transform: none; }
.sp-cap { font-size: .875rem; color: var(--muted); padding-bottom: .875rem; border-bottom: 1px solid var(--line); }
/* настоящие экраны: телефоны и окна выходят за нижний край сцены */
.sp-media { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: flex-start; gap: 1.25rem; }
.sp-phone { flex: 0 1 200px; min-width: 0; padding: 6px 6px 0; background: #05060B; border-radius: 26px 26px 0 0; }
.sp-phone img { width: 100%; border-radius: 20px 20px 0 0; background: #F1F5F4; }
.sp-win { width: 100%; padding-top: 22px; background: var(--surface-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; position: relative; overflow: hidden; }
.sp-win::before { content: ""; position: absolute; top: 8px; left: 12px; width: 32px; height: 6px; border-radius: 3px; background: var(--line); }
.sp-win img { width: 100%; }
.sp-app { width: min(100%, 420px); background: #E9EAEE; }
/* превью: переписка с ботом КодЦеха (реплики из бота) */
.prev-chat { gap: .5rem; padding-inline: clamp(1.5rem, 3vw, 2.5rem); font-size: .9375rem; }
.prev-chat .sp-cap { margin-bottom: .25rem; }
.pc-msg { align-self: flex-start; max-width: 84%; padding: .5625rem .875rem; border-radius: 14px 14px 14px 4px; background: var(--surface-2); line-height: 1.4; }
.pc-me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #2C3050; }
.pc-keys { display: grid; grid-template-columns: 1fr 1fr; gap: .375rem; max-width: 84%; }
.pc-keys i { font-style: normal; font-size: .8125rem; text-align: center; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }

/* ---------- кейс ---------- */
.case-top { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.case-title { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.25rem); line-height: 1; letter-spacing: -.04em; max-width: 19ch; }
.case-meta { display: grid; gap: 2rem; margin-top: 1rem; }
.case-meta > p { color: var(--muted); font-size: 1.125rem; max-width: 44ch; }
@media (min-width: 960px) { .case-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.stack { margin: 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.stack div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .625rem 0; border-bottom: 1px solid var(--line); }
.stack dt { color: var(--faint); }
.stack dd { margin: 0; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 0 16px 1rem; margin: 0 -16px; overscroll-behavior-x: contain; }
.strip > * { scroll-snap-align: start; }
.strip:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 12px; }
@media (min-width: 640px) { .strip { grid-auto-columns: min(34vw, 260px); margin: 0 -28px; padding: 0 28px 1rem; scroll-padding-inline: 28px; } }
@media (min-width: 1100px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; } .strip.six { grid-template-columns: repeat(6, 1fr); } }
.shot { margin: 0; }
.shot .phone { padding: 20px 7px 7px; border-radius: 26px; }
.shot .phone img { border-radius: 19px; }
.shot figcaption { margin-top: .75rem; }
.shot figcaption b { display: block; font-family: var(--mono); font-size: .8125rem; color: var(--faint); font-weight: 400; margin-bottom: .25rem; }
.shot figcaption span { font-size: .9375rem; color: var(--muted); line-height: 1.45; display: block; }
.demo-note { margin-top: 1.25rem; font-size: .875rem; color: var(--faint); }
@media (min-width: 1100px) {
  #case .strip { gap: 1.5rem; align-items: start; }
  #case .shot:nth-child(2n) { margin-top: 4rem; }
  #case .shot:nth-child(3) { margin-top: 2rem; }
}
/* главный кейс: три показателя из facts.md */
.case-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--light-line); }
.case-facts div { display: grid; gap: .375rem; padding: 1rem 0 1.125rem; border-bottom: 1px solid var(--light-line); }
.case-facts dt { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; color: var(--paper-ink); }
.case-facts dd { margin: 0; color: var(--paper-muted); font-size: .9375rem; line-height: 1.45; }
.light .case-meta > p { color: var(--paper-muted); }
/* лента экранов на всю ширину окна */
.strip-bleed { margin: 0; padding: 1rem 16px 1.5rem; scroll-padding-inline: 16px; }
@media (min-width: 640px) { .strip-bleed { margin: 0; padding: 1rem 28px 1.5rem; scroll-padding-inline: 28px; } }
@media (min-width: 1100px) { .strip-bleed { margin: 0; padding: 0 clamp(28px, 4vw, 72px); gap: clamp(1.5rem, 2.5vw, 3rem) !important; } }
.light .phone { background: #15172A; border: 0; box-shadow: var(--shadow-dev); }
.light .phone::before { background: #2A2E47; }
.light .shot figcaption span { color: var(--paper-muted); }
.case-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; margin-top: 2rem; }
.case-after .demo-note { margin-top: 0; }
#case .case-after .case-more { margin-top: 0; }

.inside { margin-top: 3rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .inside { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.inside li { list-style: none; display: grid; grid-template-columns: 2rem 1fr; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.inside li::before { content: "+"; font-family: var(--mono); color: var(--faint); }
.inside { padding: 0; margin-bottom: 0; }
#case .inside { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.light .inside, .light .inside li { border-color: var(--light-line); }
.light .inside li::before { color: var(--paper-muted); }

/* ---------- работы: асимметричная плитка ---------- */
.works { display: grid; gap: 1rem; }
@media (min-width: 760px) {
  .works { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "l u" "l s" "d d"; }
}
@media (min-width: 1100px) {
  .works { grid-template-columns: 1.15fr 1fr 1.05fr; grid-template-areas: "a a l" "u s l" "d d d"; }
}
@media (min-width: 760px) {
  .wt-avito { grid-area: a; } .wt-lead { grid-area: l; } .wt-uniq { grid-area: u; } .wt-shop { grid-area: s; } .wt-droid { grid-area: d; }
}
.work-tile {
  position: relative; display: flex; flex-direction: column; gap: .75rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.75rem; color: var(--text); text-decoration: none;
  overflow: hidden;
  transition: background-color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.work-tile:hover, .work-tile:focus-visible { background: var(--surface-2); border-color: rgba(124, 92, 255, .5); color: var(--text); transform: translateY(-4px); }
.wt-kind { font-size: .8125rem; font-weight: 500; color: var(--faint); }
.work-tile h3 { font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem); line-height: 1.12; letter-spacing: -.025em; max-width: 22ch; }
.wt-avito h3 { font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem); max-width: 18ch; }
.work-tile p { color: var(--muted); max-width: 46ch; }
.work-tile .more { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .9375rem; }
.work-tile .more .arr { font-family: var(--mono); transition: transform var(--t-fast) var(--ease); }
.work-tile:hover .more .arr, .work-tile:focus-visible .more .arr { transform: translateX(4px); }
/* экраны в плитках: настоящие снимки работ, телефон обрезан снизу, текст не режется по ширине */
.wt-screen, .wt-shot { display: block; align-self: center; width: min(100%, 260px); margin-top: .75rem; padding: 6px 6px 0; background: #05060B; border-radius: 26px 26px 0 0; overflow: hidden; }
.wt-screen img, .wt-shot img { width: 100%; border-radius: 20px 20px 0 0; transition: transform var(--t-slow) var(--ease); }
.wt-screen { aspect-ratio: 780 / 1060; margin-bottom: -1.75rem; }
.wt-screen img { background: #F1F5F4; }
.wt-shot { aspect-ratio: 780 / 1300; margin-bottom: -1.75rem; }
.work-tile:hover .wt-screen img, .work-tile:hover .wt-shot img { transform: translateY(-6px); }
/* «Подробнее» над снимком, снимок уходит за нижний край плитки */
.wt-screen, .wt-shot, .wt-pair { order: 2; }
.work-tile .more { order: 1; }
.wt-pair { margin-bottom: -6rem; }
/* высокая плитка LeadTide: снимок заполняет всё, что осталось под текстом */
.wt-lead .more { margin-top: .25rem; }
/* экран вписан целиком по ширине; если рамка выше снимка, ниже продолжается фон страницы LeadTide */
.wt-lead .wt-shot { flex: 1 0 340px; aspect-ratio: auto; width: min(100%, 280px); padding: 0; border: 6px solid #05060B; border-bottom: 0; background: #0F1E3D; }
.wt-lead .wt-shot img { width: 100%; height: auto; max-width: none; object-fit: contain; object-position: left top; }
/* магазин без снимков: путь покупателя на всю ширину плитки */
.wt-path { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 0; }
.wt-path li { position: relative; display: grid; gap: .125rem; padding: 0 0 1.125rem 1.75rem; }
.wt-path li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--violet); }
.wt-path li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 1.15rem; bottom: .1rem; width: 1px; background: var(--line); }
.wt-path li:last-child { padding-bottom: 0; }
.wt-path b { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.wt-path span { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.wt-shop .more { margin-top: 0; padding-top: 1.25rem; }
@media (min-width: 1100px) {
  .wt-avito { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 2.5rem; align-content: start; }
  .wt-avito > :not(.wt-screen) { grid-column: 1; }
  .wt-avito .wt-screen { grid-column: 2; grid-row: 1 / span 5; align-self: end; margin-top: 0; }
}
.wt-app { display: block; margin-top: .75rem; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.wt-app img { width: 100%; }
.wt-pair { display: flex; gap: 1rem; align-items: flex-start; margin-top: .75rem; }
.wt-pair img { width: calc(50% - .5rem); max-width: 200px; border: 6px solid #05060B; border-radius: 22px; background: #F1F5F4; }
.wt-flow { display: flex; flex-wrap: nowrap; gap: 1.25rem; margin-top: .75rem; }
.wt-flow i { white-space: nowrap; }
.wt-flow i { position: relative; font-style: normal; font-size: .8125rem; padding: .375rem .625rem; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.wt-flow i + i::before { content: ""; position: absolute; left: calc(-1.25rem - 1px); top: 50%; width: 1.25rem; height: 1px; background: var(--faint); }
@media (min-width: 760px) {
  .wt-droid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; align-content: start; }
  .wt-droid > * { grid-column: 1; }
  .wt-droid .wt-pair { grid-column: 2; grid-row: 1 / span 4; margin: 0 0 -9rem; justify-content: flex-end; }
  .wt-droid { max-height: 380px; }
}
#case .case-more { margin-top: .75rem; }

/* ---------- демо: светлая сцена, три устройства на одной линии, подписи по одной линии под ними ---------- */
.demo-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem 1.25rem; }
.demo-dev { display: grid; grid-template-rows: subgrid; grid-row: span 2; min-width: 0; color: var(--paper-ink); text-decoration: none; }
.demo-dev:hover { color: var(--paper-ink); }
/* смартфон и планшет: панель сверху на всю ширину, два телефона под ней */
.dd-zayavki { grid-column: 1 / -1; grid-row: 1 / span 2; }
.dd-zapis { grid-column: 1; grid-row: 3 / span 2; }
.dd-magazin { grid-column: 2; grid-row: 3 / span 2; }
.dd-frame { align-self: end; justify-self: center; display: block; width: 100%; position: relative; overflow: hidden; background: #F5F0E8; box-shadow: var(--shadow-dev); transition: transform var(--t-slow) var(--ease); }
.dd-phone { border: 6px solid #05060B; border-radius: 26px; }
.dd-phone img { width: 100%; aspect-ratio: 780 / 1500; object-fit: cover; object-position: top; }
.dd-desk { border-radius: 14px; background: #fff; }
.dd-desk img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: left top; }
.dd-bar { display: flex; align-items: center; gap: .375rem; padding: .625rem .875rem; background: #E2E4EE; }
.dd-bar i { width: 8px; height: 8px; border-radius: 50%; background: #B9BCCD; }
.dd-bar em { font-style: normal; margin-inline: auto; font-size: .75rem; color: var(--paper-muted); }
.dd-cap { display: grid; align-content: start; gap: .25rem; padding-top: 1.25rem; }
.dd-cap b { font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.dd-use { color: var(--paper-muted); font-size: .9375rem; line-height: 1.4; }
.demo-dev .more { margin-top: .5rem; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .9375rem; }
.demo-dev .more .arr { font-family: var(--mono); transition: transform var(--t-fast) var(--ease); }
.demo-dev:hover .dd-frame, .demo-dev:focus-visible .dd-frame { transform: translateY(-8px); }
.demo-dev:hover .more .arr, .demo-dev:focus-visible .more .arr { transform: translateX(4px); }
.demo-dev:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: 6px; border-radius: 12px; }
@media (max-width: 899px) { .dd-phone { width: min(100%, 250px); } }
@media (max-width: 479px) { .dd-phone { border-width: 4px; border-radius: 20px; } .dd-use { font-size: .875rem; } }
@media (min-width: 900px) {
  .demo-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: clamp(1.5rem, 3vw, 3rem); }
  .dd-zapis, .dd-zayavki, .dd-magazin { grid-row: 1 / span 2; }
  .dd-zapis { grid-column: 1; } .dd-zayavki { grid-column: 2; } .dd-magazin { grid-column: 3; }
  .dd-phone { width: min(100%, 230px); }
  .dd-cap { justify-self: stretch; }
  .dd-zapis .dd-cap, .dd-magazin .dd-cap { justify-self: center; width: min(100%, 230px); }
}

/* ---------- как работаем: вертикальная лента, крупные номера и что остаётся у клиента ---------- */
.proc-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .proc-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 4rem; align-items: start; } .proc-head { position: sticky; top: 112px; } }
.proc-head p { margin-top: 1.25rem; color: var(--muted); max-width: 34ch; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.step .n { grid-row: 1 / span 2; font-size: clamp(2.5rem, 1.8rem + 2vw, 4rem); font-weight: 600; line-height: .9; letter-spacing: -.05em; color: var(--mint); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); letter-spacing: -.02em; }
.step-do p { margin-top: .5rem; color: var(--muted); font-size: .9375rem; max-width: 44ch; }
.step-get { grid-column: 2; font-size: .9375rem; line-height: 1.45; }
.step-get b { display: block; font-size: .8125rem; font-weight: 500; color: var(--faint); margin-bottom: .125rem; }
@media (min-width: 760px) {
  .step { grid-template-columns: 6rem minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 2rem; align-items: start; }
  .step .n { grid-row: auto; }
  .step-get { grid-column: 3; padding-left: 1.25rem; border-left: 1px solid var(--line); }
}
.pay-note { margin-top: 2rem; font-size: .9375rem; color: var(--text); }

/* ---------- правила: то, чего нет в процессе; строки на всю ширину ---------- */
#why h2 { max-width: 24ch; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.why { display: grid; }
.why-item { display: grid; gap: .5rem 3rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .why-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; } }
.why-item h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; }
.why-item p { color: var(--muted); max-width: 52ch; }

/* ---------- бриф ---------- */
.brief-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .brief-wrap { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; } }
.brief-aside p + p { margin-top: 1rem; }
.brief-aside .section-head { margin-bottom: 1.5rem; }
.brief-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem; }
@media (min-width: 640px) { .brief-card { padding: 2rem; } }
.brief-progress { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.brief-ticks { display: flex; gap: 6px; }
.brief-ticks i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.brief-ticks i.on { background: var(--mint); }
.brief fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.brief.js fieldset { margin-bottom: 0; }
.brief legend { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.1rem; padding: 0; outline-offset: 4px; }
.opts { display: grid; gap: .5rem; }
@media (min-width: 640px) { .opts.two { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; line-height: 1.3; transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.opt:hover { border-color: var(--muted); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt .mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.opt input:checked + .mark { border-color: var(--mint); }
.opt input:checked + .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.opt:has(input:checked) { border-color: var(--mint); background: var(--surface-2); }
.opt input:focus-visible + .mark { outline: 3px solid var(--mint); outline-offset: 3px; }
.opt:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }
.brief-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.brief-nav .btn { min-width: 9rem; margin-left: auto; }
.brief-done h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.brief-done:focus { outline: none; }
.brief-done dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0 0 1.5rem; font-size: .97rem; }
.brief-done dt { font-family: var(--mono); font-size: .85rem; color: var(--muted); padding-top: .1rem; }
.brief-done dd { margin: 0; }
.brief-done .when { margin-top: .75rem; font-size: .88rem; color: var(--muted); }
.brief-done .link-btn { margin-top: .5rem; }

/* ---------- LeadTide (блок #lidpotok) ---------- */
.lp-box { display: grid; gap: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--surface); }
@media (min-width: 860px) { .lp-box { grid-template-columns: 1fr auto; align-items: center; } }
.lp-box p { color: var(--muted); max-width: 60ch; margin-top: .8rem; }
#lidpotok .lp-box { gap: 3rem; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: 24px; }
@media (min-width: 960px) { #lidpotok .lp-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
#lidpotok .lp-text h2 { margin-top: 1.25rem; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); max-width: 16ch; }
#lidpotok .lp-text p:not(.eyebrow) { margin-top: 1.25rem; }
#lidpotok .link-arrow { margin-top: 1.5rem; }
.lp-flow { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.lp-flow::before { content: ""; position: absolute; left: 7px; top: 1.5rem; bottom: 1.5rem; width: 1px; background: var(--line); }
.lp-flow li { position: relative; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline; gap: .25rem 1rem; padding: 1rem 0 1rem 2.25rem; border-bottom: 1px solid var(--line); }
.lp-flow li:last-child { border-bottom: 0; }
.lp-flow li::before { content: ""; position: absolute; left: 3px; top: 1.45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--text); }
.lp-flow b { font-weight: 600; font-size: 1.0625rem; }
.lp-flow span { color: var(--muted); font-size: .9375rem; }
.lp-flow code { grid-column: 2; justify-self: start; font-family: var(--mono); font-size: .75rem; color: var(--faint); padding: .125rem .5rem; border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 480px) { .lp-flow li { grid-template-columns: 1fr; } .lp-flow code { grid-column: 1; } }

/* ---------- FAQ: аккордеон, плавное раскрытие делает ui.js ---------- */
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; } .faq-wrap .section-head { position: sticky; top: 104px; } }
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; min-height: 72px; padding: 1.125rem 0; font-weight: 500; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); letter-spacing: -.01em; transition: color var(--t-fast) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.5rem; text-align: center; font-size: 1.75rem; font-weight: 300; line-height: 1; color: var(--text); transition: transform var(--t-mid) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--muted); }
.faq details > div { overflow: hidden; }
.faq details p { color: var(--muted); padding: 0 3rem 1.5rem 0; max-width: 64ch; }

/* ---------- финал: светлый лист, огромная надпись, одна кнопка ---------- */
.final { background: var(--paper); color: var(--paper-ink); padding-block: clamp(5rem, 3rem + 8vw, 11rem); border-top: 0; }
.final .eyebrow { color: var(--paper-muted); }
.final-big { color: var(--paper-ink); font-size: clamp(3rem, 1rem + 7.6vw, 8.5rem); line-height: .94; letter-spacing: -.05em; max-width: 11ch; margin-top: 1.5rem; }
.final-row { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--paper-line); display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .final-row { grid-template-columns: minmax(0, 46ch) auto; justify-content: space-between; } }
.final-row p { color: var(--paper-muted); font-size: 1.125rem; }
.final :focus-visible { outline-color: var(--paper-ink); }
.btn-lg { min-height: 64px; padding: 0 2.25rem; font-size: 1.125rem; }

/* ---------- короткая главная (round4): как работаем → бриф → кейс, демо, услуги → вопросы → финальный бриф → ссылки ---------- */
.home > section { padding-block: clamp(44px, 4.5vw, 72px); }
@media (max-width: 639px) { .home .opt { min-height: 48px; padding-block: .5rem; } }
.home .section-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.home .h-l { font-size: clamp(1.875rem, 1.2rem + 2vw, 3rem); }

/* как работаем: пять шагов в ряд, у каждого одна строка «вы получаете» */
.proc-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.proc-top .pay-note { margin: 0; color: var(--muted); }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.steps-row .step { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .125rem .75rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.steps-row .n { grid-row: 1 / span 2; font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--mint); font-variant-numeric: tabular-nums; }
.steps-row h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.steps-row .step-get { grid-column: 2; font-size: .875rem; line-height: 1.4; color: var(--muted); padding: 0; border: 0; }
.steps-row .step-get b { display: inline; font-size: inherit; font-weight: 400; color: var(--faint); margin: 0 .25em 0 0; }
@media (min-width: 900px) {
  .steps-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; border-top: 0; }
  .steps-row .step { grid-template-columns: minmax(0, 1fr); align-content: start; gap: .5rem; padding: 1.25rem 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
  .steps-row .n { grid-row: auto; font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); }
  .steps-row .step-get { grid-column: 1; }
  .steps-row .step-get b { display: block; margin: 0 0 .125rem; }
}

/* кейс: заголовок и три цифры в одну строку, лента экранов ниже */
.home-case .case-top { margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); gap: 1.5rem; }
.home-case .case-title { font-size: clamp(1.875rem, 1.1rem + 2.4vw, 3.25rem); margin-top: .75rem; }
@media (min-width: 960px) {
  .home-case .case-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4rem; align-items: end; }
}
@media (max-width: 959px) {
  .home-case .case-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; border-top: 0; }
  .home-case .case-facts div { border-bottom: 0; border-top: 1px solid var(--light-line); padding: .75rem 0 0; }
  .home-case .case-facts dt { font-size: 1.25rem; }
  .home-case .case-facts dd { font-size: .8125rem; }
}
.home-case .strip { grid-auto-columns: min(38vw, 180px); }
@media (min-width: 1100px) {
  .home-case .strip { grid-template-columns: repeat(5, minmax(0, 180px)); justify-content: center; }
  #case.home-case .shot:nth-child(n) { margin-top: 0; }
}
.home-case .case-after { margin-top: 1.25rem; }

/* демо: та же сцена, плотнее и с линией сверху, чтобы два светлых блока не слились */
#demos.light { border-top: 1px solid var(--light-line); }
@media (min-width: 900px) { .home .dd-phone { width: min(100%, 200px); } .home .dd-zapis .dd-cap, .home .dd-magazin .dd-cap { width: min(100%, 200px); } }
@media (max-width: 899px) { .home .dd-phone { width: min(100%, 160px); } }
.home #demos .demo-note { margin-top: 1rem; }

/* что делаем: шесть направлений сеткой, правила одной строкой */
.home-svc h2 { margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; border-top: 1px solid var(--line); }
.svc-grid li { padding: .875rem 0; border-bottom: 1px solid var(--line); }
.svc-grid h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.svc-grid p { margin-top: .25rem; color: var(--muted); font-size: .9375rem; line-height: 1.45; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .svc-grid li { padding: 1.125rem 0; } }
.why-line { margin-top: 1.5rem; color: var(--muted); font-size: .9375rem; line-height: 1.55; scroll-margin-top: 120px; }
.why-line b { color: var(--text); font-weight: 500; }

/* финальный бриф: светлый лист, тёмная карточка формы */
.final-brief { padding-block: clamp(56px, 6vw, 96px); }
.final-brief .final-big { font-size: clamp(2.25rem, 1rem + 4vw, 4.5rem); margin-top: 0; max-width: 12ch; }
.final-brief .brief-aside p { margin-top: 1.25rem; color: var(--paper-muted); max-width: 40ch; }
.final-brief .brief-card { color: var(--text); }
.final-brief .brief-card :focus-visible { outline-color: var(--text); }
.final-brief .brief-card a { color: var(--text); }

/* ссылки на другие страницы: крупно, без плиток */
.home-links h2 { margin-bottom: 1.5rem; }
.links-grid { display: grid; gap: 1.75rem 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .links-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.big-link { display: inline-flex; align-items: center; gap: .75rem; min-height: 44px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; text-decoration: none; }
.big-link .arr { font-family: var(--mono); font-size: .7em; transition: transform var(--t-fast) var(--ease); }
.big-link:hover .arr, .big-link:focus-visible .arr { transform: translateX(4px); }
.links-lp { margin-top: 1rem; color: var(--muted); max-width: 42ch; font-size: .9375rem; }
.links-grid h3 { font-size: .875rem; font-weight: 500; color: var(--faint); margin-bottom: .25rem; }
.links-grid ul { list-style: none; margin: 0; padding: 0; }
.links-grid li a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.links-grid li a:hover { text-decoration: underline; text-decoration-color: var(--faint); }
.links-legal { margin-top: 1.25rem; font-size: .9375rem; }
@media (max-width: 759px) {
  .links-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 1rem; }
  .links-main { grid-column: 1 / -1; }
  .links-grid li a { font-size: .9375rem; line-height: 1.3; padding: .375rem 0; }
}

/* смартфон: услуги в две колонки, шаги плотнее */
@media (max-width: 639px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
  .svc-grid li { padding: .75rem 0; }
  .svc-grid h3 { font-size: 1rem; line-height: 1.2; }
  .svc-grid p { font-size: .8125rem; line-height: 1.4; }
  .steps-row .step { padding: .625rem 0; }
  .why-line { font-size: .875rem; }
}

/* подвал главной: разделы в две колонки, на смартфоне разделы и связь рядом */
.home ~ .foot .foot-nav { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 2rem; }
@media (max-width: 799px) {
  .home ~ .foot .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 1rem; }
  .home ~ .foot .foot-grid > :first-child { grid-column: 1 / -1; }
  .home ~ .foot .foot-nav { grid-template-columns: minmax(0, 1fr); }
}
.links-legal a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- появление при прокрутке (класс rv-on ставит reveal.js; без JS всё видно) ---------- */
.rv-on [data-reveal] { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.rv-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
/* печать и «Найти на странице» в печатной версии: всё видно, даже если блок ещё не проявился */
@media print {
  .rv-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rv-on .steps[data-reveal]::after { transform: none !important; }
}

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: .95rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h3 { font-size: .875rem; font-weight: 500; color: var(--faint); margin-bottom: .75rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot li a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot li a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); }
.foot p { color: var(--muted); max-width: 40ch; margin-top: .75rem; }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; color: var(--muted); font-size: .85rem; }
.foot-legal a { color: var(--muted); }

/* ---------- cookie ---------- */
/* компактная панель в левом нижнем углу; на смартфоне узкая полоса снизу.
   Появляется через 3 с или после первой прокрутки: класс is-ready ставит ui.js (без ui.js видна сразу). */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 40; width: min(360px, calc(100vw - 32px)); background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: .875rem 1rem 1rem; display: grid; gap: .625rem; font-size: .875rem; line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility 0s; }
.cookie p { color: var(--muted); overflow-wrap: anywhere; }
.cookie p a { color: var(--text); }
.cookie-actions { display: flex; gap: .5rem; }
/* кнопка 38 px, зона касания 44 px за счёт невидимого поля */
.cookie-actions .btn { position: relative; overflow: visible; min-height: 38px; padding: 0 .75rem; flex: 1 1 0; min-width: 0; font-size: .875rem; border-radius: 10px; }
.cookie-actions .btn::after { content: ""; position: absolute; inset: -3px 0; }
/* без въезжающей заливки: поле касания выходит за край кнопки */
.cookie-actions .btn::before { display: none; }
.cookie-actions .btn:not(:disabled):hover, .cookie-actions .btn:not(:disabled):focus-visible { background: var(--btn-bg-hover); color: var(--btn-text); }
.cookie-actions .btn-ghost:not(:disabled):hover, .cookie-actions .btn-ghost:not(:disabled):focus-visible { background: var(--surface); color: var(--text); }
.ui-on .cookie:not(.is-ready) { opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility 0s var(--t-mid); }
@media (max-width: 639px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; width: auto; padding: .625rem .75rem; gap: .5rem; font-size: .8125rem; line-height: 1.4; grid-template-columns: minmax(0, 1fr); }
}
.foot-cookie { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--muted); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; cursor: pointer; }
.foot-cookie:hover { color: var(--text); }

/* ---------- портфолио ---------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-head p { margin-top: 1.25rem; color: var(--muted); max-width: 60ch; font-size: 1.1rem; }
.toc { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; font-size: .93rem; }
.toc a:hover { border-color: var(--violet); }
.toc b { font-family: var(--mono); font-weight: 400; color: var(--mint); margin-right: .5rem; }
.work { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.work + .work { border-top: 1px solid var(--line); }
.work-head { display: grid; gap: .9rem; max-width: 780px; }
.work-head .num { font-family: var(--mono); color: var(--mint); font-size: .9rem; }
.work-head p { color: var(--muted); font-size: 1.08rem; }
.work-body { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 960px) { .work-body.split { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; } }
.work .inside { margin-top: 0; grid-template-columns: 1fr; }
.work-cta { margin-top: 2rem; }
.spec { font-family: var(--mono); font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; color: var(--muted); line-height: 1.9; overflow-x: auto; }
.spec b { color: var(--mint); font-weight: 400; }
.spec span { color: var(--text); }
.pair { display: grid; gap: 1rem; }
@media (min-width: 560px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair figure { margin: 0; }
.pair img { border-radius: 12px; border: 1px solid var(--line); }
.work-body.lists { gap: 0; }
.lists .inside + .inside { border-top: 0; }
@media (min-width: 960px) { .work-body.lists { column-gap: 3rem; } .lists .inside + .inside { border-top: 1px solid var(--line); } }

/* ---------- юр. страницы и 404 ---------- */
.legal { padding-block: 3rem 5rem; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); margin-bottom: 1.25rem; }
.legal h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: .75rem; }
.legal ul { padding-left: 1.2rem; }
.legal-note { border: 1px solid var(--line); padding: 1rem 1.25rem; border-radius: 10px; background: var(--surface); }
.fill { background: var(--surface-2); color: var(--mint); padding: 0 .3rem; border-radius: 4px; font-family: var(--mono); font-size: .9em; }
.nf { min-height: 70vh; display: grid; align-content: center; gap: 1.25rem; padding-block: 4rem; }
.nf .code { font-family: var(--mono); color: var(--mint); font-size: 1rem; }

/* ---------- без JS ---------- */
.brief:not(.js) .brief-progress, .brief:not(.js) .brief-nav { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
  .rv-on [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

.svc-grid h3 a { color: inherit; text-decoration: none; }
.svc-grid h3 a:hover, .svc-grid h3 a:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
