:root {
  --bg: #f5efe6;
  --bg-alt: #efe6da;
  --card: #fffcf7;
  --text: #7a5a00;
  --muted: #866200;
  --line: #ebe1d4;
  --accent: #c65a24;
  --btn-bg: #2e2420;
  --btn-text: #f5c518;
  --hero-text: #f5c518;
  --shadow: rgba(90, 60, 30, 0.08);
  --info-bg: #ffffff;
  --info-text: #7a5a00;
  --info-muted: #866200;
  --sticky-bg: rgba(245, 239, 230, 0.9);
  color-scheme: light;
}

/* Tungi rejim */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1613;
    --bg-alt: #221c18;
    --card: #2a221d;
    --text: #f5c518;
    --muted: #dcae2c;
    --line: #3a3029;
    --accent: #e27b45;
    --btn-bg: #3a3029;
    --btn-text: #f5c518;
    --shadow: rgba(0, 0, 0, 0.35);
    --info-bg: #2a221d;
    --info-text: #f5c518;
    --info-muted: #dcae2c;
    --sticky-bg: rgba(27, 22, 19, 0.88);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1613;
  --bg-alt: #221c18;
  --card: #2a221d;
  --text: #f5c518;
  --muted: #dcae2c;
  --line: #3a3029;
  --accent: #e27b45;
  --btn-bg: #3a3029;
  --btn-text: #f5c518;
  --shadow: rgba(0, 0, 0, 0.35);
  --info-bg: #2a221d;
  --info-text: #f5c518;
  --info-muted: #dcae2c;
  --sticky-bg: rgba(27, 22, 19, 0.88);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
  transition: background .25s, color .25s;
}
img { max-width: 100%; }
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HERO ================= */
.hero { padding: 16px 16px 0; }
.hero-frame {
  position: relative;
  max-width: 1400px;
  height: clamp(640px, 92vh, 820px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  color: var(--hero-text);
  background: linear-gradient(135deg, #4b3a2f, #c65a24);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) saturate(1.15) brightness(0.95);
  transform: scale(1.25);
  z-index: -3;
}
.hero-person {
  position: absolute;
  right: -6%;
  bottom: 0;
  height: 94%;
  width: auto;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0%, #000 22%, #000 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%);
          mask-composite: intersect;
  z-index: -2;
}
.hero-frame.no-photo .hero-bg,
.hero-frame.no-photo .hero-person { display: none; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 10, 8, 0.35) 0%, transparent 22%),
    linear-gradient(90deg, rgba(15, 10, 8, 0.6) 0%, rgba(15, 10, 8, 0.3) 40%, transparent 65%);
}

/* Hero navigatsiyasi */
.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
}
.hero-nav-left { display: flex; align-items: center; gap: 36px; }
.hero-nav-right { display: flex; align-items: center; gap: 14px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--hero-text);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo svg { width: 30px; height: 30px; fill: currentColor; }
.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--hero-text);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { opacity: .75; }
.nav sup { font-size: 8px; font-style: italic; margin-left: 1px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--hero-text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: background .15s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.25); }
.theme-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

