/* =========================================
   LETI — Design System
   Brand color: #8B0F3E (dark crimson/maroon)
   ========================================= */

:root {
  --brand: #8B0F3E;
  --brand-dark: #6a0b2f;
  --brand-light: #b8145a;
  --brand-pale: #fdf0f5;

  --accent: #FF4D7E;
  --accent-light: #FFD6E5;

  --text-primary: #0F0A14;
  --text-secondary: #4A4358;
  --text-muted: #8B8096;

  --bg: #ffffff;
  --bg-light: #F8F5FA;
  --bg-hero: #8B0F3E;

  --border: #EAE5F0;
  --border-dark: #C8C0D4;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  --shadow-sm: 0 2px 8px rgba(139, 15, 62, 0.08);
  --shadow-md: 0 8px 32px rgba(139, 15, 62, 0.12);
  --shadow-lg: 0 20px 60px rgba(139, 15, 62, 0.18);
  --shadow-card: 0 4px 20px rgba(15, 10, 20, 0.08);

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.btn--sm  { padding: 8px 18px;  font-size: 13px; }
.btn--md  { padding: 12px 24px; font-size: 14px; }
.btn--lg  { padding: 15px 32px; font-size: 15px; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(139, 15, 62, 0.3);
}
.btn--primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 15, 62, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn--outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-dark);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn--select-program {
  background: var(--brand-pale);
  color: var(--brand);
  border: 2px solid var(--brand);
  font-weight: 700;
}
.btn--select-program:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139,15,62,0.25);
}

.btn--white {
  background: #fff;
  color: var(--brand);
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn--white:hover {
  background: #f8f0f4;
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--ghost-white {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 2px solid rgba(255,255,255,0.2);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-2px);
}

.btn--teachers-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--brand-pale);
  color: var(--brand);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
}
.btn--teachers-all:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,15,62,0.3);
}
.btn--teachers-all svg {
  transition: transform var(--transition);
}
.btn--teachers-all:hover svg {
  transform: translateX(4px);
}

/* =========================================
   SECTION COMMON
   ========================================= */
.section-header {
  text-align: center !important;
  margin-bottom: 56px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
}
.section-header > * { text-align: center !important; align-self: center; }
.section-header .section-title,
.section-header .section-sub,
.section-header .section-tag {
  text-align: center !important;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--brand-pale);
  color: var(--brand);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-tag--white {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}
.section-title--white { color: #fff; }

.section-sub {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-muted);
}
.section-sub--white { color: rgba(255,255,255,0.75); }

/* =========================================
   HEADER
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: none;
  cursor: pointer;
}
.nav-link:hover,
.nav-link--dropdown:hover {
  background: var(--bg-light);
  color: var(--brand);
}

.dropdown-arrow {
  transition: transform var(--transition);
}
.nav-item--dropdown:hover .dropdown-arrow,
.nav-item--dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.nav-item--dropdown:hover .dropdown,
.nav-item--dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  color: var(--text-primary);
}
.dropdown__item:hover { background: var(--brand-pale); }

.dropdown__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown__item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.dropdown__item small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E3F2FD;
  transition: transform var(--transition);
}
.header__messenger:hover { transform: scale(1.1); }

.header__phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.header__phone:hover { color: var(--brand); }

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.header__burger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: #6a0b2f;
  color: #fff;
  padding: 80px 0 0;
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
}

body { overflow-x: hidden; }

/* Aurora/canvas need their own clip so they don't cause hscroll */
.hero__aurora,
.hero__canvas {
  overflow: hidden;
}

/* Canvas — animated particles */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Aurora — layered animated gradient blobs */
.hero__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero__aurora::before,
.hero__aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform, opacity;
}
/* Top-right warm glow */
.hero__aurora::before {
  width: 700px; height: 500px;
  top: -120px; right: -100px;
  background: radial-gradient(ellipse, rgba(220, 30, 90, 0.55) 0%, rgba(139,15,62,0) 70%);
  animation: auroraDrift1 9s ease-in-out infinite;
}
/* Bottom-left cool glow */
.hero__aurora::after {
  width: 500px; height: 400px;
  bottom: -80px; left: -60px;
  background: radial-gradient(ellipse, rgba(100, 5, 40, 0.7) 0%, transparent 70%);
  animation: auroraDrift2 11s ease-in-out infinite;
}
@keyframes auroraDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  33%       { transform: translate(-60px, 40px) scale(1.1); opacity: 1; }
  66%       { transform: translate(40px, -30px) scale(0.95); opacity: 0.75; }
}
@keyframes auroraDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  40%       { transform: translate(50px, -40px) scale(1.12); opacity: 1; }
  70%       { transform: translate(-30px, 20px) scale(0.9); opacity: 0.6; }
}

