/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #f8faf6;
  color: #0d1f0f;
  overflow-x: hidden;
}

/* ── CSS VARS ── */
:root {
  --green-deep:   #052e16;
  --green-dark:   #14532d;
  --green-mid:    #15803d;
  --green-bright: #22c55e;
  --green-pale:   #dcfce7;
  --gold:         #f0c030;
  --gold-pale:    #fefce8;
  --cream:        #f8faf6;
  --white:        #ffffff;
  --text-main:    #0d1f0f;
  --text-mid:     #3d6b47;
  --text-muted:   #6b9b76;
  --border:       rgba(21,128,61,0.15);
  --shadow:       0 2px 24px rgba(5,46,22,0.08);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  font-size: 16px;
}

/* ── TYPOGRAPHY ── */
.font-display { font-family: 'Unbounded', sans-serif; }

/* ── UTILITY ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 300;
  background: rgba(5,46,22,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,197,94,0.15);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--green-mid);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 20px; height: 20px; }
.nav-logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
}
.nav-logo-year {
  font-size: 9px; color: var(--green-bright);
  background: rgba(34,197,94,0.12);
  border: 0.5px solid rgba(34,197,94,0.3);
  border-radius: 4px; padding: 2px 6px;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-size: 13px; color: rgba(255,255,255,0.65);
  text-decoration: none; padding: 6px 12px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  display: block;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  padding-top: 8px;
  background: transparent;
  list-style: none;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  z-index: 400;
  min-width: 160px;
}
.nav-dropdown-inner {
  background: #0a2318;
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-md);
  padding: 6px;
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1; pointer-events: auto;
}
.nav-dropdown a {
  font-size: 13px; color: rgba(255,255,255,0.65);
  padding: 8px 12px; border-radius: 6px;
}
.nav-dropdown a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* ── LANGUAGE SWITCHER ── */
.nav-lang-switcher {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.35);
}
.nav-lang-switcher a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  padding: 3px 6px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.03em;
}
.nav-lang-switcher a:hover { color: rgba(255,255,255,0.7); }
.nav-lang-switcher a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
@media (max-width: 480px) {
  .nav-lang-switcher { display: none; }
}

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 16px; height: 1.5px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: #0a2318;
  border-bottom: 1px solid rgba(34,197,94,0.15);
  z-index: 299;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 90vh; overflow-y: auto; }
