/* =========================================================
   MANS.DEV — стили
   Структура: токены → база → layout → компоненты → секции → утилиты
   ========================================================= */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---------- 1. Токены ---------- */
:root {
  --bg-primary: #0A0B10;
  --bg-secondary: #12141C;
  --bg-elevated: #1A1D29;
  --accent-primary: #6C5CE7;
  --accent-secondary: #00D4FF;
  --accent-success: #00E5A0;
  --accent-warm: #FF6B6B;
  --text-primary: #F5F6FA;
  --text-secondary: #9BA1B5;
  --text-muted: #5A6078;
  --text-muted-aa: #7C839C; /* muted, но с контрастом AA на тёмном фоне */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --grad: linear-gradient(135deg, #6C5CE7 0%, #00D4FF 100%);
  --grad-conic: conic-gradient(from var(--angle), #6C5CE7, #00D4FF, #00E5A0, #ffffff, #6C5CE7);

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sbw: 0px;

  scroll-padding-top: calc(var(--header-h) + 8px);
  color-scheme: dark;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

body.site {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

html.no-scroll { overflow: hidden; }
html.no-scroll body.site { padding-right: var(--sbw); }

::selection { background: rgba(108, 92, 231, .45); color: #fff; }

a { color: inherit; text-decoration: none; }
strong, b { font-weight: 600; color: var(--text-primary); }
img, svg { max-width: 100%; }

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

.mono { font-family: var(--font-mono); }
.c-cyan { color: var(--accent-secondary); }
.c-green { color: var(--accent-success); }

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

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

main:focus { outline: none; }

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
@media (min-width: 1024px) { .wrap { padding-inline: 32px; } }

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 140px);
  overflow-x: clip; /* декоративные blobs не создают горизонтальный скролл; sticky продолжает работать */
}
.section--tight { padding-block: clamp(64px, 7vw, 100px); }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent-secondary);
  letter-spacing: .02em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1rem + 2.5vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  margin: 0;
  overflow-wrap: break-word;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 16px 0 0;
  font-size: clamp(1rem, .95rem + .2vw, 1.1rem);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1280px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid.cards-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; margin-inline: auto; }
}

.card-wrap { min-width: 0; }

/* Одноколоночные сетки на мобильных: колонка не шире экрана */
.about-grid, .roi-grid, .config-grid, .contact-grid, .faq-grid, .footer-grid, .why-grid, .form-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- 4. Фоновые эффекты ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grid-pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.blob {
  position: absolute;
  width: min(640px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: blob-float 18s ease-in-out infinite alternate;
}
.blob--purple { background: radial-gradient(circle, rgba(108, 92, 231, .32) 0%, rgba(108, 92, 231, 0) 65%); }
.blob--cyan { background: radial-gradient(circle, rgba(0, 212, 255, .2) 0%, rgba(0, 212, 255, 0) 65%); animation-delay: -6s; }
@keyframes blob-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, -30px, 0) scale(1.08); }
}

.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(0, 212, 255, .6);
}

/* ---------- 5. Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-primary);
  transition: transform .3s var(--ease), box-shadow .35s var(--ease), color .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:active { transform: scale(.97); }

.btn-primary {
  color: #fff;
  background:
    linear-gradient(135deg, #6C5CE7 0%, #00D4FF 100%) padding-box,
    var(--grad-conic) border-box;
  animation: spin-angle 4s linear infinite;
  box-shadow: 0 8px 30px -12px rgba(108, 92, 231, .8);
}
.btn-primary:hover {
  box-shadow:
    0 12px 40px -8px rgba(108, 92, 231, .75),
    0 0 50px -8px rgba(0, 212, 255, .55);
}

.btn-outline {
  background:
    linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
    conic-gradient(from var(--angle), rgba(108, 92, 231, .9), rgba(0, 212, 255, .9), rgba(255, 255, 255, .12), rgba(108, 92, 231, .9)) border-box;
  animation: spin-angle 5s linear infinite;
  animation-play-state: paused;
}
.btn-outline:hover {
  animation-play-state: running;
  box-shadow: 0 0 34px -8px rgba(0, 212, 255, .45);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-strong); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.btn-sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }

@keyframes spin-angle { to { --angle: 360deg; } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: #fff; border-color: rgba(0, 212, 255, .5); background: rgba(0, 212, 255, .08); }
.icon-btn:active { transform: scale(.92); }

/* ---------- 6. Glass & карточки с эффектами ---------- */
.glass {
  background: rgba(18, 20, 28, .62);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.fx-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  background: rgba(18, 20, 28, .68);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform .6s var(--ease), border-color .3s;
  transform-style: preserve-3d;
}
.fx-card.is-tilting { transition: transform .12s linear, border-color .3s; }
.fx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(440px circle at var(--mouse-x) var(--mouse-y), rgba(108, 92, 231, .17), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.fx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mouse-x) var(--mouse-y), rgba(0, 212, 255, .85), rgba(108, 92, 231, .55) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 3;
}
@media (hover: hover) and (pointer: fine) {
  .fx-card:hover::before, .fx-card:hover::after { opacity: 1; }
}

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), background-color .35s, border-color .35s, -webkit-backdrop-filter .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(10, 11, 16, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-header.is-hidden { transform: translateY(-100%); }
html.menu-open .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  user-select: none;
}
.logo-bracket { color: var(--text-muted-aa); font-weight: 600; }
.logo-caret {
  margin-left: 2px;
  color: var(--accent-secondary);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.main-nav { display: none; position: relative; }
.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: color .25s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text-primary); }
.nav-indicator {
  position: absolute;
  left: 0; bottom: 4px;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(0, 212, 255, .6);
  opacity: 0;
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
}
.main-nav.has-active .nav-indicator { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
}
.lang-switch button {
  min-width: 40px;
  min-height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted-aa);
  background: transparent;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang-switch button:hover { color: var(--text-primary); }
