/* ============================================================
   Katta Tanaffus School — Warm-up Landing UI Kit
   Mobile-first. Tokens below are the single source of truth.
   ============================================================ */

:root {
  /* Brand */
  --navy: #0A2A5C;
  --navy-deep: #061C40;
  --navy-soft: #12417F;
  --sky: #2E6FD8;
  --sky-light: #EAF1FB;
  --bg: #F4F7FA;
  --white: #FFFFFF;
  --text: #1B2A41;
  --text-muted: #55677F;
  --success: #1F9D55;
  --error: #D64545;
  --gold: #F0A93B;

  /* Shape & depth */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(10, 42, 92, 0.08);
  --shadow-md: 0 10px 34px rgba(10, 42, 92, 0.14);
  --shadow-cta: 0 8px 24px rgba(46, 111, 216, 0.35);

  /* Type */
  --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing scale (4px base) */
  --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.25;
  margin: 0 0 var(--s4);
  color: var(--navy);
}

h1 { font-size: clamp(1.6rem, 5.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 var(--s4); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s5);
}

section { position: relative; padding: var(--s8) 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--s3);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 32px;
  border: 0;
  border-radius: 14px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background 0.2s ease-out;
}
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, var(--sky) 0%, #1D5BC4 100%);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46, 111, 216, 0.45); }

.btn--light {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--block { width: 100%; }

.btn .btn-arrow { transition: transform 0.2s ease-out; flex: 0 0 auto; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn .spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  flex: 0 0 auto;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: var(--s4) 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 40px; width: auto; display: block; }
.site-footer .logo-img { height: 34px; }
.header-contact { display: flex; align-items: center; gap: var(--s4); }
.header-contact-link {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.header-contact-link svg { color: #8FB8F5; flex: 0 0 auto; }
.header-contact-link:hover { color: var(--white); }
@media (max-width: 640px) {
  .header-contact { gap: var(--s3); }
  .header-contact-link span { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(46, 111, 216, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 78%);
  color: var(--white);
  padding: calc(var(--s9) + 20px) 0 var(--s8);
  overflow: hidden;
}
.hero h1 {
  color: var(--white);
  max-width: 18ch;
  font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero .accent { color: #8FB8F5; }
.hero-sub {
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin-bottom: var(--s5);
}
.hero-inner { position: relative; z-index: 2; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--s5);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 111, 216, 0.18);
  border: 1px solid rgba(143, 184, 245, 0.35);
  color: #CFE0F9;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.86rem;
  white-space: nowrap;
}
.hero-badge strong { color: #8FB8F5; font-weight: 700; }
.hero-badge--warm {
  background: rgba(240, 169, 59, 0.15);
  border-color: rgba(240, 169, 59, 0.4);
  color: var(--gold);
}
.hero-badge--warm svg { flex: 0 0 auto; }
@media (max-width: 400px) {
  .hero-badge { white-space: normal; }
}

.hero-decor { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; }

/* Hero visual — arch container for the student photo */
.hero-visual { margin-top: var(--s7); display: flex; justify-content: center; }
.arch {
  position: relative;
  width: min(420px, 88%);
  aspect-ratio: 5 / 5.6;
  border-radius: 999px 999px 28px 28px;
  background:
    radial-gradient(420px 300px at 50% 110%, rgba(46, 111, 216, 0.55), transparent 70%),
    linear-gradient(180deg, var(--navy-soft) 0%, var(--sky) 130%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: visible;
}
.arch-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.arch-photo {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 106%;
  object-fit: cover;
  object-position: top center;
  border-radius: inherit;
}
.float-chip {
  position: absolute;
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(6, 28, 64, 0.35);
  display: flex; align-items: center; justify-content: center;
  animation: chipFloat 4.5s ease-in-out infinite;
}
.float-chip.fc-1 { top: 16%; left: -22px; transform: rotate(-8deg); }
.float-chip.fc-2 { bottom: 20%; right: -20px; transform: rotate(10deg); animation-delay: 1.4s; }
@keyframes chipFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Stats strip ---------- */
.proof { padding: var(--s6) 0; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--s5);
  text-align: center;
}
.proof-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  color: var(--navy);
  line-height: 1.1;
}
.proof-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Section intro ---------- */
.section-lead { max-width: 60ch; color: var(--text-muted); }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---------- Advantage cards (2×2, Jahon-style) ---------- */
.cards {
  display: grid;
  gap: var(--s4);
  margin-top: var(--s6);
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 22px;
  padding: var(--s6) var(--s5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-pat {
  position: absolute;
  top: 0; right: 0;
  width: 46%; height: 62%;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(215deg, #000 30%, transparent 75%);
  -webkit-mask-image: linear-gradient(215deg, #000 30%, transparent 75%);
}
.card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sky) 0%, var(--navy-soft) 100%);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s5);
  box-shadow: 0 8px 20px rgba(46, 111, 216, 0.3);
  position: relative;
}
.card h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: var(--s3); position: relative; }
.card p { color: var(--text-muted); margin: 0; font-size: 1.02rem; line-height: 1.65; position: relative; }
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  position: relative;
}
.card-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.card-list svg { flex: 0 0 auto; margin-top: 4px; color: var(--sky); }

/* Transport strip */
.transport {
  margin-top: var(--s5);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.transport-head { display: flex; align-items: center; gap: 12px; }
.transport-head .card-icon { margin: 0; flex: 0 0 auto; }
.transport-head h3 { margin: 0; font-size: 1.05rem; }
.transport-head p { margin: 2px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.district-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.district-chips span {
  background: var(--sky-light);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Demo day (navy) ---------- */
.demo {
  background:
    radial-gradient(900px 460px at 12% 110%, rgba(46, 111, 216, 0.28), transparent 60%),
    linear-gradient(200deg, var(--navy) 0%, var(--navy-deep) 80%);
  color: rgba(255, 255, 255, 0.9);
}
.demo h2 { color: var(--white); }
.demo .kicker { color: #8FB8F5; }
.demo-grid { display: grid; gap: var(--s7); align-items: center; }
.demo > .container > .demo-grid > .reveal:first-child > p:first-of-type { font-size: 1.08rem; color: rgba(255, 255, 255, 0.8); margin-bottom: var(--s5); }

/* Taklif tarkibi: aniq belgilar roʻyxati */
.demo-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s5);
  display: grid;
  gap: var(--s3);
}
.demo-features li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--white);
}
.demo-feat-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(143, 184, 245, 0.14);
  border: 1px solid rgba(143, 184, 245, 0.28);
  color: #8FB8F5;
  display: flex; align-items: center; justify-content: center;
}
.demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--s6);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(240, 169, 59, 0.14);
  border: 1px solid rgba(240, 169, 59, 0.35);
  color: #F6C880;
  font-size: 0.92rem;
  font-weight: 600;
}
.demo-note svg { flex: 0 0 auto; color: var(--gold); }

