/* ============================================================================
   Mavr Kids — PMT landing page dizayn tizimi
   Ranglar: #1E2568 navy · #2563EB kobalt · #F59E0B oltin · #E11D48 magenta
            #7C3AED binafsha · #FFFFFF / #F8FAFC fonlar
   ========================================================================= */

:root {
    --navy: #1E2568;
    --navy-700: #2A3283;
    --cobalt: #2563EB;
    --cobalt-600: #1D4ED8;
    --cobalt-50: #EFF5FF;
    --gold: #F59E0B;
    --gold-50: #FEF6E7;
    --magenta: #E11D48;
    --magenta-50: #FFF1F4;
    --violet: #7C3AED;
    --violet-50: #F5F1FE;
    --green: #16A34A;

    --white: #FFFFFF;
    --slate: #F8FAFC;
    --ink: #1E2568;
    --muted: #5A6383;
    --line: #E6EAF3;

    --r-sm: 12px;
    --r: 16px;
    --r-lg: 20px;
    --r-xl: 28px;
    --sh-sm: 0 1px 2px rgba(30, 37, 104, .05), 0 4px 12px rgba(30, 37, 104, .05);
    --sh: 0 8px 28px rgba(30, 37, 104, .08);
    --sh-lg: 0 22px 55px rgba(30, 37, 104, .14);
    --sh-cta: 0 10px 24px rgba(37, 99, 235, .3);

    --max: 1180px;
    --f: 'Plus Jakarta Sans', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
    font-family: var(--f);
    background: var(--white);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(28px, 4.4vw, 46px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: clamp(17px, 2vw, 21px); }
p { color: var(--muted); }

.section { padding: clamp(48px, 6.5vw, 84px) 0; }
.section--slate { background: var(--slate); }
.section-head { max-width: 760px; margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.section-head p { margin-top: 12px; font-size: 16px; }

.eyebrow {
    display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--cobalt); margin-bottom: 10px;
}

/* ── Tugmalar ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border: 2px solid transparent; border-radius: 14px;
    font-size: 15.5px; font-weight: 800; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cobalt); color: #fff; box-shadow: var(--sh-cta); }
.btn--primary:hover { background: var(--cobalt-600); }
.btn--gold { background: var(--gold); color: #3A2606; box-shadow: 0 10px 24px rgba(245, 158, 11, .3); }
.btn--gold:hover { filter: brightness(.96); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn--sm { padding: 11px 18px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .72; cursor: not-allowed; }

/* Yuklanish spinneri */
.spinner {
    width: 17px; height: 17px; border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
    background: linear-gradient(90deg, var(--navy), var(--cobalt));
    color: #fff; font-size: 13.5px; font-weight: 600; text-align: center; padding: 9px 18px;
}
.topbar b { font-weight: 800; color: #FFD98C; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header__inner { height: 72px; display: flex; align-items: center; gap: 18px; }

.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand__kids {
    padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #3A2606;
    font-size: 12.5px; font-weight: 900; letter-spacing: .02em; line-height: 1.2;
}

.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 700; color: #333C69; }
.nav a:hover { background: var(--cobalt-50); color: var(--cobalt); }

.header__side { display: flex; align-items: center; gap: 12px; flex: none; }
.header__phone { font-weight: 800; font-size: 15px; white-space: nowrap; }
.header__phone:hover { color: var(--cobalt); }

.burger {
    display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
    background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy); }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(30px, 4.5vw, 58px) 0 clamp(44px, 6vw, 72px); overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -220px; right: -160px; width: 620px; height: 620px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 68%); pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -260px; left: -180px; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, .14), transparent 68%); pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 3.5vw, 48px); align-items: start; }

.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px;
    background: var(--violet-50); color: var(--violet); border: 1px solid #E2D8FD;
    font-size: 13.5px; font-weight: 800;
}
.hero h1 { margin: 16px 0 14px; }
.hero h1 em { font-style: normal; color: var(--cobalt); }
.hero__sub { font-size: clamp(15px, 1.7vw, 17.5px); }

