/* ============================================================
   EduTablo — CSS
   Palette: Deep blue (#0052CC) + warm orange accent (#FF6B2B)
   Fonts: Chillax (display) + Plus Jakarta Sans (body)
   ============================================================ */

/* ---- TOKENS ---- */
:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.6rem, 1rem + 5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Surfaces */
  --color-bg: #f4f6fb;
  --color-surface: #ffffff;
  --color-surface-2: #f8faff;
  --color-surface-offset: #eef1f8;
  --color-surface-dynamic: #e2e8f4;
  --color-divider: #d8deec;
  --color-border: #c8d0e0;

  /* Text */
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-faint: #adb5c7;
  --color-text-inverse: #f8faff;

  /* Primary: Deep blue */
  --color-primary: #0052cc;
  --color-primary-hover: #003fa3;
  --color-primary-active: #002c7a;
  --color-primary-highlight: #ddeaff;

  /* Accent: Orange */
  --color-accent: #e85c1f;
  --color-accent-hover: #c44a14;
  --color-accent-active: #9e3a0e;
  --color-accent-highlight: #fde8df;

  /* Success */
  --color-success: #2d7a4f;
  --color-success-highlight: #d4f0e4;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --tr: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 30, 80, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 30, 80, 0.10);
  --shadow-lg: 0 12px 40px rgba(0, 30, 80, 0.14);

  /* Layout */
  --content-default: 1160px;
  --content-narrow: 760px;

  /* Fonts */
  --font-display: 'Chillax', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0d1117;
  --color-surface: #161b26;
  --color-surface-2: #1c2333;
  --color-surface-offset: #1a2032;
  --color-surface-dynamic: #232d42;
  --color-divider: #243050;
  --color-border: #2c3a56;
  --color-text: #d4daf0;
  --color-text-muted: #7a86a8;
  --color-text-faint: #3d4a68;
  --color-text-inverse: #0d1117;
  --color-primary: #4d90f5;
  --color-primary-hover: #2b79f0;
  --color-primary-active: #0f63e0;
  --color-primary-highlight: #142040;
  --color-accent: #ff7c4d;
  --color-accent-hover: #ff5a25;
  --color-accent-active: #e03d05;
  --color-accent-highlight: #2c1a10;
  --color-success: #4daa72;
  --color-success-highlight: #0f2e1c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d1117;
    --color-surface: #161b26;
    --color-surface-2: #1c2333;
    --color-surface-offset: #1a2032;
    --color-surface-dynamic: #232d42;
    --color-divider: #243050;
    --color-border: #2c3a56;
    --color-text: #d4daf0;
    --color-text-muted: #7a86a8;
    --color-text-faint: #3d4a68;
    --color-text-inverse: #0d1117;
    --color-primary: #4d90f5;
    --color-primary-hover: #2b79f0;
    --color-primary-active: #0f63e0;
    --color-primary-highlight: #142040;
    --color-accent: #ff7c4d;
    --color-accent-hover: #ff5a25;
    --color-accent-active: #e03d05;
    --color-accent-highlight: #2c1a10;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  }
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
}
img, svg { display: block; max-width: 100%; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--color-primary-highlight); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

/* ---- HEADER ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--tr);
}
.header--scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  transition: opacity var(--tr);
}
.logo:hover { opacity: 0.8; }
.logo__text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: 0;
  list-style: none;
  white-space: nowrap;
}
.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) 10px;
  border-radius: var(--radius-md);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.nav__link:hover { color: var(--color-text); background: var(--color-surface-offset); }
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.header__phone {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--tr);
}
.header__phone:hover { color: var(--color-primary-hover); }
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--tr), background var(--tr);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface-offset); }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--tr);
}
.burger span { width: 20px; height: 2px; background: var(--color-text-muted); border-radius: 2px; transition: transform var(--tr), opacity var(--tr); }
.burger:hover { background: var(--color-surface-offset); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { background: var(--color-surface-offset); border-color: var(--color-text-muted); }
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary-highlight); }
.btn--full { width: 100%; }

/* ---- BADGE ---- */
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* ---- SECTIONS ---- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}
.section--alt { background: var(--color-surface-2); }
.section--dark {
  background: var(--color-primary-active);
  color: var(--color-text-inverse);
}
[data-theme='dark'] .section--dark { background: color-mix(in srgb, var(--color-primary) 20%, var(--color-surface)); }

