/* ===== Xiva Avto Liders Express — qora / qizil / kumush ===== */
:root {
  --bg: #0a0a0b;
  --bg-alt: #111114;
  --card: #16161a;
  --card-2: #1d1d22;
  --line: #2a2a31;
  --ink: #ffffff;
  --text: #c8cad0;
  --muted: #8d919b;
  --accent: #e30613;
  --accent-dark: #b4040f;
  --accent-soft: rgba(227, 6, 19, 0.14);
  --chrome: linear-gradient(180deg, #ffffff 0%, #e9ebee 38%, #9ca1aa 52%, #f4f5f7 70%, #c5c9cf 100%);
  --green: #22c55e;
  --red: #ef4444;
  --radius: 18px;
  --shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(227, 6, 19, .45), 0 18px 50px -14px rgba(227, 6, 19, .55);
  --header-h: 72px;
  --font-head: "Russo One", "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Ohista aylantirish JavaScript orqali boshqariladi (js/app.js) */
html { scroll-padding-top: var(--header-h); }

/* Transformatsiya effekti — fayl oxirida */
body {
  margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--font-head); font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.chrome, .hero h1, .section__head h2, .cta h2 {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Tugmalar ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; font-weight: 800; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; text-transform: uppercase; letter-spacing: .03em;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(180deg, #ff1f2c, var(--accent) 55%, var(--accent-dark)); color: #fff; box-shadow: 0 10px 28px -10px rgba(227,6,19,.7); }
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(227,6,19,.95); }
.btn--ghost { border-color: rgba(255,255,255,.28); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; }
.btn--dark { background: var(--card-2); color: #fff; border-color: var(--line); }
.btn--dark:hover { border-color: var(--accent); }
.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 8, 9, .86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(227, 6, 19, .3);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, #ff2a36, var(--accent) 50%, #8a030b);
  box-shadow: 0 6px 18px -6px rgba(227,6,19,.8);
}
.brand__mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* Tayyor logotip rasmini fon va ramkasiz ko'rsatish */
.brand__mark--logo { background: none; box-shadow: none; border-radius: 0; width: 72px; height: 44px; margin: -2px 0; }
.brand__mark--logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(227,6,19,.35)); }
.brand__name { font-family: var(--font-head); font-size: 21px; color: #fff; letter-spacing: .01em; }
.brand__name b { font-weight: 400; color: #ff2a36; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  color: rgba(255,255,255,.72); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; transition: .2s;
}
.nav a:hover { color: #fff; background: var(--accent-soft); }
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}
.nav a.is-active { color: #fff; }
.nav a.is-active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 10px; }

/* Til tanlagich */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.lang__btn:hover { border-color: var(--accent); }
.lang__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang__chev { width: 14px !important; height: 14px !important; transition: transform .2s; }
.lang.open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; z-index: 60;
  list-style: none; margin: 0; padding: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease;
}
.lang.open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; color: #fff; text-align: left;
}
.lang__menu button:hover { background: var(--card-2); }
.lang__menu button[aria-selected="true"] { background: var(--accent-soft); }
.lang__menu .code { min-width: 38px; padding: 2px 6px; border-radius: 6px; background: var(--accent); font-size: 12px; text-align: center; }

.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 64px) 0 88px;
  background:
    radial-gradient(700px 440px at 80% 40%, rgba(227, 6, 19, .3), transparent 65%),
    radial-gradient(500px 300px at 5% 100%, rgba(227, 6, 19, .1), transparent 70%),
    #060607;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background:
    linear-gradient(100deg, transparent 0 48%, rgba(227,6,19,.5) 48.2%, transparent 48.6%),
    linear-gradient(100deg, transparent 0 60%, rgba(255,255,255,.12) 60.1%, transparent 60.4%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 8px;
  background: var(--accent-soft); color: #ff5a63; font-weight: 700; font-size: 13px; border: 1px solid rgba(227,6,19,.45);
}
.hero h1 {
  font-family: "Montserrat", var(--font-head); font-weight: 900; letter-spacing: .04em;
  font-size: clamp(34px, 4.8vw, 58px); margin: 22px 0 30px; text-transform: uppercase; line-height: 1.1;
}

