:root {
  --indigo-950: #111133;
  --indigo-900: #171748;
  --indigo-800: #25256f;
  --indigo-700: #37329b;
  --orange-500: #f58a34;
  --orange-400: #ffa653;
  --cream: #fff9ee;
  --paper: #f5f3ed;
  --white: #ffffff;
  --ink: #1a1930;
  --muted: #6f7080;
  --bronze: #b66c38;
  --alice_blue: #F0F8FF;
  --bronze-light: #e9b47f;
  --line: rgba(23, 23, 72, .14);
  --shadow: 0 22px 60px rgba(17, 17, 51, .13);
  --radius-lg: 28px;
  --radius-md: 19px;
  --shell: min(1220px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1380px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  color: var(--white);
  background: rgba(17, 17, 51, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(17, 17, 51, .92);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; color: var(--orange-400); }
.brand-mark svg { width: 100%; height: 100%; }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: .88rem; font-weight: 600; }
.main-nav > a:not(.nav-cta) { opacity: .82; transition: opacity .2s ease; }
.main-nav > a:not(.nav-cta):hover { opacity: 1; }
.nav-cta { padding: 12px 18px; color: var(--indigo-950); background: var(--orange-400); border-radius: 12px; }
.nav-toggle { display: none; width: 44px; height: 40px; padding: 10px; background: transparent; border: 0; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--white); border-radius: 10px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--indigo-950);
  overflow: hidden;
}
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.15s ease, transform 6s ease;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(13, 13, 48, .93) 0%, rgba(17, 17, 51, .78) 45%, rgba(17, 17, 51, .38) 100%),
    linear-gradient(0deg, rgba(17, 17, 51, .72) 0%, transparent 38%);
}
.hero-glow { position: absolute; z-index: 2; border-radius: 999px; filter: blur(90px); opacity: .26; }
.hero-glow-one { width: 360px; height: 360px; right: 6%; top: 18%; background: var(--orange-500); }
.hero-glow-two { width: 430px; height: 430px; left: -12%; bottom: -15%; background: #6464ff; }
.hero-content { position: relative; z-index: 3; padding-top: 120px; padding-bottom: 120px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-400); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow-dark { color: var(--indigo-700); }
.hero h1 {
  max-width: 920px;
  margin: 28px 0 24px;
  font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif;
  font-size: clamp(3.35rem, 7vw, 7.6rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.hero h1 span { color: var(--orange-400); }
.hero-copy { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 1.5vw, 1.24rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border-radius: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--indigo-950); background: var(--orange-400); box-shadow: 0 14px 30px rgba(245, 138, 52, .28); }
.button-secondary { color: var(--white); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.button-light { color: var(--indigo-950); background: var(--white); }
.hero-meta { display: flex; gap: 50px; margin-top: 62px; }
.hero-meta div { display: grid; }
.hero-meta strong { font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 2rem; line-height: 1; }
.hero-meta span { margin-top: 6px; color: rgba(255, 255, 255, .58); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.carousel-controls { position: absolute; z-index: 4; right: 44px; top: 50%; display: grid; gap: 10px; transform: translateY(-50%); }
.carousel-dot { width: 9px; height: 9px; padding: 0; background: rgba(255,255,255,.38); border: 0; border-radius: 999px; cursor: pointer; transition: height .2s ease, background .2s ease; }
.carousel-dot.is-active { height: 30px; background: var(--orange-400); }
.scroll-cue { position: absolute; z-index: 4; right: 42px; bottom: 28px; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .62); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.section-heading, .results-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 60px; margin-bottom: 60px; }
.section-heading h2, .results-heading h2, .format-intro h2, .closing-content h2 {
  margin: 14px 0 0;
  font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.section-heading > p { margin: 0; color: var(--muted); font-size: 1.06rem; }

.pathway { display: grid; grid-template-columns: minmax(170px, 1fr) 36px minmax(170px, 1fr) 36px minmax(170px, 1fr) 36px minmax(170px, 1fr) 36px minmax(170px, 1fr) 36px minmax(170px, 1fr); align-items: stretch; }
.stage-card { position: relative; min-height: 370px; display: flex; flex-direction: column; padding: 24px; background: rgba(255, 255, 255, .76); border: 1px solid rgba(23, 23, 72, .08); border-radius: var(--radius-md); box-shadow: 0 14px 38px rgba(17, 17, 51, .06); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.stage-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.stage-card::after { content: attr(data-stage); position: absolute; right: -8px; bottom: -31px; color: rgba(23, 23, 72, .035); font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 7.7rem; font-weight: 700; line-height: 1; }
.stage-card-accent { color: var(--white); background: var(--indigo-800); }
.stage-card-accent::after, .stage-card-final::after { color: rgba(255,255,255,.04); }
.stage-card-final { color: var(--white); background: linear-gradient(150deg, var(--orange-500), #cf5c2d); }
.stage-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.stage-icon { display: grid; place-items: center; width: 45px; height: 45px; background: rgba(55, 50, 155, .09); border-radius: 13px; font-size: 1.25rem; }
.stage-card-accent .stage-icon, .stage-card-final .stage-icon { background: rgba(255,255,255,.12); }
.stage-number { color: rgba(23, 23, 72, .38); font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-weight: 700; }
.stage-card-accent .stage-number, .stage-card-final .stage-number { color: rgba(255,255,255,.48); }
.stage-card h3 { position: relative; z-index: 1; margin: 31px 0 4px; font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 1.45rem; letter-spacing: -.03em; }
.student-count { position: relative; z-index: 1; margin-bottom: 18px; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.student-count strong { color: var(--orange-500); font-size: 1.2rem; }
.stage-card-accent .student-count, .stage-card-final .student-count { color: rgba(255,255,255,.65); }
.stage-card-accent .student-count strong { color: var(--orange-400); }
.stage-card-final .student-count strong { color: var(--white); }
.stage-card > p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: .9rem; }
.stage-card-accent > p, .stage-card-final > p { color: rgba(255,255,255,.72); }
.stage-format { position: relative; z-index: 1; display: grid; gap: 5px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.stage-card-accent .stage-format, .stage-card-final .stage-format { border-color: rgba(255,255,255,.14); }
.stage-format span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stage-card-accent .stage-format span, .stage-card-final .stage-format span { color: rgba(255,255,255,.54); }
.stage-format strong { font-size: .83rem; }
.path-arrow { align-self: center; height: 2px; background: var(--line); }
.path-arrow span { display: block; width: 8px; height: 8px; margin-left: auto; border-top: 2px solid rgba(23,23,72,.28); border-right: 2px solid rgba(23,23,72,.28); transform: translateY(-3px) rotate(45deg); }

.format-section { position: relative; color: var(--white); background: var(--indigo-950); overflow: hidden; }
.format-background { position: absolute; inset: 0; opacity: .55; background: radial-gradient(circle at 10% 20%, rgba(98,98,255,.22), transparent 32%), radial-gradient(circle at 85% 75%, rgba(245,138,52,.2), transparent 34%); }
.format-background::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent); }
.format-layout { position: relative; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 90px; }
.format-intro h2 { font-size: clamp(2.7rem, 4.6vw, 4.9rem); }
.format-intro > p { max-width: 560px; color: rgba(255,255,255,.66); }
.format-total { margin-top: 40px; }
.format-total > span { display: block; margin-bottom: 10px; color: rgba(255,255,255,.48); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.weight-bar { display: flex; height: 48px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; overflow: hidden; font-size: .78rem; font-weight: 800; }
.weight-lab, .weight-theory { display: flex; align-items: center; padding-inline: 16px; }
.weight-lab { width: 50%; color: var(--indigo-950); background: var(--orange-400); }
.weight-theory { width: 50%; background: rgba(255,255,255,.09); }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.format-card { position: relative; min-height: 360px; padding: 27px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-md); backdrop-filter: blur(10px); overflow: hidden; }
.format-card:hover { background: rgba(255,255,255,.09); }
.format-card-number { position: absolute; right: 19px; top: 13px; color: rgba(255,255,255,.12); font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 3.2rem; font-weight: 700; }
.format-card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 63px; color: var(--orange-400); background: rgba(245,138,52,.1); border: 1px solid rgba(245,138,52,.22); border-radius: 17px; font-size: 1.8rem; }
.format-label { color: var(--orange-400); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.format-card h3 { margin: 6px 0 18px; font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 1.55rem; }
.format-card ul { margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.66); }
.format-card li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.09); }
.format-card li::before { content: "—"; margin-right: 8px; color: var(--orange-400); }

.results-section { background: var(--cream); }
.results-heading { align-items: center; }
.medal-summary { justify-self: end; display: flex; align-items: center; gap: 18px; }
.medal-disc { display: grid; place-items: center; width: 88px; height: 88px; color: var(--white); background: radial-gradient(circle at 35% 30%, var(--bronze-light), var(--bronze) 70%); border: 8px solid rgba(182,108,56,.13); outline: 1px solid rgba(182,108,56,.35); border-radius: 999px; font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 2.4rem; font-weight: 700; box-shadow: 0 14px 30px rgba(182,108,56,.22); }
.medal-summary p { margin: 0; color: var(--muted); }
.medal-summary strong { color: var(--ink); }
.photobooth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 35px; max-width: 1200px; margin: 0 auto; padding: 38px 18px 70px; }
.photo-card { position: relative; padding: 14px 14px 22px; background: var(--white); box-shadow: 0 24px 55px rgba(17,17,51,.12); }
.photo-card-left { transform: rotate(-3deg) translateY(20px); }
.photo-card-center { z-index: 2; transform: rotate(1.2deg) scale(1.04); }
.photo-card-right { transform: rotate(3deg) translateY(28px); }
.photo-frame { position: relative; aspect-ratio: 4 / 5; background: #ddd; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.bronze-badge { position: absolute; right: 13px; bottom: 13px; padding: 8px 13px; color: var(--white); background: var(--bronze); border-radius: 999px; font-size: .69rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.certificate-badge { position: absolute; right: 13px; bottom: 13px; padding: 8px 13px; color: var(--black); background: var(--alice_blue); border-radius: 999px; font-size: .69rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.photo-caption { padding: 16px 8px 0; }
.photo-caption h3 { margin: 0; font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: 1.3rem; }
.photo-caption p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.results-quote { max-width: 800px; display: grid; grid-template-columns: 60px 1fr; gap: 28px; align-items: start; margin: 18px auto 0; }
.results-quote svg { width: 42px; fill: rgba(55,50,155,.18); }
.results-quote blockquote { margin: 0; font-family: "Aptos Display", "Trebuchet MS", Inter, system-ui, sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.45rem); line-height: 1.25; letter-spacing: -.035em; }

.closing-section { padding: 72px 0; color: var(--white); background: linear-gradient(120deg, var(--indigo-800), var(--indigo-950)); }
.closing-content { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.closing-content h2 { max-width: 820px; font-size: clamp(2rem, 4vw, 4rem); }
.site-footer { padding: 28px 0; color: rgba(255,255,255,.6); background: #0b0b25; font-size: .8rem; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-footer { color: var(--white); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .pathway { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .path-arrow { display: none; }
  .stage-card { min-height: 330px; }
  .format-layout { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 680px); }
  .section { padding: 82px 0; }
  .site-header { width: calc(100% - 20px); margin-top: 10px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; color: var(--white); background: rgba(17,17,51,.98); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; }
  .nav-cta { text-align: center; }
  .hero { min-height: 880px; }
  .hero-content { padding-top: 140px; }
  .hero h1 { font-size: clamp(3.3rem, 13vw, 5.4rem); }
  .hero-meta { gap: 24px; }
  .carousel-controls { right: 18px; }
  .scroll-cue { left: 18px; right: auto; }
  .section-heading, .results-heading { grid-template-columns: 1fr; gap: 22px; }
  .pathway { grid-template-columns: repeat(2, 1fr); }
  .format-grid { grid-template-columns: 1fr; }
  .format-card { min-height: 285px; }
  .format-card-icon { margin-bottom: 32px; }
  .results-heading .medal-summary { justify-self: start; }
  .photobooth { gap: 12px; padding-inline: 0; }
  .photo-card { padding: 8px 8px 14px; }
  .photo-caption h3 { font-size: 1rem; }
  .photo-caption p { font-size: .73rem; }
  .closing-content { align-items: flex-start; flex-direction: column; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero { min-height: 820px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(13,13,48,.94), rgba(17,17,51,.65)), linear-gradient(0deg, rgba(17,17,51,.78), transparent 45%); }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.4rem); }
  .hero-copy { font-size: .98rem; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 340px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-meta strong { font-size: 1.5rem; }
  .hero-meta span { font-size: .58rem; }
  .carousel-controls { display: none; }
  .pathway { grid-template-columns: 1fr; }
  .stage-card { min-height: 300px; }
  .weight-bar { height: 54px; }
  .weight-lab, .weight-theory { padding-inline: 9px; }
  .photobooth { grid-template-columns: 1fr; max-width: 350px; gap: 26px; }
  .photo-card-left, .photo-card-center, .photo-card-right { transform: none; }
  .results-quote { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==================== UZBEKISTAN IBO PERFORMANCE ==================== */
.ibo-performance {
    padding: clamp(5rem, 8vw, 8rem) 1.25rem;
    background:
      radial-gradient(circle at 8% 5%, rgba(56, 189, 248, 0.13), transparent 27rem),
      radial-gradient(circle at 92% 90%, rgba(249, 115, 22, 0.12), transparent 25rem),
      #f7fafc;
    color: #16243a;
  }

  .ibo-performance__container {
    width: min(1180px, 100%);
    margin: 0 auto;
  }

  .ibo-performance__header {
    max-width: 760px;
    margin-bottom: 2.3rem;
  }

  .ibo-performance__eyebrow {
    margin: 0 0 0.7rem;
    color: #ea6a21;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
  }

  .ibo-performance__header h2 {
    margin: 0;
    color: #10233f;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .ibo-performance__header > p:last-child {
    margin: 1.1rem 0 0;
    color: #607086;
    font-size: clamp(1rem, 1.8vw, 1.16rem);
    line-height: 1.75;
  }

  .ibo-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .ibo-summary__card {
    min-height: 126px;
    padding: 1.35rem;
    border: 1px solid rgba(16, 35, 63, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 40px rgba(29, 52, 83, 0.07);
    backdrop-filter: blur(10px);
  }

  .ibo-summary__value {
    display: block;
    color: #153d72;
    font-size: 2.35rem;
    font-weight: 850;
    line-height: 1;
  }

  .ibo-summary__label {
    display: block;
    margin-top: 0.65rem;
    color: #68788c;
    font-size: 0.9rem;
    font-weight: 650;
  }

  .ibo-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .ibo-toggle {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: #e9eff6;
  }

  .ibo-toggle__button {
    padding: 0.72rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #53657a;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 750;
    cursor: pointer;
    transition:
      color 180ms ease,
      background 180ms ease,
      box-shadow 180ms ease;
  }

  .ibo-toggle__button.active {
    background: #173e72;
    color: #fff;
    box-shadow: 0 7px 20px rgba(23, 62, 114, 0.24);
  }

  .ibo-filter {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #5a6b80;
    font-size: 0.88rem;
    font-weight: 700;
  }

  .ibo-filter select {
    min-width: 138px;
    padding: 0.72rem 2.3rem 0.72rem 0.9rem;
    border: 1px solid #d4dde8;
    border-radius: 12px;
    background: #fff;
    color: #193451;
    font: inherit;
    cursor: pointer;
  }

  .ibo-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
    gap: 1.25rem;
  }

  .ibo-chart-card,
  .ibo-detail-card {
    border: 1px solid rgba(16, 35, 63, 0.08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(24, 49, 80, 0.08);
  }

  .ibo-chart-card {
    padding: clamp(1.15rem, 3vw, 2rem);
    overflow: hidden;
  }

  .ibo-chart-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .ibo-chart-card__heading h3 {
    margin: 0;
    color: #173451;
    font-size: 1.13rem;
  }

  .ibo-chart-card__heading p {
    margin: 0.45rem 0 0;
    color: #7a889a;
    font-size: 0.85rem;
  }

  .ibo-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    color: #607086;
    font-size: 0.76rem;
    font-weight: 650;
  }

  .ibo-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .ibo-legend__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
  }

  .ibo-legend__dot--four {
    background: #ef7622;
  }

  .ibo-chart {
    position: relative;
    min-height: 390px;
    margin-top: 1.5rem;
  }

  .ibo-chart svg {
    display: block;
    width: 100%;
    height: 390px;
    overflow: visible;
  }

  .ibo-grid-line {
    stroke: #e8edf3;
    stroke-width: 1;
  }

  .ibo-axis-text {
    fill: #8290a1;
    font-size: 12px;
    font-weight: 600;
  }

  .ibo-chart-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
  }


  .ibo-chart-line--four {
    stroke: #ef7622;
  }

  .ibo-chart-point {
    stroke: #fff;
    stroke-width: 3;
    cursor: pointer;
    transition: r 160ms ease;
  }

  .ibo-chart-point:hover,
  .ibo-chart-point:focus {
    r: 8;
  }


  .ibo-point--four {
    fill: #ef7622;
  }

  .ibo-chart-missing {
    fill: #98a6b5;
    font-size: 11px;
    font-weight: 700;
  }

  .ibo-medal-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.75rem;
    height: 330px;
    padding: 1.2rem 0.5rem 0;
  }

  .ibo-medal-year {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-width: 46px;
    height: 100%;
    cursor: pointer;
  }

  .ibo-medal-stack {
    display: flex;
    width: min(55px, 75%);
    min-height: 4px;
    flex-direction: column-reverse;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 9px 9px 3px 3px;
    background: #edf1f5;
    box-shadow: 0 8px 22px rgba(24, 49, 80, 0.08);
    transition:
      transform 180ms ease,
      filter 180ms ease;
  }

  .ibo-medal-year:hover .ibo-medal-stack {
    transform: translateY(-5px);
    filter: brightness(1.03);
  }

  .ibo-medal-segment {
    width: 100%;
    min-height: 0;
  }

  .ibo-medal-segment--gold {
    background: #e7b943;
  }

  .ibo-medal-segment--silver {
    background: #aab5c1;
  }

  .ibo-medal-segment--bronze {
    background: #bd7248;
  }

  .ibo-medal-segment--merit {
    background: #62a787;
  }

  .ibo-medal-segment--none {
    background: #dce3ea;
  }

  .ibo-medal-year-label {
    margin-top: 0.65rem;
    color: #748397;
    font-size: 0.72rem;
    font-weight: 750;
  }

  .ibo-detail-card {
    position: relative;
    padding: 2rem;
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 115% -5%, rgba(70, 189, 211, 0.35), transparent 17rem),
      linear-gradient(145deg, #102b50, #173e72 58%, #0c284b);
  }

  .ibo-detail-card::after {
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
  }

  .ibo-detail-card__year {
    display: inline-flex;
    min-width: 76px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.7rem;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 800;
  }

  .ibo-detail-card__label {
    margin: 0;
    color: #9eb3ce;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .ibo-detail-card h3 {
    margin: 0.35rem 0 1.6rem;
    font-size: clamp(1.4rem, 2.7vw, 2.1rem);
    line-height: 1.15;
  }

  .ibo-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
  }

  .ibo-detail-list div {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1rem;
    padding: 0.82rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ibo-detail-list dt {
    color: #9eb3ce;
    font-size: 0.78rem;
    font-weight: 650;
  }

  .ibo-detail-list dd {
    margin: 0;
    font-size: 0.83rem;
    font-weight: 750;
    text-align: right;
  }

  .ibo-medal-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.4rem;
  }

  .ibo-medal {
    padding: 0.4rem 0.62rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .ibo-medal--gold {
    background: #f5d46f;
    color: #574000;
  }

  .ibo-medal--silver {
    background: #dce3e9;
    color: #394958;
  }

  .ibo-medal--bronze {
    background: #d59167;
    color: #3e2112;
  }

  .ibo-medal--merit {
    background: #8bd0af;
    color: #113f2e;
  }

  .ibo-medal--none {
    background: rgba(255, 255, 255, 0.13);
    color: #e7eef6;
  }

  .ibo-table-wrapper {
    margin-top: 1.25rem;
    overflow-x: auto;
    border: 1px solid rgba(16, 35, 63, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 45px rgba(24, 49, 80, 0.06);
  }

  .ibo-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
  }

  .ibo-table th,
  .ibo-table td {
    padding: 1rem;
    border-bottom: 1px solid #edf1f5;
    text-align: left;
    vertical-align: middle;
  }

  .ibo-table th {
    background: #f5f8fb;
    color: #617287;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .ibo-table td {
    color: #42556c;
    font-size: 0.83rem;
  }

  .ibo-table tbody tr {
    cursor: pointer;
    transition: background 160ms ease;
  }

  .ibo-table tbody tr:hover,
  .ibo-table tbody tr.active {
    background: #f1f7fc;
  }

  .ibo-table__year {
    color: #173e72;
    font-weight: 850;
  }

  .ibo-table__status {
    display: inline-flex;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: #eef3f7;
    color: #5b6d80;
    font-size: 0.7rem;
    font-weight: 750;
  }

  .ibo-table__status--warning {
    background: #fff0e8;
    color: #b24b14;
  }

  .ibo-performance__note {
    max-width: 870px;
    margin: 1.1rem 0 0;
    color: #7a899a;
    font-size: 0.77rem;
    line-height: 1.65;
  }

  .ibo-tooltip {
    position: fixed;
    z-index: 9999;
    max-width: 220px;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    background: #10233f;
    color: #fff;
    font-size: 0.75rem;
    line-height: 1.45;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -115%);
    box-shadow: 0 9px 30px rgba(16, 35, 63, 0.28);
    transition: opacity 120ms ease;
  }

  .ibo-tooltip.visible {
    opacity: 1;
  }

  @media (max-width: 900px) {
    .ibo-summary {
      grid-template-columns: repeat(2, 1fr);
    }

    .ibo-dashboard {
      grid-template-columns: 1fr;
    }

    .ibo-chart-card__heading {
      flex-direction: column;
    }

    .ibo-legend {
      justify-content: flex-start;
    }
  }

  @media (max-width: 600px) {
    .ibo-performance {
      padding-inline: 0.85rem;
    }

    .ibo-summary {
      gap: 0.7rem;
    }

    .ibo-summary__card {
      min-height: 110px;
      padding: 1rem;
      border-radius: 17px;
    }

    .ibo-summary__value {
      font-size: 1.9rem;
    }

    .ibo-controls {
      align-items: stretch;
      flex-direction: column;
    }

    .ibo-toggle {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .ibo-filter {
      justify-content: space-between;
    }

    .ibo-filter select {
      flex: 1;
    }

    .ibo-chart-card,
    .ibo-detail-card {
      border-radius: 21px;
    }

    .ibo-chart {
      min-height: 330px;
    }

    .ibo-chart svg {
      height: 330px;
    }

    .ibo-medal-bars {
      height: 280px;
      gap: 0.25rem;
    }

    .ibo-medal-year-label {
      font-size: 0.62rem;
      transform: rotate(-45deg);
      transform-origin: center;
    }
  }
  
  /* Special table-row backgrounds */

.ibo-table tbody tr.ibo-row--2024 {
  background: #fde8e8;
}

.ibo-table tbody tr.ibo-row--2024:hover,
.ibo-table tbody tr.ibo-row--2024.active {
  background: #f8cccc;
}

.ibo-table tbody tr.ibo-row--2025 {
  background: #fff6cc;
}

.ibo-table tbody tr.ibo-row--2025:hover,
.ibo-table tbody tr.ibo-row--2025.active {
  background: #f9e99d;
}

.ibo-table tbody tr.ibo-row--2024 td:first-child {
  border-left: 5px solid #c83c3c;
}

.ibo-table tbody tr.ibo-row--2025 td:first-child {
  border-left: 5px solid #d2a313;
}
/* ==================== IBO 2027 WARSAW SECTION ==================== */

/* ==================== IBO 2027 — SODDALASHTIRILGAN ==================== */

.format-section-2027 {
  position: relative;
  color: var(--ink);
  background: #f8f5f3;
  overflow: hidden;
}

.format-section-2027::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #b51f32;
}

