/* ============================================================
   ArtWebCode — стили сайта
   1. Переменные и база       6. Работы
   2. Кнопки и мелкие блоки   7. Процесс и цены
   3. Фон и шапка             8. Отзывы и FAQ
   4. Hero                    9. Форма заявки
   5. Секции и карточки      10. Подвал, модалка, адаптив
   ============================================================ */

/* ═══════════ 0. ШРИФТ ═══════════
   Manrope лежит в папке проекта: сайт не зависит от Google Fonts
   и одинаково быстро открывается в любой стране. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ═══════════ 1. ПЕРЕМЕННЫЕ И БАЗА ═══════════ */
:root {
  color-scheme: dark;
  --theme-color: #06070c;
  --bg: #06070c;
  --bg-soft: #0b0d16;
  --bg-wash: #0b1d21;
  --text: #edeff7;
  --muted: #9aa1b8;
  --dim: #6e768f;
  --ink-soft: #cdd3e6;
  --ink-mid: #b9c0d6;
  --quote: #d6dbeb;
  --field-label: #c3c9dc;
  --placeholder: #5f6780;
  --footer-h: #8e96ae;

  /* Акценты: изумруд + бирюза. Тройки RGB нужны,
     чтобы задавать прозрачность через rgba(var(--accent-rgb), .2). */
  --accent: #10b981;
  --accent-soft: #34d399;
  --accent-rgb: 16, 185, 129;
  --accent-soft-rgb: 52, 211, 153;
  --teal: #2dd4bf;
  --rose: #fb7185;
  --link: #5eead4;
  --icon: #6ee7b7;
  --icon-hover: #a7f3d0;
  --icon-2: #5eead4;
  --warn-text: #e8dcc0;
  --code-bg: rgba(8, 9, 16, 0.75);
  --code-text: #c7d2fe;
  --inline-code: #a7f3d0;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --fill: rgba(255, 255, 255, 0.04);
  --fill-strong: rgba(255, 255, 255, 0.08);
  --fill-faint: rgba(255, 255, 255, 0.03);
  --chip-3: #7dd3fc;
  --grid-line: rgba(255, 255, 255, 0.045);
  --card-shine: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  --panel-grad: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --mock-grad: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  --mock-line: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  --chip-bg: rgba(12, 14, 24, 0.82);
  --header-stuck: rgba(6, 7, 12, 0.88);
  --nav-open: rgba(9, 11, 18, 0.97);
  --form-bg: rgba(8, 9, 16, 0.55);
  --modal-bg: #0a0c14;
  --modal-backdrop: rgba(3, 4, 8, 0.72);
  --toast-bg: rgba(10, 12, 20, 0.94);
  --thumb-border: #0a0c14;
  --select-bg: #0b0d16;
  --blob-1: #047857;
  --blob-2: #0e7490;
  --blob-3: #0c4a6e;
  --blob-opacity: 0.5;
  --noise-opacity: 0.038;
  --logo-blend: screen;

  --grad: linear-gradient(100deg, #34d399, #2dd4bf 55%, #7dd3fc);
  --grad-btn: linear-gradient(135deg, #10b981, #0d9488 45%, #0e7490);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 22px 60px -22px rgba(13, 148, 136, 0.55);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pad: clamp(16px, 4vw, 28px);
}

html[data-theme="light"] {
  color-scheme: light;
  --theme-color: #f3f6fb;
  --bg: #f3f6fb;
  --bg-soft: #e8eef6;
  --bg-wash: #ccfbf1;
  --text: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --ink-soft: #334155;
  --ink-mid: #475569;
  --quote: #334155;
  --field-label: #334155;
  --placeholder: #94a3b8;
  --footer-h: #64748b;

  --teal: #0f766e;
  --link: #0f766e;
  --icon: #047857;
  --icon-hover: #065f46;
  --icon-2: #0d9488;
  --warn-text: #78716c;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --inline-code: #047857;

  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-2: rgba(255, 255, 255, 0.9);
  --fill: rgba(15, 23, 42, 0.045);
  --fill-strong: rgba(15, 23, 42, 0.1);
  --fill-faint: rgba(15, 23, 42, 0.03);
  --chip-3: #0369a1;
  --grid-line: rgba(15, 23, 42, 0.055);
  --card-shine: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.1), transparent);
  --panel-grad: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.62));
  --mock-grad: linear-gradient(165deg, #ffffff, #eef2f7);
  --mock-line: linear-gradient(90deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.06));
  --chip-bg: rgba(255, 255, 255, 0.92);
  --header-stuck: rgba(243, 246, 251, 0.94);
  --nav-open: rgba(255, 255, 255, 0.98);
  --form-bg: rgba(255, 255, 255, 0.82);
  --modal-bg: #ffffff;
  --modal-backdrop: rgba(15, 23, 42, 0.42);
  --toast-bg: rgba(255, 255, 255, 0.96);
  --thumb-border: #ffffff;
  --select-bg: #ffffff;
  --blob-1: #6ee7b7;
  --blob-2: #67e8f9;
  --blob-3: #93c5fd;
  --blob-opacity: 0.4;
  --noise-opacity: 0.05;
  --logo-blend: overlay;

  --shadow: 0 24px 70px -28px rgba(15, 23, 42, 0.22);
  --glow: 0 0 0 1px rgba(16, 185, 129, 0.18), 0 22px 60px -22px rgba(13, 148, 136, 0.28);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}