/* Extra mid glow via pseudo on .hero */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 60, 110, 0.18) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  animation: midGlow 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes midGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Noise texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-bottom: 140px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #4ADE80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0.1); }
}

.hero__title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero__title-highlight {
  position: relative;
  display: inline;
  background: linear-gradient(transparent 55%, rgba(255, 77, 126, 0.45) 55%);
  background-size: 100% 100%;
  padding-bottom: 2px;
}


.hero__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}

/* Hero ichidagi primary button — oq, qizil fonda ajralib turadi */
.hero__ctas .btn--primary {
  background: #fff;
  color: var(--brand);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.hero__ctas .btn--primary:hover {
  background: #f5e8ed;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  transform: translateY(-2px);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}

.hero__stat span {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

.hero__stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.25);
}

/* =========================================
   HERO VISUAL
   ========================================= */

/* Student wrap: right half of hero, absolute, full height */
.hero__student-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 55%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

/* Glow behind student */
.hero__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(180, 20, 70, 0.5) 0%,
    rgba(130, 5, 50, 0.25) 45%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: 1;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.1); }
}

/* Student image: right edge aligns with "Yozilish" button (container right edge) */
.hero__student {
  position: absolute;
  bottom: 0;
  right: max(calc((100vw - 1200px) / 2 + 24px), 24px);
  left: auto;
  transform: none;
  height: 105%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom right;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(-20px 0 60px rgba(0,0,0,0.25));
  animation: studentIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
@keyframes studentIn {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Floating cards — z:10 => always above student (z:2) */
.hero__card {
  position: absolute;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  color: var(--text-primary);
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  z-index: 10;
  pointer-events: none;
}

/* Card icon */
.hero__card-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__card-icon--gold  { background: #fff8e1; }
.hero__card-icon--green { background: #e8f5e9; }

/* ---- 3 kartochka: hero ga nisbatan absolute, rasm tashqarisida ---- */

/* Card 1 — 189 ball: rasm chap yelkasi ustida */
.hero__card--c1 {
  top: 34%;
  left: 10%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatY 4s ease-in-out infinite;
}
.hero__card--c1 strong { font-size: 15px; font-weight: 800; display: block; color: var(--brand); }
.hero__card--c1 small  { font-size: 11px; color: var(--text-muted); }

/* Card 2 — Onlayn: rasm o'ng yelkasi ustida */
.hero__card--c2 {
  top: 14%;
  right: 44%;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatY 4s ease-in-out 1.4s infinite;
}
.hero__card--c2 strong { font-size: 15px; font-weight: 800; display: block; }
.hero__card--c2 small  { font-size: 11px; color: var(--text-muted); }

/* Card 3 — 94%: rasm markazida pastda */
.hero__card--c3 {
  bottom: 24%;
  left: 10%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatY-center 4s ease-in-out 2.4s infinite;
}
.hero__card--c3 strong { font-size: 15px; font-weight: 800; display: block; color: #16a34a; }
.hero__card--c3 small  { font-size: 11px; color: var(--text-muted); }

.hero__card-avatars {
  position: relative;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

/* Hidden old cards */
.hero__card--score,
.hero__card--lesson,
.hero__card--result,
.hero__card--streak,
.hero__card--students {
  display: none;
}

/* placeholder to avoid CSS errors */
.hero__card--score {
  bottom: 110px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 180px;
  animation: floatY 5s ease-in-out 0.6s infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes floatY-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-7px); }
}

.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  position: absolute;
}
.avatar-circle--1 { left: 0;    background: #FF6B9D; z-index: 3; }
.avatar-circle--2 { left: 15px; background: #4ECDC4; z-index: 2; }
.avatar-circle--3 { left: 30px; background: var(--brand); z-index: 1; }

.live-dot {
  width: 8px; height: 8px;
  background: #F87171;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.3);
  animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 3px rgba(248,113,113,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(248,113,113,0.1); }
}

/* Score card internals */
.hero__card-score-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hero__card-score-bar span:first-child { width: 68px; flex-shrink: 0; }
.score-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.score-bar__fill {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  animation: bar-grow 1.4s ease 0.5s both;
}
.score-bar__fill--green { background: #22c55e; }
@keyframes bar-grow {
  from { width: 0 !important; }
}
.score-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  width: 26px;
  text-align: right;
}

/* Bottom wave — absolute at hero bottom, clips into white */
.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 5;
}
.hero__wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* Bottom fade — replaces wave */
.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(90, 5, 35, 0.6));
  pointer-events: none;
  z-index: 2;
}

/* Floating cards — duplicate removed, see above */

.hero__card--result {
  bottom: 140px;
  left: -10px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 4s ease-in-out infinite;
}
.result-emoji { font-size: 24px; flex-shrink: 0; }
.hero__card--result strong { font-size: 17px; font-weight: 800; display: block; color: var(--brand); }
.hero__card--result small  { font-size: 11px; color: var(--text-muted); }

.hero__card--lesson {
  top: 32px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatY 4s ease-in-out 1.5s infinite;
}
.lesson-icon { font-size: 22px; flex-shrink: 0; }
.hero__card--lesson strong { font-size: 14px; font-weight: 700; display: block; color: var(--text-primary); }
.hero__card--lesson small  { font-size: 11px; color: var(--text-muted); }

/* Score card — top left */
.hero__card--score {
  top: 60px;
  left: -10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 190px;
  animation: floatY 5s ease-in-out 0.8s infinite;
}
.hero__card-score-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.hero__card-score-bar span:first-child {
  width: 72px;
  flex-shrink: 0;
  font-size: 11px;
}
.score-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar__fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  animation: bar-grow 1.4s ease 0.6s both;
}
.score-bar__fill--green { background: #22c55e; }
.score-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  width: 28px;
  text-align: right;
}

.hero__card--students {
  bottom: 28px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatY 4s ease-in-out 3s infinite;
}
.hero__card-avatars {
  position: relative;
  width: 62px;
  height: 28px;
  flex-shrink: 0;
}
.hero__card--students strong { font-size: 17px; font-weight: 800; display: block; color: var(--text-primary); }
.hero__card--students small  { font-size: 11px; color: var(--text-muted); }

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  position: absolute;
}
.avatar-circle--1 { left: 0;   background: #FF6B9D; z-index: 3; }
.avatar-circle--2 { left: 16px; background: #4ECDC4; z-index: 2; }
.avatar-circle--3 { left: 32px; background: #8B0F3E; z-index: 1; }

.live-dot {
  width: 8px;
  height: 8px;
  background: #F87171;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.3);
  animation: pulse-red 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 3px rgba(248,113,113,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(248,113,113,0.1); }
}


/* =========================================
   SEGMENTATION
   ========================================= */
.segment {
  padding: 0 0 80px;
  background: var(--bg);
  position: relative;
  z-index: 2;
}

.segment__wave {
  line-height: 0;
  margin-bottom: 0;
}
.segment__wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

.segment .section-header {
  padding-top: 60px;
}

.segment__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.segment__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  background: #fff;
}

.segment__card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.segment__card--accent {
  border-color: var(--brand);
  background: var(--brand-pale);
}

.segment__card--dashed {
  border-style: dashed;
  border-color: var(--border-dark);
}
.segment__card--dashed:hover {
  border-style: solid;
  border-color: var(--brand);
}

.segment__icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.segment__card h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.segment__card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.segment__arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 16px;
  color: var(--brand);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}
.segment__card:hover .segment__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   PROGRAMS
   ========================================= */
.programs {
  padding: 80px 0;
  background: var(--bg-light);
}

.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.program-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--brand);
}

