/* ============================================================
   eTrust — app.css
   Tokenlar, asosiy komponentlar va ommaviy sahifalar (Bento)
   ============================================================ */

:root {
    --bg: #F5F5FA;
    --surface: #FFFFFF;
    --s1: #EFEFF6;
    --s2: #E6E6F0;
    --s3: #D7D8E5;
    --text: #15161E;
    --text2: #474857;
    --text3: #5F6070;
    --line: #E3E3EC;
    --line2: #CBCBD8;
    --primary: #2F4FE0;
    --on-primary: #FFFFFF;
    --pc: #DEE2FF;
    --on-pc: #0A1A73;
    --tc: #CDEBFF;
    --on-tc: #00344B;
    --ok: #0F7B33;
    --okc: #C9F2D2;
    --on-okc: #00391A;
    --bad: #B3261E;
    --badc: #FFDAD6;
    --on-badc: #5C0A06;
    --warnc: #FFE0BF;
    --on-warnc: #4A2600;
    --ink: #12131F;
    --ink2: #1E2032;
    --on-ink: #F1F1F8;
    --on-ink2: #B4B7CC;
    --ring: #A9B8FF;
    --glass: rgba(255, 255, 255, .8);
    --glass-line: rgba(21, 22, 30, .08);
    --scrim: rgba(14, 15, 24, .36);
    --shadow: 0 1px 2px rgba(21, 22, 30, .05), 0 12px 32px rgba(21, 22, 30, .08);

    --font: 'Google Sans Flex', 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --header-h: 64px;
    --maxw: 1200px;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #0B0C12;
    --surface: #14151D;
    --s1: #1B1C26;
    --s2: #23252F;
    --s3: #2E303D;
    --text: #ECECF4;
    --text2: #C2C3D1;
    --text3: #9C9DAE;
    --line: #252734;
    --line2: #383A4A;
    --primary: #B4C1FF;
    --on-primary: #0D1F8F;
    --pc: #26389A;
    --on-pc: #E0E4FF;
    --tc: #0B4A66;
    --on-tc: #CDEBFF;
    --ok: #86D99A;
    --okc: #123F22;
    --on-okc: #C9F2D2;
    --bad: #FFB4AB;
    --badc: #5C1712;
    --on-badc: #FFDAD6;
    --warnc: #4D2E06;
    --on-warnc: #FFDDB8;
    --ink: #1C2034;
    --ink2: #272C45;
    --on-ink: #EEF0FA;
    --on-ink2: #B6BAD2;
    --ring: #B4C1FF;
    --glass: rgba(20, 21, 29, .78);
    --glass-line: rgba(255, 255, 255, .08);
    --scrim: rgba(0, 0, 0, .58);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
}