.hero__text { color: rgba(255,255,255,.72); font-size: 18px; max-width: 560px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; max-width: 180px; padding-left: 14px; border-left: 3px solid var(--accent); }
.stats strong { font-family: var(--font-head); font-weight: 400; font-size: 32px; color: #fff; line-height: 1.1; }
.stats span { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.4; margin-top: 4px; }
.hero__checks { margin-top: 28px; }

/* Telefon namunasi */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; padding: 12px; border-radius: 40px;
  background: linear-gradient(160deg, #3a3a42, #121215 40%, #26262c);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px #3a3a42, 0 0 80px -20px rgba(227,6,19,.5);
  transform: rotate(3deg); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(3deg) translateY(-10px); } }
.phone__notch { position: absolute; top: 20px; left: 50%; width: 90px; height: 22px; margin-left: -45px; border-radius: 12px; background: #050506; z-index: 2; }
.phone__screen { border-radius: 30px; background: var(--card); padding: 52px 16px 22px; min-height: 520px; }
.mock__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock__mode { font-family: var(--font-head); color: #fff; font-size: 14px; text-transform: uppercase; }
.mock__timer { font-family: var(--font-head); color: #fff; padding: 4px 10px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; }
.mock__meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.mock__err { color: #fca5a5; }
.mock__bar { height: 5px; border-radius: 9px; background: var(--card-2); margin-bottom: 16px; overflow: hidden; }
.mock__bar span { display: block; width: 35%; height: 100%; background: linear-gradient(90deg, var(--accent-dark), #ff3b46); }
.mock__q { color: #fff; font-weight: 800; font-size: 15px; line-height: 1.35; margin-bottom: 14px; }
.mock__opt {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 8px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--card-2); font-size: 13px; font-weight: 600; color: #fff;
}
.mock__opt b { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: #2a2a31; font-size: 12px; }
.mock__opt.is-ok { border-color: var(--green); background: rgba(34,197,94,.1); }
.mock__opt.is-ok b { background: var(--green); }
.mock__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 16px; }
.mock__grid i { aspect-ratio: 1; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); }
.mock__grid i.ok { background: rgba(34,197,94,.25); border-color: rgba(34,197,94,.6); }
.mock__grid i.bad { background: rgba(239,68,68,.25); border-color: rgba(239,68,68,.6); }
.mock__grid i.cur { border-color: #fff; }
.float-card {
  position: absolute; left: 4%; bottom: 60px; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 12px; background: rgba(22,22,26,.95); border: 1px solid var(--line);
  box-shadow: var(--shadow); color: #fff; font-size: 14px;
}
.float-card span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--green); font-weight: 800; font-size: 13px; }

/* ===== Bo'limlar ===== */
.section { position: relative; padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section__head h2, .split__text h2 { font-size: clamp(28px, 3.6vw, 42px); text-transform: uppercase; }
.section__head h2::after {
  content: ""; display: block; width: 72px; height: 4px; margin: 18px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ff4d57); transform: skewX(-20deg);
}
.section__head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* Imkoniyatlar */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feature::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(227,6,19,.5); box-shadow: var(--shadow); }
.feature:hover::before { width: 100%; }
.feature__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); border: 1px solid rgba(227,6,19,.35);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: #ff3b46; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Haydovchilik kurslari */
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.course-card { display: grid; align-content: start; gap: 18px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.course-card h3 { color: #fff; font-size: 20px; }
.course-card__price { color: #fff; font-family: var(--font-head); font-size: clamp(30px, 4vw, 38px); line-height: 1; }
.course-card__price small { color: var(--muted); font: 700 14px "Manrope", sans-serif; }
.course-address { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; color: #fff; }

/* Avtomaktablar uchun */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__sub { color: var(--muted); font-size: 17px; margin: 16px 0 28px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; color: #fff; font-weight: 600; font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.panel { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow), 0 0 80px -30px rgba(227,6,19,.5); }
.panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #fff; font-size: 17px; }
.panel__count { font-family: var(--font-head); padding: 2px 10px; border-radius: 8px; background: var(--accent-soft); color: #ff5a63; font-size: 14px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 10px; }
.prow:last-child { margin-bottom: 0; }
.prow > i {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  font-family: var(--font-head); color: #fff; background: radial-gradient(circle at 30% 25%, #ff3b46, var(--accent) 45%, #5c0208);
}
.prow > div { flex: 1; min-width: 0; }
.prow b { color: #fff; font-size: 14px; }
.prow__bar { height: 6px; border-radius: 9px; background: #2a2a31; margin-top: 6px; overflow: hidden; }
.prow__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-dark), #ff3b46); }
.prow em { flex: none; font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #2a2a31; color: var(--muted); }
.prow em.ok { background: rgba(34,197,94,.12); color: #86efac; }

/* Qanday ishlaydi */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -21px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px);
}
.steps__n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  font-family: var(--font-head); font-size: 20px; color: #fff; background: linear-gradient(145deg, #ff2a36, var(--accent) 50%, #8a030b);
}
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Tariflar */
.price-tabs {
  display: flex; width: max-content; max-width: 100%; margin: -24px auto 40px; padding: 5px; gap: 4px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line);
}
.price-tabs__item {
  padding: 10px 20px; border-radius: 8px; border: 0; background: none; color: var(--muted);
  font-weight: 800; font-size: 14px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.price-tabs__item:hover { color: #fff; }
.price-tabs__item.is-active { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(227,6,19,.8); }
.billing {
  display: flex; width: max-content; max-width: 100%; margin: -16px auto 36px; padding: 3px; gap: 2px;
  border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line);
}
.billing[hidden] { display: none; }
.billing__item {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 0;
  background: none; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: .2s; white-space: nowrap;
}
.billing__item:hover { color: #fff; }
.billing__item.is-active { background: #fff; color: #111; }
.billing__save { padding: 2px 7px; border-radius: 999px; background: rgba(34,197,94,.18); color: #4ade80; font-size: 11px; font-weight: 800; }
.billing__item.is-active .billing__save { background: var(--green); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.plan--popular { background: linear-gradient(180deg, #2a0a0d 0%, var(--card) 60%); border-color: var(--accent); box-shadow: var(--glow); }
.plan__tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.plan h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.plan__students { color: #ff5a63; font-weight: 700; margin-top: 4px; }
.plan__price { margin: 20px 0 22px; font-family: var(--font-head); font-size: 34px; color: #fff; line-height: 1; }
.plan__price small { display: block; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--accent-soft); color: #ff5a63; margin-top: 2px; }
.plan li.is-off { color: #55585f; }
.plan li.is-off::before { content: "–"; background: var(--card-2); color: #55585f; }

/* CTA */
.section--cta {
  background:
    radial-gradient(600px 300px at 50% 100%, rgba(227, 6, 19, .3), transparent 70%),
    var(--bg-alt);
  border-top: 1px solid rgba(227,6,19,.25);
}
.cta { text-align: center; max-width: 720px; }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); text-transform: uppercase; }
.cta p { color: var(--muted); font-size: 17px; margin: 16px 0 30px; }
.cta__btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { background: #050506; color: var(--muted); padding: 24px 0; font-size: 14px; border-top: 1px solid rgba(227,6,19,.3); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand__name { font-size: 18px; }

/* Bildirishnoma */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: max-content; max-width: calc(100% - 32px); }
.toast {
  padding: 13px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #fff; text-align: center;
  background: var(--card-2); border: 1px solid rgba(227,6,19,.6); box-shadow: var(--shadow);
  animation: toastIn .25s ease; transition: opacity .3s, transform .3s;
}
.toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ===== Moslashuvchanlik ===== */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 9px; font-size: 13px; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 12px 16px 20px; background: #0a0a0b; border-bottom: 1px solid var(--accent);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .hero__inner, .split { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 12px; }
  .steps, .plans, .course-grid { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
  .plans { max-width: 460px; margin-inline: auto; gap: 28px; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
  .features { grid-template-columns: 1fr; }
  .price-tabs { width: 100%; }
  .price-tabs__item { flex: 1; padding: 10px 8px; font-size: 13px; white-space: normal; }
  .stats { gap: 18px; }
  .stats strong { font-size: 26px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .brand__name { font-size: 15px; }
  .brand__mark--logo { width: 46px; height: 30px; margin: 0; }
  .header__inner { gap: 10px; }
  .header__actions { gap: 6px; margin-left: auto; }
  .lang__btn span, .lang__chev { display: none; }
  .lang__btn { padding: 0 10px; }
  .phone { width: 260px; }
  .phone__screen { min-height: 460px; }
  .float-card { left: 0; bottom: 30px; }
}

@media (max-width: 380px) {
  .header .btn--sm svg { display: none; }
  .header .btn--sm { padding: 10px 12px; }
  .brand__mark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .phone { animation: none; }
}

/* =====================================================================
 * TRANSFORMATSIYA EFFEKTI
 * Elementlar mashinadek qismlardan yig'ilib, o'z joyiga "taq" etib tushadi.
 * Har bir element faqat bir marta yig'iladi (js/app.js).
 * ===================================================================== */
html.tf-boot body { opacity: 0; }
.tf { opacity: 0; }

.tf-go {
  animation-duration: 1.15s;
  animation-fill-mode: both;
  animation-iteration-count: 1;
  animation-delay: var(--tf-d, 0ms);
  animation-timing-function: cubic-bezier(.2, .7, .2, 1);
  will-change: transform, clip-path, opacity, filter;
  backface-visibility: hidden;
}
.tf-go.tf-panel { animation-name: tf-panel; }
.tf-go.tf-slide { animation-name: tf-slide; animation-duration: .9s; }
.tf-go.tf-btn   { animation-name: tf-btn; animation-duration: 1s; }
.tf-go.tf-title { animation-name: tf-title; animation-duration: 1.2s; }
.tf-go.tf-phone { animation-name: tf-phone; animation-duration: 1.8s; }

/* Panel / karta: ingichka chiziqdan ochilib, 3D aylanib joyiga tushadi */
@keyframes tf-panel {
  0% {
    opacity: 0;
    transform: perspective(1000px) translate3d(0, 70px, -260px) rotateX(-80deg) rotateY(14deg) scale(.72);
    clip-path: inset(49% 0 49% 0 round 14px);
    filter: brightness(2.6) saturate(0);
  }
  20% {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 40px, -150px) rotateX(-55deg) rotateY(10deg) scale(.82);
    clip-path: inset(48% 0 48% 0 round 14px);
  }
  48% {
    transform: perspective(1000px) translate3d(0, -12px, -40px) rotateX(16deg) rotateY(-6deg) scale(.96);
    clip-path: inset(0 0 0 0 round 14px);
    filter: brightness(1.7) saturate(.4);
  }
  64% {
    transform: perspective(1000px) translate3d(0, 4px, 0) rotateX(-7deg) rotateY(2deg) scale(1.03);
    filter: brightness(1.2) saturate(1);
    box-shadow: 0 0 0 1px rgba(227, 6, 19, .95), 0 0 46px rgba(227, 6, 19, .55);
  }
  82% { transform: perspective(1000px) rotateX(2deg) scale(.995); }
  100% { opacity: 1; transform: none; clip-path: inset(-30% -30% -30% -30%); filter: none; }
}

/* Matn satri: mexanik plastinka yondan siljib kirib qulflanadi */
@keyframes tf-slide {
  0% {
    opacity: 0;
    transform: translateX(calc(var(--tf-x, 1) * -70px)) skewX(calc(var(--tf-x, 1) * -28deg)) scaleX(.35);
    clip-path: inset(0 100% 0 0);
    filter: brightness(2.4);
  }
  42% {
    opacity: 1;
    transform: translateX(calc(var(--tf-x, 1) * 12px)) skewX(calc(var(--tf-x, 1) * 9deg)) scaleX(1.05);
    clip-path: inset(0 0 0 0);
    filter: brightness(1.4);
  }
  62% { transform: translateX(calc(var(--tf-x, 1) * -5px)) skewX(calc(var(--tf-x, 1) * -3deg)) scaleX(.99); filter: none; }
  80% { transform: translateX(calc(var(--tf-x, 1) * 2px)) skewX(calc(var(--tf-x, 1) * 1deg)); }
  100% { opacity: 1; transform: none; clip-path: inset(-20% -20% -20% -20%); filter: none; }
}

/* Tugma: markazdan ikki tomonga yoyilib ochiladi */
@keyframes tf-btn {
  0% {
    opacity: 0;
    transform: perspective(600px) rotateY(90deg) scale(.5);
    clip-path: inset(0 50% 0 50%);
    filter: brightness(3);
  }
  45% {
    opacity: 1;
    transform: perspective(600px) rotateY(-20deg) scale(1.08);
    clip-path: inset(0 0 0 0);
    filter: brightness(1.8);
  }
  65% { transform: perspective(600px) rotateY(8deg) scale(.97); filter: brightness(1.1); }
  82% { transform: perspective(600px) rotateY(-3deg) scale(1.01); }
  100% { opacity: 1; transform: none; clip-path: inset(-40% -40% -40% -40%); filter: none; }
}

/* Sarlavha: harflar yoyilgan holatdan yig'ilib, joyiga qulflanadi (harf aylanishi JS'da) */
@keyframes tf-title {
  0% {
    opacity: 0;
    transform: perspective(800px) translateY(34px) rotateX(90deg) scaleY(.6);
    letter-spacing: .5em;
    filter: blur(6px) brightness(2.5);
  }
  38% {
    opacity: 1;
    transform: perspective(800px) translateY(-6px) rotateX(-16deg) scaleY(1.06);
    letter-spacing: .14em;
    filter: blur(0) brightness(1.5);
  }
  62% { transform: perspective(800px) rotateX(6deg) scaleY(.98); filter: brightness(1.1); }
  80% { transform: perspective(800px) rotateX(-2deg); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* Telefon namunasi: 3D aylanib, qismlardan yig'iladi */
@keyframes tf-phone {
  0% {
    opacity: 0;
    transform: perspective(1200px) translate3d(140px, 60px, -320px) rotateY(-100deg) rotateX(28deg) scale(.6) rotate(3deg);
    clip-path: inset(0 48% 0 48% round 40px);
    filter: brightness(3) saturate(0);
  }
  28% {
    opacity: 1;
    transform: perspective(1200px) translate3d(60px, 20px, -160px) rotateY(-62deg) rotateX(16deg) scale(.78) rotate(3deg);
    clip-path: inset(0 30% 0 30% round 40px);
  }
  52% {
    transform: perspective(1200px) translate3d(0, -14px, 0) rotateY(18deg) rotateX(-8deg) scale(1.04) rotate(3deg);
    clip-path: inset(0 0 0 0 round 40px);
    filter: brightness(1.6) saturate(.6);
  }
  70% { transform: perspective(1200px) rotateY(-7deg) rotateX(3deg) scale(.99) rotate(3deg); filter: brightness(1.1); }
  86% { transform: perspective(1200px) rotateY(2deg) rotate(3deg); }
  100% { opacity: 1; transform: rotate(3deg); clip-path: inset(-20% -20% -20% -20%); filter: none; }
}

/* =====================================================================
 * SARLAVHALAR: metall bo'laklardan yig'ilish (js/title-fx.js)
 * Yig'ilish Canvas'da bo'ladi, keyin sarlavha oddiy matn sifatida qoladi:
 * so'zlar oq / metall qizil / kumush, ustidan vaqti-vaqti bilan yaltirash o'tadi.
 * ===================================================================== */
.tfx.tfx {
  background: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: opacity .6s ease, translate .45s cubic-bezier(.22, .61, .36, 1);
}
.tfx.tfx-wait { opacity: 0; }
.tfx.tfx-show { opacity: 1; }

.tfx-word {
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-repeat: no-repeat;
  background-size: 260% 100%, 100% 100%;
  background-position: 160% 0, 0 0;
  animation: tfx-sheen 6.5s ease-in-out infinite;
  animation-delay: var(--sheen-d, 0s);
}
.tfx-w0 {
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,.85) 50%, transparent 58%),
    linear-gradient(180deg, #FFFFFF, #E5E7EB);
}
.tfx-w1 {
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255,210,210,.9) 50%, transparent 58%),
    linear-gradient(180deg, #EF4444 0%, #DC2626 42%, #B91C1C 58%, #7F1D1D 100%);
}
.tfx-w2 {
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,.9) 50%, transparent 58%),
    linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 38%, #A8B3C2 55%, #F1F5F9 70%, #CBD5E1 100%);
}
@keyframes tfx-sheen {
  0%, 74% { background-position: 160% 0, 0 0; }
  100% { background-position: -60% 0, 0 0; }
}

/* Bosh sarlavhaning oxirgi so'zi ostidagi qirrali qizil chiziq */
.tfx-bar { position: relative; }
.tfx-bar::after {
  content: ""; position: absolute; left: 0; right: .04em; bottom: -.14em; height: .085em;
  background: linear-gradient(90deg, #7F1D1D, #EF4444 35%, #B91C1C);
  -webkit-background-clip: border-box; background-clip: border-box;
  transform: skewX(-35deg); transform-origin: left bottom;
}

.tfx-canvas { position: absolute; left: 0; z-index: 5; pointer-events: none; }

/* Oddiy matnlar yig'ilguncha ko'rinmaydi (qutisi — tugma, karta foni — ko'rinib turadi) */
.tfx-hide, .tfx-hide * { color: transparent !important; -webkit-text-fill-color: transparent !important; }
.tfx-hide svg { opacity: 0; }
.footer { position: relative; }

/* =====================================================================
 * KIRISH / RO'YXATDAN O'TISH OYNASI
 * ===================================================================== */
.auth {
  width: min(440px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0;
  border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(227,6,19,.25), 0 0 80px -30px rgba(227,6,19,.6);
}
.auth[open] { animation: authIn .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes authIn {
  from { opacity: 0; transform: perspective(800px) translateY(30px) rotateX(-18deg) scale(.94); clip-path: inset(48% 0 48% 0 round 22px); }
  60% { clip-path: inset(0 0 0 0 round 22px); }
  to { opacity: 1; transform: none; }
}
.auth::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.auth__box { position: relative; padding: 28px 28px 24px; }
.auth__close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: #fff; cursor: pointer;
}
.auth__close:hover { border-color: var(--accent); }
.auth__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.auth__brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 20px; }
.auth__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); margin-bottom: 18px; }
.auth__tab {
  flex: 1; padding: 10px 8px; border: 0; border-radius: 9px; background: none; color: var(--muted);
  font-weight: 800; font-size: 14px; cursor: pointer; transition: .2s;
}
.auth__tab:hover { color: #fff; }
.auth__tab.is-active { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(227,6,19,.8); }
.auth__form { display: grid; gap: 14px; }
.auth__form[hidden], .auth__error[hidden], .auth__flash[hidden] { display: none; }
.auth__form h2 { font-family: var(--font-head); font-weight: 400; font-size: 20px; text-transform: uppercase; color: #fff; text-align: center; }
.auth .field { display: grid; gap: 6px; }
.auth .field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.auth input {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-alt); color: #fff; font: inherit; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.auth input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.phone-input { display: flex; align-items: stretch; }
.phone-input__code {
  display: grid; place-items: center; padding: 0 12px; border-radius: 10px 0 0 10px; border: 1px solid var(--line); border-right: 0;
  background: var(--card-2); color: #fff; font-weight: 800; font-size: 16px;
}
.phone-input input { border-radius: 0 10px 10px 0; letter-spacing: .04em; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer;
}
.pw__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.pw__toggle:hover, .pw__toggle.is-on { color: #ff4d57; }
.auth__forgot {
  justify-self: end; margin-top: -6px; display: inline-flex; align-items: center; gap: 6px;
  color: #ff4d57; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.auth__forgot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.auth__forgot:hover { text-decoration: underline; }
.auth__hint { margin-top: -6px; color: var(--muted); font-size: 13px; }
.auth__error, .auth__flash {
  padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.45); color: #fecaca;
}
.auth__flash { margin-bottom: 14px; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.45); color: #fde68a; }
.auth__switch { text-align: center; color: var(--muted); font-size: 14px; }
.auth__switch button { border: 0; background: none; color: #ff4d57; font: inherit; font-weight: 800; cursor: pointer; padding: 0; }
.auth__switch button:hover { text-decoration: underline; }
.auth__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 12.5px; text-align: center; }
.auth__note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #ff4d57; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 480px) { .auth__box { padding: 24px 18px 20px; } }

/* =====================================================================
 * SHAXSIY KABINET (kabinet/)
 * ===================================================================== */
.cab { min-height: 100vh; padding: calc(var(--header-h) + 40px) 0 64px;
  background: radial-gradient(700px 400px at 85% 0%, rgba(227,6,19,.2), transparent 65%), var(--bg); }
.cab__head { margin-bottom: 28px; }
.cab__head h1 { font-family: "Montserrat", var(--font-head); font-weight: 900; font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase; color: #fff; }
.cab__head h1 b { color: #ff2a36; font-weight: 900; }
.cab__head p { color: var(--muted); margin-top: 8px; font-size: 17px; }
.cab__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.cab-card { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.cab-card h2 { font-family: var(--font-head); font-weight: 400; font-size: 18px; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.cab-card--soon { position: relative; overflow: hidden; background: linear-gradient(160deg, #2a0a0d, var(--card) 65%); border-color: rgba(227,6,19,.55); }
.cab-card--soon p { color: var(--muted); }
.cab-card__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-soft); border: 1px solid rgba(227,6,19,.4); }
.cab-card__icon svg { width: 26px; height: 26px; fill: none; stroke: #ff3b46; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cab-list { display: grid; gap: 10px; margin: 0; }
.cab-list div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--card-2); }
.cab-list dt { color: var(--muted); }
.cab-list dd { margin: 0; color: #fff; font-weight: 700; text-align: right; }
.cab-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--line); color: var(--muted); font-size: 13.5px; }
.cab-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: #ff4d57; stroke-width: 2; stroke-linecap: round; }
.cab-loading { color: var(--muted); padding: 40px 0; text-align: center; }
@media (max-width: 900px) { .cab__grid { grid-template-columns: 1fr; } }

/* ===== Faollik raqamlari ===== */
.live-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 760px; margin: 0 auto; }
#stats[hidden] { display: none; }
.stat { padding: 26px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 42px); color: #fff; font-weight: 400; }
.stat:first-child b { color: #ff3b46; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ===== Fikrlar ===== */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.rev-card { padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.rev-card__head { display: flex; align-items: center; gap: 12px; }
.rev-card__head > i { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; background: radial-gradient(circle at 30% 30%, #ff4a55, var(--accent-dark)); }
.rev-card__head > div { flex: 1; min-width: 0; display: grid; }
.rev-card__head b { color: #fff; }
.rev-card__head small { color: var(--muted); font-size: 12px; }
.rev-card__stars { color: #ffb020; letter-spacing: 1px; white-space: nowrap; }
.rev-card__stars i { font-style: normal; color: var(--line); }
.rev-card p { margin: 14px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.rev-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); }
.rev-form { max-width: 640px; margin: 40px auto 0; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; }
.rev-form h3 { color: #fff; margin: 0; }
.rev-stars { display: flex; gap: 4px; }
.rev-stars button { border: 0; background: none; padding: 0 2px; font-size: 30px; line-height: 1; color: var(--line); cursor: pointer; transition: color .15s, transform .15s; }
.rev-stars button.is-on { color: #ffb020; }
.rev-stars button:hover { transform: scale(1.15); }
.rev-form textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: #fff; font: inherit; }
.rev-form textarea:focus { outline: none; border-color: var(--accent); }
.rev-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rev-form__msg { margin: 0; color: #ff6b74; font-size: 14px; }
.rev-form__msg.ok { color: var(--green); }


/* Avtomaktablar: tariflar o'rniga admin Telegrami */
.plan--contact { grid-column: 1 / -1; justify-self: center; width: min(100%, 420px); display: grid; justify-items: center; gap: 12px; text-align: center; text-decoration: none; }
.plan--contact svg { width: 56px; height: 56px; fill: #2aabee; }
.plan--contact .btn { margin-top: 6px; }

.footer__link { color: var(--muted); text-decoration: underline; }
.footer__link:hover { color: #fff; }
