/* =====================================================================
   Bosh sahifa (site/home) — "rasmiy-zamonaviy" landing
   layouts/portal/landing.php. Faqat .hm prefiksi: boshqa sahifalarga ta'sir yo'q.
   Yozuv qalinligi ≤600, manfiy harf oralig'i yo'q.
   ===================================================================== */

.hm {
    --navy: #0b2240;
    --navy-2: #12305a;
    --brand: #4340a8;
    --brand-d: #383588;
    --brand-l: #edecfa;
    --sky: #a5b4fc;
    --teal: #19b4a5;
    --ink: #10203a;
    --muted: #5a6880;
    --line: #e1e7f0;
    --bg: #ffffff;
    --bg-alt: #f3f6fb;
    --ok: #13895a;
    --ok-l: #e3f5ec;
    --warn: #a75d00;
    --warn-l: #fff1de;
    --r: 14px;
    --r-lg: 20px;
    --sh: 0 1px 2px rgba(11, 34, 64, .05), 0 6px 18px rgba(11, 34, 64, .07);
    --sh-lg: 0 4px 10px rgba(11, 34, 64, .08), 0 24px 56px rgba(11, 34, 64, .18);
    --head: Manrope, Inter, system-ui, sans-serif;

    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm img { max-width: 100%; }
.hm a { color: inherit; text-decoration: none; }
.hm h1, .hm h2, .hm h3, .hm h4 { margin: 0; font-family: var(--head); font-weight: 600; line-height: 1.2; color: var(--ink); }
.hm p { margin: 0; }
.hm [hidden] { display: none !important; }
.hm a:focus-visible, .hm button:focus-visible, .hm input:focus-visible, .hm summary:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
}

.hm-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm-skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--navy); color: #fff !important; border-radius: 8px; }
.hm-skip:focus { top: 12px; }

/* ---------- Paydo bo'lish animatsiyasi ---------- */
.js .hm .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .hm .rv.is-in { opacity: 1; transform: none; }

/* ---------- Tugmalar ---------- */
.hm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 12px;
    font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap;
    cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.hm-btn i { font-size: 13px; }
.hm-btn.primary {
    color: #fff; background: linear-gradient(180deg, #2a70e0 0%, var(--brand) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px rgba(67, 64, 168, .32);
}
.hm-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 22px rgba(67, 64, 168, .4); }
.hm-btn.ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.hm-btn.ghost:hover { border-color: #c3cfdf; background: var(--bg-alt); }
.hm-btn.outline { color: var(--brand); border-color: #c4c2ec; background: #fff; }
.hm-btn.outline:hover { background: var(--brand-l); }
.hm-btn.light { background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.hm-btn.light:hover { transform: translateY(-1px); }
.hm-btn.ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
.hm-btn.ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

.hm-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand) !important; font-weight: 600; font-size: 15px; white-space: nowrap; }
.hm-link i { font-size: 12px; transition: transform .2s; }
.hm-link:hover i { transform: translateX(4px); }

.hm-tag {
    display: inline-flex; align-items: center; padding: 3px 10px;
    font-size: 12.5px; font-weight: 500; line-height: 1.4;
    color: var(--brand-d); background: var(--brand-l); border-radius: 999px;
}
.hm-tag.muted { color: var(--muted); background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--line); }

.hm-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--brand); }
.hm-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hm-kicker.light { color: var(--sky); }

.hm-line { display: block; height: 7px; border-radius: 4px; background: #e3e9f2; }
.hm-line.w45 { width: 45%; } .hm-line.w50 { width: 50%; } .hm-line.w55 { width: 55%; } .hm-line.w60 { width: 60%; }
.hm-line.w70 { width: 70%; } .hm-line.w80 { width: 80%; } .hm-line.w90 { width: 90%; }

/* ---------- Header: hero ustida to'q, aylantirilganda oq ---------- */
.hm-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy); color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.hm-header.is-scrolled, .hm-header.menu-open {
    background: rgba(255, 255, 255, .97); color: var(--ink);
    border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(11, 34, 64, .07);
}
.hm-header-in { display: flex; align-items: center; gap: 24px; height: 74px; }

.hm-brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hm-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fff; }
.hm-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.hm-brand b { font-family: var(--head); font-size: 15.5px; font-weight: 600; }
.hm-brand small { font-size: 12.5px; opacity: .68; }

.hm-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hm-nav > a { padding: 8px 12px; font-size: 15px; font-weight: 500; color: inherit; opacity: .82; border-radius: 8px; transition: opacity .2s, background .2s; }
.hm-nav > a:hover { opacity: 1; background: rgba(127, 150, 190, .14); }
.hm-nav-auth { display: flex; gap: 8px; margin-left: 14px; }
.hm-nav-auth .hm-btn { height: 40px; padding: 0 16px; font-size: 14.5px; }
.hm-header:not(.is-scrolled):not(.menu-open) .hm-btn.ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .28); }
.hm-header:not(.is-scrolled):not(.menu-open) .hm-btn.ghost:hover { background: rgba(255, 255, 255, .1); }

.hm-burger {
    display: none; margin-left: auto; width: 44px; height: 44px;
    border: 1px solid currentColor; border-radius: 10px; background: transparent;
    font-size: 18px; color: inherit; cursor: pointer; opacity: .85;
}

/* ---------- Hero ---------- */
.hm-hero { position: relative; padding: 64px 0 0; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hm-hero-bg {
    position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(640px 420px at 82% 18%, rgba(95, 179, 255, .28), transparent 70%),
        radial-gradient(520px 380px at 8% 92%, rgba(25, 180, 165, .18), transparent 70%),
        linear-gradient(180deg, var(--navy) 0%, #0f2b52 100%);
}
/* Raqamlar paneli ostida oq fonga o'tish */
.hm-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: -1; background: var(--bg); }

.hm-hero > .hm-wrap:last-child { padding-bottom: 28px; }
.hm-hero + .hm-sec { padding-top: 68px; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; padding-bottom: 64px; }

.hm-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    padding: 7px 14px 7px 12px; font-size: 14px; font-weight: 500; color: #d7e6fb;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
}
.hm-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; }
.hm-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3ddc97; opacity: .6; animation: hmPulse 2s ease-out infinite; }
@keyframes hmPulse { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }

.hm-hero h1 { font-size: 58px; line-height: 1.08; color: #fff; max-width: 640px; }
.hm-hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #7cc4ff 0%, #4fe0c9 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-lead { margin-top: 20px !important; font-size: 18.5px; color: #b9c9e0; max-width: 580px; }

.hm-search {
    position: relative; display: flex; gap: 8px; margin-top: 34px; max-width: 610px;
    padding: 7px; background: #fff; border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 0 0 6px rgba(255, 255, 255, .06);
}
.hm-search:focus-within { box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 0 0 6px rgba(95, 179, 255, .35); }
.hm-search > i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: #8a96a8; }
.hm-search input {
    flex: 1; min-width: 0; height: 48px; padding: 0 12px 0 42px;
    border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink);
}
.hm-search input:focus-visible { outline: 0; }
.hm-search .hm-btn { height: 48px; }