html[data-theme="light"] { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  /* clip, а не hidden: hidden делает body контейнером прокрутки
     и ломает «прилипание» шапки */
  overflow-x: hidden;
  overflow-x: clip;
}

html.theme-ready,
html.theme-ready body {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
html.theme-ready .bg,
html.theme-ready .header.is-stuck,
html.theme-ready .card,
html.theme-ready .form,
html.theme-ready .nav.is-open {
  transition: background 0.35s var(--ease), background-color 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }

/* иначе display у .btn и .modal перебивает атрибут hidden */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.032em;
}

p { margin: 0; }

::selection {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container--narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Появление при скролле.
   Прячем блоки только если JS работает — иначе текст должен быть виден сразу. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ═══════════ 2. КНОПКИ И МЕЛКИЕ БЛОКИ ═══════════ */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--grad-btn);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: 0 10px 34px -12px rgba(13, 148, 136, 0.85);
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 44px -12px rgba(13, 148, 136, 1);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--line-strong);
  background: var(--glass);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--muted);
  padding: 10px 14px;
}
.btn--ghost:hover { color: var(--text); }
.btn--ghost svg { width: 16px; height: 16px; opacity: 0.7; }

.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--full { width: 100%; }

.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn__spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════ 3. ФОН И ШАПКА ═══════════ */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--bg-wash) 0%, transparent 60%),
    var(--bg);
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 65% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(100% 65% at 50% 0%, #000 0%, transparent 75%);
}

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
}
.bg__blob--1 {
  top: -240px; left: -140px;
  width: 660px; height: 660px;
  background: radial-gradient(circle, var(--blob-1) 0%, transparent 68%);
  animation: float1 22s ease-in-out infinite;
}
.bg__blob--2 {
  top: 8%; right: -220px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--blob-2) 0%, transparent 68%);
  animation: float2 26s ease-in-out infinite;
}
.bg__blob--3 {
  bottom: -260px; left: 32%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--blob-3) 0%, transparent 70%);
  opacity: 0.34;
  animation: float1 30s ease-in-out infinite reverse;
}
@keyframes float1 {
  50% { transform: translate3d(90px, 70px, 0) scale(1.14); }
}
@keyframes float2 {
  50% { transform: translate3d(-80px, 110px, 0) scale(1.1); }
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  padding: 9px 0;
  /* плотность подобрана так, чтобы текст не просвечивал
     даже в браузерах без поддержки backdrop-filter */
  background: var(--header-stuck);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  perspective: 640px;
}
/* ── Эмблема: кольцо-ореол, сияние, блик, орбитальные искры, 3D-наклон ── */
.logo__mark {
  --mark-img: url("../img/logo-mark.png");
  --mark-size: 56px;
  --ring-r: calc(var(--mark-size) * 0.56);
  --disc-r: calc(var(--mark-size) * 0.52);
  position: relative;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: none;
  transform-style: preserve-3d;
}
.logo--sm .logo__mark {
  --mark-size: 50px;
}
.logo--sm .logo__img {
  width: 50px;
  height: 50px;
}

/* вращающееся световое кольцо */
.logo__ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 235deg,
    rgba(125, 211, 252, 0.25) 268deg,
    rgba(167, 243, 208, 1) 310deg,
    #fff 324deg,
    rgba(45, 212, 191, 1) 336deg,
    rgba(125, 211, 252, 0.35) 360deg
  );
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1.5px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1.5px));
  clip-path: circle(50% at 50% 50%);
  animation: logoRingSpin 5.5s linear infinite;
}
.logo__ring::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    transparent 0deg 300deg,
    rgba(45, 212, 191, 0.35) 330deg,
    rgba(16, 185, 129, 0.75) 350deg,
    transparent 360deg
  );
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  clip-path: circle(50% at 50% 50%);
  animation: logoRingSpin 9s linear infinite reverse;
  opacity: 0.7;
}

