:root {
    --brand: #6366f1;
    --brand-2: #8b5cf6;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --ok: #16a34a;
    --busy: #ef4444;
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
.container { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* Menyu */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.lang-switch a { padding: 6px 9px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch a + a { border-left: 1px solid var(--line); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: #eef2ff; color: var(--brand); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-links a:hover { color: var(--ink); }

/* Rozilik belgisi (ariza formasi) */
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.consent a { color: var(--brand); }

/* Hujjatlar: oferta, maxfiylik siyosati */
.legal { padding: 40px 0 72px; }
.legal-inner { max-width: 840px; }
.legal-back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-back:hover { color: var(--brand); }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal-edition { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.legal-doc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 40px); color: #334155; }
.legal-doc h2 { font-size: 19px; color: var(--ink); margin: 28px 0 10px; }
.legal-doc p { margin: 0 0 10px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 22px; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc a { color: var(--brand); }
.missing { background: #fef3c7; color: #92400e; border-radius: 6px; padding: 0 6px; font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: 0 0 14px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.legal-doc th { color: var(--muted); font-weight: 600; }
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 600px) {
    .requisites { grid-template-columns: 1fr; gap: 0; }
    .requisites dd { margin-bottom: 10px; }
}

@media (max-width: 420px) {
    .nav-inner { gap: 8px; }
    .nav-actions { gap: 8px; }
    .brand { font-size: 18px; gap: 8px; }
    .lang-switch a { padding: 6px 7px; }
}

/* Tugmalar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Asosiy blok */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #eef2ff; color: var(--brand); font-weight: 600; font-size: 13px; margin-bottom: 16px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

/* Panel namunasi */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12); padding: 20px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 700; }
.mock-top span { font-weight: 500; color: var(--muted); font-size: 13px; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.room { border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.room .name { font-weight: 700; font-size: 14px; }
.room .state { font-size: 12px; font-weight: 600; }
.room.busy { background: #fef2f2; border-color: #fecaca; }
.room.busy .state { color: var(--busy); }
.room.free { background: #f0fdf4; border-color: #bbf7d0; }
.room.free .state { color: var(--ok); }
.room .time { font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 800; margin-top: 4px; }
.room .sum { font-size: 12px; color: var(--muted); }
.mock-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.stat small { display: block; color: var(--muted); font-size: 12px; }
.stat b { font-size: 16px; }

/* Bo'limlar */
section { padding: 72px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef2ff; color: var(--brand); margin-bottom: 14px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Tariflar */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15); }
.plan .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 34px; font-weight: 800; margin: 12px 0 0; letter-spacing: -0.02em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.plan .btn { margin-top: auto; }
.note { text-align: center; color: var(--muted); margin-top: 20px; font-size: 14px; }

/* Savollar */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Aloqa */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.contact-grid h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 12px; }
.contact-grid > div > p { color: var(--muted); margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list span { display: block; color: var(--muted); font-size: 13px; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--brand); font-size: 17px; }
.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(99, 102, 241, 0.35); border-color: var(--brand); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 13px; margin: 0; }
.alert { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-err div + div { margin-top: 4px; }

footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; }

@media (max-width: 900px) {
    .hero-grid, .contact-grid { grid-template-columns: 1fr; }
    .features, .steps, .plans { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .plans { gap: 28px 20px; }
}

@media (max-width: 600px) {
    .features, .steps, .plans, .row-2 { grid-template-columns: 1fr; }
    .rooms, .mock-bottom { grid-template-columns: 1fr 1fr; }
    section { padding: 56px 0; }
    .hero { padding: 40px 0; }
    .lead { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
