/* bazarchi.uz — one stylesheet, no framework. Mobile first; dark mode follows the system. */
:root {
  --brand: #047857;
  --brand-ink: #065f46;
  --brand-soft: #e7f5ef;
  --on-brand: #ffffff;
  --ink: #0f1a15;
  --ink-2: #4a5a53;
  --line: #e2e8e5;
  --bg: #ffffff;
  --bg-2: #f4f7f5;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(15, 26, 21, 0.05), 0 8px 24px rgba(15, 26, 21, 0.06);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #10b981;
    --brand-ink: #34d399;
    --brand-soft: rgba(16, 185, 129, 0.14);
    --on-brand: #04291f; /* dark text on the bright dark-mode green: readable (white would be ~2.5:1) */
    --ink: #eef3f0;
    --ink-2: #a9b8b1;
    --line: #26322d;
    --bg: #0d1211;
    --bg-2: #121a17;
    --card: #151e1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(4, 120, 87, 0.28); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { border-color: var(--line); background: var(--card); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--light { background: #fff; color: #065f46; }
.btn--big { padding: 15px 26px; font-size: 1.05rem; }
.btn--small { padding: 8px 14px; font-size: 0.95rem; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.logo img { border-radius: 9px; }
.top__nav { display: none; gap: 22px; margin-left: 24px; }
.top__nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.top__nav a:hover { color: var(--ink); }
.top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.langs { position: relative; }
.langs summary {
  list-style: none; cursor: pointer; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 0.9rem; font-weight: 600; background: var(--card);
}
.langs summary::-webkit-details-marker { display: none; }
.langs__menu {
  position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 150px;
}
.langs__menu a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 0.95rem; }
.langs__menu a:hover, .langs__menu a[aria-current] { background: var(--brand-soft); color: var(--brand-ink); }

/* hero */
.hero { padding: 48px 0 56px; background:
  radial-gradient(900px 400px at 85% -10%, var(--brand-soft), transparent 60%),
  radial-gradient(600px 300px at -10% 110%, var(--brand-soft), transparent 60%); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { color: var(--brand-ink); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.hero__lead { color: var(--ink-2); font-size: 1.12rem; margin-top: 18px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-weight: 600; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points svg { color: var(--brand); }

/* phone mock-up (pure HTML) */
.phone {
  justify-self: center; width: min(330px, 100%); padding: 12px; border-radius: 40px;
  background: linear-gradient(160deg, #1f2b26, #0b1210); box-shadow: 0 30px 70px rgba(4, 50, 36, 0.35);
}
.phone__screen { border-radius: 30px; background: #eef3f0; padding: 18px 14px 22px; display: grid; gap: 12px; color: #0f1a15; }
.chat { padding: 10px 14px; border-radius: 16px; font-size: 0.9rem; line-height: 1.45; max-width: 85%; }
.chat b { display: block; font-size: 0.78rem; color: #047857; margin-bottom: 2px; }
.chat--in { background: #fff; justify-self: start; border-bottom-left-radius: 6px; }
.chat--out { background: #d6f2e5; justify-self: end; border-bottom-right-radius: 6px; }
.order { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 6px 20px rgba(15, 26, 21, 0.08); font-size: 0.9rem; }
.order__head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 8px; }
.order__row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed #e2e8e5; color: #4a5a53; }
.order__code { margin-top: 10px; background: #e7f5ef; border-radius: 12px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.order__code b { font-size: 1.3rem; letter-spacing: 0.18em; color: #047857; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; }
.pill--ready { background: #047857; color: #fff; }

/* sections */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-2); }
.section h2 { max-width: 720px; }
.section__lead { color: var(--ink-2); font-size: 1.08rem; margin-top: 12px; max-width: 640px; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__n { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; color: var(--brand-soft); line-height: 1; }
.step__icon, .card__icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 14px; flex-shrink: 0;
}
.step p, .card p, .list p { color: var(--ink-2); margin-top: 6px; }

.cards { display: grid; gap: 16px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

.split { display: grid; gap: 32px; align-items: center; }
.split .btn { margin-top: 24px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.list .card__icon { margin: 0; }

/* plans */
.plans { display: grid; gap: 18px; margin-top: 32px; }
.plan { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan--pro { border-color: var(--brand); box-shadow: 0 18px 44px rgba(4, 120, 87, 0.18); }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--brand); color: var(--on-brand); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.4rem; }
.plan__lead { color: var(--ink-2); min-height: 3.2em; }
.plan__price b { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; }
.plan__price span { color: var(--ink-2); font-weight: 600; }
.plan__year { color: var(--brand-ink); font-weight: 700; font-size: 0.95rem; margin-top: -8px; }
.plan__limits { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.plan__limits li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.plan .btn { margin-top: auto; }
.note { color: var(--ink-2); margin-top: 22px; font-size: 0.95rem; }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 24px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 16px; }

/* final call */
.cta { padding: 16px 0 64px; }
.cta__box { background: linear-gradient(135deg, #047857, #065f46); color: #fff; border-radius: 28px; padding: 44px 24px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.cta__box p { opacity: 0.9; max-width: 560px; }
.cta__box .btn { margin-top: 8px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-2); font-size: 0.95rem; }
.foot__row { display: grid; gap: 20px; }
.foot .logo { color: var(--ink); margin-bottom: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--brand-ink); }

@media (min-width: 720px) {
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
  .foot__row { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
}
@media (min-width: 960px) {
  .top__nav { display: flex; }
  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .section { padding: 88px 0; }
}
@media (max-width: 420px) {
  .hero__cta .btn { width: 100%; }
  .top__actions .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq summary::after { transition: none; }
}
