/* =========================================================================
   AIFU Bitiruvchilari — public sayt uslublari
   Brend: Navy #002E60 · Pink #FF0158 · Oq #FFFFFF
   ========================================================================= */

:root {
  /* --- Brend ranglari (o'zgarmas) --- */
  --navy: #002E60;
  --pink: #FF0158;
  --white: #FFFFFF;

  /* --- Brenddan hosil qilingan ohanglar --- */
  --navy-950: #00152E;
  --navy-900: #001F42;
  --navy-700: #0A4585;
  --navy-500: #1B62AE;
  --pink-600: #E00049;
  --pink-100: #FFE6ED;

  --ink: #0A1A2B;
  --muted: #5B6B80;
  --line: #E3E9F1;
  --bg: #FFFFFF;
  --bg-tint: #F5F8FC;

  /* --- Tipografika ---
     Inter o'z serverimizda saqlanadi (`fonts.css`), shuning uchun sayt hamma
     qurilmada bir xil ko'rinadi. Keyingi shriftlar — fayl yuklanmasa ishlaydi. */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);

  /* --- Shakl --- */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-sm: 0 2px 8px rgba(0, 46, 96, .06);
  --shadow: 0 12px 32px rgba(0, 46, 96, .09);
  --shadow-lg: 0 28px 70px rgba(0, 46, 96, .16);

  --shell: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Uzun so'z yoki havola tor ekranda konteynerdan chiqib ketmasin */
  overflow-wrap: break-word;
  /* Inter'ning tabiiy imkoniyatlari: raqamlar bir xil kenglikda,
     "fi"/"fl" kabi juftliklar chiroyli qo'shiladi */
  font-feature-settings: "cv05" 1, "ss03" 1;
  font-variant-numeric: proportional-nums;
}

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  font-weight: 700;
}

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

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* Ko'zga ko'rinmaydi, lekin ekran o'qigich o'qiydi */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Asal qopqoni: odam ko'rmaydi, botlar to'ldiradi */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.honeypot input { font-size: 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- tugmalar */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--pink);
  box-shadow: 0 8px 24px rgba(255, 1, 88, .28);
}
.btn--primary:hover {
  --btn-bg: var(--pink-600);
  box-shadow: 0 14px 34px rgba(255, 1, 88, .34);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .2); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .45);
}
.btn--outline:hover { --btn-bg: rgba(255, 255, 255, .12); }