.lang-switch button.is-active { color: #fff; background: rgba(108, 92, 231, .35); }
.lang-switch--header { display: none; }

.burger {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform .4s var(--ease), opacity .25s, top .4s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .main-nav { display: block; }
  .burger { display: none; }
}
@media (min-width: 1280px) { .lang-switch--header { display: inline-flex; } }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) 24px max(28px, env(safe-area-inset-bottom));
  background: rgba(10, 11, 16, .86);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-links { list-style: none; margin: 0; padding: 0; }
.mobile-links li, .mobile-menu-foot {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i) * 55ms + 80ms);
}
.mobile-menu.is-open .mobile-links li,
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; }
.mobile-links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--border);
}
.mobile-links a:hover { color: var(--accent-secondary); }
.mobile-menu-foot { display: grid; gap: 16px; margin-top: 32px; }
.mobile-menu-foot .lang-switch { justify-self: start; }
.mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 36px) 0 104px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "text" "term" "actions";
  gap: 32px;
}
.hero-text { grid-area: text; min-width: 0; }
.hero-terminal { grid-area: term; min-width: 0; }
.hero-actions { grid-area: actions; min-width: 0; }

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
    grid-template-areas: "text term" "actions term";
    column-gap: 56px;
    row-gap: 36px;
    align-items: center;
  }
  .hero-text { align-self: end; }
  .hero-grid .hero-title { font-size: clamp(2.6rem, 4.4vw, 3.9rem); }
  .hero-actions { align-self: start; }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 160, .28);
  background: rgba(0, 229, 160, .07);
  color: #C2F7E5;
  font-family: var(--font-mono);
  font-size: .82rem;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 160, .6); }
  70% { box-shadow: 0 0 0 10px rgba(0, 229, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 160, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  /* «Автоматизирую» ≈ 10.4em в Unbounded: размер подобран так, чтобы слово помещалось в колонку от 320px */
  font-size: clamp(1.6rem, 8.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 22px 0 20px;
  overflow-wrap: break-word;
}
.hero-sub {
  margin: 0;
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
}
.hero-motto {
  margin: 18px 0 0;
  font-size: .85rem;
  color: var(--text-muted-aa);
  max-width: 38rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-buttons .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .hero-buttons .btn { flex: 0 0 auto; } }

.hero-stats {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  line-height: 1.2;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; margin-top: 4px; font-size: .8rem; line-height: 1.35; color: var(--text-secondary); }

/* Терминал */
.terminal {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(12, 14, 21, .84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(108, 92, 231, .08),
    0 0 90px -30px rgba(108, 92, 231, .55);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
@media (max-width: 1023px) { .terminal { transform: none; } }
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .025);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.t-dot--red { background: #FF5F57; }
.t-dot--yellow { background: #FEBC2E; }
.t-dot--green { background: #28C840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted-aa);
  padding-right: 52px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-body {
  padding: 18px 18px 22px;
  font-size: clamp(.74rem, .7rem + .22vw, .9rem);
  line-height: 1.9;
  min-height: calc(1.9em * 8 + 40px);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-secondary);
}
@media (min-width: 480px) { .terminal-body { min-height: calc(1.9em * 6 + 40px); } }
.t-line { display: block; }
.t-prompt { color: #A29BFE; }
.t-cmd { color: var(--accent-secondary); }
.t-ok { color: var(--accent-success); }
.t-warn { color: #FFC36B; }
.t-bar { color: var(--accent-success); letter-spacing: -.05em; }
.t-cursor {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: var(--accent-secondary);
  animation: blink 1s steps(1) infinite;
}

/* Индикатор скролла */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted-aa);
  transition: color .2s;
}
.scroll-indicator:hover { color: var(--text-primary); }
.mouse {
  width: 24px; height: 38px;
  border-radius: 14px;
  border: 1.5px solid currentColor;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.wheel {
  width: 3px; height: 7px;
  border-radius: 2px;
  background: var(--accent-secondary);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@media (min-width: 768px) and (min-height: 720px) { .scroll-indicator { display: flex; } }

/* ---------- 9. About ---------- */
.about-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }

.about-photo { position: relative; }
.photo-parallax { position: relative; max-width: 400px; margin-inline: auto; will-change: transform; }
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 2px;
  border-radius: 30px;
  background: var(--grad);
  box-shadow: 0 30px 90px -30px rgba(108, 92, 231, .7);
}
.photo-inner {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(108, 92, 231, .35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(0, 212, 255, .25), transparent 50%),
    var(--bg-secondary);
}
.photo-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 18vw, 10rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(108, 92, 231, .5));
}
.photo-code {
  position: absolute;
  left: 22px; top: 22px; right: 22px;
  margin: 0;
  font-size: .72rem;
  line-height: 1.7;
  color: rgba(155, 161, 181, .55);
  white-space: pre;
  overflow: hidden;
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(26, 29, 41, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: .78rem;
  white-space: nowrap;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8);
  animation: chip-float 6s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; color: #FFC36B; }
.float-chip--top { top: 12%; right: -8px; }
.float-chip--bottom { bottom: 10%; left: -8px; animation-delay: -3s; }
@media (min-width: 640px) {
  .float-chip--top { right: -28px; }
  .float-chip--bottom { left: -28px; }
}
@keyframes chip-float { 50% { transform: translateY(-10px); } }

.about-story { margin-top: 24px; display: grid; gap: 16px; color: var(--text-secondary); font-size: 1.04rem; }
.about-story p { margin: 0; }

.why-grid {
  list-style: none;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, .55);
  transition: border-color .3s, transform .4s var(--ease);
}
.why-item:hover { border-color: rgba(0, 212, 255, .3); transform: translateY(-4px); }
.why-icon {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-secondary);
  background: rgba(0, 212, 255, .08);
  border: 1px solid rgba(0, 212, 255, .2);
}
.why-icon svg { width: 22px; height: 22px; }
.why-item h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.why-item p { margin: 0; font-size: .9rem; color: var(--text-secondary); line-height: 1.55; }

/* Marquee */
.marquee {
  position: relative;
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 14px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, .65);
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tech-badge:hover { color: var(--text-primary); border-color: rgba(108, 92, 231, .5); }
.tech-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dot, var(--accent-secondary));
  box-shadow: 0 0 8px var(--dot, var(--accent-secondary));
}

