:root {
  --ink: #0f1620;
  --ink-soft: #526074;
  --line: #dde2ea;
  --paper: #ffffff;
  --bg: #f2f4f7;
  --brand: #123a66;
  --brand-2: #0b5fff;
  --brand-dark: #0a2c4d;
  --accent: #ff6a00;
  --accent-dark: #e05c00;
  --good: #16a34a;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 16px rgba(15, 22, 32, 0.06);
  --shadow-lg: 0 18px 44px rgba(15, 22, 32, 0.16);
  --card-thumb-bg: #eef1f6;
  --skel-a: #eceff3;
  --skel-b: #f5f7fa;
  --header-bg: rgba(255, 255, 255, 0.94);
  --mesh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M0 17L17 0M17 34L34 17' stroke='rgba(255,255,255,0.09)' stroke-width='1.3' fill='none'/%3E%3C/svg%3E");
  color-scheme: light;
  font-size: 16px;
}

html[data-theme="dark"] {
  --ink: #e7ecf5;
  --ink-soft: #93a1b8;
  --line: #232b3a;
  --paper: #131a26;
  --bg: #0a0e15;
  --brand: #1c4a80;
  --brand-2: #3b82f6;
  --brand-dark: #0e2c4d;
  --accent: #ff7f2a;
  --accent-dark: #ff6a00;
  --good: #22c55e;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
  --card-thumb-bg: #1a2230;
  --skel-a: #182030;
  --skel-b: #1f2838;
  --header-bg: rgba(10, 14, 21, 0.9);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
main {
    padding: 20px 0;
}
/* `el.hidden = true` (app.js) toggles this attribute on #skeletons/#grid/#cartFoot/etc —
   without this rule, a class-level `display: grid/flex` (e.g. .skeleton-grid) beats the
   browser's own built-in [hidden]{display:none}, since author CSS always wins over the
   user-agent default. That left the loading skeleton grid visibly stuck on-screen even
   after `hidden` was set once real products had loaded. */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
svg {
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.topbar {
  background: var(--brand-dark);
  background-image: var(--mesh);
  color: #b9c9de;
  font-size: 0.8rem;
  border-bottom: 3px solid var(--accent);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a:hover {
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background-image: var(--mesh);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  /* background: var(--brand);
    border: 1px solid var(--brand-dark); */
}
.brand-logo {
  animation: heroLogoSpin 6s linear infinite;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text b {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    color: var(--ink);
    line-height: 1;
}
.brand-text span {
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-link {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.phone-link svg {
  color: var(--accent);
  flex-shrink: 0;
}

.icon-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 0, 0.28);
}
.btn-primary:hover {
  background: var(--accent-dark);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--brand-dark);
  background-image:
    linear-gradient(
      100deg,
      rgba(10, 14, 21, 0.88) 0%,
      rgba(10, 14, 21, 0.35) 58%,
      transparent 78%
    ),
    var(--mesh);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent);
}
.hero .container {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}
.hero-spin-logo {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 18vw, 220px);
  height: clamp(140px, 18vw, 220px);
  pointer-events: none;
}
.hero-spin-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: heroLogoSpin 14s linear infinite;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4));
}
@keyframes heroLogoSpin {
  to { transform: rotate(360deg); }
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 7px 14px 7px 10px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  margin: 18px 0 14px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: #c3cee0;
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 32px;
  max-width: 480px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}