/* "1 kun bepul" ishonch belgisi */
.offer-badge {
  margin-inline: auto;
  max-width: 300px;
  background:
    radial-gradient(320px 200px at 50% 0%, rgba(46, 111, 216, 0.35), transparent 70%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(143, 184, 245, 0.35);
  border-radius: 28px;
  padding: var(--s7) var(--s6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: offerPulse 3.2s ease-in-out infinite;
}
@keyframes offerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 111, 216, 0.25); }
  50% { box-shadow: 0 0 0 18px rgba(46, 111, 216, 0); }
}
.offer-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--white);
}
.offer-num small { font-size: 0.34em; font-weight: 700; color: #8FB8F5; margin-left: 4px; }
.offer-label { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--white); }
.offer-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.offer-sub svg { color: var(--success); flex: 0 0 auto; }

/* Mobil: taklif belgisini yuqoriga koʻtarib, ixcham gorizontal bannerga aylantiramiz */
@media (max-width: 767px) {
  .demo-grid { gap: var(--s5); }
  .demo-grid > .reveal:last-child { order: -1; }
  .offer-badge {
    max-width: none;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--s4);
    row-gap: 2px;
    align-items: center;
    text-align: left;
    padding: var(--s4) var(--s5);
    border-radius: 20px;
  }
  .offer-num { grid-row: 1 / 3; align-self: center; font-size: 2.7rem; }
  .offer-label { grid-column: 2; align-self: end; font-size: 1rem; }
  .offer-sub { grid-column: 2; align-self: start; margin-top: 0; }
}