/* ---------- 10. Табы ---------- */
.tabs-center { display: flex; justify-content: center; margin-bottom: clamp(28px, 4vw, 44px); }
.tabs {
  position: relative;
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, .75);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .3s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--text-primary); }
.tab.is-active { color: #fff; }
.tab-glider {
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 6px 24px -6px rgba(108, 92, 231, .7);
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease);
  pointer-events: none;
}

/* ---------- 11. Услуги ---------- */
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.service-card.is-popular { border-color: rgba(255, 107, 107, .3); }
.badge-popular {
  position: absolute;
  top: 20px; right: 20px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: #FF9A9A;
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .32);
  transform: translateZ(30px);
}
.service-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(108, 92, 231, .8);
  transform: translateZ(40px);
}
.service-icon svg { width: 24px; height: 24px; }
.service-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  transform: translateZ(20px);
}
.service-desc {
  margin: 0 0 18px;
  font-size: .93rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 2);
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.45; color: #D2D6E2; }
.check-list svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--accent-success); margin-top: 1px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.tag {
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .035);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-secondary);
}
.service-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.service-card .tags { margin-bottom: 20px; }
.price { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; }
.term { font-size: .8rem; color: var(--text-muted-aa); }
.btn-order { min-height: 44px; padding: .5rem 1.05rem; font-size: .88rem; }

.deal-banner {
  margin-top: 32px;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(0, 229, 160, .35);
  background: linear-gradient(120deg, rgba(0, 229, 160, .06), rgba(108, 92, 231, .06));
}
@media (min-width: 768px) { .deal-banner { grid-template-columns: auto 1fr auto; padding: 28px 32px; } }
.deal-emoji { font-size: 2.2rem; line-height: 1; }
.deal-banner h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.deal-banner p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

/* ---------- 12. Калькулятор ---------- */
.calc-panel { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }

.panel-title { margin: 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

.roi-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .roi-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; } }
.roi-controls, .roi-results { padding: clamp(22px, 3vw, 32px); }
.roi-controls { display: grid; gap: 28px; align-content: start; }

.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.range-head label { font-size: .95rem; color: var(--text-secondary); }
.range-out {
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.range-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted-aa); margin-top: -4px; }

input[type="range"] {
  --val: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]:focus-visible { outline-offset: 0; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #6C5CE7, #00D4FF) 0 0 / var(--val) 100% no-repeat,
    rgba(255, 255, 255, .09);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(108, 92, 231, .35), 0 4px 14px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease), box-shadow .2s;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(0, 212, 255, .25), 0 4px 14px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .09); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #6C5CE7, #00D4FF); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(108, 92, 231, .35), 0 4px 14px rgba(0, 0, 0, .5);
}