/* круглое сияние за эмблемой */
.logo__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--disc-r) * 2);
  height: calc(var(--disc-r) * 2);
  margin: 0;
  translate: -50% -50%;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(var(--accent-soft-rgb), 0.34) 0%,
    rgba(var(--accent-rgb), 0.14) 46%,
    transparent 72%
  );
  animation: logoGlowPulse 3.2s ease-in-out infinite;
}

.logo__icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: logoFloat 6s ease-in-out infinite;
}
.logo__tilt {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform:
    rotateY(var(--tilt-ry, 0deg))
    rotateX(var(--tilt-rx, 0deg))
    scale(var(--tilt-scale, 1));
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.logo.is-tilt .logo__tilt { transition: none; }
.logo__icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--disc-r) * 2.1);
  height: calc(var(--disc-r) * 2.1);
  translate: -50% -50%;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle at 45% 38%,
    rgba(52, 211, 153, 0.22) 0%,
    rgba(16, 185, 129, 0.08) 52%,
    transparent 74%
  );
}
.logo__img {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--mark-size);
  height: var(--mark-size);
  object-fit: contain;
  filter: brightness(1.06) contrast(1.08);
  transition: filter 0.35s var(--ease);
}

/* кинематографический блик по граням монограммы */
.logo__shine {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 28%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(236, 253, 245, 0.92) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 72%
  );
  background-size: 280% 100%;
  background-repeat: no-repeat;
  -webkit-mask: var(--mark-img) center / contain no-repeat;
  mask: var(--mark-img) center / contain no-repeat;
  mix-blend-mode: var(--logo-blend);
  animation: logoShineSweep 4.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.logo__spark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px;
  border-radius: 50%;
  background: #f0fdf4;
  box-shadow:
    0 0 6px #6ee7b7,
    0 0 14px rgba(16, 185, 129, 0.75),
    0 0 24px rgba(125, 211, 252, 0.35);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  animation: logoSparkOrbit 6s linear infinite;
  animation-delay: calc(var(--spark-i, 0) * -1.5s);
}

@keyframes logoRingSpin { to { rotate: 360deg; } }
@keyframes logoGlowPulse {
  0%,
  100% { opacity: 0.55; scale: 0.92; }
  50% { opacity: 0.9; scale: 1.08; }
}
@keyframes logoFloat {
  0%,
  100% { translate: 0 0; }
  45% { translate: 0 -3px; }
  70% { translate: 0 -1px; }
}
@keyframes logoShineSweep {
  0%,
  38% { background-position: 180% 0; opacity: 0; }
  44% { opacity: 1; }
  62% { background-position: -80% 0; opacity: 1; }
  70%,
  100% { background-position: -80% 0; opacity: 0; }
}
@keyframes logoSparkOrbit {
  0% {
    opacity: 0;
    transform: rotate(calc(var(--spark-i, 0) * 120deg)) translateX(var(--ring-r)) scale(0.2);
  }
  8% { opacity: 1; }
  50% {
    opacity: 0.85;
    transform: rotate(calc(var(--spark-i, 0) * 120deg + 200deg)) translateX(calc(var(--ring-r) + 4px)) scale(1);
  }
  92% { opacity: 0; }
  100% {
    transform: rotate(calc(var(--spark-i, 0) * 120deg + 360deg)) translateX(var(--ring-r)) scale(0.2);
  }
}
@keyframes logoEnter {
  0% { opacity: 0; translate: 0 3px; }
  100% { opacity: 1; translate: 0 0; }
}
@keyframes logoGlowBurst {
  0% { opacity: 0; scale: 0.35; }
  42% { opacity: 1; scale: 1.18; }
  100% { opacity: 0.72; scale: 1; }
}

.js .logo__icon {
  animation:
    logoEnter 0.85s cubic-bezier(0.34, 1.45, 0.64, 1) both,
    logoFloat 6s ease-in-out 0.9s infinite;
}
.js .logo__glow {
  animation: logoGlowBurst 1s var(--ease) 0.05s both, logoGlowPulse 3.2s ease-in-out 1s infinite;
}
.js .logo__ring {
  animation: logoRingSpin 5.5s linear 0.35s infinite;
}

