/* =============================================================
   Qwebs.kz — site.css  (Design System v1.0)
   Единый CSS: токены + все компоненты. Mobile-first.
   Внешних зависимостей нет. Ноль инлайн-стилей в разметке.

   Порядок:
     1. TOKENS            11. TABLE
     2. BASE              12. FAQ
     3. UTILITIES         13. CTA + FORM
     4. HEADER / NAV      14. BREADCRUMBS
     5. BUTTONS           15. SERVICE HERO / ANSWER
     6. CHIPS             16. FOOTER
     7. HERO              17. REVEAL
     8. STATS             18. RESPONSIVE (480/600/768/1024/1280)
     9. CARDS / BENTO     19. FORM STATES (errors / success)
    10. STEPS / CASES /
        PRICING           20. REDUCED MOTION
   ============================================================= */

/* -------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------- */
:root {
  /* surfaces */
  --bg: #070b14;
  --bg-2: #0e1428;
  --bg-3: #141c38;
  --surface: rgba(14, 20, 40, .72);
  --surface-2: rgba(20, 28, 56, .55);
  --surface-hi: rgba(255, 255, 255, .04);

  /* ratio — золотое сечение φ = 1.618 */
  --ratio: 1.618;        /* φ  */
  --ratio-half: 1.272;   /* √φ */

  /* brand — индиго-рампа: один тон, 4 ступени (h≈243°) */
  --brand-700: #3730a3;
  --brand-600: #4338ca;
  --brand-500: #4f46e5;
  --brand-400: #6366f1;
  --brand: var(--brand-500);
  --brand-strong: var(--brand-600);

  /* accent — циан-рампа: родственный тон, 4 ступени (h≈189°) */
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --brand-2: var(--cyan-500);
  --brand-2-strong: var(--cyan-700);
  --accent: var(--cyan-500);

  --grad-cta: linear-gradient(135deg, var(--brand-600), var(--cyan-700));
  --grad-brand: linear-gradient(135deg, var(--brand-500), var(--cyan-500));

  /* text */
  --text: #f1f5f9;
  --text-2: #94a3b8;
  --text-3: #7d8ea6;
  --text-inv: #0b1020;

  /* lines & status */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --line-3: rgba(255, 255, 255, .24);
  --ok: #22c55e;
  --ok-text: #86efac;
  --warn: #f59e0b;
  --danger: #ef4444;
  --focus: #67e8f9;

  /* typography */
  --font: Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  /* типошкала — золотое сечение, шаг φ^(1/3)≈1.174 от базы 16px */
  --fs-display: clamp(36px, 6.8vw, 68px);   /* 16 × φ³      */
  --fs-h1: clamp(32px, 4.9vw, 53px);        /* 16 × φ^2.5   */
  --fs-h2: clamp(26px, 3.4vw, 42px);        /* 16 × φ²      */
  --fs-h3: clamp(20px, 1.9vw, 26px);        /* 16 × φ       */
  --fs-h4: clamp(17px, 1.5vw, 19px);        /* 16 × φ^(2/3) */
  --fs-lead: clamp(17px, 1.6vw, 19px);      /* 16 × φ^(1/3) */
  --fs-body: 16px;
  --fs-sm: 14px;                            /* 16 ÷ φ^(1/3) */
  --fs-xs: 12px;                            /* 16 ÷ φ^(2/3) */
  --fs-2xs: clamp(10px, 0.9vw, 11px);       /* 16 ÷ φ       */
  --lh-display: 1.06;
  --lh-heading: 1.16;
  --lh-tight: 1.30;
  --lh-body: var(--ratio);                  /* 1.618 — золотая строка */

  /* spacing — золотое сечение: шаг √φ≈1.272, каждые 2 шага = φ≈1.618 */
  --sp-1: 7px;  --sp-2: 9px;   --sp-3: 11px;  --sp-4: 14px;
  --sp-5: 18px; --sp-6: 23px;  --sp-7: 29px;  --sp-8: 37px;
  --sp-9: 47px; --sp-10: 59px; --sp-11: 76px; --sp-12: 96px;
  --section-y: clamp(56px, 8vw, 96px);

  /* radii */
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* shadows & glow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .30);
  --shadow-md: 0 14px 36px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 32px 72px -24px rgba(0, 0, 0, .65);
  --glow-brand: 0 12px 40px -12px rgba(6, 182, 212, .45);
  --glow-soft: 0 0 0 1px rgba(6, 182, 212, .30);

  /* layout — золотые пропорции */
  --container: 1180px;
  --container-wide: 1320px;
  --container-narrow: 729px;    /* 1180 × 61.8% — колонка чтения */
  --measure: 61.8%;             /* золотое сечение для текста */
  --gutter: clamp(16px, 4vw, 21px);
  --header-h: 102px;

  /* motion */
  --dur-1: 140ms; --dur-2: 220ms; --dur-3: 320ms; --dur-4: 520ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  color-scheme: dark;
}

