/* Halovat — brend book ranglari: #223782, #FFFFFF, #000000.
   Qolgan barcha tuslar shu uch rangning ochiq/to'q variantlari. */
:root {
  --blue: #223782;
  --blue-600: #1D2F6F;
  --blue-700: #172658;
  --blue-50: #F4F6FB;
  --blue-100: #E7EBF5;
  --blue-200: #CDD5EA;
  --white: #FFFFFF;
  --black: #000000;
  --ink: #0B0B0C;
  --muted: rgba(0, 0, 0, .58);
  --faint: rgba(0, 0, 0, .38);
  --line: rgba(0, 0, 0, .09);
  --line-w: rgba(255, 255, 255, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -12px rgba(34, 55, 130, .22);
  --shadow-lg: 0 30px 80px -30px rgba(34, 55, 130, .45);
  --font: 'Montserrat', 'Gilroy', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
#app:focus { outline: none; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: 110px 0; }
.section--tint { background: var(--blue-50); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section__head h2 { font-size: clamp(30px, 4.2vw, 52px); margin-top: 14px; max-width: 720px; }
.section__head p { color: var(--muted); max-width: 440px; }
@media (max-width: 720px) { .section { padding: 72px 0; } .section__head { margin-bottom: 32px; } }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px;
  border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(34, 55, 130, .7); }
.btn--primary:hover { background: var(--blue-600); box-shadow: 0 16px 30px -12px rgba(34, 55, 130, .8); }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--blue-50); }
.btn--ghost { border: 1.5px solid var(--line-w); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn--outline { border: 1.5px solid var(--blue-200); color: var(--blue); background: #fff; }
.btn--outline:hover { border-color: var(--blue); }
.btn--block { width: 100%; }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; transition: background .2s; }
.icon-btn:hover { background: var(--blue-50); }

/* --- header --- */
.header { position: sticky; top: 0; z-index: 40; height: var(--header); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(0, 0, 0, .25); }
.header__row { height: 100%; display: flex; align-items: center; gap: 32px; }
/* brend book: logo atrofida 0,5x bo'sh joy */
.header__logo { padding: 6px 0; flex-shrink: 0; }
.header__logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(0, 0, 0, .72); transition: color .2s, background .2s; }
.nav a:hover, .nav a.is-active { color: var(--blue); background: var(--blue-50); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__phone { font-weight: 700; font-size: 14px; color: var(--blue); padding: 8px 12px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; transition: transform .2s, background .2s; }
.cart-btn:hover { background: var(--blue-600); }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }
.cart-btn__count[hidden] { display: none; }
.cart-btn__count {position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: var(--blue); font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--blue); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1020px) {
  .header__phone { display: none; }
  .burger { display: flex; }
  .nav { position: fixed; top: var(--header); left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px 16px 24px; margin: 0; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .3); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 16px; }
}

