/* ---------- ranglar va shriftlar ---------- */
:root {
  --bg: #FAF6F0;
  --surface: #FFFFFF;
  --surface-2: #F3ECE3;
  --text: #2A211B;
  --hint: #8B7F75;
  --line: rgba(42, 33, 27, .1);
  --brand: #C8743D;
  --brand-2: #E59A60;
  --brand-soft: rgba(200, 116, 61, .12);
  --brown: #3B2A20;
  --cream: #F4E9D8;
  --ok: #2E9E5B;
  --err: #D64545;
  --shadow: 0 1px 2px rgba(42, 33, 27, .05), 0 10px 28px rgba(42, 33, 27, .08);
  --shadow-lg: 0 18px 40px rgba(42, 33, 27, .18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15100D; --surface: #211913; --surface-2: #2B2119; --text: #F3EBE3; --hint: #A3968A;
    --line: rgba(255, 255, 255, .1); --brand-soft: rgba(229, 154, 96, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15100D; --surface: #211913; --surface-2: #2B2119; --text: #F3EBE3; --hint: #A3968A;
  --line: rgba(255, 255, 255, .1); --brand-soft: rgba(229, 154, 96, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.has-tabs { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
body.has-fb { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-tabs.has-fb { padding-bottom: calc(146px + env(safe-area-inset-bottom)); }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
.ico { width: 22px; height: 22px; flex: none; }
.ico.big { width: 44px; height: 44px; stroke-width: 1.3; }

/* ---------- yuklanish ---------- */
.loader { display: grid; place-items: center; height: 70vh; }
.loader span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 20px; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s ease both; }

/* ---------- yuqori panel va qidiruv ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.top-brand { display: flex; align-items: center; gap: 10px; }
.top-brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow); }
.top-brand b { display: block; font-family: var(--serif); font-size: 21px; letter-spacing: -.2px; line-height: 1.1; }
.top-brand small { color: var(--hint); font-size: 12px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--brand);
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none;
}
.icon-btn .ico { width: 20px; height: 20px; }
.search {
  margin: 12px 16px 0; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; height: 46px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); color: var(--hint);
}
.search .ico { width: 19px; height: 19px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--hint); font-size: 14.5px; }
.search button { border: 0; background: var(--surface-2); width: 26px; height: 26px; border-radius: 50%; font-size: 17px; line-height: 1; color: var(--hint); }
.greet { padding: 14px 16px 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; letter-spacing: -.4px; margin: 0; }
.greet span { color: var(--brand); }

/* ---------- asosiy karusel ---------- */
.feature-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 14px 16px 6px; scroll-padding: 0 16px;
}
.feature-track::-webkit-scrollbar { display: none; }
.fcard {
  position: relative; flex: 0 0 86%; height: min(292px, 74vw); border-radius: 26px; overflow: hidden;
  scroll-snap-align: start; text-decoration: none; color: #fff; box-shadow: var(--shadow-lg); background: #e9e0d4;
}
.fcard:active { transform: scale(.985); }
.fimg, .fimg svg, .fimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 13, 9, 0) 38%, rgba(20, 13, 9, .86) 100%); }
.ftag {
  position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--brown);
  font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.finfo { position: absolute; left: 18px; right: 70px; bottom: 16px; }
.ftitle { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -.3px; }
.fprice { font-size: 14.5px; font-weight: 600; color: #FFD7B0; margin-top: 5px; line-height: 1.35; }
.fprice span { display: block; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.fgo {
  position: absolute; right: 16px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(200, 116, 61, .45);
}
.dots { display: flex; justify-content: center; gap: 6px; padding-top: 8px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .25s, background .25s; }
.dots i.on { width: 20px; background: var(--brand); }

/* ---------- ishonch belgilari ---------- */
.trust-strip {
  margin: 16px 16px 0; display: flex; background: var(--surface);
  border-radius: 20px; box-shadow: var(--shadow); padding: 13px 2px 12px;
}
.trust-strip div { flex: 1; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 11.5px; line-height: 1.25; font-weight: 500; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip .ico { color: var(--brand); width: 24px; height: 24px; }

/* ---------- bo'limlar ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 26px 16px 12px; }
.sec-head h3 { margin: 0; font-family: var(--serif); font-size: 22px; letter-spacing: -.3px; }
.sec-head h3 small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--hint); margin-left: 4px; vertical-align: 2px; }
.sort select {
  -webkit-appearance: none; appearance: none; border: 0; outline: 0; font: inherit; font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B7F75' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 14px;
  box-shadow: var(--shadow); border-radius: 999px; padding: 7px 28px 7px 13px;
}
.rate { font-size: 13px; color: var(--hint); white-space: nowrap; }
.rate b { color: var(--brand); }
.cats { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 6px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { border: 0; background: none; padding: 0; flex: 0 0 76px; display: grid; justify-items: center; align-content: start; gap: 7px; font-size: 12px; line-height: 1.2; text-align: center; }
.cat-img {
  width: 74px; height: 74px; border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow); border: 2.5px solid transparent; transition: border-color .2s, transform .2s;
}
.cat-img svg { width: 100%; height: 100%; }
.cat.on .cat-img { border-color: var(--brand); transform: translateY(-2px); }
.cat.on span { color: var(--brand); font-weight: 650; }
.cat-all { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 18px; background: var(--surface-2); }
.cat-all i { border-radius: 6px; background: var(--brand); opacity: .85; }
.cat-all i:nth-child(2), .cat-all i:nth-child(3) { opacity: .45; }

/* ---------- mahsulotlar to'ri ---------- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0 16px; }
.card { position: relative; background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s; }
.card > a { display: block; text-decoration: none; height: 100%; }
.card:active { transform: scale(.975); }
.thumb { position: relative; aspect-ratio: 1 / .86; background: #e9e0d4; overflow: hidden; }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.demo-badge {
  position: absolute; top: 9px; left: 9px; background: rgba(255, 255, 255, .9); color: var(--brown);
  font-size: 10.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px;
}
.fav {
  position: absolute; top: 7px; right: 7px; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #6b5d52; box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
  transition: transform .15s;
}
.fav .ico { width: 18px; height: 18px; }
.fav:active { transform: scale(.85); }
[data-fav].on { color: #E0493E; }
[data-fav].on .ico { fill: currentColor; }
.card-body { padding: 11px 12px 12px; }
.card-title { font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.card-meta { color: var(--hint); font-size: 12px; margin-top: 3px; }
.card-price { color: var(--brand); font-weight: 700; font-size: 15px; margin-top: 8px; white-space: nowrap; }
.card-price small { font-size: 11.5px; font-weight: 500; color: var(--hint); }
.card-credit { margin-top: 3px; font-size: 11.5px; color: var(--hint); white-space: nowrap; }
.empty { text-align: center; color: var(--hint); padding: 36px 24px; }
.empty .ico { margin: 0 auto 10px; color: var(--brand); opacity: .7; }
.empty p { margin: 0 auto 14px; max-width: 300px; }
.empty .btn { display: inline-block; width: auto; padding: 12px 22px; }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; padding: 8px; text-decoration: none; }

/* ---------- takliflar ---------- */
.cta {
  margin: 26px 16px 0; border-radius: 24px; padding: 20px; color: var(--cream); text-decoration: none; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  background: radial-gradient(120% 140% at 0% 0%, #6a4a35 0%, var(--brown) 55%, #241913 100%); box-shadow: var(--shadow-lg);
}
.cta h4 { margin: 0 0 4px; font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 20px; color: #fff; line-height: 1.2; }
.cta p { margin: 0; font-size: 13px; opacity: .82; }
.cta b { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: #fff; }
.own { margin: 14px 16px 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; display: grid; grid-template-columns: 46px 1fr; gap: 4px 12px; align-items: center; }
.page .own { margin: 22px 0 0; }
.own-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.own h4 { margin: 0 0 2px; font-size: 15.5px; }
.own p { margin: 0; font-size: 13px; color: var(--hint); line-height: 1.35; }
.own button { grid-column: 1 / -1; margin-top: 10px; border: 1.5px solid var(--brand); background: none; color: var(--brand); border-radius: 14px; padding: 11px; font-weight: 650; font-size: 14.5px; }
.more { margin: 4px 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.more .ico { color: var(--hint); width: 18px; height: 18px; }

/* ---------- mijozlar fikri ---------- */
.reviews { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 16px; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 78%; scroll-snap-align: start; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; }
.stars { color: #F2A93B; font-size: 15px; letter-spacing: 2px; }
.stars i { font-style: normal; color: var(--line); }
.review p { margin: 8px 0 12px; font-size: 14px; line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review b { font-size: 14px; }
.review small { color: var(--hint); font-size: 12px; }

/* ---------- qanday ishlaydi ---------- */
.how { padding: 0 16px; }
.how-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.how-item:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px; width: 2px; background: var(--line); }
.how-num { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); }
.how-num .ico { width: 20px; height: 20px; }
.how-item strong { display: block; font-size: 15px; margin: 2px 0 2px; }
.how-item span { color: var(--hint); font-size: 13px; line-height: 1.4; }
.contact {
  margin: 12px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none;
}
.contact small { color: var(--hint); display: block; font-size: 12.5px; }
.contact b { font-size: 16px; }
.contact em { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 9px 14px 9px 11px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.contact em .ico { width: 16px; height: 16px; }
.foot { text-align: center; color: var(--hint); font-size: 12px; padding: 22px 16px 8px; }

/* ---------- mahsulot sahifasi ---------- */
.pg-hero { position: relative; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 0 0 30px 30px; box-shadow: var(--shadow); }
.gallery::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; aspect-ratio: 4 / 3.3; scroll-snap-align: start; background: #e9e0d4; position: relative; }
.slide img, .slide svg { width: 100%; height: 100%; object-fit: cover; }
.pg-hero .dots { position: absolute; left: 0; right: 0; bottom: 14px; padding: 0; }
.pg-hero .dots i { background: rgba(255, 255, 255, .55); }
.pg-hero .dots i.on { background: #fff; }
.round {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .93); box-shadow: 0 4px 14px rgba(0, 0, 0, .15); color: var(--brown); position: static;
}
.round .ico { width: 20px; height: 20px; }
.float-back { position: absolute; top: 12px; left: 12px; z-index: 2; }
.hero-actions { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; gap: 8px; }
.pg-hero .demo-badge { top: auto; bottom: 14px; left: 14px; font-size: 11.5px; padding: 6px 10px; }
.page { padding: 18px 16px 28px; }
.kind-label { color: var(--brand); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .9px; }
.page h2 { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 28px; line-height: 1.15; letter-spacing: -.4px; margin: 6px 0 8px; }
.desc, .hint { color: var(--hint); font-size: 14.5px; line-height: 1.5; margin: 0; }
.hint.small { font-size: 13px; }
.note { margin-top: 10px; font-size: 13px; color: var(--hint); background: var(--surface-2); border-radius: 14px; padding: 10px 12px; line-height: 1.4; }
.sec-title { font-weight: 650; font-size: 15px; margin: 24px 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.sec-title b { color: var(--brand); font-size: 17px; }

.mats { display: grid; gap: 10px; }
.mat {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 0 12px; text-align: left;
  background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent; border-radius: 18px; padding: 11px 14px;
  transition: border-color .15s, transform .15s;
}
.mat:active { transform: scale(.985); }
.mat .sw { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.mat b { font-size: 15px; }
.mat small { color: var(--hint); font-size: 12.5px; grid-column: 2; }
.mat em { font-style: normal; color: var(--brand); font-weight: 650; font-size: 13px; grid-row: 1 / span 2; grid-column: 3; }
.mat.on { border-color: var(--brand); }
.sw-ldsp { background: repeating-linear-gradient(100deg, #c9a27e 0 5px, #b98f69 5px 7px, #d3ae8b 7px 12px); }
.sw-mdf { background: linear-gradient(145deg, #e9e1d6, #cfc3b4); }
.sw-akril { background: linear-gradient(135deg, #ffffff 0%, #a9b9cc 35%, #2f3b4c 75%, #50627a 100%); }
.sw-kraska { background: radial-gradient(circle at 30% 30%, #ffffff, #efe8dd 55%, #d9cdbd 100%); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; outline: none; margin: 10px 0 6px;
  background: linear-gradient(to right, var(--brand) var(--p, 30%), var(--line) var(--p, 30%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.scale { display: flex; justify-content: space-between; color: var(--hint); font-size: 12px; }
.quick { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-size: 13px; }
.quick button.on { border-color: var(--brand); color: var(--brand); font-weight: 650; }

.price-box {
  margin-top: 22px; padding: 18px 18px 16px; border-radius: 24px; color: var(--cream);
  background: radial-gradient(120% 140% at 0% 0%, #6a4a35 0%, var(--brown) 55%, #241913 100%); box-shadow: var(--shadow-lg);
}
.price-box .pl { font-size: 13px; opacity: .8; }
.price-box .pv { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 30px; font-weight: 700; letter-spacing: -.4px; color: #fff; margin: 2px 0 8px; }
.price-box .pn { font-size: 12.5px; opacity: .78; line-height: 1.45; }

/* ---------- to'lov usuli va bo'lib to'lash ---------- */
.pay { margin-top: 14px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 16px; }
.pay-title { font-weight: 650; font-size: 15px; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; border-radius: 11px; padding: 10px 6px; font-size: 14px; font-weight: 550; color: var(--hint); transition: background .15s, color .15s; }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 650; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.pay-teaser {
  margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0;
  background: var(--brand-soft); border-radius: 14px; padding: 12px; font-size: 13.5px; line-height: 1.35;
}
.pay-teaser .ico { color: var(--brand); }
.pay-teaser .ico:last-child { width: 16px; height: 16px; margin-left: auto; }
.pay-teaser b { color: var(--brand); white-space: nowrap; }
.pay-row { margin-top: 14px; }
.pay-row > span { display: block; font-size: 13px; color: var(--hint); font-weight: 500; margin-bottom: 7px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 9px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.chips.sm { gap: 6px; }
.chips.sm .chip { padding: 8px 13px; font-size: 13.5px; }
.credit-res { margin-top: 14px; background: var(--brand-soft); border-radius: 18px; padding: 14px 16px 6px; }
.cr-l { font-size: 13px; color: var(--hint); font-weight: 500; }
.cr-v { font-size: 23px; font-weight: 700; letter-spacing: -.4px; color: var(--brand); line-height: 1.25; margin-top: 1px; }
.cr-sub { font-size: 12.5px; color: var(--hint); margin-bottom: 10px; }
.credit-res dl { margin: 0; border-top: 1px solid var(--line); }
.credit-res dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; }
.credit-res dl div + div { border-top: 1px dashed var(--line); }
.credit-res dt { color: var(--hint); white-space: nowrap; }
.credit-res dd { margin: 0; font-weight: 600; text-align: right; }
.pay-note { margin: 10px 2px 0; font-size: 12px; color: var(--hint); line-height: 1.4; }
.page > #pay .pay { margin-top: 18px; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.perks div { display: grid; justify-items: center; align-content: start; gap: 6px; font-size: 11.5px; text-align: center; line-height: 1.2; color: var(--hint); }
.perks i { font-style: normal; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--brand); }
.perks .ico { width: 20px; height: 20px; }
.similar { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px 6px; scrollbar-width: none; }
.similar::-webkit-scrollbar { display: none; }
.similar .card { flex: 0 0 46%; }

.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kind {
  border: 2px solid transparent; background: var(--surface); box-shadow: var(--shadow); border-radius: 18px; padding: 0 2px 9px; overflow: hidden;
  display: grid; justify-items: center; align-content: start; gap: 7px; font-size: 12.5px; text-align: center; line-height: 1.2;
}
.kind .kimg { width: calc(100% + 4px); margin: 0 -2px; aspect-ratio: 4 / 3; overflow: hidden; }
.kind .kimg svg { width: 100%; height: 100%; }
.kind.on { border-color: var(--brand); font-weight: 650; color: var(--brand); }

/* ---------- forma ---------- */
.summary { display: flex; gap: 12px; align-items: center; background: var(--surface); box-shadow: var(--shadow); border-radius: 20px; padding: 10px; margin: 14px 0 4px; }
.summary .mini { width: 88px; height: 70px; border-radius: 14px; overflow: hidden; flex: none; background: #e9e0d4; }
.summary .mini img, .summary .mini svg { width: 100%; height: 100%; object-fit: cover; }
.summary b { font-size: 14.5px; display: block; line-height: 1.25; }
.summary small { color: var(--hint); font-size: 12.5px; display: block; margin-top: 2px; }
.summary .sp { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: 4px; }
.summary .sp-credit { font-size: 12px; color: var(--hint); margin-top: 1px; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13px; color: var(--hint); margin-bottom: 6px; font-weight: 500; }
.field > span i { font-style: normal; opacity: .8; font-weight: 400; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: none; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field input.bad { border-color: var(--err); }
.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; min-width: 0; }
.ghost { border: 1.5px solid var(--brand); color: var(--brand); background: none; border-radius: 14px; padding: 0 12px; font-weight: 600; font-size: 12.5px; line-height: 1.2; max-width: 112px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { margin-top: 14px; background: rgba(214, 69, 69, .1); color: var(--err); border-radius: 14px; padding: 11px 14px; font-size: 14px; }
.legal { color: var(--hint); font-size: 12px; line-height: 1.4; margin: 16px 0 0; }
.legal a { color: var(--brand); }
.topbar { display: flex; align-items: center; gap: 6px; padding: 12px 12px 0; }
.back { border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 14px 8px 8px; font-size: 14px; display: flex; align-items: center; gap: 2px; }
.back .ico { width: 18px; height: 18px; }
.page-title { margin-top: 6px !important; }

/* ---------- natija va buyurtmalar ---------- */
.done { text-align: center; padding: 48px 22px 28px; }
.check { width: 88px; height: 88px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 46px; margin: 0 auto 18px; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 14px 30px rgba(46, 158, 91, .35); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done h2 { font-family: var(--serif); font-variant-numeric: lining-nums; font-size: 26px; margin: 0 0 8px; letter-spacing: -.3px; }
.done p { color: var(--hint); margin: 0 auto 22px; max-width: 320px; }
.next { text-align: left; background: var(--surface); box-shadow: var(--shadow); border-radius: 20px; padding: 6px 16px; margin-bottom: 20px; }
.next div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.next div:last-child { border: 0; }
.next .ico { color: var(--brand); width: 20px; height: 20px; }
.btn { display: block; width: 100%; border: 0; border-radius: 16px; padding: 15px; font-weight: 650; font-size: 15px; background: var(--brand); color: #fff; margin-top: 10px; text-decoration: none; text-align: center; box-shadow: 0 8px 20px rgba(200, 116, 61, .3); }
.btn.ghost-btn { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.ocard { background: var(--surface); box-shadow: var(--shadow); border-radius: 20px; padding: 14px 16px; margin-top: 12px; }
.ohead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ohead b { font-size: 15px; }
.pill { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; white-space: nowrap; }
.pill.cancelled { background: rgba(214, 69, 69, .12); color: var(--err); }
.pill.installed { background: rgba(46, 158, 91, .14); color: var(--ok); }
.ometa { color: var(--hint); font-size: 12.5px; margin-top: 4px; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.progress i { height: 5px; border-radius: 3px; background: var(--line); }
.progress i.on { background: var(--brand); }
.progress-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 6px; font-size: 10px; color: var(--hint); text-align: center; line-height: 1.15; }

/* ---------- ma'lumot sahifasi ---------- */
.about { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.about img { width: 60px; height: 60px; border-radius: 50%; flex: none; }
.about > div > b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.about span { display: block; color: var(--hint); font-size: 13px; line-height: 1.4; margin-top: 3px; }
.about .rate { margin-top: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.facts div { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 13px 14px; display: grid; gap: 2px; }
.facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts .ico { color: var(--brand); margin-bottom: 5px; }
.facts b { font-size: 14px; }
.facts span { color: var(--hint); font-size: 12.5px; line-height: 1.3; }
.faq { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 2px 16px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 16px; height: 16px; color: var(--hint); transition: transform .2s; }
.faq details[open] summary .ico { transform: rotate(90deg); }
.faq p { margin: -2px 0 14px; color: var(--hint); font-size: 14px; line-height: 1.5; }
.links { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 2px 16px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow > .ico:first-child { color: var(--brand); }
.lrow > .ico:last-child { width: 16px; height: 16px; color: var(--hint); }
.lrow span { flex: 1; min-width: 0; }
.lrow small { display: block; color: var(--hint); font-size: 12px; }
.lrow b { display: block; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- pastki menyu va tugma ---------- */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
#tabs a { position: relative; flex: 1; min-width: 0; display: grid; justify-items: center; gap: 3px; text-decoration: none; padding: 8px 0 8px; font-size: 10.5px; color: var(--hint); font-weight: 500; }
#tabs a span { white-space: nowrap; }
#tabs a.on { color: var(--brand); font-weight: 650; }
#tabs a.on .ico { stroke-width: 2.1; }
#tabs .badge {
  position: absolute; top: 3px; left: calc(50% + 5px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #E0493E; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
#fallback-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg) 35%); }
body.has-tabs #fallback-bar { bottom: calc(57px + env(safe-area-inset-bottom)); padding-bottom: 8px; }
#fallback-btn { width: 100%; border: 0; border-radius: 16px; padding: 16px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15.5px; box-shadow: 0 10px 24px rgba(200, 116, 61, .4); }
#fallback-btn:disabled { opacity: .6; }
#toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(31, 26, 22, .94); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 50; max-width: 90vw; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }

@media (min-width: 640px) {
  main { max-width: 560px; margin: 0 auto; }
  #tabs, #fallback-bar { max-width: 560px; margin: 0 auto; }
  .fcard { flex-basis: 70%; }
}
