/* =========================================================
   Arastu Learning Center — landing
   Ranglar: ko‘k + oq. Animatsiyalar: faqat transform/opacity.
   ========================================================= */

:root {
  --blue-950: #06163A;
  --blue-900: #0A2463;
  --blue-800: #0F3492;
  --blue-700: #1544C4;
  --blue-600: #1A56F0;
  --blue-500: #3D74F5;
  --blue-400: #6E98FA;
  --blue-300: #A4C0FC;
  --blue-200: #CCDCFE;
  --blue-100: #E5EDFF;
  --blue-50:  #F2F6FF;

  --ink: #0B1B3F;
  --ink-2: #33456B;
  --muted: #5F6F8F;
  --line: #E2E9F6;
  --page: #fff;
  --surface: #fff;
  --field: #F8FAFF;
  --seg: #F2F5FC;
  --hero-top: #F3F7FF;
  --tint: var(--blue-50);
  --tint-2: var(--blue-100);
  --tint-3: var(--blue-200);
  --accent: var(--blue-600);
  --accent-2: var(--blue-700);
  --heading: var(--blue-950);
  --danger: #D93A42;
  --uk-red: #C8102E;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(10, 36, 99, .06), 0 2px 8px rgba(10, 36, 99, .05);
  --shadow: 0 12px 32px -12px rgba(10, 36, 99, .2), 0 2px 6px rgba(10, 36, 99, .05);
  --shadow-lg: 0 34px 70px -24px rgba(10, 36, 99, .35), 0 4px 12px rgba(10, 36, 99, .06);

  /* Easing (web-animation-design) */
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;

  --header-h: 76px;
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--tint-3); color: var(--heading); }
:focus-visible { outline: 2.5px solid var(--blue-500); outline-offset: 3px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Typography ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.eyebrow--light { color: var(--blue-300); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 160ms var(--ease-out-cubic);
}
.btn:active { transform: scale(0.97); }
.btn .ic { width: 18px; height: 18px; transition: transform 200ms var(--ease-out-cubic); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .88rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--blue-600); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(26, 86, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--outline { background: var(--surface); color: var(--accent-2); border-color: var(--tint-3); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--white { background: #fff; color: var(--blue-700); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .ic { transform: translateX(3px); }
  .btn--primary:hover { background: var(--blue-700); }
  .btn--outline:hover { border-color: var(--blue-400); background: var(--tint); }
  .btn--ghost:hover { background: var(--tint); color: var(--accent-2); }
  .btn--white:hover { background: var(--tint); }
}

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out-cubic);
}
.icon-btn:active { transform: scale(0.95); }

.tag {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--tint); color: var(--accent-2);
  font-size: .78rem; font-weight: 800; letter-spacing: .01em;
  white-space: nowrap;
}

/* ---------- Scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600) 60%, var(--blue-800));
  transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(10, 36, 99, .3);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__actions { display: flex; align-items: center; gap: 8px; }

.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { flex: none; width: 50px; height: 36px; color: #27509F; }
.logo__text b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1; letter-spacing: -.01em; }
.logo__text small { display: block; margin-top: 5px; font-size: .6rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.logo--light { color: #fff; }
.logo--light .logo__mark { color: #fff; }
.logo--light .logo__text small { color: var(--blue-300); }

.nav { position: relative; display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; z-index: 1;
  padding: 9px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 700; color: var(--ink-2);
  text-decoration: none;
  transition: color 200ms ease;
}
.nav a.is-active { color: var(--accent-2); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--accent-2); } }
.nav__pill {
  position: absolute; left: 0; top: 0; height: 100%;
  border-radius: 999px; background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--tint-2);
  opacity: 0;
  transition:
    transform 400ms var(--ease-in-out-cubic),
    width 400ms var(--ease-in-out-cubic),
    opacity 200ms ease;
}
.nav__pill.is-on { opacity: 1; }

.burger {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  position: relative;
  transition: transform 160ms var(--ease-out-cubic);
}
.burger:active { transform: scale(0.95); }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
  background: var(--ink);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; right: 18px; }

/* ---------- Mobile menu ---------- */
.mmenu { position: fixed; inset: 0; z-index: 70; overflow: hidden; pointer-events: none; visibility: hidden; transition: visibility 0s linear 280ms; }
.mmenu.is-open { pointer-events: auto; visibility: visible; transition: none; }
.mmenu__overlay {
  position: absolute; inset: 0;
  background: rgba(6, 22, 58, .45);
  opacity: 0;
  transition: opacity 280ms var(--ease-out-cubic);
}
.mmenu__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(88vw, 400px);
  background: var(--surface);
  padding: 18px 20px 24px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 280ms var(--ease-out-cubic);
  box-shadow: -30px 0 60px -30px rgba(6, 22, 58, .4);
}
.mmenu.is-open .mmenu__overlay { opacity: 1; }
.mmenu.is-open .mmenu__panel { transform: none; }
/* Chiqish ~20% tezroq */
.mmenu:not(.is-open) .mmenu__overlay,
.mmenu:not(.is-open) .mmenu__panel { transition-duration: 220ms; }