/* -------------------------------------------------------------
   2. BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 { margin: 0; line-height: var(--lh-heading); font-weight: 800; letter-spacing: -.01em; }
h3, h4 { font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: #67e8f9; }

::selection { background: rgba(6, 182, 212, .30); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: var(--r-xs); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* Единый индикатор фокуса — на всех интерактивных элементах */
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* -------------------------------------------------------------
   3. UTILITIES
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-2); }
.section--flush { padding-block: 0; }
strong { color: var(--text); }

.section__head { max-width: 720px; margin-bottom: var(--sp-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: var(--fs-h2); text-wrap: balance; }
.section__desc { margin-top: var(--sp-4); color: var(--text-2); font-size: var(--fs-lead); }
.section__note { margin-top: var(--sp-6); color: var(--text-2); font-size: var(--fs-lead); }
.section__note--tight { margin-top: var(--sp-5); }
.section__title .hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4); z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--brand-strong); color: #fff;
  border-radius: var(--r-sm); font-weight: 700;
  transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus-visible { top: var(--sp-4); color: #fff; }

/* Иконки: единый стиль — 24×24, stroke 1.75, currentColor */
.icon {
  width: 24px; height: 24px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }
.icon--xl { width: 40px; height: 40px; }

/* -------------------------------------------------------------
   4. HEADER / NAV
   ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 20, .78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5); min-height: var(--header-h);
}

.logo {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px;
  color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo__mark { width: 28px; height: 28px; flex: none; display: block; }
.logo__full { height: 40px; width: auto; display: block; }
.logo__img { height: 80px; width: auto; display: block; }
.footer__brand .logo__img { height: 80px; }
@media (max-width: 480px) { .logo__img { height: 50px; } }
.footer__brand .logo__full { height: 46px; }
@media (max-width: 480px) { .logo__full { height: 28px; } }

.nav { display: flex; align-items: center; gap: var(--sp-5); }
.nav__list { display: flex; align-items: center; gap: var(--sp-1); }
.nav__link {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  min-height: 44px; padding: 0 var(--sp-4);
  background: none; border: 0; border-radius: var(--r-pill);
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: #fff; background: var(--surface-hi); }
.nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__link .chev { transition: transform var(--dur-2) var(--ease-out); }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav__has-drop { position: relative; }
.nav__drop {
  position: absolute; top: calc(100% + 8px); left: 50%;
  min-width: 268px; padding: var(--sp-2);
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility var(--dur-2);
}
.nav__has-drop:hover .nav__drop,
.nav__has-drop:focus-within .nav__drop,
.nav__drop.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop a {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 44px; padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm); color: var(--text-2); font-size: var(--fs-sm);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.nav__drop a:hover, .nav__drop a:focus-visible { background: var(--surface-hi); color: #fff; }
.nav__drop .icon { color: var(--brand-2); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer;
}
.nav__toggle span {
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--text-2); transform-origin: center;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out), background-color var(--dur-2);
}
.nav__toggle[aria-expanded="true"] span { background: #fff; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Мобильное меню (оверлей) */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2);
  padding: calc(var(--header-h) + var(--sp-6)) var(--gutter) var(--sp-8);
  background: rgba(7, 11, 20, .97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), visibility var(--dur-3);
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 52px;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text); font-size: 20px; font-weight: 600;
  border-radius: var(--r-sm);
}
.mobile-nav a:hover { background: var(--surface-hi); color: #fff; }
.mobile-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.mobile-nav .btn { margin-top: var(--sp-4); justify-content: center; }

/* -------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-6);
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-body); font-weight: 700; line-height: 1;
  cursor: pointer; text-align: center;
  transition: transform var(--dur-2) var(--ease-spring),
              box-shadow var(--dur-2) var(--ease-out),
              background-color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
}
.btn--primary { background: var(--grad-cta); color: #fff; }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--glow-brand); }
.btn--secondary { background: transparent; border-color: var(--line-3); color: var(--text); }
.btn--secondary:hover { color: #fff; background: var(--surface-hi); border-color: var(--line-3); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--brand-2); padding-inline: var(--sp-4); }
.btn--ghost:hover { color: #67e8f9; background: var(--surface-hi); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding-inline: var(--sp-5); font-size: var(--fs-sm); }
.btn--lg { min-height: 52px; padding-inline: var(--sp-7); font-size: 17px; }
.btn:active { transform: translateY(0) scale(.99); }
.btn[aria-disabled="true"], .btn:disabled, .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }
.btn .icon { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }

/* -------------------------------------------------------------
   6. CHIPS
   ------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 3px 11px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-2xs); font-weight: 600; line-height: 1.4;
  width: fit-content;
}
.chip .icon { width: 14px; height: 14px; }
.chip--neutral { background: var(--surface-hi); border-color: var(--line-2); color: var(--text-2); }
.chip--brand { background: rgba(6, 182, 212, .12); border-color: rgba(6, 182, 212, .28); color: #67e8f9; }
.chip--ok { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .30); color: var(--ok-text); }
.chip--hot { background: var(--grad-brand); border-color: transparent; color: #fff; }

/* -------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 88px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 18% 12%, rgba(79, 70, 229, .22), transparent 62%),
    radial-gradient(ellipse 55% 45% at 84% 78%, rgba(6, 182, 212, .16), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 30%, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge { margin-bottom: var(--sp-5); }
.hero__title { margin-top: var(--sp-5); font-size: var(--fs-display); font-weight: 800; text-wrap: balance; }
.hero__lead { margin-top: var(--sp-5); color: var(--text-2); font-size: var(--fs-lead); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }
.hero__note { margin-top: var(--sp-4); color: var(--text-3); font-size: var(--fs-sm); }

/* -------------------------------------------------------------
   8. STATS
   ------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin-top: var(--sp-8); }
.stat {
  padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); text-align: center;
}
.stat__num {
  display: block; font-size: clamp(24px, 3.2vw, 32px); font-weight: 800;
  line-height: 1.1; color: var(--brand-2); font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: var(--sp-2); color: var(--text-3); font-size: var(--fs-xs); }

/* -------------------------------------------------------------
   9. CARDS — база + модификаторы
   ------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  min-width: 0; padding: var(--sp-6);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur-3) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out),
              border-color var(--dur-3) var(--ease-out),
              background-color var(--dur-3) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: var(--sp-5);
  background: var(--surface-hi); border: 1px solid var(--line-2);
  border-radius: var(--r-md); color: var(--brand-2);
}
.card__title { font-size: var(--fs-h3); }
.card__lead { margin-top: var(--sp-2); color: var(--text-2); font-size: var(--fs-sm); }
.card__list { margin-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.card__list li {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  color: var(--text-2); font-size: var(--fs-sm);
}
.card__list .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--brand-2); }
.card__price {
  margin-top: auto; padding-top: var(--sp-5);
  font-size: var(--fs-h3); font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums;
}
.card__price small { display: block; margin-top: 2px; color: var(--text-3); font-size: var(--fs-2xs); font-weight: 500; }
.card__cta {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin-top: var(--sp-3);
  color: var(--brand-2); font-size: var(--fs-sm); font-weight: 600;
}
.card__cta:hover { color: #67e8f9; }
.card__cta:hover .icon { transform: translateX(3px); }
.card .chip { margin-bottom: var(--sp-4); }

.card--service:hover { border-color: rgba(6, 182, 212, .30); }
.card--featured {
  background: linear-gradient(180deg, rgba(6, 182, 212, .07), var(--surface));
  border-color: rgba(6, 182, 212, .22);
  box-shadow: var(--glow-soft);
}
.card--featured .card__icon { color: #67e8f9; border-color: rgba(6, 182, 212, .30); }

/* Горизонтальная «широкая» карточка */
.card--wide { flex-direction: row; align-items: flex-start; gap: var(--sp-5); }
.card--wide .card__icon { margin-bottom: 0; }
.card--wide .card__body { min-width: 0; flex: 1; display: flex; flex-direction: column; height: 100%; }
@media (max-width: 599px) { .card--wide { flex-direction: column; } }

/* Bento-сетка (12 колонок) */
.bento { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.bento > * { min-width: 0; }

/* -------------------------------------------------------------
   10. STEPS / CASES / PRICING
   ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.step {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.step:hover { border-color: var(--line-2); transform: translateY(-2px); }
.step__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.step__title { font-size: var(--fs-h4); }
.step__text { margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-sm); }

.cases { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.case__preview {
  position: relative; height: 152px; margin-bottom: var(--sp-5);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, var(--bg-3), rgba(79, 70, 229, .18));
  border-radius: var(--r-md); color: var(--brand-2); overflow: hidden;
}
.case__preview::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.case__preview .icon { position: relative; z-index: 1; }
.case__result { position: relative; z-index: 1; }
.case__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }

.plans { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: var(--sp-6);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.plan--featured {
  background: linear-gradient(180deg, rgba(6, 182, 212, .09), var(--surface));
  border-color: rgba(6, 182, 212, .32);
  box-shadow: var(--glow-soft);
}
.plan .chip { margin-top: var(--sp-4); }
.plan__name { font-size: var(--fs-h4); color: var(--text-2); }
.plan__price {
  margin-top: var(--sp-3); font-size: clamp(28px, 3.6vw, 38px); font-weight: 800;
  line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums;
}
.plan--featured .plan__price {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.plan__note { margin-top: var(--sp-2); color: var(--text-3); font-size: var(--fs-xs); }
.plan__list { margin: var(--sp-5) 0; display: grid; gap: var(--sp-3); }
.plan__list li { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--text-2); font-size: var(--fs-sm); }
.plan__list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.plan .btn { margin-top: auto; }
.plan__foot { margin-top: var(--sp-5); color: var(--text-3); font-size: var(--fs-2xs); }

/* -------------------------------------------------------------
   11. TABLE
   ------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { padding: var(--sp-4); text-align: left; border-bottom: 1px solid var(--line); }
.table thead th {
  background: var(--bg-3); color: var(--text-2);
  font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
}
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover td, .table tbody tr:hover th { background: var(--surface-hi); }
.table td:first-child { font-weight: 600; color: var(--text); }
.table tbody th { font-weight: 600; color: var(--text); text-align: left; }
.table .is-best { color: #67e8f9; font-weight: 600; }

/* -------------------------------------------------------------
   12. FAQ
   ------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 44px; padding: var(--sp-4) 0;
  font-size: var(--fs-body); font-weight: 600; cursor: pointer;
  list-style: none;
  transition: color var(--dur-2) var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #67e8f9; }
.faq__chev { color: var(--brand-2); transition: transform var(--dur-2) var(--ease-out); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--sp-5); color: var(--text-2); font-size: var(--fs-sm); }
.faq__a p + p { margin-top: var(--sp-3); }

/* -------------------------------------------------------------
   13. CTA + FORM
   ------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  background: var(--grad-cta);
  border-radius: var(--r-xl);
  display: grid; gap: var(--sp-7);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 22% 20%, rgba(255, 255, 255, .14), transparent 60%);
}
.cta__body { position: relative; z-index: 1; }
.cta__title { color: #fff; font-size: var(--fs-h2); }
.cta__text { margin-top: var(--sp-3); color: rgba(255, 255, 255, .88); font-size: var(--fs-lead); max-width: 560px; }
.cta__note { margin-top: var(--sp-4); color: rgba(255, 255, 255, .78); font-size: var(--fs-sm); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.form {
  position: relative; z-index: 1;
  padding: var(--sp-6);
  background: rgba(7, 11, 20, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
}
.field { margin-bottom: var(--sp-4); }
.field__label { display: block; margin-bottom: var(--sp-2); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; }
.field__req { color: var(--danger); }
.field__input {
  width: 100%; min-height: 48px; padding: var(--sp-3) var(--sp-4);
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-family: inherit;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.field__input::placeholder { color: var(--text-3); }
.field__input:focus-visible {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, .35);
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.field__input--area { min-height: 104px; padding-top: var(--sp-3); resize: vertical; }
.field__hint { margin-top: var(--sp-2); color: var(--text-3); font-size: var(--fs-xs); }
.form__note { margin-top: var(--sp-3); color: var(--text-3); font-size: var(--fs-2xs); }
.form__note a { color: var(--text-2); text-decoration: underline; }
.form__note a:hover { color: #fff; }

/* -------------------------------------------------------------
   14. BREADCRUMBS
   ------------------------------------------------------------- */
.breadcrumbs { padding-block: var(--sp-5); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.breadcrumbs li { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-3); font-size: var(--fs-xs); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-right: var(--sp-1); color: var(--text-2); }
.breadcrumbs a:hover { color: #67e8f9; }
.breadcrumbs .icon { width: 14px; height: 14px; color: var(--text-3); }
.breadcrumbs [aria-current="page"] { color: var(--text-3); }

/* -------------------------------------------------------------
   15. SERVICE HERO / DIRECT ANSWER
   ------------------------------------------------------------- */
.service-hero { position: relative; overflow: hidden; padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.service-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 80% 0%, rgba(6, 182, 212, .16), transparent 62%);
}
.service-hero__inner { position: relative; z-index: 1; }
.service-hero__title { margin-top: var(--sp-4); font-size: var(--fs-h1); text-wrap: balance; }
.service-hero__lead { margin-top: var(--sp-5); color: var(--text-2); font-size: var(--fs-lead); }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

.answer {
  padding: var(--sp-5);
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-left: 3px solid var(--brand-2);
  border-radius: var(--r-md);
}
.answer p { color: var(--text-2); font-size: var(--fs-sm); }
.answer strong { color: var(--text); }

/* -------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------- */
.footer { margin-top: var(--sp-12); padding-block: var(--sp-9) var(--sp-6); background: var(--bg-2); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
.footer__brand p { margin-top: var(--sp-4); color: var(--text-3); font-size: var(--fs-sm); max-width: 320px; }
.footer__col h4 { color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--sp-3); }
.footer__col a {
  display: flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding-block: var(--sp-2);
  color: var(--text-2); font-size: var(--fs-sm);
  transition: color var(--dur-2) var(--ease-out);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between;
  color: var(--text-3); font-size: var(--fs-xs);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-3); }
.footer__bottom a:hover { color: #fff; }

/* -------------------------------------------------------------
   17. REVEAL — прогрессивное улучшение; без JS контент виден
   ------------------------------------------------------------- */
.js-reveal { opacity: 1; }
.js .js-reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.js .js-reveal.is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------
   18. RESPONSIVE — 480 / 600 / 768 / 1024 / 1280
   ------------------------------------------------------------- */
@media (min-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .card--wide { flex-direction: row; }
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .breadcrumbs a { min-height: 24px; }
}

@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__span-4 { grid-column: span 4; }
  .bento__span-5 { grid-column: span 5; }
  .bento__span-6 { grid-column: span 6; }
  .bento__span-7 { grid-column: span 7; }
  .cases { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: translateY(-8px); }
  .plan--featured:hover { transform: translateY(-12px); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .cta { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

@media (min-width: 1280px) {
  .stats { gap: var(--sp-5); }
  .container--wide { max-width: var(--container-wide); }
}

/* Hamburger ≤1180px / desktop-nav ≥1181px (крупный логотип 80px) */
@media (max-width: 1180px) {
  .nav__list { display: none; }
  .nav__toggle { display: flex; }
  .nav .btn { display: none; }
}
@media (min-width: 1181px) {
  .mobile-nav { display: none; }
}

/* Мобильная таблица: режим «карточки-строки» */
@media (max-width: 599px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td, .table th { display: block; width: 100%; }
  .table tr { padding: var(--sp-4); border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td, .table th { padding: 0; border: 0; }
  .table td:first-child, .table th[scope="row"] {
    margin-bottom: var(--sp-3); font-size: var(--fs-body); color: var(--text);
  }
  .table td::before {
    content: attr(data-label);
    display: block; margin-top: var(--sp-3); margin-bottom: 2px;
    color: var(--text-3); font-size: var(--fs-2xs); font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
  }
  .table td:first-child::before { display: none; }
  .table tbody tr:hover td, .table tbody tr:hover th { background: transparent; }
}

/* -------------------------------------------------------------
   19. FORM STATES — ошибки и успех (управляются через классы/ARIA)
   ------------------------------------------------------------- */
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  display: none; margin-top: var(--sp-2);
  color: var(--danger); font-size: var(--fs-xs); font-weight: 600;
}
.field__error.is-visible { display: block; }

.alert {
  display: none; align-items: flex-start; gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: var(--fs-sm);
}
.alert.is-visible { display: flex; }
.alert .icon { width: 20px; height: 20px; margin-top: 2px; }
.alert--danger { background: rgba(239, 68, 68, .10); border-color: rgba(239, 68, 68, .30); color: #fca5a5; }
.alert--danger .icon { color: var(--danger); }
.alert--ok { background: rgba(34, 197, 94, .10); border-color: rgba(34, 197, 94, .30); color: var(--ok-text); }
.alert--ok .icon { color: var(--ok); }
.alert a { color: inherit; text-decoration: underline; }

/* Скрытые при успешной отправке поля остаются в DOM, но форма помечается */
.form.is-sent .field, .form.is-sent .btn, .form.is-sent .form__note { display: none; }

/* -------------------------------------------------------------
   20. REDUCED MOTION
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .js-reveal { opacity: 1; transform: none; }
  .card:hover, .plan:hover, .btn:hover, .step:hover { transform: none; }
}
