/* ==============================
   DESIGN TOKENS
   ============================== */
:root {
  --surface-0: #0A0C0E;
  --surface-1: #0D0F11;
  --surface-2: #13161A;
  --surface-3: #1A1D22;
  --surface-4: #22262C;

  --text-primary: #F0F0F0;
  --text-secondary: #868C96;
  --text-muted: #4E545E;
  --text-inverse: #0D0F11;

  --accent: #DC3B2F;
  --accent-hover: #E8504A;
  --accent-active: #C43028;
  --accent-subtle: rgba(220,59,47,0.10);
  --accent-subtle-hover: rgba(220,59,47,0.18);
  --accent-border: rgba(220,59,47,0.25);

  --success: #34C759;
  --success-subtle: rgba(52,199,89,0.10);
  --info: #3B82F6;
  --info-subtle: rgba(59,130,246,0.10);
  --warning: #F59E0B;
  --error: #EF4444;
  --error-subtle: rgba(239,68,68,0.10);

  --border-subtle: rgba(255,255,255,0.05);
  --border-default: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);

  --glow-accent: 0 0 0 3px rgba(220,59,47,0.15);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-elevated: 0 8px 32px rgba(0,0,0,0.3);
  --overlay: rgba(0,0,0,0.65);

  --font-display: 'Outfit', 'Segoe UI', -apple-system, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: clamp(1.25rem, 1.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 2vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 4.5vw, 3.5rem);
  --text-display: clamp(3rem, 6vw, 5rem);

  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-7: 32px; --space-8: 40px; --space-9: 48px;
  --space-10: 56px;--space-11: 64px;--space-12: 80px;
  --space-13: 96px;--space-14: 120px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--surface-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input { font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ==============================
   SKIP LINK
   ============================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 10000;
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  color: white;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-4); }

/* ==============================
   GRAIN OVERLAY
   ============================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ==============================
   CONTAINER & SECTION
   ============================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px)  { .container { padding: 0 var(--space-7); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-9); } }

.section { padding: var(--space-9) 0; }
@media (min-width: 768px)  { .section { padding: var(--space-11) 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-13) 0; } }

.section--alt { background: var(--surface-2); }

.section__header { margin-bottom: var(--space-8); text-align: center; }

.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-3);
  display: block;
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
}
.section__subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-top: var(--space-3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  transition: all 0.15s ease-out;
  min-height: 44px;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--primary:focus-visible { box-shadow: var(--glow-accent), 0 0 0 2px white; outline: none; }
.btn--primary:active { background: var(--accent-active); transform: translateY(0) scale(0.98); }
.btn--primary:disabled { background: var(--surface-3); color: var(--text-muted); cursor: not-allowed; opacity: 0.6; transform: none; }
.btn--primary.btn--loading { pointer-events: none; position: relative; color: transparent; }
.btn--primary.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn--secondary {
  background: var(--surface-3);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn--secondary:hover { background: var(--surface-4); border-color: var(--border-hover); transform: translateY(-1px); }
.btn--secondary:focus-visible { border-color: var(--accent); box-shadow: var(--glow-accent); outline: none; }
.btn--secondary:active { transform: scale(0.98); }
.btn--full { width: 100%; }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); min-height: 36px; }
.btn--ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-default); }
.btn--ghost:hover { color: var(--text-primary); border-color: var(--border-hover); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==============================
   FORM ELEMENTS
   ============================== */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); }
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  min-height: 44px;
  transition: all 0.15s ease-out;
  outline: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:hover:not(:focus) { border-color: var(--border-hover); }
.form-input:focus { border-color: var(--accent); box-shadow: var(--glow-accent); }
.form-input.is-error { border-color: var(--error); box-shadow: 0 0 0 3px var(--error-subtle); }
.form-error {
  font-size: var(--text-sm);
  color: var(--error);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s, max-height 0.2s;
}
.form-error.is-visible { opacity: 1; max-height: 40px; }