.logo:hover .logo__shine { animation-duration: 2.4s; }
.logo:hover .logo__img { filter: brightness(1.1) contrast(1.1); }
.logo:hover .logo__glow {
  background: radial-gradient(
    circle,
    rgba(var(--accent-soft-rgb), 0.48) 0%,
    rgba(var(--accent-rgb), 0.2) 46%,
    transparent 72%
  );
}

.logo__text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.logo__text span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.nav a:hover {
  color: var(--text);
  background: var(--glass-2);
}
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--grad);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.lang-planet-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.lang-planet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s, transform 0.25s var(--ease);
}
.lang-planet svg {
  width: 20px;
  height: 20px;
  color: var(--accent, #34d399);
}
.lang-planet:hover {
  border-color: rgba(var(--accent-soft-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.12);
  transform: translateY(-1px);
}
.lang-planet:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease), color 0.25s;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--glass-2);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: none;
}
html:not([data-theme="light"]) .theme-toggle__sun { display: block; }
html[data-theme="light"] .theme-toggle__moon { display: block; }
.header:not(:has(#nav)) .header__tools { margin-left: auto; }

/* ═══════════ 4. HERO ═══════════ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(60px, 8vw, 110px);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
}

.hero__title {
  margin: 22px 0 20px;
  font-size: clamp(37px, 5vw, 62px);
}

.hero__text {
  max-width: 540px;
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* Показателей немного, поэтому колонки равной ширины и акцентная черта
   слева — так пара цифр выглядит цельным блоком, а не остатком от списка. */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(18px, 2.5vw, 30px);
  max-width: 540px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 16px;
  border-left: 2px solid rgba(var(--accent-rgb), 0.55);
}
.hero__stats b {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* только прямой дочерний span — иначе правило съедает цифры внутри <b> */
.hero__stats li > span {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.4;
}

/* макет браузера */
.hero__visual {
  position: relative;
  perspective: 1200px;
}

.mock {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--mock-grad);
  box-shadow: var(--shadow), 0 0 0 1px rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform 0.7s var(--ease);
  animation: bob 7s ease-in-out infinite;
}
.hero__visual:hover .mock { transform: rotateY(0deg) rotateX(0deg) scale(1.015); }
@keyframes bob {
  50% { translate: 0 -14px; }
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--fill-faint);
}
.mock__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.mock__dot:first-child { background: #ff5f57; }
.mock__dot:nth-child(2) { background: #febc2e; }
.mock__dot:nth-child(3) { background: #28c840; }
.mock__url {
  margin-left: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 12px;
  color: var(--dim);
}

.mock__body { padding: 26px; }
.mock__hero {
  padding: 26px 22px 30px;
  border-radius: var(--r);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(16, 185, 129, 0.32), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(45, 212, 191, 0.22), transparent 60%),
    var(--fill-faint);
  border: 1px solid var(--line);
}
.mock__line {
  height: 11px;
  margin-bottom: 11px;
  border-radius: 6px;
  background: var(--mock-line);
}
.mock__line--xl { height: 20px; width: 78%; }
.mock__line--l { width: 62%; }
.mock__line--m { width: 44%; opacity: 0.6; }
.mock__btn {
  width: 132px;
  height: 38px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--grad-btn);
  box-shadow: 0 8px 24px -8px rgba(13, 148, 136, 0.9);
}
.mock__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.mock__card {
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
}
.mock__card:nth-child(2) { background: rgba(16, 185, 129, 0.12); }
.mock__card:nth-child(3) { background: rgba(45, 212, 191, 0.1); }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--chip-bg);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.9);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.chip svg { width: 16px; height: 16px; }
.chip--1 { top: -22px; left: -5%; color: var(--icon); animation: bob 6s ease-in-out infinite 0.4s; }
.chip--2 { bottom: 22%; right: -5%; color: var(--icon-2); animation: bob 7.5s ease-in-out infinite 1s; }
.chip--3 { bottom: -3%; left: 8%; color: var(--chip-3); animation: bob 6.8s ease-in-out infinite 1.8s; }

/* ═══════════ бегущая строка ═══════════ */
.marquee {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--fill-faint);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee__track span {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-mid);
}
.marquee__track i {
  font-size: 9px;
  font-style: normal;
  color: var(--accent);
}
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ═══════════ 5. СЕКЦИИ И КАРТОЧКИ ═══════════ */
.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding-top: clamp(20px, 3vw, 40px); }

