@charset "UTF-8";
/* ==========================================================================
   aziznematov.com — brend uslubi (Brand Kit, Concept 01)
   Layout: navy bloklar logotipdagi N diagonali (37°) bilan kesiladi,
   kurslar oq tokchada turgan kitoblar sifatida ko‘rsatiladi.
   ========================================================================== */

@font-face {
    font-family: "DejaVu Sans";
    src: url("../fonts/DejaVuSans.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DejaVu Sans";
    src: url("../fonts/DejaVuSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Brend ranglari — 09_Brand_Guide/brand_tokens.json */
    --navy: #0C1D42;
    --cobalt: #1558ED;
    --white: #FFFFFF;
    --gray: #56647A;
    --bg: #F3F6FC;

    /* Hosilalar (brend ranglaridan) */
    --navy-2: #132A5B;
    --navy-3: #1C3772;
    --cobalt-2: #0E45C7;
    --cobalt-soft: #E3EBFD;
    --cobalt-mid: #A9C2FA;
    --cobalt-light: #8DB0FF;
    --line: #D8E0EE;
    --on-navy: #C2CDE4;
    --on-navy-line: rgba(255, 255, 255, .16);
    --ok: #1E7A46;
    --err: #C0352B;

    --font: "DejaVu Sans", Verdana, "Segoe UI", sans-serif;
    --mono: "DejaVu Sans Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

    --slant: 37deg;          /* logotipdagi N diagonali */
    --radius: 12px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --head-h: 72px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: light;
}

/* ---------- Asos ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--head-h) + 16px);
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--navy);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.section-navy :focus-visible, .hero :focus-visible, .page-head :focus-visible,
.about-hero :focus-visible, .site-foot :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--gray); }
.small { font-size: 14px; }
.center { text-align: center; }

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--cobalt); color: var(--white); padding: 10px 16px; border-radius: 8px;
    text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Tipografika ---------- */

.eyebrow {
    display: flex; align-items: center;
    font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--cobalt);
}
.eyebrow-dark { color: var(--cobalt-light); }

/* Kichik belgi: monogrammaning ikki qiyalik bo‘lagi */
.tick {
    display: inline-block; flex: none;
    width: 5px; height: 12px; margin-right: 18px;
    background: var(--navy);
    transform: skewX(var(--slant));
    box-shadow: 7px 0 0 var(--cobalt);
}
.eyebrow-dark .tick { background: var(--white); }

h2 { font-size: clamp(27px, 3vw, 40px); }
.h-sm { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.sub { color: var(--gray); font-size: 16.5px; max-width: 60ch; }
.lead { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.6; max-width: 58ch; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; color: var(--cobalt); text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Tugmalar ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 24px;
    border: 1.5px solid transparent; border-radius: 8px;
    font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .38); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cobalt-soft); }

.icon-btn {
    width: 42px; height: 42px; display: inline-grid; place-items: center;
    border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
    cursor: pointer; font-size: 17px; transition: border-color .2s, background-color .2s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--navy); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------- Qiya chiziq (brend banneridagi motiv) ---------- */

.stripe { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.stripe i {
    position: absolute; top: -20%; bottom: -20%;
    background: var(--cobalt);
    transform: skewX(var(--slant));
}
.stripe i:nth-child(1) { width: 120px; }
.stripe i:nth-child(2) { width: 16px; opacity: .5; }

.stripe-hero i:nth-child(1) { left: 63%; }
.stripe-hero i:nth-child(2) { left: calc(63% + 168px); }
.stripe-page i:nth-child(1) { left: 78%; width: 90px; }
.stripe-page i:nth-child(2) { left: calc(78% + 128px); }
.stripe-author i:nth-child(1) { left: -2%; width: 150px; }
.stripe-author i:nth-child(2) { left: calc(-2% + 196px); }
.stripe-cta i:nth-child(1) { left: 66%; width: 100px; }
.stripe-cta i:nth-child(2) { left: calc(66% + 140px); }
.stripe-foot i:nth-child(1) { left: 86%; width: 60px; }
.stripe-foot i:nth-child(2) { left: calc(86% + 90px); }
.stripe-card i:nth-child(1) { left: 84%; width: 44px; }
.stripe-card i:nth-child(2) { left: calc(84% + 64px); width: 8px; }

/* ---------- Sarlavha (header) ---------- */

.site-head {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, box-shadow .25s;
}
.site-head.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(12, 29, 66, .45); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.mono { width: 50px; height: auto; flex: none; overflow: visible; }
.mono-a { fill: var(--mono-a, var(--navy)); transition: transform .35s var(--ease); }
.mono-n { fill: var(--mono-n, var(--cobalt)); transition: transform .35s var(--ease); }
.brand:hover .mono-n { transform: translateX(40px); }
.brand:hover .mono-a { transform: translateX(-16px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 17px; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; color: var(--gray); letter-spacing: .03em; }
.brand-rev { color: var(--white); --mono-a: var(--white); }
.brand-rev .brand-text small { color: var(--on-navy); }

.site-head .mono-a { animation: mono-a .8s var(--ease) both; }
.site-head .mono-n { animation: mono-n .8s .12s var(--ease) both; }
@keyframes mono-a { from { transform: translate(-140px, 100px); opacity: 0; } }
@keyframes mono-n { from { transform: translate(160px, -100px); opacity: 0; } }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a:not(.btn) {
    position: relative; padding: 6px 0;
    font-size: 15px; font-weight: 700; color: var(--gray); text-decoration: none;
    transition: color .2s;
}
.nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--cobalt); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--navy); }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.menu-btn {
    display: none; margin-left: auto; align-items: center; gap: 10px;
    min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--white); font-size: 14px; font-weight: 700; cursor: pointer;
}
.menu-ico { position: relative; width: 18px; height: 12px; }
.menu-ico i { position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); transition: transform .25s var(--ease), top .25s; }
.menu-ico i:nth-child(1) { top: 2px; }
.menu-ico i:nth-child(2) { top: 8px; }
[data-open] .menu-ico i:nth-child(1) { top: 5px; transform: rotate(45deg); }
[data-open] .menu-ico i:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    position: relative; overflow: hidden;
    background: var(--navy); color: var(--white);
}
.hero-top { position: relative; padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.hero .stripe i { animation: stripe-in 1.1s .1s var(--ease) both; }
.hero .stripe i:nth-child(2) { animation-delay: .25s; }
@keyframes stripe-in { from { translate: 0 -120%; } }

.hero-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.07; letter-spacing: -.035em; }
.hl {
    background: linear-gradient(var(--cobalt), var(--cobalt)) no-repeat 0 92% / 100% .3em;
    padding-inline: .06em;
    animation: hl-in 1s .5s var(--ease) both;
}
@keyframes hl-in { from { background-size: 0 .3em; } }
.hero .lead { color: var(--on-navy); }
.hero .actions { margin-top: 8px; }

