/* ═══════════════════════════════════════════════════════════
   DIGITAL ACADEMY SIRDARYO — dasedu.uz
   Dizayn tizimi: logo ranglari + tipografiya
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Brend ranglari (logodan) ─────────────────────────── */
  --navy-950: #010d1f;
  --navy-900: #021631;
  --navy-800: #04234a;
  --navy-700: #063163;
  --brand-600: #0b4f9e;
  --brand-500: #1060b8;
  --brand-400: #3d82d6;
  --brand-300: #7db0e8;
  --brand-100: #d6e6f8;
  --brand-50:  #eef5fd;

  --gold-600: #9a7b1c;
  --gold-500: #b8912f;
  --gold-400: #d4b355;
  --gold-100: #f6eeda;

  /* ── Neytral ──────────────────────────────────────────── */
  --ink:       #0f1b2d;
  --ink-soft:  #46566d;
  --ink-faint: #7a8899;
  --line:      #e3e9f0;
  --line-soft: #f0f4f8;
  --paper:     #ffffff;
  --paper-2:   #f7fafd;

  --green: #0d7355;
  --green-bg: #e6f4ef;
  --red: #b02c2c;

  /* ── Tipografiya ──────────────────────────────────────── */
  --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;

  /* ── O'lchamlar ───────────────────────────────────────── */
  --wrap: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 10px rgba(2, 22, 49, .06);
  --shadow: 0 8px 30px rgba(2, 22, 49, .10);
  --shadow-lg: 0 22px 60px rgba(2, 22, 49, .18);

  --grad-brand: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  --grad-hero: radial-gradient(ellipse 120% 90% at 50% 0%,
                var(--brand-600) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-600), var(--gold-400));
}

/* ═══ Asos ═══════════════════════════════════════════════ */

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

/* hidden atributi CSS display qoidasidan kuchliroq bo'lsin.
   Bo'lmasa `.login-wrap { display: grid }` uni bosib qo'yadi. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ═══ Tipografiya ════════════════════════════════════════ */

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 750; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: 100%;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-500);
  background: var(--brand-50); padding: 7px 16px; border-radius: 30px;
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold-400); background: rgba(212, 179, 85, .12); }

.lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--paper-2); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section__head .lead { margin-top: 14px; }

/* ═══ Tugmalar ═══════════════════════════════════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s, background .16s;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--grad-brand); color: #fff;
                box-shadow: 0 6px 20px rgba(16, 96, 184, .32); }
.btn--primary:hover { box-shadow: 0 10px 28px rgba(16, 96, 184, .42); }

.btn--gold { background: var(--grad-gold); color: var(--navy-950);
             box-shadow: 0 6px 20px rgba(184, 145, 47, .30); }

.btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.10); }

.btn--outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--brand-400); color: var(--brand-600); }

.btn--lg { padding: 16px 34px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ═══ Sarlavha paneli ════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px;
}
.nav.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; }
.brand__name { font-weight: 800; font-size: 16px; color: #fff; line-height: 1.15;
               letter-spacing: -0.01em; }
.brand__sub { font-size: 11px; color: rgba(255,255,255,.66); font-weight: 600;
              letter-spacing: .06em; text-transform: uppercase; }
.nav.is-stuck .brand__name { color: var(--ink); }
.nav.is-stuck .brand__sub { color: var(--ink-faint); }

.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 9px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 650;
  color: rgba(255,255,255,.82); transition: all .15s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.10); }
.nav.is-stuck .nav__link { color: var(--ink-soft); }
.nav.is-stuck .nav__link:hover { color: var(--brand-600); background: var(--brand-50); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: flex; gap: 2px; padding: 3px; border-radius: 9px;
  background: rgba(255,255,255,.12);
}
.nav.is-stuck .lang { background: var(--line-soft); }
.lang button {
  padding: 6px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 700;
  color: rgba(255,255,255,.7); transition: all .15s;
}
.nav.is-stuck .lang button { color: var(--ink-faint); }
.lang button.is-active { background: #fff; color: var(--brand-600); }
.nav.is-stuck .lang button.is-active { background: var(--brand-500); color: #fff; }

.burger { display: none; width: 42px; height: 42px; border-radius: 10px;
          align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: #fff;
               position: relative; transition: all .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px;
  background: #fff; transition: all .2s;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav.is-stuck .burger span,
.nav.is-stuck .burger span::before,
.nav.is-stuck .burger span::after { background: var(--ink); }

.nav.is-open .burger span { background: transparent; }
.nav.is-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ═══ Hero ═══════════════════════════════════════════════ */

