/* Sotuv sahifasi (/) uchun: hero, sinov kartasi, statistika, vaqt chizig'i, chat maketi */

/* ---------- hero ---------- */
.hero { padding: 64px 0 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 56px; } }
.hero-ru {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.55rem, 4vw, 2.55rem); line-height: 1.18; letter-spacing: -.03em;
  margin: 0 0 22px; min-height: 1.25em; word-break: break-word;
}
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 18px; max-width: 18em; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.micro { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.micro span { display: inline-flex; align-items: center; gap: 8px; }
.micro svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- sinov kartasi (hero) ---------- */
.try { padding: 26px; border-radius: 22px; box-shadow: var(--shadow-lg); position: relative; }
.try-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.try-head .ladder { width: 132px; }
.try .qtext { font-size: 1.5rem; margin-bottom: 18px; }
.try .opt { padding: 13px 15px; }
.try-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 46px; }
.try-note { font-size: .88rem; color: var(--muted); }

/* ---------- statistika ---------- */
.facts { padding: 0; margin-top: -20px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.fact { padding: 26px 24px; border-left: 1px solid var(--line-soft); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.04em; line-height: 1; margin-bottom: 8px; }
.fact span { color: var(--muted); font-size: .93rem; line-height: 1.35; display: block; }
@media (max-width: 860px) { .facts-grid { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); } }

/* ---------- bo'lim sarlavhalari ---------- */
.sec-head { max-width: 720px; margin: 0 0 44px; }
.sec-head.c { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- muammo / yechim ---------- */
.pn { width: 44px; height: 44px; border-radius: 12px; background: var(--mark); color: var(--on-mark); font-family: var(--display); font-weight: 800; display: grid; place-items: center; margin-bottom: 18px; }
.problem h3, .sol h3 { font-size: 1.12rem; margin-bottom: 10px; }
.problem p, .sol p { color: var(--muted); margin: 0; }
.sol .arrow { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.sol .arrow s { color: var(--muted); }
.sol .arrow b { background: var(--mark); color: var(--on-mark); padding: 3px 9px; border-radius: 5px; }
.sol .lead2 { font-weight: 600; margin-bottom: 8px !important; color: var(--ink) !important; }

/* ---------- zinapoya: yo'l ---------- */
.path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
@media (max-width: 960px) { .path { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .path { grid-template-columns: 1fr; } }
.pstep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: relative; }
.pstep:nth-child(1) { min-height: 230px; } .pstep:nth-child(2) { min-height: 262px; } .pstep:nth-child(3) { min-height: 294px; } .pstep:nth-child(4) { min-height: 326px; }
@media (max-width: 960px) { .pstep { min-height: 0 !important; } }
.pstep .lv { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.pstep .when { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 8px 0 14px; display: block; }
.pstep p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.pstep.goal { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.pstep.goal .lv { color: var(--mark); font-size: 1.5rem; } .pstep.goal .when, .pstep.goal p { color: color-mix(in srgb, var(--on-inverse) 80%, transparent); }
.path-note { margin-top: 22px; color: var(--muted); max-width: 46em; }

/* ---------- qanday ishlaydi: vaqt chizig'i ---------- */
.timeline { display: grid; gap: 0; max-width: 820px; }
.tl-item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-num { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.tl-item h3 { font-size: 1.15rem; margin: 6px 0 8px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tl-item p { margin: 0; color: var(--muted); max-width: 40em; }

/* ---------- dars: modullar + chat ---------- */
.lesson-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 960px) { .lesson-grid { grid-template-columns: 1fr; gap: 36px; } }
.modules { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: m; }
.modules li { counter-increment: m; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 18px 15px 62px; position: relative; }
.modules li::before { content: counter(m); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--mark); color: var(--on-mark); font-family: var(--display); font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.modules b { display: block; }
.modules span { color: var(--muted); font-size: .93rem; }

.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); max-width: 380px; margin: 0 auto; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.chat-top .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--display); font-weight: 700; position: relative; }
.chat-top .av::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: 7px; height: 3px; border-radius: 2px; background: var(--mark); }
.chat-top b { display: block; line-height: 1.2; } .chat-top span { font-size: .8rem; color: var(--muted); }
.chat-body { padding: 18px; display: grid; gap: 8px; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 88%; font-size: .95rem; width: fit-content; line-height: 1.4; }
.msg.bot { background: var(--accent-soft); border-bottom-left-radius: 5px; }
.msg.me { background: var(--accent); color: var(--on-accent); margin-left: auto; border-bottom-right-radius: 5px; }
.msg .ok { color: var(--ok); font-weight: 700; } .msg small { display: block; opacity: .6; font-size: .72rem; margin-top: 4px; }
.msg.voice { display: flex; gap: 10px; align-items: center; }
.msg.voice i { width: 3px; border-radius: 2px; background: currentColor; opacity: .7; display: inline-block; }

/* ---------- tariflar bloki ---------- */
.deal-note { margin-top: 26px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--r-lg); background: var(--inverse); color: var(--on-inverse); }
.deal-note b { font-family: var(--display); font-weight: 600; }
.deal-note span { display: block; opacity: .75; font-size: .92rem; margin-top: 2px; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .assure { grid-template-columns: 1fr; } }
.assure .card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.assure svg { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.assure b { display: block; margin-bottom: 4px; } .assure span { color: var(--muted); font-size: .94rem; }

/* ---------- yakuniy chaqiriq ---------- */
.final { background: var(--inverse); color: var(--on-inverse); border-radius: 28px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden; }
.final .hero-ru { min-height: 0; margin-bottom: 14px; }
.final p { opacity: .8; max-width: 32em; margin: 0 auto 28px; font-size: 1.1rem; }
.final .btn { background: var(--mark); color: var(--on-mark); box-shadow: none; }
.final .btn:hover { background: #ffe07a; }
@media (max-width: 640px) { .final { padding: 44px 22px; border-radius: 22px; } }