.mmenu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.mmenu__nav { display: flex; flex-direction: column; }
.mmenu__nav a {
  padding: 14px 4px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.3rem;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(16px);
  transition: opacity 300ms var(--ease-out-cubic), transform 300ms var(--ease-out-cubic);
}
.mmenu.is-open .mmenu__nav a {
  opacity: 1; transform: none;
  transition-delay: calc(var(--i) * 40ms + 80ms);
}
.mmenu__foot { margin-top: auto; display: grid; gap: 10px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 40px;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--page) 78%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob--1 {
  width: 760px; height: 760px; right: -240px; top: -260px;
  background: radial-gradient(closest-side, rgba(61, 116, 245, .30), rgba(61, 116, 245, 0));
}
.blob--2 {
  width: 560px; height: 560px; left: -260px; top: 32%;
  background: radial-gradient(closest-side, rgba(164, 192, 252, .45), rgba(164, 192, 252, 0));
}
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(26, 86, 240, .16) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 72% 42%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 55% at 72% 42%, #000 20%, transparent 72%);
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center;
}

/* Sarlavha ustun kengligiga ham bog‘liq (cqi): tor noutbukda "ga" alohida qatorga tushib qolmasin */
.hero__content { container-type: inline-size; }
.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-display); font-weight: 600;
  font-size: min(clamp(2.1rem, 1.2rem + 3.4vw, 3.8rem), 10.2cqi);
  line-height: 1.08; letter-spacing: -0.035em;
  color: var(--heading);
}
.hero__title .w {
  display: inline-block; vertical-align: top;
  overflow: hidden;
  padding: 0 .02em .12em; margin-bottom: -.12em;
}
.hero__title .w > span { display: inline-block; }
.hero__title em {
  position: relative; z-index: 0; isolation: isolate;
  font-style: normal; color: var(--accent);
}
.hero__title em::after {
  content: ""; position: absolute; z-index: -1;
  left: -.04em; right: -.04em; bottom: .04em; height: .3em;
  border-radius: .1em;
  background: var(--tint-2);
}
.hero__lead { max-width: 560px; font-size: 1.18rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts a { text-decoration: none; }
.hero__facts .ic { width: 18px; height: 18px; color: var(--uk-red); }

/* --- Hero visual: asoschi rasmi ramkada, atrofida suzib yuruvchi kartochkalar ---
   Hamma o‘lcham .hp kengligiga nisbatan (% va cqw) — telefonda kompozitsiya shunchaki kichrayadi.
   Kartochkalar sichqoncha ortidan turli chuqurlikda (--z) siljiydi: --px/--py ni main.js qo‘yadi. */
.hero__visual { position: relative; display: flex; justify-content: flex-end; }
.hp {
  position: relative; flex-shrink: 0;
  width: 540px; max-width: 100%; aspect-ratio: 540 / 620;
  container-type: inline-size;
}
/* Kompyuterda rasm kattaroq, lekin faqat tepaga (va chapdagi bo‘sh joyga) o‘sadi:
   pastki cheti 540px’lik o‘lchamdagi joyida qoladi, hero balandligi o‘zgarmaydi. 1.1481 = 620 / 540 */
@media (min-width: 981px) {
  .hp {
    --w: min(620px, 100% + 24px);
    width: var(--w); max-width: none;
    margin-right: -10px;
    margin-top: calc((min(540px, 100%) - var(--w)) * 1.1481);
  }
}
@media (min-width: 1200px) { .hp { --w: min(620px, 100% + 56px); } }
/* Konteynerdan o‘ngda bo‘sh joy paydo bo‘lgach, o‘ngga ham biroz chiqadi */
@media (min-width: 1320px) { .hp { --w: min(620px, 100% + 64px); margin-right: -24px; } }
.hp__pop { translate: calc(var(--px, 0) * var(--z, 0) * 1px) calc(var(--py, 0) * var(--z, 0) * 1px); }
.hp__frame {
  position: absolute; left: 16.7%; top: 17.7%; width: 66.7%; height: 77.4%;
  border-radius: 50% 50% 9% 9% / 37.5% 37.5% 6.7% 6.7%;
  border: 1.6cqw solid var(--surface);
  overflow: hidden; isolation: isolate;
  background: var(--tint-2);
  box-shadow: var(--shadow-lg);
}
.hp__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
/* Rasm tepasidagi shift chirog‘i ramkaga singib ketadi */
.hp__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, var(--surface), transparent 13%); }

