/* ==========================================================================
   RGNH Sports — umumiy dizayn tizimi (ochiq sayt)
   Tokenlar → asos → tipografiya → tugmalar → menyu → footer → dialog/forma
   → toast → umumiy bloklar → ikonka animatsiyasi → harakat sozlamasi.
   Sahifaga xos uslublar: rgnh-home.css, rgnh-schedule.css, rgnh-events.css, rgnh-gallery.css
   ========================================================================== */

:root {
    --ink: #111827;
    --ink-2: #1f2937;
    --muted: #64748b;
    --line: rgba(17, 24, 39, .1);
    --line-strong: rgba(17, 24, 39, .18);
    --bg: #f8fafc;
    --bg-2: #f3f0fd;
    --surface: #ffffff;
    --night: #050510;
    --night-2: #0b0a1a;
    --on-night: #ffffff;
    --on-night-muted: rgba(255, 255, 255, .68);
    --accent: #7c3aed;
    --accent-2: #ec4899;
    --accent-light: #c4b5fd;
    --accent-ink: #6d28d9;
    --accent-soft: rgba(124, 58, 237, .1);
    --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
    --danger: #dc2626;
    --success: #16a34a;

    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 28px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .05);
    --shadow-md: 0 2px 6px rgba(17, 24, 39, .05), 0 18px 40px -18px rgba(17, 24, 39, .22);
    --shadow-lg: 0 30px 80px -30px rgba(17, 24, 39, .38);

    --gutter: clamp(16px, 4vw, 40px);
    --max: 1200px;
    --nav-h: 72px;
    --section-y: clamp(72px, 10vw, 136px);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: var(--r-sm);
    background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografiya ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }
.display, h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-variation-settings: "opsz" 144; }
h2, .h2 { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.3rem); font-variation-settings: "opsz" 120; }
h3, .h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 14px;
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.on-night .eyebrow { color: var(--accent-light); }

/* ---------- Tugmalar ---------- */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px;
    border: 1px solid var(--btn-bd); border-radius: var(--r-pill);
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 600; font-size: .98rem; line-height: 1; text-decoration: none; white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic--arrow { transform: translateX(3px); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: transparent; background: var(--btn-bg); box-shadow: 0 10px 26px -10px rgba(124, 58, 237, .55); }
.btn--accent:hover { --btn-bg: var(--accent-ink); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--ghost { --btn-bg: transparent; }
.on-night .btn--ghost { --btn-fg: var(--on-night); --btn-bd: rgba(255, 255, 255, .3); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-pending .btn__spinner { display: inline-block; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Menyu ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background-color .3s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }
.site-nav__bar { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.site-nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.site-nav__brand img { width: 40px; height: 40px; }
.site-nav__brand span { display: grid; line-height: 1.15; }
.site-nav__brand strong { font-weight: 700; letter-spacing: -.01em; }
.site-nav__brand small { font-size: .74rem; color: var(--muted); letter-spacing: .02em; }
.site-nav__links { display: flex; gap: 4px; margin-inline: auto; }
.site-nav__links a {
    position: relative; padding: 8px 14px; border-radius: var(--r-pill);
    font-size: .94rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
    transition: background-color .2s, color .2s;
}
.site-nav__links a:hover { background: rgba(17, 24, 39, .05); color: var(--ink); }
.site-nav__links a[aria-current="page"] { color: var(--ink); }
.site-nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); }
.site-nav__actions { display: flex; align-items: center; gap: 10px; }
.site-nav__phone { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); }
.site-nav__phone .ic { width: 18px; height: 18px; }
.site-nav__phone:hover { border-color: var(--line-strong); color: var(--ink); }
.site-nav__toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.site-nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.site-nav__toggle span:first-child { top: 17px; }
.site-nav__toggle span:last-child { top: 25px; }
.site-nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.site-nav__panel { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
.site-nav__panel nav { display: grid; gap: 4px; padding-block: 16px 28px; }
.site-nav__panel a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px; border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-size: 1.5rem; text-decoration: none;
}
.site-nav__panel a .ic { width: 20px; height: 20px; color: var(--accent-ink); }
.site-nav__panel .btn { margin-top: 18px; }
.site-nav__panel a.site-nav__panel-call { justify-content: center; gap: 10px; border: 0; font-family: var(--sans); font-size: 1rem; color: var(--muted); }