.trust-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.trust-tags span {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px;
    background: var(--slate); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: #333C69;
}

/* Lead-forma kartochkasi */
.lead-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: clamp(22px, 3vw, 30px); box-shadow: var(--sh-lg);
}
.lead-card--sticky { position: sticky; top: 92px; }
.lead-card__title { font-size: 20px; font-weight: 800; }
.lead-card__sub { font-size: 14px; color: var(--muted); margin-top: 6px; }

.field { margin-top: 14px; }
.field > label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; color: #333C69; }
.input, .select {
    width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px;
    font: inherit; font-size: 15.5px; color: var(--ink); background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.input::placeholder { color: #A2A9C2; }
.input.is-invalid { border-color: var(--magenta); background: var(--magenta-50); }
.field__err { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--magenta); }
.field__err.is-shown { display: block; }

/* Sinf tanlash — radio kartochkalar */
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grade { position: relative; }
.grade input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.grade span {
    display: block; text-align: center; padding: 13px 6px; border: 2px solid var(--line); border-radius: 14px;
    font-size: 14.5px; font-weight: 800; color: #333C69; cursor: pointer; transition: all .15s ease;
}
.grade input:checked + span { border-color: var(--cobalt); background: var(--cobalt-50); color: var(--cobalt); }
.grade input:focus-visible + span { box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }

.micro { margin-top: 12px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ── Statistika ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 24px 20px; box-shadow: var(--sh-sm); text-align: center;
}
.stat b { display: block; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.03em; color: var(--navy); }
.stat b.gold { color: var(--gold); }
.stat b.violet { color: var(--violet); }
.stat b.magenta { color: var(--magenta); }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* ── Taqqoslash ──────────────────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.compare__col { border-radius: var(--r-xl); padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); background: #fff; }
.compare__col--bad { background: var(--slate); }
.compare__col--good { border-color: #BFD6FF; background: linear-gradient(180deg, #F5F9FF, #fff); box-shadow: var(--sh); }
.compare__title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin-bottom: 18px; }
.compare__title i { font-style: normal; font-size: 22px; }
.compare ul { list-style: none; display: grid; gap: 12px; }
.compare li { display: flex; gap: 11px; font-size: 15px; color: #3B4468; }
.compare li::before { flex: none; font-weight: 900; }
.compare__col--bad li::before { content: '✕'; color: var(--magenta); }
.compare__col--good li::before { content: '✓'; color: var(--green); }

/* ── Dastur (timeline) ───────────────────────────────────────────────────── */
.timeline { display: grid; gap: 14px; max-width: 840px; margin: 0 auto; }
.tl {
    display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--sh-sm);
}
.tl__time { font-weight: 900; font-size: 16px; color: var(--cobalt); }
.tl__time small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.tl h3 { margin-bottom: 6px; }
.tl p { font-size: 14.5px; }
.tl--break { background: var(--gold-50); border-color: #FBE3B4; }
.tl--break .tl__time { color: var(--gold); }

/* ── Ikonli kartochkalar ─────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 26px 24px; box-shadow: var(--sh-sm);
}
.card__icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    font-size: 23px; margin-bottom: 16px; background: var(--cobalt-50);
}
.card__icon--gold { background: var(--gold-50); }
.card__icon--violet { background: var(--violet-50); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }

/* ── Narx bloki ──────────────────────────────────────────────────────────── */
.price { display: grid; grid-template-columns: 1fr .85fr; gap: 20px; align-items: stretch; }
.price__info { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); box-shadow: var(--sh-sm); }
.price__row { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.price__row:last-child { border-bottom: none; }
.price__row i { font-style: normal; font-size: 20px; }
.price__row b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: #7A83A6; }
.price__row span { font-size: 15.5px; font-weight: 700; }

.price__box {
    background: linear-gradient(160deg, var(--navy), #131A4D); color: #fff;
    border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 34px); display: flex; flex-direction: column;
}
.price__box .amount { font-size: clamp(32px, 4.6vw, 46px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.price__box .amount small { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 600; color: #AEB7DE; letter-spacing: 0; }
.price__box ul { list-style: none; margin: 22px 0; display: grid; gap: 11px; }
.price__box li { display: flex; gap: 10px; font-size: 15px; color: #DDE2F4; }
.price__box li::before { content: '✓'; color: var(--gold); font-weight: 900; }
.price__box .btn { margin-top: auto; }

/* ── Qadamlar ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: var(--sh-sm); }
.step::before {
    counter-increment: step; content: counter(step);
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: var(--cobalt); color: #fff; font-weight: 900; font-size: 17px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden; }
.faq summary {
    list-style: none; cursor: pointer; padding: 19px 54px 19px 22px; position: relative;
    font-size: 16px; font-weight: 800; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px;
    background: var(--cobalt-50); color: var(--cobalt); font-size: 19px; font-weight: 800;
}
.faq details[open] summary::after { content: '−'; background: var(--cobalt); color: #fff; }
.faq p { padding: 0 22px 20px; font-size: 15px; }

/* ── Yopuvchi blok ───────────────────────────────────────────────────────── */
.closing { background: linear-gradient(160deg, var(--navy), #141B52); color: #fff; }
.closing h2 { color: #fff; }
.closing p { color: #B9C0E0; }
.closing__grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(26px, 4vw, 48px); align-items: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: #12183F; color: #fff; padding: clamp(40px, 5vw, 60px) 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 30px; }
.footer p, .footer a, .footer li { color: #A9B1D4; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; color: #fff; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer .brand img { filter: brightness(0) invert(1); }
.footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #7C86B4; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.map { border-radius: var(--r-lg); overflow: hidden; min-height: 220px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }
.map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; display: block; }
.map__ph { padding: 24px; text-align: center; font-size: 13.5px; color: #98A1C8; }

/* ── Floating tugmalar ───────────────────────────────────────────────────── */
.floats { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none; flex-direction: column; gap: 10px; }
.float {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22); color: #fff;
}
.float svg { width: 26px; height: 26px; fill: currentColor; }
.float--call { background: var(--green); }
.float--tg { background: #229ED9; }
.float--call::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); animation: pulse 2.2s infinite;
}
.float { position: relative; }
@keyframes pulse {
    70% { box-shadow: 0 0 0 16px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* ── Muvaffaqiyat oynasi (modal) ─────────────────────────────────────────── */
.modal {
    position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center;
    padding: 20px; background: rgba(18, 24, 63, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal.is-open { display: flex; }
.modal__box {
    background: #fff; border-radius: var(--r-xl); padding: clamp(26px, 4vw, 38px); max-width: 440px; width: 100%;
    text-align: center; box-shadow: var(--sh-lg); animation: pop .28s cubic-bezier(.16, 1, .3, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__tick {
    width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
    background: #E9FBF0; color: var(--green); font-size: 34px;
}
.modal h3 { font-size: 22px; margin-bottom: 10px; }
.modal p { font-size: 15px; }
.modal .btn { margin-top: 22px; }

/* ── Moslashuvchanlik ────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .hero__grid { grid-template-columns: 1fr; }
    .lead-card--sticky { position: static; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .price { grid-template-columns: 1fr; }
    .closing__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .burger { display: flex; }
    .header__phone { display: none; }
    .nav {
        position: fixed; inset: 72px 0 auto 0; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 14px 18px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh); display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 12px; font-size: 16px; }
    .floats { display: flex; }
}

@media (max-width: 640px) {
    .compare { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .tl { grid-template-columns: 1fr; gap: 8px; }
    .footer__grid { grid-template-columns: 1fr; }
    .topbar { font-size: 12.5px; }
    .brand img { height: 26px; }
    .header__side .btn { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 420px) {
    .stats { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .header__side .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
