/* ============================================================
   ShefCode — лендинг. Вёрстка по БЭМ.
   Тёмная, технологичная, премиальная. Десктоп + мобайл.
   ============================================================ */

:root {
  --font-head: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;

  /* Поверхность (cosmos) */
  --bg:    oklch(0.165 0.015 264);
  --bg-2:  oklch(0.205 0.017 264);
  --bg-3:  oklch(0.245 0.019 264);
  --text:  oklch(0.975 0.005 264);
  --muted: oklch(0.75 0.012 264);
  --faint: oklch(0.66 0.013 264);
  --line:  oklch(1 0 0 / 0.075);
  --line-strong: oklch(1 0 0 / 0.15);

  /* Акцент (emerald #10b981) */
  --accent:      #10b981;
  --accent-soft: rgb(16 185 129 / 0.14);
  --accent-ink:  oklch(0.2 0.05 162);
}

/* Кастомные шрифты — только после загрузки, без CLS при первом рендере */
html.fonts-loaded {
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

img, svg { display: block; }

/* ---------- Утилиты ---------- */
.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Eyebrow (надзаголовок)
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ============================================================
   Section
   ============================================================ */
.section { padding: clamp(54px, 6.5vw, 100px) 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__title { font-size: clamp(30px, 4.4vw, 50px); margin-top: 18px; }
.section__text { color: var(--muted); font-size: 19px; margin-top: 20px; }

/* ============================================================
   Button
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 30px -8px color-mix(in oklch, var(--accent) 60%, transparent);
}
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px color-mix(in oklch, var(--accent) 70%, transparent);
}
.button--ghost {
  background: oklch(1 0 0 / 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.button--ghost:hover { background: oklch(1 0 0 / 0.08); transform: translateY(-2px); }
.button__arrow { transition: transform .2s ease; }
.button:hover .button__arrow { transform: translateX(3px); }

/* Лоадер на кнопке отправки */
.button--loading { cursor: progress; pointer-events: none; }
.button__spinner {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid color-mix(in oklch, currentColor 30%, transparent);
  border-top-color: currentColor;
  animation: button-spin .6s linear infinite;
}
@keyframes button-spin { to { transform: rotate(360deg); } }

/* ============================================================
   Logo
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in oklch, var(--accent) 92%, white), var(--accent));
  color: var(--accent-ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 22px -8px color-mix(in oklch, var(--accent) 65%, transparent), inset 0 1px 0 oklch(1 0 0 / 0.3);
  letter-spacing: -0.04em;
}
.logo__word { font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.logo__word-accent { color: var(--accent); font-weight: 600; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.header__nav { display: flex; gap: 34px; align-items: center; }
.header__nav-link {
  font-size: 15px; color: var(--muted);
  transition: color .18s ease;
}
.header__nav-link:hover { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 9px; border: 1px solid var(--line); background: oklch(1 0 0 / 0.03); }
.lang-switch__link {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  padding: 6px 10px; border-radius: 6px; color: var(--muted); transition: color .18s ease, background .18s ease;
}
.lang-switch__link:hover { color: var(--text); }
.lang-switch__link--active { color: var(--accent-ink); background: var(--accent); }
.header__menu-toggle { display: none; }
.header__nav-cta { display: none; } /* CTA внутри меню — только на мобилке */

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-top: 168px; padding-bottom: 96px; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero__title {
  font-size: clamp(38px, 5.6vw, 70px);
  letter-spacing: -0.03em;
  margin-top: 24px;
}
.hero__title-accent { color: var(--accent); }
.hero__subtitle {
  color: var(--muted); font-size: clamp(18px, 2vw, 21px);
  margin-top: 26px; max-width: 540px;
}
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.hero__trust {
  grid-column: 1 / -1;
  display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: 28px;
  margin-top: 0; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__trust-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.hero__trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__trust-item b { color: var(--text); font-weight: 600; }

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 80% at 70% 0%, black, transparent 75%);
  opacity: 0.5;
}
.hero__glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.hero__glow--1 { width: 540px; height: 540px; top: -180px; right: -120px; background: radial-gradient(circle, var(--accent), transparent 65%); opacity: 0.5; }
.hero__glow--2 { width: 420px; height: 420px; top: 220px; left: -160px; background: radial-gradient(circle, color-mix(in oklch, var(--accent) 70%, white), transparent 65%); opacity: 0.28; }

/* ============================================================
   Console (терминал в hero)
   ============================================================ */
.console {
  background: linear-gradient(180deg, var(--bg-2), color-mix(in oklch, var(--bg-2) 80%, black));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 40px 90px -40px oklch(0 0 0 / 0.7), inset 0 1px 0 oklch(1 0 0 / 0.05);
  overflow: hidden;
  font-family: var(--font-mono);
  display: grid;
  grid-template-rows: 43px 222px 67px;
}
.console__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: oklch(1 0 0 / 0.02);
  overflow: hidden;
}
.console__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--bg-3); }
.console__dot:nth-child(1) { background: oklch(0.62 0.18 25); }
.console__dot:nth-child(2) { background: oklch(0.78 0.15 80); }
.console__dot:nth-child(3) { background: oklch(0.72 0.15 150); }
.console__file { margin-left: 12px; font-size: 13px; color: var(--faint); }
.console__body { height: 222px; padding: 22px 22px 26px; font-size: 14.5px; line-height: 2; overflow: hidden; contain: layout size; }
.console__line { display: block; white-space: pre-wrap; }
.console__prompt { color: var(--accent); }
.console__cmd { color: var(--text); }
.console__muted { color: var(--faint); }
.console__ok { color: oklch(0.78 0.13 155); }
.console__key { color: color-mix(in oklch, var(--accent) 80%, white); }
.console__cursor { display: inline-block; width: 9px; height: 17px; background: var(--accent); vertical-align: -3px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console__foot {
  display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line);
  flex-wrap: wrap; background: oklch(1 0 0 / 0.015); overflow: hidden;
}
.console__chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: oklch(1 0 0 / 0.03);
}