.ibo-2027-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 60px;
  margin-bottom: 50px;
}

.eyebrow-red {
  color: #a51f32;
}

.ibo-2027-intro h2 {
  margin: 14px 0 18px;
  font-family:
    "Aptos Display",
    "Trebuchet MS",
    Inter,
    system-ui,
    sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: #291c20;
}

.ibo-2027-intro > p {
  max-width: 720px;
  margin: 0;
  color: #6e6265;
  font-size: 1rem;
  line-height: 1.7;
}

.ibo-2027-logo {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(165, 31, 50, 0.16);
  border-radius: 20px;
  background: #ffffff;
}

.ibo-2027-logo img {
  width: 100%;
  max-width: 180px;
  max-height: 150px;
  object-fit: contain;
}

.ibo-2027-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ibo-2027-simple-card {
  padding: 30px;
  border: 1px solid rgba(41, 28, 32, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(41, 28, 32, 0.06);
}

.ibo-2027-card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.ibo-2027-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: #a51f32;
  background: #f7e9ec;
  font-size: 1.35rem;
  font-weight: 800;
}

.ibo-2027-label {
  margin: 0 0 3px;
  color: #a51f32;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ibo-2027-card-heading h3 {
  margin: 0;
  color: #291c20;
  font-size: 1.3rem;
}

