/* ============================================================
   TEXKOM AUTO — Design Tokens v1.0 "СТЕНД"
   Dark "Night Stand" (default) / Light "Warm Paper"
   Loaded on public pages. Admin/client keep legacy style.css.
   ============================================================ */

:root {
  color-scheme: dark;

  /* --- Surfaces (dark) --- */
  --bg:            #0A0A0C;
  --bg-raised:     #111113;
  --surface:       #17171A;
  --surface-2:     #1F1F23;
  --glass:         rgba(255, 255, 255, 0.05);
  --glass-edge:    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.02));

  /* --- Lines --- */
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* --- Text --- */
  --text:          #FFFFFF;
  --text-muted:    #A1A1A6;
  --text-faint:    #6E6E73;

  /* --- Brand & status --- */
  --accent:        #D91616;
  --accent-bright: #FF1F14;
  --accent-deep:   #A80F0F;
  --accent-ink:    #FF6B63;
  --accent-glow:   rgba(217, 22, 22, 0.55);
  --chrome:        #D1D1D6;
  --chrome-bright: #FFFFFF;
  --chrome-dark:   #636366;
  --amber:         #FF453A;
  --success:       #3FC97E;
  --warning:       #FF453A;
  --error:         #FF6B5E;
  --on-accent:     #FFFFFF;

  /* --- Gradients --- */
  --grad-energy: linear-gradient(120deg, #D91616 0%, #FF1F14 55%, #FF2D2D 130%);
  --grad-hero:   radial-gradient(60% 50% at 50% 0%, rgba(217,22,22,0.20), transparent 70%);
  --grad-stand:  radial-gradient(50% 60% at 80% 20%, rgba(255,255,255,0.05), transparent 70%);
  --grad-fade-y: linear-gradient(180deg, transparent, var(--bg));

  /* --- Typography --- */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-text:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fs-hero:  clamp(36px, 5.5vw, 72px);
  --fs-h1:    clamp(32px, 4.5vw, 56px);
  --fs-h2:    clamp(26px, 3.4vw, 42px);
  --fs-h3:    clamp(22px, 2.6vw, 32px);
  --fs-lead:  clamp(18px, 2vw, 24px);
  --fs-body:  clamp(15px, 1.1vw, 17px);
  --fs-small: clamp(12px, 1vw, 14px);
  --fs-micro: clamp(10px, 0.9vw, 12px);
  --fs-data:  clamp(28px, 4vw, 56px);
  --fs-code:  13px;

  /* --- Radii --- */
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-full: 999px;

  /* --- Elevation --- */
  --shadow-card: 0 1px 0 rgba(255,255,255,0.06) inset,
                 0 24px 48px -24px rgba(0,0,0,0.6);
  --shadow-pop:  0 32px 80px -32px rgba(0,0,0,0.7);

  /* --- Motion --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 200ms;
  --dur-2: 300ms;
  --dur-3: 500ms;
  --dur-4: 800ms;

  /* --- Layout --- */
  --container: 1280px;
  --container-wide: 1440px;
  --gutter: clamp(24px, 4vw, 48px);
  --section-y: clamp(48px, 7vw, 100px);

  /* --- Z-scale --- */
  --z-header: 100;
  --z-cursor: 900;
  --z-modal: 800;
  --z-preloader: 1000;
}

[data-theme="light"] {
  color-scheme: light;

  --bg:            #F5F5F7;
  --bg-raised:     #FFFFFF;
  --surface:       #FFFFFF;
  --surface-2:     #E5E5EA;
  --glass:         rgba(255, 255, 255, 0.85);
  --glass-edge:    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.55));

  --border:        rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.18);

  --text:          #000000;
  --text-muted:    #636366;
  --text-faint:    #8E8E93;

  --accent:        #C41212;
  --accent-bright: #E80000;
  --accent-deep:   #9E0E0E;
  --accent-ink:    #C41212;
  --accent-glow:   rgba(196, 18, 18, 0.25);
  --chrome:        #636366;
  --chrome-bright: #000000;
  --chrome-dark:   #8E8E93;
  --amber:         #D70015;
  --success:       #1E8F56;
  --warning:       #D70015;
  --error:         #D42B21;

  --grad-hero:   radial-gradient(60% 50% at 50% 0%, rgba(196,18,18,0.12), transparent 70%);
  --grad-stand:  radial-gradient(50% 60% at 80% 20%, rgba(0,0,0,0.04), transparent 70%);

  --shadow-card: 0 1px 2px rgba(0,0,0,0.06),
                 0 16px 40px -24px rgba(0,0,0,0.18);
  --shadow-pop:  0 32px 80px -32px rgba(0,0,0,0.25);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}