/* ---------- Asos ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
::placeholder { color: var(--text3); opacity: 1; }
html.is-locked, html.is-locked body { overflow: hidden; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: 12px;
    background: var(--primary); color: var(--on-primary); font-weight: 600;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.muted { color: var(--text2); }
.faint { color: var(--text3); }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }

.page { max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 0; }
@media (max-width: 600px) { .page { padding: 12px 12px 0; } }

/* ---------- Tugmalar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px;
    border: 0; border-radius: 999px;
    font-size: 15px; font-weight: 600; white-space: nowrap; text-align: center;
    transition: filter .15s, transform .15s, background-color .15s, border-color .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-tonal { background: var(--pc); color: var(--on-pc); }
.btn-tonal:hover { filter: brightness(.97); }
[data-theme="dark"] .btn-tonal:hover { filter: brightness(1.15); }
.btn-soft { background: var(--s1); color: var(--text); }
.btn-soft:hover { background: var(--s2); }
.btn-outline { background: transparent; border: 1.5px solid var(--line2); color: var(--text); }
.btn-outline:hover { background: var(--s1); }
.btn-danger { background: var(--badc); color: var(--on-badc); }
.btn-danger:hover { filter: brightness(.97); }
.btn-ink { background: var(--on-ink); color: var(--ink); }
.btn-ink:hover { filter: brightness(.95); }
.btn-ghost-ink { background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: var(--on-ink); }
.btn-ghost-ink:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.icon-btn {
    width: 44px; height: 44px; flex-shrink: 0; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); color: var(--text);
    transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--s2); }
.icon-btn.plain { border-color: transparent; background: transparent; color: var(--text2); }
.icon-btn.plain:hover { background: var(--s1); color: var(--text); }
.icon-btn.sm { width: 38px; height: 38px; font-size: 14px; }
.icon-btn.danger { color: var(--bad); }

/* ---------- Bento grid va plitkalar ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; }
.c4 { grid-column: span 4; }
.c5 { grid-column: span 5; }
.c6 { grid-column: span 6; }
.c7 { grid-column: span 7; }
.c8 { grid-column: span 8; }
.c12 { grid-column: span 12; }
.r2 { grid-row: span 2; }
@media (max-width: 1080px) {
    .c3, .c4, .c5 { grid-column: span 6; }
    .c7, .c8, .t12 { grid-column: span 12; }
    .t6 { grid-column: span 6; }
}
@media (max-width: 760px) {
    .bento { gap: 12px; }
    .c3, .c4, .c5, .c6, .c7, .c8, .t6 { grid-column: span 12; }
    .r2 { grid-row: auto; }
}

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px; min-width: 0; }
.tile-xl { border-radius: 32px; }
.tile-ink { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.tile-pc { background: var(--pc); color: var(--on-pc); border-color: transparent; }
.tile-tc { background: var(--tc); color: var(--on-tc); border-color: transparent; }
.tile-soft { background: var(--s1); border-color: transparent; }
.tile-ok { background: var(--okc); color: var(--on-okc); border-color: transparent; }
.tile-bad { background: var(--badc); color: var(--on-badc); border-color: transparent; }
.tile-void { background: var(--s2); color: var(--text); border-color: transparent; }
.tile h3 { font-size: 18px; letter-spacing: -.01em; }
.tile p { font-size: 15px; line-height: 1.5; }
.tile .sub { margin-top: 6px; color: var(--text2); }
.tile-pc .sub, .tile-tc .sub { color: inherit; opacity: .85; }
.tile-ink .sub { color: var(--on-ink2); }
.stack { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }

.progress { height: 8px; margin-top: 14px; border-radius: 999px; background: var(--s2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.progress.sm { height: 6px; }
.progress.ok > span { background: var(--ok); }

.section { margin-top: 72px; }
@media (max-width: 760px) { .section { margin-top: 48px; } }
.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
    gap: 12px 24px; padding: 0 4px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; }
.section-head p { max-width: 420px; color: var(--text2); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-line);
}
.header-inner {
    max-width: var(--maxw); height: var(--header-h); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 12px;
}
.header-side { flex: 1 1 0; display: flex; align-items: center; gap: 8px; }
.header-side.end { justify-content: flex-end; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    background: var(--primary); color: var(--on-primary);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.nav-pill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--s1); }
.nav-pill a {
    height: 36px; padding: 0 16px; border-radius: 999px;
    display: flex; align-items: center;
    font-size: 14px; font-weight: 500; color: var(--text2);
    transition: background-color .15s;
}
.nav-pill a:hover { background: var(--s2); }
.nav-pill a.is-active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.toggle-icon .i-open { display: none; }
.toggle-icon[aria-expanded="true"] .i-open { display: inline-block; }
.toggle-icon[aria-expanded="true"] .i-closed { display: none; }
@media (max-width: 900px) { .nav-pill { display: none; } }
@media (max-width: 560px) {
    .header-inner { padding: 0 12px 0 16px; }
    .hide-xs { display: none !important; }
}

/* ---------- Menyu va ochiluvchi qatlamlar ---------- */
.layer { position: fixed; inset: 0; z-index: 39; }
.layer-scrim { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--scrim); cursor: default; }
@media (min-width: 901px) { .layer-scrim.desktop-clear { background: transparent; } }
.menu-card {
    position: absolute;
    top: calc(var(--header-h) + 8px);
    right: max(16px, calc((100vw - var(--maxw)) / 2 + 24px));
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    display: flex; flex-direction: column; gap: 6px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-line); border-radius: 24px;
    box-shadow: var(--shadow);
    animation: pop .18s ease-out;
}
.menu-nav { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 901px) { .menu-nav.mobile-only { display: none; } }
.menu-nav a, .menu-link {
    height: 48px; padding: 0 14px; border-radius: 14px;
    display: flex; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 500;
    transition: background-color .15s;
}
.menu-nav a:hover, .menu-nav a.is-active, .menu-link:hover { background: var(--s1); }
.menu-nav a.is-active { font-weight: 600; }
.menu-link i { width: 18px; text-align: center; color: var(--text3); }
.menu-link.danger, .menu-link.danger i { color: var(--bad); font-weight: 600; }
.menu-label { padding: 8px 6px 2px; font-size: 13px; font-weight: 500; color: var(--text3); }
.menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }
.menu-card > .btn { margin-top: 10px; }
.menu-who { display: flex; align-items: center; gap: 12px; padding: 8px 8px 10px; }
.menu-who .avatar { width: 44px; height: 44px; border-radius: 999px; font-size: 17px; }
.menu-who b { display: block; font-size: 16px; font-weight: 600; }
.menu-who small { display: block; font-size: 13px; color: var(--text3); overflow-wrap: anywhere; }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--s1); }
.seg > * {
    height: 44px; border: 0; border-radius: 12px;
    background: transparent; color: var(--text2);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 600;
    transition: background-color .15s, color .15s;
}
.seg > [aria-pressed="true"], .seg > .is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Formalar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.input, .select, .textarea {
    width: 100%; height: 52px; padding: 0 16px;
    border: 1.5px solid var(--line2); border-radius: 14px;
    background: var(--s1); font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.input[disabled], .input[readonly] { opacity: .7; }
.input[aria-invalid="true"] { border-color: var(--bad); }
.field-hint { font-size: 12px; color: var(--text3); }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > i { position: absolute; left: 16px; color: var(--text3); pointer-events: none; }
.input-icon > .input { padding-left: 44px; }
.input-icon > .icon-btn { position: absolute; right: 6px; width: 40px; height: 40px; border: 0; background: transparent; }
.input-icon.has-btn > .input { padding-right: 52px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.alert i { margin-top: 2px; }
.alert-error { background: var(--badc); color: var(--on-badc); }
.alert-ok { background: var(--okc); color: var(--on-okc); }
.alert-warn { background: var(--warnc); color: var(--on-warnc); }
.alert-info { background: var(--pc); color: var(--on-pc); }

.pill {
    height: 28px; padding: 0 12px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
}
.pill-active { background: var(--okc); color: var(--on-okc); }
.pill-expired { background: var(--badc); color: var(--on-badc); }
.pill-void { background: var(--s2); color: var(--text2); }
.pill-warn { background: var(--warnc); color: var(--on-warnc); }
.pill-info { background: var(--pc); color: var(--on-pc); }
.tag-pos {
    height: 20px; padding: 0 7px; border-radius: 6px; flex-shrink: 0;
    display: inline-flex; align-items: center;
    background: var(--tc); color: var(--on-tc);
    font-size: 11px; font-weight: 700; letter-spacing: .03em; vertical-align: middle;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line2); background: var(--surface); color: var(--text2);
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { background: var(--s1); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--pc); border-color: var(--pc); color: var(--on-pc); }

.avatar {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--s1); font-weight: 700;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.tone-0 { background: var(--pc); color: var(--on-pc); }
.tone-1 { background: var(--tc); color: var(--on-tc); }
.tone-2 { background: var(--okc); color: var(--on-okc); }
.tone-3 { background: var(--s3); color: var(--text); }

/* ---------- Bildirishnoma ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; border-radius: 16px;
    background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow);
    font-size: 14px; animation: pop .2s ease-out;
}
.toast.is-ok i { color: #9BE5AE; }
.toast.is-error i { color: #FFB4AB; }

/* ============================================================
   Bosh sahifa
   ============================================================ */
.hero-main { padding: clamp(24px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 440px; }
.hero-main h1 { max-width: 640px; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.hero-main .lead { max-width: 520px; margin-top: 18px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--text2); }
@media (max-width: 760px) { .hero-main { min-height: 0; gap: 28px; } }

.check-form { display: flex; flex-direction: column; gap: 10px; }
.check-form > label { font-size: 14px; font-weight: 600; color: var(--text2); }
.check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-field { flex: 999 1 260px; position: relative; display: flex; align-items: center; }
.check-field > i { position: absolute; left: 20px; color: var(--text3); pointer-events: none; }
.check-input {
    width: 100%; height: 60px; padding: 0 20px 0 52px;
    border: 1.5px solid var(--line2); border-radius: 18px; background: var(--s1);
    font-size: 18px; font-weight: 500; letter-spacing: .03em; font-variant-numeric: tabular-nums;
    transition: border-color .15s, box-shadow .15s;
}
.check-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.check-input.is-invalid { border-color: var(--bad); }
.check-row .btn { flex: 1 1 auto; height: 60px; padding: 0 28px; border-radius: 18px; font-size: 16px; }
.check-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 2px; font-size: 14px; color: var(--text3); }
.check-hint i { margin-top: 3px; }
.check-error { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--bad); }
.check-error.is-shown { display: flex; }
@media (max-width: 600px) { .check-input, .check-row .btn { height: 56px; } .check-input { font-size: 16px; padding-left: 48px; } .check-field > i { left: 18px; } }