.hp__seal {
  position: absolute; left: 75%; top: 8.5%; width: 22.2%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow);
  color: var(--accent);
  --z: 10; --b: 4;
}
.hp__seal-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.hp__seal-text text { font: 800 10px var(--font); fill: var(--ink-2); }
.hp__seal-logo { width: 38%; aspect-ratio: 1000 / 709; }

.hp__card, .hp__chip {
  position: absolute;
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--heading);
}
.hp__card { gap: 2.2cqw; padding: 2.2cqw 3.4cqw 2.2cqw 2.2cqw; border-radius: 3.6cqw; }
.hp__text { min-width: 0; }
.hp__card b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 3.1cqw, 17px); line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.hp__card small { display: block; margin-top: .3em; font-size: clamp(11px, 2.4cqw, 13px); font-weight: 700; color: var(--muted); white-space: nowrap; }
.hp__icon {
  flex: none; display: grid; place-items: center;
  width: max(32px, 8.6cqw); height: max(32px, 8.6cqw); border-radius: 30%;
  background: var(--accent); color: #fff;
}
.hp__icon .ic { width: 52%; height: 52%; }
.hp__chip {
  gap: .45em; padding: .55em 1.05em .55em .8em; border-radius: 999px;
  font-size: clamp(12px, 2.8cqw, 15px); font-weight: 800; color: var(--accent-2);
}
.hp__chip .ic { width: 1.3em; height: 1.3em; color: var(--uk-red); }

.hp__chip--ielts { left: 0; top: 27%; --z: 16; --b: 0; }
.hp__chip--cefr { right: 0; top: 45%; --z: 12; --b: 1.6; }
.hp__card--name { right: 0; top: 81%; --z: 14; --b: 2.2; }

.hp__spark { position: absolute; width: 4.4cqw; height: 4.4cqw; color: var(--blue-400); animation: hp-twinkle 3.4s var(--ease-in-out-cubic) infinite; animation-delay: calc(var(--b, 0) * -1s); }
.hp__spark--1 { left: 11%; top: 12%; --z: 6; --b: .4; }
.hp__spark--2 { left: 85%; top: 36%; width: 3cqw; height: 3cqw; color: var(--uk-red); --z: 8; --b: 1.6; }
.hp__spark--3 { left: 5%; top: 50%; width: 3.4cqw; height: 3.4cqw; --z: 12; --b: 2.6; }

.hp__float { animation: hp-bob 5.5s var(--ease-in-out-cubic) infinite alternate; animation-delay: calc(var(--b, 0) * -1s); }
@keyframes hp-bob { to { transform: translateY(-2.2cqw); } }
@keyframes hp-twinkle { 0%, 100% { transform: scale(.35) rotate(0deg); } 50% { transform: scale(1) rotate(90deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Hero load animatsiyalari --- */
.js .hero__title .w > span {
  transform: translateY(108%);
  transition: transform 1000ms var(--ease-out-expo);
  transition-delay: calc(var(--i) * 75ms + 120ms);
}
.js .hero__title em::after {
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 800ms var(--ease-out-quart) 750ms;
}
.js [data-load] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 800ms var(--ease-out-quart), transform 800ms var(--ease-out-quart);
  transition-delay: var(--d, 0ms);
}
/* Doira kattalashib chiqadi, ramka pastdan ko‘tariladi (rasm ichida sekin uzoqlashadi), kartochkalar birin-ketin "sakrab" chiqadi */
.js .hp__frame { opacity: 0; transform: translateY(14%); transition: opacity 900ms var(--ease-out-quart) 250ms, transform 1300ms var(--ease-out-expo) 250ms; }
.js .hp__frame img { scale: 1.18; transition: scale 1800ms var(--ease-out-quart) 250ms; }
.js .hp__pop {
  opacity: 0; scale: .5;
  transition: opacity 500ms var(--ease-out-quart) var(--d, 0ms), scale 800ms cubic-bezier(.34, 1.56, .64, 1) var(--d, 0ms), translate 800ms var(--ease-out-quart);
}

.is-loaded .hero__title .w > span { transform: none; }
.is-loaded .hero__title em::after { transform: scaleX(1); }
.is-loaded [data-load] { opacity: 1; transform: none; }
.is-loaded .hp__frame, .is-loaded .hp__pop { opacity: 1; scale: 1; }
.is-loaded .hp__frame { transform: none; }
.is-loaded .hp__frame img { scale: 1; }

/* =========================================================
   MARQUEE
   ========================================================= */
/* Pastda 64px: lenta qiya, chap uchi pastroq — soyasi oxirigacha so‘nsin, keskin chiziq bilan kesilmasin */
.marquee-wrap { overflow: hidden; padding: 28px 0 64px; margin: -4px 0 -64px; position: relative; z-index: 2; pointer-events: none; }
.marquee {
  position: relative;
  padding: 22px 0;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-600), var(--blue-700));
  color: #fff;
  overflow: hidden;
  transform: rotate(-1.6deg) scale(1.04);
  box-shadow: 0 20px 40px -24px rgba(21, 68, 196, .7);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__group span { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, .9rem + .7vw, 1.5rem); letter-spacing: -.01em; white-space: nowrap; }