.ibo-2027-topic-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ibo-2027-topic-list li {
  position: relative;
  padding: 11px 0 11px 20px;
  border-top: 1px solid rgba(41, 28, 32, 0.08);
  color: #5f5558;
  font-size: 0.92rem;
}

.ibo-2027-topic-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b51f32;
}

@media (max-width: 820px) {
  .ibo-2027-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ibo-2027-logo {
    width: 100%;
    max-width: 300px;
  }

  .ibo-2027-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ibo-2027-simple-card {
    padding: 22px;
  }

  .ibo-2027-card-heading {
    align-items: flex-start;
  }
}
/* ==================== OLIMPIADA TAHLILI ==================== */

.analysis-section {
  color: #18231f;
  background: #f4f7f5;
}

.analysis-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.analysis-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.analysis-heading > p {
  margin: 0;
  color: #65716c;
  line-height: 1.7;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.analysis-card {
  padding: 26px;
  border: 1px solid rgba(24, 35, 31, 0.09);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(24, 35, 31, 0.05);
}

.analysis-card-wide {
  grid-column: 1 / -1;
}

.analysis-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.analysis-card-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analysis-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: #176447;
  background: #e7f2ed;
  font-size: 0.72rem;
  font-weight: 800;
}

.analysis-card h3,
.country-ranking h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.analysis-type {
  padding: 7px 10px;
  border-radius: 999px;
  color: #68736f;
  background: #f1f4f2;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.analysis-description {
  max-width: 760px;
  margin: 18px 0 22px;
  color: #6a7671;
  font-size: 0.9rem;
  line-height: 1.65;
}