@media (min-width: 721px) {
  .hero__visual { min-height: 332px; }
  .console { height: 332px; }
}

/* ============================================================
   Strip (направления)
   ============================================================ */
.strip { border-block: 1px solid var(--line); padding: 26px 0; }
.strip__inner { display: flex; align-items: center; gap: 18px 40px; flex-wrap: wrap; justify-content: space-between; }
.strip__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.strip__tags { display: flex; gap: 12px 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.strip__tag { font-size: 15px; color: var(--muted); }

/* ============================================================
   Cards / Services
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px 32px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::after { opacity: 1; }
.card__num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  margin-bottom: 18px; display: block;
}
.card__title { font-size: 22px; margin-bottom: 12px; }
.card__text { color: var(--muted); font-size: 16px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
@media (min-width: 900px) {
  .cards--five { grid-template-columns: repeat(6, 1fr); }
  .cards--five > .card { grid-column: span 2; }
  .cards--five > .card:nth-child(4) { grid-column: span 3; }
  .cards--five > .card:nth-child(5) { grid-column: span 3; }
}

/* ============================================================
   Why
   ============================================================ */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why__title { font-size: clamp(30px, 4.4vw, 50px); margin-top: 18px; }
.why__lead { color: var(--muted); font-size: 19px; margin-top: 20px; }
.why__list { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; }
.why__list-item { list-style: none; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.why__tick {
  flex: none; width: 26px; height: 26px; border-radius: 8px; margin-top: 2px;
  display: grid; place-items: center; background: var(--accent-soft);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
}
.why__tick svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2.2; }
.why__list-item strong { color: var(--text); font-weight: 600; }
.why__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.stat {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px;
}
.stat__value { font-family: var(--font-head); font-size: clamp(36px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.stat__value b { color: var(--accent); }
.stat__value span { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ============================================================
   Steps / Process
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.step { padding: 0 22px 0 0; position: relative; }
.step__node {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 16px;
  background: var(--bg-2); border: 1px solid var(--line-strong); color: var(--accent);
  position: relative; z-index: 2; margin-bottom: 22px;
}
.step::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: -22px; height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}
.step:last-child::before { display: none; }
.step__title { font-size: 18px; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15px; }

/* ============================================================
   Cases
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2);
  transition: transform .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.case__shot {
  position: relative;
  width: 100%; height: 200px;
  background:
    repeating-linear-gradient(135deg, oklch(1 0 0 / 0.025) 0 14px, transparent 14px 28px),
    var(--bg-3);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  overflow: hidden;
}
.case__shot-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.case:hover .case__shot-img { transform: scale(1.04); }
.case__shot-label { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.08em; }
.case__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
.case__tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.case__title { font-size: 21px; margin: 12px 0 10px; }
.case__text { color: var(--muted); font-size: 15px; }

/* ============================================================
   Reviews
   ============================================================ */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 30px 26px; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.review::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity .3s ease;
}
.review:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.review:hover::after { opacity: 1; }
.review__stars { display: inline-flex; gap: 3px; }
.review__star { width: 18px; height: 18px; fill: var(--line-strong); }
.review__star--on { fill: var(--accent); }
.review__body {
  margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; flex: 1 1 auto;
}
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--accent-ink);
  background: linear-gradient(135deg, #34e0aa, var(--accent));
}
.review__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review__name { font-weight: 600; font-size: 15px; }
.review__role { color: var(--faint); font-size: 13px; }

/* ============================================================
   Pricing
   ============================================================ */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px;
  padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.price:hover { transform: translateY(-4px); }
.price--featured { border-color: color-mix(in oklch, var(--accent) 45%, transparent); background: linear-gradient(180deg, var(--accent-soft), var(--bg-2) 55%); }
.price__tag { font-family: var(--font-mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.price__title { font-size: 24px; margin: 10px 0 6px; }
.price__desc { color: var(--muted); font-size: 15px; min-height: 44px; }
/* Абстрактный ориентир по масштабу проекта вместо конкретной суммы */
.price__scale { display: flex; align-items: center; gap: 12px; margin: 24px 0 4px; min-height: 28px; }
.price__scale-dots { display: inline-flex; gap: 6px; }
.price__scale-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in oklch, var(--accent) 55%, transparent); background: transparent; }
.price__scale-dot--on { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px color-mix(in oklch, var(--accent) 60%, transparent); }
.price__scale-label { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.price__list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.price__list-item { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.price__list-item svg { flex: none; width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2.2; margin-top: 4px; }
.price .button { margin-top: auto; justify-content: center; }
.price-note { margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.price-note b { color: var(--muted); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 0; width: 100%; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__summary {
  cursor: pointer; list-style: none; padding: 26px 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--text);
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 26px; height: 26px; position: relative; transition: transform .25s ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq__icon::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq__icon::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: opacity .25s ease; }
.faq__item[open] .faq__icon::after { opacity: 0; }
.faq__answer-inner { padding: 0 8px 28px; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
/* Плавный аккордеон: высота анимируется только когда работает JS.
   Падинг живёт на внутреннем элементе, чтобы высота .faq__answer
   ровно следовала за контентом и анимация не дёргалась. */
.faq--js .faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  height: auto;
  overflow: hidden;
  transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1);
}
.faq--js .faq__item[open] .faq__answer { grid-template-rows: 1fr; }
.faq--js .faq__answer-inner { overflow: hidden; min-height: 0; }

/* ============================================================
   Contact + Form
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact__title { font-size: clamp(30px, 4vw, 46px); margin-top: 18px; }
.contact__text { color: var(--muted); font-size: 19px; margin-top: 20px; max-width: 420px; }
.contact__methods { display: grid; gap: 14px; margin-top: 38px; }
.method {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2);
  transition: border-color .2s ease, transform .2s ease;
}
.method:hover { border-color: var(--line-strong); transform: translateX(4px); }
.method__icon { width: 44px; height: 44px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 28%, transparent); }
.method__icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.method__label { display: block; font-size: 13px; color: var(--faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
.method__value { display: block; color: var(--text); font-size: 17px; font-weight: 500; margin-top: 2px; }

.form-card {
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: clamp(28px, 4vw, 42px);
  box-shadow: 0 40px 90px -50px oklch(0 0 0 / 0.7);
  position: relative;
}
/* WebMCP: визуальная подсветка при заполнении формы агентом */
.js-lead-form:tool-form-active { outline: 1px dashed color-mix(in oklch, var(--accent) 65%, transparent); outline-offset: 4px; border-radius: 12px; }
.form__submit:tool-submit-active { outline: 2px dashed color-mix(in oklch, var(--accent) 80%, white); outline-offset: 3px; }
.form__field { margin-bottom: 20px; }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 9px; font-weight: 500; }
.field__req { color: var(--accent); }
.field__input {
  width: 100%; padding: 15px 17px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-body); font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input--textarea { resize: vertical; min-height: 120px; }
.field__input::placeholder { color: var(--faint); }
.field__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__field--invalid .field__input { border-color: oklch(0.65 0.2 25); }
.field__error { color: oklch(0.72 0.16 25); font-size: 13px; margin-top: 7px; display: none; }
.form__field--invalid .field__error { display: block; }
.form__submit { width: 100%; justify-content: center; margin-top: 6px; font-size: 17px; padding: 17px; }
.form__submit[disabled] { opacity: 0.6; cursor: progress; }
.form__foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 16px; }
.form__error-banner {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: oklch(0.65 0.2 25 / 0.12); border: 1px solid oklch(0.65 0.2 25 / 0.4);
  color: oklch(0.82 0.14 25); font-size: 14px; text-align: center;
}
.form__error-banner--show { display: block; }

/* Загрузка файла */
.file-upload { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.file-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-upload__button {
  flex: none; padding: 11px 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 14px; font-weight: 500; transition: border-color .2s ease, color .2s ease;
}
.file-upload:hover .file-upload__button { border-color: var(--accent); color: var(--accent); }
.file-upload__input:focus-visible ~ .file-upload__button { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.file-upload__name { font-size: 13px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Чекбокс согласия (GDPR) */
.form__field--check { margin-top: 4px; }
.checkbox { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.checkbox__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkbox__box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  background: var(--bg); border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: border-color .15s ease, background-color .15s ease;
}
.checkbox__box svg { width: 13px; height: 13px; stroke: var(--accent-ink); fill: none; stroke-width: 3; opacity: 0; transition: opacity .15s ease; }
.checkbox__input:checked ~ .checkbox__box { background: var(--accent); border-color: var(--accent); }
.checkbox__input:checked ~ .checkbox__box svg { opacity: 1; }
.checkbox__input:focus-visible ~ .checkbox__box { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.checkbox__text { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__field--check.form__field--invalid .checkbox__box { border-color: oklch(0.65 0.2 25); }

.form-success {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 360px; gap: 16px;
}
.form-success--show { display: flex; }
.form-success__check {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid color-mix(in oklch, var(--accent) 40%, transparent);
}
.form-success__check svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.form-success__title { font-size: 26px; }
.form-success__text { color: var(--muted); max-width: 320px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; }
.footer__grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 320px; }
.footer__brand-text { color: var(--muted); font-size: 15px; margin-top: 18px; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.footer__link, .footer__col span { display: block; color: var(--muted); font-size: 15px; margin-bottom: 11px; transition: color .18s ease; }
.footer__link:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ============================================================
   Reveal-анимация
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal--in { opacity: 1; transform: none; }
/* До загрузки JS (lazy-boot) контент на десктопе остаётся видимым */
@media (hover: hover) and (pointer: fine) {
  html:not(.js) .reveal { opacity: 1; transform: none; transition: none; }
}

/* На тач-устройствах (мобилки/планшеты) fade-анимацию появления не используем —
   контент сразу видимый, без эффекта. */
@media (hover: none), (pointer: coarse) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .console__cursor { animation: none; }
  .faq--js .faq__answer { transition: none; }
}

/* ============================================================
   Адаптив: планшет
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .console { max-width: 520px; }
  .why__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .cases, .prices { grid-template-columns: 1fr 1fr; }
  .cards--five > .card, .cards--five > .card:nth-child(4), .cards--five > .card:nth-child(5) { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 22px; }
  .step::before { display: none; }
}

/* ============================================================
   Адаптив: мобайл
   ============================================================ */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .container { width: min(1180px, 100% - 36px); }

  .header__nav { display: none; }
  .header__nav--open {
    display: flex; position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 18px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); z-index: 49;
  }
  .header__menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: oklch(1 0 0 / 0.05); border: 1px solid var(--line-strong); cursor: pointer;
  }
  .header__menu-toggle-icon, .header__menu-toggle-icon::before, .header__menu-toggle-icon::after {
    width: 18px; height: 2px; background: var(--text);
  }
  .header__menu-toggle-icon { position: relative; display: block; }
  .header__menu-toggle-icon::before, .header__menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .header__menu-toggle-icon::before { top: -6px; }
  .header__menu-toggle-icon::after { top: 6px; }
  .header__actions { gap: 10px; }
  .lang-switch { gap: 2px; padding: 2px; }
  .lang-switch__link { padding: 5px 8px; font-size: 11px; }
  /* В шапке на мобилке оставляем только бургер: длинную CTA-кнопку прячем,
     она появляется внутри открытого меню. */
  .header__actions .button { display: none; }
  .header__nav-cta { display: inline-flex; justify-content: center; margin-top: 8px; }

  .cards, .cases, .prices, .steps, .reviews { grid-template-columns: 1fr; }
  .footer__cols { gap: 36px; }
  .hero { padding-top: 124px; padding-bottom: 64px; }
  .hero__title { font-size: clamp(31px, 8.8vw, 44px); margin-top: 18px; overflow-wrap: anywhere; }
  .hero__subtitle { font-size: 17px; margin-top: 20px; }
  .hero__cta { gap: 12px; margin-top: 30px; }
  .hero__cta .button { flex: 1 1 auto; justify-content: center; }
  .hero__trust { margin-top: 8px; padding-top: 24px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .section__head { margin-bottom: 40px; }
  .section__title, .why__title { font-size: clamp(27px, 7.5vw, 40px); }
  .console__body { font-size: 13px; padding: 18px 18px 22px; height: auto !important; }
  .console { height: auto !important; display: block !important; grid-template-rows: none !important; }
  .why__stats { grid-template-columns: 1fr 1fr; }
  .contact__grid { gap: 32px; }
  .faq__summary { font-size: 17px; padding: 22px 4px; }
  .footer__grid { flex-direction: column; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .why__stats { grid-template-columns: 1fr; }
  .strip__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* FREE PRODUCT: ShefTools — собственный бесплатный продукт */
.product {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 20px;
  border: 1px solid var(--line-strong); background: var(--bg-2); position: relative; overflow: hidden;
}
.product::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 55%);
}
.product__body { position: relative; z-index: 1; }
.product__badge {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.product__title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.product__text { color: var(--muted); max-width: 560px; margin-bottom: 20px; }
.product__list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.product__item {
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: oklch(1 0 0 / 0.03);
}
.product__cta { position: relative; z-index: 1; }
.product__aside {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
  padding: 26px; border-radius: 16px; border: 1px dashed var(--line-strong); background: var(--bg);
}
.product__snippet {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  background: var(--bg-3); padding: 12px 14px; border-radius: 10px; width: 100%; word-break: break-all;
}
@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
}