/* Tabular figures for prices, counters, tables */
.tnum, .price, .counter, table {
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums;
}

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

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

/* Utility helpers */
.stand-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stand-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.stand-eylar {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.stand-eylar .accent-num { color: var(--accent); }

/* 9:16 portrait placeholders for team / history photos */
.image-placeholder.portrait-9-16 {
  aspect-ratio: 9 / 16;
  min-height: auto;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Generic "soon" badge for /tarify and freemium teasers */
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* Focus/hover utility for links */
.stand-link {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.stand-link:hover { border-bottom-color: var(--accent-ink); }

/* ============================================================
   /tarify page styles
   ============================================================ */

.tarify-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 32px;
  text-align: center;
  margin-bottom: 48px;
  box-shadow: var(--shadow-card);
}

.tarify-banner p {
  margin: 16px 0 0;
  color: var(--text-muted);
}

.tarify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.tarify-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.tarify-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.tarify-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-energy) border-box;
  position: relative;
}

.tarify-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  margin: 0;
}

.tarify-price {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--text);
}

.tarify-price span {
  font-size: 0.45em;
  color: var(--text-muted);
}

.tarify-price-alt {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin: 0;
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1 0 auto;
}

.simple-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.simple-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tarify-card .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.waitlist-section {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 32px;
  margin-top: 48px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.waitlist-form input {
  flex: 1 1 260px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-body);
}

.waitlist-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form input { width: 100%; }
}

/* ============================================================
   HOMEPAGE "СТЕНД" COMPONENTS
   New public homepage blocks. Loaded after home.css on home.html.
   Tokens from the :root block above are used throughout.
   ============================================================ */

/* ---------- Homepage base ---------- */
.stand-page {
  overflow-x: hidden;
}

.stand-page h1,
.stand-page h2,
.stand-page h3,
.stand-page h4 {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: -0.015em;
  margin: 0;
}

.stand-page p {
  margin: 0;
}

.stand-page img {
  max-width: 100%;
  height: auto;
}

.stand-section {
  position: relative;
}

.stand-section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.stand-section-title {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 16px;
}

.stand-section-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.stand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: var(--r-full);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 200ms var(--ease),
              border-color 200ms var(--ease),
              color 200ms var(--ease),
              box-shadow 200ms var(--ease),
              transform 150ms var(--ease);
  will-change: transform;
}

.stand-btn:active {
  transform: scale(0.97);
}

.stand-btn-primary {
  background: var(--accent-deep);
  color: var(--on-accent);
  border-color: var(--accent-deep);
  box-shadow: 0 8px 32px -8px var(--accent-glow);
}

.stand-btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 40px -10px var(--accent-glow);
}

.stand-btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.stand-btn-ghost:hover {
  background: var(--glass);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------- Hero ---------- */
.stand-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 96px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(232, 56, 42, 0.12), transparent 70%),
    radial-gradient(60% 50% at 80% 20%, rgba(240, 166, 60, 0.08), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.stand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 50% 30%, black, transparent);
  pointer-events: none;
  z-index: 1;
}

.stand-hero-car-bg {
  position: absolute;
  inset: 0;
  background-size: 72% auto;
  background-position: 112% 55%;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.72;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 10s ease-out;
  pointer-events: none;
}

.stand-hero-car-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, var(--bg) 0%, transparent 50%),
    linear-gradient(90deg, var(--bg) 0%, transparent 32%, transparent 68%, var(--bg) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(10,10,12,0.65) 35%, rgba(10,10,12,0.25) 65%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.stand-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  text-wrap: balance;
}

.stand-hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 32px rgba(217, 22, 22, 0.35));
  animation: heroLogoIn 1s var(--ease) both;
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 640px) {
  .stand-hero-logo {
    width: 88px;
    height: 88px;
  }
}

