/* =========================================================
   KxEdu — landing page
   Tuzilma: 1) Tokenlar  2) Asos  3) Komponentlar  4) Bo‘limlar
            5) Responsive  6) Harakatni kamaytirish
   ========================================================= */

/* ---------- 1. DIZAYN TOKENLARI ---------- */
:root {
  /* Brend ranglari */
  /* Ko‘k shkala — logodagi #016EC2 asosida */
  --blue-950: #041A33;
  --blue-900: #072646;
  --blue-800: #0A3A6B;
  --blue-700: #0B5394;
  --blue-600: #016EC2;   /* logo rangi */
  --blue-500: #2A8BD8;
  --blue-200: #BFDDF5;
  --blue-100: #E6F2FC;
  --gold-600: #B9800F;
  --gold-500: #E6A92E;
  --gold-400: #F0BE4F;
  --gold-200: #F6D58C;
  --gold-100: #FBF0D6;

  /* Semantik ranglar — yorug‘ mavzu */
  --bg: #EEF5FC;
  --bg-alt: #E2EEF9;
  --surface: #FFFFFF;
  --surface-2: #F5F9FE;
  --text: #072646;
  --text-muted: #4A6280;
  --border: #CFE0F1;
  --primary: var(--blue-600);
  --primary-contrast: #FFFFFF;
  --accent: var(--gold-500);
  --accent-hover: var(--gold-400);
  --accent-contrast: var(--blue-900);
  --accent-text: #9A6A08;          /* oq fonda o‘qiladigan oltin matn */
  --brand-soft: var(--blue-100);    /* ikonka fonlari */
  --brand-text: var(--blue-700);    /* ikonka va yorliq rangi */
  --rays: rgba(1, 110, 194, .07);  /* logodagi nurlar naqshi */
  --focus: #0B5394;
  --shadow-sm: 0 1px 2px rgba(7, 38, 70, .06), 0 2px 8px rgba(7, 38, 70, .05);
  --shadow-md: 0 6px 24px -6px rgba(7, 38, 70, .16);
  --shadow-lg: 0 24px 60px -18px rgba(7, 38, 70, .30);

  /* Shriftlar */
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  /* Oraliqlar (4px shkala) */
  --s-1: .25rem;  --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-8: 2rem;   --s-10: 2.5rem;
  --s-12: 3rem;   --s-16: 4rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --gutter: 1rem;

  /* Radiuslar */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-full: 999px;

  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* Tungi mavzu: tizim sozlamasi bo‘yicha (agar foydalanuvchi qo‘lda "light" tanlamagan bo‘lsa) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061426;
    --bg-alt: #08192F;
    --surface: #0C2038;
    --surface-2: #102844;
    --text: #E6F0FA;
    --text-muted: #9DB4CC;
    --border: #1D3A5C;
    --primary: #4FA3E8;
    --primary-contrast: var(--blue-900);
    --accent: #F0B83E;
    --accent-hover: #F6CB6A;
    --accent-text: #F2C25B;
    --brand-soft: rgba(79, 163, 232, .14);
    --brand-text: #7CC0FF;
    --rays: rgba(110, 180, 240, .06);
    --focus: #7CC0FF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 8px 28px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
/* Tungi mavzu: qo‘lda tanlangan */
:root[data-theme="dark"] {
  --bg: #061426;
  --bg-alt: #08192F;
  --surface: #0C2038;
  --surface-2: #102844;
  --text: #E6F0FA;
  --text-muted: #9DB4CC;
  --border: #1D3A5C;
  --primary: #4FA3E8;
  --primary-contrast: var(--blue-900);
  --accent: #F0B83E;
  --accent-hover: #F6CB6A;
  --accent-text: #F2C25B;
    --brand-soft: rgba(79, 163, 232, .14);
    --brand-text: #7CC0FF;
  --rays: rgba(110, 180, 240, .06);
  --focus: #7CC0FF;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 28px -8px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ---------- 2. ASOS ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.18; letter-spacing: -.015em; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
mark { background: none; color: inherit; }

.i {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-contrast);
  padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

.gold { color: var(--gold-400); }
.link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3. KOMPONENTLAR ---------- */

/* Tugmalar */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .65rem 1.2rem;
  border: 1.5px solid var(--btn-bd); border-radius: var(--r-full);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .i-arrow, .btn svg:last-child:not(:first-child) { transition: transform .2s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }

.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: 0 10px 28px -10px rgba(230, 169, 46, .75); }
.btn--primary { --btn-bg: var(--primary); --btn-fg: var(--primary-contrast); --btn-bd: var(--primary); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bd: var(--text); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn--lg { min-height: 52px; padding: .8rem 1.5rem; font-size: 1rem; }
.btn--xl { min-height: 60px; padding: 1rem 2rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { border-color: var(--text); }

/* Eyebrow (kichik sarlavha) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--s-4);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
  transform: rotate(45deg);
}
.eyebrow--on-dark { color: var(--gold-200); }

/* Bo‘lim sarlavhalari */
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6); }
.section__title { font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 700; }
.section__lead { margin-top: var(--s-4); color: var(--text-muted); font-size: 1.05rem; max-width: 56ch; }

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; }
.brand__accent { color: var(--primary); }
.brand--light .brand__accent { color: var(--blue-200); }
.brand--light { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: var(--s-2); }
.nav__cta { display: none; }