/* Consent checkbox */
.form-consent { margin-top: var(--space-3); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}
.consent__input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.consent__box {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease-out;
  margin-top: 2px;
}
.consent__box svg {
  width: 12px; height: 12px;
  stroke: white;
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s ease-out;
}
.consent__input:checked + .consent__box {
  background: var(--accent);
  border-color: var(--accent);
}
.consent__input:checked + .consent__box svg {
  opacity: 1;
  transform: scale(1);
}
.consent__input:focus-visible + .consent__box {
  box-shadow: var(--glow-accent);
}
.consent__input.is-error + .consent__box {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-subtle);
}
.consent__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
}
.consent__link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.consent__link:hover { color: var(--accent-hover); }

/* ==============================
   CARDS
   ============================== */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.2s ease-out;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--accent-border); transform: translateY(-4px); background: var(--surface-3); }
@media (min-width: 1024px) { .card { padding: var(--space-7); } }

.card--accent-line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}
.card--accent-line:hover::after { transform: scaleX(1); }

/* ==============================
   REVEAL ANIMATIONS
   ============================== */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-enabled .reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-enabled .reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* ==============================
   REDUCED MOTION
   ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js-enabled .reveal,
  .js-enabled .reveal-right { opacity: 1; transform: none; }
}

/* ==============================
   HEADER
   ============================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.header.is-scrolled {
  background: rgba(13,15,17,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.header__logo {
  font-family: var(--font-display);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.header__logo span { color: var(--accent); }
.header__logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.header__nav { display: none; gap: var(--space-7); align-items: center; }
.header__nav a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: color 0.15s;
  position: relative;
  padding-bottom: 2px;
}
.header__nav a:hover { color: var(--text-primary); }
.header__nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.header__nav a.is-active { color: var(--text-primary); }
.header__nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.header__phone-link {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.header__phone-link:hover { color: var(--text-primary); }
.header__phone-text { display: none; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-secondary); }
.header__cta { display: none; }

/* Burger */
.burger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 10px;
  position: relative; z-index: 1010;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1005;
  background: rgba(13,15,17,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-8);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.mobile-menu__links a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  transition: color 0.15s;
}
.mobile-menu__links a:hover { color: var(--text-primary); }
.mobile-menu__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.mobile-menu__bottom { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.mobile-menu__phone { font-family: var(--font-mono); font-size: var(--text-lg); }

@media (min-width: 1024px) {
  .header__nav { display: flex; }
  .burger { display: none; }
  .header__phone-link { display: none; }
  .header__phone-text { display: block; }
  .header__cta { display: inline-flex; }
}

/* ==============================
   HERO
   ============================== */
.hero {
  padding-top: calc(80px + var(--space-9));
  padding-bottom: var(--space-9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.018) 59px, rgba(255,255,255,0.018) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.018) 59px, rgba(255,255,255,0.018) 60px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220,59,47,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__ring {
  position: absolute;
  top: 50%; right: -180px;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.hero__ring::before {
  content: '';
  position: absolute; inset: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.025);
}
.hero__ring::after {
  content: '';
  position: absolute; inset: 100px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.015);
}

.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: var(--space-8);
}
.hero__content { max-width: 600px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--accent-hover);
  margin-bottom: var(--space-6);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
}
.hero__title-accent {
  position: relative;
  display: inline;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}
.hero__subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-7);
  max-width: 480px;
}
.hero__buttons {
  display: flex; flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.hero__trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.hero__trust-item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--text-secondary);
}
.hero__trust-check { color: var(--accent); font-weight: var(--weight-bold); flex-shrink: 0; }

/* Hero form wrapper */
.hero-form {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
}
.hero-form::before {
  content: '';
  position: absolute; top: 0;
  left: var(--space-6); right: var(--space-6);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), transparent);
  border-radius: 2px 2px 0 0;
}
.hero-form__footer { font-size: var(--text-xs); color: var(--text-muted); text-align: center; margin-top: var(--space-3); }