.program-card--featured {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff 60%, var(--brand-pale));
}

.program-card__badge {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  align-self: flex-start;
}

.program-card__icon { font-size: 36px; }

.program-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.program-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.program-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.program-card__features li {
  font-size: 12px;
  color: var(--text-secondary);
}

.program-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.program-card__duration {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.programs__cta {
  text-align: center;
  margin-top: 40px;
}
.programs__cta .btn {
  padding: 14px 32px;
  font-size: 15px;
}

/* =========================================
   QUIZ / HOW TO CHOOSE
   ========================================= */
.quiz-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--brand) 0%, #6a0b2f 100%);
  position: relative;
  overflow: hidden;
}
.quiz-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,77,126,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.quiz-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.quiz-section__steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 32px;
}
.quiz-section__steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.step-num {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Quiz Card */
.quiz-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.quiz-card__question {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.quiz-card__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.quiz-option {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  transition: all var(--transition);
  cursor: pointer;
}
.quiz-option:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-pale);
}
.quiz-option--selected {
  border-color: var(--brand);
  background: var(--brand-pale);
  color: var(--brand);
}

.quiz-card__progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.quiz-card__progress-bar {
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-card__step {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* =========================================
   ADVANTAGES
   ========================================= */
.advantages {
  padding: 80px 0;
  background: #fff;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.advantage-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.advantage-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.advantage-card__icon { font-size: 32px; margin-bottom: 12px; }

.advantage-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.advantage-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-light);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
}

.step__num {
  width: 52px;
  height: 52px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(139,15,62,0.3);
}

.step__content h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.step__content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.step__connector {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  margin-top: 26px;
  opacity: 0.3;
}

/* =========================================
   TEACHERS
   ========================================= */
.teachers {
  padding: 80px 0;
  background: #fff;
}

.teachers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
}
.teacher-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.teacher-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.teacher-card__avatar--1 { background: linear-gradient(135deg, #8B0F3E, #FF4D7E); }
.teacher-card__avatar--2 { background: linear-gradient(135deg, #1a237e, #42a5f5); }
.teacher-card__avatar--3 { background: linear-gradient(135deg, #1b5e20, #66bb6a); }
.teacher-card__avatar--4 { background: linear-gradient(135deg, #4a148c, #ab47bc); }

.teacher-card__info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.teacher-card__subject {
  display: inline-block;
  padding: 3px 10px;
  background: var(--brand-pale);
  color: var(--brand);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
}

.teacher-card__info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.teachers__cta {
  text-align: center;
  margin-top: 40px;
}

/* =========================================
   RESULTS
   ========================================= */
.results {
  padding: 80px 0;
  background: var(--bg-light);
}

.results__numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
  justify-content: center;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.result-num {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.result-num__value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline;
}
.result-num__pct {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
}

.result-num__label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card__avatar--2 { background: linear-gradient(135deg, #1a237e, #42a5f5); }
.review-card__avatar--3 { background: linear-gradient(135deg, #2e7d32, #66bb6a); }

.review-card__header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.review-card__header span {
  font-size: 11px;
  color: var(--text-muted);
}

.review-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.review-card__stars {
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 2px;
}

/* =========================================
   FREE
   ========================================= */
.free-section {
  padding: 80px 0;
  background: #fff;
}

.free-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.free-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
}
.free-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.free-card--accent {
  background: var(--brand-pale);
  border-color: var(--brand);
}

.free-card__icon { font-size: 32px; }

.free-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.free-card p {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.6;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
  padding: 80px 0;
  background: var(--bg-light);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq__item.open { box-shadow: var(--shadow-md); }

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq__question:hover { color: var(--brand); }
.faq__item.open .faq__question { color: var(--brand); }

.faq__arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}
.faq__item.open .faq__arrow {
  transform: rotate(180deg);
  color: var(--brand);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__item.open .faq__answer { max-height: 200px; }

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
  padding: 110px 0 100px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,77,126,0.25), transparent 60%),
    radial-gradient(ellipse at 15% 20%, rgba(255,180,210,0.15), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(130,5,50,0.3), transparent 55%);
  pointer-events: none;
}
.final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Decorative shapes */
.final-cta__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.final-cta__shape--1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,180,210,0.45), transparent 70%);
  top: -120px;
  left: -100px;
  animation: ctaFloat 9s ease-in-out infinite;
}
.final-cta__shape--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,77,126,0.5), transparent 70%);
  bottom: -80px;
  right: -60px;
  animation: ctaFloat 11s ease-in-out infinite reverse;
}
.final-cta__shape--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 70%);
  top: 40%;
  right: 20%;
  animation: ctaFloat 7s ease-in-out infinite;
}
@keyframes ctaFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -20px) scale(1.08); }
}