/* ---------- Pricing: qiymat stegi ---------- */
.price-stack {
  max-width: 680px;
  margin: var(--s6) auto 0;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ps-rows { padding: var(--s3) var(--s5); }
.ps-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--sky-light);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.ps-row:last-child { border-bottom: 0; }
.price-stack.is-visible .ps-row { opacity: 1; transform: none; }
.price-stack.is-visible .ps-row:nth-child(1) { transition-delay: 0.05s; }
.price-stack.is-visible .ps-row:nth-child(2) { transition-delay: 0.15s; }
.price-stack.is-visible .ps-row:nth-child(3) { transition-delay: 0.25s; }
.price-stack.is-visible .ps-row:nth-child(4) { transition-delay: 0.35s; }
.price-stack.is-visible .ps-row:nth-child(5) { transition-delay: 0.45s; }
.price-stack.is-visible .ps-row:nth-child(6) { transition-delay: 0.55s; }

.ps-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--navy-soft));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.ps-text { flex: 1; min-width: 0; }
.ps-text strong { display: block; color: var(--navy); font-size: 0.98rem; }
.ps-text span { display: block; color: var(--text-muted); font-size: 0.84rem; margin-top: 1px; }
.ps-pill {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  background: #E7F6EE; color: var(--success);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}
.ps-pill svg { flex: 0 0 auto; }

.ps-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s4);
  padding: var(--s5);
  background:
    radial-gradient(400px 200px at 90% 120%, rgba(46, 111, 216, 0.4), transparent 65%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 90%);
  color: var(--white);
}
.ps-total-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8FB8F5;
  margin-bottom: 2px;
}
.ps-total-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1.1;
}
.ps-total-num small { font-size: 0.42em; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.ps-lock {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(31, 157, 85, 0.2);
  border: 1px solid rgba(31, 157, 85, 0.45);
  color: #7DDBA3;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}
.ps-lock svg { flex: 0 0 auto; }
.ps-foot {
  margin: 0;
  padding: var(--s3) var(--s5);
  background: var(--bg);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.price-side { display: grid; gap: var(--s4); max-width: 680px; margin: var(--s5) auto 0; }
.mini-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--s4) var(--s5);
  display: flex; gap: var(--s4); align-items: flex-start;
}
.mini-card .card-icon { width: 44px; height: 44px; margin: 0; flex: 0 0 auto; }
.mini-card h3 { font-size: 0.98rem; margin: 0 0 2px; }
.mini-card p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Gallery: avto-aylanuvchi karusel ---------- */
.gallery { background: var(--bg); padding-bottom: var(--s7); }
.gallery .center { margin-bottom: 0; }

.gallery-viewport {
  margin-top: var(--s6);
  overflow: hidden;
  /* Chekkalarda yumshoq erish effekti */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.gallery-track {
  display: flex;
  gap: var(--s3);
  width: max-content;
  animation: gallery-scroll 38s linear infinite;
}
.gallery-viewport:hover .gallery-track,
.gallery-track.is-paused {
  animation-play-state: paused;
}

@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.gallery-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(160px, 32vw, 220px);
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--sky-light);
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.gallery-card:hover, .gallery-card:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gallery-card:hover img, .gallery-card:focus-visible img { transform: scale(1.06); }

.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px;
  background: linear-gradient(0deg, rgba(6, 28, 64, 0.85) 0%, transparent 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: left;
}

.gallery-hint {
  margin: var(--s4) 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .gallery-card { width: clamp(220px, 18vw, 260px); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track { animation: none; overflow-x: auto; scroll-snap-type: x proximity; }
  .gallery-card { scroll-snap-align: start; }
  .gallery-card[aria-hidden="true"] { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 12, 24, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lb-figure { margin: 0; max-width: min(880px, 92vw); text-align: center; }
.lb-figure img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.lightbox.is-open .lb-figure img { transform: scale(1); opacity: 1; }
.lb-figure figcaption {
  margin-top: var(--s4);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.lb-close, .lb-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--sky); }

.lb-close { top: var(--s5); right: var(--s5); width: 44px; height: 44px; }
.lb-close svg { transform: rotate(45deg); }
.lb-nav { top: 50%; margin-top: -24px; width: 48px; height: 48px; }
.lb-prev { left: var(--s4); }
.lb-next { right: var(--s4); }
.lb-nav:active { transform: translateY(-50%) scale(0.92); margin-top: 0; top: 50%; }

@media (max-width: 640px) {
  .lb-nav { width: 40px; height: 40px; }
  .lb-close { top: var(--s4); right: var(--s4); }
}

/* ---------- Team ---------- */
.teachers { background: var(--white); }
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin-top: var(--s6);
}
.teacher-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}
.teacher-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--sky-light);
  overflow: hidden;
}
.teacher-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform 0.35s ease-out; }
.teacher-card:hover img { transform: scale(1.04); }
.teacher-tag {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.teacher-info { padding: var(--s4); }
.teacher-info h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.teacher-role { margin: 0 0 2px; font-weight: 600; color: var(--sky); font-size: 0.9rem; }
.teacher-meta { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.team-facts { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg); }
.testi-carousel {
  position: relative;
  max-width: 560px;
  margin: var(--s6) auto 0;
}
.testi-track {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease-out;
}
.testi-slide { flex: 0 0 100%; min-width: 0; }
.testi-nav {
  position: absolute;
  top: 50%;
  margin-top: -20px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease-out, background 0.15s ease-out;
}
.testi-nav:hover { background: var(--sky); color: var(--white); }
.testi-nav:active { transform: translateY(-50%) scale(0.92); margin-top: 0; top: 50%; }
.testi-prev { left: -20px; }
.testi-next { right: -20px; }
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--s4); }
.testi-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--sky-light);
  cursor: pointer;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}