@media (min-width: 640px) { .hero__buttons { flex-direction: row; } }
@media (min-width: 1024px) {
  .hero { padding-top: calc(80px + var(--space-13)); padding-bottom: var(--space-13); }
  .hero__inner { flex-direction: row; align-items: flex-start; gap: var(--space-11); }
  .hero__content { flex: 1 1 55%; }
  .hero-form { flex: 0 0 420px; }
}

/* ==============================
   MANAGER STATUS INDICATOR
   ============================== */
.manager-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-3);
  border-radius: var(--radius-full);
  width: fit-content;
}
.manager-status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.manager-status--online .manager-status__dot {
  background: var(--success);
  box-shadow: 0 0 6px rgba(52,199,89,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
.manager-status__text {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.manager-status--online .manager-status__text { color: var(--success); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==============================
   QUIZ (multi-step hero form)
   ============================== */
.quiz { overflow: hidden; }
.quiz__progress {
  height: 3px;
  background: var(--surface-4);
  border-radius: 3px;
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.quiz__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.quiz__steps {
  position: relative;
}
.quiz__step {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  animation: quizFadeIn 0.35s ease-out;
}
.quiz__step.is-active {
  display: flex;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz__step-header { margin-bottom: var(--space-1); }
.quiz__step-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
  display: block;
}
.quiz__step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}
.quiz__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.quiz__chip {
  padding: var(--space-2) var(--space-3);
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  transition: all 0.15s ease-out;
  cursor: pointer;
}
.quiz__chip:hover { border-color: var(--accent-border); color: var(--text-primary); background: var(--surface-4); }
.quiz__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz__nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.quiz__back {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color 0.15s;
  flex-shrink: 0;
  cursor: pointer;
}
.quiz__back:hover { color: var(--text-primary); }
.quiz__back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz__nav .btn { flex: 1; }

/* ==============================
   STATS BAR
   ============================== */
.stats {
  background: var(--surface-2);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-8) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--accent); }
.stat__label { font-size: var(--text-sm); color: var(--text-secondary); }

@media (min-width: 768px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .stat { position: relative; }
  .stat:not(:last-child)::after {
    content: '';
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 40px;
    background: var(--border-subtle);
  }
}

/* ==============================
   CATEGORIES
   ============================== */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 768px) { .categories__grid { grid-template-columns: repeat(3, 1fr); } }

.category-card {
  cursor: pointer;
  text-align: left;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.category-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-lg);
}
.category-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  color: var(--accent);
  margin-bottom: var(--space-4);
  transition: background 0.2s;
}
.category-card:hover .category-card__icon { background: var(--accent-subtle-hover); }
.category-card__title { font-family: var(--font-display); font-size: var(--text-base); font-weight: var(--weight-bold); margin-bottom: var(--space-1); }
.category-card__desc { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-3); line-height: var(--leading-snug); }
.category-card__link {
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
  color: var(--accent);
  display: inline-flex; align-items: center; gap: var(--space-1);
  transition: gap 0.2s;
}
.category-card:hover .category-card__link { gap: var(--space-2); }

/* ==============================
   BENEFITS
   ============================== */
.benefits__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 640px)  { .benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits__grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  display: flex; gap: var(--space-4);
  align-items: flex-start;
  position: relative;
  padding-left: calc(var(--space-6) + 4px);
}
.benefit-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
}
.benefit-card__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
  color: var(--accent);
  transition: background 0.2s;
}
.benefit-card:hover .benefit-card__icon { background: var(--accent-subtle-hover); }
.benefit-card__text { flex: 1; }
.benefit-card__title { font-family: var(--font-display); font-size: var(--text-base); font-weight: var(--weight-bold); margin-bottom: var(--space-1); }
.benefit-card__desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); }

/* ==============================
   HOW IT WORKS (STEPS)
   ============================== */