.section__head {
  max-width: 700px;
  margin-bottom: clamp(36px, 5vw, 58px);
}
.section__title { font-size: clamp(29px, 4.4vw, 50px); }
.section__sub {
  margin-top: 18px;
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--muted);
}

.grid { display: grid; gap: clamp(14px, 1.8vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* эффект «фонарика» под курсором */
[data-spotlight] { position: relative; }
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 50%),
    rgba(52, 211, 153, 0.55),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 2;
}
[data-spotlight]:hover::before { opacity: 1; }

.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--card-shine);
}
.card:hover {
  transform: translateY(-6px);
  background: var(--glass-2);
  border-color: var(--line-strong);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.22), rgba(45, 212, 191, 0.12));
  color: var(--icon);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); color: var(--icon-hover); }

.card h3 {
  margin-bottom: 10px;
  font-size: 20.5px;
  letter-spacing: -0.028em;
}
.card p {
  font-size: 15.5px;
  color: var(--muted);
}
.card__meta {
  display: inline-block;
  margin-top: 18px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dim);
}

/* блок «почему мы» */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.checklist { margin-top: 30px; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding-left: 38px;
  font-size: 15.5px;
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 24px; height: 24px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 15px no-repeat,
    rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.checklist span {
  display: block;
  color: var(--text);
  font-weight: 700;
}

.panel {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--panel-grad);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.panel__row:first-child { margin-top: 0; }
.panel__label { font-size: 14.5px; color: var(--muted); }
.panel__value {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.panel__bar {
  height: 8px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--fill-strong);
  overflow: hidden;
}
.panel__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  transition: width 1.3s var(--ease) 0.15s;
}
.panel.is-in .panel__bar i { width: var(--w); }
.panel__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--dim);
}
.panel__note svg { width: 16px; height: 16px; color: var(--icon); flex: none; }

/* ═══════════ 6. РАБОТЫ ═══════════ */
.work {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s;
}
.work:hover { transform: translateY(-7px); border-color: var(--line-strong); }

.work__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.work__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.work__art--a { background: linear-gradient(140deg, #064e3b, #0d9488 50%, #5eead4); }
.work__art--b { background: linear-gradient(140deg, #0c4a6e, #0891b2 55%, #67e8f9); }
.work__art--c { background: linear-gradient(140deg, #14532d, #16a34a 55%, #a3e635); }
.work__art--d { background: linear-gradient(140deg, #134e4a, #0f766e 45%, #7dd3fc); }

.work__artInner {
  position: relative;
  z-index: 1;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 9, 16, 0.42);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.5s var(--ease);
}
.work:hover .work__artInner { transform: scale(1.06); }

.work__body { padding: clamp(20px, 2.2vw, 28px); }
.work__body h3 {
  margin-bottom: 9px;
  font-size: 21px;
  letter-spacing: -0.028em;
}
.work__body p { font-size: 15.5px; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill-faint);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mid);
}

/* ═══════════ 7. ПРОЦЕСС И ЦЕНЫ ═══════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  counter-reset: s;
}
.step {
  position: relative;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  transition: transform 0.4s var(--ease), background 0.4s, border-color 0.4s;
}
.step:hover {
  transform: translateY(-6px);
  background: var(--glass-2);
  border-color: rgba(16, 185, 129, 0.35);
}
.step::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -14px;
  width: 8px;
  height: 8px;
  border-top: 1.6px solid rgba(16, 185, 129, 0.55);
  border-right: 1.6px solid rgba(16, 185, 129, 0.55);
  transform: rotate(45deg);
}
.step:last-child::after { display: none; }

.step__num {
  margin-bottom: 16px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.05em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.step h3 { margin-bottom: 8px; font-size: 18px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* тарифы */
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: transform 0.45s var(--ease), border-color 0.4s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--line-strong); }

.plan--best {
  border-color: rgba(16, 185, 129, 0.45);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(16, 185, 129, 0.16), transparent 62%),
    var(--glass-2);
  box-shadow: var(--glow);
}

/* у обычных пакетов резервируем место под плашку,
   чтобы названия и цены во всех трёх карточках стояли на одной линии */
.plan:not(.plan--best) .plan__name { margin-top: 48px; }

.plan__badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grad-btn);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.plan__name { font-size: 24px; }
.plan__for {
  margin-top: 7px;
  font-size: 14.5px;
  color: var(--dim);
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
}
.plan__from {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--dim);
}
.plan__price i {
  font-size: 22px;
  font-style: normal;
  color: var(--muted);
}