.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  font-size: .8125rem;
  font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.chip:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(0, 46, 96, .06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: var(--navy);
}
.brand__text small {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav { display: flex; gap: .35rem; margin-inline-start: auto; }
.nav__link {
  position: relative;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: color .2s ease, background-color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: .28rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transform: translateX(-50%);
  transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after { width: 42%; }

.header__actions { display: flex; align-items: center; gap: .65rem; }

.langs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
}
.langs__item {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .3rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  transition: background-color .2s ease, color .2s ease;
}
.langs__item:hover { color: var(--navy); }
.langs__item.is-active { background: var(--navy); color: var(--white); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px auto;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-950);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
}
.hero__blob--a {
  width: 46vw; height: 46vw;
  min-width: 320px; min-height: 320px;
  top: -14%; right: -8%;
  background: radial-gradient(circle, var(--navy-500), transparent 70%);
}
.hero__blob--b {
  width: 34vw; height: 34vw;
  min-width: 260px; min-height: 260px;
  bottom: -18%; left: -6%;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  opacity: .35;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* Grid elementlari min-content kengligiga yopishib qolmasin */
.hero__inner > * { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
}
.eyebrow--light { color: #FF6E9C; }
.eyebrow--light::before { background: #FF6E9C; }

.hero__title {
  font-size: clamp(2.35rem, 1.4rem + 4.1vw, 4.35rem);
  letter-spacing: -.035em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 54ch;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: rgba(255, 255, 255, .78);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.75rem; }
.hero__links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Hero'dagi bitiruvchi kartalari to'plami */
.hero__deck {
  position: relative;
  display: grid;
  gap: .75rem;
  padding-inline-start: clamp(0rem, 3vw, 2rem);
}
.deck-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
}
.deck-card--1 { transform: translateX(6%);  animation-delay: 0s; }
.deck-card--2 { transform: translateX(-2%); animation-delay: .7s; }
.deck-card--3 { transform: translateX(9%);  animation-delay: 1.4s; }
.deck-card--4 { transform: translateX(0);   animation-delay: 2.1s; }
.deck-card--5 { transform: translateX(5%);  animation-delay: 2.8s; }

.deck-card figcaption { display: flex; flex-direction: column; min-width: 0; }
.deck-card figcaption > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deck-card strong { font-size: .9375rem; letter-spacing: -.01em; }
.deck-card span { font-size: .8125rem; color: rgba(255, 255, 255, .72); }
.deck-card em {
  font-style: normal;
  font-size: .75rem;
  font-weight: 600;
  color: #FF6E9C;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* --------------------------------------------------------------- avatar */

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(140deg, var(--navy-700), var(--navy));
  color: var(--white);
  font-weight: 700;
  letter-spacing: .02em;
}
.avatar--md { width: 46px; height: 46px; font-size: .95rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar--xl { width: clamp(150px, 22vw, 220px); height: clamp(150px, 22vw, 220px); font-size: 3.4rem; }
.avatar__img { width: 100%; height: 100%; object-fit: cover; }
.avatar__initials { display: grid; place-items: center; width: 100%; height: 100%; }

/* -------------------------------------------------------------- bo'limlar */

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__title {
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  letter-spacing: -.03em;
  color: var(--navy);
  text-wrap: balance;
}
.section__title--sm { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 1.75rem; }
.section__lead {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* -------------------------------------------------------------- raqamlar */

.stats {
  position: relative;
  margin-top: calc(var(--section-y) * -.45);
  padding-bottom: var(--section-y);
  z-index: 2;
}
.stats__grid {
  display: grid;
  /* min() — 320px kabi tor ekranda ustun konteynerdan kengroq bo'lib qolmasin */
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  transition: background-color .3s ease;
}
.stat:hover { background: #FBFCFE; }
.stat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--pink-100);
  color: var(--pink);
}
.stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stat__label { margin: .35rem 0 0; font-size: .9375rem; color: var(--muted); }

/* --------------------------------------------------------------- kartalar */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
}
.card__title { font-size: 1.1875rem; margin-bottom: .6rem; color: var(--navy); }
.card__text { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ------------------------------------------------------------ bitiruvchilar */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.tabs__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease,
              transform .25s var(--ease);
}
.tabs__item:hover { transform: translateY(-2px); border-color: var(--navy-500); }
.tabs__item.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.tabs__count {
  padding: .1rem .45rem;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}
.tabs__item.is-active .tabs__count { background: rgba(255, 255, 255, .2); color: var(--white); }

.grads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 1.25rem;
}
.grads__empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
}

.grad {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.grad:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.grad.is-hidden { display: none; }

.grad__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.grad__year {
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--pink-100);
  color: var(--pink-600);
  font-size: .75rem;
  font-weight: 700;
}
.grad__name { font-size: 1.1875rem; color: var(--navy); }
.grad__role { margin: .2rem 0 .55rem; font-size: .9375rem; font-weight: 600; color: var(--pink); }
.grad__place {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 1rem;
  font-size: .875rem;
  color: var(--muted);
}
.grad__place .icon { flex-shrink: 0; }

.grad__quote {
  position: relative;
  flex: 1;
  margin: 0 0 1.25rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--line);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.grad__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.grad__program { font-size: .8125rem; font-weight: 600; color: var(--navy); }
.grad__socials { display: inline-flex; gap: .4rem; color: var(--muted); }
.grad__socials a { transition: color .2s ease, transform .2s var(--ease); }
.grad__socials a:hover { color: var(--pink); transform: translateY(-2px); }

/* ------------------------------------------------------------- spotlight */