.marquee__group i { font-style: normal; color: #FF8C9C; font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: 120px 0; }
.section--tint { background: var(--tint); }
.section--pt0 { padding-top: 0; }
.section__head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section__head > p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; text-wrap: pretty; }
.section__head--light .h2 { color: #fff; }
.section__head--light > p { color: rgba(225, 233, 255, .72); }

/* --- Reveal on scroll --- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 850ms var(--ease-out-quart),
    transform 850ms var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.95); }
.js [data-reveal="fade"] { transform: none; }
/* Kartochka: pastdan egilib ko‘tariladi */
.js [data-reveal="card"] {
  transform: perspective(1400px) translate3d(0, 90px, 0) rotateX(14deg) scale(.94);
  transform-origin: 50% 100%;
  transition: opacity 900ms var(--ease-out-quart), transform 1300ms var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Sarlavha bloki o‘zi joyida turadi — ichidagilar navbat bilan chiqadi */
.js [data-reveal].rv-group { opacity: 1; transform: none; transition: none; }

/* Ichki qismlar navbat bilan: --k — blok ichidagi tartib, --i — bloklar orasidagi tartib.
   Hover’dagi transform/transition’larga tegmaslik uchun alohida translate/scale va animation ishlatiladi. */
.js [data-reveal]:not(.is-in) .rv { opacity: 0; }
.js [data-reveal].is-in .rv {
  animation: rv-up 900ms var(--ease-out-expo) both;
  animation-delay: calc(var(--rv-base, 260ms) + var(--k, 0) * 70ms + var(--i, 0) * 120ms);
}
.js [data-reveal].rv-group { --rv-base: 0ms; }
.js [data-reveal].is-in .rv--left { animation-name: rv-left; }
.js [data-reveal].is-in .rv--pop { animation-name: rv-pop; animation-duration: 700ms; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); }
.js [data-reveal].is-in .rv--word { animation-name: rv-word; animation-duration: 1100ms; }
.js [data-reveal].is-in .rv--zoom { animation-name: rv-zoom; animation-duration: 1400ms; }
.js [data-reveal].is-in .rv--wipe { animation-name: rv-wipe; animation-duration: 1300ms; }
.js [data-reveal].is-in .rv--wipe img { animation: rv-zoom-img 1800ms var(--ease-out-expo) both; animation-delay: inherit; }
@keyframes rv-up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-left { from { opacity: 0; translate: -26px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-pop { from { opacity: 0; scale: .3; rotate: -14deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes rv-word { from { opacity: 0; translate: 0 110%; rotate: 4deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
@keyframes rv-zoom { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }
@keyframes rv-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rv-zoom-img { from { scale: 1.25; } to { scale: 1; } }
/* Sarlavha so‘zlari niqob ichidan ko‘tariladi */
.rvw {
  display: inline-block; vertical-align: top;
  overflow: hidden;
  padding: 0 .02em .14em; margin-bottom: -.14em;
}
.rvw > .rv { display: inline-block; transform-origin: 0 100%; }
.wcard__art > svg.rv--zoom { transform-origin: 50% 60%; }

/* Hover yorug‘ligi (sichqoncha ortidan) */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(26, 86, 240, .09), transparent 45%);
  opacity: 0; transition: opacity 300ms ease;
}
.spot > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) { .spot:hover::before { opacity: 1; } }

/* =========================================================
   ABOUT: rasmli kartalar
   ========================================================= */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.why__col { display: grid; gap: 28px; min-width: 0; }
.why__head { padding: 8px 12px 28px 4px; }
.why__head > p { margin-top: 18px; max-width: 480px; color: var(--muted); font-size: 1.1rem; text-wrap: pretty; }
.why__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.why__tags span {
  padding: 8px 16px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--tint-2);
  font-weight: 700; font-size: .88rem; color: var(--accent-2);
}

.wcard {
  padding: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}
.wcard__art {
  position: relative; overflow: hidden;
  aspect-ratio: 8 / 5; border-radius: 22px;
  background:
    radial-gradient(rgba(26, 86, 240, .14) 1.5px, transparent 1.6px) 0 0 / 20px 20px,
    linear-gradient(160deg, #F2F6FF, #DDE7FD);
}
.wcard__art--navy { background: linear-gradient(150deg, var(--blue-800), var(--blue-950)); }
.wcard__art--sky { background: linear-gradient(160deg, #CFE0FF, #9DBDFB); }
.wcard__art--peach {
  background:
    radial-gradient(rgba(236, 104, 72, .16) 1.5px, transparent 1.6px) 0 0 / 20px 20px,
    linear-gradient(160deg, #FFF3ED, #FBDCCD);
}
.wcard__art svg { display: block; width: 100%; height: 100%; }
.wcard__art text { font-family: var(--font); font-weight: 800; }
.wcard__lift, .wcard__chip, .wcard__float { transition: transform 500ms var(--ease-out-cubic); }
.wcard__scan { animation: wscan 3.6s var(--ease-in-out-cubic) infinite alternate; }
@keyframes wscan { from { transform: translateY(-112px); } to { transform: translateY(100px); } }
.wcard__eq rect { transform-box: fill-box; transform-origin: 50% 50%; animation: wbar 1.5s ease-in-out infinite alternate; }
.wcard__eq rect:nth-child(3n) { animation-delay: -.5s; }
.wcard__eq rect:nth-child(3n + 1) { animation-delay: -1s; }
@keyframes wbar { from { transform: scaleY(.62); } to { transform: scaleY(1); } }

.wcard__body { padding: 24px 20px 16px; }
.wcard__body h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 8px; }
.wcard__body p { color: var(--muted); font-size: 1.02rem; text-wrap: pretty; }
.wcard__more {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px;
  color: var(--accent-2); font-weight: 800; text-decoration: none;
}
.wcard__more span {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
  transition: background-color 250ms ease, color 250ms ease, transform 300ms var(--ease-out-cubic);
}
.wcard__more .ic { width: 17px; height: 17px; stroke-width: 2.4; }
@media (hover: hover) and (pointer: fine) {
  .wcard:hover { border-color: var(--tint-3); box-shadow: var(--shadow); }
  .wcard:hover .wcard__lift { transform: translateY(-7px); }
  .wcard:hover .wcard__chip { transform: translateY(5px); }
  .wcard:hover .wcard__chip--2 { transform: translateY(-5px); }
  .wcard:hover .wcard__float { transform: translate(6px, -6px); }
  .wcard:hover .wcard__more span { background: var(--blue-600); color: #fff; transform: translateX(4px); }
}

/* =========================================================
   COURSES
   ========================================================= */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.course--featured { grid-column: span 2; }
.courses__note { margin-top: 26px; text-align: center; color: var(--ink-2); font-weight: 600; }
.course { display: flex; }
.course__card {
  display: flex; flex-direction: column;
  width: 100%;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease-out-quart), box-shadow 300ms ease, border-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  /* Ota element joyida qoladi, ichki karta ko‘tariladi — hover "titrashi" bo‘lmaydi */
  .course:hover .course__card { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--tint-3); }
}
.course__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 26px; }
.course__icon {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent);
}
.course__icon .ic { width: 24px; height: 24px; }
.course h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.course p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.course__meta { display: grid; gap: 10px; margin-bottom: 28px; margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line); }
.course__meta li { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; color: var(--ink-2); }
.course__meta .ic { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.6; }

.course--featured h3 { font-size: 2rem; }
.course--uk .course__card {
  background:
    radial-gradient(140% 70% at 100% 0%, rgba(110, 152, 250, .35), transparent 60%),
    linear-gradient(165deg, var(--blue-800), var(--blue-950));
}
.course--featured .course__card {
  color: #fff;
  border-color: transparent;
  background:
    radial-gradient(140% 70% at 100% 0%, rgba(110, 152, 250, .5), transparent 60%),
    linear-gradient(165deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 30px 60px -28px rgba(21, 68, 196, .75);
}
.course--featured p { color: rgba(229, 237, 255, .8); }
.course--featured .course__icon { background: rgba(255, 255, 255, .15); color: #fff; }
.course--featured .tag { background: rgba(255, 255, 255, .15); color: #fff; }
.course--featured .course__meta { border-color: rgba(255, 255, 255, .2); }
.course--featured .course__meta li { color: #fff; }
.course--featured .course__meta .ic { color: var(--blue-300); }
.course--featured .spot::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 45%); }
/* =========================================================
   TEAM
   ========================================================= */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tint-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.person__body { position: relative; display: grid; align-content: start; gap: 8px; padding: 24px 26px 28px; }
.person h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; }
.person__role { font-weight: 800; color: var(--accent-2); }
.person__bio { color: var(--muted); }
.person__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.person__tags span { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-weight: 700; font-size: .9rem; }

.person--lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 0; color: #fff;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(110, 152, 250, .4), transparent 60%),
    linear-gradient(150deg, var(--blue-700), var(--blue-950) 80%);
  box-shadow: 0 34px 70px -34px rgba(21, 68, 196, .8);
}
.person--lead .person__photo { aspect-ratio: auto; min-height: 520px; position: relative; }
.person--lead .person__photo img { position: absolute; inset: 0; }
.person--lead .person__body { align-content: center; padding: 56px; }
.person--lead h3 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.person--lead .person__role { color: var(--blue-300); font-size: 1.12rem; }
.person--lead .person__bio { margin-top: 8px; max-width: 520px; color: rgba(229, 237, 255, .85); font-size: 1.08rem; }

/* =========================================================
   CTA + FORM
   ========================================================= */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 64px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(80% 90% at 0% 0%, rgba(110, 152, 250, .55), transparent 55%),
    linear-gradient(140deg, var(--blue-600) 0%, var(--blue-800) 60%, var(--blue-950) 100%);
  box-shadow: 0 40px 80px -40px rgba(21, 68, 196, .8);
}
.cta__deco { position: absolute; inset: 0; pointer-events: none; }
.cta__deco i {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  pointer-events: none;
}
.cta__deco i:nth-child(1) { width: 520px; height: 520px; left: -200px; bottom: -300px; }
.cta__deco i:nth-child(2) { width: 340px; height: 340px; left: -110px; bottom: -210px; }
.cta__content { position: relative; }
.cta__content > p { margin: 18px 0 28px; color: rgba(229, 237, 255, .82); font-size: 1.08rem; max-width: 480px; }
.cta__list { display: grid; gap: 14px; }
.cta__list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.cta__list li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); flex: none; }
.cta__list .ic { width: 15px; height: 15px; stroke-width: 3; }