.hero {
  position: relative; padding: 132px 0 clamp(70px, 10vw, 120px);
  background: var(--grad-hero); color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -30%;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 40%, #000, transparent 75%);
  animation: grid-pan 55s linear infinite;
}
@keyframes grid-pan { to { transform: translate3d(58px, 58px, 0); } }

.hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero__orb--1 { width: 46vmax; height: 46vmax; top: -18vmax; left: -12vmax;
  background: radial-gradient(circle, var(--brand-500), transparent 68%);
  animation: drift1 24s ease-in-out infinite; }
.hero__orb--2 { width: 38vmax; height: 38vmax; top: 8vmax; right: -14vmax;
  background: radial-gradient(circle, var(--brand-400), transparent 68%);
  animation: drift2 30s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate3d(6vmax, 6vmax, 0) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate3d(-7vmax, 5vmax, 0) scale(1.15); } }

.hero__inner { position: relative; z-index: 2; display: grid;
               grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
/* Grid ustuni ichidagi "nowrap" tugma tufayli kengayib ketmasin —
   min-width: 0 bo'lmasa ustun min-content kengligiga cho'ziladi */
.hero__inner > * { min-width: 0; }

.hero h1 { margin-bottom: 20px; overflow-wrap: break-word; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { font-size: clamp(1rem, 1.5vw, 1.13rem);
              color: rgba(255,255,255,.80); max-width: 560px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 38px; }

.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr);
               gap: 14px; max-width: 480px; }
.stat-box {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px 14px; backdrop-filter: blur(6px);
}
.stat-box__num { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800;
                 color: var(--gold-400); line-height: 1.1; }
.stat-box__label { font-size: 12.5px; color: rgba(255,255,255,.68);
                   margin-top: 3px; }

/* Hero yon karta — sertifikat tekshirish */
.hero__card {
  background: rgba(255,255,255,.96); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.hero__card h3 { margin-bottom: 6px; }
.hero__card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }

.check-form { display: flex; gap: 9px; }
.check-form input {
  flex: 1; min-width: 0; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: var(--mono); font-size: 15px;
  text-transform: uppercase; letter-spacing: 2px; text-align: center;
  transition: border-color .15s;
}
.check-form input:focus { outline: none; border-color: var(--brand-400); }
.check-note { font-size: 12px; color: var(--ink-faint); margin-top: 11px;
              text-align: center; }

/* ═══ Kartochkalar ═══════════════════════════════════════ */

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow);
              border-color: var(--brand-300); }