.spotlight {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
  color: var(--white);
  background:
    radial-gradient(120% 120% at 85% 15%, var(--navy-700), transparent 55%),
    var(--navy-950);
}
.spotlight__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.spotlight__media { position: relative; display: grid; place-items: center; }
.spotlight__ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 1, 88, .5);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.spotlight__title {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.spotlight__quote {
  position: relative;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.spotlight__quote .icon { color: var(--pink); margin-bottom: .6rem; }
.spotlight__quote p {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
}
.spotlight__meta { display: flex; flex-direction: column; gap: .2rem; }
.spotlight__meta strong { font-size: 1.125rem; }
.spotlight__meta span { color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.spotlight__tag {
  align-self: flex-start;
  margin-top: .5rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: rgba(255, 1, 88, .18);
  color: #FF8FB3 !important;
  font-size: .8125rem;
  font-weight: 600;
}

/* -------------------------------------------------------------- logolar */

.logos { padding-block: clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.logos__title {
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  color: var(--muted);
}
.marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: grid;
  place-items: center;
  min-width: 130px;
  height: 46px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
  opacity: .42;
  transition: opacity .3s ease;
}
.marquee__item:hover { opacity: 1; }
.marquee__item img { max-height: 46px; object-fit: contain; }

/* ----------------------------------------------------------- yo'nalishlar */

.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1rem;
}
.program {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s ease;
}
.program:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.program__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--bg-tint);
  color: var(--navy);
  transition: background-color .3s ease, color .3s ease;
}
.program:hover .program__icon { background: var(--pink); color: var(--white); }
.program__title { font-size: 1.125rem; margin-bottom: .4rem; color: var(--navy); }
.program__text { margin: 0; font-size: .9375rem; color: var(--muted); }
.program__meta {
  grid-column: 2;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--pink);
}

/* --------------------------------------------------------------- postlar */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.25rem;
}
.post {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post__link { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; }
.post__cover {
  display: block;
  margin: -1.5rem -1.5rem 1.25rem;
  aspect-ratio: 16 / 9;
  background: var(--bg-tint);
  overflow: hidden;
}
.post__cover img { width: 100%; height: 100%; object-fit: cover; }
.post__cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--navy);
  opacity: .25;
}
.post__date {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
}
.post__title { margin: .5rem 0 .6rem; font-size: 1.125rem; color: var(--navy); }
.post__excerpt { flex: 1; margin: 0 0 1.25rem; font-size: .9375rem; color: var(--muted); }
.post__more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}
.post:hover .post__more .icon { transform: translateX(4px); }
.post__more .icon { transition: transform .25s var(--ease); }

/* ------------------------------------------------------------------- CTA */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  color: var(--white);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-950) 55%, #3D0022 100%);
}
.cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 1, 88, .45), transparent 65%);
  filter: blur(40px);
}
.cta__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta__title {
  font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem);
  max-width: 20ch;
  text-wrap: balance;
}
.cta__lead { margin: .85rem 0 0; max-width: 46ch; color: rgba(255, 255, 255, .78); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------------------------------------------------------------- aloqa */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.contact__list li { display: flex; align-items: center; gap: .75rem; color: var(--muted); min-height: 36px; }
.contact__list .icon { color: var(--pink); flex-shrink: 0; }
.contact__list a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-weight: 500; }
.contact__list a:hover { color: var(--pink); }

.contact__map {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.contact__map iframe { width: 100%; height: 100%; border: 0; }

.form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field__label { font-size: .8125rem; font-weight: 600; color: var(--navy); }
.field__label i { color: var(--pink); font-style: normal; }
.field__input {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  color: var(--ink);
  font: inherit;
  font-size: .9375rem;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--pink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 1, 88, .12);
}
textarea.field__input { resize: vertical; min-height: 110px; }

.form__alert {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 500;
}
.form__alert--ok { background: #E7F7EE; color: #10693F; }
.form__alert--error { background: var(--pink-100); color: var(--pink-600); }

/* -------------------------------------------------------------- maqola */

.article__head {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  color: var(--white);
  background: radial-gradient(120% 140% at 70% 0%, var(--navy-700), var(--navy-950) 60%);
}
.article__head-inner { max-width: 46rem; }
.article__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
}
.article__back .icon { transform: rotate(180deg); }
.article__back:hover { color: var(--white); }
.article__title { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 1rem; }
.article__lead { margin: 0; font-size: 1.125rem; color: rgba(255, 255, 255, .78); }