.hero-stat {
  flex: 1;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stat:last-child {
  border-right: none;
}
.hero-stat b {
  display: block;
  font-size: 1.3rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-stat span {
  font-size: 0.72rem;
  color: #92a2ba;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Ishonch bloki: statistika + hamkorlar (3D dan oldin) ---------- */
.trust-band {
  background: var(--paper);
  padding: 34px 0;
  border-bottom: 3px solid var(--accent);
}
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.achieve-stat {
  background: var(--paper);
  padding: 18px 16px;
  text-align: center;
}
.achieve-stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.achieve-stat span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.partners-head {
  text-align: center;
  margin-bottom: 18px;
}
.partners-head h2 {
  font-size: 1.2rem;
  margin: 0 0 4px;
}
.partners-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.partners-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.86rem;
}
.partner-logo {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: 0.2s;
}
.partner-logo:hover {
  filter: none;
  opacity: 1;
}

/* ---------- 3D setka ko'rinishi — alohida, katta, sahifa boshida ---------- */
.mesh3d-hero {
  background: var(--brand-dark);
  background-image: var(--mesh);
  border-bottom: 3px solid var(--accent);
  padding: 18px 18px 22px;
}
.mesh3d-toggle-row {
  max-width: 1180px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mesh3d-toggle-label {
  color: #fff;
  font-weight: 700;
  font-size: 0.94rem;
}
.mesh3d-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.mesh3d-toggle-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}
.toggle-plus-icon { position: relative; width: 14px; height: 14px; }
.toggle-plus-icon span {
  position: absolute;
  background: #fff;
  border-radius: 1px;
}
.toggle-plus-icon span:nth-child(1) {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.toggle-plus-icon span:nth-child(2) {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%) scaleY(1);
  transition: transform 0.2s ease;
}
.mesh3d-toggle-btn[aria-expanded="true"] .toggle-plus-icon span:nth-child(2) {
  transform: translateX(-50%) scaleY(0);
}
.mesh3d-stage {
  position: relative;
  width: 100%;
  height: min(78vh, 720px);
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mesh3d-colors {
  max-width: 1180px;
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mesh3d-colors-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9fb0c9;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.color-swatch:hover {
  transform: scale(1.12);
}
.color-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--swatch);
}

/* Rang/fon qatorlari endi #heroPhoto (stage) ICHIDA — canvas ustiga kichik, kompakt
   panel sifatida chiqadi. Shu bilan native Fullscreen API'da ham (faqat #heroPhoto'ning
   o'zi ko'rsatiladi) bu qatorlar ko'rinib turadi — chunki endi shu elementning bir
   qismi, tashqarisida emas. */
.mesh3d-swatches-overlay {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  pointer-events: none; /* bo'sh joylarida orqadagi canvas'ni aylantirishga xalaqit bermasin */
}
.mesh3d-swatches-overlay .mesh3d-colors {
  max-width: 100%;
  margin: 0;
  pointer-events: auto;
  background: rgba(10, 14, 21, 0.72);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 5px 12px;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: calc(100% - 4px);
}
.mesh3d-swatches-overlay .mesh3d-colors-label {
  font-size: 0.6rem;
  color: #c3cee0;
  flex-shrink: 0;
}
.mesh3d-swatches-overlay .color-swatch {
  width: 17px;
  height: 17px;
  border-width: 1.5px;
  flex-shrink: 0;
}
.mesh3d-swatches-overlay .color-swatch.is-active {
  box-shadow: 0 0 0 1.5px var(--swatch);
}
@media (max-width: 640px) {
  .mesh3d-swatches-overlay {
    left: 44px;
    right: 44px;
    bottom: 8px;
  }
}

.hero-photo-cap {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(10, 14, 21, 0.78);
  backdrop-filter: blur(4px);
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  color: #fff;
  max-width: 260px;
}
.hero-photo-cap b {
  display: block;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.hero-photo-cap span {
  font-size: 0.76rem;
  color: #9fb0c9;
}

.hero-photo-cap-toggle {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 14, 21, 0.78);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}
.hero-photo-cap-toggle:hover {
  background: rgba(10, 14, 21, 0.92);
}

.hero-photo-fullscreen-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 14, 21, 0.78);
  backdrop-filter: blur(4px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.hero-photo-fullscreen-toggle:hover {
  background: rgba(10, 14, 21, 0.92);
}

/* Fullscreen fallback (Fullscreen API mavjud bo'lmagan holatlar uchun ham) — stage
   butun ekranni egallaydi, orqadagi sahifa esa body'dagi scroll-lock klassi bilan
   qotiriladi (scroll ishlamaydi). Native :fullscreen holatida ham xuddi shu ko'rinish
   uchun element o'zi allaqachon butun ekranga cho'ziladi — qo'shimcha CSS shart emas,
   lekin controls/rang qatorlarini ko'rsatish uchun bari bir shu klass qo'yiladi. */
.mesh3d-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  border-radius: 0;
}
body.mesh3d-scroll-lock {
  overflow: hidden;
  height: 100vh;
}

#mesh3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #eef1f5 75%);
}
#mesh3d:active {
  cursor: grabbing;
}
.mesh3d-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(10, 14, 21, 0.78);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.mesh3d-controls label {
  font-size: 0.68rem;
  color: #9fb0c9;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mesh3d-controls select {
  background: #fff;
  color: #0f1620;
  border: none;
  border-radius: 5px;
  padding: 7px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  max-width: 160px;
}