.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid;
  place-items: center; font-size: 24px; margin-bottom: 16px;
  background: var(--brand-50);
}
.card__icon--gold { background: var(--gold-100); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ═══ Kurs kartochkasi ═══════════════════════════════════ */

.course {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: flex;
  flex-direction: column; transition: transform .2s cubic-bezier(.2,.8,.2,1),
  box-shadow .2s, border-color .2s;
}
.course:hover { transform: translateY(-5px); box-shadow: var(--shadow);
                border-color: var(--brand-300); }

.course__top { padding: 24px 24px 0; position: relative; }
.course__icon { position: absolute; top: 22px; right: 22px;
                font-size: 26px; opacity: .85; }
.course__badge {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 13px;
  background: var(--brand-50); color: var(--brand-600);
}
.course__badge--hot { background: #fdeaea; color: var(--red); }
.course__badge--new { background: var(--gold-100); color: var(--gold-600); }
.course__badge--lang { background: var(--green-bg); color: var(--green); }
/* Belgisiz kartochkada joy saqlanadi — sarlavhalar bir sathda.
   Balandlik qo'lda berilmaydi: ichiga ko'rinmas belgi qo'yamiz,
   shunda haqiqiy belgi bilan AYNAN bir xil joy egallaydi. */
.course__badge--empty { background: transparent; visibility: hidden; }

.course h3 { margin-bottom: 8px; }
.course__for { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 16px; }

.course__list { padding: 0 24px; margin-bottom: 18px; }
.course__list li {
  font-size: 14px; color: var(--ink-soft); padding: 5px 0 5px 24px;
  position: relative;
}
.course__list li::before {
  content: "✓"; position: absolute; left: 0; top: 5px;
  color: var(--brand-500); font-weight: 800; font-size: 13px;
}
.course__more { font-size: 13px; color: var(--brand-500); font-weight: 650;
                padding-left: 24px; }

.course__foot {
  margin-top: auto; padding: 18px 24px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper-2);
}
.course__price { font-size: 19px; font-weight: 800; color: var(--navy-800);
                 line-height: 1.1; }
.course__price span { font-size: 12.5px; font-weight: 600; color: var(--ink-faint); }
.course__meta { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

/* ═══ Tab ════════════════════════════════════════════════ */

.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
        margin-bottom: 36px; }
.tab {
  padding: 10px 22px; border-radius: 30px; font-size: 14.5px; font-weight: 700;
  color: var(--ink-soft); background: var(--paper); border: 1.5px solid var(--line);
  transition: all .16s;
}
.tab:hover { border-color: var(--brand-400); color: var(--brand-600); }
.tab.is-active { background: var(--grad-brand); color: #fff; border-color: transparent;
                 box-shadow: 0 4px 14px rgba(16,96,184,.28); }

/* ═══ Vaucher bloki ══════════════════════════════════════ */

.voucher {
  background: linear-gradient(135deg, var(--navy-800), var(--brand-600));
  border-radius: var(--radius-lg); padding: clamp(30px, 5vw, 52px);
  color: #fff; position: relative; overflow: hidden;
}
.voucher::before {
  content: ""; position: absolute; top: -50%; right: -12%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,179,85,.22), transparent 70%);
}
.voucher__inner { position: relative; z-index: 2; display: grid;
                  grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.voucher h2 { margin-bottom: 12px; }
.voucher p { color: rgba(255,255,255,.82); max-width: 620px; }

/* ═══ Ariza shakli ═══════════════════════════════════════ */

.form-card {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 650;
                color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 15px;
  color: var(--ink); background: var(--paper); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(61,130,214,.12);
}
.field textarea { min-height: 96px; resize: vertical; }
.field__hint { font-size: 12px; color: var(--ink-faint); margin-top: 5px; }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px;
         margin-bottom: 16px; }
.alert--ok { background: var(--green-bg); color: var(--green); }
.alert--err { background: #fdeaea; color: var(--red); }

/* ═══ Aloqa ══════════════════════════════════════════════ */

.contact-item { display: flex; gap: 15px; align-items: flex-start;
                padding: 15px 0; }
.contact-item__icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 20px;
  background: var(--brand-50);
}
.contact-item__label { font-size: 12.5px; color: var(--ink-faint);
                       font-weight: 600; }
.contact-item__value { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.contact-item a.contact-item__value:hover { color: var(--brand-600); }

/* ═══ FAQ ════════════════════════════════════════════════ */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 44px 20px 0; position: relative;
  font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45;
}
.faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%); font-size: 24px; font-weight: 400;
  color: var(--brand-500); transition: transform .22s;
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease;
         font-size: 15px; color: var(--ink-soft); }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 20px; }

/* ═══ Footer ═════════════════════════════════════════════ */

.footer { background: var(--navy-950); color: rgba(255,255,255,.72);
          padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
                gap: 36px; margin-bottom: 40px; }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 16px;
             letter-spacing: .02em; }
.footer ul li { padding: 5px 0; font-size: 14.5px; }
.footer a:hover { color: var(--gold-400); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.10); padding-top: 22px;
                  display: flex; justify-content: space-between; gap: 16px;
                  flex-wrap: wrap; font-size: 13.5px; }
.footer .brand__name { color: #fff; }

.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid;
  place-items: center; background: rgba(255,255,255,.08); font-size: 17px;
  transition: all .16s;
}
.social a:hover { background: var(--brand-500); transform: translateY(-2px); }

/* ═══ Suzuvchi tugma ═════════════════════════════════════ */