/* Photo collage */
.final-cta__photo {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.35);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.1) inset;
  background: rgba(255,255,255,0.1);
  z-index: 1;
  animation: ctaPhotoFloat 7s ease-in-out infinite;
}
.final-cta__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
/* Pushti tonli overlay — brend rangiga mos */
.final-cta__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180,20,70,0.15), rgba(255,77,126,0.1));
  pointer-events: none;
}

.final-cta__photo--1 {
  top: 12%;
  left: 4%;
  width: 140px;
  height: 180px;
  transform: rotate(-8deg);
  animation-delay: 0s;
}
.final-cta__photo--2 {
  top: 58%;
  left: 8%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  transform: rotate(0);
  animation-delay: 1.4s;
}
.final-cta__photo--3 {
  top: 8%;
  right: 5%;
  width: 160px;
  height: 120px;
  transform: rotate(6deg);
  animation-delay: 0.8s;
}
.final-cta__photo--4 {
  bottom: 10%;
  right: 4%;
  width: 130px;
  height: 160px;
  transform: rotate(5deg);
  animation-delay: 2s;
}
.final-cta__photo--5 {
  top: 44%;
  left: 20%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  animation-delay: 2.6s;
}
.final-cta__photo--6 {
  bottom: 14%;
  right: 18%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation-delay: 3.2s;
}
@keyframes ctaPhotoFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}
.final-cta__photo--1 { --rot: -8deg; }
.final-cta__photo--3 { --rot: 6deg; }
.final-cta__photo--4 { --rot: 5deg; }
.final-cta__photo--2,
.final-cta__photo--5,
.final-cta__photo--6 { --rot: 0deg; }