.plan__list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.plan__list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--muted);
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237dd3fc' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plans__note {
  max-width: 620px;
  margin: 34px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--dim);
}

/* ═══════════ 7б. КАЛЬКУЛЯТОР ═══════════ */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 372px);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: start;
}

.calc__form {
  counter-reset: cgroup;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.calc__group {
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.calc__group:last-of-type { margin-bottom: 22px; }
.calc__group[hidden] + .calc__group { margin-top: 0; }

.calc__legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
/* нумерация шагов через счётчик: скрытый блок пропускается,
   поэтому номера не прыгают, когда ползунок страниц не нужен */
.calc__legend::before {
  counter-increment: cgroup;
  content: counter(cgroup) ". ";
  color: var(--accent-soft);
}
.calc__legend b {
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--icon);
  font-size: 14px;
}
.calc__hint {
  margin: -6px 0 14px;
  font-size: 13.5px;
  color: var(--dim);
}

.calc__types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.calc__opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* карточки выбора: тип проекта и опции */
.ctype input,
.copt input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ctype__box,
.copt__box {
  display: block;
  position: relative;
  height: 100%;
  padding: 15px 46px 15px 17px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--fill-faint);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s, transform 0.25s var(--ease);
}
.ctype__box:hover,
.copt__box:hover {
  border-color: rgba(var(--accent-soft-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.07);
}
.ctype__box b,
.copt__box b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ctype__box i,
.copt__box i {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.4;
  color: var(--dim);
}
.ctype__box em,
.copt__box em {
  display: block;
  margin-top: 9px;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--icon);
}

/* галочка в углу карточки */
.ctype__box::after,
.copt__box::after {
  content: "";
  position: absolute;
  top: 15px; right: 15px;
  width: 22px; height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--fill);
  transition: background 0.25s, border-color 0.25s;
}
.ctype__box::after { border-radius: 50%; }

.ctype input:checked + .ctype__box,
.copt input:checked + .copt__box {
  border-color: rgba(var(--accent-soft-rgb), 0.75);
  background: rgba(var(--accent-rgb), 0.13);
}
.ctype input:checked + .ctype__box::after,
.copt input:checked + .copt__box::after {
  border-color: transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--grad-btn);
}
.ctype input:focus-visible + .ctype__box,
.copt input:focus-visible + .copt__box {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.copt--wide { display: block; }
.copt--wide .copt__box { padding-right: 52px; }
.copt--wide .copt__box em {
  position: absolute;
  right: 52px; top: 15px;
  margin: 0;
  font-size: 15px;
}

/* ползунок количества страниц */
.crange {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 6px 0 0;
  border-radius: 99px;
  background: var(--fill-strong);
  cursor: pointer;
}
.crange::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border: 3px solid var(--thumb-border);
  border-radius: 50%;
  background: var(--grad-btn);
  box-shadow: 0 4px 14px -4px rgba(var(--accent-rgb), 0.9);
  cursor: grab;
}
.crange::-moz-range-thumb {
  width: 22px; height: 22px;
  border: 3px solid var(--thumb-border);
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 4px 14px -4px rgba(var(--accent-rgb), 0.9);
  cursor: grab;
}
.crange:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.crange__marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--dim);
}

/* итоговая карточка */
.calc__total { position: sticky; top: 88px; }

.calc__card {
  padding: clamp(24px, 2.6vw, 30px);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb), 0.18), transparent 62%),
    var(--fill);
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
}
.calc__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.calc__sum {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: clamp(32px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.calc__sum i {
  font-size: 23px;
  font-style: normal;
  color: var(--muted);
}

.calc__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.calc__meta span {
  display: block;
  font-size: 12.5px;
  color: var(--dim);
}
.calc__meta b {
  display: block;
  margin-top: 3px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.calc__list {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
  min-height: 26px;
}
.calc__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--muted);
}
.calc__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.calc__list li.is-empty { padding-left: 0; color: var(--dim); }
.calc__list li.is-empty::before { display: none; }

.calc__note {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--dim);
}

/* ═══════════ 7в. ОПЛАТА ═══════════ */
.pay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 372px);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: start;
}