.steps__list {
  display: flex; flex-direction: column;
  gap: var(--space-8);
  position: relative;
  padding-left: var(--space-9);
}
.steps__list::before {
  content: '';
  position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border-subtle));
}
.step { position: relative; }
.step__number {
  position: absolute;
  left: calc(-1 * var(--space-9)); top: -8px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-1);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: var(--weight-bold);
  color: var(--accent);
  z-index: 1;
}
.step__bg-number {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: var(--weight-extrabold);
  color: var(--accent);
  opacity: 0.07;
  line-height: 1;
  position: absolute;
  right: 0; top: -20px;
  pointer-events: none;
  z-index: 0;
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg); font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
  position: relative; z-index: 1;
}
.step__desc {
  font-size: var(--text-sm); color: var(--text-secondary);
  line-height: var(--leading-normal); max-width: 280px;
  position: relative; z-index: 1;
}

@media (min-width: 768px) {
  .steps__list {
    flex-direction: row; padding-left: 0; gap: 0;
    justify-content: space-between;
    align-items: flex-start;
  }
  .steps__list::before {
    left: 20px; right: 20px;
    top: 20px; bottom: auto;
    width: auto; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--border-subtle));
  }
  .step {
    flex: 1; text-align: center;
    padding-top: var(--space-11);
    min-height: 200px;
  }
  .step__number { left: 50%; top: 0; transform: translateX(-50%); }
  .step__bg-number {
    position: absolute;
    left: 50%; right: auto; top: 52px;
    transform: translateX(-50%);
    z-index: 0;
  }
  .step__desc { max-width: 200px; margin: 0 auto; }
}

/* ==============================
   RECENT PICKS
   ============================== */
.picks__scroll {
  display: flex; gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}
.picks__scroll::-webkit-scrollbar { height: 4px; }
.picks__scroll::-webkit-scrollbar-track { background: transparent; }
.picks__scroll::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 4px; }

.pick-card {
  min-width: 280px; max-width: 320px;
  flex-shrink: 0; scroll-snap-align: start;
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.2s ease-out;
}
.pick-card:hover { border-color: var(--accent-border); transform: translateY(-2px); background: var(--surface-3); }
.pick-card__car { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: var(--space-2); }
.pick-card__title { font-family: var(--font-display); font-size: var(--text-base); font-weight: var(--weight-bold); margin-bottom: var(--space-3); }
.pick-card__price {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.pick-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.pick-card__badge {
  display: inline-flex; align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
}
.pick-card__badge--original { background: var(--success-subtle); color: var(--success); }
.pick-card__badge--analog { background: var(--info-subtle); color: var(--info); }
.pick-card__time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); display: flex; align-items: center; gap: var(--space-1); }
.pick-card__delivery {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

@keyframes scroll-hint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(14px); }
}
.picks__scroll.scroll-hint-active { animation: scroll-hint 1.2s ease-in-out 1; }

/* ==============================
   BRANDS
   ============================== */
.brands__list { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.brand-tag {
  display: inline-flex; align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold); font-size: var(--text-sm);
  color: var(--text-muted);
  transition: all 0.15s ease-out;
}
.brand-tag:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--surface-4); }

/* ==============================
   REVIEWS
   ============================== */
.reviews__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
@media (min-width: 768px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all 0.2s ease-out;
}
.review-card:hover { border-color: var(--accent-border); transform: translateY(-4px); background: var(--surface-3); }
.review-card__stars { color: var(--warning); font-size: var(--text-md); margin-bottom: var(--space-4); letter-spacing: 2px; }
.review-card__text { font-style: italic; color: var(--text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-6); }
.review-card__author { display: flex; align-items: center; gap: var(--space-3); }
.review-card__avatar {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); border-radius: 50%;
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-sm);
  color: white;
}
.review-card__name { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.review-card__car { font-size: var(--text-xs); color: var(--text-muted); }

/* ==============================
   FAQ
   ============================== */
.faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  border-width: 1px 1px 1px 2px;
  border-style: solid;
  border-color: var(--border-default) var(--border-default) var(--border-default) transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.faq-item[open]:not(.is-closing) {
  border-left-color: var(--accent);
}

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display); font-size: var(--text-base); font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background 0.15s;
  list-style: none;
  user-select: none;
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item summary:hover { background: var(--surface-3); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }

.faq-item__chevron {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item[open]:not(.is-closing) .faq-item__chevron {
  transform: rotate(90deg);
  color: var(--accent);
}
.faq-item.is-closing .faq-item__chevron {
  transform: rotate(0deg);
  color: var(--text-muted);
}

.faq-item__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item[open] .faq-item__content { grid-template-rows: 1fr; }
.faq-item__inner { overflow: hidden; }
.faq-item__answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* ==============================
   CONTACT FORM
   ============================== */
.contact__inner { display: flex; flex-direction: column; gap: var(--space-8); }

.contact-form-wrap {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
}
.contact-form-wrap::before {
  content: '';
  position: absolute; top: 0;
  left: var(--space-6); right: var(--space-6);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), transparent);
  border-radius: 2px 2px 0 0;
}
.contact-form__fields { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }

@media (min-width: 640px) {
  .contact-form__fields { display: grid; grid-template-columns: repeat(2, 1fr); }
  .contact-form__fields .form-group--full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact__inner { flex-direction: row; align-items: flex-start; }
  .contact-form-wrap { flex: 1 1 60%; }
  .contact-alts { flex: 0 0 35%; }
}

.contact-alts { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-alts__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.contact-alts__sub { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-4); }

.alt-card {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all 0.15s ease-out;
  text-decoration: none;
}
.alt-card:hover { border-color: var(--border-hover); background: var(--surface-3); transform: translateY(-2px); }
.alt-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-lg); }
.alt-card__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle); border-radius: var(--radius-md);
  color: var(--accent);
  transition: background 0.2s;
}
.alt-card:hover .alt-card__icon { background: var(--accent-subtle-hover); }
.alt-card__name { font-weight: var(--weight-semibold); margin-bottom: 2px; }
.alt-card__desc { font-size: var(--text-sm); color: var(--text-secondary); }

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-11) 0 var(--space-7);
}
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); margin-bottom: var(--space-8); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer__brand-name { font-family: var(--font-display); font-weight: var(--weight-extrabold); font-size: var(--text-lg); margin-bottom: var(--space-3); }
.footer__brand-name span { color: var(--accent); }
.footer__brand-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); max-width: 300px; }
.footer__heading { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-base); margin-bottom: var(--space-4); }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { font-size: var(--text-sm); color: var(--text-secondary); transition: color 0.15s; }
.footer__links a:hover { color: var(--text-primary); }
.footer__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.footer__contact-item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--space-3); }
.footer__contact-item i { color: var(--accent); }
.footer__bottom {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs); color: var(--text-muted);
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }
.footer__bottom a { color: var(--text-secondary); transition: color 0.15s; }
.footer__bottom a:hover { color: var(--text-primary); }

/* ==============================
   STICKY CTA (mobile)
   ============================== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 900;
  padding: var(--space-3) var(--space-4);
  background: rgba(13,15,17,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ==============================
   SUCCESS MODAL
   ============================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--overlay);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-9) var(--space-7);
  max-width: 420px; width: 100%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-open .modal { transform: scale(1); }
.modal__icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--success-subtle);
  border-radius: 50%;
  margin: 0 auto var(--space-6);
  color: var(--success);
}
.modal__title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-bold); margin-bottom: var(--space-3); }
.modal__text { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-normal); margin-bottom: var(--space-6); }

/* ==============================
   PRIVACY POLICY MODAL
   ============================== */
.privacy-overlay {
  position: fixed; inset: 0; z-index: 2100;
  background: var(--overlay);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.privacy-overlay.is-open { opacity: 1; visibility: visible; }
.privacy-modal {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  max-width: 640px; width: 100%;
  max-height: 80vh;
  display: flex; flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.privacy-overlay.is-open .privacy-modal { transform: scale(1); }
.privacy-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.privacy-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}
.privacy-modal__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}
.privacy-modal__close:hover { color: var(--text-primary); background: var(--surface-4); }
.privacy-modal__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.privacy-modal__body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}
.privacy-modal__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: var(--space-5) 0 var(--space-3);
}
.privacy-modal__body h3:first-child { margin-top: 0; }
.privacy-modal__body p { margin-bottom: var(--space-3); }
.privacy-modal__body ul { margin-bottom: var(--space-3); padding-left: var(--space-5); }
.privacy-modal__body li { margin-bottom: var(--space-1); list-style: disc; }