/* ---------- Sections ---------- */
.section {
  padding: 32px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head h2::before {
  content: "";
  width: 5px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  display: inline-block;
}
.section-head h1 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Katalog turkum kartalari (bosh sahifa -> alohida sahifa) ---------- */
.katcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.katcat-card {
  position: relative;
  display: block;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.katcat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.katcat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.katcat-card:hover .katcat-img {
  transform: scale(1.06);
}
.katcat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 21, 0) 40%,
    rgba(10, 14, 21, 0.82) 100%
  );
}
.katcat-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  right: 18px;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Katalog sahifasi: breadcrumb + turkum almashtirish ---------- */
/* .katcrumb-band { padding-bottom: 0; } */
.katcrumb {
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.katcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}
.katcrumb a:hover {
  color: var(--brand-2);
}
.katcrumb span {
  margin: 0 4px;
}
.katcrumb b {
  color: var(--ink);
}
.katcat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.katcat-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}
.katcat-pill:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
}
.katcat-pill.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Process rail ---------- */
.steps-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.step-card {
  padding: 22px 20px;
  position: relative;
  border-right: 1px solid var(--line);
}
.step-card:last-child {
  border-right: none;
}
.step-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: var(--line);
}
.step-card.is-first::after {
  background: var(--accent);
}
.step-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--line);
  -webkit-text-stroke: 1.5px var(--brand);
  color: transparent;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.step-card h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}
.step-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* ---------- Toolbar / filters ---------- */
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.search-box {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
}
.search-box svg {
  flex-shrink: 0;
  color: var(--ink-soft);
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  width: 100%;
  color: var(--ink);
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
}
.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Katalog tabs (Yevrozabor / Darojnaya) ---------- */
.katalog-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.katalog-tab {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 10px 4px;
  margin-right: 18px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  top: 1px;
  border-bottom: 2.5px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.katalog-tab:hover {
  color: var(--brand);
}
.katalog-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--accent);
}

/* ---------- Video gallery (turkum bo'yicha bitta video) ---------- */
.video-pane { display: flex; }
.video-single {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}
.video-single video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000;
}
.video-empty-note {
  margin: 0;
  padding: 30px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  border-top: 3px solid transparent;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}
.card-thumb {
  /* Qat'iy piksel balandlik — aspect-ratio (kenglikka bog'liq) ba'zi qatorlarda karta
       kengligi bir xil bo'lmasa (masalan CSS grid'ning oxirgi ustuni cho'zilib qolsa)
       rasm balandligini ham o'zgartirib yuborardi; bu esa hamma kartada bir xil turadi. */
  height: 200px;
  background-color: var(--card-thumb-bg);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="40" height="40" fill="none" stroke="%23aab3c2" stroke-width="1.4"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 15l5-5 4 4 3-3 6 6"/><circle cx="8.5" cy="8.5" r="1.5"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
  border: none;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
  position: relative;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 22, 32, 0.82);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.card-title-row .card-title {
  margin: 0;
}
.card-weight {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}
.card-price {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.card-price small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.skeleton-card {
  height: 260px;
  border-radius: var(--radius);
  background: linear-gradient(
    100deg,
    var(--skel-a) 30%,
    var(--skel-b) 50%,
    var(--skel-a) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.why-card {
  background: var(--paper);
  padding: 22px 20px;
}
.why-icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.why-icon svg {
  width: 30px;
  height: 30px;
}
.why-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.why-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ---------- Sifat nazorati (raqamli chiziq, steps-rail bilan bir uslub) ---------- */
.quality-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.quality-item {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.quality-item:last-child { border-right: none; }
.quality-item-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.quality-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--line);
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
}
.quality-icon-sm {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}
.quality-icon-sm svg { width: 100%; height: 100%; }
.quality-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.quality-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand);
  background-image: var(--mesh);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-left: 4px solid var(--accent);
}
.cta-band h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}
.cta-band p {
  margin: 0;
  color: #c3cee0;
  font-size: 0.92rem;
}