/* Karusel: kitoblar navbat bilan oldinga chiqadi */
.carousel { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 560px; margin-inline: auto; }
.car-stage { position: relative; aspect-ratio: 1 / .8; touch-action: pan-y; }
.car-stage::after {
    content: ""; position: absolute; left: 22%; right: 22%; bottom: -10px; height: 34px; z-index: 0;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
}
.car-item {
    --x: 0%; --y: 0%; --s: 1; --o: 1; --b: 1; --z: 5;
    position: absolute; left: 50%; bottom: 0; width: 50%; display: block;
    transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) scale(var(--s));
    transform-origin: 50% 100%;
    opacity: var(--o); filter: brightness(var(--b)); z-index: var(--z);
    transition: transform .85s var(--ease), opacity .85s var(--ease), filter .85s var(--ease);
    cursor: pointer;
}
.car-item img { width: 100%; }
.car-item[data-pos="-1"] { --x: -64%; --y: -4%; --s: .76; --b: .62; --z: 4; }
.car-item[data-pos="1"]  { --x: 64%;  --y: -4%; --s: .76; --b: .62; --z: 4; }
.car-item[data-pos="-2"] { --x: -100%; --y: -6%; --s: .6; --o: 0; --b: .4; --z: 3; }
.car-item[data-pos="2"]  { --x: 100%;  --y: -6%; --s: .6; --o: 0; --b: .4; --z: 3; }
.car-item[data-pos="far"] { --s: .5; --o: 0; --b: .4; --z: 1; pointer-events: none; }
.car-item[data-pos="-1"]:hover, .car-item[data-pos="1"]:hover { --b: .85; }
.carousel.ready .car-stage { animation: car-in 1s .2s var(--ease) both; }
@keyframes car-in { from { opacity: 0; translate: 0 40px; } }

.car-bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; position: relative; z-index: 6; }
.car-btn {
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 50%; background: transparent; color: var(--white);
    font-size: 17px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.car-btn:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.car-caption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; text-align: center; min-height: 48px; align-content: center; }
.car-caption b { font-family: var(--mono); color: var(--cobalt-light); }
.car-caption span { font-weight: 700; font-size: 17px; }
.car-caption small { width: 100%; font-size: 13px; color: var(--on-navy); }
.car-caption.swap { animation: cap-in .5s var(--ease); }
@keyframes cap-in { from { opacity: 0; translate: 0 8px; } }
.car-dots { display: flex; justify-content: center; gap: 6px; }
.car-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); transition: width .4s var(--ease), background-color .4s; }
.car-dots i.on { width: 22px; background: var(--cobalt); }

/* Yaltirash: muqova ustidan yorug‘lik o‘tadi (faqat kitob shakli bo‘yicha) */
.glare {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .5) 50%, transparent 62%) no-repeat;
    background-size: 260% 100%; background-position: 140% 0;
    -webkit-mask-position: center bottom; mask-position: center bottom;
    -webkit-mask-size: 100% auto; mask-size: 100% auto;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    opacity: 0;
}
.car-item.shine .glare { animation: glare 1.1s .35s var(--ease); }
@keyframes glare {
    0% { opacity: 1; background-position: 140% 0; }
    100% { opacity: 1; background-position: -40% 0; }
}
@keyframes glare2 {
    0% { opacity: 1; background-position: 140% 0; }
    100% { opacity: 1; background-position: -40% 0; }
}
@keyframes book-in { from { opacity: 0; translate: 0 40px; } }

.hero-facts {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--on-navy-line);
}
.hero-facts > div { padding: 22px 20px 30px 0; }
.hero-facts > div + div { padding-left: 20px; border-left: 1px solid var(--on-navy-line); }
.hero-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy); }
.hero-facts dd { margin-top: 6px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-facts small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--on-navy); }

/* ---------- Bo‘limlar ---------- */

.section { position: relative; padding-block: clamp(64px, 8vw, 104px); }
.section-tight { padding-block: clamp(36px, 5vw, 56px); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); overflow: hidden; }
.section-navy .lead { color: var(--on-navy); }

.sec-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 48px);
}
.sec-head > div:first-child { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* ---------- Filtr tugmalari ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
    font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { font-size: 12px; color: var(--gray); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip[aria-pressed="true"] span { color: var(--cobalt-light); }

/* ---------- Kitob tokchasi ---------- */

.shelf {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 44px 28px; margin-bottom: 40px;
}
.shelf-item { min-width: 0; }
.book { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); perspective: 1000px; }
.book-frame {
    position: relative; display: flex; align-items: flex-end;
    aspect-ratio: 360 / 469;
    transition: transform .45s var(--ease), filter .45s var(--ease);
}
.book-img { width: 100%; }
.book:hover .book-frame, .book:focus-visible .book-frame {
    transform: translateY(-16px);
    filter: drop-shadow(0 22px 20px rgba(12, 29, 66, .28));
}
.book:hover .glare, .book:focus-visible .glare { animation: glare .9s var(--ease); }
/* Tokchaga kelganda kitoblar navbat bilan chiqadi */
.shelf.pre .book-frame { opacity: 0; transform: translateY(40px); }
.shelf.play .book-frame { animation: shelf-in .7s calc(var(--k) * 80ms) var(--ease) backwards; }
@keyframes shelf-in { from { opacity: 0; transform: translateY(40px); } }
.plank {
    display: block; height: 12px; margin-inline: -14px; margin-top: -6px;
    background: linear-gradient(var(--white), #E7EDF8);
    border-radius: 2px;
    box-shadow: 0 1px 0 var(--line), 0 14px 18px -12px rgba(12, 29, 66, .4);
}
.book-cap {
    display: flex; align-items: baseline; gap: 8px; margin-top: 14px;
    font-size: 13px; color: var(--gray); font-variant-numeric: tabular-nums;
}
.book-cap b { font-family: var(--mono); color: var(--cobalt); }
.book:hover .book-cap b { color: var(--navy); }

.ribbon {
    position: absolute; top: 9%; right: -4px; z-index: 2;
    padding: 5px 12px 5px 14px;
    background: var(--cobalt); color: var(--white);
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
}
.ribbon-lg { font-size: 13px; padding: 8px 18px 8px 20px; }

/* ---------- 60 haftalik yo‘l ---------- */

.road { display: grid; gap: 10px; }
.road-bands, .road-track {
    display: grid; grid-template-columns: repeat(var(--total), minmax(0, 1fr));
}
.band {
    margin-inline: 3px; padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
    min-width: 0; height: 112px; margin-inline: 3px; padding: 12px 10px;
    border: 0; border-radius: 8px; background: var(--bg);
    text-align: left; cursor: pointer;
    transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.seg-bar {
    position: absolute; left: 0; right: 0; top: 0; height: 6px;
    background: var(--acc); transform-origin: left;
    transition: height .3s var(--ease);
}
.seg-num { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--gray); }
.seg-name {
    font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.seg-weeks { font-size: 11.5px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg:hover { background: var(--cobalt-soft); transform: translateY(-3px); }
.seg[aria-selected="true"] { background: var(--navy); color: var(--white); }
.seg[aria-selected="true"] .seg-bar { height: 10px; }
.seg[aria-selected="true"] .seg-num, .seg[aria-selected="true"] .seg-weeks { color: var(--on-navy); }

/* chizilish animatsiyasi: faqat ko‘rinmagan joyda boshlansa */
.road.pre .seg-bar { transform: scaleX(0); }
.road.play .seg-bar { transform: scaleX(1); transition: transform .7s calc(var(--i) * 90ms) var(--ease), height .3s var(--ease); }


.road-panels { margin-top: 32px; }
.road-panel {
    display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px);
    align-items: center; padding: clamp(20px, 3vw, 36px);
    background: var(--bg); border-radius: var(--radius);
}
.road-panel.enter { animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; translate: 0 12px; } }
.road-cover img { width: 100%; transition: transform .4s var(--ease); }
.road-cover:hover img { transform: translateY(-6px); }
.road-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.road-body h3 { font-size: clamp(22px, 2.4vw, 28px); }
.road-body > p { color: var(--gray); max-width: 62ch; }
.road-kicker, .cat-kicker, .course-kicker {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray);
}
.dot { width: 10px; height: 10px; flex: none; background: var(--acc, var(--cobalt)); transform: skewX(calc(var(--slant) * -1)); }
.kv { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 16px 28px; padding-top: 6px; }
.kv dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.kv dd { margin-top: 4px; font-size: 15px; }
.road-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.road-step { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--gray); font-variant-numeric: tabular-nums; }