.stand-hero-eylar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.stand-hero-eylar::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.stand-hero-title {
  font-size: var(--fs-hero);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 24px;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stand-hero-title .accent-word {
  color: var(--accent);
}

.stand-hero-desc {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stand-hero-ratings {
  word-break: break-word;
  overflow-wrap: break-word;
}

.stand-hero-disclaimer {
  word-break: break-word;
  overflow-wrap: break-word;
}

.stand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.stand-hero-ratings {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stand-hero-ratings .star {
  color: var(--amber);
}

.stand-hero-disclaimer {
  font-size: var(--fs-small);
  color: var(--text-faint);
  max-width: 560px;
}

/* ---------- Demo ---------- */
.demo-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 200ms var(--ease),
              border-color 200ms var(--ease),
              color 200ms var(--ease);
}

.demo-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.demo-chip.is-active {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--on-accent);
}

.demo-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.demo-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.demo-stage-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.demo-progress {
  flex: 1;
  height: 4px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  overflow: hidden;
  max-width: 260px;
}

.demo-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--grad-energy);
  border-radius: var(--r-full);
}

.demo-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.demo-codes span {
  font-family: var(--font-mono);
  font-size: var(--fs-code);
  color: var(--accent-ink);
  background: rgba(232, 56, 42, 0.08);
  padding: 4px 8px;
  border-radius: var(--r-s);
}

.demo-scan-text {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-top: 16px;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.demo-stage.is-scanning .demo-scan-text {
  opacity: 1;
}

.demo-result {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition: margin-top 400ms var(--ease), max-height 400ms var(--ease), opacity 400ms var(--ease), transform 400ms var(--ease);
}

.demo-result.is-visible {
  margin-top: 28px;
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
}

.demo-estimate {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body);
}

.demo-estimate th,
.demo-estimate td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.demo-estimate th {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
}

.demo-estimate td:last-child,
.demo-estimate th:last-child,
.demo-estimate td:nth-child(2),
.demo-estimate th:nth-child(2) {
  text-align: right;
}

.demo-estimate-total {
  font-weight: 700;
}

.demo-estimate-total td {
  border-bottom: none;
  color: var(--text);
}

.demo-cta-wrap {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  position: relative;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.step-number {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.9;
}

.step-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

/* ---------- Tariffs ---------- */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tariff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.tariff-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.tariff-card.featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-energy) border-box;
  box-shadow: var(--shadow-card), 0 0 40px -12px rgba(232, 56, 42, 0.2);
}

.tariff-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(240, 166, 60, 0.12);
  color: var(--amber);
  border: 1px solid rgba(240, 166, 60, 0.25);
}

.tariff-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 8px;
  padding-right: 90px;
}

.tariff-desc {
  color: var(--text-muted);
  font-size: var(--fs-small);
  min-height: 44px;
  margin-bottom: 20px;
}

.tariff-price {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 600;
  margin-bottom: 20px;
}

.tariff-price span {
  font-size: 0.45em;
  color: var(--text-muted);
  font-weight: 500;
}

.tariff-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1 1 auto;
}

.tariff-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.45;
}

.tariff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233FC97E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.tariff-card .stand-btn {
  width: 100%;
}

/* ---------- Pulse ---------- */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pulse-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-card h3 {
  font-size: var(--fs-h3);
}

.pulse-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-lead);
  color: var(--text);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(63, 201, 126, 0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(63, 201, 126, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(63, 201, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 201, 126, 0); }
}

.pulse-counter {
  font-family: var(--font-mono);
  font-size: var(--fs-data);
  font-weight: 600;
  color: var(--text);
}

.pulse-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------- Services bento ---------- */
.services-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
  transform-style: preserve-3d;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, -9999px) var(--my, -9999px), rgba(232, 56, 42, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms var(--ease);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}

.bento-card:hover {
  border-color: var(--border-strong);
}

.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-12 { grid-column: span 12; }

.bento-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 18px;
}

.bento-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 8px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.5;
  flex: 1 1 auto;
}

.bento-link {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.bento-link::after {
  content: "→";
  transition: transform 200ms var(--ease);
}

.bento-card:hover .bento-link::after {
  transform: translateX(4px);
}

/* ---------- History mini timeline ---------- */
.history-timeline {
  position: relative;
  padding-left: 28px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg-raised);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.timeline-item.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 56, 42, 0.15);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent-ink);
  margin-bottom: 4px;
}

.timeline-text {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.5;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
  display: grid;
  grid-template-areas:
    "photo"
    "title"
    "text";
  grid-template-columns: 1fr;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.team-card > h3 {
  grid-area: title;
  font-size: clamp(15px, 1.2vw, 18px);
  padding: 16px 16px 6px;
  line-height: 1.2;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.team-photo {
  grid-area: photo;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-fade-y);
}

.team-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-info {
  grid-area: text;
  padding: 0 16px 16px;
}

.team-info p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}

