/* ============================================================
   Mudarris Akademiyasi — dizayn tizimi
   Ranglar va uslub asl saytdan olingan (navy #23366e / sariq #ffd400)
   ============================================================ */
:root {
  --navy: #23366e;
  --navy-2: #2b3f7d;
  --yellow: #f4e400;
  --yellow-2: #ffd400;
  --olive: #6f7d4f;
  --ink: #1b2a4a;
  --muted: #5b6b8c;
  --bg: #ffffff;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 18px 50px rgba(20, 40, 90, .10);
  --container: 1180px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 70px 0; position: relative; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; text-align: center; line-height: 1.15; }
.section-subtitle { text-align: center; color: var(--muted); font-size: 18px; margin-top: 14px; }
.on-navy { color: #fff; }
.on-navy .section-subtitle { color: rgba(255, 255, 255, .8); }

/* Tugmalar */
.btn { display: inline-block; border: none; cursor: pointer; font-family: inherit; font-weight: 700;
  font-size: 16px; padding: 16px 34px; border-radius: 14px; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-yellow { background: var(--yellow-2); color: var(--navy); }
.btn-yellow:hover { background: #ffdd33; box-shadow: 0 10px 24px rgba(255, 212, 0, .35); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 0; }
.nav-pill { background: var(--navy); border-radius: 22px; display: flex; align-items: center; gap: 26px;
  padding: 12px 16px 12px 18px; box-shadow: var(--shadow); }
.nav-logo { width: 46px; height: 46px; background: #fff; border-radius: 12px; overflow: hidden; flex: none; }
.nav-logo img { height: 46px; width: auto; max-width: none; object-fit: cover; object-position: left center; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { color: #fff; font-weight: 500; font-size: 17px; opacity: .95; }
.nav-links a:hover { opacity: 1; color: var(--yellow-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-lang { background: #fff; color: var(--navy); font-weight: 700; border-radius: 8px; padding: 6px 10px; font-size: 14px;
  display: flex; align-items: center; gap: 6px; }
.nav-lang .flag { width: 26px; height: 17px; border-radius: 3px; overflow: hidden; display: inline-block;
  background: linear-gradient(#0099b5 33%, #fff 33% 66%, #1eb53a 66%); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-burger span { width: 26px; height: 3px; background: #fff; border-radius: 3px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; color: var(--navy); line-height: 1.15; }
.hero-subtitle { color: var(--muted); font-size: 19px; margin: 26px 0 34px; max-width: 460px; }
.hero-visual { background: var(--navy); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.hero-dots { display: flex; gap: 8px; margin-bottom: 14px; }
.hero-dots i { width: 13px; height: 13px; border-radius: 50%; display: inline-block; }
.hero-dots i:nth-child(1) { background: #2ecc71; }
.hero-dots i:nth-child(2) { background: var(--yellow-2); }
.hero-dots i:nth-child(3) { background: #e74c3c; }
.hero-photo { border-radius: 18px; overflow: hidden; background: var(--yellow-2); position: relative; aspect-ratio: 1/1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Navy panellar (dekorativ doiralar) ---------- */
.panel-navy { background: var(--navy); color: #fff; border-radius: 40px; position: relative; overflow: hidden; }
.deco-circles::before, .deco-circles::after { content: ''; position: absolute; border-radius: 50%; background: rgba(111, 125, 79, .55); }
.deco-circles::before { width: 120px; height: 120px; left: 40px; top: 60px; }
.deco-circles::after { width: 220px; height: 220px; left: -70px; bottom: -60px; }

/* ---------- Biz haqimizda ---------- */
.about { }
.about-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid;
  grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; align-items: center; }
.about-card img { border-radius: var(--radius-sm); width: 100%; object-fit: cover; }
.about-text { font-size: 18px; color: var(--ink); }
.about-text p { margin-bottom: 26px; }

/* ---------- Statistika ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card { background: var(--navy-2); border-radius: var(--radius-sm); padding: 26px; color: #fff; position: relative; }
.stat-card .num { font-size: 42px; font-weight: 800; }
.stat-card .lbl { margin-top: 12px; font-size: 15px; opacity: .9; }
.stat-card .badge { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 12px;
  background: var(--yellow-2); display: grid; place-items: center; color: var(--navy); font-size: 20px; }
.stat-card .badge img { width: 24px; height: 24px; }

/* ---------- Afzalliklar ---------- */
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.adv-item { background: #f5f8fc; border-radius: 26px; padding: 34px 36px; position: relative; overflow: hidden; min-height: 230px;
  display: flex; flex-direction: column; }
.adv-icon { width: 58px; height: 58px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; margin-bottom: 24px; flex: none; }
.adv-icon img { width: 28px; height: 28px; }
.adv-title { color: var(--navy); font-size: 21px; font-weight: 600; line-height: 1.45; max-width: 58%; position: relative; z-index: 1; }
.adv-arrow { position: absolute; right: 26px; top: 50%; transform: translateY(-30%); width: 165px; height: auto; pointer-events: none; }

/* ---------- Kurslar ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.course-card { background: var(--navy); color: #fff; border-radius: 22px 22px 60px 22px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; min-height: 340px; }
.course-badge { position: absolute; top: 24px; right: 22px; width: 52px; height: 52px; border-radius: 13px;
  background: url('/img/icons/course-badge.png') center/152% no-repeat; }
.course-card h3 { font-size: 24px; font-weight: 800; text-transform: uppercase; line-height: 1.15; margin-bottom: 16px; max-width: 74%; }
.course-card p { font-size: 15px; opacity: .85; flex: 1; margin-bottom: 24px; }
.course-card .btn { width: 100%; text-align: center; border-radius: 12px; }

/* ---------- Fikrlar ---------- */
/* Video slayder — portret kartalar */
.reviews-slider { margin-top: 44px; overflow: hidden; }
.reviews-track { display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  padding: 6px 2px 16px; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.rv-card { position: relative; flex: 0 0 auto; width: 232px; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden;
  background: #0e1b3d; scroll-snap-align: start; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.rv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35)); }
.rv-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 62px; height: 62px; border: none; border-radius: 50%; background: var(--yellow-2); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); transition: transform .15s ease; }
.rv-play::before { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--navy); }
.rv-card:hover .rv-play { transform: translate(-50%,-50%) scale(1.08); }
.rv-name { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; text-align: center; color: #fff; font-weight: 700; font-size: 17px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.rv-card iframe, .rv-card video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.reviews-nav { display: flex; justify-content: center; gap: 16px; margin-top: 26px; }
.rv-arrow { width: 60px; height: 46px; border: none; border-radius: 12px; background: var(--yellow-2); color: var(--navy);
  font-size: 26px; font-weight: 700; line-height: 1; cursor: pointer; transition: background .15s ease; }
.rv-arrow:hover { background: var(--yellow); }

/* ---------- Jamoa ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; }
.team-card { text-align: center; }
.team-photo { background: var(--navy); border-radius: var(--radius-sm); aspect-ratio: 1/1; overflow: hidden; display: grid; place-items: center; }
.team-photo img { width: 100%; height: 100%; object-fit: contain; }
.team-name { margin-top: 14px; font-weight: 700; color: var(--navy); font-size: 17px; }
.team-role { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid #e7ebf5; border-radius: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 17px; font-weight: 600; color: var(--navy); padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .ic { flex: none; transition: transform .2s; font-size: 22px; color: var(--yellow-2); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 16px; }

/* ---------- Kontakt forma ---------- */
.contact-panel { padding: 60px clamp(24px, 6vw, 90px); text-align: center; }
.contact-form { max-width: 560px; margin: 30px auto 0; display: flex; flex-direction: column; gap: 16px; }
.contact-form input { width: 100%; border: none; border-radius: 12px; padding: 18px 20px; font-size: 16px; font-family: inherit; }
.contact-form input:focus { outline: 3px solid var(--yellow-2); }
.form-success { background: #55b978; color: #fff; border-radius: 12px; padding: 22px; font-weight: 600; font-size: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 60px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-logo img { width: 190px; height: auto; }
.footer-logo b { font-size: 20px; line-height: 1.15; }
.footer h4 { font-size: 22px; margin-bottom: 22px; }
.footer-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--yellow-2); color: var(--navy);
  font-weight: 700; padding: 14px 22px; border-radius: 12px; margin-bottom: 14px; }
.footer-links a { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; opacity: .95; }
.footer-links a:hover { color: var(--yellow-2); }
.footer-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.footer-ico img { width: 17px; height: 17px; }
.footer-ico.ico-yellow { background: var(--yellow-2); }
.footer-copy { text-align: center; opacity: .6; font-size: 13px; margin-top: 46px; }

/* ---------- Animatsiyalar (scroll reveal) — asl saytdagidek fadeinup ---------- */
.reveal { opacity: 0; transform: translateY(60px); transition: opacity 1s cubic-bezier(.25,.6,.3,1), transform 1s cubic-bezier(.25,.6,.3,1); will-change: opacity, transform; }
.reveal-left { transform: translateX(-70px); }
.reveal-right { transform: translateX(70px); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-card { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .stats-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .rv-card { width: 200px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .adv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open { display: flex; position: absolute; top: 78px; left: 24px; right: 24px; background: var(--navy);
    flex-direction: column; padding: 18px; border-radius: 18px; box-shadow: var(--shadow); }
  .stats-grid, .courses-grid, .team-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}