/* ==============================
   COOKIE BANNER
   ============================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--surface-2);
  border-top: 1px solid var(--border-default);
  padding: var(--space-4) 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  flex: 1;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

/* ==============================
   EXIT-INTENT POPUP
   ============================== */
.exit-popup {
  position: fixed; inset: 0; z-index: 2200;
  background: var(--overlay);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.exit-popup.is-open { opacity: 1; visibility: visible; }
.exit-popup__card {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-7);
  max-width: 440px; width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.exit-popup.is-open .exit-popup__card { transform: scale(1) translateY(0); }
.exit-popup__close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
}
.exit-popup__close:hover { color: var(--text-primary); background: var(--surface-4); }
.exit-popup__emoji { font-size: 2.5rem; margin-bottom: var(--space-4); }
.exit-popup__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.exit-popup__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
}
.exit-popup__form {
  display: flex; gap: var(--space-3);
}
.exit-popup__form .form-input { flex: 1; }
.exit-popup__form .btn { flex-shrink: 0; }
@media (max-width: 480px) {
  .exit-popup__form { flex-direction: column; }
}
.exit-popup__footer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

/* ==============================
   BACK TO TOP BUTTON
   ============================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 800;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (min-width: 1024px) {
  .back-to-top { bottom: var(--space-8); right: var(--space-8); }
}

/* ==============================
   LIVE VISITORS COUNTER
   ============================== */
.live-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
}
.live-counter__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ==============================
   TYPEWRITER
   ============================== */
.typewriter {
  color: var(--accent);
  position: relative;
}
.typewriter::after {
  content: '|';
  position: relative;
  color: var(--accent);
  font-weight: var(--weight-normal);
  animation: blink-caret 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==============================
   CALLBACK MINI-FORM (floating)
   ============================== */
.callback-fab {
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.callback-fab__trigger {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  box-shadow: var(--shadow-elevated);
  transition: all 0.2s ease-out;
  border: none;
}
.callback-fab__trigger:hover { background: var(--accent-hover); transform: translateY(-2px); }
.callback-fab__trigger:focus-visible { box-shadow: var(--glow-accent), var(--shadow-elevated); outline: none; }
.callback-fab__panel {
  background: var(--surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  width: 280px;
  box-shadow: var(--shadow-elevated);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease-out;
}
.callback-fab__panel.is-open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}
.callback-fab__panel-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}
.callback-fab__panel-sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}
.callback-fab__panel-form {
  display: flex; flex-direction: column; gap: var(--space-3);
}
@media (max-width: 640px) {
  .callback-fab { left: var(--space-3); bottom: 70px; }
  .callback-fab__panel { width: calc(100vw - var(--space-6)); }
}
@media (min-width: 1024px) {
  .callback-fab { bottom: var(--space-8); left: var(--space-8); }
}

/* ==============================
   PRINT STYLES
   ============================== */
@media print {
  body::before,
  .header, .burger, .mobile-menu,
  .sticky-cta, .cookie-banner,
  .back-to-top, .callback-fab,
  .exit-popup, .modal-overlay,
  .privacy-overlay, .hero__ring,
  .hero::before, .hero::after { display: none !important; }

  body {
    background: white !important;
    color: #111 !important;
    font-size: 12pt;
  }
  .section, .hero { padding: 20pt 0 !important; }
  .card, .hero-form, .contact-form-wrap, .review-card,
  .faq-item, .pick-card, .alt-card {
    background: white !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .section--alt { background: #f9f9f9 !important; }
  .section__title, .hero__title, .stat__value { color: #111 !important; }
  .section__label, .stat__suffix, .accent { color: #c0392b !important; }
  a { color: #111 !important; text-decoration: underline; }
  .hero__buttons, .hero-form, .contact-form-wrap { page-break-inside: avoid; }
  .btn--primary { background: #c0392b !important; color: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

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