.section__head {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
}
.section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}
.section--dark .section__title { color: #fff; }
.section__lead {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.section--dark .section__lead { color: rgba(255,255,255,0.9); }
.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
}
.section--dark .section__desc { color: rgba(255,255,255,0.65); }

/* ---- HERO ---- */
.hero {
  padding-top: clamp(var(--space-12), 8vw, var(--space-20));
  padding-bottom: 0;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-primary-highlight) 100%);
}
[data-theme='dark'] .hero { background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-primary-highlight) 100%); }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-bottom: clamp(var(--space-10), 6vw, var(--space-20));
}
.hero__content { max-width: 520px; }
.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  line-height: 1.08;
}
.hero__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 44ch;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Hero mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero__screen-mockup {
  width: 100%;
  max-width: 500px;
}
.mockup__frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: var(--shadow-lg), 0 -4px 0 4px var(--color-divider);
  overflow: hidden;
}
.mockup__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
}
.mockup__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.mockup__schedule { padding: var(--space-4); }
.schedule__row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr auto;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  align-items: center;
  border-bottom: 1px solid var(--color-divider);
  transition: background var(--tr);
}
.schedule__row--header {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}
.schedule__row--active {
  background: var(--color-primary-highlight);
  border-color: var(--color-primary-highlight);
  font-weight: 500;
}
.schedule__row--dim { opacity: 0.5; }
.schedule__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room {
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 11px;
}
.schedule__row--active .room { background: var(--color-primary); color: #fff; }
.time { font-weight: 600; color: var(--color-text-muted); text-align: right; }

/* Stats bar */
.stats-bar {
  background: var(--color-primary);
  padding-block: var(--space-5);
  margin-top: clamp(var(--space-6), 4vw, var(--space-10));
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
}
.stat__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-1);
}

/* ---- COMPONENTS GRID ---- */
.components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.component-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: box-shadow var(--tr), transform var(--tr);
}
.component-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.component-card--featured {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-primary-highlight) 100%);
}
.component-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.component-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.component-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.component-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- STEPS ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  opacity: 0.3;
  pointer-events: none;
}
.step { text-align: center; }
.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--color-primary-highlight);
}
.step__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--tr), border-color var(--tr);
}
.feature-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-primary); }
.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.feature-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}

/* ---- AUDIENCE ---- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.audience-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: box-shadow var(--tr), transform var(--tr);
}
.audience-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.audience-card__icon { margin-bottom: var(--space-5); }
.audience-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.audience-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}

/* ---- METRICS (dark section) ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.metric__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ---- ADVANTAGES ---- */
.advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.advantage {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--tr);
}
.advantage:hover { box-shadow: var(--shadow-sm); }
.advantage__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-success-highlight);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.advantage__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.advantage__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: var(--content-narrow);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--tr);
}
.faq-item[open] { border-color: var(--color-primary); }
.faq-item__q {
  list-style: none;
  padding: var(--space-5) var(--space-6);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--tr);
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item[open] .faq-item__q { color: var(--color-primary); }
.faq-item__q::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--tr);
  flex-shrink: 0;
  margin-left: var(--space-4);
}
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__a {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: none;
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  transition: box-shadow var(--tr);
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card--popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
}
.pricing-card__unit {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.pricing-card__for {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.55;
}
.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  max-width: none;
}
.pricing-card__features li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary-highlight);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%230052cc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.pricing-note {
  text-align: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  margin-top: var(--space-8);
}

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px;
  gap: var(--space-4);
}
.gallery-item { border-radius: var(--radius-xl); overflow: hidden; }
.gallery-item--large { grid-row: span 2; }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: var(--color-surface-offset);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  text-align: center;
  padding: var(--space-4);
}