.form-card {
  position: relative;
  padding: 36px;
  background: var(--surface); color: var(--ink);
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(6, 22, 58, .6);
}
.form { display: grid; gap: 18px; }
.form__head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; }
.form__head p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .86rem; font-weight: 800; color: var(--ink-2); padding: 0; }
.field legend { margin-bottom: 8px; }
.field input[type="text"], .field input[type="tel"], .select select {
  width: 100%; height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--field);
  font-size: 1rem; font-weight: 600;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #9AA8C4; font-weight: 500; }
.field input:focus, .select select:focus, .phone:focus-within {
  outline: none;
  border-color: var(--blue-500);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(26, 86, 240, .12);
}
.phone {
  display: flex; align-items: center;
  height: 54px;
  border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--field);
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.phone__code { padding: 0 4px 0 16px; font-weight: 800; color: var(--ink-2); }
.phone input[type="tel"] { height: 100%; border: 0; background: transparent; box-shadow: none !important; padding-left: 8px; }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); pointer-events: none;
}
.select select { padding-right: 44px; cursor: pointer; }

.field__err { display: none; color: var(--danger); font-size: .8rem; font-weight: 700; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid .phone { border-color: var(--danger); }
.field.is-invalid .phone input { border: 0; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: var(--seg); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: grid; place-items: center;
  height: 42px; padding: 0 6px; border-radius: 10px;
  font-size: .86rem; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.15;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.seg input:checked + span { background: var(--surface); color: var(--accent-2); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2.5px solid var(--blue-500); outline-offset: 1px; }

.form__submit { margin-top: 4px; }
.spinner {
  display: none;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
.form.is-loading .spinner { display: block; }
.form.is-loading .form__submit-text { display: none; }
.form.is-loading .form__submit { pointer-events: none; opacity: .85; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; }
.form__error { padding: 12px 14px; border-radius: 12px; background: #FFF1F2; color: #A3242B; font-size: .88rem; font-weight: 600; }
.form__error a { font-weight: 800; }

.form-done { text-align: center; padding: 30px 6px; display: grid; justify-items: center; gap: 12px; }
.form-done h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; }
.form-done p { color: var(--muted); max-width: 320px; margin-bottom: 10px; }
.form-done__icon svg { width: 76px; height: 76px; }
.form-done__icon circle { fill: var(--tint); stroke: var(--blue-600); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 700ms var(--ease-out-quart) forwards; }
.form-done__icon path { fill: none; stroke: var(--blue-600); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 500ms var(--ease-out-quart) 450ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done:not([hidden]) { animation: pop 450ms var(--ease-out-quart); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Contacts */
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.contact {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.contact__icon { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.contact small { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact__note { display: block; color: var(--muted); font-size: .92rem; font-weight: 600; }
.contact b { display: block; margin: 4px 0 2px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.contact b a { text-decoration: none; }
.contact .muted, .contact .link { font-size: .88rem; font-weight: 600; }
.link { color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration: underline; } }

/* =========================================================
   MAP + LONDON
   ========================================================= */
.find { padding-bottom: 0; padding-top: 96px; }
.find .section__head { margin-bottom: 36px; }
.map { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--tint); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: clamp(320px, 38vw, 480px); border: 0; }
.map__bar { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--surface); }
.map__bar > div { flex: 1; min-width: 0; }
.map__bar b { display: block; font-weight: 800; }
.map__bar small { color: var(--muted); font-weight: 600; font-size: .88rem; }
.skyline { position: relative; height: clamp(84px, 12vw, 170px); margin-top: 64px; overflow: hidden; }
.skyline__city { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; color: var(--blue-950); }
.skyline__bus { position: absolute; left: 0; bottom: 2px; width: clamp(84px, 9vw, 130px); height: calc(clamp(84px, 9vw, 130px) * .534); animation: drive 32s linear infinite; }

/* Ekrandan tashqaridagi to‘xtovsiz animatsiyalar to‘xtab turadi — .is-off ni main.js qo‘yadi */
.is-off .marquee__track,
.is-off .hp__float, .is-off .hp__spark, .is-off .hp__seal-text,
.is-off .wcard__scan, .is-off .wcard__eq rect, .is-off .skyline__bus { animation-play-state: paused; }
@keyframes drive { from { transform: translateX(-140px); } to { transform: translateX(100vw); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--blue-950); color: rgba(229, 237, 255, .7); padding: 88px 0 28px; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { margin-top: 20px; max-width: 340px; }
.footer h4 { color: #fff; font-size: .95rem; font-weight: 800; margin-bottom: 18px; }
.footer__grid > div:not(.footer__brand) { display: flex; flex-direction: column; gap: 12px; }
.footer a { text-decoration: none; transition: color 200ms ease; }
.footer__grid a:not(.logo) { font-weight: 600; font-size: .95rem; }
.footer a em { white-space: nowrap; font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; margin-left: 6px; border-radius: 6px; background: rgba(110, 152, 250, .18); color: var(--blue-300); vertical-align: 1px; }
@media (hover: hover) and (pointer: fine) { .footer__grid a:not(.logo):hover, .link-light:hover { color: #fff; } }
.footer__big {
  margin: 56px 0 12px;
  text-align: center; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700;
  font-size: 19vw;
  line-height: 1; letter-spacing: -.03em;
  color: transparent;
  background: linear-gradient(180deg, rgba(110, 152, 250, .3), rgba(110, 152, 250, .05));
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
/* Harflarga bo‘lingach: har harf o‘z gradienti bilan pastdan ko‘tariladi */
.footer__big.is-split { background: none; overflow: hidden; padding-bottom: .04em; }
.footer__big.is-split .rv {
  display: inline-block;
  background: linear-gradient(180deg, rgba(110, 152, 250, .3), rgba(110, 152, 250, .05));
  -webkit-background-clip: text; background-clip: text;
}
.js [data-reveal].is-in .footer__big .rv, .js .footer__big[data-reveal].is-in .rv { animation-name: rv-word; animation-duration: 1300ms; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }

/* Yuqoriga tugmasi */
.totop {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: var(--surface); color: var(--accent-2); cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(.95); pointer-events: none;
  transition: opacity 250ms var(--ease-out-cubic), transform 250ms var(--ease-out-cubic);
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:active { transform: scale(.95); }
.totop .ic { position: relative; }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke: var(--tint-2); stroke-width: 3; }
.totop__ring .totop__fg { stroke: var(--blue-600); stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1140px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .nav, .header__login { display: none; }
  .burger { display: block; }
}

@media (max-width: 980px) {
  .section { padding: 88px 0; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__facts { justify-content: center; }
  .hero__visual { justify-content: center; }
  .hp { width: 100%; max-width: 460px; }
  .why, .why__col { gap: 20px; }
  .wcard { border-radius: 26px; padding: 10px; }
  .wcard__art { border-radius: 18px; }
  .cta { grid-template-columns: 1fr; padding: 48px 40px; gap: 40px; }
  .contacts { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .person--lead .person__body { padding: 40px 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding-inline: 16px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .header__cta { display: none; }
  .logo__mark { width: 44px; height: 32px; }
  .hero__title { margin: 0 0 18px; }
  .hero__lead { font-size: 1.02rem; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { margin-top: 24px; }
  .marquee { padding: 16px 0; transform: rotate(-1.6deg) scale(1.06); }
  .why, .courses, .contacts { grid-template-columns: 1fr; }
  .why__head { padding: 0 2px 12px; }
  .wcard__body { padding: 20px 14px 12px; }
  .wcard__body h3 { font-size: 1.26rem; }
  .course--featured { grid-column: auto; }
  .team { grid-template-columns: 1fr; }
  .person--lead { grid-template-columns: 1fr; }
  .person--lead .person__photo { min-height: 0; aspect-ratio: 4 / 5; }
  .person--lead .person__body { padding: 30px 24px 34px; }
  .map__bar { flex-wrap: wrap; }
  .map__bar .btn { width: 100%; }
  .find { padding-top: 72px; }
  .cta { padding: 36px 20px 20px; border-radius: 28px; }
  .form-card { padding: 26px 20px; border-radius: 22px; }
  .seg span { font-size: .8rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .totop { right: 16px; bottom: 16px; }
}

/* =========================================================
   KAMAYTIRILGAN HARAKAT (prefers-reduced-motion)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skyline__bus { animation: none; }
  .skyline__bus { transform: translateX(14vw); }
  .marquee__track { animation: none; }
  .js .hero__title .w > span, .js .hero__title em::after,
  .js [data-load], .js .hp__frame, .js .hp__frame img, .js .hp__pop { transition: none; }
  .hp__float, .hp__spark, .hp__seal-text { animation: none; }
  .js [data-reveal] { transition: none; opacity: 1; transform: none; }
  .js [data-reveal] .rv, .js [data-reveal].is-in .rv, .js [data-reveal].is-in .rv--wipe img { animation: none; opacity: 1; }
  .nav__pill, .mmenu__overlay, .mmenu__panel, .mmenu__nav a { transition: none; }
  .wcard__scan, .wcard__eq rect { animation: none; }
  .course__card, .wcard, .wcard__lift, .wcard__chip, .wcard__float, .wcard__more span { transition: none; }
  .btn, .totop { transition: none; }
  .form-done__icon circle, .form-done__icon path, .form-done:not([hidden]) { animation: none; stroke-dashoffset: 0; }
}

/* =========================================================
   TUNGI REJIM
   ========================================================= */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E8EEFB;
  --ink-2: #C6D1E8;
  --muted: #97A5C3;
  --line: #243049;
  --page: #0B1326;
  --surface: #131D35;
  --field: #0B1326;
  --seg: #0B1326;
  --hero-top: #0F1E44;
  --tint: #1A2747;
  --tint-2: #22345A;
  --tint-3: #2F4777;
  --accent: #8FB0F7;
  --accent-2: #A9C3F6;
  --heading: #F2F6FF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, .75), 0 4px 12px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .section--tint { background: #0F1A33; }
html[data-theme="dark"] .hero__facts .ic { color: #FF7A8A; }
html[data-theme="dark"] .header.is-scrolled { background: rgba(11, 19, 38, .88); box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .logo:not(.logo--light) .logo__mark { color: var(--blue-400); }
html[data-theme="dark"] .dots { background-image: radial-gradient(rgba(110, 152, 250, .16) 1px, transparent 1.2px); }
html[data-theme="dark"] .blob--2 { background: radial-gradient(closest-side, rgba(61, 116, 245, .22), rgba(61, 116, 245, 0)); }
html[data-theme="dark"] .wcard__art:not(.wcard__art--navy) { filter: brightness(.9) saturate(.95); }
html[data-theme="dark"] .form-card { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
html[data-theme="dark"] .form__error { background: #3A1A20; color: #FF9EA4; }
html[data-theme="dark"] .field input::placeholder { color: #6F7F9F; }
/* Shahar silueti futerga uzilmasdan qo‘shilib ketadi */
html[data-theme="dark"] .skyline__city { color: #14234A; }
html[data-theme="dark"] .footer { background: #14234A; }
html[data-theme="dark"] .map iframe { filter: brightness(.85); }

/* Tungi/yorug‘ rejim tugmasi */
.theme-btn { color: var(--ink-2); }
.theme-btn .ic { width: 19px; height: 19px; }
.theme-btn .ic--sun, html[data-theme="dark"] .theme-btn .ic--moon { display: none; }
html[data-theme="dark"] .theme-btn .ic--sun { display: block; }
@media (hover: hover) and (pointer: fine) { .theme-btn:hover { background: var(--tint); color: var(--accent-2); } }

/* Telefonda orqa fonni xiralash (backdrop blur) scrollni sekinlatadi — o‘rniga deyarli to‘liq fon */
@media (max-width: 640px) {
  .header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
  html[data-theme="dark"] .header.is-scrolled { background: rgba(11, 19, 38, .97); }
}