.sample { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.sample-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-ink2); }
.chip-live {
    height: 28px; padding: 0 12px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(134, 217, 154, .16); color: #9BE5AE;
    font-size: 13px; font-weight: 600;
}
.dev-row { display: flex; align-items: center; gap: 14px; }
.dev-row b { display: block; font-size: 17px; font-weight: 600; }
.dev-row small { display: block; font-size: 13px; color: var(--on-ink2); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dev-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--ink2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mini-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini-dates > div { padding: 12px 14px; border-radius: 16px; background: var(--ink2); }
.mini-dates small { display: block; font-size: 12px; color: var(--on-ink2); }
.mini-dates b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; }
.sample-store { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sample-store .avatar { width: 36px; height: 36px; border-radius: 11px; background: #2E3A8C; color: #DEE2FF; font-size: 15px; }
.sample-store div { flex: 1; min-width: 0; }
.sample-store b { display: block; font-size: 14px; font-weight: 600; }
.sample-store small { display: block; font-size: 12px; color: var(--on-ink2); }
.sample-store > i { color: var(--on-ink2); }

.ring { position: relative; width: 200px; height: 200px; align-self: center; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 9px; }
.ring .arc { fill: none; stroke: var(--ring); stroke-width: 9px; stroke-linecap: round; stroke-dasharray: 326.73; animation: ring-in 1.1s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes ring-in { from { stroke-dashoffset: 326.73; } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.ring-value { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.ring-sub { font-size: 14px; color: var(--on-ink2); }
.ring-lg { width: 236px; height: 236px; }
.ring-lg .ring-value { font-size: 56px; letter-spacing: -.04em; }
.ring-lg .ring-center { gap: 6px; }
.ring-lg .ring-sub { font-size: 15px; }
.ring-lg .track, .ring-lg .arc { stroke-width: 8px; }

.keys { display: flex; flex-wrap: wrap; gap: 8px; }
.key {
    width: 44px; height: 52px; border-radius: 12px;
    background: var(--s1); border: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600;
}
.key.is-accent { background: var(--pc); color: var(--on-pc); border-color: transparent; box-shadow: none; }
.dev-squares { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-squares span { width: 52px; height: 52px; border-radius: 16px; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.tile-feature { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }

.steps { list-style: none; margin: 0; padding: clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { display: flex; flex-direction: column; gap: 14px; }
.step-top { display: flex; align-items: center; gap: 12px; }
.step-num { width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--pc); color: var(--on-pc); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.step-num.is-final { background: var(--primary); color: var(--on-primary); }
.step-line { flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.steps h3 { font-size: 20px; letter-spacing: -.01em; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--text2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } .step-line { display: none; } }

.why-contact { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.why-contact h3 { max-width: 420px; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; }
.why-contact .sub { max-width: 460px; margin-top: 12px; font-size: 16px; line-height: 1.55; }
.contact-rows { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-row span { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--s1); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.big-num { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.lang-type { display: flex; align-items: baseline; gap: 10px; font-size: 60px; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.lang-type .slash { color: var(--line2); }
.lang-type .accent { color: var(--primary); }
.trust-row { display: flex; align-items: center; gap: 20px; }
.trust-ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 18px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font-size: 19px; }

.partners { padding: clamp(24px, 3vw, 40px) 0; overflow: hidden; }
.partners-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 0 clamp(24px, 3vw, 40px); margin-bottom: 24px; }
.partners-head h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; }
.partners-head p { margin-top: 8px; color: var(--text2); }
.marquee {
    display: flex; flex-direction: column; gap: 12px; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-row { display: flex; width: max-content; animation: mq-l var(--mq-dur, 70s) linear infinite; }
.marquee-row.is-reverse { animation-name: mq-r; }
.marquee-set { display: flex; gap: 12px; padding-right: 12px; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes mq-l { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes mq-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.partner { flex-shrink: 0; height: 68px; padding: 0 20px 0 12px; display: flex; align-items: center; gap: 12px; border-radius: 22px; background: var(--s1); border: 1px solid var(--line); }
.partner .avatar { width: 44px; height: 44px; border-radius: 14px; font-size: 17px; }
.partner b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.partner b i { font-size: 13px; color: var(--primary); }
.partner small { display: block; font-size: 13px; color: var(--text3); white-space: nowrap; }

.faq-side { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 320px; }
.faq-side h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.025em; }
.faq-side p { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--on-ink2); }
.faq-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.faq-item { border-radius: 24px; transition: background-color .2s; }
.faq-item.is-open { background: var(--s1); }
.faq-q {
    width: 100%; min-height: 64px; padding: 16px 16px 16px 20px;
    border: 0; background: transparent; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-size: 17px; font-weight: 600; line-height: 1.35;
}
.faq-q span { width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; background: var(--s2); display: flex; align-items: center; justify-content: center; font-size: 12px; transition: transform .2s; }
.faq-item.is-open .faq-q span { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 20px 20px; max-width: 64ch; font-size: 15px; line-height: 1.6; color: var(--text2); white-space: pre-line; }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--maxw); margin: 72px auto 0; padding: 0 24px 24px; }
.footer-card { padding: clamp(24px, 3vw, 40px); border-radius: 32px; background: var(--s1); }
.footer-card .bento { gap: 28px 24px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { margin-bottom: 4px; font-size: 15px; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text2); }
.footer-col a:hover { color: var(--primary); }
.footer-col i { width: 16px; font-size: 14px; color: var(--text3); }
.footer-col .logo { font-size: 20px; color: var(--text); gap: 10px; }
.footer-col .logo:hover { color: var(--text); }
.footer-col .logo-mark i { width: auto; font-size: 15px; color: inherit; }
.footer-col p { max-width: 360px; font-size: 15px; line-height: 1.55; color: var(--text2); }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--text); transition: background-color .15s; }
.socials a:hover { background: var(--s2); color: var(--text); }
.socials a i { width: auto; color: inherit; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text3); }
@media (max-width: 600px) { .site-footer { margin-top: 48px; padding: 0 12px 12px; } }

/* ============================================================
   Natija sahifasi
   ============================================================ */
.back-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text2); transition: background-color .15s; }
.back-link:hover { background: var(--s2); }
.result-grid { margin-top: 12px; }
.status-banner { padding: 20px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; }
.status-ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.status-banner .grow { flex: 1 1 280px; }
.status-banner h1 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }
.status-banner p { margin-top: 4px; font-size: 15px; opacity: .85; }
.status-banner .meta { font-size: 14px; opacity: .85; }

.device-tile { padding: 32px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.device-tile h2 { font-size: 22px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.device-tile .sub { margin-top: 6px; color: var(--text2); }
.id-chip { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.id-chip i { color: var(--text3); }

.mock { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mock-img { max-height: 300px; width: auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .18)); }
.mock-body { background: var(--s3); box-shadow: var(--shadow); }
.mock-screen {
    width: 100%; height: 100%; position: relative;
    background: var(--ink); color: var(--on-ink);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    font-variant-numeric: tabular-nums;
}
.mock-screen small { font-size: 11px; color: var(--on-ink2); }
.mock-screen b { font-size: 12px; font-weight: 600; letter-spacing: .04em; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-phone .mock-body { width: 150px; height: 300px; padding: 7px; border-radius: 36px; }
.mock-phone .mock-screen { border-radius: 30px; }
.mock-phone .mock-screen::before { content: ''; position: absolute; top: 10px; left: 50%; width: 44px; height: 13px; margin-left: -22px; border-radius: 999px; background: #05060A; }
.mock-tablet .mock-body { width: 220px; height: 290px; padding: 10px; border-radius: 28px; }
.mock-tablet .mock-screen { border-radius: 19px; }
.mock-laptop .mock-body { width: 270px; height: 172px; padding: 8px; border-radius: 16px 16px 6px 6px; }
.mock-laptop .mock-screen { border-radius: 9px; }
.mock-laptop .mock-base { width: 316px; max-width: 100%; height: 14px; margin-top: -1px; border-radius: 0 0 16px 16px; background: var(--s3); box-shadow: var(--shadow); }
.mock-pc .mock-body { width: 270px; height: 172px; padding: 8px; border-radius: 14px; }
.mock-pc .mock-screen { border-radius: 8px; }
.mock-pc .mock-neck { width: 44px; height: 34px; background: var(--s3); }
.mock-pc .mock-foot { width: 132px; height: 10px; border-radius: 999px; background: var(--s3); }
@media (max-width: 360px) { .mock-laptop .mock-body, .mock-pc .mock-body { width: 240px; height: 152px; } }

.ring-tile { padding: 32px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.ring-tile > span { font-size: 15px; color: var(--on-ink2); }
.ring-tile p { max-width: 260px; font-size: 15px; line-height: 1.5; color: var(--on-ink2); }
.ring-tile .ring-value.is-word { font-size: 30px; letter-spacing: -.02em; }

.date-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.date-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text2); }
.date-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--s1); color: var(--text2); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.date-val { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.date-note { margin-top: 4px; font-size: 14px; color: var(--text3); }

.store-tile { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; }
.store-head { display: flex; align-items: center; gap: 16px; }
.store-head .avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 26px; }
.store-head > div { min-width: 0; }
.store-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.store-name h2 { font-size: 22px; letter-spacing: -.015em; }
.verified { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--pc); color: var(--on-pc); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.store-addr { margin-top: 6px; display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--text2); }
.store-addr i { margin-top: 3px; color: var(--text3); }
.store-desc { font-size: 15px; line-height: 1.55; color: var(--text2); white-space: pre-line; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.store-actions .btn { flex: 1 1 150px; height: 52px; }
.store-actions .phone { flex-basis: 200px; font-variant-numeric: tabular-nums; }
.tip-tile { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tip-ico { width: 48px; height: 48px; border-radius: 16px; background: var(--surface); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.tip-tile h2 { font-size: 20px; letter-spacing: -.01em; }
.tip-tile p { margin-top: 8px; line-height: 1.55; opacity: .85; }
.result-note { max-width: var(--maxw); margin: 40px auto 0; padding: 20px 24px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text3); }

.empty { padding: 56px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.empty-ico { width: 72px; height: 72px; border-radius: 24px; background: var(--s1); color: var(--text3); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.empty h2 { font-size: 22px; }
.empty p { max-width: 460px; color: var(--text2); }
.empty .check-form { width: min(560px, 100%); margin-top: 8px; text-align: left; }

/* ============================================================
   Kirish sahifasi
   ============================================================ */
.auth { max-width: var(--maxw); margin: 0 auto; padding: 24px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; min-height: calc(100vh - var(--header-h)); }
.auth-aside { grid-column: span 6; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.auth-aside h2 { max-width: 420px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em; }
.auth-aside p { max-width: 420px; margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--on-ink2); }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.auth-points li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--ink2); font-size: 15px; font-weight: 600; }
.auth-points span { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.auth-card { grid-column: span 6; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.auth-card h1 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.025em; }
.auth-card .sub { margin-top: 8px; color: var(--text2); }
.auth-card .foot { font-size: 14px; color: var(--text3); }
@media (max-width: 900px) {
    .auth { min-height: 0; padding: 16px 12px; }
    .auth-aside { display: none; }
    .auth-card { grid-column: span 12; width: 100%; max-width: 520px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