.team-card.featured {
  border-color: var(--accent);
}

.team-card.featured > h3 {
  color: var(--accent-ink);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.review-quote {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  flex: 1 1 auto;
}

.review-quote::before {
  content: "«";
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.4em;
  margin-right: 2px;
}

.review-source {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

/* ---------- Articles ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.article-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  position: relative;
}

.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-fade-y);
}

.article-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-info {
  padding: 22px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.article-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-bottom: 10px;
}

.article-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 10px;
  line-height: 1.2;
}

.article-card p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.5;
  flex: 1 1 auto;
}

/* ---------- Cats & Telegram ---------- */
.cats-section {
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(232, 56, 42, 0.08), transparent 60%),
    radial-gradient(50% 50% at 80% 70%, rgba(240, 166, 60, 0.08), transparent 60%),
    var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cats-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.cats-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  flex-shrink: 0;
}

.cats-content {
  flex: 1 1 300px;
}

.cats-content h2 {
  font-size: var(--fs-h2);
  margin-bottom: 12px;
}

.cats-content p {
  color: var(--text-muted);
  font-size: var(--fs-lead);
  line-height: 1.5;
  margin-bottom: 20px;
}

.cats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Freemium teaser ---------- */
.freemium-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.freemium-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.freemium-text {
  flex: 1 1 360px;
  min-width: min(100%, 320px);
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.freemium-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: stretch;
}

.contacts-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts-info h2 {
  font-size: var(--fs-h2);
  margin-bottom: 4px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.contact-value {
  font-size: var(--fs-body);
  color: var(--text);
  line-height: 1.5;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
}

.contact-value a:hover {
  color: var(--accent-ink);
}

.contacts-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
}

.contacts-map #yandex-map,
.contacts-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--r-l);
}

.contacts-map iframe {
  filter: grayscale(20%) contrast(105%);
  transition: filter 0.3s ease;
}

[data-theme="light"] .contacts-map iframe {
  filter: grayscale(0%) contrast(100%);
}

.contacts-map-link {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contacts-map-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateX(-50%) translateY(-2px);
}