/* Mavzu almashtirgich ikonkalari */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Hamburger */
.burger { position: relative; width: 18px; height: 14px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 6px; }
.burger span:nth-child(3) { top: 12px; }
.nav__burger[aria-expanded="true"] .burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] .burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobil menyu paneli */
.nav__menu {
  position: fixed; inset: var(--nav-h) 0 auto 0;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--s-4) var(--gutter) var(--s-6);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
}
.nav__menu.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s; }
.nav__links a {
  display: flex; align-items: center; min-height: 48px; padding-inline: var(--s-2);
  font-weight: 500; font-size: 1.05rem; border-bottom: 1px solid var(--border);
}
.nav__links a.is-active { color: var(--accent-text); }
.nav__cta-mobile { width: 100%; margin-top: var(--s-5); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  /* Logodagi kabi: hero kompozitsiyasi ortidan tarqaladigan yengil nurlar */
  --rays-at: 50% 72%;
  background: radial-gradient(70% 55% at var(--rays-at), color-mix(in srgb, var(--blue-600) 12%, transparent), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at var(--rays-at), var(--rays) 0deg 2.5deg, transparent 2.5deg 9deg);
  -webkit-mask-image: radial-gradient(circle at var(--rays-at), #000 0 18%, transparent 62%);
          mask-image: radial-gradient(circle at var(--rays-at), #000 0 18%, transparent 62%);
}
.hero > .container { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__text { padding-left: 0; }
.hero__title { font-size: clamp(1.75rem, 6.2vw, 3.55rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.hero__title mark {
  position: relative;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%, color-mix(in srgb, var(--accent) 55%, transparent) 92%, transparent 92%);
}
.hero__lead { margin-top: var(--s-5); font-size: clamp(1.02rem, 2.2vw, 1.18rem); color: var(--text-muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero__actions .btn { flex: 1 1 220px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-6); font-size: .92rem; color: var(--text-muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust .i { color: var(--brand-text); stroke-width: 3; }

/* Qatlamli kompozitsiya */
.hero__visual {
  position: relative;
  width: 100%; max-width: 520px; margin-inline: auto;
  aspect-ratio: 1 / .92;
  container-type: inline-size;
}
.paper {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease);
}
.paper--doc {
  left: 4%; top: 4%; width: 54%; height: 84%;
  padding: 7% 6%;
  transform: rotate(-5deg);
  display: flex; flex-direction: column;
}
.doc__tag { align-self: flex-start; font-size: clamp(.55rem, 2.3cqi, .72rem); font-weight: 600; letter-spacing: .06em; padding: .2em .6em; border-radius: var(--r-full); background: var(--gold-100); color: #7A5307; }
.doc__title { margin-top: 9%; font-family: var(--font-display); font-weight: 700; font-size: clamp(.8rem, 4.6cqi, 1.4rem); }
.doc__sub { margin-top: 3%; font-size: clamp(.5rem, 2.3cqi, .74rem); color: var(--text-muted); }
.lines { display: grid; gap: clamp(4px, 1.8cqi, 10px); margin-top: 10%; }
.lines span { display: block; height: clamp(4px, 1.2cqi, 6px); width: 100%; border-radius: 4px; background: var(--border); }
.lines--indent { margin-top: 8%; padding-left: 10%; }
.doc__page { margin-top: auto; text-align: center; font-size: clamp(.5rem, 2.1cqi, .7rem); color: var(--text-muted); }

.paper--slide {
  right: 2%; top: 10%; width: 56%; aspect-ratio: 16 / 10.5;
  overflow: hidden;
  transform: rotate(4deg);
  background: var(--blue-800); border-color: var(--blue-700);
}
.slide__bar { display: flex; gap: 5px; padding: 4% 5%; background: rgba(255, 255, 255, .06); }
.slide__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.slide__body { padding: 5% 7% 7%; height: 100%; }
.slide__title { font-family: var(--font-display); color: #fff; font-size: clamp(.55rem, 3cqi, .95rem); font-weight: 600; }
.slide__chart { display: flex; align-items: flex-end; gap: 7%; height: 52%; margin-top: 7%; border-bottom: 1.5px solid rgba(255, 255, 255, .25); }
.slide__chart span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: rgba(191, 221, 245, .45); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.slide__chart span:nth-child(2) { animation-delay: .08s; } .slide__chart span:nth-child(3) { animation-delay: .16s; }
.slide__chart span:nth-child(4) { animation-delay: .24s; } .slide__chart span:nth-child(5) { animation-delay: .32s; }
.slide__chart .is-accent { background: var(--gold-500); }
@keyframes grow { from { transform: scaleY(0); } }

.paper--cert {
  right: 6%; bottom: 3%; width: 52%;
  padding: 6% 6% 5%;
  transform: rotate(-2deg);
  background: linear-gradient(160deg, #FFFDF6, #FBF0D6);
  border: 1px solid #EBD9A8;
  color: var(--blue-900);
  outline: 1px solid #E2C67E; outline-offset: -8px;
}
.cert__head { font-family: var(--font-display); font-weight: 700; letter-spacing: .18em; font-size: clamp(.55rem, 2.7cqi, .9rem); color: #8A5F08; text-align: center; }
.cert__text { margin-top: 5%; text-align: center; font-size: clamp(.52rem, 2.5cqi, .82rem); line-height: 1.35; color: #33465E; }
.cert__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7%; }
.cert__sign { width: 45%; height: 1px; background: #B8A06A; position: relative; }
.cert__sign::before { content: ""; position: absolute; left: 10%; bottom: 2px; width: 60%; height: 10px; border: 1.5px solid #0B5394; border-color: #0B5394 transparent transparent transparent; border-radius: 50%; }
.cert__seal {
  display: grid; place-items: center;
  width: clamp(28px, 10cqi, 52px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F6D58C, #E6A92E 60%, #B9800F);
  color: var(--blue-900); box-shadow: 0 4px 12px -4px rgba(185, 128, 15, .7);
}

.hero__chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  font-size: clamp(.66rem, 2.6cqi, .85rem); font-weight: 600; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero__chip .i { color: var(--brand-text); }
.hero__chip--a { left: 0; bottom: 18%; }
.hero__chip--b { right: 0; top: 0; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- STATISTIKA ---------- */
.stats { padding-bottom: var(--s-4); }
.stats__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.stat { padding: var(--s-6) var(--s-5); border-color: var(--border); border-style: solid; border-width: 0; }
.stat:nth-child(odd) { border-right-width: 1px; }
.stat:nth-child(-n+2) { border-bottom-width: 1px; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__suffix { color: var(--accent-text); }
.stat__label { margin-top: var(--s-2); color: var(--text-muted); font-size: .92rem; }

/* ---------- ASOSIY TAKLIF ---------- */
.offer__card {
  position: relative; overflow: hidden;
  display: grid; gap: var(--s-8);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(230, 169, 46, .16), transparent 55%),
    linear-gradient(135deg, var(--blue-800), var(--blue-950));
  color: #E6F0FA;
  box-shadow: var(--shadow-lg);
}
.offer__title { font-size: clamp(1.35rem, 3.6vw, 2.25rem); font-weight: 700; color: #fff; max-width: 24ch; }
.offer__title .gold { color: var(--gold-400); }
.offer__points { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.offer__points li { display: flex; gap: .65rem; align-items: flex-start; color: #CFE3F5; }
.offer__points .i { margin-top: .2em; color: var(--gold-400); stroke-width: 2.6; }
.offer__side {
  position: relative; z-index: 1;
  align-self: end;
  padding: var(--s-6); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.offer__for-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-200); font-weight: 600; }
.offer__for { display: grid; gap: var(--s-2); margin: var(--s-3) 0 var(--s-6); }
.offer__for li { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: #fff; padding: .55rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); }
.offer__for .i { color: var(--gold-400); }
.offer__card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 100% 0%, rgba(240, 190, 79, .10) 0deg 2deg, transparent 2deg 8deg);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 0 15%, transparent 60%);
          mask-image: radial-gradient(circle at 100% 0%, #000 0 15%, transparent 60%);
}
.offer__main { position: relative; z-index: 1; }

/* ---------- XIZMATLAR ---------- */
.services { display: grid; gap: var(--s-4); }
.service {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.service__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-text); margin-bottom: var(--s-5);
}
.service__icon .i { width: 26px; height: 26px; stroke-width: 1.8; }
.service__num { position: absolute; top: var(--s-6); right: var(--s-6); font-family: var(--font-display); font-size: .8rem; color: var(--text-muted); opacity: .7; }
.service__tag { position: absolute; top: var(--s-5); right: var(--s-5); font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: var(--r-full); background: var(--accent); color: var(--accent-contrast); }
.service__title { font-size: 1.15rem; font-weight: 600; }
.service__desc { margin-top: var(--s-2); color: var(--text-muted); font-size: .96rem; }
.service__link {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: var(--s-5);
  font-weight: 600; color: var(--accent-text); align-self: flex-start;
}
.service__link .i { transition: transform .2s var(--ease); }
.service__link:hover .i { transform: translateX(4px); }
.service__link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Ajratilgan (to‘q) kartochka */
.service--featured { background: var(--blue-800); border-color: var(--blue-700); color: #fff; }
.service--featured .service__icon { background: rgba(255, 255, 255, .12); color: #fff; }
.service--featured .service__desc { color: #CFE3F5; }
.service--featured .service__link { color: var(--gold-400); }
.service--featured .service__num { color: #CFE3F5; }

/* Qo‘shimcha xizmatlar */
.extras {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border);
}
.extras__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.extras__title { font-size: 1.2rem; font-weight: 600; }
.tabs { display: flex; gap: var(--s-1); padding: 4px; border-radius: var(--r-full); background: var(--bg-alt); border: 1px solid var(--border); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: .4rem .95rem; border: 0; border-radius: var(--r-full);
  background: transparent; font-weight: 500; font-size: .9rem; color: var(--text-muted);
  transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--primary); color: var(--primary-contrast); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem .55rem .7rem; border-radius: var(--r-full);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 500; font-size: .94rem;
  transition: border-color .2s, transform .2s var(--ease), background-color .2s;
  animation: chipIn .35s var(--ease) both;
}
.chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.chip .i { color: var(--brand-text); width: 1rem; height: 1rem; }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- AFZALLIKLAR ---------- */
.why { display: grid; gap: var(--s-10); }
.why__intro .btn { margin-top: var(--s-6); }
.why__list { display: grid; gap: 0; counter-reset: why; }
.why__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4);
  padding: var(--s-6) 0; border-top: 1px solid var(--border);
}
.why__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--brand-text); color: var(--brand-text); background: var(--brand-soft); }
.why__icon .i { width: 22px; height: 22px; }
.why__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; display: flex; gap: .5rem; align-items: baseline; }
.why__title::before { counter-increment: why; content: "0" counter(why); font-size: .75rem; color: var(--text-muted); font-weight: 500; }
.why__desc { color: var(--text-muted); font-size: .96rem; }

/* ---------- JARAYON ---------- */
.steps { position: relative; display: grid; gap: var(--s-6); }
/* Vertikal bog‘lovchi chiziq (mobil) */
.steps::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--primary) 0 8px, transparent 8px 14px);
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); align-items: start; }
.step__num {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--primary);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text);
  box-shadow: 0 0 0 6px var(--bg);
}
.step:last-child .step__num { background: var(--accent); color: var(--accent-contrast); }
.step__num { transition: transform .2s var(--ease); }
.step:hover .step__num { transform: translateY(-3px); }
.step__body { padding-top: .5rem; }
.step__title { font-size: 1.05rem; font-weight: 600; }
.step__desc { margin-top: var(--s-1); color: var(--text-muted); font-size: .96rem; }

/* ---------- FIKRLAR ---------- */
.reviews { display: grid; gap: var(--s-4); }
.review {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.review:nth-child(2) { background: var(--surface-2); }
.js .reviews .review.is-visible { transition: opacity .5s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); transition-delay: 0s; }
.js .reviews .review.is-visible:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review__stars { display: flex; gap: 2px; color: var(--accent); }
.review__stars .i { width: 18px; height: 18px; }
.review__text { font-size: 1.02rem; line-height: 1.65; }
.review__meta { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--border); }
.review__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-600); color: #fff; font-family: var(--font-display); font-weight: 600; flex: none; }
.review__name { font-weight: 600; }
.review__info { font-size: .87rem; color: var(--text-muted); }
.review__service { margin-left: auto; font-size: .8rem; font-weight: 600; padding: .25rem .6rem; border-radius: var(--r-full); background: var(--brand-soft); color: var(--brand-text); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-8); }
.accordion { display: grid; gap: var(--s-3); }
.acc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color .2s; }
.acc.is-open { border-color: color-mix(in srgb, var(--accent) 70%, var(--border)); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; min-height: 60px; padding: var(--s-4) var(--s-5);
  border: 0; background: none; text-align: left; font-weight: 600; font-size: 1.02rem;
  border-radius: var(--r-md);
}
.acc__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-alt); flex: none; transition: transform .3s var(--ease), background-color .2s; }
.acc.is-open .acc__icon { transform: rotate(45deg); background: var(--accent); color: var(--accent-contrast); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__panel[hidden] { display: none; }
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { padding: 0 var(--s-5) var(--s-5); color: var(--text-muted); }

/* ---------- YAKUNIY CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 0% 100%, rgba(230, 169, 46, .18), transparent 60%),
    linear-gradient(160deg, var(--blue-800), var(--blue-950));
  color: #E6F0FA;
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 0% 100%, rgba(255, 255, 255, .05) 0deg 2deg, transparent 2deg 8deg);
  -webkit-mask-image: radial-gradient(circle at 0% 100%, #000 0 20%, transparent 75%);
          mask-image: radial-gradient(circle at 0% 100%, #000 0 20%, transparent 75%);
}
/* Ochiq kitob sahifalari: bo‘lim tepasi o‘rtaga qarab egilib tushadi */
.cta::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(24px, 4vw, 48px);
  background: var(--bg); pointer-events: none; z-index: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V6C900 6 700 14 600 48C500 14 300 6 0 6Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1200V6C900 6 700 14 600 48C500 14 300 6 0 6Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.cta__grid { position: relative; z-index: 1; display: grid; gap: var(--s-10); align-items: center; }
.cta__title { font-size: clamp(1.7rem, 5vw, 3rem); font-weight: 700; color: #fff; max-width: 18ch; }
.cta__title .gold { color: var(--gold-400); }
.cta__lead { margin: var(--s-5) 0 var(--s-8); color: #CFE3F5; font-size: 1.08rem; max-width: 46ch; }
.cta__phone { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-6); color: #CFE3F5; }
.cta__phone a { font-weight: 600; color: #fff; font-size: 1.1rem; }
.cta__phone a:hover { color: var(--gold-400); }

.copy-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 40px; padding: .35rem .8rem; border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff;
  font-size: .85rem; font-weight: 500; transition: background-color .2s, border-color .2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.copy-btn .i { width: 15px; height: 15px; }
.copy-btn.is-done { border-color: var(--gold-400); color: var(--gold-400); }
.copy-btn--sm { min-height: 36px; padding: .2rem .6rem; font-size: .8rem; }

/* Tezkor buyurtma formasi */
.qform {
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg);
  display: grid; gap: var(--s-4);
}
.qform__title { font-size: 1.25rem; font-weight: 700; }
.qform__hint { margin-top: calc(var(--s-3) * -1); color: var(--text-muted); font-size: .92rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface-2); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378859E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
}
.field input:hover, .field select:hover { border-color: var(--text-muted); }
.field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--focus); background-color: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #D64545; }
.qform__error { min-height: 1.2em; margin-block: -.25rem; color: #D64545; font-size: .88rem; font-weight: 500; }
:root[data-theme="dark"] .qform__error { color: #FF8A8A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qform__error { color: #FF8A8A; } }

/* ---------- FOOTER ---------- */
.footer { background: var(--blue-950); color: #A8C0DA; padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__grid { display: grid; gap: var(--s-10); padding-bottom: var(--s-10); }
.footer__brand p { margin-top: var(--s-4); max-width: 40ch; font-size: .95rem; }
.footer__h { font-family: var(--font-display); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); font-weight: 600; }
.footer__contacts { display: grid; gap: 0; }
.footer__contacts li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.footer__contacts .i { color: var(--gold-400); }
.footer__label { color: #8FA8C4; }
.footer a { color: #E6F0FA; transition: color .2s; }
.footer a:hover { color: var(--gold-400); }
.footer__nav { display: grid; gap: 0; }
.footer__nav a, .footer__contacts a { display: inline-flex; align-items: center; min-height: 44px; }
.cta__phone a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__bottom { padding-block: var(--s-6); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; color: #8FA8C4; }

/* ---------- SUZUVCHI TUGMA ---------- */
.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #229ED9; color: #fff;
  box-shadow: 0 10px 28px -8px rgba(34, 158, 217, .7);
  transition: transform .2s var(--ease);
}
.fab .i { width: 28px; height: 28px; margin-left: -2px; }
.fab:hover { transform: scale(1.07); }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #229ED9;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 150;
  max-width: calc(100% - 32px);
  padding: .8rem 1.2rem; border-radius: var(--r-md);
  background: var(--blue-900); color: #fff; box-shadow: var(--shadow-lg);
  font-weight: 500; font-size: .95rem; text-align: center;
  border-left: 4px solid var(--gold-500);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
:root[data-theme="dark"] .toast { background: #0E2A4A; }

/* ---------- SCROLL ANIMATSIYASI ---------- */
/* Sahifa ochilganda hero pog‘onali chiqishi */
.hero__text > *, .hero__visual { animation: heroIn .5s var(--ease) both; }
.hero__title { animation-delay: .06s; }
.hero__lead { animation-delay: .12s; }
.hero__actions { animation-delay: .18s; }
.hero__trust { animation-delay: .24s; }
.hero__visual { animation-delay: .2s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. RESPONSIVE ---------- */
@media (min-width: 480px) {
  :root { --gutter: 1.25rem; }
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 640px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .why__list { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-8); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --nav-h: 72px; }
  .stats__list { grid-template-columns: repeat(4, 1fr); }
  .stat { border-width: 0 1px 0 0 !important; padding: var(--s-8) var(--s-6); }
  .stat:last-child { border-right-width: 0 !important; }
  .offer__card { grid-template-columns: 1.5fr 1fr; align-items: end; }
  .faq { grid-template-columns: 1fr 1.5fr; align-items: start; }
  .faq__intro { position: sticky; top: calc(var(--nav-h) + 24px); }

  /* Jarayon: gorizontal chiziq */
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
  .steps::before {
    left: 28px; right: 12%; top: 27px; bottom: auto; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0 8px, transparent 8px 14px);
  }
  .step { grid-template-columns: 1fr; }
  .step__body { padding-top: 0; }
}

@media (min-width: 1024px) {
  .nav__menu {
    position: static; inset: auto; max-height: none; overflow: visible;
    background: none; border: 0; box-shadow: none; padding: 0;
    transform: none; opacity: 1; visibility: visible; transition: none;
  }
  .nav__links { display: flex; gap: var(--s-1); }
  .nav__links a {
    min-height: 40px; padding: 0 .8rem; border: 0; border-radius: var(--r-full);
    font-size: .93rem; color: var(--text-muted); position: relative;
    transition: color .2s, background-color .2s;
  }
  .nav__links a:hover { color: var(--text); background: var(--bg-alt); }
  .nav__links a.is-active { color: var(--text); }
  .nav__links a.is-active::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent);
  }
  .nav__cta-mobile, .nav__burger { display: none; }
  .nav__cta { display: inline-flex; }

  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .hero { --rays-at: 76% 46%; }
  .hero__text { padding-left: 0; }

  /* Bento: 4 ustun — Taqdimot va Diplom keng */
  .services { grid-template-columns: repeat(4, 1fr); }
  .service--wide { grid-column: span 2; }

  .reviews { grid-template-columns: repeat(3, 1fr); }
  .review:nth-child(2) { margin-top: 24px; }

  .why { grid-template-columns: 1fr 1.7fr; gap: var(--s-16); align-items: start; }
  .why__intro { position: sticky; top: calc(var(--nav-h) + 32px); }

  .cta__grid { grid-template-columns: 1.2fr 1fr; gap: var(--s-16); }

  .footer__grid { grid-template-columns: 1.4fr 1.2fr .8fr; }
  .footer__brand { grid-column: auto; }
}

@media (min-width: 1280px) {
  .hero__title { font-size: 3.55rem; }
}

/* Telefonlar: tablar ikki qatorda (yonga surish shart emas), footer suzuvchi tugma ostida qolmasin */
@media (max-width: 639px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--r-md); overflow: visible; }
  .tab { border-radius: 10px; }
  .footer__bottom { padding-bottom: 96px; }
}

/* Telefonlarda hero kompozitsiyasini ixchamroq qilamiz */
@media (max-width: 479px) {
  .hero__visual { aspect-ratio: 1 / 1; max-width: 400px; }
  .hero__chip--b { top: -4%; }
}

/* ---------- 6. HARAKATNI KAMAYTIRISH ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .fab::before { display: none; }
}

/* Faqat ekran o‘quvchilar uchun */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Yashirin SVG ikonkalar to‘plami */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Hero: hujjat qatorlari uzunligi va slayd diagrammasi balandliklari */
.lines span:nth-child(3) { width: 82%; }
.lines span:nth-child(5) { width: 64%; }
.lines--indent span:nth-child(2) { width: 90%; }
.lines--indent span:nth-child(3) { width: 70%; }
.slide__chart span:nth-child(1) { --h: 38%; }
.slide__chart span:nth-child(2) { --h: 56%; }
.slide__chart span:nth-child(3) { --h: 47%; }
.slide__chart span:nth-child(4) { --h: 74%; }
.slide__chart span:nth-child(5) { --h: 92%; }

/* Scroll animatsiyasi kechikishlari (pog‘onali paydo bo‘lish) */
.services .reveal:nth-child(3n+2), .why__item:nth-child(2n) { --d: .08s; }
.services .reveal:nth-child(3n) { --d: .16s; }
.step:nth-child(2), .review:nth-child(2) { --d: .1s; }
.step:nth-child(3), .review:nth-child(3) { --d: .2s; }
.step:nth-child(4) { --d: .3s; }
.acc:nth-child(2) { --d: .05s; } .acc:nth-child(3) { --d: .1s; }
.acc:nth-child(4) { --d: .15s; } .acc:nth-child(5) { --d: .2s; } .acc:nth-child(6) { --d: .25s; }
.chip:nth-child(1) { animation-delay: 0.00s; }
.chip:nth-child(2) { animation-delay: 0.03s; }
.chip:nth-child(3) { animation-delay: 0.06s; }
.chip:nth-child(4) { animation-delay: 0.09s; }
.chip:nth-child(5) { animation-delay: 0.12s; }
.chip:nth-child(6) { animation-delay: 0.15s; }
.chip:nth-child(7) { animation-delay: 0.18s; }
.chip:nth-child(8) { animation-delay: 0.21s; }
.chip:nth-child(9) { animation-delay: 0.24s; }
.chip:nth-child(10) { animation-delay: 0.27s; }
.chip:nth-child(11) { animation-delay: 0.30s; }
.chip:nth-child(12) { animation-delay: 0.33s; }
.chip:nth-child(13) { animation-delay: 0.36s; }
.chip:nth-child(14) { animation-delay: 0.39s; }