.analysis-graph {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  border: 1px solid rgba(24, 35, 31, 0.08);
  border-radius: 15px;
  background: #fafcfb;
  overflow: hidden;
}

.analysis-graph-square {
  min-height: 360px;
}

.analysis-graph img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.analysis-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 30px;
  text-align: center;
  color: #7c8883;
}

.analysis-placeholder span {
  color: #1b6e4f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analysis-placeholder strong {
  color: #3c4944;
  font-size: 1rem;
}

.analysis-placeholder small {
  color: #9ca5a1;
}

.country-ranking {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(24, 35, 31, 0.09);
  border-radius: 22px;
  background: #ffffff;
}

.country-ranking-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: 40px;
  margin-bottom: 34px;
}

.country-ranking-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-ranking-heading > p {
  margin: 0;
  color: #68746f;
  font-size: 0.9rem;
  line-height: 1.65;
}

.ranking-table-block + .ranking-table-block {
  margin-top: 32px;
}

.ranking-table-title {
  margin-bottom: 13px;
}

.ranking-table-title h4 {
  margin: 0;
  color: #27352f;
  font-size: 1rem;
}

.ranking-table-title p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #78837e;
  font-size: 0.82rem;
  line-height: 1.55;
}

.ranking-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(24, 35, 31, 0.09);
  border-radius: 14px;
}