/* --- hero --- */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { /* qavilgan mato naqshi */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background-image: linear-gradient(45deg, transparent 48.6%, #fff 49%, #fff 51%, transparent 51.4%), linear-gradient(-45deg, transparent 48.6%, #fff 49%, #fff 51%, transparent 51.4%);
  background-size: 56px 56px; mask-image: linear-gradient(100deg, #000 10%, transparent 70%); -webkit-mask-image: linear-gradient(100deg, #000 10%, transparent 70%);
}
.hero::after { content: ''; position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); }
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - var(--header)); min-height: calc(100svh - var(--header)); padding-block: 64px 80px; }
.hero .eyebrow { color: #fff; opacity: .85; }
.hero h1 { font-size: clamp(38px, 5.2vw, 72px); margin: 22px 0 22px; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: rgba(255, 255, 255, .55); }
.hero h1 .nw { white-space: nowrap; }
.hero__lead { font-size: 18px; opacity: .8; max-width: 520px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero__visual { position: relative; perspective: 1200px; }
.hero__stage { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.hero__stage .mattress-svg { width: 100%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .35)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
/* oq kartochka: ko'k fonda ham, oq matras ustida ham o'qiladi */
.chip-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(34, 55, 130, .08); animation: float 6s ease-in-out infinite; }
.chip-float b { display: block; font-size: 18px; line-height: 1.1; font-weight: 800; color: var(--blue); }
.chip-float small { font-size: 12px; font-weight: 600; color: var(--muted); }
.chip-float i { width: 38px; height: 38px; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.chip-float--1 { top: 0; left: 0; animation-delay: -2s; }
.chip-float--2 { top: 4%; right: -3%; animation-delay: -4s; }
.chip-float--3 { bottom: 20%; left: 26%; }
.hero__colors { display: flex; align-items: center; gap: 14px; margin-top: 18px; justify-content: center; font-size: 13px; }
.hero__colors span { opacity: .7; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; transition: transform .2s var(--ease); }
.swatch::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active::after { border-color: var(--blue); }
.hero .swatch.is-active::after { border-color: #fff; }
.hero .swatch { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 64px; gap: 24px; }
  .chip-float { padding: 8px 12px 8px 8px; } .chip-float i { width: 30px; height: 30px; font-size: 12px; } .chip-float b { font-size: 14px; }
  .chip-float--2 { right: 0; }
}
@media (max-width: 480px) { .chip-float small { display: none; } .hero__lead { font-size: 16px; } }

/* --- stats --- */
.stats { background: var(--blue-700); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-left: 1px solid var(--line-w); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; opacity: .7; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: 1fr 1fr; } .stat { padding: 24px 16px; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-w); } }

/* --- filters --- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; background: #fff; transition: .2s; }
.filter:hover { border-color: var(--blue-200); color: var(--blue); }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.select { height: 42px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 40px 0 18px; font-size: 14px; font-weight: 600; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23223782' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; cursor: pointer; }

/* --- product cards --- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; gap: 16px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
/* katalog fotolaridagidek: ko'k Halovat devori va pol */
.card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(180deg, var(--blue) 0 50%, #DCE1EC 50%, #F3F5FA 78%, #FFFFFF 100%); display: grid; place-items: end center; padding: 40px 8px 10px; overflow: hidden; isolation: isolate; }
.card__media::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: -1; background: url(/assets/logo-white.png) 0 0 / 120px auto repeat; opacity: .07; }
.card .badge { background: #fff; color: var(--blue); }
.card__media .mattress-svg { width: 100%; transition: transform .6s var(--ease); }
.card:hover .card__media .mattress-svg { transform: scale(1.05) translateY(-4px); }
.card__media img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; z-index: 2; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.badge--light { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue-200); }
.card__warranty { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 12px; font-weight: 700; color: var(--blue); background: rgba(255, 255, 255, .9); border-radius: 999px; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__type { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.card__title { font-size: 20px; margin: 6px 0 4px; }
.card__tag { color: var(--muted); font-size: 14px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.card__foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.price { font-weight: 800; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-old { font-size: 14px; color: var(--faint); text-decoration: line-through; font-weight: 600; }
.card .swatches { gap: 6px; }
.card .swatch { width: 18px; height: 18px; }
.card .swatch::after { inset: -4px; }
.card__go { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease); }
.card:hover .card__go { transform: rotate(-45deg); }
.card__link { position: absolute; inset: 0; z-index: 1; }
.card .swatches { position: relative; z-index: 2; }

/* --- inside (layers) --- */
.inside { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.tabs-v { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header) + 24px); }
.tab-v { text-align: left; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; transition: .2s; }
.tab-v small { color: var(--faint); font-weight: 600; font-size: 12px; }
.tab-v:hover { background: #fff; }
.tab-v.is-active { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.tab-v.is-active small { color: rgba(255, 255, 255, .7); }
.inside__view { background: #fff; border-radius: 28px; padding: 32px; box-shadow: var(--shadow); min-height: 520px; }
.inside__view .layers-svg { width: 100%; max-height: 560px; }
.inside__top { display: flex; justify-content: space-between; gap: 20px; align-items: start; flex-wrap: wrap; margin-bottom: 8px; }
.inside__top h3 { font-size: 26px; }
.inside__top p { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 420px; }
.layer, .layer-label { animation: layerIn .7s var(--ease) both; animation-delay: var(--d); }
@keyframes layerIn { from { opacity: 0; transform: translateY(-22px); } }
@media (max-width: 900px) {
  .inside { grid-template-columns: 1fr; gap: 20px; }
  .tabs-v { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tab-v { white-space: nowrap; flex-shrink: 0; background: #fff; }
  .tab-v small { display: none; }
  .inside__view { padding: 20px 14px; min-height: 0; border-radius: 20px; }
}

/* --- quiz --- */
.quiz { display: grid; grid-template-columns: 1fr 1.15fr; border-radius: 32px; overflow: hidden; background: var(--blue); color: #fff; box-shadow: var(--shadow-lg); }
.quiz__intro { padding: 56px; display: flex; flex-direction: column; position: relative; }
.quiz__intro .eyebrow { color: #fff; opacity: .8; }
.quiz__intro h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 16px 0; }
.quiz__intro p { opacity: .78; }
.quiz__progress { margin-top: auto; padding-top: 40px; display: flex; gap: 6px; }
.quiz__progress i { height: 4px; flex: 1; border-radius: 4px; background: rgba(255, 255, 255, .2); transition: background .4s; }
.quiz__progress i.on { background: #fff; }
.quiz__panel { background: #fff; color: var(--ink); padding: 48px; margin: 10px; border-radius: 26px; min-height: 440px; display: flex; flex-direction: column; }
.quiz__step { font-size: 13px; font-weight: 700; color: var(--blue); }
.quiz__q { font-size: 24px; margin: 8px 0 24px; }
.quiz__opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); font-weight: 600; transition: .2s var(--ease); }
.opt:hover { border-color: var(--blue); background: var(--blue-50); transform: translateX(4px); }
.opt i { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-style: normal; font-size: 18px; flex-shrink: 0; }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.quiz__back { margin-top: auto; padding-top: 20px; font-size: 14px; font-weight: 600; color: var(--muted); align-self: flex-start; }
.quiz__back:hover { color: var(--blue); }
.quiz__result { display: grid; gap: 14px; }
.rec { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); transition: .2s; }
.rec:hover { border-color: var(--blue); }
.rec--best { border-color: var(--blue); background: var(--blue-50); }
.rec__media { background: #fff; border-radius: 12px; padding: 6px; }
.rec h4 { font-size: 17px; }
.rec p { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; border-radius: 24px; } .quiz__intro { padding: 32px 24px 8px; } .quiz__panel { padding: 26px 18px; min-height: 0; } .quiz__progress { padding-top: 20px; } }
@media (max-width: 480px) { .rec { grid-template-columns: 96px 1fr; } }

/* --- details --- */
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.detail { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); transition: .3s var(--ease); }
.detail:hover { border-color: var(--blue-200); transform: translateY(-4px); }
.detail__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.detail h3 { font-size: 18px; margin-bottom: 8px; }
.detail p { color: var(--muted); font-size: 14px; }
@media (max-width: 1020px) { .details { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }

/* --- compare --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.table th, .table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--blue-50); font-weight: 700; }
.table tbody tr { transition: background .2s; cursor: pointer; }
.table tbody tr:hover { background: var(--blue-50); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td b { font-weight: 700; }
.bar { display: inline-flex; gap: 3px; vertical-align: middle; }
.bar i { width: 14px; height: 6px; border-radius: 3px; background: var(--blue-100); }
.bar i.on { background: var(--blue); }

/* --- values --- */
.values { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.value { border-radius: var(--radius); padding: 32px; background: var(--blue-50); }
.value--main { background: var(--blue); color: #fff; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; }
.value--main h3 { font-size: clamp(26px, 3vw, 36px); }
.value--main p { opacity: .8; }
.value__mark { width: 64px; opacity: .95; }
.value h4 { font-size: 20px; margin: 18px 0 8px; }
.value p { color: var(--muted); font-size: 15px; }
.value--main p { color: #fff; }
.value__num { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .1em; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } .value--main { grid-row: auto; min-height: 280px; } }

/* --- faq --- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 17px; }
.faq__q i { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); flex-shrink: 0; display: grid; place-items: center; font-style: normal; transition: transform .3s var(--ease), background .3s; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__a > div { overflow: hidden; color: var(--muted); }
.faq__a p { padding-bottom: 22px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* --- CTA --- */
.cta { position: relative; border-radius: 32px; background: var(--blue); color: #fff; padding: 64px; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: linear-gradient(45deg, transparent 48.6%, #fff 49%, #fff 51%, transparent 51.4%), linear-gradient(-45deg, transparent 48.6%, #fff 49%, #fff 51%, transparent 51.4%); background-size: 44px 44px; }
.cta h2 { font-size: clamp(28px, 3.6vw, 46px); }
.cta p { opacity: .8; margin-top: 14px; max-width: 520px; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 24px; } }

/* --- product page --- */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); padding: 24px 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--blue); }
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; padding-bottom: 80px; }
.gallery { position: sticky; top: calc(var(--header) + 20px); }
.gallery__main { position: relative; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--blue-50) 55%, var(--blue-100) 100%); aspect-ratio: 1 / .82; display: grid; place-items: center; padding: 32px; overflow: hidden; }
.gallery__main .mattress-svg { width: 100%; animation: float 7s ease-in-out infinite; }
.gallery__main .layers-svg { width: 100%; max-height: 100%; }
.gallery__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* katalog fotolaridagidek: Halovat ko'k devori va pol */
.gallery__main { cursor: zoom-in; }
.gallery__main.is-stage { background: linear-gradient(180deg, var(--blue) 0 54%, #DCE1EC 54%, #F3F5FA 78%, #FFFFFF 100%); }
.gallery__main.is-stage::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 54%; background: url(/assets/logo-white.png) 0 0 / 150px auto repeat; opacity: .07; }
.gallery__main.is-stage::after { content: ''; position: absolute; left: 10%; right: 10%; top: 8%; height: 60%; background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent); pointer-events: none; }
/* Fon variantlari (Sozlamalar → "Mahsulot foni"): 1–4 */
/* 1 — Tungi studiya: markazda yorug' ko'k, chetlari to'q ko'k */
html[data-stage="1"] .gallery__main.is-stage { background: radial-gradient(75% 65% at 50% 42%, #4A66C9 0%, #2B44A0 38%, var(--blue) 62%, #141F52 100%); }
html[data-stage="1"] .gallery__main.is-stage::before { height: 100%; opacity: .05; }
html[data-stage="1"] .gallery__main.is-stage::after { left: 8%; right: 8%; top: auto; bottom: 9%; height: 22%; background: radial-gradient(closest-side, rgba(8,14,45,.55), transparent); }
/* 2 — Ko'k devor + ko'k pol (xona kabi) */
html[data-stage="2"] .gallery__main.is-stage { background: linear-gradient(180deg, #1C2E70 0%, var(--blue) 52%, #3D58B8 52.4%, #2C459C 72%, #1A2A66 100%); }
html[data-stage="2"] .gallery__main.is-stage::before { height: 52%; opacity: .08; }
html[data-stage="2"] .gallery__main.is-stage::after { left: 6%; right: 6%; top: 46%; height: 14%; background: radial-gradient(closest-side, rgba(255,255,255,.28), transparent); }
/* 3 — Yumshoq gradient: to'q ko'kdan och osmon rangiga */
html[data-stage="3"] .gallery__main.is-stage { background: linear-gradient(180deg, var(--blue) 0%, #3F5BB9 45%, #8EA2DE 78%, #C9D3F0 100%); }
html[data-stage="3"] .gallery__main.is-stage::before { height: 60%; opacity: .06; }
html[data-stage="3"] .gallery__main.is-stage::after { left: 10%; right: 10%; top: auto; bottom: 8%; height: 20%; background: radial-gradient(closest-side, rgba(20,31,82,.35), transparent); }
/* 4 — Projektor nuri: qorong'i fon, tepadan tushgan ko'k nur va porlayotgan pol */
html[data-stage="4"] .gallery__main.is-stage { background: radial-gradient(60% 38% at 50% 84%, rgba(120,150,255,.45), transparent 70%), conic-gradient(from 180deg at 50% -10%, transparent 160deg, rgba(110,140,255,.30) 172deg, rgba(150,175,255,.42) 180deg, rgba(110,140,255,.30) 188deg, transparent 200deg), linear-gradient(180deg, #0E1638 0%, #172463 55%, #0E1638 100%); }
html[data-stage="4"] .gallery__main.is-stage::before { height: 100%; opacity: .035; }
html[data-stage="4"] .gallery__main.is-stage::after { left: 12%; right: 12%; top: auto; bottom: 10%; height: 14%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); }

/* 5–8: kreativ fonlar */
/* 5 — Yulduzli tun: oy va yulduzlar (sokin uyqu) */
html[data-stage="5"] .gallery__main.is-stage { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20100%20100%27%3E%3Cdefs%3E%3CradialGradient%20id%3D%27g%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%23fff%27%20stop-opacity%3D%27.35%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%23fff%27%20stop-opacity%3D%270%27%2F%3E%3C%2FradialGradient%3E%3Cmask%20id%3D%27m%27%3E%3Crect%20width%3D%27100%27%20height%3D%27100%27%20fill%3D%27%23fff%27%2F%3E%3Ccircle%20cx%3D%2760%27%20cy%3D%2742%27%20r%3D%2717%27%20fill%3D%27%23000%27%2F%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2748%27%20fill%3D%27url(%23g)%27%2F%3E%3Ccircle%20cx%3D%2750%27%20cy%3D%2750%27%20r%3D%2718%27%20fill%3D%27%23F4F1E6%27%20mask%3D%27url(%23m)%27%2F%3E%3C%2Fsvg%3E") right 7% top 9% / 22% auto no-repeat, url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20600%20500%27%20preserveAspectRatio%3D%27xMidYMid%20slice%27%3E%3Ccircle%20cx%3D%27173.5%27%20cy%3D%2769.5%27%20r%3D%271.24%27%20fill%3D%27%23fff%27%20opacity%3D%270.79%27%2F%3E%3Ccircle%20cx%3D%27451.2%27%20cy%3D%27249.2%27%20r%3D%270.83%27%20fill%3D%27%23fff%27%20opacity%3D%270.68%27%2F%3E%3Ccircle%20cx%3D%27490.1%27%20cy%3D%2779.9%27%20r%3D%271.05%27%20fill%3D%27%23fff%27%20opacity%3D%270.57%27%2F%3E%3Ccircle%20cx%3D%2732.3%27%20cy%3D%27225.7%27%20r%3D%271.09%27%20fill%3D%27%23fff%27%20opacity%3D%270.63%27%2F%3E%3Ccircle%20cx%3D%2773.7%27%20cy%3D%27169.3%27%20r%3D%272.21%27%20fill%3D%27%23fff%27%20opacity%3D%270.90%27%2F%3E%3Ccircle%20cx%3D%27346.5%27%20cy%3D%27301.0%27%20r%3D%271.05%27%20fill%3D%27%23fff%27%20opacity%3D%270.90%27%2F%3E%3Ccircle%20cx%3D%27502.3%27%20cy%3D%27109.6%27%20r%3D%270.83%27%20fill%3D%27%23fff%27%20opacity%3D%270.44%27%2F%3E%3Ccircle%20cx%3D%27176.9%27%20cy%3D%27309.3%27%20r%3D%270.90%27%20fill%3D%27%23fff%27%20opacity%3D%270.68%27%2F%3E%3Ccircle%20cx%3D%2735.2%27%20cy%3D%2790.3%27%20r%3D%271.21%27%20fill%3D%27%23fff%27%20opacity%3D%270.69%27%2F%3E%3Ccircle%20cx%3D%27115.8%27%20cy%3D%27300.0%27%20r%3D%270.90%27%20fill%3D%27%23fff%27%20opacity%3D%270.38%27%2F%3E%3Ccircle%20cx%3D%27398.7%27%20cy%3D%27305.0%27%20r%3D%270.84%27%20fill%3D%27%23fff%27%20opacity%3D%270.66%27%2F%3E%3Ccircle%20cx%3D%27170.2%27%20cy%3D%27120.3%27%20r%3D%270.88%27%20fill%3D%27%23fff%27%20opacity%3D%270.60%27%2F%3E%3Ccircle%20cx%3D%27368.4%27%20cy%3D%2777.0%27%20r%3D%270.97%27%20fill%3D%27%23fff%27%20opacity%3D%270.89%27%2F%3E%3Ccircle%20cx%3D%27381.1%27%20cy%3D%27209.3%27%20r%3D%271.20%27%20fill%3D%27%23fff%27%20opacity%3D%270.66%27%2F%3E%3Ccircle%20cx%3D%27563.7%27%20cy%3D%27130.9%27%20r%3D%271.08%27%20fill%3D%27%23fff%27%20opacity%3D%270.77%27%2F%3E%3Ccircle%20cx%3D%27210.4%27%20cy%3D%27109.1%27%20r%3D%271.01%27%20fill%3D%27%23fff%27%20opacity%3D%270.58%27%2F%3E%3Ccircle%20cx%3D%2766.6%27%20cy%3D%27270.3%27%20r%3D%271.21%27%20fill%3D%27%23fff%27%20opacity%3D%270.40%27%2F%3E%3Ccircle%20cx%3D%2746.7%27%20cy%3D%27328.7%27%20r%3D%270.71%27%20fill%3D%27%23fff%27%20opacity%3D%270.48%27%2F%3E%3Ccircle%20cx%3D%27274.3%27%20cy%3D%27195.7%27%20r%3D%270.70%27%20fill%3D%27%23fff%27%20opacity%3D%270.43%27%2F%3E%3Ccircle%20cx%3D%27534.3%27%20cy%3D%27292.1%27%20r%3D%272.28%27%20fill%3D%27%23fff%27%20opacity%3D%270.89%27%2F%3E%3Ccircle%20cx%3D%276.3%27%20cy%3D%2781.9%27%20r%3D%270.79%27%20fill%3D%27%23fff%27%20opacity%3D%270.40%27%2F%3E%3Ccircle%20cx%3D%27138.8%27%20cy%3D%27244.6%27%20r%3D%271.03%27%20fill%3D%27%23fff%27%20opacity%3D%270.64%27%2F%3E%3Ccircle%20cx%3D%27529.3%27%20cy%3D%2777.6%27%20r%3D%270.77%27%20fill%3D%27%23fff%27%20opacity%3D%270.57%27%2F%3E%3Ccircle%20cx%3D%27293.6%27%20cy%3D%271.0%27%20r%3D%271.52%27%20fill%3D%27%23fff%27%20opacity%3D%270.90%27%2F%3E%3Ccircle%20cx%3D%2712.6%27%20cy%3D%27297.0%27%20r%3D%271.25%27%20fill%3D%27%23fff%27%20opacity%3D%270.46%27%2F%3E%3Ccircle%20cx%3D%27407.6%27%20cy%3D%2787.9%27%20r%3D%271.97%27%20fill%3D%27%23fff%27%20opacity%3D%270.48%27%2F%3E%3Ccircle%20cx%3D%2731.4%27%20cy%3D%27253.9%27%20r%3D%271.00%27%20fill%3D%27%23fff%27%20opacity%3D%270.77%27%2F%3E%3Ccircle%20cx%3D%2719.6%27%20cy%3D%2736.4%27%20r%3D%270.95%27%20fill%3D%27%23fff%27%20opacity%3D%270.90%27%2F%3E%3Ccircle%20cx%3D%27535.8%27%20cy%3D%2712.2%27%20r%3D%271.08%27%20fill%3D%27%23fff%27%20opacity%3D%270.88%27%2F%3E%3Ccircle%20cx%3D%27572.6%27%20cy%3D%27252.4%27%20r%3D%272.39%27%20fill%3D%27%23fff%27%20opacity%3D%270.60%27%2F%3E%3Ccircle%20cx%3D%27529.3%27%20cy%3D%27131.4%27%20r%3D%271.11%27%20fill%3D%27%23fff%27%20opacity%3D%270.49%27%2F%3E%3Ccircle%20cx%3D%27335.3%27%20cy%3D%27116.0%27%20r%3D%271.22%27%20fill%3D%27%23fff%27%20opacity%3D%270.72%27%2F%3E%3Ccircle%20cx%3D%27435.1%27%20cy%3D%27139.5%27%20r%3D%270.83%27%20fill%3D%27%23fff%27%20opacity%3D%270.47%27%2F%3E%3Ccircle%20cx%3D%27596.5%27%20cy%3D%27208.7%27%20r%3D%271.29%27%20fill%3D%27%23fff%27%20opacity%3D%270.87%27%2F%3E%3Ccircle%20cx%3D%27387.1%27%20cy%3D%2744.7%27%20r%3D%271.60%27%20fill%3D%27%23fff%27%20opacity%3D%270.65%27%2F%3E%3Ccircle%20cx%3D%27567.5%27%20cy%3D%27159.1%27%20r%3D%271.14%27%20fill%3D%27%23fff%27%20opacity%3D%270.46%27%2F%3E%3Ccircle%20cx%3D%27397.6%27%20cy%3D%27172.2%27%20r%3D%270.72%27%20fill%3D%27%23fff%27%20opacity%3D%270.69%27%2F%3E%3Ccircle%20cx%3D%27217.5%27%20cy%3D%27247.8%27%20r%3D%271.13%27%20fill%3D%27%23fff%27%20opacity%3D%270.37%27%2F%3E%3Ccircle%20cx%3D%27121.7%27%20cy%3D%27238.6%27%20r%3D%270.98%27%20fill%3D%27%23fff%27%20opacity%3D%270.52%27%2F%3E%3Ccircle%20cx%3D%27257.5%27%20cy%3D%2724.9%27%20r%3D%271.06%27%20fill%3D%27%23fff%27%20opacity%3D%270.81%27%2F%3E%3Ccircle%20cx%3D%27546.0%27%20cy%3D%27224.7%27%20r%3D%271.24%27%20fill%3D%27%23fff%27%20opacity%3D%270.93%27%2F%3E%3Ccircle%20cx%3D%27360.6%27%20cy%3D%27238.9%27%20r%3D%271.13%27%20fill%3D%27%23fff%27%20opacity%3D%270.89%27%2F%3E%3Ccircle%20cx%3D%2748.2%27%20cy%3D%2735.7%27%20r%3D%270.70%27%20fill%3D%27%23fff%27%20opacity%3D%270.40%27%2F%3E%3Ccircle%20cx%3D%27567.4%27%20cy%3D%2763.4%27%20r%3D%271.02%27%20fill%3D%27%23fff%27%20opacity%3D%270.43%27%2F%3E%3Ccircle%20cx%3D%27146.0%27%20cy%3D%27150.6%27%20r%3D%271.07%27%20fill%3D%27%23fff%27%20opacity%3D%270.95%27%2F%3E%3Ccircle%20cx%3D%27464.6%27%20cy%3D%27131.0%27%20r%3D%271.07%27%20fill%3D%27%23fff%27%20opacity%3D%270.60%27%2F%3E%3Ccircle%20cx%3D%27484.6%27%20cy%3D%27321.5%27%20r%3D%270.76%27%20fill%3D%27%23fff%27%20opacity%3D%270.44%27%2F%3E%3Ccircle%20cx%3D%2773.3%27%20cy%3D%2769.3%27%20r%3D%271.91%27%20fill%3D%27%23fff%27%20opacity%3D%270.71%27%2F%3E%3Ccircle%20cx%3D%27163.6%27%20cy%3D%27213.4%27%20r%3D%270.65%27%20fill%3D%27%23fff%27%20opacity%3D%270.68%27%2F%3E%3Ccircle%20cx%3D%2745.1%27%20cy%3D%27136.4%27%20r%3D%271.30%27%20fill%3D%27%23fff%27%20opacity%3D%270.54%27%2F%3E%3Ccircle%20cx%3D%27248.1%27%20cy%3D%2730.1%27%20r%3D%270.60%27%20fill%3D%27%23fff%27%20opacity%3D%270.49%27%2F%3E%3Ccircle%20cx%3D%27458.4%27%20cy%3D%27144.2%27%20r%3D%272.18%27%20fill%3D%27%23fff%27%20opacity%3D%270.86%27%2F%3E%3Ccircle%20cx%3D%27397.1%27%20cy%3D%27188.8%27%20r%3D%272.20%27%20fill%3D%27%23fff%27%20opacity%3D%270.56%27%2F%3E%3Ccircle%20cx%3D%27296.9%27%20cy%3D%27187.3%27%20r%3D%270.95%27%20fill%3D%27%23fff%27%20opacity%3D%270.78%27%2F%3E%3Ccircle%20cx%3D%27437.4%27%20cy%3D%27291.9%27%20r%3D%271.04%27%20fill%3D%27%23fff%27%20opacity%3D%270.86%27%2F%3E%3Ccircle%20cx%3D%27292.2%27%20cy%3D%27315.9%27%20r%3D%271.84%27%20fill%3D%27%23fff%27%20opacity%3D%270.94%27%2F%3E%3Ccircle%20cx%3D%27205.7%27%20cy%3D%27291.3%27%20r%3D%270.66%27%20fill%3D%27%23fff%27%20opacity%3D%270.78%27%2F%3E%3Ccircle%20cx%3D%27472.2%27%20cy%3D%2768.3%27%20r%3D%271.27%27%20fill%3D%27%23fff%27%20opacity%3D%270.49%27%2F%3E%3Ccircle%20cx%3D%27549.3%27%20cy%3D%27264.1%27%20r%3D%270.67%27%20fill%3D%27%23fff%27%20opacity%3D%270.73%27%2F%3E%3Ccircle%20cx%3D%27265.8%27%20cy%3D%27287.8%27%20r%3D%270.98%27%20fill%3D%27%23fff%27%20opacity%3D%270.69%27%2F%3E%3Ccircle%20cx%3D%27412.0%27%20cy%3D%27143.2%27%20r%3D%271.67%27%20fill%3D%27%23fff%27%20opacity%3D%270.59%27%2F%3E%3Ccircle%20cx%3D%27138.9%27%20cy%3D%27296.6%27%20r%3D%271.01%27%20fill%3D%27%23fff%27%20opacity%3D%270.84%27%2F%3E%3Ccircle%20cx%3D%27526.4%27%20cy%3D%2738.3%27%20r%3D%271.08%27%20fill%3D%27%23fff%27%20opacity%3D%270.53%27%2F%3E%3Ccircle%20cx%3D%2779.1%27%20cy%3D%27131.1%27%20r%3D%271.40%27%20fill%3D%27%23fff%27%20opacity%3D%270.36%27%2F%3E%3Ccircle%20cx%3D%27103.8%27%20cy%3D%2770.0%27%20r%3D%271.23%27%20fill%3D%27%23fff%27%20opacity%3D%270.92%27%2F%3E%3Ccircle%20cx%3D%2770.1%27%20cy%3D%27206.8%27%20r%3D%270.72%27%20fill%3D%27%23fff%27%20opacity%3D%270.36%27%2F%3E%3Ccircle%20cx%3D%27450.7%27%20cy%3D%2742.3%27%20r%3D%271.01%27%20fill%3D%27%23fff%27%20opacity%3D%270.55%27%2F%3E%3Ccircle%20cx%3D%27328.7%27%20cy%3D%27194.1%27%20r%3D%271.27%27%20fill%3D%27%23fff%27%20opacity%3D%270.82%27%2F%3E%3Ccircle%20cx%3D%27358.5%27%20cy%3D%2733.1%27%20r%3D%271.11%27%20fill%3D%27%23fff%27%20opacity%3D%270.38%27%2F%3E%3Ccircle%20cx%3D%27348.7%27%20cy%3D%2782.8%27%20r%3D%270.76%27%20fill%3D%27%23fff%27%20opacity%3D%270.48%27%2F%3E%3C%2Fsvg%3E") center top / cover no-repeat, radial-gradient(90% 55% at 50% 100%, #3C57B4 0%, transparent 70%), linear-gradient(180deg, #0B1335 0%, #16235F 55%, var(--blue) 100%); }
html[data-stage="5"] .gallery__main.is-stage::before { display: none; }
html[data-stage="5"] .gallery__main.is-stage::after { left: 8%; right: 8%; top: auto; bottom: 9%; height: 20%; background: radial-gradient(closest-side, rgba(5,10,35,.6), transparent); }
/* 6 — Podium: matras yorug' ko'k aylana sahna ustida */
html[data-stage="6"] .gallery__main.is-stage { background: radial-gradient(70% 55% at 50% 30%, rgba(120,145,235,.45), transparent 70%), linear-gradient(180deg, #1A2A70 0%, var(--blue) 60%, #121C4C 100%); }
html[data-stage="6"] .gallery__main.is-stage::before { top: auto; bottom: 13%; left: 6%; right: 6%; height: 30%; opacity: 1; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20600%20160%27%3E%3Cdefs%3E%3ClinearGradient%20id%3D%27s%27%20x1%3D%270%27%20y1%3D%270%27%20x2%3D%270%27%20y2%3D%271%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%233550B0%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%2315215A%27%2F%3E%3C%2FlinearGradient%3E%3CradialGradient%20id%3D%27t%27%20cx%3D%27.5%27%20cy%3D%27.45%27%20r%3D%27.6%27%3E%3Cstop%20offset%3D%270%27%20stop-color%3D%27%236E87DD%27%2F%3E%3Cstop%20offset%3D%271%27%20stop-color%3D%27%232B44A0%27%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cellipse%20cx%3D%27300%27%20cy%3D%2792%27%20rx%3D%27290%27%20ry%3D%2756%27%20fill%3D%27url(%23s)%27%2F%3E%3Crect%20x%3D%2710%27%20y%3D%2762%27%20width%3D%27580%27%20height%3D%2730%27%20fill%3D%27url(%23s)%27%2F%3E%3Cellipse%20cx%3D%27300%27%20cy%3D%2762%27%20rx%3D%27290%27%20ry%3D%2756%27%20fill%3D%27url(%23t)%27%2F%3E%3Cellipse%20cx%3D%27300%27%20cy%3D%2762%27%20rx%3D%27290%27%20ry%3D%2756%27%20fill%3D%27none%27%20stroke%3D%27%239FB2F0%27%20stroke-opacity%3D%27.6%27%20stroke-width%3D%272%27%2F%3E%3C%2Fsvg%3E") center bottom / 100% auto no-repeat; }
html[data-stage="6"] .gallery__main.is-stage::after { left: 0; right: 0; top: 0; height: 70%; background: conic-gradient(from 180deg at 50% -5%, transparent 165deg, rgba(190,205,255,.18) 180deg, transparent 195deg); }
/* 7 — To'lqinlar: tinch dengiz kabi uch qatlam ko'k to'lqin */
html[data-stage="7"] .gallery__main.is-stage { background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%201200%20400%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M0%20150%20Q50%20184%20100%20150%20Q150%20116%20200%20150%20Q250%20184%20300%20150%20Q350%20116%20400%20150%20Q450%20184%20500%20150%20Q550%20116%20600%20150%20Q650%20184%20700%20150%20Q750%20116%20800%20150%20Q850%20184%20900%20150%20Q950%20116%201000%20150%20Q1050%20184%201100%20150%20Q1150%20116%201200%20150%20Q1250%20184%201300%20150%20V400%20H0Z%27%20fill%3D%27%234A66C9%27%20opacity%3D%270.55%27%2F%3E%3Cpath%20d%3D%27M0%20215%20Q50%20241%20100%20215%20Q150%20189%20200%20215%20Q250%20241%20300%20215%20Q350%20189%20400%20215%20Q450%20241%20500%20215%20Q550%20189%20600%20215%20Q650%20241%20700%20215%20Q750%20189%20800%20215%20Q850%20241%20900%20215%20Q950%20189%201000%20215%20Q1050%20241%201100%20215%20Q1150%20189%201200%20215%20Q1250%20241%201300%20215%20V400%20H0Z%27%20fill%3D%27%232E479F%27%20opacity%3D%270.85%27%2F%3E%3Cpath%20d%3D%27M0%20285%20Q50%20305%20100%20285%20Q150%20265%20200%20285%20Q250%20305%20300%20285%20Q350%20265%20400%20285%20Q450%20305%20500%20285%20Q550%20265%20600%20285%20Q650%20305%20700%20285%20Q750%20265%20800%20285%20Q850%20305%20900%20285%20Q950%20265%201000%20285%20Q1050%20305%201100%20285%20Q1150%20265%201200%20285%20Q1250%20305%201300%20285%20V400%20H0Z%27%20fill%3D%27%231A2A66%27%20opacity%3D%271%27%2F%3E%3C%2Fsvg%3E") center bottom / 100% 62% no-repeat, linear-gradient(180deg, #5F79D3 0%, #3A55B3 40%, var(--blue) 100%); }
html[data-stage="7"] .gallery__main.is-stage::before { height: 45%; opacity: .06; }
html[data-stage="7"] .gallery__main.is-stage::after { left: 10%; right: 10%; top: auto; bottom: 10%; height: 18%; background: radial-gradient(closest-side, rgba(5,10,35,.45), transparent); }
/* 8 — Brend belgisi: katta "h" belgisi va qiya ikki rangli ko'k */
html[data-stage="8"] .gallery__main.is-stage { background: linear-gradient(115deg, #2D47A6 0 46%, var(--blue) 46% 100%); }
html[data-stage="8"] .gallery__main.is-stage::before { left: -6%; right: auto; top: -8%; width: 78%; height: 116%; opacity: .09; background: url(/assets/mark-white.png) center / contain no-repeat; }
html[data-stage="8"] .gallery__main.is-stage::after { left: 8%; right: 8%; top: auto; bottom: 9%; height: 20%; background: radial-gradient(closest-side, rgba(5,10,35,.5), transparent); }
/* /kreativ */
.gallery__main .zoom { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 32px; transition: transform .45s var(--ease); will-change: transform; }
.gallery__main.is-stage .zoom { padding: 56px 28px 40px; align-items: end; }
.gallery__main.is-zoomed .zoom { transform: scale(2.3); transition: transform .25s var(--ease); }
.gallery__main.is-zoomed .mattress-svg { animation-play-state: paused; }
/* Blender renderlari (shaffof fon) */
.hero__colors[hidden] { display: none; }
img.cutout { width: 100%; height: auto; object-fit: contain; display: block; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .18)); transition: transform .6s var(--ease); }
.card__media img.cutout { width: 104%; max-width: none; }
.card:hover .card__media img.cutout { transform: scale(1.05) translateY(-4px); }
.gallery__main img.cutout--lg { position: static; inset: auto; width: 100%; height: auto; object-fit: contain; animation: float 7s ease-in-out infinite; }
.gallery__main.is-zoomed img.cutout--lg { animation-play-state: paused; }
.hero__stage.has-cutout img.cutout { width: 112%; max-width: none; margin-left: -6%; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .4)); animation: float 7s ease-in-out infinite; }
.line__media img.cutout, .rec__media img.cutout { filter: none; }

/* 3D ko'rinish */
.gallery__main.is-3d { cursor: grab; }
.gallery__main.is-3d:active { cursor: grabbing; }
.gallery__main.is-3d .zoom { padding: 0; transform: none !important; }
.three-host { position: absolute; inset: 0; touch-action: none; }
.three-host canvas { width: 100% !important; height: 100% !important; display: block; }
.three-msg { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; font-weight: 600; font-size: 14px; text-align: center; padding: 20px; }
.three-host.is-ready .three-msg { display: none; }
/* ichki tuzilish — 3D qatlamlar */
.inside3d .three-msg { color: var(--blue); }
.inside3d__labels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity .2s; }
.inside3d__labels polyline { fill: none; stroke: var(--blue); stroke-width: 1; opacity: .45; }
.inside3d__labels circle { fill: var(--blue); }
.inside3d__labels text { font: 600 13px Montserrat, system-ui, sans-serif; fill: #000; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; }
@media (max-width: 560px) { .inside3d__labels text { font-size: 10px; } }
.inside3d__btn { position: absolute; top: 14px; right: 14px; z-index: 3; font: 600 12px Montserrat, system-ui, sans-serif; padding: 6px 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: var(--blue); cursor: pointer; box-shadow: var(--shadow); }
.gallery__main.is-inside .zoom-hint { max-width: calc(100% - 170px); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.zoom-hint { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--blue); pointer-events: none; transition: opacity .25s; }
.gallery__main.is-zoomed .zoom-hint { opacity: 0; }
.gallery__tabs { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.gallery__tabs button { height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.gallery__tabs button.is-active { background: var(--blue); color: #fff; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { width: 80px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; flex-shrink: 0; background: var(--blue-50); }
.gallery__thumbs button.is-active { border-color: var(--blue); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info h1 { font-size: clamp(30px, 3.4vw, 44px); margin: 14px 0 8px; }
.pdp__tag { color: var(--muted); font-size: 17px; }
.pdp__price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 6px; flex-wrap: wrap; }
.pdp__price .price { font-size: 36px; }
.pdp__note { font-size: 13px; color: var(--muted); }
.opt-group { margin-top: 28px; }
.opt-group__label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.opt-group__label span { color: var(--muted); font-weight: 600; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size { padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; transition: .2s; }
.size b { display: block; font-size: 15px; }
.size small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.size:hover { border-color: var(--blue-200); }
.size.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.size.is-active small { color: rgba(255, 255, 255, .8); }
.pdp .swatch { width: 40px; height: 40px; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: 999px; border: 1.5px solid var(--line); }
.qty button { width: 46px; height: 100%; font-size: 20px; font-weight: 600; color: var(--blue); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.buy { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.buy .btn--primary { flex: 1; }
.summary-chip { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 12px 16px; border-radius: 14px; background: var(--blue-50); }
.summary-chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex-shrink: 0; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.perk { padding: 14px; border-radius: 14px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.perk b { display: block; color: var(--blue); font-size: 16px; font-weight: 800; }
.ptabs { margin-top: 36px; border-top: 1px solid var(--line); }
.ptabs__nav { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ptabs__nav button { padding: 16px 0; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs__nav button.is-active { color: var(--blue); border-color: var(--blue); }
.ptabs__body { padding: 22px 0; color: rgba(0, 0, 0, .75); }
.ptabs__body ul { padding: 0; margin: 16px 0 0; list-style: none; display: grid; gap: 10px; }
.ptabs__body li { display: flex; gap: 12px; align-items: start; }
.ptabs__body li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.specs td:last-child { text-align: right; font-weight: 700; }
.quote { margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--blue); font-weight: 600; color: var(--blue); }
.mobile-buy { display: none; }
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .gallery { position: static; }
  .gallery__main { border-radius: 20px; padding: 20px 12px 56px; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s var(--ease); }
  .mobile-buy.is-visible { transform: none; }
  .mobile-buy .price { font-size: 18px; }
  .mobile-buy small { display: block; font-size: 12px; color: var(--muted); }
}
@media (max-width: 480px) { .sizes { grid-template-columns: 1fr 1fr; } .perks { grid-template-columns: 1fr; } .gallery__tabs button { padding: 0 11px; } }

/* --- drawer / cart --- */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 20px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer__foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__media { background: var(--blue-50); border-radius: 12px; padding: 6px; display: grid; place-items: center; }
.line h4 { font-size: 15px; }
.line__opts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.line__opts i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.line__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.line .qty { height: 36px; }
.line .qty button { width: 32px; font-size: 16px; }
.line__price { font-weight: 800; }
.line__rm { font-size: 12px; color: var(--faint); font-weight: 600; margin-top: 6px; }
.line__rm:hover { color: var(--black); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.total-row span { color: var(--muted); font-weight: 600; }
.total-row b { font-size: 24px; font-weight: 800; }
.empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.empty svg { margin: 0 auto 18px; opacity: .9; }
.empty h4 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* --- checkout --- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; padding-bottom: 100px; }
.checkout h1 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 28px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 16px; background: #fff; transition: border-color .2s, box-shadow .2s; font-size: 15px; }
.field textarea { height: 100px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(34, 55, 130, .1); }
.field.has-error input { border-color: var(--black); }
.field__err { font-size: 12px; margin-top: 6px; font-weight: 600; display: none; }
.field.has-error .field__err { display: block; }
.pay { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay label { margin: 0; cursor: pointer; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay span { display: grid; place-items: center; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; transition: .2s; }
.pay input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.pay input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.order-box { position: sticky; top: calc(var(--header) + 20px); background: var(--blue-50); border-radius: 24px; padding: 28px; }
.order-box h3 { font-size: 20px; margin-bottom: 8px; }
.order-box .line { border-color: rgba(34, 55, 130, .12); }
.order-box .line__media { background: #fff; }
.secure { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .order-box { position: static; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .pay { grid-template-columns: 1fr 1fr; } }

/* --- success --- */
.success { max-width: 680px; margin: 0 auto; text-align: center; padding: 80px 0 110px; }
.success__icon { width: 96px; height: 96px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin: 0 auto 28px; animation: pop .6s var(--ease); box-shadow: 0 0 0 14px var(--blue-50); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success h1 { font-size: clamp(30px, 4vw, 46px); }
.success > p { color: var(--muted); margin: 14px auto 32px; max-width: 520px; }
.success .order-box { text-align: left; position: static; margin-bottom: 28px; }
.success__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- toast --- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--black); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 600; font-size: 14px; transition: .35s var(--ease); max-width: calc(100% - 32px); display: flex; gap: 14px; align-items: center; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: #fff; text-decoration: underline; font-weight: 700; }

/* --- footer --- */
.footer { background: var(--blue); color: #fff; padding: 80px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand img { width: 220px; height: auto; margin-bottom: 22px; }
.footer__brand p { opacity: .7; font-size: 14px; max-width: 340px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .6; margin-bottom: 18px; font-weight: 700; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.footer__links a { opacity: .9; transition: opacity .2s; }
.footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__muted { opacity: .6; font-size: 14px; margin-top: 12px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 24px; border-top: 1px solid var(--line-w); font-size: 13px; opacity: .7; flex-wrap: wrap; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* --- Telegram Mini App --- */
.tg-contact { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.is-tma .mobile-buy, .is-tma .header__phone, .is-tma #submitBtn { display: none !important; }
.is-tma .checkout, .is-tma .pdp { padding-bottom: 32px; }

/* --- reveal --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.page-enter { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- konstruktor --- */
.bld-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.bld-head h1 { font-size: clamp(30px, 4vw, 48px); margin: 12px 0 10px; max-width: 760px; }
.bld-head p { color: var(--muted); max-width: 640px; }
.bld { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.bld__stage { position: sticky; top: calc(var(--header) + 16px); display: grid; gap: 14px; }
.bld__scene { border-radius: 24px; padding: 48px 20px 18px; min-height: 300px; display: grid; place-items: end center; background: linear-gradient(180deg, var(--blue) 0 55%, #DCE1EC 55%, #F3F5FA 80%, #fff); position: relative; overflow: hidden; isolation: isolate; }
.bld__scene::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 55%; z-index: -1; background: url(/assets/logo-white.png) 0 0 / 130px auto repeat; opacity: .07; }
.bld__scene .mattress-svg { width: 100%; animation: float 7s ease-in-out infinite; }
.bld__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bld__price, .bld__match { padding: 16px 18px; border-radius: 18px; background: var(--blue-50); }
.bld__price span, .bld__match span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bld__price b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--blue); line-height: 1.2; font-variant-numeric: tabular-nums; }
.bld__price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.bld__match b { display: block; font-size: 17px; margin: 6px 0 10px; }
.meter { height: 8px; border-radius: 4px; background: var(--blue-100); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 4px; transition: width .6s var(--ease); }
.bld__layers { border-radius: 18px; border: 1px solid var(--line); padding: 12px 16px; background: #fff; }
.bld__layers summary { cursor: pointer; font-weight: 700; color: var(--blue); }
.bld__layers .layers-svg { width: 100%; max-height: 360px; margin-top: 8px; }
.bld__panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; min-height: 560px; }
.bld__steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-margin-top: calc(var(--header) + 10px); }
.bld__steps button { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; border: 1.5px solid var(--line); background: #fff; transition: .2s; }
.bld__steps button b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 12px; }
.bld__steps button[disabled] { opacity: .45; cursor: not-allowed; }
.bld__steps .is-done button b { background: var(--blue); color: #fff; }
.bld__steps .is-on button { border-color: var(--blue); color: var(--blue); }
.bld__steps .is-on button b { background: var(--blue); color: #fff; }
.bld__body h2 { font-size: 26px; }
.bld__hint { color: var(--muted); margin: 6px 0 18px; font-size: 14px; }
.bld__sub { font-size: 17px; margin: 22px 0 12px; }
.bld-in { animation: pageIn .4s var(--ease); }
.bopts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bopt { position: relative; text-align: left; padding: 16px 16px 14px 46px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; display: grid; gap: 3px; transition: .2s var(--ease); }
.bopt:hover { border-color: var(--blue-200); transform: translateY(-2px); }
.bopt.is-on { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 10px 24px -16px rgba(34, 55, 130, .6); }
.bopt__check { position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--blue-200); transition: .2s; }
.bopt.is-on .bopt__check { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center; border-color: var(--blue); }
.bopt__name { font-weight: 700; font-size: 15px; }
.bopt__note { font-size: 13px; color: var(--muted); }
.bopt__price { font-size: 13px; font-weight: 800; color: var(--blue); margin-top: 4px; }
.bopts--sizes { grid-template-columns: repeat(4, 1fr); }
.bopt--size { padding: 16px 12px 14px 42px; }
.bld__colors { align-items: center; }
.bld__colorname { font-size: 14px; font-weight: 700; margin-left: 6px; }
.bld__nav { margin-top: auto; padding-top: 22px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.bld__navprice { display: none; text-align: center; }
.bld__navprice small { display: block; font-size: 11px; color: var(--muted); }
.bld__navprice b { font-size: 16px; }
.bld__nav .btn[disabled] { opacity: .4; }
.bld-result { position: relative; }
.bld-result h2 { font-size: clamp(24px, 3vw, 32px); margin: 12px 0 0; }
.bld-result h2 em { font-style: normal; color: var(--blue); }
.bld-result__grid { display: grid; gap: 10px; margin: 6px 0 18px; }
.bld-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px; border-radius: 18px; background: var(--blue); color: #fff; }
.bld-total small { display: block; font-size: 12px; opacity: .75; }
.bld-total b { display: block; font-size: 28px; font-weight: 800; }
.bld-total__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bld-total .btn--primary { background: #fff; color: var(--blue); }
.bld-total .btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.confetti { position: absolute; inset: -20px 0 auto; height: 0; pointer-events: none; }
.confetti i { position: absolute; left: var(--x); top: 0; width: 8px; height: 14px; border-radius: 2px; background: var(--blue); transform: rotate(var(--r)); opacity: 0; animation: confetti 1.6s var(--d) ease-out forwards; }
.confetti i:nth-child(3n) { background: var(--blue-200); }
.confetti i:nth-child(4n) { background: #000; width: 6px; height: 6px; border-radius: 50%; }
@keyframes confetti { 0% { opacity: 1; transform: translateY(-10px) rotate(var(--r)); } 100% { opacity: 0; transform: translateY(260px) rotate(calc(var(--r) + 300deg)); } }
@media (max-width: 960px) {
  .bld { grid-template-columns: 1fr; gap: 16px; }
  .bld__stage { position: static; }
  .bld__scene { min-height: 0; padding: 36px 10px 10px; }
  .bld__layers { display: none; }
  .bld__panel { padding: 16px; min-height: 0; border-radius: 20px; }
  .bld__nav { position: sticky; bottom: 0; background: #fff; margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; }
  .bld__navprice { display: block; }
  .bopts--sizes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .bopts { grid-template-columns: 1fr; } .bld__price b { font-size: 24px; } }
.is-tma .bld__nav #bNext { display: none; }

/* konstruktor reklamasi (bosh sahifa) */
.promo-build { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; border-radius: 32px; padding: 48px; background: var(--blue-50); overflow: hidden; }
.promo-build h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 14px 0; }
.promo-build p { color: var(--muted); max-width: 520px; }
.promo-build ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; font-weight: 600; }
.promo-build li { display: flex; gap: 10px; align-items: center; }
.promo-build li b { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }
.promo-build__art .layers-svg { width: 100%; }
@media (max-width: 860px) { .promo-build { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 24px; } }

/* ================= Chegirma ================= */
.sale-ribbon { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 20px rgba(214, 40, 57, .35); font-size: 11px; letter-spacing: .06em; animation: salePulse 2.4s ease-in-out infinite; }
.sale-ribbon b { background: #D62839; color: #fff; padding: 6px 9px; font-weight: 800; }
.sale-ribbon i { background: #fff; color: #D62839; padding: 6px 9px; font-style: normal; font-weight: 800; font-size: 12px; }
@keyframes salePulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.card__sale { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.card__sale s { color: var(--faint); font-size: 13px; font-weight: 600; }
.sale-chip { background: #FDE8EA; color: #C4162A; border-radius: 999px; padding: 2px 8px; font-size: 11.5px; font-weight: 800; }
.pdp__sale { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pdp__sale[hidden] { display: none; }
.pdp__sale-tag { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: linear-gradient(90deg, #D62839, #F25C54); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; box-shadow: 0 8px 22px rgba(214, 40, 57, .3); position: relative; overflow: hidden; }
.pdp__sale-tag::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
#pSave { font-size: 14px; color: var(--muted); }
#pSave b { color: #C4162A; }
#pSave em { font-style: normal; font-weight: 800; color: #fff; background: #D62839; border-radius: 6px; padding: 2px 6px; margin-left: 4px; font-size: 12px; }
.pdp__price .price-old { font-size: 20px; text-decoration-color: #D62839; text-decoration-thickness: 2px; }
.pdp__sale + .pdp__price { margin-top: 10px; }

/* ================= 15 daqiqalik aksiya taymeri ================= */
.promo { position: fixed; left: 18px; bottom: 18px; z-index: 60; font-family: inherit; }
.promo__pill { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 8px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #223782, #3B57C4); box-shadow: 0 14px 34px rgba(34, 55, 130, .45); }
.promo__gift { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 18px; animation: giftShake 3s ease-in-out infinite; }
@keyframes giftShake { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); } }
.promo__time { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.promo__hint { font-size: 12px; font-weight: 600; opacity: .8; }
.promo.is-urgent .promo__pill { background: linear-gradient(135deg, #D62839, #F25C54); box-shadow: 0 14px 34px rgba(214, 40, 57, .45); }
.promo__card { position: absolute; left: 0; bottom: 62px; width: 310px; padding: 22px 20px 20px; border-radius: 22px; background: #fff; color: #000; box-shadow: 0 24px 60px rgba(10, 20, 60, .28); opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom left; pointer-events: none; transition: opacity .25s, transform .25s; }
.promo.is-open .promo__card { opacity: 1; transform: none; pointer-events: auto; }
.promo__card h4 { margin: 6px 0 12px; font-size: 18px; line-height: 1.25; }
.promo__card ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.promo__card li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.promo__card li b { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50, #EEF1FA); }
.promo__bar { height: 6px; border-radius: 99px; background: #EEF1FA; overflow: hidden; margin-bottom: 14px; }
.promo__bar i { display: block; height: 100%; background: linear-gradient(90deg, #223782, #3B57C4); border-radius: 99px; transition: width 1s linear; }
.promo.is-urgent .promo__bar i { background: linear-gradient(90deg, #D62839, #F25C54); }
.promo__card .btn { width: 100%; justify-content: center; }
.promo__x { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F2F4F9; font-size: 18px; cursor: pointer; color: #333; }
.promo.is-over { opacity: 0; transition: opacity 1s 2s; }
@media (max-width: 760px) {
  .promo { left: 12px; bottom: 84px; }
  .promo__pill { height: 44px; padding-right: 14px; }
  .promo__hint { display: none; }
  .promo__card { width: min(310px, calc(100vw - 24px)); bottom: 54px; }
}
html.is-tma .promo { bottom: 16px; }
.gift-box { margin: 18px auto 0; max-width: 520px; display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, #FFF4E5, #FDE8EA); border: 1px solid #F8C9CF; text-align: center; }
.gift-box b { color: #C4162A; }

/* bosh sahifa: ichki tuzilish 3D va konstruktor animatsiyasi */
.inside3d-home { position: relative; height: 470px; margin-top: 8px; border-radius: 20px; background: radial-gradient(110% 90% at 50% 10%, #fff 0%, var(--blue-50, #EEF1FA) 60%, #E3E8F6 100%); overflow: hidden; }
.inside3d-home .three-host { position: absolute; inset: 0; }
.promo-build__art { position: relative; min-height: 380px; border-radius: 24px; overflow: hidden; background: radial-gradient(90% 80% at 50% 20%, #fff 0%, #EEF1FA 70%, #E1E6F5 100%); }
.promo-build__art .three-host { position: absolute; inset: 0; }
.promo-build__name { position: absolute; left: 16px; top: 14px; z-index: 3; padding: 6px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(34,55,130,.3); }
@media (max-width: 760px) { .inside3d-home { height: 360px; } .promo-build__art { min-height: 300px; } }
/* ================= Telegram bot reklamasi ================= */
.botbar { background: #000; color: #fff; font-size: 13px; position: relative; z-index: 41; }
.botbar__row { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; color: inherit; text-decoration: none; }
.botbar__live { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: live 2s infinite; flex-shrink: 0; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.botbar__text { opacity: .86; }
.botbar__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #8FB2FF; }
.botbar__cta i { font-style: normal; transition: transform .3s var(--ease); }
.botbar__row:hover .botbar__cta i { transform: translateX(4px); }
@media (max-width: 640px) { .botbar__text { display: none; } }
.header__bot { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 8px 20px -8px rgba(34, 158, 217, .8); transition: transform .25s var(--ease); }
.header__bot:hover { transform: translateY(-1px); }
@media (max-width: 420px) { .header__bot span { display: none; } .header__bot { padding: 0 11px; } }

.bot-fab { position: fixed; right: 18px; bottom: 18px; z-index: 55; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border-radius: 999px; background: linear-gradient(135deg, #2AABEE, #229ED9); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 16px 36px -10px rgba(34, 158, 217, .75); transition: padding .45s var(--ease), transform .3s var(--ease), box-shadow .3s; }
.bot-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px rgba(34, 158, 217, .9); }
.bot-fab__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.bot-fab__label { white-space: nowrap; overflow: hidden; max-width: 160px; transition: max-width .45s var(--ease), opacity .3s; }
.bot-fab.is-small { padding-right: 7px; }
.bot-fab.is-small .bot-fab__label { max-width: 0; opacity: 0; }
@media (max-width: 760px) { .bot-fab { bottom: 84px; right: 12px; height: 50px; padding-right: 6px; } .bot-fab__icon { width: 38px; height: 38px; } .bot-fab .bot-fab__label { max-width: 0; opacity: 0; } }
html.is-tma .bot-fab, html.is-tma .botbar, html.is-tma .header__bot { display: none; }

.botsec { overflow: hidden; }
.botsec__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.botsec h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 18px; }
.botsec .grad { background: linear-gradient(90deg, #223782, #2AABEE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.botsec__copy > p { color: var(--muted); font-size: 18px; max-width: 520px; }
.botsec__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.botsec__list li { display: flex; gap: 16px; align-items: flex-start; }
.botsec__list b { font-size: 13px; color: var(--blue); background: var(--blue-50); border-radius: 10px; padding: 6px 9px; }
.botsec__list h4 { margin: 0 0 2px; font-size: 17px; }
.botsec__list p { margin: 0; color: var(--muted); font-size: 14.5px; }
.botsec__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.botsec__handle { font-weight: 700; color: var(--muted); }
.botsec__phone { display: grid; place-items: center; position: relative; isolation: isolate; }
.botsec__phone::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 171, 238, .28), transparent); z-index: -1; }
.iphone { width: 300px; aspect-ratio: 300 / 620; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #3a3d44, #15161a 40%, #2b2d33); box-shadow: inset 0 0 0 2px #55585f, 0 50px 90px -30px rgba(10, 20, 60, .55); transform: perspective(1400px) rotateY(calc(-14deg + var(--sy, 0) * 14deg)) rotateX(4deg); transition: transform .2s linear; }
.iphone__screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: linear-gradient(180deg, #DCE7F3, #CFDDEC); display: flex; flex-direction: column; }
.iphone__island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.chat__ava { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.chat__head b { display: block; font-size: 14px; line-height: 1.1; }
.chat__head small { color: #2AABEE; font-size: 12px; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; font-size: 12.5px; line-height: 1.35; }
.msg { max-width: 82%; padding: 8px 11px; border-radius: 16px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg--in { background: #fff; align-self: flex-start; border-bottom-left-radius: 5px; }
.msg--out { background: #E2FFC7; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg--btns { display: flex; gap: 5px; background: none; box-shadow: none; padding: 0; max-width: 100%; width: 100%; }
.msg--btns span { flex: 1; text-align: center; background: rgba(255, 255, 255, .7); border-radius: 10px; padding: 6px 4px; font-weight: 600; font-size: 11.5px; }
.msg--card { display: flex; gap: 8px; align-items: center; padding: 6px; }
.msg--card img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.msg--card b { display: block; font-size: 12.5px; }
.msg--card small { color: var(--muted); font-size: 11px; }
.chat.is-on .msg { opacity: 1; transform: none; }
.chat.is-on .msg:nth-child(2) { transition-delay: .35s; }
.chat.is-on .msg:nth-child(3) { transition-delay: .9s; }
.chat.is-on .msg:nth-child(4) { transition-delay: 1.4s; }
.chat.is-on .msg:nth-child(5) { transition-delay: 2s; }
.chat.is-on .msg:nth-child(6) { transition-delay: 2.6s; }
@media (max-width: 900px) { .botsec__grid { grid-template-columns: 1fr; gap: 40px; } .iphone { width: 260px; } }

/* ================= Apple uslubidagi harakatlar ================= */
.reveal { opacity: 0; transform: translateY(40px) scale(.985); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s cubic-bezier(.16, 1, .3, 1), filter 1s var(--ease); transition-delay: var(--rd, 0ms); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.hero__visual { translate: 0 calc(var(--sy, 0) * 60px); scale: calc(1 - var(--sy, 0) * .06); }
.hero__copy { opacity: calc(1 - var(--sy, 0) * .6); translate: 0 calc(var(--sy, 0) * -24px); }
::view-transition-old(root) { animation: vtOut .28s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vtIn .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; filter: none; } .hero__visual, .hero__copy { translate: none; scale: none; opacity: 1; } .iphone { transform: none; } .msg { opacity: 1; transform: none; } }
.chat__input { display: flex; align-items: center; justify-content: space-between; margin: 0 10px 18px; padding: 9px 14px; border-radius: 999px; background: #fff; color: rgba(0, 0, 0, .35); font-size: 12px; }
.chat__input i { font-style: normal; color: #2AABEE; }

/* ================= Konstruktor o'yini (scroll bilan yig'iladigan sahna) ================= */
.bx { --bx-bg: #0A1238; background: radial-gradient(120% 80% at 70% 0%, #1B2C77 0%, #0E1A52 45%, var(--bx-bg) 100%); color: #fff; overflow: clip; }
.bx-intro { position: relative; height: 280vh; }
.bx-intro__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; }
.bx-big { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); font-weight: 800; font-size: clamp(80px, 19vw, 300px); line-height: .9; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .16); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; pointer-events: none; user-select: none; transition: opacity .3s; }
.bx-intro__scene { position: absolute; inset: 6vh 0 0; }
.bx-intro__scene canvas, .bx-scene canvas { display: block; width: 100%; height: 100%; }
.bx-intro__cap { position: absolute; left: 0; right: 0; bottom: 6vh; z-index: 2; pointer-events: none; }
.bx-intro__cap > * { pointer-events: auto; }
.bx-intro__cap .eyebrow { color: #8FB2FF; }
.bx-intro__cap h1 { font-size: clamp(32px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 10px; max-width: 760px; }
.bx-intro__cap h1 em { font-style: normal; background: linear-gradient(90deg, #8FB2FF, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-intro__cap p { color: rgba(255, 255, 255, .72); font-weight: 600; min-height: 1.6em; }
.bx-intro__bar { width: min(360px, 70%); height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 14px; }
.bx-intro__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8FB2FF, #fff); }
.crumbs--dark, .crumbs--dark a { color: rgba(255, 255, 255, .6); }

.bx-game { position: relative; padding: 40px 0 90px; }
.bx-game__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.bx-stage { position: sticky; top: calc(var(--header) + 14px); height: calc(100vh - var(--header) - 28px); min-height: 520px; border-radius: 32px; background: radial-gradient(90% 70% at 50% 35%, rgba(143, 178, 255, .22), rgba(255, 255, 255, .03) 70%); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; isolation: isolate; }
.bx-word { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: -1; font-weight: 800; font-size: clamp(64px, 10vw, 170px); letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .14); pointer-events: none; }
.bx-word.is-in { animation: bxWord .7s cubic-bezier(.16, 1, .3, 1); }
@keyframes bxWord { from { opacity: 0; transform: translate(-50%, -38%) scale(.94); letter-spacing: .02em; } }
.bx-scene { position: absolute; inset: 56px 0 120px; }
.bx-hud { position: absolute; left: 18px; right: 18px; top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; z-index: 2; }
.bx-level { display: grid; gap: 6px; min-width: 180px; }
.bx-level span { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #C9D6FF; }
.bx-level__bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bx-level__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #3DDC84, #8FB2FF); transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.bx-random { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s; }
.bx-random:hover { background: rgba(255, 255, 255, .18); }
.bx-hint { position: absolute; left: 50%; top: 52%; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .8); font-weight: 700; font-size: 14px; white-space: nowrap; animation: bxPulse 2s ease-in-out infinite; }
.bx-hint[hidden] { display: none; }
@keyframes bxPulse { 50% { opacity: .5; } }
.bx-pop { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); z-index: 3; padding: 8px 16px; border-radius: 999px; background: #3DDC84; color: #062A14; font-weight: 800; font-size: 15px; opacity: 0; pointer-events: none; white-space: nowrap; box-shadow: 0 12px 30px rgba(61, 220, 132, .35); }
.bx-pop.is-on { animation: bxPop 1.3s cubic-bezier(.16, 1, .3, 1); }
@keyframes bxPop { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 70% { opacity: 1; transform: translate(-50%, -18px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -40px); } }
.bx-stats { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; z-index: 2; }
.bx-stat { padding: 12px 16px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); display: grid; gap: 2px; }
.bx-stat span { font-size: 12px; color: rgba(255, 255, 255, .62); font-weight: 600; }
.bx-stat b { font-size: 22px; letter-spacing: -.02em; }
.bx-stat small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.bx-stat .meter { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-top: 4px; }
.bx-stat .meter i { display: block; height: 100%; background: linear-gradient(90deg, #8FB2FF, #3DDC84); border-radius: 99px; transition: width .6s; }
.bx-panel { background: #fff; color: var(--ink); border-radius: 32px; padding: 26px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6); }
.bx .bopt { transition: transform .18s var(--ease), box-shadow .2s, border-color .2s; }
.bx .bopt:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(34, 55, 130, .5); }
.bx .bopt:active { transform: scale(.97); }
.bx .bopt.is-on { animation: boptPick .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes boptPick { 40% { transform: scale(1.04); } }
@media (max-width: 960px) {
  .bx-intro { height: 220vh; }
  .bx-game__grid { grid-template-columns: minmax(0, 1fr); }
  .bx-stage { height: 56vh; min-height: 380px; top: calc(var(--header) + 6px); z-index: 3; }
  .bx-scene { inset: 50px 0 96px; }
  .bx-stat b { font-size: 17px; }
  .bx-panel { padding: 18px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { .bx-intro { height: auto; } .bx-intro__sticky { position: relative; height: 90vh; } }
@media (min-width: 961px) { .bx-intro__scene { inset: 4vh 0 0 34%; } .bx-intro__cap { bottom: 12vh; } .bx-intro__cap h1 { max-width: 520px; } }
@media (max-width: 960px) { .bx-intro__scene { inset: 8vh 0 34vh; } }
.bld__nav [hidden] { display: none !important; }
@media (max-width: 960px) { .bld__navprice b { white-space: nowrap; font-size: 15px; } }

/* konstruktor v2: katta sahna, qo'l bilan sudrab yig'ish */
.bx-top { padding-top: 26px; }
.bx-top__row { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; margin-top: 10px; }
.bx-top .eyebrow { color: #8FB2FF; }
.bx-top h1 { font-size: clamp(30px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.035em; margin: 10px 0 0; }
.bx-top h1 em { font-style: normal; background: linear-gradient(90deg, #8FB2FF, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bx-top p { color: rgba(255, 255, 255, .7); max-width: 440px; margin: 0; }
.bx-game { padding: 26px 0 90px; }
.bx-game__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
.bx-stage { height: calc(100vh - var(--header) - 40px); min-height: 600px; }
.bx-scene { inset: 50px 0 110px; }
.bx-word { font-size: clamp(80px, 13vw, 230px); }
.bx-hud__tip { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 700; }
.bx-panel { max-height: calc(100vh - var(--header) - 40px); overflow: auto; position: sticky; top: calc(var(--header) + 14px); }
.bx .bopts { grid-template-columns: 1fr; }
.bx .bopt[data-g] { cursor: grab; user-select: none; }
.bx .bopt.is-dragging { opacity: .35; transform: scale(.97); }
.bx-drop { position: absolute; inset: 60px 24px 120px; border: 2px dashed rgba(143, 178, 255, .55); border-radius: 26px; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s, background .2s, border-color .2s; }
.bx-drop span { padding: 10px 18px; border-radius: 999px; background: rgba(143, 178, 255, .2); font-weight: 800; letter-spacing: .02em; }
.bx-stage.is-target .bx-drop { opacity: 1; }
.bx-stage.is-over .bx-drop { background: rgba(61, 220, 132, .1); border-color: #3DDC84; }
.bx-stage.is-over .bx-drop span { background: #3DDC84; color: #062A14; }
.bx-ghost { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: #fff; color: #0B0B0C; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); border: 2px solid var(--blue); max-width: 260px; }
.bx-ghost b { font-size: 15px; }
.bx-ghost small { color: var(--blue); font-weight: 700; }
.bx-ghost.is-back { transition: opacity .25s; opacity: 0; }
.bx-own { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--blue-50); display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.bx-own b { color: var(--ink); }
.bx-own__btn { justify-self: start; border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.bx .bld-total { background: var(--blue); color: #fff; }
@media (max-width: 960px) {
  .bx-game__grid { grid-template-columns: minmax(0, 1fr); }
  .bx-stage { height: 52vh; min-height: 360px; }
  .bx-panel { max-height: none; overflow: visible; position: static; }
  .bx-scene { inset: 46px 0 96px; }
  .bx-top p { display: none; }
}
@media (max-width: 960px) { .bx-stage { position: sticky; top: var(--header); z-index: 5; height: 46vh; min-height: 320px; border-radius: 0 0 24px 24px; margin: 0 -16px; background: radial-gradient(90% 70% at 50% 35%, #22388f, #0E1A52 75%); box-shadow: 0 18px 30px -12px rgba(0,0,0,.6); } .bx-stats { grid-template-columns: 1fr 1fr; } .bx-stat { padding: 8px 12px; } .bx-word { font-size: 64px; } }

/* ================= Konstruktor v3: ko'k sahna, katta matras, o'ngda oy shaklidagi detallar yoyi ================= */
.bz { position: relative; height: calc(100vh - var(--header)); min-height: 640px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(70% 70% at 38% 45%, #2F4BB0 0%, #223782 45%, #17255E 100%); }
.bz::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 40% 78%, rgba(0, 0, 0, .28), transparent 70%); }
.bz-scene { position: absolute; inset: 0; }
.bz-scene canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.bz-top { position: absolute; left: 0; right: min(420px, 32vw); top: 0; padding: 22px 32px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; z-index: 3; pointer-events: none; }
.bz-top > * { pointer-events: auto; }
.bz-title .eyebrow { color: #A9C1FF; }
.bz-title h1 { margin: 8px 0 0; font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.03em; line-height: 1.05; }
.bz-steps { list-style: none; margin: 4px 0 0; padding: 4px; display: flex; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); }
.bz-steps button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: rgba(255, 255, 255, .6); padding: 6px 10px 6px 6px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bz-steps button:disabled { opacity: .35; cursor: default; }
.bz-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 11px; }
.bz-steps .is-on button { background: #fff; color: var(--blue); }
.bz-steps .is-on b { background: var(--blue); color: #fff; }
.bz-steps .is-done b { background: #3DDC84; color: #062A14; }
@media (max-width: 1280px) { .bz-steps span { display: none; } .bz-steps .is-on span { display: inline; } }

.bz-arc { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 32vw); z-index: 4; touch-action: none; user-select: none; }
.bz-arc[hidden] { display: none; }
.bz-arc__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bz-arc__ring circle { stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; stroke-dasharray: 3 7; }
.bz-arc__title { position: absolute; right: 26px; top: 22px; text-align: right; max-width: 260px; display: grid; gap: 4px; }
.bz-arc__title b { font-size: 20px; letter-spacing: -.02em; }
.bz-arc__title small { color: rgba(255, 255, 255, .62); font-size: 12.5px; line-height: 1.35; }
.bz-arc__hint { position: absolute; right: 26px; bottom: 22px; font-size: 12px; color: rgba(255, 255, 255, .55); text-align: right; max-width: 240px; }
.bz-arc__track { position: absolute; inset: 0; }
.bz-item { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: #fff; padding: 0; cursor: pointer; font: inherit; text-align: left; transition: opacity .25s; will-change: transform; }
.bz-item__pic { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 70%); border: 1.5px solid rgba(255, 255, 255, .22); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .2s, box-shadow .2s, background .2s; }
.bz-item__pic img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); pointer-events: none; }
.bz-item__pic em { position: absolute; right: -2px; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: #3DDC84; color: #062A14; font-style: normal; font-weight: 900; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.bz-swatch { width: 62%; height: 62%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 6px 14px rgba(0, 0, 0, .35); }
.bz-load { width: 30%; height: 30%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bz-item__txt { display: grid; gap: 2px; max-width: 150px; opacity: .55; transition: opacity .25s; }
.bz-item__txt b { font-size: 13.5px; line-height: 1.2; }
.bz-item__txt small { font-size: 12px; color: #A9C1FF; font-weight: 700; }
.bz-item.is-focus .bz-item__txt { opacity: 1; }
.bz-item:hover .bz-item__pic, .bz-item:focus-visible .bz-item__pic { transform: scale(1.32); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, .12) 70%); border-color: #fff; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6), 0 0 0 6px rgba(143, 178, 255, .25); }
.bz-item:hover .bz-item__txt { opacity: 1; }
.bz-item.is-on .bz-item__pic { border-color: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .3), 0 14px 30px -12px rgba(0, 0, 0, .5); }
.bz-ghost { position: fixed; left: 0; top: 0; z-index: 300; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .3); border: 2px solid #fff; pointer-events: none; backdrop-filter: blur(6px); }
.bz-ghost img { width: 86%; }
.bz-ghost em { display: none; }
.bz.is-drag .bz-scene::after { content: "Matrasga tashlang"; position: absolute; left: 34%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px; border: 2px dashed rgba(255, 255, 255, .6); font-weight: 800; pointer-events: none; }
.bz.is-over .bz-scene::after { background: #3DDC84; color: #062A14; border-color: #3DDC84; }

.bz-pop { position: absolute; left: 34%; top: 22%; transform: translateX(-50%); z-index: 5; padding: 8px 16px; border-radius: 999px; background: #3DDC84; color: #062A14; font-weight: 800; font-size: 15px; opacity: 0; pointer-events: none; white-space: nowrap; box-shadow: 0 12px 30px rgba(61, 220, 132, .35); }
.bz-pop.is-on { animation: bxPop 1.3s cubic-bezier(.16, 1, .3, 1); }

.bz-hud { position: absolute; left: 32px; right: calc(min(420px, 32vw) + 12px); bottom: 24px; z-index: 3; display: flex; align-items: flex-end; gap: 12px; }
.bz-stat { padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(10px); display: grid; gap: 1px; min-width: 180px; }
.bz-stat span { font-size: 12px; color: rgba(255, 255, 255, .62); font-weight: 600; }
.bz-stat b { font-size: 21px; letter-spacing: -.02em; }
.bz-stat small { color: rgba(255, 255, 255, .55); font-size: 12px; }
.bz-stat .meter { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 4px; }
.bz-stat .meter i { display: block; height: 100%; background: linear-gradient(90deg, #8FB2FF, #3DDC84); transition: width .6s; }
.bz-nav { margin-left: auto; display: flex; gap: 8px; }
.bz-btn { height: 52px; padding: 0 24px; border-radius: 999px; border: 0; background: #fff; color: var(--blue); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .2s var(--ease), opacity .2s; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.bz-btn:hover { transform: translateY(-2px); }
.bz-btn:disabled { opacity: .4; cursor: default; transform: none; }
.bz-btn[hidden] { display: none; }
.bz-btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: none; min-width: 52px; padding: 0 18px; }

.bz-result { position: absolute; top: 20px; right: 20px; bottom: 20px; width: min(420px, 34vw); z-index: 6; overflow: auto; padding: 26px; border-radius: 28px; background: rgba(13, 24, 72, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(16px); animation: bzIn .6s cubic-bezier(.16, 1, .3, 1); }
.bz-result[hidden] { display: none; }
@keyframes bzIn { from { opacity: 0; transform: translateX(30px); } }
.bz-result .eyebrow { color: #A9C1FF; }
.bz-result h2 { font-size: 26px; line-height: 1.12; margin: 10px 0 16px; letter-spacing: -.02em; }
.bz-result h2 em { font-style: normal; color: #A9C1FF; }
.bz-best { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; }
.bz-best img { width: 120px; height: 84px; object-fit: contain; }
.bz-best small { color: #A9C1FF; font-size: 12px; font-weight: 700; }
.bz-best b { display: block; font-size: 18px; margin: 2px 0; }
.bz-best span { font-size: 13px; color: rgba(255, 255, 255, .75); }
.bz-result__btns { display: flex; gap: 8px; margin: 14px 0 18px; }
.bz-result__btns .bz-btn { flex: 1; height: 48px; }
.bz-others { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bz-others a { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.bz-others img { width: 54px; height: 38px; object-fit: contain; }
.bz-others small { display: block; color: #A9C1FF; font-weight: 600; }
.bz-own { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.5; }
.bz-own b { color: rgba(255, 255, 255, .85); }
.bz-own button { border: 0; background: none; padding: 0; color: #A9C1FF; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bz-restart { margin-top: 14px; border: 0; background: none; color: rgba(255, 255, 255, .6); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.bz-result .confetti { pointer-events: none; }

@media (max-width: 899px) {
  .bz { height: calc(100svh - var(--header)); min-height: 600px; }
  .bz-top { right: 0; padding: 14px 16px 0; flex-direction: column; gap: 10px; }
  .bz-title h1 { font-size: 22px; }
  .bz-steps { max-width: 100%; overflow-x: auto; }
  .bz-arc { left: 0; right: 0; top: auto; width: auto; height: 300px; }
  .bz-arc__title { left: 16px; right: 16px; top: 4px; text-align: center; max-width: none; }
  .bz-arc__title b { font-size: 16px; }
  .bz-arc__title small { display: none; }
  .bz-arc__hint { left: 16px; right: 16px; bottom: 8px; text-align: center; max-width: none; }
  .bz-item { flex-direction: column; gap: 4px; text-align: center; }
  .bz-item__pic { width: 78px; height: 78px; }
  .bz-item__txt { max-width: 110px; }
  .bz-item__txt b { font-size: 12px; }
  .bz-hud { left: 12px; right: 12px; bottom: 304px; gap: 8px; }
  .bz-stat { min-width: 0; flex: 1; padding: 8px 12px; }
  .bz-stat b { font-size: 16px; }
  .bz-nav { position: absolute; right: 0; top: -60px; }
  .bz-btn { height: 46px; padding: 0 18px; font-size: 14px; }
  .bz-result { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 62%; padding: 18px; }
  .bz-pop, .bz.is-drag .bz-scene::after { left: 50%; }
}
html.is-tma .bz-nav { display: none; }
html.on-bz .bot-fab, html.on-bz .promo { display: none; }
.bz-steps button { white-space: nowrap; }
.bz-steps li:not(.is-on) span { display: none; }
.bz-result { overflow-x: hidden; overflow-y: auto; }
/* chegirmali narx tepada, asl narx ostida */
.card__sale--under { margin-top: 4px; }
.pdp__price { flex-direction: column; align-items: flex-start; gap: 2px; }