/* ---- CONTACT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}
.contact-info__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
  max-width: 38ch;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--tr);
}
.contact-link:hover { color: var(--color-primary); }
.contact-link svg { color: var(--color-primary); flex-shrink: 0; }
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-highlight); }
.form-textarea { resize: vertical; min-height: 96px; }

/* ---- FOOTER ---- */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-6);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
}
.footer__nav {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
}
.footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--tr);
}
.footer__nav a:hover { color: var(--color-primary); }
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
  margin-left: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item--large { grid-row: span 1; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero__content { max-width: none; text-align: center; }
  .hero__sub { max-width: none; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
  .components-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .footer__copy { margin-left: 0; width: 100%; }
  .nav { display: none; }
  .burger { display: flex; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .advantages { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .footer__nav { margin-left: 0; flex-wrap: wrap; gap: var(--space-3); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .header__phone { display: none; }
}

/* ---- MOBILE NAV ---- */
.nav--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  inset: 68px 0 0;
  background: var(--color-bg);
  padding: var(--space-6);
  z-index: 99;
  border-top: 1px solid var(--color-divider);
  overflow-y: auto;
}
.nav--open .nav__list {
  flex-direction: column;
  gap: var(--space-1);
}
.nav--open .nav__link {
  font-size: var(--text-base);
  padding: var(--space-4);
  display: block;
  border-radius: var(--radius-lg);
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   CRO ADDITIONS
   ============================================================ */

/* ---- STICKY CTA BAR ---- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding-block: var(--space-3);
}
.sticky-cta--visible {
  transform: translateY(0);
}
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.sticky-cta__text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-cta__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.sticky-cta__phone {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  transition: color var(--tr);
}
.sticky-cta__phone:hover { color: var(--color-primary-hover); }

@media (max-width: 640px) {
  .sticky-cta__text { display: none; }
  .sticky-cta__phone { display: none; }
  .sticky-cta__inner { justify-content: center; }
  .sticky-cta .btn { width: 100%; max-width: 320px; }
}

/* ---- LOGO WALL ---- */
.logo-wall {
  padding-block: var(--space-8);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.logo-wall__label {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
  max-width: none;
}
.logo-wall__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}
.logo-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
  transition: background var(--tr), border-color var(--tr);
}
.logo-pill:hover {
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin: 0;
  transition: box-shadow var(--tr);
}
.testimonial:hover { box-shadow: var(--shadow-md); }
.testimonial__text {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: normal;
  position: relative;
  padding-left: var(--space-5);
  flex: 1;
  max-width: none;
}
.testimonial__text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.testimonial__role {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---- QUIZ CALCULATOR ---- */
.quiz-widget {
  max-width: 640px;
  margin-inline: auto;
}
.quiz-steps {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
}
.quiz-step__q {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  text-align: center;
  max-width: none;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.quiz-opt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color var(--tr), background var(--tr), color var(--tr), transform var(--tr);
  text-align: left;
}
.quiz-opt:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  transform: translateX(4px);
}
.quiz-opt--selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.quiz-result {
  text-align: center;
}
.quiz-result__icon { margin-bottom: var(--space-5); display: flex; justify-content: center; }
.quiz-result__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  max-width: none;
}
.quiz-result__title span { color: var(--color-primary); }
.quiz-result__price {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  max-width: none;
}
.quiz-result__price strong { color: var(--color-text); font-size: var(--text-2xl); }
.quiz-result__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 40ch;
  margin-inline: auto;
}
.quiz-result__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.quiz-progress {
  height: 4px;
  background: var(--color-surface-offset);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  overflow: hidden;
  margin-top: -1px;
}
.quiz-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: inherit;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- PRICING GUARANTEE ---- */
.pricing-card__guarantee {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

/* ---- FLOATING TELEGRAM ---- */
.float-tg {
  position: fixed;
  bottom: 88px;
  right: var(--space-6);
  width: 52px;
  height: 52px;
  background: #2AABEE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 89;
  transition: transform var(--tr), box-shadow var(--tr);
}
.float-tg:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 16px 40px rgba(42, 171, 238, 0.4);
}
@media (max-width: 640px) {
  .float-tg { bottom: 72px; right: var(--space-4); }
}

/* ---- EXIT INTENT MODAL ---- */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.exit-modal[hidden] { display: none; }
.exit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.exit-modal__box {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.exit-modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: background var(--tr), color var(--tr);
  display: flex;
  align-items: center;
  justify-content: center;
}
.exit-modal__close:hover { background: var(--color-surface-offset); color: var(--color-text); }
.exit-modal__icon { margin-bottom: var(--space-5); display: flex; justify-content: center; }
.exit-modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  max-width: none;
}
.exit-modal__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.65;
  max-width: none;
}
.exit-modal__skip {
  display: block;
  width: 100%;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--tr);
}
.exit-modal__skip:hover { color: var(--color-text-muted); }
