/* Asos: reset, tipografiya va umumiy yordamchi klasslar. */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100dvh;
    background: var(--surface);
    color: var(--label);
    font: var(--text-body);
    font-feature-settings: "cv11", "ss01";
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
}

h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* iOS'da bosish paytidagi kulrang yorug'lik o'chiriladi — o'z effektimiz bor. */
* { -webkit-tap-highlight-color: transparent; }

/* ── Fokus halqasi: sichqoncha bilan ko'rinmaydi, klaviatura bilan ko'rinadi ── */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* ── Skroll chizig'i ───────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: var(--fill-1) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--fill-1);
    border: 3px solid transparent;
    border-radius: var(--r-pill);
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--fill-2); background-clip: content-box; }

/* ── Tipografiya uslublari ────────────────────────────────────────────────── */
.t-large-title { font: var(--text-large-title); letter-spacing: -.022em; }
.t-title-1 { font: var(--text-title-1); letter-spacing: -.02em; }
.t-title-2 { font: var(--text-title-2); letter-spacing: -.018em; }
.t-title-3 { font: var(--text-title-3); letter-spacing: -.014em; }
.t-headline { font: var(--text-headline); letter-spacing: -.012em; }
.t-body { font: var(--text-body); }
.t-callout { font: var(--text-callout); }
.t-subhead { font: var(--text-subhead); }
.t-footnote { font: var(--text-footnote); }
.t-caption { font: var(--text-caption); }
.t-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.t-dim { color: var(--label-2); }
.t-faint { color: var(--label-3); }
.t-accent { color: var(--accent); }
.t-green { color: var(--green); }
.t-red { color: var(--red); }
.t-orange { color: var(--orange); }
.t-upper { text-transform: uppercase; letter-spacing: .06em; }
.t-center { text-align: center; }
.t-right { text-align: right; }
.t-nowrap { white-space: nowrap; }
.t-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-balance { text-wrap: balance; }

/* ── Tartib yordamchilari ─────────────────────────────────────────────────── */
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--wrap { flex-wrap: wrap; }
.row--tight { gap: var(--sp-2); }
.col { display: flex; flex-direction: column; gap: var(--sp-3); }
.col--tight { gap: var(--sp-1); }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: var(--sp-4); }

.grid { display: grid; gap: var(--sp-4); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
    .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

.hidden, [hidden] { display: none !important; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── Soch tolasi chiziq (qurilma piksel nisbatidan qat'i nazar 1px) ──────── */
.hairline { height: 1px; background: var(--separator); border: 0; }

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