.rate-field > label { display: block; font-size: .95rem; color: var(--text-secondary); margin-bottom: 10px; }
.rate-input { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
.rate-input .field-input { padding-top: 0; padding-bottom: 0; font-family: var(--font-mono); font-size: 1.05rem; }

.donut-wrap { display: grid; gap: 22px; align-items: center; justify-items: center; }
@media (min-width: 640px) { .donut-wrap { grid-template-columns: auto 1fr; justify-items: start; } }
.donut-box { position: relative; width: 180px; height: 180px; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.donut circle { fill: none; stroke-width: 12; }
.donut-track { stroke: rgba(255, 255, 255, .06); }
.donut-seg { transition: stroke-dasharray .9s var(--ease), stroke-dashoffset .9s var(--ease); }
.donut-manual { stroke: #8577F0; }
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-center span { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.donut-center small { font-size: .72rem; color: var(--text-secondary); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--text-secondary); }
.donut-legend li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.donut-legend b { color: var(--text-primary); font-size: .8rem; font-weight: 600; }
.lg-dot { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.lg-dot--auto { background: linear-gradient(135deg, #00E5A0, #00D4FF); }
.lg-dot--manual { background: #8577F0; }
.lg-dot--free { background: rgba(255, 255, 255, .1); }

.results-grid {
  margin: 26px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.result {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .025);
  min-width: 0;
}
.result-value {
  display: block;
  font-size: clamp(1.05rem, .9rem + .8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.result-label { display: block; margin-top: 4px; font-size: .78rem; line-height: 1.4; color: var(--text-secondary); }
.result--win { border-color: rgba(0, 229, 160, .35); background: rgba(0, 229, 160, .07); }
.result--win .result-value { color: var(--accent-success); }

/* Конфигуратор */
.config-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .config-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; } }
.config-main { padding: clamp(20px, 3vw, 32px); min-width: 0; }

.steps {
  position: relative;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  justify-content: space-between;
}
.steps li:not(.steps-line) { position: relative; z-index: 1; }
.step-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 44px;
  background: none;
  color: var(--text-muted-aa);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .3s;
}
.step-num {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  font-family: var(--font-mono);
  font-weight: 700;
  transition: background .4s, border-color .4s, box-shadow .4s, color .4s;
}
.step-btn.is-active { color: var(--text-primary); }
.step-btn.is-active .step-num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px rgba(108, 92, 231, .16); }
.step-btn.is-done { color: var(--text-secondary); }
.step-btn.is-done .step-num { background: rgba(0, 229, 160, .12); border-color: rgba(0, 229, 160, .45); color: var(--accent-success); }
.steps-line {
  position: absolute;
  top: 21px; left: 22px; right: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .08);
  z-index: 0;
}
.steps-line-fill {
  display: block;
  height: 100%;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .6s var(--ease);
}

.steps-viewport { overflow: hidden; transition: height .5s var(--ease); }
.steps-track { display: flex; align-items: flex-start; transition: transform .6s var(--ease); }
.step-panel { flex: 0 0 100%; min-width: 0; margin: 0; padding: 4px; border: 0; }
.step-panel legend { padding: 0; margin-bottom: 18px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; }

.type-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 400px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.type-card, .urgency-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 16, .55);
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .3s var(--ease), box-shadow .3s;
}
.type-card:hover, .urgency-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.type-card.is-checked, .urgency-card.is-checked {
  border-color: rgba(108, 92, 231, .8);
  background: rgba(108, 92, 231, .13);
  box-shadow: inset 0 0 0 1px rgba(108, 92, 231, .5), 0 10px 30px -14px rgba(108, 92, 231, .8);
}
.type-card:focus-within, .urgency-card:focus-within, .chip:focus-within { outline: 2px solid var(--accent-secondary); outline-offset: 2px; }
.type-card:has(input:focus:not(:focus-visible)), .urgency-card:has(input:focus:not(:focus-visible)), .chip:has(input:focus:not(:focus-visible)) { outline: none; }
.type-icon { color: var(--accent-secondary); }
.type-icon svg { width: 24px; height: 24px; }
.type-name { font-weight: 600; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.type-price { font-size: .76rem; color: var(--text-muted-aa); }
.type-card.is-checked .type-price { color: var(--accent-secondary); }

.urgency-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .urgency-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.urgency-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.urgency-name { font-weight: 600; }
.urgency-badge { font-family: var(--font-mono); font-size: .75rem; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-secondary); }
.urgency-card[data-key="urgent"] .urgency-badge { background: rgba(255, 107, 107, .14); color: #FF9A9A; }
.urgency-card[data-key="fast"] .urgency-badge { background: rgba(0, 212, 255, .12); color: var(--accent-secondary); }
.urgency-desc { font-size: .82rem; color: var(--text-secondary); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 16, .55);
  font-size: .9rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: border-color .25s, background .25s, color .25s, transform .2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.chip:active { transform: scale(.97); }
.chip svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.chip.is-checked { border-color: rgba(0, 212, 255, .65); background: rgba(0, 212, 255, .1); color: #fff; }
.chip.is-checked svg { transform: rotate(45deg); color: var(--accent-secondary); }
.chip-price { font-family: var(--font-mono); font-size: .74rem; color: var(--text-muted-aa); }
.chip.is-checked .chip-price { color: var(--accent-secondary); }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.step-nav .btn { min-width: 0; flex: 0 1 auto; padding-inline: 1.1rem; }

.config-summary { padding: clamp(22px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 1024px) { .config-summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary-label { font-size: .8rem; color: var(--accent-secondary); }
.summary-type { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.summary-price-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; }
.summary-price-row small { display: block; font-size: .78rem; color: var(--text-muted-aa); }
.summary-price { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 700; line-height: 1.15; }
.summary-days { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); }
.summary-list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--text-secondary); }
.summary-list li span:last-child { font-family: var(--font-mono); color: var(--text-primary); white-space: nowrap; }
.summary-list .is-empty { color: var(--text-muted-aa); font-style: italic; }
.summary-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 229, 160, .35);
  background: rgba(0, 229, 160, .05);
  font-size: .85rem;
  color: var(--text-secondary);
}

/* ---------- 13. Портфолио ---------- */
.project-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; }
.project-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 18px 18px 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--pa) 55%, transparent), transparent 60%),
    radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--pb) 45%, transparent), transparent 55%),
    #0F1119;
}
.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 11, 16, .92) 0%, rgba(10, 11, 16, .2) 45%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.project-card:hover .project-preview::after, .project-card:focus-within .project-preview::after { opacity: 1; }
.project-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.project-card:hover .project-overlay, .project-card:focus-within .project-overlay { opacity: 1; transform: none; }
.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #0A0B10;
  font-weight: 600;
  font-size: .88rem;
}
.overlay-btn svg { width: 16px; height: 16px; }
.project-info { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.project-cat { font-size: .76rem; color: var(--accent-secondary); }
.project-title { margin: 6px 0 8px; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.project-desc { margin: 0; font-size: .92rem; color: var(--text-secondary); line-height: 1.55; }
.project-info .tags { margin-top: auto; padding-top: 16px; }
.project-open {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.project-open:focus-visible { outline-offset: -3px; }

/* Мок-окно браузера */
.mock {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
  background: #0E1018;
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .6);
}
.mock-bar {
  flex: 0 0 auto;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #161925;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mock-bar i:nth-child(1) { background: #FF5F57; }
.mock-bar i:nth-child(2) { background: #FEBC2E; }
.mock-bar i:nth-child(3) { background: #28C840; }
.mock-url { flex: 1; height: 10px; margin-left: 10px; max-width: 60%; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.mock-viewport { position: relative; flex: 1; overflow: hidden; }
.mock-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  transition: transform 3.5s cubic-bezier(.45, 0, .2, 1);
  will-change: transform;
}
.project-card:hover .mock-page, .project-card:focus-within .mock-page { transform: translateY(var(--scroll, -50%)); }

/* Живая миниатюра реального сайта */
.live-viewport { position: relative; flex: 1; overflow: hidden; background: #0E1018; }
.live-viewport iframe {
  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  pointer-events: none;
  transform-origin: 0 0;
  transform: scale(var(--live-s, .3));
}
.live-url {
  height: auto;
  padding: 1px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 12px;
  color: var(--text-muted-aa);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-hero.case-hero--live { height: auto; aspect-ratio: 16 / 9; }
.case-hero--live .mock { max-width: none; }

.mock.is-phone {
  width: 44%;
  max-width: 170px;
  margin-inline: auto;
  border-radius: 22px 22px 0 0;
  border: 4px solid #252839;
  border-bottom: 0;
}
.mock.is-phone .mock-bar { justify-content: center; background: #0E1018; border: 0; }
.mock.is-phone .mock-bar i { display: none; }
.mock.is-phone .mock-url { flex: 0 0 38%; margin: 0; height: 8px; background: #252839; }
.mock.is-phone .mock-page { padding: 8px; gap: 8px; }

.mk-nav { display: flex; align-items: center; gap: 8px; height: 10px; }
.mk-logo { width: 22px; height: 8px; border-radius: 3px; background: var(--pa); }
.mk-links { display: flex; gap: 5px; margin-left: auto; }
.mk-links span { width: 16px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.mk-btn { display: block; width: 30px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--pa), var(--pb)); }
.mk-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pa) 40%, transparent), color-mix(in srgb, var(--pb) 18%, transparent));
}
.mk-line { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.mk-line.lg { height: 9px; background: rgba(255, 255, 255, .6); }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; }
.w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.mk-text { display: flex; flex-direction: column; gap: 5px; padding: 4px 2px; }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk-card { position: relative; height: 42px; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.mk-card::before { content: ""; position: absolute; top: 7px; left: 7px; width: 10px; height: 10px; border-radius: 3px; background: var(--pb); opacity: .8; }
.mk-banner { height: 56px; border-radius: 8px; background: linear-gradient(120deg, var(--pa), var(--pb)); opacity: .85; }
.mk-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mk-product { display: flex; flex-direction: column; gap: 3px; height: 58px; padding: 4px; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.mk-product::before { content: ""; flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--pa) 30%, transparent); }
.mk-product span { height: 4px; width: 70%; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.mk-product span + span { width: 40%; background: var(--pb); }
.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.mk-stats span { height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .05); border-left: 2px solid var(--pa); }
.mk-chart { display: flex; align-items: flex-end; gap: 4px; height: 64px; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.mk-chart span { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(to top, var(--pa), var(--pb)); }
.mk-table { display: flex; flex-direction: column; gap: 4px; }
.mk-table span { height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .05); }
.mk-table span:nth-child(odd) { background: rgba(255, 255, 255, .08); }
.mk-chat { display: flex; flex-direction: column; gap: 6px; }
.mk-chat .b { display: block; height: 16px; border-radius: 8px; }
.mk-chat .in { align-self: flex-start; background: rgba(255, 255, 255, .09); }
.mk-chat .out { align-self: flex-end; background: linear-gradient(90deg, var(--pa), var(--pb)); opacity: .9; }
.mk-list { display: flex; flex-direction: column; gap: 5px; }
.mk-list span { display: block; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--pb); }
.mk-footer { height: 26px; border-radius: 6px; background: rgba(255, 255, 255, .04); }

/* ---------- 14. Модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .35s;
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -40px rgba(108, 92, 231, .6);
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.modal-dialog:focus { outline: none; }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-dialog { opacity: 1; transform: none; }
.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px -58px 0;
  z-index: 3;
  background: rgba(10, 11, 16, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.case-hero { aspect-ratio: auto; width: 100%; height: 240px; padding: 28px 28px 0; border-radius: 24px 24px 0 0; }
.case-hero .mock { max-width: 560px; margin-inline: auto; }
.case-hero .mock.is-phone { max-width: 180px; }
.case-body { padding: clamp(22px, 4vw, 36px); }
.case-title { margin: 6px 0 10px; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.case-lead { margin: 0; color: var(--text-secondary); }
.case-steps { margin-top: 26px; display: grid; gap: 14px; }
.case-step { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .025); }
.case-step-label { display: block; margin-bottom: 6px; font-size: .78rem; color: var(--accent-secondary); }
.case-step p { margin: 0; font-size: .95rem; color: #D2D6E2; }
.case-results { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.case-result { padding: 16px; border-radius: 16px; border: 1px solid rgba(0, 229, 160, .25); background: rgba(0, 229, 160, .05); }
.case-result span { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.case-result small { display: block; margin-top: 4px; font-size: .8rem; color: var(--text-secondary); }
.case-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 15. Таймлайн ---------- */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 64px;
  display: grid;
  gap: 24px;
  --p: 0;
}
.timeline-line {
  position: absolute;
  left: 21px; top: 22px; bottom: 22px;
  width: 2px;
  background: rgba(255, 255, 255, .08);
}
.timeline-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #6C5CE7, #00D4FF);
  transform-origin: 50% 0;
  transform: scaleY(var(--p));
  box-shadow: 0 0 14px rgba(0, 212, 255, .6);
}
.tl-step { position: relative; }
.tl-dot {
  position: absolute;
  left: -64px; top: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-muted-aa);
  z-index: 1;
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s;
}
.tl-dot svg { width: 20px; height: 20px; }
.tl-step.is-active .tl-dot {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(108, 92, 231, .15), 0 0 30px rgba(0, 212, 255, .45);
}
.tl-card {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(18, 20, 28, .6);
  transition: border-color .5s;
}
.tl-step.is-active .tl-card { border-color: rgba(108, 92, 231, .35); }
.tl-num { font-size: .78rem; color: var(--accent-secondary); }
.tl-card h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.tl-card p { margin: 0 0 12px; font-size: .9rem; color: var(--text-secondary); line-height: 1.55; }
.tl-time { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: .74rem; color: var(--accent-success); background: rgba(0, 229, 160, .08); }