.final-cta__inner {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.final-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.final-cta__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.25);
  animation: ctaDotPulse 1.8s ease-in-out infinite;
}
@keyframes ctaDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,0.05); }
}

.final-cta__inner h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.final-cta__inner > p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}

.final-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.final-cta__note {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}

/* Trust indicators row */
.final-cta__trust {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.final-cta__trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.final-cta__trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  font-size: 20px;
}
.final-cta__trust-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.final-cta__trust-text strong {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.final-cta__trust-text span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.final-cta__trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.25);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #0F0A14;
  color: rgba(255,255,255,0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding: 60px 24px 40px;
}

.footer__logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__brand p {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 16px;
  margin-bottom: 20px;
  max-width: 260px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}
.footer__socials a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer__socials a:hover {
  background: var(--brand);
  color: #fff;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col li a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__col li a:hover { color: #fff; }

.footer__contacts {
  gap: 14px !important;
}
.footer__contacts li {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer__bottom-links {
  display: flex;
  gap: 20px;
}
.footer__bottom-links a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* =========================================
   RESPONSIVE
   ========================================= */

/* Desktop hero shift: rasmni va cardlarni o'ngga 300px suradi (keng ekran) */
@media (min-width: 1500px) {
  .hero__student {
    right: max(calc((100vw - 1200px) / 2 + 24px - 300px), -80px);
  }
  .hero__card--c1 { left: calc(10% + 300px); }
  .hero__card--c2 { right: calc(44% - 300px); }
  .hero__card--c3 { left: calc(10% + 300px); }
}

/* Tablet hero (901-1199px): mobile pattern bilan o'xshash — rasm o'ngda, cardlar chap pastda */
@media (min-width: 901px) and (max-width: 1199px) {
  .hero { padding: 56px 0 0; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 480px;
  }
  .hero__student-wrap {
    top: auto;
    bottom: 60px;
    left: 0;
    right: 0;
    width: 100%;
    height: 460px;
    overflow: visible;
  }
  .hero__student {
    position: absolute !important;
    height: 460px !important;
    width: auto !important;
    right: 32px !important;
    bottom: 0 !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    object-position: bottom right !important;
    object-fit: contain !important;
  }
  .hero__glow {
    width: 320px;
    height: 320px;
    left: auto;
    right: 60px;
    bottom: -30px;
    transform: none;
  }
  .hero__card { width: auto; min-width: 180px; }
  .hero__card--c1 {
    left: 24px !important;
    top: 8% !important;
    bottom: auto !important;
    right: auto !important;
    transform: none !important;
  }
  .hero__card--c2 {
    left: 24px !important;
    top: 38% !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
  .hero__card--c3 {
    left: 24px !important;
    top: 68% !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .programs__grid   { grid-template-columns: repeat(2, 1fr); }
  .segment__grid    { grid-template-columns: repeat(3, 1fr); }
  .teachers__grid   { grid-template-columns: repeat(2, 1fr); }
  .results__numbers { grid-template-columns: repeat(2, 1fr); }
  .reviews          { grid-template-columns: repeat(2, 1fr); }
  .free-section__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner    { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .footer__brand    { grid-column: span 1; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }

  .header__inner { gap: 20px; }
  .header__nav { gap: 2px; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .header__phone { font-size: 12px; }
  .btn--select-program { display: none; }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }

  /* ===== HERO ===== */
  .hero { min-height: auto; padding: 48px 0 0; }
  .hero__inner          { grid-template-columns: 1fr; gap: 24px; padding-bottom: 340px; }
  .hero__gfx-ring--3    { display: none; }
  .hero__title { font-size: clamp(28px, 7vw, 40px); }
  .hero__subtitle { font-size: 15px; }
  .hero__ctas { gap: 10px; }
  .hero__stats { flex-wrap: wrap; gap: 20px; }
  .hero__badge { font-size: 11px; }

  /* Mobile hero image — chap tomonda, kartochkalar o'ngda */
  .hero__student-wrap {
    display: block !important;
    top: auto;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    height: 320px;
    overflow: visible;
  }
  .hero__glow {
    display: block !important;
    width: 200px;
    height: 200px;
    left: 30px;
    bottom: -10px;
    transform: none;
    opacity: 0.5;
  }
  .hero__student {
    position: absolute !important;
    bottom: 0 !important;
    left: -6px !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    height: 320px !important;
    width: 199px !important;  /* 320 * 815/1312 ≈ 199 */
    max-width: 54% !important;
    object-fit: contain !important;
    object-position: bottom center !important;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.28));
  }
  .hero__student { left: 40px !important; }
  .hero__glow { left: 70px !important; }

  /* Mobile cards — o'ng tomonda ustun, opaque + kuchli soya, rasm bilan kesishmaydi */
  .hero__card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 14px;
    width: 184px;
    height: 58px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 14px 32px rgba(0,0,0,0.32), 0 2px 6px rgba(0,0,0,0.18);
    z-index: 12;
  }
  .hero__card > div:not(.hero__card-icon):not(.hero__card-avatars) {
    min-width: 0;
    flex: 1;
  }
  .hero__card-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; flex-shrink: 0; }
  .hero__card--c1 strong,
  .hero__card--c2 strong,
  .hero__card--c3 strong { font-size: 13px; line-height: 1.2; }
  .hero__card--c1 small,
  .hero__card--c2 small,
  .hero__card--c3 small {
    font-size: 10.5px;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* avatarlar: 3 ta 22px circle, overlap bilan haqiqiy en 46px */
  .hero__card-avatars { width: 46px; height: 22px; flex-shrink: 0; }
  .hero__card-avatars .avatar-circle { width: 22px; height: 22px; font-size: 8px; border-width: 1.5px; }
  .hero__card-avatars .avatar-circle--1 { left: 0; }
  .hero__card-avatars .avatar-circle--2 { left: 12px; }
  .hero__card-avatars .avatar-circle--3 { left: 24px; }

  /* Kartochkalar — rasm balandligi 320px ichida tekis taqsimlangan */
  .hero__card--c1 { top: 16px;  right: 24px; left: auto; bottom: auto; }
  .hero__card--c2 { top: 96px;  right: 24px; left: auto; }
  .hero__card--c3 { top: 176px; right: 24px; left: auto; bottom: auto; transform: none; }
  .quiz-section__inner  { grid-template-columns: 1fr; }

  /* ===== HEADER ===== */
  .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 64px;
  }
  .header__nav       { display: none; flex: none; }
  .header__phone     { display: none; }
  .header__messenger { display: none; }
  .btn--select-program { display: none; }

  /* Actions — logoning o'ng tomonida: Yozilish + burger */
  .header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }
  .header__actions .btn--primary {
    padding: 9px 18px;
    font-size: 13px;
  }

  .header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    gap: 0;
    background: transparent;
    border-radius: 10px;
    position: relative;
  }
  .header__burger span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), top var(--transition);
  }
  .header__burger span:nth-child(1) { top: 13px; }
  .header__burger span:nth-child(2) { top: 19px; }
  .header__burger span:nth-child(3) { top: 25px; }

  /* ===== MOBILE NAV DRAWER ===== */
  .header__nav.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    background: #fff;
    padding: 16px 20px calc(32px + env(safe-area-inset-bottom));
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    gap: 0;
    align-items: stretch;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    animation: navSlideDown 0.28s ease-out;
  }
  body.nav-open {
    overflow: hidden;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .header__nav.open .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border);
    position: static;
  }
  .header__nav.open .nav-item:last-child { border-bottom: none; }
  .header__nav.open .nav-link {
    padding: 16px 8px;
    font-size: 16px;
    width: 100%;
    justify-content: space-between;
    color: var(--text-primary);
    font-weight: 600;
    background: transparent;
  }
  .header__nav.open .nav-link:hover,
  .header__nav.open .nav-link:focus {
    background: var(--brand-pale);
    color: var(--brand);
  }
  .header__nav.open .dropdown-arrow {
    transition: transform var(--transition);
  }
  .header__nav.open .nav-item--dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Dropdown in mobile drawer */
  .header__nav.open .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 4px 0 12px 8px;
    display: none;
    min-width: 0;
    background: transparent;
    max-height: none;
    overflow: visible;
    transition: none;
  }
  .header__nav.open .nav-item--dropdown.open .dropdown {
    display: block;
  }
  .header__nav.open .dropdown__item {
    padding: 12px;
    border-radius: 10px;
  }
  .header__nav.open .dropdown__item strong { font-size: 14px; }
  .header__nav.open .dropdown__item small  { font-size: 12px; }

  .section-header { margin-bottom: 36px; }
  .section-title { font-size: clamp(22px, 5.5vw, 32px); }
  .section-sub { font-size: 14.5px; }

  /* ===== FOOTER (tablet) ===== */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
    padding: 56px 20px 32px;
  }
  .footer__brand { grid-column: span 2; max-width: 520px; }
  .footer__brand p { max-width: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .segment__grid     { grid-template-columns: repeat(2, 1fr); }
  .programs__grid    { grid-template-columns: 1fr; }
  .teachers__grid    { grid-template-columns: 1fr; }
  .results__numbers  { grid-template-columns: repeat(2, 1fr); }
  .reviews           { grid-template-columns: 1fr; }
  .free-section__grid { grid-template-columns: 1fr; }
  .advantages__grid  { grid-template-columns: 1fr; }

  /* ===== HEADER mobile ===== */
  .header__inner { height: 60px; gap: 10px; }
  .header__logo img { height: 26px; }
  .header__actions { gap: 8px; }
  .header__actions .btn--primary {
    padding: 8px 14px;
    font-size: 12.5px;
  }

  .header__nav.open { top: 60px; padding: 16px 16px 100px; }

  .btn--lg { padding: 13px 24px; font-size: 14px; }
  .btn--md { padding: 10px 20px; font-size: 13px; }

  /* ===== HERO mobile ===== */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__stats {
    gap: 14px 22px;
    justify-content: flex-start;
  }
  .hero__stat strong { font-size: 22px; }
  .hero__stat-divider { display: none; }
  .hero__wave svg { height: 70px; }

  .hero__inner { padding-bottom: 320px; }
  .hero__student-wrap { height: 300px !important; bottom: 28px; }
  .hero__glow { width: 200px; height: 200px; left: 20px; }
  .hero__student { height: 300px !important; width: 186px !important; left: 32px !important; }
  .hero__glow { left: 56px !important; }
  .hero__card { width: 172px; height: 54px; padding: 9px 11px; gap: 9px; }
  .hero__card-icon { width: 30px; height: 30px; font-size: 15px; }
  .hero__card--c1 strong,
  .hero__card--c2 strong,
  .hero__card--c3 strong { font-size: 12.5px; }
  .hero__card-avatars { width: 42px; height: 20px; }
  .hero__card-avatars .avatar-circle { width: 20px; height: 20px; font-size: 7.5px; }
  .hero__card-avatars .avatar-circle--1 { left: 0; }
  .hero__card-avatars .avatar-circle--2 { left: 11px; }
  .hero__card-avatars .avatar-circle--3 { left: 22px; }
  .hero__card--c1 { top: 14px;  right: 20px; }
  .hero__card--c2 { top: 88px;  right: 20px; }
  .hero__card--c3 { top: 162px; right: 20px; }

  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step__connector {
    width: 2px;
    height: 32px;
    max-width: none;
    margin: 0 auto;
  }

  .final-cta__buttons { flex-direction: column; align-items: center; }
  .final-cta__buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
  .final-cta__trust {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
    width: 100%;
    max-width: 320px;
  }
  .final-cta__trust-divider {
    width: 60%;
    height: 1px;
  }
  .final-cta__photo--2,
  .final-cta__photo--4,
  .final-cta__photo--5,
  .final-cta__photo--6 { display: none; }
  .final-cta__photo--1 {
    top: 4%;
    left: 3%;
    width: 80px;
    height: 100px;
  }
  .final-cta__photo--3 {
    top: 4%;
    right: 3%;
    width: 90px;
    height: 70px;
  }

  /* ===== FOOTER (mobile) ===== */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding: 48px 16px 28px;
  }
  .footer__brand {
    grid-column: span 2;
    text-align: left;
  }
  .footer__brand p { font-size: 13px; margin-top: 12px; margin-bottom: 16px; }
  .footer__col h4 { margin-bottom: 12px; font-size: 12px; }
  .footer__col ul { gap: 8px; }
  .footer__col li a { font-size: 13px; }
  .footer__socials { gap: 10px; }
  .footer__socials a { width: 34px; height: 34px; }

  .footer__bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 16px 16px;
    font-size: 11.5px;
  }
  .footer__bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__brand { grid-column: span 1; }
}