.testi-dots button.is-active { background: var(--sky); transform: scale(1.2); }
.video-card {
  position: relative;
  display: block;
  border: none;
  padding: 0;
  width: 100%;
  /* 16:9 balandlik — barcha brauzerlarda ishlaydigan universal usul.
     aspect-ratio'ga tayanib qolmaymiz: eski WebView/ilova-ichi brauzerlar
     (FB/Instagram) uni tushunmasa, karta 0 balandlikka qulab, butun
     karusel bo'sh ko'rinib qolgan edi. */
  padding-top: 56.25%;
  cursor: pointer;
  overflow: hidden;
  background: var(--navy);
}
.video-card img,
.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
  transition: transform 0.35s ease-out;
}
.video-card:hover img { transform: scale(1.04); }
.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 42, 92, 0.85);
  color: var(--white);
  border-radius: 50%;
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}
.video-card:hover .video-play { background: var(--sky); transform: translate(-50%, -50%) scale(1.08); }
.video-play svg { margin-left: 3px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.badge svg { color: var(--sky); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: var(--s6) auto 0; display: grid; gap: var(--s3); }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  min-height: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: 0 0 auto; color: var(--sky); transition: transform 0.25s ease-out; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 var(--s5) var(--s4); color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Lead form ---------- */
.lead { background: var(--bg); }
.lead-box {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: var(--s6) var(--s5);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.lead-box::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--sky), var(--navy));
}
.lead-logo { display: flex; justify-content: center; margin-bottom: var(--s4); }
.lead-logo img { width: 56px; height: 56px; border-radius: 50%; }
.lead-box h2 { text-align: center; font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
.lead-box .section-lead { text-align: center; margin-inline: auto; font-size: 0.97rem; }

.form-field { margin-bottom: var(--s4); }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-field input,
.form-field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease-out, background 0.2s ease-out;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2355677F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--sky);
  background-color: var(--white);
}
.form-field input.is-invalid { border-color: var(--error); background: #FDF3F3; }
.field-error { display: none; color: var(--error); font-size: 0.85rem; margin-top: 6px; }
.form-field.has-error .field-error { display: block; }

.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s4);
  font-size: 0.83rem;
  color: var(--text-muted);
  text-align: center;
}
.form-trust svg { flex: 0 0 auto; color: var(--success); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--s7) 0 var(--s5);
  font-size: 0.9rem;
}
.footer-grid { display: grid; gap: var(--s6); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.site-footer .slogan { color: rgba(255, 255, 255, 0.85); font-family: var(--font-head); font-weight: 700; margin: 0; }
.footer-cta { min-height: 48px; padding: 12px 22px; font-size: 0.92rem; }
.footer-col h3 { color: var(--white); font-size: 1.05rem; margin-bottom: var(--s4); }
.footer-col p { margin: 0 0 var(--s2); line-height: 1.55; }
.footer-col strong { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.footer-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  margin-bottom: var(--s4);
}
.footer-phone svg { color: #8FB8F5; flex: 0 0 auto; }
.footer-social {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.15s ease-out;
}
.footer-social:hover { color: var(--white); }
.footer-social svg { color: #8FB8F5; flex: 0 0 auto; }
.footer-map {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  background: var(--navy-soft);
}
.footer-map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }
.footer-bottom {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.1fr 1.1fr 0.9fr 1.3fr; gap: var(--s7); align-items: start; }
  .footer-map { min-height: 260px; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px var(--s4) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -6px 24px rgba(10, 42, 92, 0.14);
  transform: translateY(110%);
  transition: transform 0.3s ease-out;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { min-height: 52px; font-size: 0.95rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Thank You page ---------- */
.thanks-page { min-height: 100svh; display: flex; flex-direction: column; }
.thanks-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: var(--s8) 0;
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(46, 111, 216, 0.12), transparent 60%),
    var(--bg);
}
.thanks-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  max-width: 620px;
  margin: 0 auto;
  padding: var(--s7) var(--s5);
  text-align: center;
}
.success-mark {
  width: 88px; height: 88px;
  margin: 0 auto var(--s5);
  border-radius: 50%;
  background: #E7F6EE;
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-mark svg .check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.5s ease-out 0.35s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.next-steps { text-align: left; margin: var(--s5) 0; display: grid; gap: var(--s3); }
.next-steps > div { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.step-num {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--sky);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

.bonus-box {
  background: var(--sky-light);
  border-radius: var(--radius);
  padding: var(--s5);
  margin: var(--s5) 0;
  text-align: left;
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}
.bonus-box .gift-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; background: var(--white); color: var(--sky); display: flex; align-items: center; justify-content: center; }
.bonus-box p { margin: 0; font-size: 0.95rem; }
.bonus-box strong { color: var(--navy); }

.btn--telegram {
  background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.4);
}
.btn--telegram:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(42, 171, 238, 0.5); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Tablet & up ---------- */
@media (min-width: 768px) {
  section { padding: var(--s9) 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
  .proof-grid { grid-template-columns: repeat(4, 1fr); padding: var(--s6); }
  .demo-grid { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .price-side { grid-template-columns: repeat(3, 1fr); max-width: 1000px; }
  .price-side .mini-card { flex-direction: column; gap: var(--s3); }
  .teacher-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
  .testi-carousel { max-width: 640px; }
  .testi-prev { left: -56px; }
  .testi-next { right: -56px; }
  .lead-box { padding: var(--s7); }
  .transport { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--s9) + 40px); }
  .hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s7); align-items: center; }
  .hero-visual { margin-top: 0; }
  .sticky-cta { display: none; }
}