@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; padding: 0; }
  .timeline-line { left: 10%; right: 10%; top: 21px; bottom: auto; width: auto; height: 2px; }
  .timeline-fill { background: linear-gradient(90deg, #6C5CE7, #00D4FF); transform-origin: 0 50%; transform: scaleX(var(--p)); }
  .tl-step { text-align: center; }
  .tl-dot { position: relative; left: auto; margin: 0 auto 22px; }
  .tl-card { height: calc(100% - 66px); }
}

/* ---------- 16. Отзывы ---------- */
.slider-arrows { display: flex; gap: 10px; }
.slider-viewport { overflow: hidden; touch-action: pan-y; cursor: grab; }
.slider-viewport.is-dragging { cursor: grabbing; }
.slider-track { display: flex; margin: 0 -10px; transition: transform .65s var(--ease); }
.slider-track.no-anim { transition: none; }
.slide { flex: 0 0 100%; min-width: 0; padding: 0 10px; user-select: none; }
@media (min-width: 1024px) { .slide { flex-basis: 50%; } }
.review { height: 100%; padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 18px; }
.review-top { display: flex; justify-content: space-between; align-items: center; }
.review-quote { width: 34px; height: 34px; color: var(--accent-primary); opacity: .8; }
.stars { display: flex; gap: 3px; color: #FFC36B; }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.review-text { margin: 0; font-size: 1.02rem; line-height: 1.7; color: #DADDE7; }
.review-author { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
}
.review-name { display: block; font-weight: 600; }
.review-role { display: block; font-size: .84rem; color: var(--text-secondary); }

.slider-dots { display: flex; justify-content: center; gap: 0; margin-top: 18px; }
.slider-dot { width: 44px; height: 44px; display: grid; place-items: center; background: none; cursor: pointer; }
.slider-dot span { display: block; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: width .4s var(--ease), background .3s; }
.slider-dot[aria-current="true"] span { width: 28px; background: var(--grad); }

/* ---------- 17. FAQ ---------- */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; } .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-cta { margin-top: 24px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  background: none;
  text-align: left;
  font-size: clamp(1rem, .95rem + .2vw, 1.1rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  cursor: pointer;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent-secondary); }
.faq-icon {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
}
.faq-icon svg { width: 18px; height: 18px; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--grad); border-color: transparent; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { margin: 0; padding: 0 56px 22px 0; color: var(--text-secondary); }

/* ---------- 18. Форма ---------- */
.contact-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; } }
.form-shell { padding: clamp(20px, 3.5vw, 36px); overflow: hidden; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: 1 / -1; } }