.analysis-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.analysis-table th,
.analysis-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(24, 35, 31, 0.08);
  text-align: left;
}

.analysis-table th {
  color: #66716d;
  background: #f6f8f7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analysis-table td {
  color: #47534e;
  font-size: 0.86rem;
}

.analysis-table tbody tr:last-child td {
  border-bottom: 0;
}

.analysis-table tbody tr:hover {
  background: #f8faf9;
}

.analysis-table tr.is-uzbekistan {
  background: #e9f4ef;
}

.analysis-table tr.is-uzbekistan td {
  color: #14563e;
  font-weight: 800;
}

.uzbekistan-ranking-block {
  padding-top: 26px;
  border-top: 1px solid rgba(24, 35, 31, 0.1);
}

@media (max-width: 850px) {
  .analysis-heading,
  .country-ranking-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 580px) {
  .analysis-card,
  .country-ranking {
    padding: 20px;
  }

  .analysis-card-heading {
    display: grid;
  }

  .analysis-card-heading > div {
    align-items: flex-start;
  }

  .analysis-type {
    justify-self: start;
  }

  .analysis-graph,
  .analysis-graph-square {
    min-height: 280px;
  }
}

.nav-contact {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff !important;
  background: #2f7b58;
  opacity: 1 !important;
  font-weight: 800;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.nav-contact:hover {
  background: #256447;
  transform: translateY(-1px);
}

.nav-dashboard {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff !important;
  background: #aa4465;
  font-weight: 900;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.nav-dashboard:hover {
  background: #8e3652;
  transform: translateY(-1px);
}

.nav-materials {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff !important;
  background: #D97706;
  opacity: 1 !important;
  font-weight: 800;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.nav-materials:hover {
  background: #FF6000;
  transform: translateY(-1px);
}