.pay__side {
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.pay__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.pay__plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 10px;
  margin: 16px 0 26px;
}
.pay__chip {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--fill-faint);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s;
}
.pay__chip:hover {
  border-color: rgba(var(--accent-soft-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.07);
}
.pay__chip.is-active {
  border-color: rgba(var(--accent-soft-rgb), 0.75);
  background: rgba(var(--accent-rgb), 0.13);
}
.pay__chip:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.pay__chip b {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pay__chip i {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13px;
  color: var(--dim);
}

.pay__field { margin-bottom: 18px; }
.pay__field:last-child { margin-bottom: 0; }
.pay__optional { font-weight: 600; color: var(--dim); }

.pay__card {
  padding: clamp(24px, 2.6vw, 30px);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(var(--accent-rgb), 0.18), transparent 62%),
    var(--fill);
  backdrop-filter: blur(12px);
  box-shadow: var(--glow);
}

.pay__total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  font-size: clamp(32px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.pay__total i {
  font-size: 23px;
  font-style: normal;
  color: var(--muted);
}

.pay__parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 20px 0 14px;
}
.pay__part {
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.pay__part:hover { color: var(--text); }
.pay__part.is-active {
  border-color: rgba(var(--accent-soft-rgb), 0.75);
  background: rgba(var(--accent-rgb), 0.16);
  color: var(--text);
}
.pay__part:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.pay__hint {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
}

.pay__safe {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.pay__safe li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  color: var(--dim);
}
.pay__safe li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ═══════════ 8. ОТЗЫВЫ И FAQ ═══════════ */
.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.quote:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.stars {
  margin-bottom: 16px;
  font-size: 16px;
  letter-spacing: 3px;
  color: #fbbf24;
}
.quote blockquote {
  flex: 1; /* подписи авторов выравниваются по нижнему краю карточек */
  margin: 0;
  font-size: 16px;
  color: var(--quote);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ava {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b));
  font-size: 14px;
  font-weight: 800;
  color: #0b0d16;
}
.quote figcaption > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--dim);
}
.quote figcaption b {
  font-size: 15px;
  color: var(--text);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 900px; /* заголовок остаётся на общей сетке страницы */
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  transition: border-color 0.3s, background 0.3s;
}
.faq__item[open] {
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--glass-2);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__body {
  padding: 0 24px 22px;
  font-size: 15.5px;
  color: var(--muted);
  animation: fadeDown 0.35s var(--ease);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ═══════════ 9. ФОРМА ЗАЯВКИ ═══════════ */
.lead {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(26px, 3.6vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 110% at 0% 0%, rgba(16, 185, 129, 0.16), transparent 55%),
    radial-gradient(80% 100% at 100% 100%, rgba(45, 212, 191, 0.12), transparent 55%),
    var(--fill);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.lead__title { font-size: clamp(27px, 3.4vw, 40px); }
.lead__text {
  margin-top: 16px;
  font-size: 16px;
  color: var(--muted);
}

.lead__points { display: grid; gap: 11px; margin-top: 26px; }
.lead__points li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-soft);
}
.lead__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lead__direct {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.lead__direct > span {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--dim);
}
.lead__links { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.social svg { width: 17px; height: 17px; color: var(--icon-2); }
.social:hover {
  transform: translateY(-2px);
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.5);
}

.form {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--form-bg);
  backdrop-filter: blur(10px);
}

.field { margin-bottom: 18px; }
.field label,
.field .label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--field-label);
}
.field label i {
  font-style: normal;
  color: var(--rose);
}

.field input[type="text"],
.field textarea,
.select select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--fill);
  color: var(--text);
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }

.field input:focus,
.field textarea:focus,
.select select:focus {
  outline: none;
  border-color: rgba(52, 211, 153, 0.7);
  background: rgba(16, 185, 129, 0.07);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.field.has-error input,
.field.has-error textarea { border-color: #f87171; }
.field__err {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: #fca5a5;
}
.field.has-error .field__err { display: block; }

.select { position: relative; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
}
.select select option { background: var(--select-bg); color: var(--text); }
.select svg {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipx input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chipx span {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--fill-faint);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chipx span:hover {
  color: var(--text);
  border-color: rgba(52, 211, 153, 0.45);
}
.chipx input:checked + span {
  border-color: transparent;
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(13, 148, 136, 0.9);
}
.chipx input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

.agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 6px 0 22px;
  font-size: 13.5px;
  color: var(--dim);
  cursor: pointer;
}
.agree input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin: 0;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--fill);
  cursor: pointer;
  transition: all 0.2s;
}
.agree input:checked {
  border-color: transparent;
  /* два слоя фона обязательно через запятую, иначе правило не работает */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--grad-btn);
}
.agree a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__hint {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

.hp {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
}

/* ═══════════ 10. ПОДВАЛ, МОДАЛКА, АДАПТИВ ═══════════ */
.footer {
  margin-top: 40px;
  padding: clamp(44px, 6vw, 72px) 0 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--fill-faint), transparent);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(26px, 3vw, 48px);
}
.footer__brand p {
  margin-top: 16px;
  max-width: 300px;
  font-size: 14.5px;
  color: var(--dim);
}
.footer h4 {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--footer-h);
}
.footer__nav,
.footer__contacts { display: flex; flex-direction: column; gap: 11px; }
.footer__nav a,
.footer__contacts a {
  width: fit-content;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}
