*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0033a0;
  --blue-dark: #002480;
  --blue-light: #1a4fc4;
  --yellow: #f5c200;
  --yellow-dark: #d9a800;
  --white: #ffffff;
  --gray-light: #f4f6fb;
  --text-dark: #0a1a3a;
  --text-muted: #4a5a7a;
  --radius: 18px;
  --shadow: 0 8px 40px rgba(0,51,160,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,36,128,0.97);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-logo img {
  height: 44px; width: 44px; border-radius: 10px; object-fit: cover;
}
.nav-logo span {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--yellow);
  letter-spacing: 1px;
}
.nav-logo small {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.62rem; font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex; gap: 32px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.92rem; font-weight: 700;
  transition: color .2s;
}
.nav-links a:hover { color: var(--yellow); }

.nav-cta {
  background: var(--yellow); color: var(--blue-dark) !important;
  padding: 8px 20px; border-radius: 30px;
  font-weight: 800 !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 26px; height: 3px;
  background: var(--yellow); border-radius: 2px;
  transition: all .3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-light) 60%, #2563eb 100%);
  display: flex; align-items: center;
  padding: 100px 5% 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.07;
}
.hero::after {
  content: '';
  position: absolute; bottom: -120px; left: -60px;
  width: 400px; height: 400px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.05;
}

.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(245,194,0,0.18);
  color: var(--yellow);
  border: 1px solid rgba(245,194,0,0.4);
  font-size: 0.82rem; font-weight: 800;
  padding: 6px 16px; border-radius: 30px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeUp .6s ease both;
}

.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
  animation: fadeUp .7s ease both;
}
.hero h1 span { color: var(--yellow); }

.hero-sub {
  font-size: 1.08rem; font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px; line-height: 1.65;
  animation: fadeUp .8s ease both;
}

.hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp .9s ease both;
}

.btn-primary {
  background: var(--yellow); color: var(--blue-dark);
  padding: 14px 32px; border-radius: 40px;
  font-size: 1rem; font-weight: 900;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(245,194,0,0.35);
  transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(245,194,0,0.45); }

.btn-outline {
  background: transparent; color: var(--white);
  padding: 14px 32px; border-radius: 40px;
  font-size: 1rem; font-weight: 800;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: border-color .2s, background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--yellow); background: rgba(255,255,255,0.07); }

.hero-stats {
  display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap;
  animation: fadeUp 1s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--yellow);
}
.stat-label {
  font-size: 0.78rem; font-weight: 700;
  color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: .5px;
}

.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp .8s ease both;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 28px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  width: 100%; max-width: 380px;
}
.hero-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--yellow); margin-bottom: 22px;
  letter-spacing: .5px;
}
.course-pill {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: var(--white); font-weight: 700; font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background .2s;
}
.course-pill:hover { background: rgba(245,194,0,0.12); }
.course-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

/* ─── SECTIONS SHARED ─── */
section { padding: 80px 5%; }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  background: rgba(0,51,160,0.08);
  color: var(--blue);
  font-size: 0.78rem; font-weight: 800;
  padding: 5px 14px; border-radius: 20px;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--text-dark);
  line-height: 1.15; margin-bottom: 14px;
}
.section-title span { color: var(--blue); }
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  font-weight: 600; max-width: 580px;
  line-height: 1.7;
}

/* ─── COURSES ─── */
#kurslar { background: var(--gray-light); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin-top: 44px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.course-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 16px 50px rgba(0,51,160,0.15);
}

.card-emoji { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.course-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--blue); margin-bottom: 10px;
}
.course-card p {
  font-size: 0.93rem; color: var(--text-muted);
  line-height: 1.65; font-weight: 600;
}
.card-tag {
  display: inline-block; margin-top: 16px;
  background: rgba(0,51,160,0.07);
  color: var(--blue);
  font-size: 0.78rem; font-weight: 800;
  padding: 4px 12px; border-radius: 20px;
}

/* ─── WHY US ─── */
#nima-uchun { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  margin-top: 44px;
}

.why-list { display: flex; flex-direction: column; gap: 20px; }

.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,51,160,0.2);
}
.why-item h4 {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text-dark); margin-bottom: 4px;
}
.why-item p {
  font-size: 0.9rem; color: var(--text-muted);
  font-weight: 600; line-height: 1.6;
}

.why-visual {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  border-radius: 28px;
  padding: 40px 36px;
  color: var(--white);
  box-shadow: 0 12px 50px rgba(0,51,160,0.3);
}
.why-visual h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--yellow); margin-bottom: 24px;
}
.bonus-item {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  font-size: 0.97rem; font-weight: 700;
}
.bonus-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(245,194,0,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}

/* ─── CTA STRIP ─── */
.cta-strip {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  padding: 70px 5%;
  text-align: center; position: relative; overflow: hidden;
}
.cta-strip h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--white);
  margin-bottom: 14px;
}
.cta-strip h2 span { color: var(--yellow); }
.cta-strip p {
  color: rgba(255,255,255,0.75); font-size: 1.05rem;
  font-weight: 600; margin-bottom: 30px;
}

/* ─── CONTACT ─── */
#aloqa { background: var(--gray-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px; margin-top: 44px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 22px;
}

.contact-item { display: flex; align-items: center; gap: 18px; }
.contact-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,51,160,0.2);
}
.contact-item h4 {
  font-size: 0.8rem; font-weight: 800;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 3px;
}
.contact-item a,
.contact-item p {
  font-size: 1.05rem; font-weight: 800;
  color: var(--text-dark); text-decoration: none;
  transition: color .2s;
}
.contact-item a:hover { color: var(--blue); }

.social-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.social-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--yellow); margin-bottom: 6px;
}
.social-btn {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 14px 20px;
  color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 1rem;
  transition: background .2s, transform .2s;
}
.social-btn:hover { background: rgba(245,194,0,0.18); transform: translateX(4px); }
.s-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.tg-icon { background: #229ED9; }
.ig-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ─── FOOTER ─── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 28px 5%;
  font-size: 0.88rem; font-weight: 600;
}
footer strong { color: var(--yellow); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--blue-dark);
    padding: 24px; gap: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 99;
  }
  .hamburger { display: flex; }
  section { padding: 60px 4%; }
  .courses-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
}