/* ---------- O‘qish tartibi ---------- */

.method { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.method .week-card { position: sticky; top: calc(var(--head-h) + 24px); }
.week-card {
    display: flex; flex-direction: column; gap: 18px;
    padding: clamp(22px, 3vw, 32px); background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.week-card h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.week-card h3 + .flow, .week-card h3 + .grade { margin-top: -4px; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.flow li {
    display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
    min-height: 92px; padding: 10px; border-radius: 6px;
    background: var(--cobalt-soft); font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.flow b { font-family: var(--mono); font-size: 20px; color: var(--cobalt); }
.flow .flow-last { background: var(--navy); color: var(--white); }
.flow .flow-last b { color: var(--cobalt-light); }

.grade { position: relative; display: flex; height: 48px; margin-bottom: 30px; border-radius: 6px; }
.g {
    flex: var(--p); display: flex; align-items: center; padding-inline: 10px; min-width: 0;
    font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g1 { background: var(--cobalt-soft); border-radius: 6px 0 0 6px; }
.g2 { background: var(--cobalt-mid); }
.g3 { background: var(--cobalt); color: var(--white); border-radius: 0 6px 6px 0; justify-content: flex-end; }
.pass { position: absolute; top: -6px; bottom: -6px; left: calc(var(--at) * 1%); width: 2px; background: var(--navy); }
.pass i {
    position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--navy);
}

.projects { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.projects li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px; padding: 15px 22px 15px 18px; }
.projects li + li { border-top: 1px solid var(--line); }
.pj-num { font-family: var(--mono); font-weight: 700; color: var(--acc); padding-top: 1px; }
.pj-text { font-size: 14.5px; color: var(--gray); line-height: 1.5; }
.pj-text a { display: block; font-size: 15.5px; font-weight: 700; color: var(--navy); text-decoration: none; margin-bottom: 2px; }
.pj-text a:hover { color: var(--cobalt); }

/* ---------- Muallif ---------- */

.author-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px); align-items: center;
}
.author-photo img { width: 100%; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.author-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.author-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-block: 1px solid var(--on-navy-line); }
.author-facts > div { padding: 18px 16px 18px 0; }
.author-facts > div + div { padding-left: 16px; border-left: 1px solid var(--on-navy-line); }
.author-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-navy); }
.author-facts dd { margin-top: 4px; font-size: 17px; font-weight: 700; }

/* ---------- Paketlar ---------- */