.field { position: relative; min-width: 0; }
.field-input {
  width: 100%;
  min-height: 58px;
  padding: 24px 16px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(10, 11, 16, .6);
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:hover { border-color: rgba(255, 255, 255, .24); }
.field-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 4px rgba(108, 92, 231, .22); background: rgba(10, 11, 16, .85); }
select.field-input {
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239BA1B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.field-input option { background: var(--bg-secondary); color: var(--text-primary); }
textarea.field-input { min-height: 150px; padding-top: 28px; resize: vertical; }
input[type="number"].field-input::-webkit-inner-spin-button { opacity: .4; }

.field label {
  position: absolute;
  left: 17px; top: 18px;
  font-size: 1rem;
  color: var(--text-muted-aa);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .22s var(--ease), color .22s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 34px);
}
.field-input:focus + label,
.field-input:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-10px) scale(.78); color: var(--text-secondary); }
.field-input:focus + label { color: #B3ABFF; }

.field-hint { display: block; margin-top: 6px; font-size: .78rem; color: var(--text-muted-aa); }
.field-error { display: none; margin-top: 6px; font-size: .8rem; color: #FF9A9A; }
.field.is-invalid .field-input, .field.is-invalid .field-input:focus { border-color: rgba(255, 107, 107, .75); box-shadow: 0 0 0 4px rgba(255, 107, 107, .14); }
.field.is-valid .field-input { border-color: rgba(0, 229, 160, .55); }
.field.is-invalid .field-error, .consent.is-invalid .field-error { display: block; }
.field.is-invalid .field-hint { display: none; }
.field.is-valid::after {
  content: "";
  position: absolute;
  right: 16px; top: 21px;
  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='%2300E5A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.field--textarea.is-valid::after, .field--select::after { display: none; }
.field-counter { position: absolute; right: 14px; top: 10px; font-size: .72rem; color: var(--text-muted-aa); pointer-events: none; }
.field-counter.is-near { color: #FFC36B; }
.field.is-flash .field-input { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); } 30% { box-shadow: 0 0 0 5px rgba(0, 212, 255, .35); border-color: var(--accent-secondary); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.budget { margin: 0; padding: 0; border: 0; min-width: 0; }
.budget legend { padding: 0; margin-bottom: 10px; font-size: .9rem; color: var(--text-secondary); }

.checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .9rem; color: var(--text-secondary); min-height: 44px; padding-top: 10px; }
.checkbox input {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 22px;
  width: 22px; height: 22px;
  margin: 0;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: rgba(10, 11, 16, .6);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.checkbox input::after {
  content: "";
  width: 12px; height: 12px;
  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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.checkbox input:checked { background: var(--grad); border-color: transparent; }
.checkbox input:checked::after { transform: scale(1); }
.consent.is-invalid .checkbox input { border-color: rgba(255, 107, 107, .8); }

.submit-btn .spinner {
  display: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.submit-btn.is-loading { pointer-events: none; }
.submit-btn.is-loading .spinner { display: block; }
.submit-btn.is-loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin: 0; text-align: center; font-size: .8rem; color: var(--text-muted-aa); }

.form-success { padding: 48px 12px; text-align: center; }
.form-success:focus { outline: none; }
.form-success h3 { margin: 22px 0 8px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.form-success p { margin: 0 0 26px; color: var(--text-secondary); font-size: 1.05rem; }
.success-check { width: 96px; height: 96px; display: block; margin: 0 auto; filter: drop-shadow(0 0 24px rgba(0, 229, 160, .45)); }
.success-check circle { fill: none; stroke: var(--accent-success); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; }
.success-check path { fill: none; stroke: var(--accent-success); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.form-success.is-shown .success-check circle { animation: draw .7s var(--ease) forwards; }
.form-success.is-shown .success-check path { animation: draw .45s .55s var(--ease) forwards; }
.form-success.is-shown h3, .form-success.is-shown p, .form-success.is-shown .btn { animation: panel-in .6s .4s var(--ease) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.confetti-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 150; pointer-events: none; }

/* Быстрые контакты */
.quick-contacts { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 18px 18px 20px; transition: transform .4s var(--ease), border-color .3s; }
.contact-card:hover { transform: translateY(-3px); border-color: rgba(0, 212, 255, .25); }
.contact-icon {
  flex: 0 0 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(108, 92, 231, .14);
  border: 1px solid rgba(108, 92, 231, .3);
  color: #B3ABFF;
  transition: transform .4s var(--ease), background .3s;
}
.contact-card:hover .contact-icon { transform: rotate(-8deg) scale(1.06); background: rgba(108, 92, 231, .25); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-body { flex: 1; min-width: 0; display: grid; }
.contact-label { font-size: .78rem; color: var(--text-muted-aa); }
.contact-value { font-weight: 600; overflow-wrap: anywhere; transition: color .2s; }
a.contact-value:hover { color: var(--accent-secondary); }
.contact-promo {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108, 92, 231, .2), rgba(0, 212, 255, .1));
  border: 1px solid rgba(108, 92, 231, .3);
  display: grid;
  gap: 16px;
}
.contact-promo p { margin: 0; color: var(--text-secondary); font-size: .95rem; }

/* ---------- 19. Footer ---------- */
.site-footer {
  position: relative;
  padding: 72px 0 28px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(108, 92, 231, .03), rgba(0, 212, 255, .02));
}
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; } }
.footer-brand p { margin: 14px 0 22px; max-width: 22rem; color: var(--text-secondary); font-size: .95rem; }
.footer-col h3 { margin: 0 0 16px; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted-aa); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-secondary); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-contacts li { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--text-secondary); font-size: .93rem; }
.footer-contacts svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--accent-secondary); }

.socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color .25s, border-color .25s, box-shadow .3s, transform .3s var(--ease);
}
.socials a:hover { color: var(--accent-secondary); border-color: rgba(0, 212, 255, .5); box-shadow: 0 0 24px -2px rgba(0, 212, 255, .5); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.geo-card { margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px solid var(--border); background: rgba(18, 20, 28, .6); }
.geo-svg { display: block; width: 100%; height: auto; max-height: 130px; }
.geo-card p { margin: 6px 0 0; font-size: .82rem; color: var(--text-secondary); text-align: center; }
.geo-routes { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.geo-pulse { transform-origin: 118px 46px; animation: geo-pulse 2s ease-out infinite; }
@keyframes geo-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-muted-aa);
}
.footer-hint { opacity: .7; }

/* Кнопка «Наверх» */
.to-top {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 20, 28, .85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.9);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s, box-shadow .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: 0 0 30px -4px rgba(0, 212, 255, .55); }
.to-top svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top > svg:last-child { width: 20px; height: 20px; position: relative; }
.to-top circle { fill: none; stroke-width: 2.5; }
.to-top-track { stroke: rgba(255, 255, 255, .1); }
.to-top-ring { stroke: var(--accent-secondary); stroke-linecap: round; }

/* Toast */
.toasts {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 160;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(26, 29, 41, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .8);
  font-size: .92rem;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast--success { border-color: rgba(0, 229, 160, .45); }
.toast--error { border-color: rgba(255, 107, 107, .55); }
.toast--matrix { border-color: #00FF41; color: #B6FFC9; box-shadow: 0 0 40px -6px rgba(0, 255, 65, .5); font-family: var(--font-mono); }

/* ---------- 20. Кастомный курсор ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent-secondary); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255, 255, 255, .45); }
html:not(.has-cursor) .cursor-dot, html:not(.has-cursor) .cursor-ring { display: none; }
html.has-cursor.cursor-visible .cursor-dot, html.has-cursor.cursor-visible .cursor-ring { opacity: 1; }
html.has-cursor .cursor-ring.is-hover { border-color: rgba(0, 212, 255, .8); background-color: rgba(0, 212, 255, .06); }
html.has-cursor body.site,
html.has-cursor a,
html.has-cursor button,
html.has-cursor label,
html.has-cursor select,
html.has-cursor input[type="range"],
html.has-cursor input[type="checkbox"] { cursor: none; }

/* ---------- 21. Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  filter: blur(8px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- 22. Matrix mode (пасхалка) ---------- */
html.matrix { --accent-secondary: #00FF41; }
html.matrix .grad-text, html.matrix .stat-num, html.matrix .range-out {
  background-image: linear-gradient(135deg, #00FF41 0%, #00D4FF 100%);
}
html.matrix .read-progress span { background: #00FF41; box-shadow: 0 0 12px #00FF41; }

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 10px; animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .tech-badge { margin-right: 0; }
  .terminal { transform: none; }
}