.footer__nav a:hover,
.footer__contacts a:hover { color: var(--text); transform: translateX(3px); }
.footer__hours { font-size: 13.5px; color: var(--dim); }
.footer__cta p {
  margin-bottom: 16px;
  font-size: 14.5px;
  color: var(--dim);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(34px, 4vw, 54px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--dim);
}
.footer__legal a { transition: color 0.25s; }
.footer__legal a:hover { color: var(--text); }

/* модальное окно */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop);
  backdrop-filter: blur(8px);
  animation: fade 0.3s;
}
@keyframes fade { from { opacity: 0; } }

.modal__card {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(16, 185, 129, 0.2), transparent 60%),
    var(--modal-bg);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.95);
  text-align: center;
  animation: pop 0.4s var(--ease);
}
html[data-theme="light"] .modal__card {
  box-shadow: 0 40px 100px -30px rgba(15, 23, 42, 0.28);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
}
.modal__x {
  position: absolute;
  top: 16px; right: 16px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.modal__x:hover { color: var(--text); border-color: var(--line-strong); }
.modal__x svg { width: 16px; height: 16px; }

.modal__icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(74, 222, 128, 0.25), rgba(45, 212, 191, 0.18));
  border: 1px solid rgba(74, 222, 128, 0.42);
  color: var(--icon);
}
.modal__icon svg { width: 32px; height: 32px; }
.modal__card h3 { font-size: 25px; }
.modal__card p {
  margin-top: 12px;
  font-size: 15.5px;
  color: var(--muted);
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* всплывающее уведомление */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  max-width: min(440px, calc(100vw - 32px));
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--toast-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 14.5px;
  text-align: center;
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.35s;
  pointer-events: none;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.toast.is-error { border-color: rgba(248, 113, 113, 0.5); }

/* ═══════════ АДАПТИВ ═══════════ */
@media (max-width: 1240px) {
  .header__pay { display: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .header__tools { margin-left: auto; }
  .theme-toggle { margin-left: 0; }
  .burger { display: block; }
  .header__actions { display: none; }

  .nav.is-open {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--pad);
    right: var(--pad);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-lg);
    background: var(--nav-open);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    animation: fadeDown 0.3s var(--ease);
  }
  .nav.is-open a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  /* minmax(0, …), а не 1fr: иначе колонка растягивается под минимальную
     ширину вложенной сетки и страница начинает ездить по горизонтали */
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: -1; max-width: 520px; }
  .mock { transform: none; }
  .chip--1 { left: 0; }
  .chip--2 { right: 0; }

  .feature { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__total { position: static; }
  .pay { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
  .lead { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; }
  .plan--best { order: -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 16px; }
  .hero__cta .btn { width: 100%; }
  /* на телефоне заголовок должен быть выше картинки;
     весь макет с плашками опускаем, соотношение «Конверсия» к окну не меняется */
  .hero__visual { order: 0; margin-top: 28px; }
  .footer__top { grid-template-columns: 1fr; }
  .chip { font-size: 12px; padding: 8px 12px; }
  .chip--3 { display: none; }
  .form { padding: 20px 16px; }
  .lead { padding: 22px 16px; }
  .calc__types,
  .calc__opts { grid-template-columns: 1fr; }
  .calc__form { padding: 20px 16px; }
  .pay__plans { grid-template-columns: 1fr; }
  .pay__side { padding: 20px 16px; }
}

/* бережный режим анимаций */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .panel__bar i { width: var(--w); }
  .logo__ring,
  .logo__glow,
  .logo__shine,
  .logo__spark { display: none; }
  .logo__mark,
  .logo__icon { animation: none; }
  .logo__tilt {
    transform: none;
    transition: none;
  }
  .logo__img {
    filter: drop-shadow(0 2px 8px rgba(var(--accent-rgb), 0.45));
  }
}