/* ---------- Mobil (Jahon School uslubi): ixcham hero + svayp-karusellar ---------- */
@media (max-width: 767px) {
  section { padding: var(--s7) 0; }

  .hero { padding: calc(var(--s8) + 40px) 0 var(--s7); }
  .hero-badges { gap: 6px; margin-bottom: var(--s4); }
  .hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    padding: 6px 12px;
    white-space: normal;
    line-height: 1.5;
  }
  .hero-badge svg { display: inline-block; vertical-align: -2px; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.4rem); margin-bottom: var(--s3); }
  .hero-sub { font-size: 0.98rem; margin-bottom: var(--s5); }
  .hero .btn--primary { width: 100%; justify-content: center; }

  .hero-visual { margin-top: var(--s6); }
  .arch { width: min(300px, 80%); aspect-ratio: 1 / 1.08; }
  .float-chip { width: 46px; height: 46px; border-radius: 13px; }
  .float-chip.fc-1 { left: -12px; }
  .float-chip.fc-2 { right: -12px; }

  /* Karta bo'limlari: vertikal ustun o'rniga gorizontal svayp (keyingi karta chetdan ko'rinadi) */
  .cards,
  .teacher-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--s3);
    margin-inline: calc(-1 * var(--s5));
    padding: 4px var(--s5) var(--s4);
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar,
  .teacher-grid::-webkit-scrollbar { display: none; }

  .cards .card {
    flex: 0 0 84%;
    scroll-snap-align: center;
    padding: var(--s5);
  }
  .cards .card-icon { width: 56px; height: 56px; margin-bottom: var(--s4); }

  .teacher-card { flex: 0 0 80%; scroll-snap-align: center; }
}