.mobile-menu-inner { padding: 16px 20px 24px; }
.mobile-menu-section {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 0 8px;
}
.mobile-menu-label {
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px 0 4px;
}
.mobile-menu-link {
  display: block;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.15s;
}
.mobile-menu-link:last-child { border-bottom: none; }
.mobile-menu-link:hover { color: #fff; }
.btn-nav {
  font-size: 13px; font-weight: 500;
  background: var(--green-mid); color: #fff;
  border: none; border-radius: 8px; padding: 8px 18px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-nav:hover { background: #16a34a; color: #fff; }
.btn-nav-ghost {
  font-size: 13px; color: rgba(255,255,255,0.6);
  background: transparent; border: none;
  padding: 8px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: color 0.2s;
}
.btn-nav-ghost:hover { color: #fff; }

/* ── PROMO BAR ── */
.promo-bar {
  position: relative;
  background: linear-gradient(90deg, #052e10 0%, #071e0f 100%);
  border-bottom: 1px solid rgba(34,197,94,0.25);
  padding: 10px 44px 10px 16px;
  display: flex; align-items: center; justify-content: center;
}
.promo-bar-inner {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  flex-wrap: wrap; justify-content: center;
}
.promo-bar-inner svg { color: #4ade80; flex-shrink: 0; }
.promo-bar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px;
  background: #16a34a;
  border: none;
  border-radius: 8px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 700;
  color: #fff; text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(34,197,94,0.35);
  transition: background 0.2s, box-shadow 0.2s;
}
.promo-bar-btn:hover { background: #15803d; color: #fff; box-shadow: 0 0 22px rgba(34,197,94,0.5); }
.promo-bar-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.25); font-size: 12px; padding: 4px 6px;
  line-height: 1;
}
.promo-bar-close:hover { color: rgba(255,255,255,0.5); }
@media (max-width: 600px) {
  .promo-bar-inner span { font-size: 12px; }
  .promo-bar { padding: 10px 40px 10px 12px; }
}

/* ── KZ FLAG STRIPE ── */
.kz-stripe {
  height: 4px;
  background: linear-gradient(90deg, #00afca 0%, #00afca 50%, #f0c030 50%, #f0c030 100%);
}

/* ── HERO ── */
.hero {
  background: var(--green-deep);
  position: relative; overflow: hidden;
  padding: 80px 0 0;
}
.hero-bg-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(34,197,94,0.08);
  pointer-events: none;
}
.hero-bg-ring.r1 { width: 700px; height: 700px; top: -200px; right: -200px; }
.hero-bg-ring.r2 { width: 500px; height: 500px; top: -100px; right: -100px; }
.hero-bg-ring.r3 { width: 300px; height: 300px; top: 0; right: 0; }
.hero-bg-dot {
  position: absolute; border-radius: 50%;
  background: var(--green-mid); opacity: 0.06;
  pointer-events: none;
}
.hero-bg-dot.d1 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.hero-bg-dot.d2 { width: 200px; height: 200px; top: 40px; left: 300px; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
  padding-bottom: 60px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(240,192,48,0.12);
  border: 0.5px solid rgba(240,192,48,0.35);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; color: var(--gold);
  margin-bottom: 24px;
  animation: fadeSlideUp 0.6s ease both;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700; color: #fff;
  line-height: 1.12; letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.6s 0.1s ease both;
}
.hero-h1 em { color: var(--green-bright); font-style: normal; }
.hero-sub {
  font-size: 15px; color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 36px; max-width: 440px;
  animation: fadeSlideUp 0.6s 0.2s ease both;
}
.hero-sub-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 20px;
  margin-bottom: 20px;
  animation: fadeSlideUp 0.6s 0.25s ease both;
}
.hero-sub-status--paid {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.35);
  color: #4ade80;
}
.hero-sub-status--free {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
}
.hero-sub-status--free strong { color: #fde68a; }
.hero-actions {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 44px;
  animation: fadeSlideUp 0.6s 0.3s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  background: var(--green-mid); color: #fff;
  border-radius: 10px; padding: 13px 24px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #16a34a; color: #fff; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 13px 24px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.hero-trust {
  display: flex; align-items: center; gap: 16px;
  animation: fadeSlideUp 0.6s 0.4s ease both;
}
.hero-avatars { display: flex; }
.hero-av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--green-deep);
  margin-left: -8px; overflow: hidden;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.7);
}
.hero-av:first-child { margin-left: 0; }
.hero-trust-txt { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.4; }
.hero-trust-txt strong { color: rgba(255,255,255,0.8); font-weight: 500; }