.hm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.hm-chips span { color: #8ea4c4; margin-right: 2px; }
.hm-chips a { padding: 5px 12px; color: #dbe7f8; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; transition: background .2s, border-color .2s; }
.hm-chips a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }

.hm-hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: #c4d3e8; }
.hm-hero-trust i { color: var(--sky); margin-right: 6px; }

/* Sahna: sertifikat + sikl kartasi + tekshiruv belgisi */
.hm-stage { position: relative; height: 530px; }
.hm-cert {
    position: absolute; top: 0; right: 8px; width: 300px; padding: 10px;
    background: #fdfbf6; border-radius: 10px; color: var(--ink);
    box-shadow: var(--sh-lg); rotate: 4deg;
    animation: hmFloat 7s ease-in-out infinite;
}
.hm-cert-in { position: relative; padding: 18px 20px 16px; border: 1.5px solid #c9a961; border-radius: 6px; box-shadow: inset 0 0 0 4px #fdfbf6, inset 0 0 0 5px #e6d4a8; }
.hm-cert-top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; color: var(--navy); }
.hm-cert-top img { width: 30px; height: 30px; }
.hm-cert-title { display: block; margin: 16px 0 14px; text-align: center; font-family: var(--head); font-size: 20px; font-weight: 600; color: #8a6a1f; letter-spacing: .18em; }
.hm-cert .hm-line { margin: 0 auto 8px; background: #ebe3d1; }
.hm-cert-foot { display: flex; align-items: flex-end; gap: 14px; margin-top: 18px; }
.hm-cert-qr { width: 62px; height: 62px; padding: 4px; background: #fff; color: var(--navy); border-radius: 4px; box-shadow: 0 0 0 1px #e6dcc6; }
.hm-cert-qr svg { display: block; width: 100%; height: 100%; }
.hm-cert-sign { flex: 1; }
.hm-cert-sign .hm-line { margin: 0 0 8px auto; }
.hm-cert-stamp {
    position: absolute; top: 14px; right: -8px; padding: 3px 10px;
    font-size: 11px; font-weight: 600; color: #fff; background: #c08a2a; border-radius: 4px;
    rotate: 8deg; box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
}

.hm-vcard {
    position: absolute; left: 0; bottom: 16px; width: 360px; padding: 20px;
    background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
    animation: hmFloat 8s ease-in-out -2s infinite;
}
.hm-vcard-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ok); }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-l); }
.hm-vcard h3 { margin-top: 10px; font-size: 17px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-vcard > p { margin-top: 4px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-vcard-meta { display: flex; gap: 16px; margin-top: 12px; font-size: 13.5px; color: #34425a; }
.hm-vcard-meta i { color: #8a96a8; margin-right: 4px; }

.hm-track { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px dashed var(--line); }
.hm-track li { position: relative; padding-top: 22px; font-size: 12px; color: var(--muted); text-align: center; }
.hm-track li::before {
    content: ""; position: absolute; top: 0; left: 50%; z-index: 1; transform: translateX(-50%);
    width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #c8d1de;
}
.hm-track li + li::after { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: #c8d1de; }
.hm-track li.done::before { background: var(--ok); border-color: var(--ok); }
.hm-track li.done + li::after { background: var(--ok); }
.hm-track li.now { color: var(--ink); font-weight: 600; }
.hm-track li.now::before { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(67, 64, 168, .18); }

.hm-verify {
    position: absolute; left: 24px; top: 140px; z-index: 2; display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px; color: var(--ink); background: #fff; border-radius: 14px; box-shadow: var(--sh-lg);
    animation: hmFloat 6s ease-in-out -4s infinite;
}
.hm-verify-ic { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--ok); }
.hm-verify > span:last-child { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.hm-verify b { font-size: 14px; font-weight: 600; color: var(--ink); }

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

/* Raqamlar — hero pastidagi suzuvchi panel */
.hm-stats {
    position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
    border: 1px solid var(--line); overflow: hidden;
}
.hm-stats > div { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 26px 24px; }
.hm-stats > div:not(:nth-child(4n+1)) { border-left: 1px solid var(--line); }
.hm-stats > div:nth-child(n+5) { border-top: 1px solid var(--line); }
.hm-stats .is-live b { color: var(--ok); }
.hm-stats .is-live::after { content: ""; position: absolute; top: 28px; right: 24px; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px var(--ok-l); }
.hm-stats i { font-size: 18px; color: var(--brand); margin-bottom: 10px; }
.hm-stats b { font-family: var(--head); font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.hm-stats span { font-size: 14px; color: var(--muted); }

/* ---------- Bo'limlar ---------- */
.hm-sec { padding: 96px 0; }
.hm [id] { scroll-margin-top: 84px; }
.hm-sec { position: relative; }
.hm-anchor { position: absolute; top: 0; }
html:has(.hm) { scroll-behavior: smooth; }
.hm-sec.alt { background: var(--bg-alt); }
.hm-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.hm-sec-head h2 { font-size: 38px; color: var(--navy); }
.hm-sec-head p { margin-top: 10px; font-size: 17px; color: var(--muted); max-width: 640px; }
.hm-sec-head.center { justify-content: center; text-align: center; }
.hm-sec-head.center p { margin-left: auto; margin-right: auto; }
.hm-sec-head.center .hm-kicker::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.hm-center { margin-top: 36px; text-align: center; }
.hm-empty { padding: 28px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cfd7e3; border-radius: var(--r); }
.hm-note { margin-top: 16px !important; font-size: 13px; color: #8391a6; }
.hm-note i { margin-right: 4px; }

/* ---------- Yo'nalishlar ---------- */
.hm-fac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm-fac {
    --c: var(--brand);
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
    transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s, transform .7s;
}
.hm-fac::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, transparent) 0%, transparent 55%); opacity: 0; transition: opacity .25s; }
.hm-fac:hover { border-color: color-mix(in srgb, var(--c) 40%, #fff); box-shadow: var(--sh); translate: 0 -3px; }
.hm-fac:hover::before { opacity: 1; }
.hm-fac > * { position: relative; }
.hm-fac-ic {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 10px;
    border-radius: 14px; font-size: 21px; color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, #fff);
}
.hm-fac-name { font-family: var(--head); font-size: 16.5px; font-weight: 600; line-height: 1.35; padding-right: 18px; }
.hm-fac-count { font-size: 14px; color: var(--muted); }
.hm-fac-count b { font-weight: 600; color: var(--c); }
.hm-fac .hm-fac-go { position: absolute; right: 20px; top: 26px; font-size: 13px; color: #b3bfd0; transition: color .2s, transform .2s; }
.hm-fac:hover .hm-fac-go { color: var(--c); transform: translateX(3px); }

/* ---------- Sikllar ---------- */
.hm-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh); }
.hm-tabs button {
    height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent;
    font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.hm-tabs button:hover { color: var(--ink); }
.hm-tabs button.is-active { background: var(--navy); color: #fff; }

.hm-cycle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hm-cycle {
    --c: var(--brand);
    position: relative; display: flex; flex-direction: column; padding: 24px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s, transform .7s;
}
.hm-cycle::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 35%, #fff)); }
.hm-cycle:hover { border-color: #c7d4e8; box-shadow: var(--sh-lg); translate: 0 -4px; }
.hm-cycle-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hm-cycle-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; font-size: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.hm-cycle h3 { margin-top: 16px; font-size: 18px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-cycle h3 a { transition: color .2s; }
.hm-cycle h3 a:hover { color: var(--brand); }
.hm-cycle-dep { margin-top: 6px !important; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-cycle-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hm-cycle-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.hm-cycle-tags + .hm-cycle-foot { margin-top: 20px; }
.hm-cycle-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #34425a; }
.hm-cycle-meta i { color: #8a96a8; width: 16px; }
.hm-go {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px;
    border-radius: 50%; color: var(--brand); background: var(--brand-l); transition: background .2s, color .2s, transform .2s;
}
.hm-cycle:hover .hm-go { color: #fff; background: var(--brand); transform: rotate(-30deg); }
.hm-when { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; color: var(--ok); background: var(--ok-l); white-space: nowrap; }
.hm-when.started { color: var(--warn); background: var(--warn-l); }

/* ---------- Qanday ishlaydi ---------- */
.hm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; position: relative; }
.hm-steps::before {
    content: ""; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--teal));
    transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.3, .7, .2, 1) .2s;
}
.hm-steps:has(.is-in)::before, .no-js .hm-steps::before { transform: scaleX(1); }
.hm-steps li { position: relative; text-align: center; padding: 0 10px; }
.hm-step-ic {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 74px; height: 74px; margin-bottom: 20px; border-radius: 22px;
    font-size: 26px; color: var(--brand); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh);
}
.hm-step-ic em {
    position: absolute; top: -8px; right: -8px; display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 600;
    color: #fff; background: var(--brand); box-shadow: 0 0 0 3px #fff;
}
.hm-steps li:last-child .hm-step-ic { color: #fff; background: linear-gradient(140deg, var(--brand), var(--teal)); border-color: transparent; }
.hm-steps li:last-child .hm-step-ic em { background: var(--teal); }
.hm-steps h3 { font-size: 18px; }
.hm-steps p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- Kabinet: bento ---------- */
.hm-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-tile {
    position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.hm-tile.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; }
.hm-tile.wide .hm-tile-text { flex: 1; }
.hm-tile.wide .hm-mock { flex: 1.1; }
.hm-tile h3 { font-size: 20px; }
.hm-tile-text p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.hm-tile-text .hm-link { margin-top: 16px; }
.hm-tile.dark { color: #fff; background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 100%); border-color: transparent; }
.hm-tile.dark h3 { color: #fff; }
.hm-tile.dark p { color: #a9bbd4; }

.hm-mock { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r); }
.hm-mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(11, 34, 64, .05); }
.hm-mock-row > span:last-child { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.hm-mock-row b { font-size: 13.5px; font-weight: 600; }
.hm-mock-ic { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; font-size: 12px; }
.hm-mock-ic.ok { color: #fff; background: var(--ok); }
.hm-mock-ic.now { color: var(--brand); background: var(--brand-l); }
.hm-bar { display: block; height: 7px; border-radius: 4px; background: #e3e9f2; overflow: hidden; }
.hm-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--teal)); }

.hm-mock.files { gap: 8px; margin-top: auto; }
.hm-mock.files > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 10px; }
.hm-mock.files i.fa-file-pdf { font-size: 18px; color: #d64545; }

.hm-qr-demo { display: flex; align-items: center; gap: 18px; margin-top: auto; }
.hm-qr-box { position: relative; width: 96px; height: 96px; padding: 8px; background: #fff; color: var(--navy); border-radius: 12px; overflow: hidden; }
.hm-qr-box svg { display: block; width: 100%; height: 100%; }
.hm-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--teal); box-shadow: 0 0 12px 2px rgba(25, 180, 165, .7); animation: hmScan 2.4s ease-in-out infinite; }
@keyframes hmScan { 0%, 100% { top: 6%; } 50% { top: 92%; } }
.hm-qr-ok { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #7cf0c4; background: rgba(61, 220, 151, .12); border-radius: 999px; }

.hm-mock.bars { flex-direction: row; align-items: flex-end; gap: 10px; height: 150px; padding: 18px 18px 0; }
.hm-mock.bars span { flex: 1; height: var(--h); border-radius: 8px 8px 0 0; background: linear-gradient(180deg, var(--sky), var(--brand)); transform-origin: bottom; transform: scaleY(.15); transition: transform 1s cubic-bezier(.3, .7, .2, 1); }
.hm-mock.bars span:nth-child(odd) { background: linear-gradient(180deg, #7fe3d6, var(--teal)); }
.is-in .hm-mock.bars span, .no-js .hm-mock.bars span { transform: none; }
.hm-mock.bars span:nth-child(2) { transition-delay: .08s; } .hm-mock.bars span:nth-child(3) { transition-delay: .16s; }
.hm-mock.bars span:nth-child(4) { transition-delay: .24s; } .hm-mock.bars span:nth-child(5) { transition-delay: .32s; }
.hm-mock.bars span:nth-child(6) { transition-delay: .4s; }

/* ---------- Tashkilotlar ---------- */
.hm-org { position: relative; padding: 100px 0; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hm-org-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(560px 400px at 90% 10%, rgba(95, 179, 255, .22), transparent 70%),
        radial-gradient(480px 360px at 0% 100%, rgba(25, 180, 165, .16), transparent 70%);
}
.hm-org-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hm-org-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.hm-org h2 { font-size: 38px; color: #fff; }
.hm-org-grid > div > p { margin: 16px 0 30px; font-size: 17px; color: #b3c4dc; max-width: 470px; }
.hm-org-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.hm-org-list li {
    display: flex; flex-direction: column; gap: 4px; padding: 24px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r);
    transition: background .25s, border-color .25s, opacity .7s, transform .7s;
}
.hm-org-list li:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
.hm-org-list i { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 12px; font-size: 19px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--teal)); }
.hm-org-list b { font-family: var(--head); font-size: 16.5px; font-weight: 600; }
.hm-org-list span { font-size: 14px; color: #a9bbd4; }

/* ---------- Muassasalar: top 8 ---------- */
.hm-unis { padding-bottom: 80px; }
.hm-uni-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm-uni {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s, transform .7s;
}
.hm-uni:hover { border-color: #c5d3e8; box-shadow: var(--sh); translate: 0 -3px; }
.hm-uni-rank {
    position: absolute; top: 18px; right: 18px; display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-alt);
}
.hm-uni:nth-child(-n+3) .hm-uni-rank { color: #8a6a1f; background: #fbf1dc; }
.hm-uni img { width: 52px; height: 52px; object-fit: contain; }
.hm-uni > i { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; font-size: 22px; color: var(--brand); background: var(--brand-l); }
.hm-uni-body { min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 3px; }
.hm-uni b { font-family: var(--head); font-size: 15.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-uni small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-uni em { margin-top: 8px; font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--ok); }
.hm-uni em i { margin-right: 4px; }

/* ---------- Kutubxona ---------- */
.hm-lib { margin-top: 48px; padding: 28px; background: linear-gradient(135deg, #f1f6fe 0%, #eef9f7 100%); border: 1px solid #dfe8f5; border-radius: var(--r-lg); }
.hm-lib-head { display: flex; align-items: center; gap: 16px; }
.hm-lib-ic { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; font-size: 21px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--teal)); }
.hm-lib-head > div { flex: 1; display: flex; flex-direction: column; }
.hm-lib-head b { font-family: var(--head); font-size: 19px; font-weight: 600; }
.hm-lib-head span { font-size: 14.5px; color: var(--muted); }
.hm-lib-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.hm-lib-list li { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(11, 34, 64, .05); }
.hm-book { position: relative; width: 34px; height: 46px; flex-shrink: 0; border-radius: 3px 6px 6px 3px; background: linear-gradient(90deg, var(--brand-d) 0 5px, var(--brand) 5px); box-shadow: 2px 3px 6px rgba(11, 34, 64, .2); }
.hm-lib-list li:nth-child(2) .hm-book { background: linear-gradient(90deg, #11867a 0 5px, var(--teal) 5px); }
.hm-lib-list li:nth-child(3) .hm-book { background: linear-gradient(90deg, #9b2f2f 0 5px, #d64545 5px); }
.hm-lib-list li:nth-child(4) .hm-book { background: linear-gradient(90deg, #8a6a1f 0 5px, #c9a961 5px); }
.hm-book::after { content: ""; position: absolute; left: 11px; right: 6px; top: 10px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .6); box-shadow: 0 6px 0 rgba(255, 255, 255, .35); }
.hm-lib-list li > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-lib-list b { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-lib-list small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Savollar ---------- */
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.hm-faq-side { position: sticky; top: 110px; }
.hm-faq-side h2 { font-size: 38px; color: var(--navy); }
.hm-faq-side > p { margin-top: 10px; font-size: 17px; color: var(--muted); }
.hm-contact-card { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hm-contact-card a { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.hm-contact-card a:hover { color: var(--brand); }
.hm-contact-card i { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--brand); background: var(--brand-l); }
.hm-faq { display: grid; gap: 12px; }
.hm-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.hm-faq details[open] { border-color: #c5d3e8; box-shadow: var(--sh); }
.hm-faq summary {
    position: relative; padding: 20px 64px 20px 24px; list-style: none; cursor: pointer;
    font-family: var(--head); font-size: 17px; font-weight: 600; border-radius: var(--r);
}
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after {
    content: "\2b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px;
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    color: var(--brand); background: var(--brand-l); transition: background .2s, color .2s;
}
.hm-faq details[open] summary::after { content: "\f068"; color: #fff; background: var(--brand); }
.hm-faq details p { padding: 0 24px 22px; font-size: 15.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.hm-cta { padding: 0 0 96px; background: var(--bg-alt); }
.hm-cta-box {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 56px; color: #fff; border-radius: 26px; overflow: hidden; isolation: isolate;
    background: linear-gradient(120deg, #28256d 0%, var(--brand) 50%, #2a5298 100%);
    box-shadow: 0 24px 56px rgba(67, 64, 168, .3);
}
.hm-cta-box::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px); background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
    mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.hm-cta-num {
    position: absolute; right: 24px; bottom: -48px; z-index: -1;
    font-family: var(--head); font-size: 220px; font-weight: 600; line-height: 1; color: rgba(255, 255, 255, .08);
    pointer-events: none; user-select: none;
}
.hm-cta h2 { font-size: 32px; color: #fff; max-width: 560px; }
.hm-cta p { margin-top: 8px; font-size: 17px; color: #d8e6fb; }
.hm-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.hm-footer { background: #081a31; color: #a3b3ca; font-size: 14.5px; }
.hm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px !important; padding-bottom: 44px !important; }
.hm-footer .hm-brand b { color: #fff; }
.hm-footer .hm-brand small { color: #8ea2bf; opacity: 1; }
.hm-footer-about p { margin-top: 16px; max-width: 340px; }
.hm-footer h4 { margin-bottom: 14px; font-size: 15px; color: #fff; }
.hm-footer-grid > div:not(.hm-footer-about) { display: flex; flex-direction: column; gap: 10px; }
.hm-footer a { transition: color .2s; }
.hm-footer a:hover { color: #fff; }
.hm-footer-contact > span { display: flex; gap: 10px; }
.hm-footer-contact i { margin-top: 4px; width: 14px; color: #6f86a5; }
.hm-footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px !important; padding-bottom: 24px !important; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: #71849f; }

/* color-mix qo'llamaydigan eski brauzerlar uchun zaxira */
@supports not (background: color-mix(in srgb, red 10%, white)) {
    .hm-fac-ic, .hm-cycle-ic { background: var(--bg-alt); }
    .hm-fac::before { display: none; }
    .hm-cycle::before { background: var(--c); }
}

/* =====================================================================
   Moslashuvchanlik
   ===================================================================== */
@media (max-width: 1180px) {
    .hm-nav > a { padding: 8px 9px; font-size: 14.5px; }
    .hm-hero h1 { font-size: 48px; }
    .hm-stage { scale: .9; transform-origin: right center; }
}

@media (max-width: 1100px) {
    .hm-fac-grid, .hm-lib-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hm-lib-list li:nth-child(4) { display: none; }
    .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-tile.wide { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .hm-burger { display: inline-flex; align-items: center; justify-content: center; }
    .hm-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
        padding: 12px 16px 20px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(11, 34, 64, .1);
    }
    .hm-nav.is-open { display: flex; }
    .hm-nav > a { padding: 12px; font-size: 16px; opacity: 1; }
    .hm-nav-auth { margin: 10px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
    .hm-nav-auth .hm-btn { flex: 1; height: 46px; }

    .hm-hero { padding-top: 44px; }
    .hm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 48px; }
    .hm-stage { scale: 1; width: 100%; max-width: 560px; height: 500px; margin: 0 auto; }
    .hm-org-grid, .hm-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hm-faq-side { position: static; }
    .hm-cycle-grid, .hm-uni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-stats > div { border-left: 0 !important; border-top: 1px solid var(--line); }
    .hm-stats > div:nth-child(-n+2) { border-top: 0; }
    .hm-stats > div:nth-child(even) { border-left: 1px solid var(--line) !important; }
    .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .hm-steps::before { display: none; }
    .hm-footer-grid { grid-template-columns: 1fr 1fr; }
    .hm-cta-box { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
}

@media (max-width: 640px) {
    .hm { font-size: 15px; }
    .hm-wrap { padding: 0 16px; }
    .hm-header-in { height: 64px; gap: 12px; }
    .hm-brand b { font-size: 14.5px; }
    .hm-brand small { font-size: 12px; }

    .hm-hero { padding-top: 30px; }
    .hm-hero::after { height: 120px; }
    .hm-hero h1 { font-size: 34px; }
    .hm-lead { font-size: 16px; }
    .hm-search { flex-wrap: wrap; margin-top: 26px; }
    .hm-search > i { top: 31px; }
    .hm-search .hm-btn { width: 100%; }
    .hm-hero-trust { gap: 8px 16px; font-size: 13.5px; }

    .hm-stage { height: 480px; }
    .hm-cert { width: 230px; right: 0; }
    .hm-cert-in { padding: 14px 14px 12px; }
    .hm-cert-title { font-size: 16px; margin: 12px 0 10px; }
    .hm-cert-qr { width: 50px; height: 50px; }
    .hm-vcard { width: calc(100% - 24px); bottom: 44px; padding: 16px; }
    .hm-verify { left: auto; right: 0; top: auto; bottom: -8px; }

    .hm-stats > div { padding: 18px 16px; }
    .hm-stats .is-live::after { top: 20px; right: 16px; }
    .hm-stats i { margin-bottom: 6px; font-size: 16px; }
    .hm-stats b { font-size: 26px; }

    .hm-sec, .hm-org { padding: 60px 0; }
    .hm-sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
    .hm-sec-head.center { align-items: center; }
    .hm-sec-head h2, .hm-org h2, .hm-faq-side h2 { font-size: 27px; }
    .hm-sec-head p, .hm-faq-side > p, .hm-org-grid > div > p { font-size: 15.5px; }
    .hm-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }

    .hm-fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hm-fac { padding: 16px; }
    .hm-fac-ic { width: 40px; height: 40px; font-size: 17px; margin-bottom: 6px; border-radius: 12px; }
    .hm-fac-name { font-size: 14.5px; padding-right: 0; }
    .hm-fac-count { font-size: 13px; }
    .hm-fac .hm-fac-go { display: none; }

    .hm-cycle-grid, .hm-org-list, .hm-lib-list, .hm-bento { grid-template-columns: minmax(0, 1fr); }
    .hm-cycle { padding: 20px; }
    .hm-tile { padding: 22px; }
    .hm-tile.wide { flex-direction: column; align-items: stretch; }
    .hm-lib { padding: 20px; }
    .hm-lib-list li:nth-child(n+3) { display: none; }
    .hm-lib-head { flex-wrap: wrap; }
    .hm-lib-head .hm-link { width: 100%; padding-left: 66px; }
    .hm-uni-grid { gap: 10px; }
    .hm-uni { padding: 16px; gap: 10px; }
    .hm-uni img, .hm-uni > i { width: 42px; height: 42px; font-size: 18px; }
    .hm-uni b { font-size: 14px; }
    .hm-uni-rank { top: 12px; right: 12px; width: 24px; height: 24px; font-size: 12px; }

    .hm-steps { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
    .hm-steps li { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 18px; text-align: left; padding: 0; }
    .hm-step-ic { grid-row: span 2; width: 60px; height: 60px; margin: 0; font-size: 22px; border-radius: 18px; }
    .hm-steps p { margin-top: 4px; }

    .hm-faq summary { padding: 16px 56px 16px 18px; font-size: 15.5px; }
    .hm-faq summary::after { right: 14px; }
    .hm-faq details p { padding: 0 18px 18px; font-size: 15px; }

    .hm-cta { padding-bottom: 60px; }
    .hm-cta-box { padding: 34px 22px; border-radius: 20px; }
    .hm-cta h2 { font-size: 24px; }
    .hm-cta-num { font-size: 140px; bottom: -30px; }
    .hm-cta-btns, .hm-cta-btns .hm-btn { width: 100%; }

    .hm-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 44px !important; }
    .hm-footer-bottom { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .hm *, .hm *::before, .hm *::after { animation: none !important; transition: none !important; }
    .js .hm .rv { opacity: 1; transform: none; }
    .hm-steps::before { transform: none; }
    .hm-mock.bars span { transform: none; }
}

/* =====================================================================
   Ichki sahifalar (site/university) — landing komponentlari asosida
   ===================================================================== */
.hm-nav > a.is-active { opacity: 1; background: rgba(127, 150, 190, .16); }

.hm-subhero { padding: 40px 0 0; }
.hm-subhero::after { display: none; }
.hm-subhero .hm-wrap { padding-bottom: 56px; }
.hm-subhero h1 { font-size: 46px; max-width: 760px; }
.hm-subhero .hm-lead { max-width: 680px; }
.hm-crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 14px; color: #8ea4c4; }
.hm-crumbs a { color: #c4d3e8; }
.hm-crumbs a:hover { color: #fff; }
.hm-crumbs i { font-size: 10px; }
.hm-crumbs [aria-current] { color: #fff; }
.hm-substats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; max-width: 920px; }
.hm-substats > div {
    display: flex; flex-direction: column; gap: 2px; padding: 18px 20px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r);
}
.hm-substats b { font-family: var(--head); font-size: 28px; font-weight: 600; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.hm-substats span { font-size: 14px; color: #a9bbd4; }

.hm-unipage { padding-top: 48px; }
.hm-toolbar { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-field {
    position: relative; display: flex; align-items: center; min-width: 240px; height: 50px;
    background: #fff; border: 1px solid #d5dde8; border-radius: 14px; box-shadow: var(--sh);
    transition: border-color .2s, box-shadow .2s;
}
.hm-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(67, 64, 168, .12); }
.hm-field-search { flex: 1; }
.hm-field > i { position: absolute; left: 18px; color: #8a96a8; pointer-events: none; }
.hm-field input, .hm-field select {
    width: 100%; height: 100%; padding: 0 16px 0 44px; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 15.5px; color: var(--ink); border-radius: 14px; cursor: pointer;
}
.hm-field input { cursor: text; }
.hm-field input:focus-visible, .hm-field select:focus-visible { outline: 0; }
.hm-toolbar-2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 28px; }
.hm-found { font-size: 14.5px; color: var(--muted); }

.hm-ucard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-ucard {
    position: relative; display: flex; flex-direction: column; padding: 24px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s, transform .7s;
}
.hm-ucard:hover { border-color: #c7d4e8; box-shadow: var(--sh-lg); translate: 0 -3px; }
.hm-ucard-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.hm-ucard-head img { width: 56px; height: 56px; object-fit: contain; }
.hm-ucard-ic { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; font-size: 24px; color: var(--brand); background: var(--brand-l); }
.hm-ucard .hm-uni-rank { position: static; }
.hm-ucard:nth-child(-n+3) .hm-uni-rank { color: #8a6a1f; background: #fbf1dc; }
.hm-ucard h3 { font-size: 17.5px; line-height: 1.38; }
.hm-ucard .hm-cycle-tags { margin-top: 12px; }
.hm-ucard-info { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: #34425a; }
.hm-ucard-info li { display: flex; gap: 10px; min-width: 0; }
.hm-ucard-info i { width: 16px; margin-top: 3px; color: #8a96a8; flex-shrink: 0; }
.hm-ucard-info a { overflow-wrap: anywhere; }
.hm-ucard-info a:hover { color: var(--brand); }
.hm-ucard-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: auto; padding-top: 22px; }
.hm-ucard-stats > div { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--line); }
.hm-ucard-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hm-ucard-stats b { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.hm-ucard-stats span { font-size: 13px; color: var(--muted); }
.hm-ucard-stats > div:first-child b { color: var(--ok); }
.hm-unipage .hm-empty { margin-top: 8px; }
.hm-unipage + .hm-cta { padding-top: 0; }

@media (max-width: 960px) {
    .hm-ucard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-substats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-subhero h1 { font-size: 38px; }
}
@media (max-width: 640px) {
    .hm-subhero { padding-top: 24px; }
    .hm-subhero .hm-wrap { padding-bottom: 40px; }
    .hm-subhero h1 { font-size: 30px; }
    .hm-substats { gap: 10px; margin-top: 26px; }
    .hm-substats > div { padding: 14px 16px; }
    .hm-substats b { font-size: 22px; }
    .hm-substats span { font-size: 13px; }
    .hm-unipage { padding-top: 32px; }
    .hm-field { min-width: 0; width: 100%; }
    .hm-toolbar-2 { flex-direction: column; align-items: stretch; margin-bottom: 20px; }
    .hm-ucard-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hm-ucard { padding: 20px; }
}

/* =====================================================================
   Elektron kutubxona (library/library-user/index)
   ===================================================================== */
.hm-subhero .hm-search { margin-top: 28px; }
.hm-subhero .hm-search + .hm-substats { margin-top: 28px; }
.hm-libpage { padding-top: 44px; }

.hm-catchips { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-catchips a {
    --c: var(--brand);
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
    font-size: 14.5px; font-weight: 500; color: #34425a; background: #fff;
    border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, background .2s, color .2s;
}
.hm-catchips a > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hm-catchips a em { font-style: normal; font-size: 12.5px; color: var(--muted); padding: 1px 8px; background: var(--bg-alt); border-radius: 999px; }
.hm-catchips a:hover { border-color: #c3cfdf; }
.hm-catchips a.is-active { color: #fff; background: var(--navy); border-color: var(--navy); }
.hm-catchips a.is-active em { color: #fff; background: rgba(255, 255, 255, .16); }
.hm-catchips a.is-active > i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

.hm-more { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.hm-more summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); }
.hm-more summary::-webkit-details-marker { display: none; }
.hm-more summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; margin-left: auto; color: var(--muted); transition: transform .2s; }
.hm-more[open] summary::after { transform: rotate(180deg); }
.hm-more summary i { color: var(--brand); }
.hm-more-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.hm-more-form .hm-field { min-width: 0; height: 46px; box-shadow: none; }
.hm-more-form .hm-field input, .hm-more-form .hm-field select { font-size: 14.5px; }
.hm-more-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.hm-more-actions .hm-btn { height: 42px; }
.hm-libpage .hm-toolbar-2 { margin: 22px 0 20px; }
.hm-hint { font-size: 14px; color: var(--muted); }
.hm-hint i { color: var(--warn); margin-right: 4px; }

.hm-book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-bcard {
    --c: var(--brand);
    display: flex; flex-direction: column; gap: 16px; padding: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: border-color .25s, box-shadow .25s, translate .25s, opacity .7s, transform .7s;
}
.hm-bcard:hover { border-color: #c7d4e8; box-shadow: var(--sh-lg); translate: 0 -3px; }
.hm-bcard-top { display: flex; gap: 18px; }
.hm-cover {
    position: relative; flex-shrink: 0; width: 74px; height: 100px; overflow: hidden;
    border-radius: 4px 10px 10px 4px; background: var(--c);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
    box-shadow: 3px 5px 12px rgba(11, 34, 64, .22), inset -1px 0 0 rgba(0, 0, 0, .08);
}
.hm-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: rgba(0, 0, 0, .18); }
.hm-cover i { position: absolute; left: 18px; right: 10px; top: 16px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .6); box-shadow: 0 9px 0 rgba(255, 255, 255, .35); }
.hm-cover b { position: absolute; right: 10px; bottom: 6px; font-family: var(--head); font-size: 30px; font-weight: 600; line-height: 1; color: rgba(255, 255, 255, .85); }
.hm-bcard-head { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-bcard-cat { font-size: 12.5px; font-weight: 600; color: var(--c); }
@supports (color: color-mix(in srgb, red 50%, black)) { .hm-bcard-cat { color: color-mix(in srgb, var(--c) 80%, #000); } }
.hm-bcard h3 { font-size: 16.5px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-bcard-author { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-bcard .hm-cycle-tags { margin-top: 0; }
.hm-bcard-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.hm-bcard-foot > .hm-btn { flex: 1; height: 42px; font-size: 14.5px; }

.hm-qr-pop { position: relative; }
.hm-qr-pop summary {
    display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; list-style: none; cursor: pointer;
    border-radius: 12px; font-size: 18px; color: var(--navy); background: var(--bg-alt); border: 1px solid var(--line); transition: background .2s;
}
.hm-qr-pop summary::-webkit-details-marker { display: none; }
.hm-qr-pop summary:hover, .hm-qr-pop[open] summary { background: var(--brand-l); color: var(--brand); }
.hm-qr-pop > div {
    position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 8px;
    width: 180px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-lg);
}
.hm-qr-pop img { display: block; width: 140px; height: 140px; }
.hm-qr-pop span { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.35; }

.hm-pager { margin-top: 36px; display: flex; justify-content: center; }
.hm-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hm-pages li a, .hm-pages li span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px;
    font-size: 14.5px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s;
}
.hm-pages li a:hover { border-color: #c4c2ec; background: var(--brand-l); }
.hm-pages li.active a, .hm-pages li.active span { color: #fff; background: var(--navy); border-color: var(--navy); }
.hm-pages li.disabled span { color: #b3bfd0; background: transparent; }
.hm-libpage .hm-empty .hm-link { margin-left: 8px; }

@media (max-width: 960px) {
    .hm-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-more-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hm-libpage { padding-top: 28px; }
    .hm-catchips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .hm-catchips a { flex-shrink: 0; }
    .hm-more-form { grid-template-columns: minmax(0, 1fr); }
    .hm-more-actions .hm-btn { flex: 1; }
    .hm-libpage .hm-toolbar-2 { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hm-book-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .hm-bcard { padding: 18px; }
    .hm-cover { width: 62px; height: 84px; }
    .hm-cover b { font-size: 24px; }
    .hm-pages li a, .hm-pages li span { min-width: 38px; height: 38px; padding: 0 10px; }
}

/* =====================================================================
   Indigo hero — shaxsiy kabinet ranglari bilan bir xil
   (navbar #383588, sidebar #28256d, dashboard banner #1a2a6c → #2a5298).
   Bosh sahifa, Muassasalar, Kutubxona uchun umumiy.
   ===================================================================== */
.hm-header { background: #383588; border-bottom-color: rgba(255, 255, 255, .08); }
.hm-header.is-scrolled, .hm-header.menu-open { background: rgba(255, 255, 255, .97); }
.hm-header:not(.is-scrolled):not(.menu-open) .hm-nav > a:hover,
.hm-header:not(.is-scrolled):not(.menu-open) .hm-nav > a.is-active { background: rgba(255, 255, 255, .12); }

.hm-hero { background: #28256d; }
.hm-hero-bg {
    background:
        radial-gradient(680px 460px at 84% 14%, rgba(129, 140, 248, .30), transparent 70%),
        radial-gradient(560px 400px at 6% 96%, rgba(96, 165, 250, .16), transparent 70%),
        linear-gradient(135deg, #28256d 0%, #22409a 60%, #2a5298 100%);
}

.hm-hero h1 em { background: linear-gradient(90deg, #c7d2fe 0%, #a5b4fc 45%, #93c5fd 100%); -webkit-background-clip: text; background-clip: text; }
.hm-lead { color: #c9cfee; }
.hm-eyebrow { color: #e0e4fb; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.hm-search { box-shadow: 0 18px 40px rgba(12, 10, 50, .35), 0 0 0 6px rgba(255, 255, 255, .07); }
.hm-search:focus-within { box-shadow: 0 18px 40px rgba(12, 10, 50, .35), 0 0 0 6px rgba(165, 180, 252, .4); }
.hm-chips span { color: #a3abd8; }
.hm-chips a { color: #e6e9fb; border-color: rgba(255, 255, 255, .18); }
.hm-chips a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); }
.hm-hero-trust { color: #cdd3f0; }
.hm-hero-trust i { color: var(--sky); }
.hm-crumbs { color: #a3abd8; }
.hm-crumbs a { color: #cdd3f0; }
.hm-substats > div { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.hm-substats span { color: #b4bbe2; }

/* Asosiy tugmalar — kabinetdagi "Поиск" kabi indigo */
.hm-btn.primary {
    background: linear-gradient(180deg, #4d49b8 0%, #383588 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 6px 16px rgba(56, 53, 136, .35);
}
.hm-btn.primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 10px 22px rgba(56, 53, 136, .45); }

/* Faol holatlar (Barchasi, tablar, sahifalash) va to'q bloklar — indigo */
.hm-tabs button.is-active,
.hm-catchips a.is-active,
.hm-pages li.active a, .hm-pages li.active span { background: #383588; border-color: #383588; color: #fff; }

.hm-org { background: #28256d; }
.hm-org-bg {
    background:
        radial-gradient(560px 400px at 90% 10%, rgba(129, 140, 248, .28), transparent 70%),
        radial-gradient(480px 360px at 0% 100%, rgba(96, 165, 250, .16), transparent 70%),
        linear-gradient(135deg, #28256d 0%, #22409a 70%, #2a5298 100%);
}
.hm-org-grid > div > p { color: #c9cfee; }
.hm-org-list span { color: #b4bbe2; }
.hm-org-list i { background: linear-gradient(140deg, #6366f1, #3b82f6); }

.hm-tile.dark { background: linear-gradient(160deg, #383588 0%, #28256d 100%); }

/* Footer — kabinet yon paneli rangi */
.hm-footer { background: #28256d; color: #bcc2e6; }
.hm-footer .hm-brand small { color: #a3abd8; }
.hm-footer-contact i { color: #8f97d0; }
.hm-footer-bottom { border-top-color: rgba(255, 255, 255, .1); color: #9aa2d4; }

/* =====================================================================
   O'quv sikllari katalogi (estudy/index)
   ===================================================================== */
.hm-estpage { padding-top: 44px; }
.hm-estpage .hm-toolbar-2 { margin: 22px 0 20px; font-size: 15px; color: var(--muted); }
.hm-estpage .hm-toolbar-2 .hm-link { margin-left: 8px; font-size: 14px; }
.hm-estpage .hm-hint i { color: var(--brand); }
.hm-estpage .hm-field select:disabled { color: #9aa5b6; cursor: not-allowed; }

.hm-alert {
    display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding: 16px 18px;
    background: var(--warn-l); border: 1px solid #f3d3a4; border-radius: var(--r);
}
.hm-alert-ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: #d08a1e; }
.hm-alert > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: #6b4a12; }
.hm-alert b { font-weight: 600; color: #5a3c08; }
.hm-alert .hm-btn { height: 40px; flex-shrink: 0; }

.hm-elist { display: flex; flex-direction: column; gap: 16px; }
.hm-ecard {
    --c: var(--brand);
    display: grid; grid-template-columns: minmax(0, 1fr) 280px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    transition: border-color .25s, box-shadow .25s, opacity .7s, transform .7s;
}
.hm-ecard:hover { border-color: #c9cdea; box-shadow: var(--sh); }
.hm-ecard-main { min-width: 0; padding: 24px 26px; }
.hm-ecard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hm-ecard-top .hm-cycle-ic { margin-right: 4px; }
.hm-ecard-date { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #34425a; }
.hm-ecard-date i { color: #8a96a8; }
.hm-ecard h3 { margin-top: 14px; font-size: 18.5px; line-height: 1.4; }
.hm-ecard h3 a:hover { color: var(--brand); }
.hm-ecard-dep { margin-top: 4px !important; font-size: 14.5px; color: var(--muted); }
.hm-ecard .hm-tag i { font-size: 11px; }
.hm-ecard-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.hm-ecard-meta div { min-width: 0; }
.hm-ecard-meta dt { font-size: 12.5px; font-weight: 500; color: #8391a6; }
.hm-ecard-meta dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }

.hm-ecard-side { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--bg-alt); border-left: 1px solid var(--line); }
.hm-ecard-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.hm-ecard-counts div { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.hm-ecard-counts b { font-family: var(--head); font-size: 22px; font-weight: 600; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.hm-ecard-counts span { font-size: 12.5px; color: var(--muted); }

.hm-apply {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #fff !important;
    transition: transform .2s, box-shadow .2s;
}
.hm-apply > i:first-child { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9px; font-size: 14px; background: rgba(255, 255, 255, .18); }
.hm-apply > span { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.hm-apply b { font-size: 14.5px; font-weight: 600; }
.hm-apply small { font-size: 12.5px; opacity: .85; }
.hm-apply-go { font-size: 12px; opacity: .75; transition: transform .2s; }
.hm-apply:hover { transform: translateY(-1px); }
.hm-apply:hover .hm-apply-go { transform: translateX(3px); }
.hm-apply.paid { background: linear-gradient(180deg, #4d49b8 0%, #383588 100%); box-shadow: 0 6px 14px rgba(56, 53, 136, .28); }
.hm-apply.free { background: linear-gradient(180deg, #15803d 0%, #166534 100%); box-shadow: 0 6px 14px rgba(21, 128, 61, .25); }
.hm-ecard-doc { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 8px 2px; font-size: 14px; font-weight: 500; color: var(--brand) !important; }
.hm-ecard-doc i { color: #d64545; font-size: 16px; }
.hm-ecard-doc:hover { text-decoration: underline; }

@media (max-width: 960px) {
    .hm-ecard { grid-template-columns: minmax(0, 1fr); }
    .hm-ecard-side { border-left: 0; border-top: 1px solid var(--line); }
    .hm-alert { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .hm-estpage { padding-top: 28px; }
    .hm-estpage .hm-toolbar-2 { flex-direction: column; align-items: flex-start; gap: 4px; }
    .hm-ecard-main { padding: 20px 18px; }
    .hm-ecard-side { padding: 18px; }
    .hm-ecard h3 { font-size: 17px; }
    .hm-ecard-meta { grid-template-columns: minmax(0, 1fr); }
}
.hm-substats b.is-range { white-space: nowrap; font-size: 24px; }
@media (max-width: 640px) { .hm-substats b.is-range { font-size: 17px; } }
.hm-ecard-uni { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px !important; font-size: 13.5px; color: #46566e; }
.hm-ecard-uni i { margin-top: 3px; font-size: 12px; color: var(--brand); }

/* =====================================================================
   Sikl sahifasi (estudy/view)
   ===================================================================== */
.hm-cyclehero h1 { font-size: 38px; line-height: 1.2; max-width: 900px; }
.hm-cyclehero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.hm-htag { display: inline-flex; align-items: center; padding: 4px 11px; font-size: 12.5px; font-weight: 500; color: #e0e4fb; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; }
.hm-cyclehero .hm-lead { margin-top: 12px !important; }
.hm-cyclehero-uni { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px !important; font-size: 15px; color: #c9cfee; }
.hm-cyclehero-uni i { margin-top: 4px; font-size: 13px; color: var(--sky); }

.hm-cyclepage { padding-top: 48px; }
.hm-cycle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.hm-cycle-details { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.hm-cycle-details h2, .hm-apply-box h2 { font-size: 20px; color: var(--navy); }
.hm-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; border-top: 1px solid var(--line); }
.hm-dl > div { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hm-dl > div:nth-child(odd):not(.wide) { padding-right: 20px; }
.hm-dl > div.wide { grid-column: 1 / -1; }
.hm-dl dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #8391a6; }
.hm-dl dt i { width: 14px; font-size: 12px; text-align: center; color: var(--brand); }
.hm-dl dd { margin: 4px 0 0 22px; font-size: 15.5px; color: var(--ink); overflow-wrap: anywhere; }
.hm-muted { color: #a0abbb; }

.hm-docrow { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, background .2s; }
.hm-docrow:hover { border-color: #c4c2ec; background: var(--brand-l); }
.hm-docrow-ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; font-size: 18px; color: #d64545; background: #fdecec; }
.hm-docrow > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.hm-docrow b { font-size: 15px; font-weight: 600; }
.hm-docrow small { font-size: 13px; color: var(--muted); }
.hm-docrow > i { color: var(--brand); font-size: 13px; }

.hm-cycle-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.hm-apply-box { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }
.hm-apply-box > p { margin-bottom: 6px !important; font-size: 14.5px; color: var(--muted); }
.hm-apply-box .hm-apply { padding: 13px 16px; }
.hm-apply-note { display: flex; gap: 8px; margin-top: 4px !important; font-size: 13.5px; color: var(--muted); }
.hm-apply-note i { margin-top: 3px; color: var(--brand); }
.hm-back { width: 100%; }

@media (max-width: 960px) {
    .hm-cycle-layout { grid-template-columns: minmax(0, 1fr); }
    .hm-cycle-aside { position: static; order: -1; }
    .hm-cyclehero h1 { font-size: 32px; }
}
@media (max-width: 640px) {
    .hm-cyclehero h1 { font-size: 25px; }
    .hm-cyclepage { padding-top: 28px; }
    .hm-cycle-details { padding: 20px 18px; }
    .hm-dl { grid-template-columns: minmax(0, 1fr); }
    .hm-dl > div:nth-child(odd):not(.wide) { padding-right: 0; }
}

/* Doim ochiq filtrlar bloki (estudy/index) */
.hm-more.is-static .hm-more-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; font-size: 15px; color: var(--ink); }
.hm-more.is-static .hm-more-head i { color: var(--brand); }

/* Uzun matn: 2 qator + "Ko'proq" */
.hm-ecard-meta div.wide { grid-column: 1 / -1; }
.hm-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-clamp.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.hm-clamp-btn { margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand); cursor: pointer; }
.hm-clamp-btn:hover { text-decoration: underline; }