.contacts-map-link svg {
  flex-shrink: 0;
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

[data-theme="light"] .marquee-item {
  -webkit-text-stroke: 1px var(--border-strong);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ---------- Confetti particles ---------- */
.confetti-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-fly 850ms var(--ease) forwards;
}

@keyframes confetti-fly {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(var(--vx), calc(var(--vy) + 140px)) rotate(var(--rot));
    opacity: 0;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  .pulse-dot {
    animation: none;
  }
  .bento-card,
  .tariff-card,
  .step-card,
  .review-card,
  .article-card,
  .team-card {
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .tariffs-grid { grid-template-columns: 1fr; }
  .tariff-card.featured { order: -1; }
  .services-bento { grid-template-columns: repeat(6, 1fr); }
  .bento-card.col-4,
  .bento-card.col-6,
  .bento-card.col-8 { grid-column: span 3; }
  .bento-card.col-12 { grid-column: span 6; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid,
  .articles-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .pulse-grid { grid-template-columns: 1fr; }
  .step-card,
  .tariff-card,
  .review-card,
  .bento-card,
  .article-info,
  .demo-stage,
  .contacts-info {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .stand-hero {
    min-height: auto;
    padding: 110px 0 56px;
  }
  .stand-hero .stand-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .stand-hero-content {
    max-width: 100%;
  }
  .stand-hero-title {
    font-size: clamp(30px, 8vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.01em;
  }
  .stand-hero-desc {
    font-size: clamp(15px, 4.2vw, 19px);
  }
  .stand-hero-car-bg {
    background-size: 150% auto;
    background-position: center 65%;
    opacity: 0.5;
  }
  .stand-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .stand-btn {
    width: 100%;
  }
  .steps-grid,
  .services-bento,
  .team-grid,
  .reviews-grid,
  .articles-grid,
  .pulse-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-4,
  .bento-card.col-6,
  .bento-card.col-8,
  .bento-card.col-12 { grid-column: span 1; }
  .demo-stage-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .demo-progress {
    max-width: 100%;
    width: 100%;
  }
  .demo-estimate th,
  .demo-estimate td {
    font-size: var(--fs-small);
    padding: 10px 6px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card {
    grid-template-areas:
      "title title"
      "photo text";
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 110px;
  }
  .team-card > h3 {
    padding: 12px 14px 6px;
    font-size: 15px;
    margin: 0;
  }
  .team-photo {
    aspect-ratio: auto;
    height: 110px;
    min-height: 110px;
  }
  .team-info {
    padding: 6px 14px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .team-info p {
    font-size: 12px;
    line-height: 1.35;
  }
  .step-card,
  .tariff-card,
  .review-card,
  .bento-card,
  .article-info,
  .cats-card,
  .freemium-card,
  .contacts-info {
    padding: 20px;
  }
  .demo-stage {
    padding: 20px;
  }
  .cats-card {
    flex-direction: column;
    text-align: center;
  }
  .cats-actions {
    justify-content: center;
  }
  .freemium-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   MEGA MENU — GTA5-style carousel
   ============================================================ */

.mega-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(217, 22, 22, 0.18), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(0, 0, 0, 0.8), transparent 60%),
    rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 350ms var(--ease), visibility 350ms var(--ease);
}

[data-theme="light"] .mega-menu {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(196, 18, 18, 0.12), transparent 60%),
    radial-gradient(60% 50% at 50% 100%, rgba(0, 0, 0, 0.15), transparent 60%),
    rgba(245, 245, 247, 0.96);
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease), border-color 200ms var(--ease);
  z-index: 10;
}

.mega-menu-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(90deg);
}

.mega-menu-hud {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 10;
}

.mega-menu-hud-label {
  color: var(--accent-ink);
  font-weight: 700;
}

.mega-menu-hud-index {
  color: var(--text-muted);
}

.mega-menu-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
  z-index: 10;
}

.mega-menu-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: translateY(-50%) scale(1.08);
}

.mega-menu-arrow-prev { left: 24px; }
.mega-menu-arrow-next { right: 24px; }

.mega-menu-stage {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  perspective: 1200px;
  padding: 40px 0;
}

.mega-menu-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  transition: transform 450ms var(--ease);
  will-change: transform;
}

.mega-card {
  flex: 0 0 280px;
  height: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 450ms var(--ease), opacity 350ms var(--ease), border-color 350ms var(--ease), box-shadow 350ms var(--ease);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.mega-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px circle at 50% 0%, rgba(217, 22, 22, 0.12), transparent 60%);
  pointer-events: none;
}

.mega-card.is-prev,
.mega-card.is-next {
  opacity: 0.45;
  transform: scale(0.82) translateZ(-80px);
  filter: grayscale(0.4);
}

.mega-card.is-active {
  opacity: 1;
  transform: scale(1.08) translateZ(40px);
  border-color: var(--accent);
  box-shadow: 0 32px 80px -24px rgba(217, 22, 22, 0.25);
}

.mega-card:hover.is-active {
  border-color: var(--accent-bright);
  box-shadow: 0 40px 100px -24px rgba(217, 22, 22, 0.35);
}

.mega-card-num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--accent-ink);
  letter-spacing: 0.1em;
}

.mega-card-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: auto;
  margin-bottom: 12px;
}

.mega-card-desc {
  font-size: var(--fs-body);
  color: var(--text-muted);
  line-height: 1.5;
}

.mega-menu-footer {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-faint);
  z-index: 10;
}

.mega-menu-phone {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.mega-menu-phone:hover {
  color: var(--accent-ink);
}

.mega-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 300ms var(--ease);
}

.mega-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .mega-card {
    flex: 0 0 220px;
    height: 320px;
    padding: 22px;
  }
  .mega-card-title {
    font-size: 22px;
  }
  .mega-menu-arrow {
    width: 52px;
    height: 52px;
  }
  .mega-menu-arrow-prev { left: 12px; }
  .mega-menu-arrow-next { right: 12px; }
}

@media (max-width: 640px) {
  .mega-menu-stage {
    padding: 20px 0;
  }
  .mega-menu-track {
    gap: 16px;
  }
  .mega-card {
    flex: 0 0 72vw;
    height: 62vh;
    max-height: 460px;
    padding: 24px;
  }
  .mega-card-title {
    font-size: 26px;
  }
  .mega-menu-arrow {
    display: none;
  }
  .mega-menu-hud {
    top: 20px;
  }
  .mega-menu-footer {
    bottom: 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