@media (max-width: 420px) {
  .hero__badge { font-size: 10.5px; padding: 5px 10px; }
  .hero__title { font-size: 26px; }
  .section-title { font-size: 22px; }
  .btn--lg { padding: 12px 20px; font-size: 13.5px; }

  .header__actions .btn--primary { padding: 7px 12px; font-size: 12px; }

  .hero__inner { padding-bottom: 290px; }
  .hero__student-wrap { height: 270px !important; bottom: 24px; }
  .hero__glow { width: 180px; height: 180px; left: 12px; }
  .hero__student { height: 270px !important; width: 168px !important; left: 24px !important; }
  .hero__glow { left: 44px !important; }
  .hero__card { width: 158px; height: 50px; padding: 8px 10px; gap: 8px; }
  .hero__card-icon { width: 28px; height: 28px; font-size: 14px; }
  .hero__card--c1 strong,
  .hero__card--c2 strong,
  .hero__card--c3 strong { font-size: 12px; }
  .hero__card--c1 small,
  .hero__card--c2 small,
  .hero__card--c3 small { font-size: 10px; }
  .hero__card-avatars { width: 40px; height: 18px; }
  .hero__card-avatars .avatar-circle { width: 18px; height: 18px; font-size: 7px; }
  .hero__card-avatars .avatar-circle--1 { left: 0; }
  .hero__card-avatars .avatar-circle--2 { left: 10px; }
  .hero__card-avatars .avatar-circle--3 { left: 20px; }
  .hero__card--c1 { top: 12px;  right: 16px; }
  .hero__card--c2 { top: 78px;  right: 16px; }
  .hero__card--c3 { top: 144px; right: 16px; }
}