.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pack {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 28px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.pack:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(12, 29, 66, .45); }
.pack-featured { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pack-flag {
    position: absolute; top: -13px; left: 28px;
    padding: 4px 12px; border-radius: 4px; background: var(--cobalt); color: var(--white);
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pack-books { position: relative; height: 140px; margin-bottom: 10px; }
.pack-books img {
    position: absolute; bottom: 0; width: 98px;
    left: calc(var(--i) * 60px); z-index: var(--i);
    transition: left .45s var(--ease), transform .45s var(--ease);
}
.pack:hover .pack-books img { left: calc(var(--i) * 74px); }
.pack:hover .pack-books img:hover { transform: translateY(-8px); }
.pack h3 { font-size: 21px; }
.pack-meta { font-size: 13px; font-weight: 700; color: var(--cobalt); font-variant-numeric: tabular-nums; }
.pack-featured .pack-meta { color: var(--cobalt-light); }
.pack-note { font-size: 15px; color: var(--gray); }
.pack-featured .pack-note { color: var(--on-navy); }
.pack-list { border-top: 1px solid var(--line); }
.pack-featured .pack-list { border-color: var(--on-navy-line); }
.pack-list li {
    display: flex; justify-content: space-between; gap: 12px;
    padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.pack-featured .pack-list li { border-color: var(--on-navy-line); }
.pack-list a { font-weight: 700; text-decoration: none; }
.pack-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pack-list span { color: var(--gray); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pack-featured .pack-list span { color: var(--on-navy); }
.pack-price { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.price-old { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--gray); font-variant-numeric: tabular-nums; }
.price-old s { text-decoration-thickness: 1.5px; }
.off { padding: 2px 8px; border-radius: 4px; background: var(--cobalt); color: var(--white); font-size: 12px; font-weight: 700; }
.price-now { font-size: 15px; color: var(--gray); }
.price-now b { font-size: 30px; color: var(--navy); letter-spacing: -.02em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.price-split { font-size: 13.5px; color: var(--gray); font-variant-numeric: tabular-nums; }
.pack-featured .price-old, .pack-featured .price-now, .pack-featured .price-split { color: var(--on-navy); }
.pack-featured .price-now b { color: var(--white); }
.pack-featured .off { background: var(--white); color: var(--navy); }
.launch-note {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin: -16px 0 28px; font-size: 15px; font-weight: 700;
}
.launch-tag {
    padding: 4px 10px; border-radius: 4px; background: var(--cobalt); color: var(--white);
    font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
}
.pack-featured .btn-primary:hover { background: var(--white); color: var(--navy); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-grid > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq summary {
    position: relative; list-style: none; cursor: pointer;
    padding: 20px 48px 20px 0; font-size: 17px; font-weight: 700; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
    content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--cobalt);
    transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--cobalt); }
.faq details p { padding-bottom: 22px; color: var(--gray); max-width: 64ch; }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ---------- Ariza (CTA) ---------- */

.cta-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.cta-copy { display: flex; flex-direction: column; gap: 20px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; color: var(--on-navy); }
.checks li::before {
    content: "\2713"; flex: none; width: 22px; height: 22px; display: inline-grid; place-items: center;
    border-radius: 4px; background: var(--cobalt); color: var(--white); font-size: 12px; font-weight: 700;
    transform: translateY(3px);
}

.lead-form {
    display: flex; flex-direction: column; gap: 16px;
    padding: clamp(22px, 3vw, 32px); border-radius: 14px;
    background: var(--white); color: var(--navy);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select {
    width: 100%; min-height: 50px; padding: 0 14px;
    border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
    font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #8A95A8; }
.field input:focus, .field select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.form-note { font-size: 13.5px; color: var(--gray); }
.form-note.ok { color: var(--ok); font-weight: 700; }
.form-note.err { color: var(--err); font-weight: 700; }

/* ---------- Ichki sahifa sarlavhasi ---------- */

.page-head, .about-hero {
    position: relative; overflow: hidden;
    background: var(--navy); color: var(--white);
    padding-block: clamp(32px, 5vw, 56px) clamp(40px, 6vw, 72px);
}
.page-head .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.03em; }
.page-head .lead { color: var(--on-navy); }
.page-head .chip { background: transparent; border-color: rgba(255, 255, 255, .26); color: var(--white); }
.page-head .chip span { color: var(--on-navy); }
.page-head .chip:hover { border-color: var(--white); }
.page-head .chip[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.page-head .chip[aria-pressed="true"] span { color: var(--cobalt); }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--gray); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-head .crumbs, .crumbs-dark { color: var(--on-navy); }
.crumbs [aria-current] { color: inherit; font-weight: 700; }

/* ---------- Katalog ---------- */

.level-group { margin-bottom: clamp(44px, 6vw, 64px); }
.level-group:last-child { margin-bottom: 0; }
.level-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px;
    padding-bottom: 12px; margin-bottom: 26px; border-bottom: 2px solid var(--navy);
}
.level-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.level-head p { color: var(--gray); font-size: 14.5px; }
.cat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.cat-card {
    display: grid; grid-template-columns: 168px minmax(0, 1fr) minmax(0, .95fr); gap: 32px; align-items: center;
    padding: 24px 28px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .25s, box-shadow .3s;
}
.cat-card:hover { border-color: var(--cobalt-mid); box-shadow: 0 22px 40px -30px rgba(12, 29, 66, .5); }
.cat-cover { position: relative; display: block; }
.cat-cover img { width: 100%; transition: transform .45s var(--ease), filter .45s var(--ease); }
.cat-card:hover .cat-cover img { transform: translateY(-10px); filter: drop-shadow(0 18px 16px rgba(12, 29, 66, .25)); }
.cat-card:hover .glare { animation: glare .9s var(--ease); }
.cat-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cat-kicker b { font-family: var(--mono); color: var(--cobalt); letter-spacing: 0; }
.cat-body h3 { font-size: 20px; line-height: 1.25; }
.cat-body h3 a { text-decoration: none; }
.cat-body h3 a:hover { color: var(--cobalt); }
.cat-body > p { color: var(--gray); font-size: 15px; }
.cat-mods { display: flex; flex-direction: column; gap: 10px; align-self: stretch; justify-content: center; padding-left: 28px; border-left: 1px solid var(--line); }
.cat-mods h4 { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.cat-mods ol { display: flex; flex-direction: column; gap: 6px; }
.cat-mods li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.45; }
.cat-mods li b { font-family: var(--mono); color: var(--acc); }
.cat-mods p { font-size: 13.5px; color: var(--gray); padding-top: 8px; border-top: 1px dashed var(--line); }
.cat-mods p b { color: var(--navy); }
.nw { white-space: nowrap; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-row li { padding: 4px 10px; border-radius: 6px; background: var(--bg); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Kurs sahifasi ---------- */

.course-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 9%, var(--bg)), var(--bg));
    padding-block: 28px clamp(48px, 6vw, 80px);
}
.course-hero .crumbs { margin-bottom: clamp(24px, 4vw, 40px); }
.course-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.course-cover { position: relative; max-width: 400px; width: 100%; margin-inline: auto; animation: book-in .9s .1s var(--ease) both; }
.course-cover img { width: 100%; }
.course-cover .glare { animation: glare 1.2s 1s var(--ease); }
.course-cover:hover .glare { animation: glare2 .9s var(--ease); }
.road-cover { position: relative; display: block; }
.road-cover:hover .glare { animation: glare .9s var(--ease); }
.course-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.course-kicker { color: var(--acc); }
.course-copy h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.03em; }
.course-sub { font-size: 18px; color: var(--gray); }
.course-copy .lead { color: var(--navy); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-block: 6px; }
.facts > div { padding: 16px 14px 16px 0; min-width: 0; }
.facts > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.facts dd { margin-top: 4px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }


.path-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.minipath { display: grid; grid-template-columns: repeat(var(--total), minmax(0, 1fr)); }
.mp { margin-inline: 2px; min-width: 0; }
.mp a { position: relative; display: block; height: 42px; text-decoration: none; }
.mp-bar { position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 3px; background: var(--line); transition: background-color .2s, height .25s var(--ease); }
.mp-done .mp-bar { background: var(--navy); }
.mp-now .mp-bar { background: var(--acc); height: 16px; }
.mp a:hover .mp-bar { background: var(--cobalt); }
.mp-num { position: absolute; left: 0; top: 20px; font-family: var(--mono); font-size: 11px; color: var(--gray); }
.mp-now .mp-num { color: var(--navy); font-weight: 700; top: 24px; }

.course-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 5vw, 64px); align-items: start; }
.course-main h2 { margin-bottom: 18px; }
.course-main .h-gap { margin-top: 48px; }
.modules { counter-reset: none; border-bottom: 1px solid var(--line); }
.module { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.mod-num { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); padding-top: 3px; }
.module p { font-size: 17.5px; line-height: 1.5; }
.project-card {
    position: relative; overflow: hidden; margin-top: 36px;
    display: flex; flex-direction: column; gap: 14px;
    padding: clamp(24px, 3.5vw, 36px); border-radius: 14px;
    background: var(--navy); color: var(--white);
}
.project-card > *:not(.stripe) { position: relative; z-index: 1; }
.project-text { font-size: clamp(19px, 2vw, 23px); font-weight: 700; line-height: 1.35; max-width: 32ch; }
.project-card .small { color: var(--on-navy); max-width: 48ch; }