.article__body {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 1.0625rem;
  color: #2B3B4E;
}
.article__body p { margin: 0 0 1.25rem; }
.article__cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

/* ----------------------------------------------------------------- 404 */

.notfound { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.notfound__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--pink);
  opacity: .18;
}
.notfound__title { margin: -1rem 0 .75rem; font-size: clamp(1.6rem, 4vw, 2.25rem); color: var(--navy); }
.notfound__text { margin: 0 auto 2rem; max-width: 44ch; color: var(--muted); }

/* -------------------------------------------------------------- footer */

.footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  color: rgba(255, 255, 255, .72);
  background: var(--navy-950);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.5rem;
}
.footer__logo { width: 64px; margin-bottom: 1.25rem; }
.footer__about { margin: 0 0 1.5rem; max-width: 42ch; font-size: .9375rem; }

.socials { display: flex; gap: .5rem; }
.socials__item {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .82);
  transition: background-color .25s ease, border-color .25s ease,
              color .25s ease, transform .25s var(--ease);
}
.socials__item:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
  transform: translateY(-3px);
}

.footer__title {
  margin-bottom: 1.1rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9375rem; }
/* Barmoq bilan tegish uchun yetarli balandlik (WCAG 2.5.8) */
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer__list a:hover { color: var(--white); }
.footer__list--contact li { display: flex; align-items: center; gap: .6rem; min-height: 32px; }
.footer__list--contact .icon { color: var(--pink); flex-shrink: 0; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
}
.footer__bottom p { margin: 0; }
.footer__admin {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-inline: .5rem;
  opacity: .45;
}
.footer__admin:hover { opacity: 1; color: var(--white); }

/* -------------------------------------------------------- animatsiyalar */

/* Diqqat: yashirish faqat `.js` sinfi ostida. JavaScript yuklanmasa yoki
   o'chirilgan bo'lsa, bu qoida umuman qo'llanmaydi va butun kontent
   darhol ko'rinadi. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track, .deck-card, .spotlight__ring { animation: none; }
}

/* ------------------------------------------------------------ responsiv */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__deck {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    padding-inline-start: 0;
  }
  .deck-card { transform: none !important; animation: none; }
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  /* Menyu header balandligiga qarab o'zi joylashadi — qattiq piksel yo'q */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    margin-inline-start: 0;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    z-index: -1;
  }
  .nav.is-open { transform: none; z-index: 1; }
  .nav__link { padding: .85rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }

  .burger { display: grid; }
  .header__actions { margin-inline-start: auto; }
  .header__cta { display: none; }

  .spotlight__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .spotlight__media { justify-self: center; }
  .spotlight__meta { align-items: center; }
  .spotlight__tag { align-self: center; }
  .eyebrow { justify-content: center; }
  .spotlight .eyebrow { width: 100%; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand__text small { display: none; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .btn--lg { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .program { grid-template-columns: minmax(0, 1fr); }
  .program__meta { grid-column: 1; }
  .grad__foot { flex-wrap: wrap; }
}

/* iOS Safari 16px dan kichik input'ga fokuslanganda sahifani zumlaydi —
   mobil kengliklarda shrift 16px da qoladi. */
@media (max-width: 768px) {
  .field__input { font-size: 1rem; }
}

/* Juda tor ekranlar (320–380px): uzun so'zlar sig'ishi uchun sarlavhalar kichrayadi.
   Defis bilan bo'lish ham faqat shu yerda yoqiladi — kengroq ekranda brauzer
   sig'adigan so'zlarni ham keraksiz uzib tashlardi. */
@media (max-width: 380px) {
  .hero__title { font-size: 1.95rem; letter-spacing: -.025em; }
  .section__title { font-size: 1.65rem; }
  .spotlight__title, .cta__title, .article__title { font-size: 1.55rem; }

  h1, h2, h3, h4 {
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

@media (max-width: 360px) {
  .langs__item { padding: .3rem .45rem; }
  .brand__mark { width: 38px; height: 38px; }
  .tabs__item { font-size: .875rem; padding: .5rem .85rem; }
  .marquee__item { min-width: 110px; }
  .grad, .card, .program, .post__link { padding: 1.15rem; }
}
