/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== PRELOADER ===== */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: #08080F;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader-logo {
  width: 100px; height: 100px; border-radius: 50%; object-fit: contain;
  animation: preloader-pulse 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255,208,0,0.5));
}
@keyframes preloader-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.85; }
}
.preloader-bar {
  width: 180px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden;
}
.preloader-progress {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, #FFD000, #FF8C00);
  transition: width 0.3s ease;
}
.preloader-text { color: rgba(255,255,255,0.4); font-size: 0.8rem; letter-spacing: 2px; font-family: 'Nunito', sans-serif; }

/* ===== LIGHT THEME ===== */
:root[data-theme="light"] body { background: #C8C4E8; color: #1A1A2E; }
:root[data-theme="light"] body::before { opacity: 0.2; }
:root[data-theme="light"] #particles { opacity: 0.15; }

/* Ambient blobs */
:root[data-theme="light"] .ambient-blob-1 { background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 65%); }
:root[data-theme="light"] .ambient-blob-2 { background: radial-gradient(circle, rgba(255,180,0,0.18) 0%, transparent 65%); }
:root[data-theme="light"] .ambient-blob-3 { background: radial-gradient(circle, rgba(236,72,153,0.12) 0%, transparent 65%); }
:root[data-theme="light"] .ambient-blob-4 { background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 65%); }