/* Hero Right — Карточка-превью */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-xl);
  padding: 28px;
  animation: fadeSlideUp 0.7s 0.2s ease both;
}
.hero-card-label {
  font-size: 10px; font-weight: 500; color: var(--green-bright);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.hero-card-q {
  font-size: 14px; font-weight: 500; color: #fff;
  line-height: 1.5; margin-bottom: 16px;
}
.hero-card-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hero-card-opt {
  font-size: 13px; color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 14px; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 10px;
}
.hero-card-opt:hover { background: rgba(255,255,255,0.1); border-color: rgba(34,197,94,0.4); }
.hero-card-opt.correct { background: rgba(34,197,94,0.15); border-color: #22c55e; color: #86efac; }
.hero-card-opt.wrong   { background: rgba(239,68,68,0.12); border-color: #ef4444; color: #fca5a5; }
.hero-card-opt .opt-letter {
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 500; flex-shrink: 0;
}
.hero-card-opt.correct .opt-letter { background: #22c55e; color: #052e16; }
.hero-card-opt.wrong .opt-letter   { background: #ef4444; color: #fff; }
.hero-card-progress { display: flex; align-items: center; gap: 10px; }
.hero-card-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.hero-card-bar-fill { height: 100%; width: 5%; background: var(--green-bright); border-radius: 2px; transition: width 0.4s ease; }
.hero-card-prog-txt { font-size: 11px; color: rgba(255,255,255,0.35); white-space: nowrap; }

/* Hero Stats Band */
.hero-stats {
  background: #0a2318;
  border-top: 1px solid rgba(34,197,94,0.12);
  padding: 24px 0;
  position: relative; z-index: 1;
}
.hero-stats-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.hero-stat {
  text-align: center; padding: 8px 16px;
  border-right: 1px solid rgba(34,197,94,0.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-n {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--green-bright);
  display: block; margin-bottom: 4px; letter-spacing: -0.02em;
}
.hero-stat-l { font-size: 12px; color: rgba(255,255,255,0.35); }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; color: var(--green-mid);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ''; display: block; width: 24px; height: 1px; background: var(--green-bright); opacity: 0.4;
}
.section-h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700; color: var(--text-main);
  line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px;
}
.section-sub { font-size: 15px; color: var(--text-mid); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── FEATURES ── */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-pale); border: 1px solid rgba(21,128,61,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feat-icon svg { width: 24px; height: 24px; color: var(--green-mid); }
.feat-title { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; letter-spacing: -0.01em; }
.feat-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
.feat-badge { display: inline-block; margin-top: 16px; font-size: 11px; font-weight: 500; color: var(--green-mid); background: var(--green-pale); border-radius: 20px; padding: 3px 10px; }

/* ── TOPICS ── */
.topics { background: var(--cream); }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none; color: var(--text-main);
  display: flex; align-items: center; gap: 12px;
  transition: all 0.2s;
}
.topic-card:hover { border-color: var(--green-bright); background: var(--green-pale); transform: translateY(-2px); color: var(--text-main); }
.topic-num { font-family: 'Unbounded', sans-serif; font-size: 10px; font-weight: 700; color: var(--green-mid); min-width: 20px; }
.topic-name { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--text-main); }
.topic-arrow { margin-left: auto; color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.topics-more { text-align: center; margin-top: 28px; }

/* ── PRICING ── */
.pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; align-items: stretch; }
.price-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  position: relative; text-align: center;
  transition: transform 0.2s;
  display: flex; flex-direction: column;
}
.price-features-list { flex: 1; }
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  background: var(--green-deep);
  border-color: var(--green-mid);
  color: #fff;
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1a0f00;
  font-size: 11px; font-weight: 500; border-radius: 20px; padding: 4px 14px;
  white-space: nowrap;
}
.price-period { font-size: 13px; color: var(--text-mid); margin-bottom: 8px; font-weight: 500; }
.price-card.featured .price-period { color: rgba(255,255,255,0.5); }
.price-amount {
  font-family: 'Unbounded', sans-serif;
  font-size: 36px; font-weight: 700; color: var(--text-main);
  letter-spacing: -0.03em; margin-bottom: 4px;
}
.price-card.featured .price-amount { color: #fff; }
.price-currency { font-size: 16px; vertical-align: super; font-weight: 500; }
.price-unit { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }
.price-card.featured .price-unit { color: rgba(255,255,255,0.4); }
.price-features-list { list-style: none; text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-mid); line-height: 1.5;
}
.price-card.featured .price-feature { color: rgba(255,255,255,0.65); }
.price-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-pale); border: 1px solid rgba(21,128,61,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  color: var(--green-mid); font-size: 10px;
}
.price-card.featured .price-check { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.4); color: var(--green-bright); }
.btn-price {
  display: block; width: 100%;
  font-size: 14px; font-weight: 500;
  background: var(--green-pale); color: var(--green-dark);
  border: 1px solid rgba(21,128,61,0.25); border-radius: 10px;
  padding: 12px; cursor: pointer; text-decoration: none;
  transition: all 0.2s; text-align: center;
}
.btn-price:hover { background: #bbf7d0; border-color: var(--green-mid); color: var(--green-dark); }
.price-card.featured .btn-price { background: var(--green-mid); color: #fff; border-color: transparent; }
.price-card.featured .btn-price:hover { background: #16a34a; color: #fff; }

/* ── REVIEWS ── */
.reviews { background: var(--green-deep); }
.reviews .section-h2 { color: #fff; }
.reviews .section-eyebrow { color: var(--green-bright); }
.reviews .section-sub { color: rgba(255,255,255,0.45); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: rgba(255,255,255,0.05);
  border: 0.5px solid rgba(34,197,94,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.review-stars { color: var(--gold); font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-dark); border: 1.5px solid rgba(34,197,94,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: var(--green-bright);
  flex-shrink: 0;
}
.review-name { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.85); }
.review-date { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 2px; }

/* ── APP BANNER ── */
.app-banner { background: var(--green-dark); padding: 64px 0; }
.app-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.app-h2 {
  font-family: 'Unbounded', sans-serif; font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px;
}
.app-sub { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.65; margin-bottom: 28px; }
.app-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-store {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: 10px 18px;
  text-decoration: none; color: #fff;
  transition: background 0.2s;
}
.btn-store:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-store-icon { font-size: 20px; }
.btn-store-label { font-size: 10px; color: rgba(255,255,255,0.5); }
.btn-store-name { font-size: 13px; font-weight: 500; }
.app-phone-wrap { display: flex; justify-content: center; align-items: flex-end; }
.app-phone {
  width: 200px; background: #0a1f10;
  border-radius: 28px; border: 1.5px solid rgba(34,197,94,0.25);
  overflow: hidden; box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
.app-phone-top { background: #14532d; padding: 20px 16px 16px; }
.app-phone-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-phone-logo { font-family: 'Unbounded', sans-serif; font-size: 11px; font-weight: 700; color: #fff; }
.app-phone-badge { width: 7px; height: 7px; border-radius: 50%; background: var(--green-bright); }
.app-phone-q { font-size: 11px; font-weight: 500; color: #fff; line-height: 1.4; margin-bottom: 12px; }
.app-phone-opts { display: flex; flex-direction: column; gap: 5px; }
.app-phone-opt { font-size: 10px; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.07); border-radius: 6px; padding: 7px 9px; }
.app-phone-opt.c { background: rgba(34,197,94,0.2); color: #86efac; }
.app-phone-body { background: #0a1f10; padding: 12px 16px 16px; }
.app-phone-stats { display: flex; justify-content: space-between; }
.app-phone-stat { text-align: center; }
.app-phone-stat-n { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700; color: var(--green-bright); }
.app-phone-stat-l { font-size: 9px; color: rgba(255,255,255,0.3); margin-top: 2px; }

/* ── FAQ ── */
.faq { background: var(--cream); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text-main);
  transition: background 0.15s;
}
.faq-q:hover { background: var(--cream); }
.faq-q-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-pale); border: 1px solid rgba(21,128,61,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid); font-size: 14px; flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); background: var(--green-mid); color: #fff; border-color: transparent; }
.faq-a {
  font-size: 14px; color: var(--text-mid); line-height: 1.7;
  padding: 0 22px; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

/* ── FOOTER ── */
footer {
  background: var(--green-deep);
  border-top: 1px solid rgba(34,197,94,0.12);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; margin-top: 12px; }
.footer-col-title { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.25); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* ── ANIMATIONS ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE GRID CLASSES (used across inner pages) ── */
.test-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: start;
}
.result-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
.q-sidebar { position: sticky; }

/* ── QUESTION NAVIGATOR GRID ── */
.q-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .app-inner { grid-template-columns: 1fr; }
  .app-phone-wrap { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* Page layouts → single column, prevent overflow */
  .test-layout    { grid-template-columns: 1fr; overflow-x: hidden; }
  .result-layout  { grid-template-columns: 1fr; }
  .profile-layout { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  /* Prevent grid children from overflowing */
  .test-layout > *,
  .result-layout > *,
  .profile-layout > *,
  .content-layout > * { min-width: 0; }
  /* Stat / result grids → 2 columns */
  .stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  /* Sidebar: unstick, move above questions as a slim strip */
  .q-sidebar { position: static !important; top: auto !important; order: -1; margin-bottom: 12px; }
  /* Strip card decoration — show just the scrollable numbers */
  .q-sidebar > div {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  /* Hide "Вопросы" header label on mobile */
  .q-sidebar > div > div:first-child { display: none !important; }
  /* Remove inner padding */
  .q-sidebar > div > div:last-child { padding: 0 !important; }
  /* Profile sidebar — keep card styling */
  .profile-layout .q-sidebar > div {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
  }
  .profile-layout .q-sidebar > div > div:first-child { display: block !important; }
  .profile-layout .q-sidebar > div > div:last-child { padding: 12px !important; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu { display: block; }
  /* Question navigator: horizontal scroll row instead of grid */
  .q-nav-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding: 5px 4px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .q-nav-grid::-webkit-scrollbar { display: none; }
  .q-nav-grid > ul { display: contents; }
  .q-nav-grid .nav-item { flex-shrink: 0; }
  .q-nav-grid > div { flex-shrink: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: repeat(3, 1fr); }
  /* Hide verbose nav badges on small screens — user can check in profile */
  .nav-status-badge { display: none !important; }
  /* Reduce section vertical padding on mobile */
  section[style*="padding:32px 0 64px"],
  section[style*="padding: 32px 0 64px"] { padding-bottom: 32px !important; }
  section[style*="padding:48px 0"],
  section[style*="padding: 48px 0"] { padding: 24px 0 !important; }
  /* Prevent question card text overflow */
  .tab-pane > div { overflow-x: hidden; }
  /* Compact question card padding */
  .tab-pane > div[style*="padding:28px 32px"] { padding: 18px 16px !important; }
}
@media (max-width: 480px) {
  /* Hide buy button and ghost icons on very small screens — available in mobile menu */
  .nav-buy-btn { display: none !important; }
  .btn-nav-ghost { display: none !important; }
  /* Reduce inner card padding */
  .test-layout .tab-pane > div,
  .content-layout > div > div { padding: 16px !important; }
  /* Reduce result card padding */
  .result-layout > div > div[style*="padding:32px"] { padding: 18px !important; }
}
