/* ============ Umidjon Biologiya — dizayn tizimi v3 ============ */
:root {
  --bg: #F5F8F6;
  --surface: #FFFFFF;
  --surface-2: #EEF3F0;
  --ink: #0E1D16;
  --muted: #5B6C63;
  --line: #DFE7E2;
  --green: #0B8A5F;
  --green-strong: #066B49;
  --mint: #DDF3E8;
  --lime: #C6F36B;
  --rose: #D63E66;
  --rose-soft: #FCE4EB;
  --sun: #F4B63F;
  --shadow: 0 1px 2px rgba(14,29,22,.05), 0 10px 30px -12px rgba(14,29,22,.14);
  --shadow-lg: 0 2px 4px rgba(14,29,22,.04), 0 24px 60px -20px rgba(14,29,22,.25);
  --r-lg: 24px; --r: 16px; --r-sm: 12px;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1410; --surface: #121E18; --surface-2: #17261F; --ink: #E8F1EC; --muted: #93A69C;
    --line: #22342B; --green: #2FC48A; --green-strong: #58D9A3; --mint: #143A2A; --lime: #B7E85C;
    --rose: #F07093; --rose-soft: #3A1C26;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- Sarlavha ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled, .top.solid { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; margin-right: auto; letter-spacing: -.01em; }
.brand .logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 .8rem var(--display); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: auto; position: relative; transition: transform .2s, opacity .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.top.open .menu-btn span { background: transparent; }
.top.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.top.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Tugmalar va maydonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--sans);
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--green); color: #fff;
  cursor: pointer; text-decoration: none; min-height: 48px; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--green) 70%, transparent); }