/* Dumaloq tugmalar */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s, opacity .15s;
}
.pill:hover { transform: translateY(-1px); opacity: .92; }
.pill svg { width: 14px; height: 14px; }
.pill-white { background: #fff; color: #7a5a00; }
.pill-dark { background: #1c1c1e; color: #f5c518; }
.pill-sm { padding: 8px 18px; font-size: 12px; }

/* Hero matni */
.hero-content {
  position: absolute;
  left: 7%;
  top: 25%;
  max-width: 600px;
}
.hero-content h1 {
  margin: 0 0 26px;
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.hero-content p {
  max-width: 320px;
  margin: 0 0 30px;
  font-size: 12px;
  line-height: 1.45;
}
.hero-content .pill { padding: 11px 18px; }

/* Shisha kartochka */
.hero-card {
  position: absolute;
  left: 36%;
  bottom: 0;
  width: 410px;
  padding: 26px 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
}
.hero-card-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  font-size: 12px;
}
.hero-card-menu a { color: var(--hero-text); text-decoration: none; }
.hero-card-menu a:hover { opacity: .75; }
.burger {
  flex-shrink: 0;
  width: 32px;
  height: 6px;
  border-top: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
}
.hero-card-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 14px 0;
  font-size: 11px;
}
.hero-card-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 10px;
}
.hero-card-title {
  margin: 14px 14px 2px;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-card-sub { margin: 0 14px; font-size: 9px; opacity: .8; }

.info-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  margin-top: 22px;
  padding: 22px 22px 18px;
  border-radius: 22px 22px 0 0;
  background: var(--info-bg);
  color: var(--info-text);
}
.info-left { text-align: center; }
.info-left strong { display: block; margin-top: 8px; font-size: 20px; font-weight: 400; letter-spacing: -0.02em; }
.info-left small { display: block; font-size: 10px; color: var(--info-muted); }
.ring {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle, var(--info-bg) 60%, transparent 61%),
    conic-gradient(var(--accent) 0 72%, rgba(128, 128, 128, 0.2) 72% 100%);
}
.ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3e2d3, #e4b894);
}
.ring > svg { position: relative; width: 38px; height: 38px; fill: #4b2d1a; }
.ring-badge {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 24px;
  height: 24px;
  border: 2px solid var(--info-bg);
  border-radius: 7px;
  background: #e5364f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-badge svg { width: 14px; height: 14px; fill: #fff; }
.info-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--info-muted);
}
.info-loc svg { width: 14px; height: 14px; fill: #e5364f; }
.info-stat { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; }
.info-stat .big { font-size: 50px; line-height: 1; letter-spacing: -0.05em; }
.info-stat ul { list-style: none; margin: 0; padding: 0; font-size: 11px; line-height: 1.7; white-space: nowrap; }
.info-stat li::before { content: "•"; color: var(--accent); margin-right: 6px; }
.info-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.info-bottom b { display: block; white-space: nowrap; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.info-bottom small { display: block; white-space: nowrap; font-size: 9px; color: var(--info-muted); }

/* Pastki indikator, strelka va chat tugmasi */
.hero-progress {
  position: absolute;
  left: 32px;
  bottom: 36px;
  width: 190px;
  font-size: 11px;
}
.hero-progress i {
  display: block;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, #fff 0 60%, rgba(255, 255, 255, 0.35) 60% 100%);
}
.hero-next,
.hero-chat {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform .15s;
}
.hero-next {
  right: 18px;
  top: 50%;
  width: 32px;
  height: 32px;
  background: #fff;
  color: #333;
}
.hero-next svg { width: 16px; height: 16px; }
.hero-chat {
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: #1c1c1e;
  color: #fff;
}
.hero-chat svg { width: 22px; height: 22px; fill: currentColor; }
.hero-next:hover, .hero-chat:hover { transform: scale(1.08); }

/* Umumiy */
.tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 8px;
}
h2 {
  margin: 0 0 32px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

/* Tugmalar */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.buttons-center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, background .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); border: 1.5px solid var(--btn-bg); }
.btn-primary:hover { opacity: .88; }
.btn-outline { border: 1.5px solid var(--text); color: var(--text); }
.btn-outline:hover { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

/* Bo'limlar */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 8px 24px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
/* Ko'tarilish faqat sichqonchali qurilmalarda (telefonda "qotib" qolmasin) */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px var(--shadow);
  }
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.num {
  display: block;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(198, 90, 36, 0.12);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

/* Menyudan o'tganda sarlavha yopishqoq panel ostida qolmasin */
section[id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Yopishqoq menyu */
.stickybar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--sticky-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .25s, visibility .25s;
}
.stickybar.show { transform: none; visibility: visible; }
.stickybar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.sticky-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-logo svg { width: 20px; height: 20px; fill: var(--accent); }
.sticky-nav {
  display: flex;
  gap: 22px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-nav::-webkit-scrollbar { display: none; }
.sticky-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-nav a:hover { color: var(--text); }
.sticky-nav a.active { color: var(--text); }
.sticky-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.sticky-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-toggle-plain {
  border-color: var(--line);
  background: var(--card);
  color: var(--text);
}
.theme-toggle-plain:hover { background: var(--bg-alt); }
.sticky-call { padding: 7px 18px; background: var(--btn-bg); color: var(--btn-text); }
.sticky-call-icon {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
}
.sticky-call-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* Ishlarim */
.work-card { padding: 0; overflow: hidden; }
.work-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.work-img svg { width: 44px; height: 44px; fill: var(--muted); opacity: .45; }
.work-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-body { padding: 22px 24px 26px; }

/* Mijozlar fikri */
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.6; }
.review figcaption b { display: block; font-size: 15px; }
.review figcaption span { color: var(--muted); font-size: 13px; }

/* Savol-javob */
.container-narrow { max-width: 760px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { opacity: .8; }
.faq-item p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.faq-item[open] p { animation: fadeUp .2s ease-out; }
/* Yangi brauzerlarda javob balandligi ham silliq ochiladi va yopiladi */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: hidden;
    transition: height .2s ease-out, content-visibility .2s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

/* ================= JONLANISH ================= */
/* "js" klassi bo'lmasa (JavaScript ishlamasa) hamma narsa odatdagidek ko'rinadi */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Sahifa ochilganda hero matni birin-ketin chiqadi */
.js .hero-content > * { animation: fadeUp .5s ease-out both; }
.js .hero-content > :nth-child(2) { animation-delay: .1s; }
.js .hero-content > :nth-child(3) { animation-delay: .2s; }

/* Scroll qilganda bo'limlar pastdan ko'tarilib chiqadi */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease-out, transform .5s ease-out;
  transition-delay: var(--delay, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Harakatni kamaytirishni yoqqanlar uchun animatsiya yo'q */
@media (prefers-reduced-motion: reduce) {
  .js .hero-content > *,
  .faq-item[open] p { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .faq-item::details-content { transition: none; }
  .card { transition: none; }
}

/* Aloqa */
.contact { text-align: center; }
.contact h2 { margin-bottom: 8px; }
.note {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Planshet va telefon */
@media (max-width: 1100px) {
  .nav { display: none; }
  .hero-card { left: auto; right: 90px; width: 400px; }
  .hero-content { max-width: 420px; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }

  .hero { padding: 10px 10px 0; }
  .hero-frame {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero-person {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: 100%;
    height: 480px;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    -webkit-mask-composite: source-over;
            mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
            mask-composite: add;
  }
  .hero-shade {
    background: linear-gradient(180deg, rgba(15, 10, 8, 0.4) 0%, transparent 18%, transparent 30%, rgba(15, 10, 8, 0.7) 48%, rgba(15, 10, 8, 0.5) 100%);
  }
  .hero-nav { position: static; padding: 18px; }
  .logo { font-size: 18px; min-height: 44px; }
  .logo svg { width: 24px; height: 24px; }
  .hero-nav-right .pill { padding: 8px 16px; font-size: 13px; }
  .hero-content {
    position: static;
    max-width: none;
    margin-top: 290px;
    padding: 0 22px;
  }
  .hero-content h1 { font-size: 44px; margin-bottom: 18px; }
  .hero-content p { font-size: 13px; max-width: none; }
  .hero-card {
    position: static;
    width: auto;
    margin: 36px 12px 0;
  }
  .hero-progress, .hero-next, .hero-chat { display: none; }

  /* Telefonda: takroriy menyu yo'q, mayda yozuvlar kattaroq */
  .hero-card-menu { display: none; }
  .hero-card-step { margin-top: 0; font-size: 13px; }
  .hero-card-step span { font-size: 12px; }
  .hero-card-sub { font-size: 13px; }
  .info-loc { font-size: 12px; }
  .info-stat ul { font-size: 13px; }
  .info-left small, .info-bottom small { font-size: 12px; }
  .info-bottom b { font-size: 16px; }
  .pill { min-height: 44px; }
  .pill-sm { padding: 10px 18px; font-size: 13px; }
}
@media (max-width: 480px) {
  .hero-nav-right .pill { display: none; }
  .hero-card { margin: 32px 0 0; padding-top: 22px; }
  .hero-card-title { font-size: 26px; }
  .info-card { grid-template-columns: 1fr; gap: 16px; }
  .info-left {
    display: grid;
    grid-template-columns: 88px 1fr;
    column-gap: 14px;
    align-items: center;
    text-align: left;
  }
  .info-left .ring { grid-row: span 2; width: 88px; height: 88px; margin: 0; }
  .info-left strong { margin-top: 0; align-self: end; }
  .info-left small { align-self: start; }
  .section { padding: 48px 0; }
  h2 { font-size: 28px; }
  .stickybar-inner { gap: 6px; height: 56px; }
  .sticky-logo span, .sticky-call { display: none; }
  .sticky-logo { min-width: 36px; min-height: 44px; justify-content: center; }
  .sticky-call-icon { display: inline-flex; }
  .theme-toggle { width: 44px; height: 44px; }
  .sticky-actions { gap: 6px; }
  /* Havolalar yon tomonga suriladi — o'ng chetdagi soya buni bildiradi */
  .sticky-nav {
    gap: 14px;
    margin: 0;
    flex: 1;
    padding-right: 24px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .sticky-nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
  .sticky-nav a[hidden] { display: none; }
  .sticky-nav a.active::after { bottom: 6px; }
  .faq-item summary { font-size: 16px; }
  .buttons .btn { flex: 1 1 100%; }
}