.map-embed {
  margin-top: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-embed iframe {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  background-image: var(--mesh);
  color: #a7b2c4;
  padding: 40px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, 1fr);
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.92rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.footer-grid p,
.footer-grid a,
.footer-grid > div > span {
  font-size: 0.86rem;
  line-height: 1.9;
  color: #a7b2c4;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-grid a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #7d8aa0;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}
.modal-overlay.is-open {
  display: flex;
}
.modal {
  background: var(--paper);
  width: 100%;
  max-width: 480px;
  border-radius: 16px 16px 0 0;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.22s ease;
  border-top: 3px solid var(--accent);
}
@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 4px;
}
.modal-head h3 {
  margin: 0;
  font-size: 1.1rem;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-body {
  padding: 12px 20px 24px;
}
.modal-product {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 18px;
}
.modal-product img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}
.modal-product b {
  display: block;
  font-size: 0.95rem;
}
.modal-product span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
  /* Fon doim oq (pastda) — matn rangi ham shunga mos doim to'q bo'lishi kerak, sayt
       mavzusiga (--ink) bog'lab bo'lmaydi: qorong'i mavzuda --ink deyarli oq bo'lib,
       oq fonda oq matn — ko'rinmas bo'lib qolardi. */
  color: #0f1620;
  background: #fff;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--brand-2);
}
.field textarea {
  resize: vertical;
  min-height: 64px;
}
.field-hint {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 5px;
}
.form-msg {
  font-size: 0.86rem;
  margin-top: 10px;
  text-align: center;
  min-height: 1.2em;
}
.form-msg.is-ok {
  color: var(--good);
  font-weight: 700;
}
.form-msg.is-err {
  color: #dc2626;
  font-weight: 700;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 20px;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-nav.prev {
  left: 18px;
}
.lightbox-nav.next {
  right: 18px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #cbd5e1;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--brand-dark);
  color: #fff;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  border-left: 3px solid var(--accent);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.is-err {
  background: #7f1d1d;
  border-left-color: #fca5a5;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-call {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 39;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.4);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ---------- Header: cart button ---------- */
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.icon-btn:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.cart-badge.is-visible {
  display: flex;
}

/* ---------- Theme + language switch ---------- */
.header-utils {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switch {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch button {
  border: none;
  background: var(--paper);
  color: var(--ink-soft);
  padding: 0 11px;
  height: 44px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.lang-switch button + button {
  border-left: 1px solid var(--line);
}
.lang-switch button.is-active {
  background: var(--brand);
  color: #fff;
}
.lang-switch button:not(.is-active):hover {
  color: var(--ink);
  background: var(--bg);
}

/* ---------- Qty stepper on cards ---------- */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper button {
  width: 30px;
  height: 34px;
  border: none;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.qty-stepper button:hover {
  background: #e5e9ef;
}
.qty-stepper input {
  width: 44px;
  height: 34px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-add-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  height: 34px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.card-add-btn:hover {
  background: var(--brand-dark);
}
.card-add-btn.is-added {
  background: var(--good);
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 22, 0.5);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 121;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent);
}
.cart-overlay.is-open .cart-drawer {
  transform: translateX(0);
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-head h3 {
  margin: 0;
  font-size: 1.08rem;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info b {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.cart-item-info span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.cart-item-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cart-item-qty-input {
  width: 60px;
  height: 30px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  -moz-appearance: textfield;
  flex-shrink: 0;
}
.cart-item-qty-input::-webkit-outer-spin-button,
.cart-item-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item-qty-input:focus {
  outline: none;
  border-color: var(--brand);
}
.cart-item-remove {
  border: none;
  background: none;
  color: #b3bac6;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.cart-item-remove:hover {
  color: #dc2626;
}
.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 50px 20px;
  font-size: 0.9rem;
}
.cart-empty svg {
  margin: 0 auto 12px;
  opacity: 0.5;
}
.cart-foot {
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.cart-total-row span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.cart-total-row b {
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Checkout summary in modal ---------- */
.checkout-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 14px;
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.checkout-line span:first-child {
  color: var(--ink-soft);
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  margin-bottom: 18px;
  font-weight: 800;
}
.checkout-total b {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Success state ---------- */
.success-box {
  text-align: center;
  padding: 10px 4px 4px;
}
.success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: var(--good);
  font-size: 1.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.success-box h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.success-box p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero .container {
    min-height: 0;
  }
  .hero-spin-logo {
    display: none;
  }
  .mesh3d-stage {
    height: min(60vh, 480px);
    min-height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .steps-rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-card:nth-child(2) {
    border-right: none;
  }
  .step-card:nth-child(1),
  .step-card:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .achieve-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .katcat-grid {
    grid-template-columns: 1fr;
  }
  .quality-strip {
    grid-template-columns: 1fr;
  }
  .quality-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .quality-item:last-child {
    border-bottom: none;
  }
}
@media (min-width: 640px) {
  .phone-link {
    display: inline-flex;
  }
  .modal-overlay {
    align-items: center;
  }
  .modal {
    border-radius: 16px;
  }
}