.btn:hover { background: var(--green-strong); border-color: var(--green-strong); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--rose); border-color: var(--rose); box-shadow: none; }
.btn.small { padding: 7px 16px; min-height: 38px; font-size: .9rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
label.field { display: block; margin-bottom: 16px; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=search], select { display: block; width: 100%; margin-top: 8px; font: 1rem var(--sans); color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
input:focus, select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px var(--mint); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.notice { padding: 14px 18px; border-radius: var(--r-sm); background: var(--mint); margin: 16px 0; }
.notice.err { background: var(--rose-soft); }
.loading { padding: 40px 0; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- Bosh sahifa ---------- */
.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.hero .badge i { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-style: normal; font-size: .75rem; color: #0E1D16; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding: 0 .08em; }
@media (prefers-color-scheme: dark) { .hero h1 .hl { background: none; color: var(--lime); } }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cell { position: relative; aspect-ratio: 1; }
.cell svg { width: 100%; height: 100%; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .cell .float { animation: drift 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .cell .float.b { animation-duration: 11s; animation-delay: -3s; }
  .cell .float.c { animation-duration: 13s; animation-delay: -6s; }
  .cell .membrane { animation: breathe 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes drift { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(6px,-8px) rotate(6deg); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.cell-label { position: absolute; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.stat b { display: block; font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.1 var(--display); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }
section.block { padding: 72px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head p { color: var(--muted); max-width: 30em; margin: 0; }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; min-height: 220px; display: flex; flex-direction: column; }
.topic .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: auto; }
.topic .ic svg { width: 28px; height: 28px; }
.topic h3 { margin: 22px 0 6px; }
.topic p { color: var(--muted); font-size: .94rem; margin: 0; }
.t1 .ic { background: #DDF3E8; color: #066B49; } .t2 .ic { background: #E7E6FB; color: #4B3FC4; }
.t3 .ic { background: #FDF0D5; color: #9A6300; } .t4 .ic { background: #FCE4EB; color: #B32A52; }
@media (prefers-color-scheme: dark) { .t1 .ic, .t2 .ic, .t3 .ic, .t4 .ic { background: var(--surface-2); } }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 .95rem var(--display); margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }
.cta { background: var(--ink); color: var(--bg); border-radius: 32px; padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.cta h2 { margin: 0 0 8px; } .cta p { opacity: .75; margin: 0; }
.cta .btn { background: var(--lime); border-color: var(--lime); color: #0E1D16; box-shadow: none; }
.about { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.avatar { width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(135deg, var(--green), #2B5FD9); color: #fff; display: grid; place-items: center; font: 700 1.6rem var(--display); }
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: var(--ink); display: block; }
a.contact:hover { border-color: var(--green); }
.contact small { color: var(--muted); display: block; margin-bottom: 4px; font-weight: 600; }
footer { padding: 36px 0 48px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 28px; }
footer a { color: var(--muted); }

/* ---------- Testlar ro'yxati ---------- */
.page-head { padding: 44px 0 20px; }
.search { position: relative; margin: 18px 0 8px; }
.search input { padding-left: 48px; margin: 0; border-radius: 999px; min-height: 54px; box-shadow: var(--shadow); border-color: transparent; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 24px; }
.filters button { font: 600 .9rem var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.test-grid { list-style: none; padding: 0; margin: 0 0 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.test-card { display: flex; flex-direction: column; gap: 14px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.test-card:hover { border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.test-card .t { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.test-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; align-items: center; }
.test-card .go { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--green-strong); display: grid; place-items: center; }
.test-card:hover .go { background: var(--green); color: #fff; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-lg); border: 1px dashed var(--line); grid-column: 1 / -1; }

/* ---------- Test yechish ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.bar .ttl { margin-right: auto; font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 4px; background: var(--line); }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0; transition: width .3s; }
.timer { display: inline-flex; align-items: center; gap: 6px; font: 700 1.05rem var(--sans); font-variant-numeric: tabular-nums; padding: 8px 14px; border-radius: 999px; background: var(--mint); color: var(--green-strong); }
.timer.low { background: var(--rose-soft); color: var(--rose); }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); margin-top: 28px; }
.q-num { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0 0 10px; }
.q-text { white-space: pre-line; font-size: clamp(1.12rem, 2.4vw, 1.35rem); font-weight: 600; line-height: 1.45; margin-bottom: 24px; letter-spacing: -.01em; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; font: 500 1rem/1.45 var(--sans); color: var(--ink);
  background: var(--bg); border: 1.5px solid transparent; border-radius: var(--r); padding: 14px 16px; cursor: pointer; transition: border-color .12s, background .12s; }
.opt .l { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.opt:hover { border-color: var(--line); background: var(--surface-2); }
.opt.sel { border-color: var(--green); background: var(--mint); }
.opt.sel .l { background: var(--green); border-color: var(--green); color: #fff; }
.navrow { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }
.navrow .btn { flex: 1; max-width: 220px; }
.grid-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 12px 0 28px; }
.grid-nav button { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; }
.grid-nav button.done { background: var(--mint); border-color: transparent; color: var(--green-strong); }
.grid-nav button.cur { outline: 2px solid var(--ink); outline-offset: 1px; }
.grid-nav button.ok { background: var(--mint); border-color: transparent; color: var(--green-strong); }
.grid-nav button.no { background: var(--rose-soft); border-color: transparent; color: var(--rose); }
.nav-title { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.start-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.start-card > div { padding: clamp(24px, 4vw, 40px); }
.start-card .info { background: var(--ink); color: var(--bg); }
.start-card .info h1 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.start-card .facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.start-card .facts span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 600; font-size: .92rem; }
@media (prefers-color-scheme: dark) { .start-card .info { background: var(--surface-2); color: var(--ink); } }

/* ---------- Natija ---------- */
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 28px; }
.ring { width: 150px; height: 150px; position: relative; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font: 700 2rem/1 var(--display); display: block; }
.ring .val span { font-size: .85rem; color: var(--muted); }
.kv { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 12px; }
.review .q-text { font-size: 1.05rem; margin-bottom: 14px; }
.review .opt { cursor: default; background: var(--bg); }
.opt.right { border-color: var(--green); background: var(--mint); }
.opt.right .l { background: var(--green); color: #fff; border-color: var(--green); }
.opt.wrong { border-color: var(--rose); background: var(--rose-soft); }
.opt.wrong .l { background: var(--rose); color: #fff; border-color: var(--rose); }
.tag { font-size: .8rem; font-weight: 700; margin-left: auto; padding-left: 8px; white-space: nowrap; }
.explain { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .95rem; }
.toggle { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.toggle input { width: 20px; height: 20px; accent-color: var(--green); }

/* ---------- Admin ---------- */
.tabs { display: inline-flex; gap: 4px; margin: 24px 0; padding: 4px; background: var(--surface-2); border-radius: 999px; flex-wrap: wrap; }
.tabs button { font: 600 .95rem var(--sans); padding: 9px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--surface); box-shadow: var(--shadow); }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--muted); font-size: .85rem; }
td.ok { color: var(--green); font-weight: 600; } td.bad { color: var(--rose); }
.drop { border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 36px; text-align: center; background: var(--surface); }
.drop.over { border-color: var(--green); background: var(--mint); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 32px; }
  .cell { max-width: 280px; width: 100%; margin: 12px auto 0; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .contacts { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .start-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-btn { display: grid; place-items: center; }
  .nav { position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: var(--shadow-lg); display: none; }
  .top.open .nav { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 14px; } .stat span { font-size: .8rem; }
  .topics { grid-template-columns: 1fr; }
  .topic { min-height: 0; flex-direction: row; gap: 16px; align-items: flex-start; }
  .topic .ic { margin: 0; flex: none; } .topic h3 { margin: 2px 0 4px; }
  section.block { padding: 48px 0; }
  .about { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; justify-items: start; }
  .bar .ttl { display: none; }
  .bar .timer { margin-right: auto; }
  .navrow .btn { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .opt, .btn, .grid-nav button { transition: background .15s, border-color .15s, color .15s; }
}

/* =================== v4: kattaroq menyu, bo'limlar, slayd-shou, footer =================== */
.top .wrap { min-height: 84px; }
.brand { font-size: 1.15rem; gap: 12px; }
.brand .logo { width: 44px; height: 44px; border-radius: 14px; font-size: .9rem; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--green) 70%, transparent); }
.nav { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; gap: 2px;
  box-shadow: 0 1px 2px rgba(14,29,22,.06), 0 12px 32px -14px rgba(14,29,22,.28); }
.nav a { font-size: 1rem; font-weight: 600; padding: 11px 20px; }
.nav a[aria-current] { background: var(--green); color: #fff; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--green) 80%, transparent); }
@media (max-width: 1000px) { .nav a { padding: 10px 14px; font-size: .95rem; } }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: absolute; top: 80px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; border-radius: 20px; padding: 8px; display: none; }
  .top.open .nav { display: flex; }
  .nav a { padding: 14px 16px; border-radius: 14px; font-size: 1.05rem; }
}

/* Slayd-shou */
.slides { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); isolation: isolate; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 7s ease-out; }
.slides img.on { opacity: 1; transform: scale(1); }
.slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,14,10,.72), rgba(6,14,10,0) 46%); z-index: 1; pointer-events: none; }
.slide-cap { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; color: #fff; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.slide-cap b { display: block; font: 700 1.35rem/1.2 var(--display); letter-spacing: -.01em; }
.slide-cap i { font-size: .92rem; opacity: .85; }
.dots { display: flex; gap: 6px; flex: none; }
.dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 26px; background: #fff; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #0E1D16; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.slides:hover .slide-nav, .slide-nav:focus-visible { opacity: 1; }
.slide-nav.prev { left: 14px; } .slide-nav.next { right: 14px; }
.credit { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: right; }
.credit a { color: var(--muted); }
.hero-tag { position: absolute; top: 18px; left: 18px; z-index: 2; background: rgba(255,255,255,.92); color: #0E1D16; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .85rem; display: flex; gap: 8px; align-items: center; }
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.2); }

/* Statistika — hero ostida ixcham */
.stats { display: flex; gap: 0; margin: 4px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 6px; box-shadow: var(--shadow); }
.stat { flex: 1; background: none; border: 0; border-radius: 18px; padding: 18px 22px; }
.stat + .stat { border-left: 1px solid var(--line); border-radius: 0; }

/* Bo'lim kartochkalari (bosiladigan) */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cat { --c: var(--green); --b: var(--mint); position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 196px; padding: 22px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--b); right: -70px; top: -70px; opacity: .7; transition: transform .3s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c); }
.cat:hover::before { transform: scale(1.15); }
.cat .ic { position: relative; width: 56px; height: 56px; border-radius: 18px; background: var(--b); color: var(--c); display: grid; place-items: center;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.06), 0 8px 18px -10px var(--c); }
.cat h3 { position: relative; margin: auto 0 2px; font-size: 1.12rem; }
.cat p { position: relative; margin: 0; color: var(--muted); font-size: .9rem; }
.cat .foot { position: relative; display: flex; align-items: center; justify-content: space-between; }
.cat .count { font-weight: 700; font-size: .9rem; color: var(--c); }
.cat .arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); transition: background .2s, color .2s, border-color .2s; }
.cat:hover .arrow { background: var(--c); border-color: var(--c); color: #fff; }
.cat.video { --c: #DC2626; --b: #FDE3E3; }
@media (prefers-color-scheme: dark) { .cat::before { opacity: .25; } .cat .ic { background: var(--surface-2); } }

/* Testlar sahifasi — bo'lim yorliqlari */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 14px -2px 18px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.cat-tabs a span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.cat-tabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-tabs a[aria-current] span { color: inherit; opacity: .7; }
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.cat-head .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.test-card .cat-label { font-size: .8rem; font-weight: 700; }

/* Video darslar */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; padding: 0; font: inherit; width: 100%;
  transition: transform .18s, box-shadow .18s; }
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vthumb { position: relative; aspect-ratio: 16/9; background: #111 center / cover no-repeat; }
.vthumb .pl { position: absolute; inset: 0; margin: auto; width: 62px; height: 44px; border-radius: 14px; background: #E52D27; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); }
.vthumb .pl svg { fill: #fff; stroke: none; }
.vcard .vt { padding: 14px 16px 16px; font-weight: 700; line-height: 1.35; }
.player { position: fixed; inset: 0; z-index: 60; background: rgba(5,10,8,.82); display: grid; place-items: center; padding: 20px; }
.player[hidden] { display: none; }
.player .box { width: min(960px, 100%); }
.player iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 18px; background: #000; }
.player .close { margin: 0 0 10px auto; display: flex; }

/* Men haqimda sahifasi */
.about-hero { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center; padding: 48px 0 24px; }
.photo { position: relative; aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; box-shadow: var(--shadow-lg); border: 8px solid var(--surface); }
.photo::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--green) 55%, transparent); }
.photo .badge-a { position: absolute; right: -6px; bottom: 26px; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 10px 14px; font: 700 1.2rem/1 var(--display); box-shadow: var(--shadow-lg); }
.photo .badge-a small { display: block; font: 600 .7rem var(--sans); opacity: .7; margin-top: 4px; }
.about-hero .role { color: var(--green); font-weight: 700; margin-bottom: 10px; }
.about-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 26px 0 8px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.fact .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--green-strong); display: grid; place-items: center; }
.fact b { display: block; line-height: 1.3; } .fact span { color: var(--muted); font-size: .9rem; }
.quote { font: 600 clamp(1.15rem, 2.4vw, 1.45rem)/1.5 var(--sans); padding: 26px 30px; border-radius: 24px; background: var(--mint); color: var(--green-strong); border-left: 6px solid var(--green); margin: 30px 0; }

/* Footer — katta, bo'rtib chiqqan */
.site-foot { padding: 56px 0 28px; }
.foot-card { background: var(--ink); color: #E8F1EC; border-radius: 36px; padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow-lg); }
@media (prefers-color-scheme: dark) { .foot-card { background: var(--surface-2); border: 1px solid var(--line); } }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-card h4 { margin: 0 0 14px; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; font-weight: 700; }
.foot-card a { color: #E8F1EC; text-decoration: none; }
.foot-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-card ul a { opacity: .85; font-weight: 500; } .foot-card ul a:hover { opacity: 1; color: var(--lime); }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.foot-brand .logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 .9rem var(--display); }
.foot-card p { opacity: .7; margin: 0 0 18px; font-size: .95rem; }
.foot-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.fbtn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-weight: 600; transition: background .2s, transform .2s; }
.fbtn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.fbtn.tg { background: #229ED9; border-color: #229ED9; color: #fff; }
.fbtn.yt { background: #E52D27; border-color: #E52D27; color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; opacity: .75; align-items: center; }
.panel-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; background: rgba(255,255,255,.1); font-weight: 600; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; text-align: left; }
  .photo { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; } .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .slides { aspect-ratio: 4 / 4.4; border-radius: 24px; }
}
.vthumb { display: block; }
.vcard .vt { display: block; }
.site-foot { color: inherit; font-size: inherit; }
.site-foot .wrap { display: block; border: 0; padding-top: 0; }
.teacher-cta { grid-template-columns: auto 1fr auto; }
.teacher-cta img { flex: none; }
@media (max-width: 760px) {
  .teacher-cta { grid-template-columns: auto 1fr; }
  .teacher-cta img { width: 72px !important; height: 72px !important; }
  .teacher-cta .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .stats { flex-direction: row; } .stat + .stat { border-left: 1px solid var(--line); border-top: 0; }
  .stat { padding: 14px 12px; } .stat b { font-size: 1.5rem; } .stat span { font-size: .78rem; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { min-height: 168px; padding: 16px; border-radius: 20px; gap: 10px; }
  .cat .ic { width: 46px; height: 46px; border-radius: 14px; }
  .cat h3 { font-size: .98rem; } .cat p { font-size: .8rem; }
  .cat .arrow { width: 32px; height: 32px; }
  .cat::before { width: 120px; height: 120px; right: -50px; top: -50px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child, .foot-grid > div:last-child { grid-column: 1 / -1; }
  .hero .actions .btn { flex: 1; }
}
.facts-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .facts-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .cat-tabs { flex-wrap: wrap; overflow: visible; } }