/* Navbar */
:root[data-theme="light"] .navbar { background: transparent; }
:root[data-theme="light"] .navbar.scrolled { background: rgba(242,240,255,0.95); box-shadow: 0 2px 24px rgba(26,26,46,0.08); }
:root[data-theme="light"] .nav-links a { color: #3A3A5C; }
:root[data-theme="light"] .nav-links a:hover { color: #1A1A2E; }
:root[data-theme="light"] .btn-nav { background: linear-gradient(135deg,#FFD000,#FF8C00); color: #1A1A2E; }
:root[data-theme="light"] .theme-toggle { border-color: rgba(26,26,46,0.15); background: rgba(26,26,46,0.05); color: #1A1A2E; }
:root[data-theme="light"] .burger span { background: #1A1A2E; }

/* Hero */
:root[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(255,180,0,0.1) 0%, transparent 55%),
    #C8C4E8;
}
:root[data-theme="light"] .hero-title { color: #1A1A2E; }
:root[data-theme="light"] .hero-yellow { color: #D4920A; }
:root[data-theme="light"] .hero-outline { -webkit-text-stroke-color: rgba(26,26,46,0.2); color: transparent; }
:root[data-theme="light"] .hero-sub { color: #4A4A6A; }
:root[data-theme="light"] .hero-badge { background: rgba(212,146,10,0.1); border-color: rgba(212,146,10,0.3); color: #A87000; }
:root[data-theme="light"] .badge-dot { background: #D4920A; }
:root[data-theme="light"] .btn-outline { border-color: rgba(26,26,46,0.18); color: #1A1A2E; background: rgba(26,26,46,0.04); }
:root[data-theme="light"] .btn-outline:hover { border-color: #D4920A; color: #D4920A; }
:root[data-theme="light"] .stat-num { color: #C47A00; }
:root[data-theme="light"] .stat-plus { color: #C47A00; }
:root[data-theme="light"] .stat-label { color: #6868888; }
:root[data-theme="light"] .stat-divider { background: rgba(26,26,46,0.1); }
:root[data-theme="light"] .hero-floating-tag { background: rgba(255,255,255,0.92); border-color: rgba(26,26,46,0.1); color: #1A1A2E; box-shadow: 0 8px 24px rgba(26,26,46,0.1); }
:root[data-theme="light"] .hero-ring-1 { border-color: rgba(212,146,10,0.12); border-top-color: rgba(212,146,10,0.45); }
:root[data-theme="light"] .hero-ring-2 { border-color: rgba(124,58,237,0.1); border-right-color: rgba(124,58,237,0.4); }
:root[data-theme="light"] .hero-ring-3 { border-color: rgba(236,72,153,0.07); border-bottom-color: rgba(236,72,153,0.3); }

/* Sections — общий текст */
:root[data-theme="light"] h1,
:root[data-theme="light"] h2,
:root[data-theme="light"] h3 { color: #1A1A2E; }
:root[data-theme="light"] p { color: #4A4A6A; }
:root[data-theme="light"] .section-tag { background: rgba(212,146,10,0.1); color: #A07000; border-color: rgba(212,146,10,0.25); }
:root[data-theme="light"] .summer-tag { background: rgba(220,70,0,0.08); color: #B04000; border-color: rgba(220,70,0,0.2); }
:root[data-theme="light"] .yellow { color: #C47A00; }

/* About */
:root[data-theme="light"] .about { background: rgba(185,180,220,0.8); }
:root[data-theme="light"] .feature-item { background: rgba(255,255,255,0.7); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .feature-item:hover { background: rgba(255,255,255,0.9); border-color: rgba(212,146,10,0.2); }

/* Courses */
:root[data-theme="light"] .courses { background: rgba(200,196,232,0.8); }
:root[data-theme="light"] .course-card { background: rgba(255,255,255,0.75); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .course-card:hover { border-color: rgba(212,146,10,0.3); box-shadow: 0 20px 50px rgba(26,26,46,0.09); }
:root[data-theme="light"] .course-tags li { background: rgba(212,146,10,0.1); color: #A07000; border-color: rgba(212,146,10,0.2); }
:root[data-theme="light"] .course-btn { color: #C47A00; }

/* Uzbek */
:root[data-theme="light"] .uzbek-banner { background: rgba(185,180,220,0.8); }
:root[data-theme="light"] .uzbek-card { background: linear-gradient(135deg, rgba(124,58,237,0.07), rgba(242,240,255,1)); border-color: rgba(124,58,237,0.13); }
:root[data-theme="light"] .uzbek-stat-item { background: rgba(255,255,255,0.6); border-color: rgba(26,26,46,0.08); }
:root[data-theme="light"] .uzbek-stat-num { color: #C47A00; }
:root[data-theme="light"] .uzbek-stat-label { color: #606080; }

/* Summer */
:root[data-theme="light"] .summer { background: rgba(200,196,232,0.8); }
:root[data-theme="light"] .summer-detail { background: rgba(255,255,255,0.7); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .activity { background: rgba(255,255,255,0.7); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .summer-float-badge { background: rgba(26,26,46,0.85); color: #FFD000; }
:root[data-theme="light"] .camp-banner { background: rgba(212,146,10,0.05); border-color: rgba(212,146,10,0.15); }

/* Exam */
:root[data-theme="light"] .exam { background: rgba(185,180,220,0.8); }
:root[data-theme="light"] .exam-subjects span { background: rgba(255,255,255,0.75); border-color: rgba(26,26,46,0.09); color: #1A1A2E; }
:root[data-theme="light"] .exam-subjects span:hover { border-color: rgba(212,146,10,0.3); color: #A07000; }
:root[data-theme="light"] .exam-list li { color: #3A3A5C; }

/* Teachers */
:root[data-theme="light"] .teachers { background: rgba(200,196,232,0.8); }
:root[data-theme="light"] .video-slide { background: rgba(255,255,255,0.7); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .video-slide-badge { background: rgba(212,146,10,0.1); color: #A07000; border-color: rgba(212,146,10,0.2); }
:root[data-theme="light"] .slider-btn { border-color: rgba(26,26,46,0.1); background: rgba(255,255,255,0.7); color: #1A1A2E; }
:root[data-theme="light"] .slider-btn:hover { background: #D4920A; color: #fff; border-color: #D4920A; }

/* Reviews */
:root[data-theme="light"] .reviews { background: rgba(185,180,220,0.8); }
:root[data-theme="light"] .review-card { background: rgba(255,255,255,0.7); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .review-overlay { background: linear-gradient(to top, rgba(235,233,255,0.95), transparent); }
:root[data-theme="light"] .review-overlay p { color: #1A1A2E; }

/* Contact */
:root[data-theme="light"] .contact { background: rgba(200,196,232,0.8); }
:root[data-theme="light"] .contact-form-wrap { background: rgba(255,255,255,0.75); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .form-label { color: rgba(26,26,46,0.7); }
:root[data-theme="light"] .form-hint { color: rgba(26,26,46,0.45); }
:root[data-theme="light"] .form-privacy { color: rgba(26,26,46,0.35); }
:root[data-theme="light"] .form-intro p { color: rgba(26,26,46,0.6); }
:root[data-theme="light"] .form-title { color: #1A1A2E; }
:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select { background: rgba(26,26,46,0.03); border-color: rgba(26,26,46,0.1); color: #1A1A2E; }
:root[data-theme="light"] .form-group input::placeholder { color: rgba(26,26,46,0.3); }
:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus { border-color: #D4920A; box-shadow: 0 0 0 3px rgba(212,146,10,0.1); }
:root[data-theme="light"] .contact-item a:hover { color: #D4920A; }

/* Footer */
:root[data-theme="light"] .footer { background: rgba(175,170,210,0.98); border-color: rgba(26,26,46,0.07); }
:root[data-theme="light"] .footer-logo p,
:root[data-theme="light"] .footer-links a,
:root[data-theme="light"] .footer-copy { color: #5A5A7A; }
:root[data-theme="light"] .footer-links a:hover { color: #D4920A; }

/* Modal */
:root[data-theme="light"] .modal { background: #C8C4E8; border-color: rgba(26,26,46,0.09); }

/* Preloader */
:root[data-theme="light"] .preloader { background: #C8C4E8; }
:root[data-theme="light"] .preloader-text { color: rgba(26,26,46,0.4); }
:root[data-theme="light"] .preloader-bar { background: rgba(26,26,46,0.08); }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--yellow); background: rgba(255,208,0,0.1); transform: rotate(20deg); }
:root[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.05); }

:root {
  --yellow: #FFD000;
  --yellow-dark: #F5B800;
  --yellow-glow: rgba(255,208,0,0.35);
  --dark: #08080F;
  --dark2: #0F0F1E;
  --dark3: #161628;
  --purple: #7C3AED;
  --purple2: #A855F7;
  --pink: #EC4899;
  --white: #FFFFFF;
  --gray: #8888A0;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.07);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 64px rgba(0,0,0,0.4);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== GLOBAL AMBIENT BACKGROUND ===== */
/* Fixed animated layer that covers the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 20%, rgba(124,58,237,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 15%, rgba(255,208,0,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 80% 75%, rgba(236,72,153,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 20% 80%, rgba(124,58,237,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255,208,0,0.04) 0%, transparent 60%);
  animation: global-ambient 18s ease-in-out infinite alternate;
}
@keyframes global-ambient {
  0%,100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

/* Floating ambient blobs — fixed, GPU-composited */
.ambient-blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translateZ(0);
  isolation: isolate;
}
.ambient-blob-1 {
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(124,58,237,0.28) 0%, transparent 65%);
  top: -200px; left: -200px;
  filter: blur(80px);
  animation: amb-pulse 20s ease-in-out infinite alternate;
}
.ambient-blob-2 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(255,208,0,0.18) 0%, transparent 65%);
  top: 25%; right: -250px;
  filter: blur(90px);
  animation: amb-pulse 25s ease-in-out infinite alternate-reverse;
}
.ambient-blob-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(236,72,153,0.18) 0%, transparent 65%);
  top: 60%; left: -150px;
  filter: blur(85px);
  animation: amb-pulse 22s ease-in-out infinite alternate;
}
.ambient-blob-4 {
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 65%);
  top: 85%; right: 5%;
  filter: blur(90px);
  animation: amb-pulse 28s ease-in-out infinite alternate-reverse;
}
@keyframes amb-pulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}
h1,h2,h3 { font-family: 'Montserrat', sans-serif; font-weight: 800; line-height: 1.15; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; overflow: hidden; }
.yellow { color: var(--yellow); }

/* Shared section animation — opacity only, no filter (avoids repaint) */
@keyframes section-pulse {
  0%,100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* hero-animate — без анимации, элементы всегда видимы */
.hero-animate { opacity: 1; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
[data-delay="100"] { transition-delay: 0.12s; }
[data-delay="200"] { transition-delay: 0.24s; }
[data-delay="300"] { transition-delay: 0.36s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(8,8,15,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; gap: 32px; }
.logo-img { height: 54px; width: 54px; object-fit: contain; border-radius: 50%; transition: transform var(--transition); }
.logo-img:hover { transform: rotate(-5deg) scale(1.08); }
.nav-links { display: flex; list-style: none; gap: 32px; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: color var(--transition); position: relative; letter-spacing: 0.3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--yellow); border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.btn-nav {
  background: var(--yellow); color: var(--dark);
  padding: 11px 24px; border-radius: 50px; text-decoration: none;
  font-weight: 900; font-size: 0.88rem; letter-spacing: 0.3px;
  transition: all var(--transition); white-space: nowrap;
  box-shadow: 0 0 0 0 var(--yellow-glow);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--yellow-glow); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; }
.burger span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
/* ===== HERO — zero animations, zero filters ===== */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    var(--dark);
  padding-top: 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0 100px;
  min-height: calc(100vh - 90px);
}
.hero-left { display: flex; flex-direction: column; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,208,0,0.1); border: 1px solid rgba(255,208,0,0.25);
  color: var(--yellow); padding: 8px 20px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 700; margin-bottom: 28px;
  width: fit-content;
}
.badge-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; }

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 28px;
  color: #fff;
}
.hero-yellow { color: #FFD000; }
.hero-outline {
  -webkit-text-stroke: 2px rgba(255,255,255,0.3);
  color: transparent;
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 460px;
  margin-bottom: 44px;
  line-height: 1.75;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 38px; border-radius: 50px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #FFD000, #FF8C00);
  color: #0D0D1A;
  box-shadow: 0 4px 24px rgba(255,180,0,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(255,180,0,0.55); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.btn-outline:hover { border-color: #FFD000; color: #FFD000; }
.btn-full { width: 100%; }

.hero-stats { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem; font-weight: 900;
  color: #FFD000;
  display: inline;
}
.stat-plus { font-size: 1.5rem; font-weight: 900; color: #FFD000; }
.stat-label { display: block; font-size: 0.8rem; color: var(--gray); font-weight: 600; margin-top: 4px; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); }

/* Hero right */
.hero-right { display: flex; align-items: center; justify-content: center; }
.hero-logo-wrap {
  position: relative;
  width: 360px; height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.hero-logo-big {
  width: 210px; height: 210px;
  border-radius: 50%;
  object-fit: contain;
  position: relative; z-index: 3;
}
.hero-logo-wrap { isolation: isolate; }

.hero-logo-big {
  width: 210px; height: 210px;
  border-radius: 50%;
  object-fit: contain;
  position: relative; z-index: 3;
  will-change: transform;
  animation: logo-float 5s ease-in-out infinite;
}
@keyframes logo-float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid transparent;
  will-change: transform;
}
.hero-ring-1 {
  width: 270px; height: 270px;
  border-color: rgba(255,208,0,0.15);
  border-top-color: rgba(255,208,0,0.6);
  animation: spin-cw 9s linear infinite;
}
.hero-ring-2 {
  width: 320px; height: 320px;
  border-color: rgba(124,58,237,0.12);
  border-right-color: rgba(124,58,237,0.55);
  animation: spin-ccw 14s linear infinite;
}
.hero-ring-3 {
  width: 370px; height: 370px;
  border-color: rgba(236,72,153,0.08);
  border-bottom-color: rgba(236,72,153,0.4);
  animation: spin-cw 20s linear infinite;
}
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

.hero-floating-tag {
  position: absolute;
  background: rgba(12,12,28,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  z-index: 4;
  color: #fff;
  will-change: transform;
}
.tag-1 { top: 8px;    left: -10px;  border-color: rgba(255,208,0,0.3);    animation: tag-y 4s ease-in-out infinite; }
.tag-2 { bottom: 28px; left: -20px; border-color: rgba(124,58,237,0.35);  animation: tag-y 5.5s ease-in-out infinite 0.7s; }
.tag-3 { top: 16px;   right: -10px; border-color: rgba(236,72,153,0.3);   animation: tag-y 4.8s ease-in-out infinite 1.3s; }
.tag-4 { bottom: 8px; right: -5px;  border-color: rgba(255,208,0,0.25);   animation: tag-y 5s ease-in-out infinite 0.4s; }
@keyframes tag-y {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes bounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(5px); }
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  display: inline-block; background: rgba(255,208,0,0.15); border: 1.5px solid rgba(255,208,0,0.4);
  color: var(--yellow); padding: 8px 24px; border-radius: 50px; font-size: 0.95rem;
  font-weight: 800; margin-bottom: 18px; letter-spacing: 2px; text-transform: uppercase;
}
.summer-tag { background: rgba(255,140,0,0.1); border-color: rgba(255,140,0,0.25); color: #FF8C00; }
.section-header h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.section-header p { color: var(--gray); font-size: 1.05rem; max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* ===== ABOUT ===== */
.about {
  background: rgba(15,15,30,0.6);
}
.about::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.4), rgba(255,208,0,0.4), transparent);
}
.about::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);
}
.about .about-grid { position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(255,208,0,0.3), rgba(236,72,153,0.2));
  z-index: 0;
}
.about-img { width: 100%; border-radius: var(--radius); display: block; position: relative; z-index: 1; }
.about-badge-float {
  position: absolute; bottom: -24px; right: -24px; z-index: 2;
  background: linear-gradient(135deg, #FFD000, #FF8C00);
  color: var(--dark); padding: 18px 24px; border-radius: 18px;
  font-weight: 900; font-size: 0.95rem;
  box-shadow: 0 12px 40px rgba(255,180,0,0.35);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-12px) rotate(1deg)} }
.about-lead { font-size: 1.1rem; color: rgba(255,255,255,0.82); margin-bottom: 36px; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.feature-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  padding: 18px 22px; border-radius: var(--radius-sm);
  transition: all var(--transition); cursor: default;
}
.feature-item:hover { background: rgba(255,208,0,0.05); border-color: rgba(255,208,0,0.2); transform: translateX(8px); }
.feature-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.feature-item strong { display: block; font-weight: 800; margin-bottom: 4px; font-size: 0.95rem; }
.feature-item p { color: var(--gray); font-size: 0.88rem; line-height: 1.5; }
.about-contacts { display: flex; flex-direction: column; gap: 10px; color: var(--gray); font-size: 0.92rem; }
.about-videos { display: flex; gap: 24px; margin-top: 56px; }
.about-video-card { flex: 1; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.about-video-wrap { position: relative; width: 100%; aspect-ratio: 9/16; }
.about-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== COURSES ===== */
.courses { background: rgba(8,8,15,0.55); }
.courses::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);
}
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.course-card {
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 34px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
  -webkit-font-smoothing: antialiased;
}
.course-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,208,0,0.08) 0%, rgba(124,58,237,0.06) 100%);
  opacity: 0; transition: opacity var(--transition);
}
.course-card::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.6s ease;
}
.course-card:hover { transform: translateY(-12px) scale(1.01); border-color: rgba(255,208,0,0.25); box-shadow: 0 30px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,208,0,0.1); }
.course-card:hover::before { opacity: 1; }
.course-card:hover::after { left: 140%; }
.course-icon { font-size: 2.8rem; line-height: 1; }
.course-card h3 { font-size: 1.25rem; }
.course-card p { color: var(--gray); font-size: 0.92rem; flex: 1; line-height: 1.65; }
.course-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.course-tags li {
  background: rgba(255,208,0,0.08); color: var(--yellow); border: 1px solid rgba(255,208,0,0.15);
  padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700;
}
.course-btn { color: var(--yellow); text-decoration: none; font-weight: 800; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition); }
.course-btn:hover { gap: 12px; }
.course-btn::after { content: '→'; }

/* ===== UZBEK BANNER ===== */
.uzbek-banner { background: rgba(15,15,30,0.6); padding: 70px 0; position: relative; overflow: hidden; }
.uzbek-banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);
}
.uzbek-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.18) 0%, rgba(8,8,15,1) 70%);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 32px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 520px;
}
.uzbek-text {
  flex: 1;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.uzbek-img-wrap {
  width: 42%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.uzbek-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.uzbek-card::before {
  content: ''; position: absolute; top: -60%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 65%);
  pointer-events: none;
}
.new-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: white; padding: 7px 20px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 800; margin-bottom: 22px; letter-spacing: 0.5px;
}
.uzbek-text h2 { font-size: 2.4rem; margin-bottom: 18px; }
.uzbek-text p { color: var(--gray); margin-bottom: 20px; line-height: 1.75; }
.uzbek-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uzbek-list li {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.4;
}
:root[data-theme="light"] .uzbek-list li {
  color: #2A2A44;
  background: rgba(255,255,255,0.5);
  border-color: rgba(26,26,46,0.08);
}
.uzbek-img-wrap { position: relative; }
.uzbek-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.uzbek-stat-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uzbek-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--yellow);
}
.uzbek-stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 600;
}

/* ===== SUMMER ===== */
.summer { background: rgba(8,8,15,0.55); }
.summer::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);
}
.summer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: 48px; }
.summer-details { display: flex; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.summer-detail {
  display: flex; gap: 14px; align-items: center;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  padding: 16px 20px; border-radius: var(--radius-sm); flex: 1; min-width: 110px;
}
.s-icon { font-size: 1.8rem; }
.summer-detail strong { display: block; font-weight: 900; font-size: 1rem; }
.summer-detail p { color: var(--gray); font-size: 0.85rem; }
.summer-activities { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.activity {
  display: flex; align-items: center; gap: 14px; padding: 13px 18px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.activity:hover { border-color: rgba(255,208,0,0.25); background: rgba(255,208,0,0.04); transform: translateX(6px); }
.activity span { font-weight: 800; }
.activity small { color: var(--gray); font-size: 0.85rem; margin-left: auto; }
.summer-img { position: relative; }
.summer-img::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, #FFD000 0%, #FF8C00 50%, #EC4899 100%);
  z-index: 0;
}
.summer-img img { width: 100%; border-radius: var(--radius); display: block; position: relative; z-index: 1; }
.summer-float-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2;
  background: rgba(8,8,15,0.92);
  border: 1px solid rgba(255,208,0,0.4);
  color: var(--yellow); padding: 14px 20px; border-radius: var(--radius-sm);
  font-weight: 900; text-align: center; font-size: 0.92rem;
  animation: float 3.5s ease-in-out infinite;
}
.camp-banner {
  background: linear-gradient(135deg, rgba(255,208,0,0.06), rgba(124,58,237,0.08));
  border: 1px solid rgba(255,208,0,0.12);
  border-radius: var(--radius); padding: 36px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.camp-text h3 { font-size: 1.35rem; margin-bottom: 8px; }
.camp-text p { color: var(--gray); font-size: 0.92rem; }

/* ===== EXAM ===== */
.exam { background: rgba(15,15,30,0.6); }
.exam::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,208,0,0.3), rgba(124,58,237,0.3), transparent);
  z-index: 1;
}
.exam::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 25% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);
}
.exam-card { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: center; }
.exam-left h2 { font-size: 2.6rem; margin-bottom: 18px; }
.exam-left > p { color: var(--gray); margin-bottom: 28px; line-height: 1.75; }
.exam-subjects { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.exam-subjects span {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 800; font-size: 0.92rem;
  transition: all var(--transition);
}
.exam-subjects span:hover { border-color: rgba(255,208,0,0.3); color: var(--yellow); }
.exam-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.exam-list li { color: rgba(255,255,255,0.82); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.exam-right { position: relative; }
.exam-right::before {
  content: ''; position: absolute; inset: -2px; border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg, rgba(255,208,0,0.4), rgba(124,58,237,0.3));
}
.exam-right img { width: 100%; border-radius: var(--radius); display: block; position: relative; z-index: 1; }

/* ===== TEACHERS / VIDEO SLIDER ===== */
.teachers { background: rgba(8,8,15,0.55); }
.teachers::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);
}

/* Video Slider */
.video-slider-wrap { position: relative; z-index: 1; }
.video-slider {
  display: flex; gap: 28px;
  overflow: hidden; padding-bottom: 8px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  align-items: flex-start;
  justify-content: flex-start;
}
.video-slide {
  flex: 0 0 calc(50% - 14px);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: start;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}
.video-slide:hover { border-color: rgba(255,208,0,0.2); box-shadow: 0 24px 60px rgba(0,0,0,0.35); transform: translateY(-6px); }
.video-slide-video-wrap {
  width: 100%;
  background: #000;
  overflow: hidden;
}
.video-slide video, .video-slide iframe {
  width: 100%; display: block;
  aspect-ratio: 9 / 16;
  max-height: 420px;
  border: none;
}
.video-slide-info {
  padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
}
.video-slide-info p { font-weight: 700; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.video-slide-badge {
  background: rgba(255,208,0,0.12); color: var(--yellow);
  border: 1px solid rgba(255,208,0,0.2);
  padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 800;
}
.slider-nav { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.slider-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04); color: white;
  cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.slider-btn:hover { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }

/* ===== REVIEWS ===== */
.reviews { background: rgba(15,15,30,0.6); }
.reviews::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236,72,153,0.3), rgba(124,58,237,0.3), transparent);
  z-index: 1;
}
.reviews::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 82% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);

}

/* Video reviews — равная сетка 4 колонки, портретный формат */
.reviews-masonry {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 0.8fr;
  gap: 20px;
  align-items: end;
}
.review-card:nth-child(1) .review-card-video { aspect-ratio: 9/16; }
.review-card:nth-child(2) .review-card-video { aspect-ratio: 9/14; }
.review-card:nth-child(3) .review-card-video { aspect-ratio: 9/16; }
.review-card:nth-child(4) .review-card-video { aspect-ratio: 9/13; }
.review-card {
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1); position: relative;
}
.review-card:hover { transform: translateY(-6px); border-color: rgba(255,208,0,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.video-play-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.12);
  transition: opacity 0.25s;
  cursor: pointer;
}
.video-play-overlay[style*="opacity: 0"] { pointer-events: none; }
.video-play-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; padding-left: 4px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  pointer-events: none;
}
.review-card-video {
  width: 100%;
  overflow: hidden;
  background: #000;
}
.review-card-video video,
.review-card-video iframe {
  width: 100%;
  display: block;
  border: none;
}
.review-card:nth-child(1) .review-card-video video { aspect-ratio: 9/16; }
.review-card:nth-child(2) .review-card-video video { aspect-ratio: 9/14; }
.review-card:nth-child(3) .review-card-video video { aspect-ratio: 9/16; }
.review-card:nth-child(4) .review-card-video video { aspect-ratio: 9/13; }

.review-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,8,15,0.9) 0%, transparent 100%);
  padding: 20px 18px 16px;
  pointer-events: none;
}
.review-stars { font-size: 0.9rem; margin-bottom: 4px; }
.review-overlay p { font-weight: 700; font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* ===== CONTACT ===== */
.contact { background: rgba(8,8,15,0.55); }
.contact::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 70%, rgba(255,208,0,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(236,72,153,0.07) 0%, transparent 50%);

}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; position: relative; z-index: 1; }
.contact-form-wrap {
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius); padding: 40px;
}
.form-intro { margin-bottom: 28px; }
.form-intro h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.form-intro p { color: var(--gray); font-size: 0.95rem; line-height: 1.5; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 8px; letter-spacing: 0.3px; }
.form-required { color: var(--yellow); }
.form-hint { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 6px; }
.form-privacy { font-size: 0.75rem; color: rgba(255,255,255,0.3); text-align: center; margin-top: 4px; line-height: 1.5; }
.form-title { font-size: 1.4rem; margin-bottom: 28px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group input, .form-group select {
  width: 100%; padding: 18px 22px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); color: var(--white);
  font-family: 'Nunito', sans-serif; font-size: 1rem;
  transition: all var(--transition); outline: none; appearance: none;
}
.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group select option { background: var(--dark2); }
.form-group input:focus, .form-group select:focus {
  border-color: var(--yellow); background: rgba(255,208,0,0.05);
  box-shadow: 0 0 0 3px rgba(255,208,0,0.12);
}
.contact-info { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.c-icon { font-size: 1.8rem; flex-shrink: 0; }
.contact-item strong { display: block; font-weight: 800; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: var(--gray); text-decoration: none; transition: color var(--transition); font-size: 0.95rem; }
.contact-item a:hover { color: var(--yellow); }
.contact-socials { display: flex; gap: 14px; margin-top: 8px; }
.social-btn {
  padding: 13px 30px; border-radius: 50px; font-weight: 800;
  text-decoration: none; font-size: 0.92rem; transition: all var(--transition); letter-spacing: 0.3px;
}
.tg { background: #229ED9; color: white; box-shadow: 0 4px 20px rgba(34,158,217,0.3); }
.ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; box-shadow: 0 4px 20px rgba(220,39,67,0.3); }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); }

/* ===== FOOTER ===== */
.footer { background: rgba(8,8,15,0.8); border-top: 1px solid rgba(255,255,255,0.05); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 14px; }
.footer-logo img { height: 46px; width: 46px; object-fit: contain; border-radius: 50%; }
.footer-logo p { color: var(--gray); font-size: 0.85rem; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.78rem; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(16px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark3); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px; padding: 52px; text-align: center;
  max-width: 400px; width: 90%;
  transform: scale(0.85) translateY(20px); transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-icon { font-size: 3.5rem; margin-bottom: 20px; }
.modal h3 { font-size: 1.8rem; margin-bottom: 12px; }
.modal p { color: var(--gray); margin-bottom: 32px; }

/* ===== VIDEO MODAL ===== */
.video-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.video-modal-overlay.active { opacity: 1; pointer-events: all; }
.video-modal-inner {
  height: calc(100vh - 80px);
  aspect-ratio: 9 / 16;
  max-width: calc(100vw - 80px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transform: scale(0.9); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.video-modal-overlay.active .video-modal-inner { transform: scale(1); }
.video-modal-inner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-modal-close {
  position: fixed; top: 16px; right: 16px; z-index: 10002;
  background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.4); border-radius: 50%;
  width: 52px; height: 52px; font-size: 22px; color: #fff;
  cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.video-modal-close:hover { background: rgba(0,0,0,0.85); }

/* ===== TEACHERS ===== */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.teacher-card {
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.teacher-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
}
.teacher-card:hover .teacher-photo { transform: scale(1.05); }
.teacher-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--yellow);
  color: #111;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.teacher-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.teacher-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.teacher-subject {
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}
.teacher-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}
.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.teacher-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== SCHOOL LIFE ===== */
.life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
  grid-auto-flow: dense;
}
.life-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
}
.life-item.life-big {
  grid-column: span 2;
}
.life-item.life-tall {
  grid-row: span 2;
  grid-column: span 2;
}
.life-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s;
  display: block;
}
.life-item:hover img { transform: scale(1.07); }
.life-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 20px;
}
.life-item:hover .life-overlay { opacity: 1; }
.life-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid, .exam-card { grid-template-columns: 1fr; gap: 48px; }
  .uzbek-card { flex-direction: column; min-height: auto; }
  .uzbek-img-wrap { width: 100%; height: 300px; position: relative; }
  .uzbek-text { padding: 40px 32px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-masonry { grid-template-columns: 1fr 1fr; }
  .review-card:nth-child(n) .review-card-video { aspect-ratio: 9/16; }
}
@media (max-width: 768px) {
  .teachers-grid { grid-template-columns: 1fr; max-width: 380px; }
  .life-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .life-item.life-big, .life-item.life-tall { grid-column: span 1; grid-row: span 1; }
  .section { padding: 72px 0; }
  .nav-links, .btn-nav { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 76px; left: 0; right: 0;
    background: rgba(8,8,15,0.97); backdrop-filter: blur(20px);
    padding: 28px; gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 80px; min-height: auto; }
  .hero-right { display: none; }
  .hero-title { font-size: 3.2rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .summer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .video-slide { flex: 0 0 100%; }
  .reviews-masonry { grid-template-columns: 1fr; }
  .review-card:nth-child(n) { grid-column: 1; grid-row: auto; }
  .review-card:nth-child(1) video,
  .review-card:nth-child(4) video { min-height: auto; max-height: 280px; }
  .uzbek-card { padding: 32px 24px; }
  .camp-banner { flex-direction: column; text-align: center; }
  .about-badge-float { right: 0; bottom: -36px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; letter-spacing: -1px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; }
  .uzbek-text h2 { font-size: 1.8rem; }
  .contact-form-wrap { padding: 28px 20px; }
}