.course-side { position: sticky; top: calc(var(--head-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
.side-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.side-card p { font-size: 15.5px; }
.side-plain { background: var(--cobalt-soft); border-color: var(--cobalt-soft); }
.mini-books { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mini-books a { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.mini-books img { width: 44px; flex: none; transition: transform .3s var(--ease); }
.mini-books a:hover img { transform: translateY(-3px); }
.mini-books a:hover span { color: var(--cobalt); }

.pager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pager-link {
    display: flex; align-items: center; gap: 18px; padding: 16px 22px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; font-weight: 700; font-size: 17px;
    transition: border-color .25s, transform .25s var(--ease);
}
.pager-link:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.pager-link img { width: 64px; flex: none; }
.pager-link small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.pager-next { justify-content: flex-end; text-align: right; }

/* ---------- Men haqimda ---------- */

.about-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.about-copy h1 { font-size: clamp(40px, 5.4vw, 68px); letter-spacing: -.04em; }
.about-copy .lead { color: var(--white); }
.about-copy .lead-soft { color: var(--on-navy); font-size: 16.5px; }
.about-photo img { width: 100%; max-width: 380px; margin-left: auto; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }

.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.two-col > div:first-child { display: flex; flex-direction: column; gap: 14px; }
.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
.tl-year { font-family: var(--mono); font-weight: 700; color: var(--cobalt); padding-top: 2px; font-size: 14px; }
.tl > div { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0 0 32px 28px; border-left: 2px solid var(--line); }
.tl:last-child > div { padding-bottom: 0; }
.tl > div::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; background: var(--cobalt); transform: skewX(calc(var(--slant) * -1)); }
.tl h3 { font-size: 19px; }
.tl-place { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.tl p:last-child { color: var(--gray); }

.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rule { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.rule-num { font-family: var(--mono); font-size: 40px; font-weight: 700; line-height: 1; color: var(--cobalt); }
.rule h3 { font-size: 20px; }
.rule p { color: var(--gray); font-size: 15.5px; }

.stack { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.stack-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); align-items: baseline; }
.stack-row h3 { font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }

.contacts { display: flex; flex-direction: column; gap: 10px; }
.contacts a, .contact-plain {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; border: 1px solid var(--on-navy-line); border-radius: 10px;
    text-decoration: none; color: var(--white);
    transition: background-color .2s, border-color .2s;
}
.contacts a:hover { background: var(--navy-2); border-color: var(--cobalt); }
.contacts span span, .contacts a span { font-family: var(--mono); font-size: 14px; color: var(--on-navy); overflow-wrap: anywhere; text-align: right; }

/* ---------- Xato sahifasi ---------- */

.error-page { padding-block: clamp(64px, 10vw, 120px); }
.error-code { font-family: var(--mono); font-size: clamp(64px, 10vw, 110px); font-weight: 700; line-height: 1; color: var(--cobalt-light); }

/* ---------- Footer ---------- */

.site-foot { position: relative; overflow: hidden; background: var(--navy); color: var(--white); padding-block: 64px 28px; }
.foot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-brand p { color: var(--on-navy); font-size: 14.5px; max-width: 40ch; }
.foot-h { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 14px; }
.foot-list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { color: var(--cobalt-light); }
.foot-list .muted { color: var(--on-navy); font-family: var(--mono); font-size: 13.5px; }
.foot-base {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--on-navy-line);
    font-size: 13.5px; color: var(--on-navy);
}


/* ---------- Narx va sotib olish ---------- */

.buy { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.buy .actions { margin-top: 8px; }
.course-hero .price-now b { font-size: 34px; }
.upsell {
    display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 14px 16px;
    border: 1.5px dashed var(--cobalt-mid); border-radius: 10px; background: var(--white);
    font-size: 14.5px; text-decoration: none; transition: border-color .2s, background-color .2s;
}
.upsell:hover { border-color: var(--cobalt); background: var(--cobalt-soft); }
.upsell-tag {
    flex: none; padding: 3px 8px; border-radius: 4px; background: var(--cobalt); color: var(--white);
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.cat-buy { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-top: 4px; }
.cat-buy .price-now b { font-size: 22px; }
.cat-buy s, .price-now s { color: var(--gray); font-size: 14px; margin-right: 6px; }

/* ---------- To‘lov sahifasi ---------- */

.page-head-sm { padding-block: clamp(24px, 4vw, 40px); }
.page-head-sm h1 { font-size: clamp(30px, 3.6vw, 44px); }
.checkout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.co-summary {
    position: sticky; top: calc(var(--head-h) + 24px);
    display: flex; flex-direction: column; gap: 14px;
    padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.co-books { position: relative; height: 150px; }
.co-books img { position: absolute; bottom: 0; width: 104px; left: calc(var(--i) * 64px); z-index: var(--i); }
.co-summary h2 { font-size: 22px; }
.co-list { border-top: 1px solid var(--line); }
.co-list li { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 700; }
.co-list small { color: var(--gray); font-weight: 400; white-space: nowrap; }
.co-total { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.co-safe { font-size: 13px; color: var(--gray); padding-top: 12px; border-top: 1px dashed var(--line); }

.co-form { display: flex; flex-direction: column; gap: 22px; }
.co-group { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.co-group legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-err { color: var(--err); font-size: 13px; font-weight: 700; }
.field-err:empty { display: none; }
.input-validation-error { border-color: var(--err) !important; }
.co-alert { padding: 12px 16px; border-radius: 8px; background: #FDECEA; color: var(--err); font-size: 14.5px; font-weight: 700; }
.co-alert:empty, .validation-summary-valid { display: none; }
.co-alert ul { margin: 0; padding-left: 18px; }

.plans, .methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.methods { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt > span {
    display: flex; flex-direction: column; gap: 4px; height: 100%;
    padding: 16px 16px 16px 46px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white);
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.opt > span::before {
    content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--line); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.opt b { font-size: 16px; }
.opt small { font-size: 13px; color: var(--gray); }
.opt:hover > span { border-color: var(--cobalt-mid); }
.opt input:checked + span { border-color: var(--cobalt); background: var(--cobalt-soft); }
.opt input:checked + span::before { border-color: var(--cobalt); box-shadow: inset 0 0 0 4px var(--white); background: var(--cobalt); }
.opt input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }

.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cobalt); flex: none; }
.agree a { color: var(--cobalt); font-weight: 700; }
.btn-pay { min-height: 56px; font-size: 17px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- To‘lov natijasi ---------- */

.result-sec { padding-block: clamp(48px, 8vw, 96px); }
.result {
    max-width: 680px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: clamp(28px, 5vw, 48px); text-align: center;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
}
.result h1 { font-size: clamp(26px, 3.4vw, 38px); }
.result .lead { color: var(--gray); }
.result-ico {
    width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%;
    background: var(--cobalt); color: var(--white); font-size: 34px; font-weight: 700;
}
.result-paid .result-ico { background: var(--ok); animation: pop .6s var(--ease); }
.result-cancelled .result-ico, .result-refunded .result-ico { background: var(--gray); }
.result-spin { background: transparent; border: 5px solid var(--cobalt-soft); border-top-color: var(--cobalt); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.result-facts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); text-align: left; margin-top: 8px; }
.result-facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.result-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.result-facts dd { margin-top: 2px; font-weight: 700; }
.result .actions { justify-content: center; margin-top: 8px; }

/* ---------- Matn sahifalari (oferta) ---------- */

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 22px; margin-top: 18px; }
.prose p, .prose li { color: var(--navy); }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }


/* ---------- Kirish / ro‘yxatdan o‘tish ---------- */

.nav-login { font-weight: 700; }
.auth { padding-block: clamp(32px, 6vw, 72px); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.auth-narrow { grid-template-columns: minmax(0, 520px); justify-content: center; }
.auth-card {
    display: flex; flex-direction: column; gap: 18px;
    padding: clamp(24px, 4vw, 44px); background: var(--white);
    border: 1px solid var(--line); border-radius: 16px;
}
.auth-card h1 { font-size: clamp(28px, 3vw, 36px); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.small-link { font-size: 13.5px; color: var(--cobalt); font-weight: 700; text-decoration: none; }
.small-link:hover { text-decoration: underline; }
.pw { position: relative; }
.pw input { padding-right: 104px; }
.pass-eye {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--cobalt); font-size: 13px; font-weight: 700; cursor: pointer; padding: 8px 10px;
}
.social { display: flex; flex-direction: column; gap: 10px; }
.social form { margin: 0; }
.btn-social { background: var(--white); border-color: var(--line); color: var(--navy); gap: 12px; }
.btn-social:hover { border-color: var(--navy); }
.tg-widget { display: flex; justify-content: center; min-height: 40px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--gray); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { font-size: 14.5px; color: var(--gray); }
.auth-alt a, .link-btn { color: var(--cobalt); font-weight: 700; }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; font-size: 14.5px; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }
.link-btn:disabled { color: var(--gray); cursor: default; text-decoration: none; }
.code-input { font-family: var(--mono); font-size: 26px !important; letter-spacing: .5em; text-align: center; }
.resend { margin: 0; }
.note-ok { padding: 12px 16px; border-radius: 8px; background: #E8F5EE; color: var(--ok); font-size: 14.5px; font-weight: 700; }
.note-warn {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
    padding: 12px 16px; border-radius: 8px; background: #FFF6E5; color: #7A4B00; font-size: 14.5px;
}

.auth-aside {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
    padding: clamp(24px, 4vw, 44px); border-radius: 16px; background: var(--navy); color: var(--white); min-height: 420px;
}
.auth-aside > *:not(.stripe) { position: relative; z-index: 1; }
.stripe-auth i:nth-child(1) { left: 55%; width: 80px; }
.stripe-auth i:nth-child(2) { left: calc(55% + 112px); }
.auth-books { position: relative; height: 330px; margin: auto 0; }
.auth-books img { position: absolute; bottom: 0; width: 46%; left: calc(var(--i) * 27%); z-index: var(--i); animation: book-in .8s calc(var(--i) * .12s) var(--ease) both; }
.auth-books img:nth-child(2) { width: 52%; bottom: 12px; z-index: 3; }
.auth-aside-title { font-size: 22px; font-weight: 700; line-height: 1.25; }

/* ---------- Trenajyor havolasi (dars sahifasida) ---------- */
.trainer-cta {
    display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: var(--radius);
    background: var(--white); border: 1.5px solid var(--cobalt); text-decoration: none; color: var(--navy);
    transition: box-shadow .2s, transform .2s var(--ease);
}
.trainer-cta:hover { box-shadow: 0 10px 30px -14px rgba(21, 88, 237, .55); transform: translateY(-1px); }
.trainer-ico { flex: 0 0 auto; display: flex; }
.trainer-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trainer-txt b { font-size: 17px; }
.trainer-txt small { color: var(--gray); font-size: 14px; line-height: 1.45; }
.trainer-cta .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .trainer-cta { flex-wrap: wrap; } .trainer-cta .btn { width: 100%; } }

/* ---------- Kabinet ---------- */

.kab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.kab-head > div { display: flex; flex-direction: column; gap: 10px; }
.kab-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.kab-tabs a {
    padding: 9px 16px; border-radius: 8px; color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: 14.5px;
    border: 1px solid var(--on-navy-line);
}
.kab-tabs a:hover { color: var(--white); border-color: var(--white); }
.kab-tabs a[aria-current="page"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.kab { display: flex; flex-direction: column; gap: 20px; }
.kab-h { font-size: 22px; margin-top: 12px; }
.empty { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--white); border: 1px dashed var(--cobalt-mid); border-radius: var(--radius); }
.my-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.my-course {
    display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center;
    padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.my-cover img { width: 100%; transition: transform .4s var(--ease); }
.my-course:hover .my-cover img { transform: translateY(-6px); }
.my-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.my-body h3 { font-size: 18px; line-height: 1.3; }
.my-body h3 a { text-decoration: none; }
.bar { width: 100%; height: 8px; border-radius: 4px; background: var(--cobalt-soft); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--acc, var(--cobalt)); border-radius: 4px; transition: width .6s var(--ease); }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { color: var(--cobalt); font-weight: 700; text-decoration: none; }
.d-block { display: block; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--gray); white-space: nowrap; vertical-align: middle; }
.pill-paid { background: #E8F5EE; color: var(--ok); }
.pill-pending { background: #FFF6E5; color: #7A4B00; }
.pill-cancelled, .pill-refunded { background: #FDECEA; color: var(--err); }

.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.set-full { grid-column: 1 / -1; }
.set-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.set-card h2 { font-size: 19px; }
.set-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.set-list > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.set-list dt { color: var(--gray); }
.set-list dd { overflow-wrap: anywhere; }
.inline-form { flex-direction: row; align-items: flex-end; gap: 10px; }
.inline-form .field { flex: 1; min-width: 0; }
.inline-form > .btn { min-height: 50px; }
.methods-list, .devices { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.methods-list li, .devices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.methods-list li > span, .devices li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.methods-list small, .devices small { color: var(--gray); font-size: 13px; }
.methods-list form, .devices form, .logout-form { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters input, .filters select { min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); font-size: 15px; min-width: 0; }
.filters input { flex: 1 1 240px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats > div { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.stats dt { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.stats dd { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats small { color: var(--gray); font-size: 13px; }

/* ---------- Dars sahifasi ---------- */

.page-learn .site-foot { display: none; }
.learn { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - var(--head-h)); width: 100%; max-width: 1760px; margin-inline: auto; }
.learn-side {
    position: sticky; top: var(--head-h); align-self: start; max-height: calc(100vh - var(--head-h)); overflow-y: auto;
    display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--white); border-right: 1px solid var(--line);
}
.learn-back { font-size: 14px; font-weight: 700; color: var(--cobalt); text-decoration: none; }
.learn-course { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.learn-course h2 { font-size: 17px; line-height: 1.25; }
.lesson-nav { display: flex; flex-direction: column; gap: 4px; margin-inline: -8px; }
.lesson-nav summary { cursor: pointer; padding: 10px 8px; font-size: 13.5px; font-weight: 700; color: var(--gray); list-style: none; }
.lesson-nav summary::-webkit-details-marker { display: none; }
.lesson-nav ol { display: flex; flex-direction: column; gap: 2px; }
.lesson-nav a {
    display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start;
    padding: 9px 8px; border-radius: 8px; font-size: 14px; line-height: 1.4; text-decoration: none; color: var(--navy);
}
.lesson-nav a:hover { background: var(--bg); }
.lesson-nav li.on a { background: var(--cobalt-soft); font-weight: 700; }
.lesson-nav small { color: var(--gray); white-space: nowrap; }
.ln-ico { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); }
.lesson-nav li.done .ln-ico { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lesson-nav li.locked a { color: var(--gray); }
.lesson-nav li.locked .ln-ico { border-style: dashed; }

.learn-main { display: flex; flex-direction: column; gap: 22px; padding: clamp(16px, 3vw, 36px); max-width: 1120px; width: 100%; margin-inline: auto; }
.player { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; background: var(--navy); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--on-navy); text-align: center; padding: 20px; }
.player-lock p { font-size: 17px; color: var(--white); }
.lesson-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.lesson-head h1 { font-size: clamp(22px, 2.6vw, 30px); margin-top: 6px; }
.lesson-head form { margin: 0; }
.lesson-block { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); max-width: none; }
.lesson-block h2 { margin-top: 0; font-size: 18px; }
.lesson-task { border-left: 4px solid var(--acc, var(--cobalt)); }
.lesson-block pre { overflow-x: auto; padding: 14px; background: var(--navy); color: var(--white); border-radius: 8px; font-size: 14px; }
.lesson-pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.learn-empty { display: flex; flex-direction: column; gap: 12px; padding: 40px 0; }
.lesson-nav li.started .ln-ico { border: 0; background: conic-gradient(var(--cobalt) calc(var(--p) * 1%), var(--line) 0); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }

/* Dars paneli (o‘ng ustun): avtomatik progress, mundarija, shaxsiy qaydlar */
.learn:has(.learn-panel) { grid-template-columns: 320px minmax(0, 1fr) 320px; }
.learn-panel { position: sticky; top: var(--head-h); align-self: start; max-height: calc(100vh - var(--head-h)); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: clamp(16px, 3vw, 36px) 20px 24px 0; }
@media (min-width: 1761px) {
    .learn-side { border-left: 1px solid var(--line); }
    .learn-panel { padding-right: 0; }
}
.lp-nl { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; margin: 0 -4px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); text-decoration: none; transition: border-color .15s, background .15s; }
.lp-nl:hover { border-color: var(--cobalt); background: var(--cobalt-soft); }
.lp-nl-mod { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray); }
.lp-nl b { font-size: 14.5px; line-height: 1.35; }
.lp-nl b::after { content: " →"; color: var(--cobalt); }
.lp-nl-meta { font-size: 12.5px; color: var(--gray); }
.lp-nl-course { margin: 10px 0 0; }
.lp-nextcard .btn { margin-top: 10px; }
.lp-card { padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-card h3 { font-size: 15px; margin: 0 0 10px; }
.lp-head { display: flex; justify-content: space-between; align-items: baseline; }
.lp-head b { font-size: 22px; color: var(--cobalt); }
.lp-prog .bar { margin: 2px 0 12px; }
.lp-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-items a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 6px; border-radius: 8px; color: var(--navy); text-decoration: none; font-size: 14px; }
.lp-items a:hover { background: var(--bg); }
.lp-items em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--gray); white-space: nowrap; }
.lp-items i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.lp-items li.part i { border-color: var(--cobalt); border-right-color: var(--line); border-bottom-color: var(--line); }
.lp-items li.ok i { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.lp-items li.ok em { color: var(--ok); }
.lp-items li.opt span::after { content: " · qo‘shimcha"; color: var(--gray); font-size: 12px; font-weight: 400; }
.lp-done { margin: 12px 0 0; padding: 9px 12px; border-radius: 8px; background: #E4F4EA; color: var(--ok); font-weight: 700; text-align: center; }
.lp-done.pop { animation: lp-pop 1.2s ease; }
@keyframes lp-pop { 0% { transform: scale(.85); opacity: 0; } 40% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
.lp-hint { margin: 10px 0 0; line-height: 1.45; }
.lp-next { margin-top: 10px; width: 100%; justify-content: center; }
.lp-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 1px; }
.lp-toc a { display: block; padding: 5px 8px; border-left: 2px solid var(--line); color: var(--gray); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.lp-toc a:hover { color: var(--navy); background: var(--bg); }
.lp-toc li.lv1 a { padding-left: 20px; font-size: 13px; }
.lp-toc a.on { color: var(--cobalt); border-left-color: var(--cobalt); font-weight: 700; background: var(--cobalt-soft); }
.lp-note textarea { width: 100%; min-height: 130px; resize: vertical; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; line-height: 1.5; background: var(--bg); color: var(--navy); }
.lp-note textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; background: var(--white); }
.lp-note small { display: block; margin-top: 6px; }
.lp-strip { display: none; align-items: center; gap: 12px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.lp-strip .bar { flex: 0 0 120px; margin: 0; }
.notes-end { height: 1px; }
@media (max-width: 1360px) {
    .learn:has(.learn-panel) { grid-template-columns: 320px minmax(0, 1fr); }
    .learn-panel { grid-column: 2; position: static; max-height: none; overflow: visible; padding: 0 clamp(16px, 3vw, 36px) 32px; max-width: 1120px; width: 100%; margin-inline: auto; }
    .lp-strip { display: flex; }
}

/* ---------- Ko‘rinishga kirish animatsiyasi (faqat qo‘llab-quvvatlovchi brauzerlarda) ---------- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .rv {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
        .flow li {
            animation: slot-in linear both;
            animation-timeline: view();
            animation-range: entry calc(var(--d, 0) * 6%) entry calc(30% + var(--d, 0) * 6%);
        }
    }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes slot-in { from { opacity: 0; transform: scaleY(.4); transform-origin: bottom; } }

/* ---------- Moslashuvchanlik ---------- */

@media (max-width: 1100px) {
    .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cat-card { grid-template-columns: 150px minmax(0, 1fr); }
    .cat-mods { display: none; }
    .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
    .menu-btn { display: inline-flex; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px var(--gutter) 20px;
        background: var(--white); border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(12, 29, 66, .4);
        display: none;
    }
    [data-open] .nav { display: flex; animation: panel-in .3s var(--ease); }
    .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .nav a:not(.btn)::after { display: none; }
    .nav .btn { margin-top: 16px; min-height: 48px; }

    .hero-grid, .author-grid, .cta-grid, .course-grid, .about-grid,
    .method, .faq-grid, .two-col, .course-body { grid-template-columns: minmax(0, 1fr); }
    .carousel { max-width: 440px; }
    .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .hero-facts > div:nth-child(n+3) { border-top: 1px solid var(--on-navy-line); }
    .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .packs { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
    .rules { grid-template-columns: minmax(0, 1fr); }
    .author-photo { max-width: 260px; }
    .about-photo img { max-width: 260px; margin-left: 0; }
    .course-cover { max-width: 320px; }
    .course-side, .method .week-card, .co-summary { position: static; }
    .checkout { grid-template-columns: minmax(0, 1fr); }
    .auth-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { display: none; }
    .my-courses, .set-grid { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .learn, .learn:has(.learn-panel) { grid-template-columns: minmax(0, 1fr); }
    .learn-panel { grid-column: 1; }
    .learn-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
    .stripe-hero i:nth-child(1) { left: 70%; }
    .stripe-hero i:nth-child(2) { left: calc(70% + 150px); }
}

@media (max-width: 760px) {
    .road-bands { display: none; }
    .road-track { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .seg {
        grid-column: auto !important;
        height: auto; margin: 0; padding: 12px 14px 12px 20px;
        display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px;
    }
    .seg-bar { top: 0; bottom: 0; right: auto; width: 6px; height: auto; transform-origin: top; }
    .seg[aria-selected="true"] .seg-bar { height: auto; width: 8px; }
    .road.pre .seg-bar { transform: scaleY(0); }
    .road.play .seg-bar { transform: scaleY(1); }
    .seg-name { -webkit-line-clamp: 1; }
    .road-panel { grid-template-columns: minmax(0, 1fr); }
    .road-cover { width: 150px; }
    .kv { grid-template-columns: minmax(0, 1fr); }
    .cat-card { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .author-facts { grid-template-columns: minmax(0, 1fr); }
    .author-facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--on-navy-line); }
    .module { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .mp-num { display: none; }
    .mp-now .mp-num { display: block; }
    .pager-grid { grid-template-columns: minmax(0, 1fr); }
    .stack-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .tl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .brand-text small { display: none; }
    .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
    .plank { margin-inline: -10px; }
    .hero .actions .btn, .about-copy .actions .btn { width: 100%; }
    .g { font-size: 11px; padding-inline: 6px; }
    .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow li { min-height: 76px; }
    .stripe i:nth-child(1) { width: 64px; }
    .stripe-hero { opacity: .35; }
    .stripe-hero i:nth-child(1) { left: 78%; }
    .stripe-hero i:nth-child(2) { left: calc(78% + 90px); }
    .pack { padding: 24px 20px; }
    .pack-books img { width: 84px; left: calc(var(--i) * 52px); }
    .pack:hover .pack-books img { left: calc(var(--i) * 52px); }
    .field-row, .plans { grid-template-columns: minmax(0, 1fr); }
    .my-course { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .inline-form { flex-direction: column; align-items: stretch; }
    .set-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .result-facts { grid-template-columns: minmax(0, 1fr); }
    .course-cover { max-width: 250px; }
}

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

/* ---------- Dars konspekti: boy bloklar (dasturlash kurslari) ---------- */

.prose h3 { font-size: 18px; margin-top: 14px; color: var(--navy); }
.prose ol { list-style: decimal; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--cobalt-soft); color: var(--navy); padding: 1px 5px; border-radius: 4px; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose figure { margin: 4px 0; }
.prose figure svg { width: 100%; height: auto; display: block; }
.prose figcaption { font-size: 13px; color: var(--gray); text-align: center; margin-top: 6px; }
.prose table.ls-tbl { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.ls-tbl th, .ls-tbl td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.ls-tbl th { background: var(--bg); }

.ls-goal { border: 1px solid var(--cobalt-mid); background: var(--cobalt-soft); border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.ls-goal > b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt-2); }
.ls-goal ul { margin: 0; }
.ls-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--gray); }

.ls-code, .ls-out { position: relative; margin: 0; padding: 34px 16px 14px !important; border-radius: 10px !important; font: 14px/1.55 var(--mono) !important; white-space: pre; overflow-x: auto; }
.ls-code { background: #0C0C0C !important; color: #F2F2F2 !important; }
.ls-out { background: #F5F7FB !important; color: #22324F !important; border: 1px dashed var(--cobalt-mid); }
.ls-code::before, .ls-out::before { content: attr(data-lang); position: absolute; left: 14px; top: 8px; font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; }
.ls-code::before { color: #8DB0FF; }
.ls-out::before { color: var(--ok); }
.ls-code .cm { color: #6A9955; }
.ls-code .pr { color: #8A8A8A; user-select: none; }
.ls-out .c-g { color: #16803C; } .ls-out .c-r { color: #C0352B; } .ls-out .c-y { color: #9A6A00; }
.ls-copy { position: absolute; right: 8px; top: 6px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #C2CDE4; font: 600 12px var(--font); padding: 3px 9px; border-radius: 6px; cursor: pointer; }
.ls-copy:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ls-copy.ok { color: #7EE2A8; border-color: #7EE2A8; }

.ls-steps { counter-reset: st; list-style: none !important; padding-left: 0 !important; gap: 12px !important; }
.ls-steps > li { counter-increment: st; position: relative; padding-left: 42px; }
.ls-steps > li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ls-steps > li > b:first-child { display: block; margin-bottom: 2px; }

.ls-note, .ls-warn, .ls-key { border-radius: 10px; padding: 12px 16px 12px 46px; position: relative; }
.ls-note { background: #EEF7F1; border: 1px solid #B9DEC8; }
.ls-warn { background: #FDF3F2; border: 1px solid #F1C3BE; }
.ls-key { background: #FFF8E6; border: 1px solid #F2D58A; }
.ls-note::before, .ls-warn::before, .ls-key::before { position: absolute; left: 14px; top: 10px; font-size: 19px; }
.ls-note::before { content: "💡"; } .ls-warn::before { content: "⚠️"; } .ls-key::before { content: "🔑"; }

.ls-terms { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.ls-terms dt { font-family: var(--mono); font-weight: 700; color: var(--cobalt-2); }
.ls-terms dd { margin: 0; }

.ls-errs { display: flex; flex-direction: column; gap: 10px; }
.ls-err { border: 1px solid var(--line); border-left: 4px solid var(--err); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.ls-err > code { background: #FDF3F2 !important; color: var(--err) !important; font-weight: 700; align-self: flex-start; white-space: pre-wrap; }

.ls-sum { border-top: 2px solid var(--navy); padding-top: 12px; }
.ls-check { list-style: none !important; padding-left: 0 !important; }
.ls-check li { position: relative; padding-left: 28px; }
.ls-check li::before { content: "☐"; position: absolute; left: 2px; top: -1px; font-size: 18px; color: var(--cobalt); }

/* Mini-test */
.quiz { display: flex; flex-direction: column; gap: 14px; }
.qz { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 14px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.qz legend { font-weight: 700; padding: 0 6px; margin-left: -6px; display: flex; gap: 8px; align-items: baseline; }
.qz-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; background: var(--cobalt-soft); color: var(--cobalt-2); font-size: 13px; }
.qz-opt { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.qz-opt:hover { background: var(--bg); }
.qz-opt input { margin-top: 4px; accent-color: var(--cobalt); }
.qz-opt.right { background: #EEF7F1; outline: 1px solid #9FD3B3; }
.qz-opt.wrong { background: #FDF3F2; outline: 1px solid #F1C3BE; }
.qz.done .qz-opt { cursor: default; }
.qz-exp { font-size: 14px; color: var(--gray); border-left: 3px solid var(--cobalt-mid); padding-left: 10px; margin: 2px 0 0; }
.qz-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qz-score { font-weight: 700; }
.qz-score.ok { color: var(--ok); } .qz-score.mid { color: #9A6A00; }

/* Video ssenariysi (admin) */
.lesson-script { border-left: 4px solid #9A6A00; }
.lesson-script summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.lesson-script summary small { font-weight: 400; color: var(--gray); font-size: 13px; }
.lesson-script .prose { margin-top: 14px; max-width: none; }
.sc { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.sc h4 { font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.sc h4 small { color: var(--gray); font-weight: 400; font-family: var(--mono); }
.sc-scr { font-size: 14px; color: #6B5300; background: #FFF8E6; border-radius: 6px; padding: 6px 10px; }
.sc-say { font-size: 15.5px; line-height: 1.6; }
@media (max-width: 640px) { .ls-terms { grid-template-columns: 1fr; } .ls-terms dd { margin-bottom: 6px; } }
.prose kbd { font-family: var(--mono); font-size: .85em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; background: var(--white); color: var(--navy); white-space: nowrap; }