.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.fab a {
  width: 54px; height: 54px; border-radius: 50%; display: grid;
  place-items: center; font-size: 24px; color: #fff;
  box-shadow: 0 6px 22px rgba(2,22,49,.28); transition: transform .18s;
}
.fab a:hover { transform: scale(1.08); }
.fab__tg { background: #229ED9; }
.fab__phone { background: var(--green); }

/* ═══ Animatsiya ═════════════════════════════════════════ */

.reveal { opacity: 0; transform: translateY(26px);
          transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ═══ Moslashuvchanlik ═══════════════════════════════════ */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 38px; }
  .hero__card { max-width: 480px; }
  .voucher__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  /* Kichik ekranda tugma matni satrga bo'linsin — chetga chiqmasin */
  .btn { white-space: normal; text-align: center; }
  .hero__cta .btn { width: 100%; }
  .eyebrow { font-size: 11.5px; padding: 6px 13px; }
  .brand__name { font-size: 15px; white-space: nowrap; }
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .nav__menu {
    position: fixed; inset: 68px 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; padding: 14px 20px 22px;
    background: var(--paper); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
    margin-left: 0;
  }
  .nav.is-open .nav__menu { transform: none; }
  .nav__link { color: var(--ink) !important; padding: 13px 8px;
               border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn { display: none; }

  .hero { padding-top: 108px; }
  .hero__stats { grid-template-columns: 1fr; max-width: 320px; }
  .stat-box { display: flex; align-items: baseline; gap: 10px; }
  .stat-box__num { font-size: 1.5rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .fab a { width: 48px; height: 48px; font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   IKONKALAR
   ═══════════════════════════════════════════════════════════ */

.icon { display: block; flex-shrink: 0; }

.card__icon, .contact-item__icon {
  color: var(--brand-500);
}
.card__icon--gold { color: var(--gold-600); }

.course__icon { color: var(--brand-400); }

.social a, .fab a { color: #fff; }
.fab__ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

/* ═══════════════════════════════════════════════════════════
   VIDEO
   ═══════════════════════════════════════════════════════════ */

.video {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.video:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.video__thumb {
  position: relative; aspect-ratio: 16/9; background: var(--navy-900);
  overflow: hidden;
}
.video__thumb img { width: 100%; height: 100%; object-fit: cover;
                    transition: transform .3s; }
.video:hover .video__thumb img { transform: scale(1.05); }
.video__thumb iframe { width: 100%; height: 100%; border: 0; display: block; }

.video__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; opacity: .92; transition: transform .2s, opacity .2s;
  text-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.video:hover .video__play { transform: scale(1.12); opacity: 1; }

.video__body { padding: 18px 20px 20px; }
.video__body h3 { font-size: 16.5px; margin-bottom: 6px; }
.video__body p { font-size: 14px; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   MENTORLAR
   ═══════════════════════════════════════════════════════════ */

.mentor {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.mentor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.mentor__photo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; border: 3px solid var(--brand-100);
}
.mentor__photo--empty {
  display: grid; place-items: center; font-size: 34px; font-weight: 800;
  color: var(--brand-500); background: var(--brand-50);
}
.mentor h3 { font-size: 16.5px; margin-bottom: 4px; }
.mentor__role { font-size: 13.5px; color: var(--brand-600); font-weight: 650;
                margin-bottom: 10px; }
.mentor p { font-size: 13.5px; color: var(--ink-soft); }

/* ═══════════════════════════════════════════════════════════
   SHARHLAR
   ═══════════════════════════════════════════════════════════ */

.review {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px; display: flex;
  flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.review__stars { display: flex; gap: 3px; color: var(--gold-500);
                 margin-bottom: 14px; }
.review__stars .icon { fill: var(--gold-500); }

.review__text { font-size: 15px; color: var(--ink-soft); line-height: 1.7;
                margin-bottom: 20px; flex: 1; }

.review__who { display: flex; align-items: center; gap: 12px;
               padding-top: 16px; border-top: 1px solid var(--line-soft); }
.review__who img { width: 46px; height: 46px; border-radius: 50%;
                   object-fit: cover; }
.review__letter {
  width: 46px; height: 46px; border-radius: 50%; display: grid;
  place-items: center; background: var(--brand-50); color: var(--brand-600);
  font-weight: 800; font-size: 19px;
}
.review__name { font-weight: 700; font-size: 15px; }
.review__course { font-size: 13px; color: var(--ink-faint); }

/* ═══════════════════════════════════════════════════════════
   GALEREYA
   ═══════════════════════════════════════════════════════════ */

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.shot {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--brand-50);
}
.shot img { width: 100%; height: 100%; object-fit: cover;
            transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 12px;
  font-size: 13.5px; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(2,22,49,.82));
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shot figcaption { font-size: 12px; padding: 16px 10px 9px; }
}

/* ═══════════════════════════════════════════════════════════
   QORONG'I MAVZU

   Faqat neytral ranglar almashadi. Brend ko'k va oltin
   o'zgarmaydi — logotip bilan uyg'unlik saqlanadi.
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --ink:       #e8edf5;
  --ink-soft:  #a8b6c9;
  --ink-faint: #7d8ca1;
  --line:      #1e2c42;
  --line-soft: #16213340;
  --paper:     #0f1a2b;
  --paper-2:   #0a1424;

  --brand-50:  #14243c;
  --brand-100: #1b3255;
  --brand-300: #2d5486;
  --brand-400: #4a8ade;
  --brand-500: #2e7ae0;
  --brand-600: #4a8ade;
  --brand-700: #7db0e8;

  --gold-100: #2a2312;
  --gold-600: #d4b355;

  --green-bg: #10291f;
  --green: #3ec99a;
  --red: #e06b6b;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .28);
  --shadow: 0 8px 30px rgba(0, 0, 0, .38);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, .5);

  --grad-hero: radial-gradient(ellipse 120% 90% at 50% 0%,
                #123361 0%, #08172c 55%, #050e1c 100%);
}

[data-theme="dark"] body { background: var(--paper); }

/* Yopishgan panel */
[data-theme="dark"] .nav.is-stuck {
  background: rgba(15, 26, 43, .92);
  border-bottom: 1px solid var(--line);
}

/* Kartochkalar qorong'ida biroz ochroq bo'lsin — ajralib tursin */
[data-theme="dark"] .card,
[data-theme="dark"] .course,
[data-theme="dark"] .video,
[data-theme="dark"] .mentor,
[data-theme="dark"] .review,
[data-theme="dark"] .form-card,
[data-theme="dark"] .box,
[data-theme="dark"] .item {
  background: #13203400;
  background: rgba(255, 255, 255, .028);
}

[data-theme="dark"] .course__foot { background: rgba(255, 255, 255, .022); }

/* Narx --navy-800 rangida edi — qorong'i fonda ko'rinmay qolardi */
[data-theme="dark"] .course__price { color: var(--ink); }
[data-theme="dark"] .kpi__num { color: var(--ink); }
[data-theme="dark"] .brand__name,
[data-theme="dark"] .adm-brand { color: var(--ink); }
[data-theme="dark"] th { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] tbody tr:hover { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .hint { background: rgba(74, 138, 222, .1); }
[data-theme="dark"] .save-bar { background: var(--paper); }
[data-theme="dark"] .modal { background: var(--paper); }
[data-theme="dark"] .drop-zone { background: rgba(255, 255, 255, .02); }
[data-theme="dark"] .stat-box { background: rgba(255, 255, 255, .05); }
[data-theme="dark"] .hero__card { background: var(--paper); }

[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .check-form input {
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .check-form input::placeholder {
  color: var(--ink-faint);
}

[data-theme="dark"] .tab {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
}
[data-theme="dark"] .btn--outline {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
}

/* Xarita qorong'ida ko'zni qamashtirmasin */
[data-theme="dark"] iframe { filter: brightness(.82) contrast(1.05); }

/* Footer allaqachon qorong'i — yanada to'qroq qilamiz */
[data-theme="dark"] .footer { background: #060f1d; }

/* ── Almashtirish tugmasi ────────────────────────────────── */

.theme-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid;
  place-items: center; color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .12); transition: all .16s;
  flex-shrink: 0;
}
.theme-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.nav.is-stuck .theme-btn {
  background: var(--line-soft); color: var(--ink-soft);
}
.nav.is-stuck .theme-btn:hover { color: var(--brand-600); }

/* Quyosh va oy — qaysi biri ko'rinishi mavzuga bog'liq */
.theme-btn .icon-sun { display: none; }
.theme-btn .icon-moon { display: block; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }

/* Admin paneldagi tugma */
.adm .theme-btn { background: var(--line-soft); color: var(--ink-soft); }
[data-theme="dark"] .adm .theme-btn { background: rgba(255,255,255,.06); }