@media (max-width: 1040px) {
    .site-nav__links { display: none; }
    .site-nav__toggle { display: block; }
    .site-nav__actions { margin-left: auto; }
}
@media (max-width: 520px) {
    .site-nav__actions .btn, .site-nav__phone { display: none; }
    .site-nav__brand small { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding-block: clamp(56px, 8vw, 96px) 32px; }
.site-footer a { text-decoration: none; }
.site-footer__cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding-bottom: clamp(40px, 6vw, 64px); margin-bottom: clamp(40px, 6vw, 64px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__cta .eyebrow { color: var(--accent-light); }
.site-footer__cta-title { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer__brand span { display: grid; line-height: 1.2; }
.site-footer__brand small { color: var(--on-night-muted); font-size: .82rem; }
.site-footer__about p { color: var(--on-night-muted); max-width: 34ch; font-size: .95rem; }
.site-footer__heading { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night-muted); font-size: .95rem; transition: color .2s; }
.site-footer li a:hover { color: #fff; }
.site-footer li .ic, .site-footer li .bi { width: 18px; height: 18px; font-size: 16px; flex-shrink: 0; color: var(--accent-light); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: var(--on-night-muted); }
.site-footer__bottom { align-items: center; }
.site-footer__credit {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 16px;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .04);
    color: var(--on-night-muted); text-decoration: none;
    transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.site-footer__credit-label { font-size: .78rem; letter-spacing: .02em; }
.site-footer__credit-name {
    font-weight: 600; letter-spacing: .01em;
    background: linear-gradient(90deg, #fff, #e9c9ff 55%, #ffb3d9);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-footer__credit-icon { width: 14px; height: 14px; opacity: .6; transition: transform .25s ease, opacity .25s ease; }
.site-footer__credit:hover { border-color: rgba(233, 201, 255, .45); background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer__credit:hover .site-footer__credit-icon { transform: translateX(3px); opacity: 1; }
.site-footer__credit:focus-visible { outline: 2px solid #e9c9ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .site-footer__credit, .site-footer__credit-icon { transition: none; } }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Dialog ---------- */
.dialog {
    width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
    padding: 0; border: 0; border-radius: var(--r-lg);
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
    overflow: auto; overscroll-behavior: contain;
}
.dialog::backdrop { background: rgba(5, 5, 16, .55); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialog-in .32s var(--ease); }
.dialog[open]::backdrop { animation: fade-in .32s var(--ease); }
.dialog__panel { position: relative; padding: clamp(24px, 5vw, 40px); }
.dialog__close {
    position: absolute; top: 16px; right: 16px;
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2);
}
.dialog__close .ic { width: 18px; height: 18px; }
.dialog__close:hover { border-color: var(--line-strong); color: var(--ink); }
.dialog__head { margin-bottom: 24px; padding-right: 44px; }
.dialog__head h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: 8px; }
.dialog__head > p:not(.eyebrow) { color: var(--muted); }
.dialog__note { margin-top: 12px !important; padding: 10px 14px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink-2) !important; font-size: .92rem; }
body.has-dialog { overflow: hidden; }

/* ---------- Forma ---------- */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field__optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    background: var(--bg); font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9eab; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.field__error { min-height: 0; font-size: .84rem; color: var(--danger); }
.field__error:empty { display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #fff; }
.form-alert { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--r-sm); background: #fdecea; color: var(--danger); font-size: .94rem; font-weight: 500; }
.form__helper { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.form__helper .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--success); }
.form__fallback { margin-top: 16px; font-size: .88rem; color: var(--muted); text-align: center; }
.form__fallback a { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Bosqichli forma ---------- */
/* Qadam ko'rsatkichi: faol qadam ikonkasi chizilib chiqadi, o'tilgani belgiga aylanadi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; }
.steps__item { position: relative; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.steps__item + .steps__item::before {
    content: ""; position: absolute; top: 23px; right: calc(50% + 30px); width: calc(100% - 60px); height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--line) 0);
    transition: --fill .5s var(--ease);
}
.steps__item.is-done + .steps__item::before, .steps__item.is-done + .steps__item.is-active::before { --fill: 100%; }
.steps__icon {
    position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    background: var(--bg); border: 1.5px solid var(--line); color: var(--muted);
    transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.steps__icon .ic { width: 22px; height: 22px; grid-area: 1 / 1; }
.steps__done { opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.steps__item.is-active { color: var(--accent-ink); }
.steps__item.is-active .steps__icon { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: scale(1.06); box-shadow: 0 0 0 6px var(--accent-soft); }
.steps__item.is-done { color: var(--ink-2); }
.steps__item.is-done .steps__icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps__item.is-done .steps__ic { opacity: 0; }
.steps__item.is-done .steps__done { opacity: 1; transform: none; }
.js .steps__item.is-active .steps__ic path { stroke-dasharray: 1; animation: ic-draw 1s var(--ease) both; }
.js .steps__item.is-active .steps__ic path:nth-child(2) { animation-delay: .15s; }
.js .steps__item.is-active .steps__ic path:nth-child(3) { animation-delay: .3s; }
.js .steps__item.is-active .steps__ic path:nth-child(4) { animation-delay: .45s; }
.js .steps__item.is-done .steps__done path { stroke-dasharray: 1; animation: ic-draw .6s var(--ease) both; }
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

.step { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 18px; }
.step + .step { margin-top: 28px; }
.step__title { padding: 0; margin-bottom: 4px; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.step .form__grid { margin-bottom: 0; }
.js [data-steps] .step { display: none; margin-top: 0; }
.js [data-steps] .step.is-current { display: grid; animation: step-in .45s var(--ease); }
.js [data-steps] .step.is-current.from-back { animation-name: step-in-back; }

/* Dastur tanlash kartalari */
fieldset.field { min-width: 0; margin: 0; padding: 0; border: 0; }
.field__legend { padding: 0; margin-bottom: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field input[type=date], .field input[type=time] { min-height: 48px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.choice-grid--pair { grid-template-columns: 1fr 1fr; }
.choice-grid--pair .choice__card { white-space: nowrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__card {
    display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg);
    font-size: .92rem; font-weight: 600; line-height: 1.25; color: var(--ink-2);
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.choice__card .ic, .choice__card .bi { width: 22px; height: 22px; font-size: 19px; color: var(--accent); }
.choice:hover .choice__card { border-color: var(--line-strong); transform: translateY(-1px); }
.choice input:checked + .choice__card { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: 0 6px 18px -10px rgba(124, 58, 237, .6); }
.choice input:checked + .choice__card .ic path { stroke-dasharray: 1; animation: ic-draw .7s var(--ease) both; }
.choice input:focus-visible + .choice__card { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .choice__card { gap: 8px; padding: 10px 12px; font-size: .86rem; } .steps { margin-bottom: 20px; } }

/* Orqaga / davom / yuborish */
.form__nav { display: flex; gap: 12px; margin-top: 28px; }
.form__nav [data-step-next], .form__nav [data-submit] { flex: 1; }
.form__nav [data-step-back], .form__nav [data-step-next] { display: none; }
.js [data-steps] .form__nav [data-step-next] { display: inline-flex; }
.js [data-steps] .form__nav [data-step-back]:not([hidden]) { display: inline-flex; }
.js [data-steps]:not(.is-last) .form__nav [data-submit] { display: none; }
.js [data-steps].is-last .form__nav [data-step-next] { display: none; }
.steps { display: none; }
.js [data-steps] .steps { display: grid; }

@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-24px); } }

/* ---------- Toast ---------- */
.toast {
    position: fixed; right: 16px; bottom: 96px; z-index: 300;
    display: flex; align-items: flex-start; gap: 12px;
    width: min(420px, calc(100vw - 32px)); padding: 16px 16px 16px 18px;
    border-radius: var(--r-md); background: var(--night); color: var(--on-night); box-shadow: var(--shadow-lg);
    animation: toast-in .45s var(--ease);
}
.toast.is-leaving { animation: toast-out .3s var(--ease) forwards; }
.toast__icon { width: 26px; height: 26px; flex-shrink: 0; color: #7fd8a8; }
.toast strong { display: block; margin-bottom: 2px; }
.toast span { font-size: .9rem; color: var(--on-night-muted); }
.toast__close { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--on-night); }
.toast__close .ic { width: 16px; height: 16px; }

/* ---------- Umumiy bloklar ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--bg-2 { background: var(--bg-2); }
.section--night { background: var(--night); color: var(--on-night); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; }
.section-head h2 + p { margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--night .section-head p { color: var(--on-night-muted); }

.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 16ch; }
.page-hero .lead { margin-top: 20px; max-width: 58ch; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; font-weight: 600; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }

/* Admin tahrirlash pinlari uchun joy */
.rg-editable { position: relative; }

/* ---------- Ikonka oilasi: chizib chiqish ---------- */
.ic { width: 24px; height: 24px; flex-shrink: 0; overflow: visible; }
.ic--lg { width: 32px; height: 32px; }
.js .reveal .ic path, .js .ic.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .reveal.is-visible .ic path, .js .ic.draw.is-visible path { animation: ic-draw 1.1s var(--ease) forwards; }
.js .reveal.is-visible .ic path:nth-child(2) { animation-delay: .15s; }
.js .reveal.is-visible .ic path:nth-child(3) { animation-delay: .3s; }
.js .reveal.is-visible .ic path:nth-child(4) { animation-delay: .45s; }
.icon-tile:hover .ic path { animation: ic-draw .9s var(--ease) both; }
.ic--sparkle path:last-child { transform-origin: 19px 18.5px; }
.icon-tile:hover .ic--sparkle path:last-child { animation: ic-draw .9s var(--ease) both, twinkle 1.2s var(--ease) .2s; }

/* ---------- Ko'rinishda paydo bo'lish ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes ic-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes twinkle { 50% { transform: scale(1.35) rotate(20deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px); } }

/* ---------- Harakatni kamaytirish ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .reveal .ic path, .js .ic.draw path { stroke-dasharray: none; stroke-dashoffset: 0; }
}
