:root {
  --bg: #f4f4f1;
  --surface: #ffffff;
  --ink: #222725;
  --ink-2: #3c4541;
  --muted: #6e7571;
  --line: #e4e5e1;
  --line-2: #d2d4cf;
  --primary: #2a4a39;
  --primary-hover: #1f3b2d;
  --wine: #18251f;
  --sage: #879285;
  --gold: #a05a40;
  --gold-soft: #d8b48c;
  --rose: #a05a40;
  --ok: #2d6344;
  --ok-bg: #e7efe9;
  --off: #86623a;
  --off-bg: #f1ebe2;
  --danger: #a4322a;
  --radius: 18px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(31, 26, 23, .04), 0 10px 30px -12px rgba(31, 26, 23, .12);
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .32 0 0 0 0 .22 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fl-img { position: absolute; pointer-events: none; user-select: none; height: auto; }
/* Cormorant'ning "eski uslubdagi" raqamlari o'rniga odatiy raqamlar (1 va I adashmasligi uchun) */
.stat b, .mini-count b, .lp-facts dt, .lp-chip b, .big-code, .page-title, .inv-card h2 { font-variant-numeric: lining-nums tabular-nums; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-tex), var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; }
img { max-width: 100%; }
::selection { background: #dde3da; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
.muted { color: var(--muted); }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); box-shadow: 0 8px 20px -8px rgba(31, 26, 23, .5); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-sm { font-size: 14px; padding: 7px 15px; }
.btn-lg { font-size: 15px; padding: 12px 24px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; border-color: var(--ink); box-shadow: none; }
.btn-gold { background: var(--gold-soft); color: #1e3a2b; border-color: var(--gold-soft); }
.btn-gold:hover { background: #f6d5ae; border-color: #f6d5ae; }
.btn-danger { background: transparent; color: var(--danger); border-color: #e8c4bf; }
.btn-danger:hover { background: #fbeceb; border-color: var(--danger); box-shadow: none; }
.btn-tg { background: #2aa3de; border-color: #2aa3de; }
.btn-tg:hover { background: #1c8cc3; border-color: #1c8cc3; }
.btn-wa { background: #25a85a; border-color: #25a85a; }
.btn-wa:hover { background: #1c8e4b; border-color: #1c8e4b; }
.linklike { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.linklike:hover { color: var(--ink); }
.icon-btn {
  font-size: 20px; line-height: 1; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: var(--danger); border-color: #e8c4bf; background: #fbeceb; }

/* ---------- Yuqori panel: suzib yuruvchi kapsula ---------- */
.topbar { position: sticky; top: 0; z-index: 30; padding: 12px 0 6px;
  background: linear-gradient(180deg, rgba(244, 244, 241, .96) 46%, rgba(244, 244, 241, 0)); }
.tb { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 62px; padding: 0 8px 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(216, 204, 188, .75); box-shadow: 0 14px 34px -22px rgba(30, 45, 35, .55); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 28%, #fff, #f3efe6); border: 1px solid rgba(176, 148, 102, .45);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .85); }
.logo { width: 25px; height: 25px; }
.brand-tx { display: grid; line-height: 1; }
.brand-tx b { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.brand-tx i { font-style: normal; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.nav form { margin: 0; }
.nav a:not(.btn), .navlink {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; border: 1px solid transparent; background: none;
  font: inherit; font-size: 14px; cursor: pointer; transition: background .16s, color .16s, border-color .16s;
}
.nav a:not(.btn) svg, .navlink svg { color: var(--gold); transition: color .16s; }
.nav a:not(.btn):hover, .navlink:hover { color: var(--ink); background: rgba(42, 74, 57, .07); }
.nav a.on { color: var(--primary); background: rgba(42, 74, 57, .1); border-color: rgba(42, 74, 57, .16); font-weight: 500; }
.nav a.on svg { color: var(--primary); }
.nav .btn { gap: 7px; }
.nav .btn svg { opacity: .85; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; position: relative; flex: none; }
.burger span, .burger::before, .burger::after {
  content: ''; position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px;
  background: var(--ink); transition: transform .2s, opacity .2s; }
.burger span { top: 21px; }
.burger::before { top: 15px; }
.burger::after { top: 27px; }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .burger { display: block; }
  .brand-tx i { display: none; }
  .nav { position: absolute; top: calc(100% + 10px); right: 0; left: 0; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 10px; border-radius: 22px;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px);
    border: 1px solid rgba(216, 204, 188, .75); box-shadow: 0 22px 46px -26px rgba(30, 45, 35, .6);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn), .navlink, .nav .btn { width: 100%; justify-content: flex-start; padding: 13px 14px; border-radius: 14px; }
  .nav .btn { justify-content: center; margin-top: 4px; }
}

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; margin-top: 64px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot .brand-mark { width: 34px; height: 34px; }
.foot .logo { width: 20px; height: 20px; }
.foot .brand-tx b { font-size: 19px; }
.is-landing .foot { margin-top: 0; }

/* ================= BOSH SAHIFA ================= */
.lp-over {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(192, 100, 63, .18); }
h1 em, h2 em { font-style: italic; color: var(--rose); font-weight: 500; }

.lp-section { padding: 88px 0; }
.lp-section h2, .car-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.lp-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.lp-head-row h2 { max-width: 640px; }
.lp-head-note { max-width: 340px; margin: 0; color: var(--muted); }

/* Hero: butun ekran, burchaklarda akvarel gullar */
.hx {
  position: relative; overflow: hidden;
  min-height: min(calc(100vh - 60px), 780px); min-height: min(calc(100svh - 60px), 780px);
  display: grid; align-items: center; padding: 56px 0 170px;
  background: radial-gradient(900px 520px at 50% 45%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #f6f5f1, #eeefe9);
}
.hx-fl { z-index: 0; }
.hx-tl { width: min(26vw, 330px); top: -30px; left: -40px; }
.hx-tr { width: min(24vw, 300px); top: -30px; right: -40px; transform: scaleX(-1); }
.hx-bl { width: min(20vw, 250px); bottom: -30px; left: -40px; transform: scaleY(-1); }
.hx-br { width: min(24vw, 310px); bottom: -30px; right: -40px; transform: rotate(180deg); }
.hx-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
.hx-in > * { min-width: 0; }
.hx-stage { position: relative; display: grid; place-items: center; padding-bottom: 24px; }
.hx-phone { position: relative; z-index: 1; transform: rotate(-3deg); }
.hx-hint { position: absolute; bottom: 0; margin: 0; font-size: 13px; color: var(--muted); }
.hx h1 {
  font-family: var(--serif); font-weight: 600; margin: 0 auto 24px;
  font-size: clamp(38px, 5vw, 68px); line-height: 1.02; letter-spacing: -.025em; max-width: 620px;
}
.hx-lead { font-size: 17px; color: var(--muted); max-width: 500px; margin: 0 0 30px; }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-badges { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--ink-2); }
.hx-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hx-badges li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* Telefon ostidagi sokin qator */
.hx-under { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.hx-under b { color: var(--ink); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }

/* Shablonlar karuseli (hero ustiga chiqib turadi) */
.car { position: relative; z-index: 2; margin-top: -130px; padding-bottom: 30px; }
.car-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.car-head .lp-over { background: rgba(255, 255, 255, .8); padding: 6px 12px; border-radius: 999px; }
.car-sub { margin: 12px 0 0; font-size: 15px; color: var(--muted); max-width: 520px; }
.car-ctrl { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.car-count {
  display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: var(--muted); font-variant-numeric: lining-nums tabular-nums;
}
.car-count b { font-weight: 600; color: var(--ink); }
.car-count i { font-style: normal; color: var(--line-2); font-size: 18px; }
.car-nav { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.car-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center;
  color: var(--ink); cursor: pointer; transition: background .2s, color .2s;
}
.car-nav button:hover { background: var(--primary); color: #fff; }

/* Karusel sarlavha bilan bir konteynerda: 5 ta karta konteyner kengligiga aniq sig'adi.
   Yon tomonda padding yo'q — shunda keyingi karta chetdan ko'rinib qolmaydi */
.car-track {
  --car-n: 5; --car-gap: 20px;
  display: grid; grid-auto-flow: column; gap: var(--car-gap);
  grid-auto-columns: calc((100% - var(--car-gap) * (var(--car-n) - 1)) / var(--car-n));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 14px 0 26px;
}
@media (max-width: 1200px) { .car-track { --car-n: 4; } }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { scroll-snap-align: start; text-decoration: none; color: var(--ink); display: block; outline: none; }

/* Karta: oq ramka («mat»), ichida telefon ekranidagi jonli namuna */
.car-card {
  position: relative; display: grid; gap: 14px;
  transform: translateY(0); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.car-slide:hover .car-card, .car-slide:focus-visible .car-card { transform: translateY(-8px); }
.car-frame {
  position: relative; aspect-ratio: 390 / 660; border-radius: 22px; overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 26px 50px -24px rgba(30, 40, 35, .4);
  transition: box-shadow .45s;
}
.car-slide:hover .car-frame, .car-slide:focus-visible .car-frame { box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 36px 60px -26px rgba(30, 40, 35, .5); }
.car-frame iframe, .theme-thumb iframe {
  position: absolute; top: 0; left: 0; border: 0; pointer-events: none;
  width: 390px; height: calc(100% / var(--fit, .59));
  transform: scale(var(--fit, .59)); transform-origin: 0 0;
}
.car-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 1;
  background: linear-gradient(180deg, rgba(20, 24, 22, 0) 0%, rgba(20, 24, 22, .55) 100%);
  opacity: 0; transition: opacity .3s;
}
.car-open {
  position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translate(-50%, 10px);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 14px 9px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4);
  opacity: 0; transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.car-open svg { width: 15px; height: 15px; }
.car-slide:hover .car-frame::after, .car-slide:focus-visible .car-frame::after { opacity: 1; }
.car-slide:hover .car-open, .car-slide:focus-visible .car-open { opacity: 1; transform: translate(-50%, 0); }

.car-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 4px; }
.car-name { display: grid; gap: 2px; min-width: 0; }
.car-name b { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; }
.car-name span { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.car-sw { display: inline-flex; flex-shrink: 0; }
.car-sw i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); margin-left: -5px; }
.car-sw i:first-child { margin-left: 0; }

/* Sahifalash nuqtalari */
.car-dots { display: flex; justify-content: center; gap: 6px; padding-top: 4px; }
.car-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 999px; border: 0; background: var(--line-2); cursor: pointer;
  transition: width .3s cubic-bezier(.2, .8, .2, 1), background .3s;
}
.car-dots button:hover { background: var(--sage); }
.car-dots button.is-active { width: 16px; background: var(--primary); }

/* Marosim kartalari */
.ev-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.ev-card { position: relative; overflow: hidden; border-radius: 22px; background: #e9e8e2; isolation: isolate; }
.ev-big { grid-row: span 2; grid-column: span 2; }
.ev-wide { grid-column: span 2; }
.ev-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.ev-card:hover img { transform: scale(1.05); }
.ev-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 24, 22, 0) 45%, rgba(20, 24, 22, .72)); }
.ev-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; color: #fff; }
.ev-body h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.ev-big .ev-body h3 { font-size: 32px; }
.ev-links { display: flex; gap: 10px; align-items: center; }
.ev-links a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 500; }
.ev-go { background: rgba(255, 255, 255, .95); color: var(--ink) !important; padding: 5px 12px; border-radius: 999px; }
.ev-go:hover { background: #fff; }
.ev-demo { border-bottom: 1px solid rgba(255, 255, 255, .6); padding-bottom: 1px; }

/* Uch qadam — kartochkalar */
.steps3 { background: var(--surface); border-block: 1px solid var(--line); }
.st-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.st-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px; }
.st-num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: lining-nums; }
.st-list h3 { font-size: 17px; font-weight: 600; margin: 3px 0 7px; }
.st-list p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Imkoniyatlar */
.pf-lead { color: var(--muted); font-size: 16px; margin: 18px 0 30px; max-width: 520px; }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 30px; }
.pf-list li { display: flex; gap: 14px; align-items: flex-start; }
.pf-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #eaece8; color: var(--primary); }
.pf-ico svg { width: 18px; height: 18px; }
.pf-list b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.pf-list p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pf-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Yakuniy bo'lim — narxlar paneli */
.fin { border-top: 1px solid var(--line); background: var(--surface); }
.fin-in { padding: 64px 24px 72px; }
.fin-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--paper-tex), var(--bg); border: 1px solid var(--line); border-radius: 26px; padding: 44px 48px;
}
.fin-fl { z-index: 0; }
.fin-fl-a { width: 230px; top: -22px; left: -22px; }
.fin-fl-b { width: 200px; bottom: -22px; right: -22px; transform: rotate(180deg); }
.fin-copy, .fin-plans { position: relative; z-index: 1; }
.fin h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.08;
  letter-spacing: -.02em; margin: 0 0 12px; }
.fin-lead { margin: 0; color: var(--muted); max-width: 420px; }
.fin-sprig { display: block; width: 180px; height: auto; margin: 22px 0 0; opacity: .9; }
.fin-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fin-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 20px; display: grid; align-content: start; }
.fin-plan h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.fin-price { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.01em;
  font-variant-numeric: lining-nums; }
.fin-plan ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.fin-plan li { display: flex; gap: 8px; align-items: flex-start; }
.fin-plan li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--sage); }
.fin-plan .btn { justify-self: start; }
@media (max-width: 1020px) {
  .fin-panel { grid-template-columns: 1fr; gap: 28px; padding: 34px 28px; }
  .fin-sprig { margin-inline: auto; }
  .fin-copy { text-align: center; }
  .fin-lead { margin-inline: auto; }
}
@media (max-width: 560px) {
  .fin-plans { grid-template-columns: 1fr; }
  .fin-fl-a { width: 150px; } .fin-fl-b { width: 130px; }
}

@media (max-width: 1020px) {
  .ev-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .st-list, .pf-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .car { margin-top: -120px; }
  .car-head { align-items: flex-start; flex-direction: column; }
  .car-ctrl { width: 100%; justify-content: space-between; }
  .car-track { --car-n: 2; --car-gap: 12px; }
  .car-card { gap: 10px; }
  .car-frame { border-radius: 16px; }
  .car-name b { font-size: 18px; }
  .ev-grid { grid-auto-rows: 200px; gap: 12px; }
  .ev-big { grid-column: span 2; grid-row: span 1; }
  .ev-big .ev-body h3, .ev-body h3 { font-size: 20px; }
  .ev-body { padding: 14px; }
  .ev-links { flex-wrap: wrap; gap: 6px 10px; }
}
/* iPhone: barcha o'lchamlar haqiqiy iPhone 16 Pro nisbatlaridan (ekran 402×874 pt) hisoblangan */
.iphone {
  --ipw: 215px;              /* korpus kengligi */
  --ipf: calc(var(--ipw) * .018);   /* titan ramka */
  --ipb: calc(var(--ipw) * .021);   /* qora hoshiya */
  --ipr: calc(var(--ipw) * .152);   /* burchak radiusi */
  position: relative;
  width: var(--ipw);
  aspect-ratio: 402 / 874;
  padding: var(--ipf);
  border-radius: var(--ipr);
  background:
    linear-gradient(115deg, #f2efe9 0%, #b9b4ab 9%, #8d8880 17%, #e8e4dd 28%, #a49f97 42%,
      #d8d4cc 58%, #918c84 74%, #e6e2db 88%, #a8a39b 100%);
  box-shadow:
    inset 0 0 0 .5px rgba(255, 255, 255, .55),
    0 1px 2px rgba(0, 0, 0, .18),
    0 46px 80px -34px rgba(30, 50, 35, .55),
    0 20px 34px -26px rgba(0, 0, 0, .4);
}
.ip-bezel {
  height: 100%;
  padding: var(--ipb);
  border-radius: calc(var(--ipr) - var(--ipf));
  background: #000;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12);
}
.ip-screen {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--ipr) - var(--ipf) - var(--ipb));
  background: #e9dcc6;
}
.ip-screen iframe {
  position: absolute; top: 0; left: 0; border: 0;
  width: 390px; height: calc(100% / var(--fit, .62));
  transform: scale(var(--fit, .62)); transform-origin: 0 0;
}
.ip-screen::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(122deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 18%, rgba(255, 255, 255, 0) 34%);
}
/* Status bar: balandligi ekranning 6.2% i (54/874) */
.ip-status {
  position: absolute; top: 0; left: 0; right: 0; height: 6.2%; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: .4% 6.5% 0 8%;
  font: 600 calc(var(--ipw) * .047)/1 -apple-system, 'SF Pro Text', var(--sans);
  color: #111; letter-spacing: -.01em;
}
.ip-icons { display: flex; align-items: center; gap: calc(var(--ipw) * .017); }
.ip-icons svg { fill: currentColor; width: auto; height: calc(var(--ipw) * .042); }
.ip-icons svg:last-child { height: calc(var(--ipw) * .046); }
/* Dynamic Island: 125×37 pt → ekranning 31%×4.2% i, tepadan 1.3% */
.ip-island {
  position: absolute; top: 1.3%; left: 50%; z-index: 3; transform: translateX(-50%);
  width: 31%; height: 4.2%; border-radius: 999px; background: #000;
}
.ip-island i {
  position: absolute; right: 8%; top: 50%; aspect-ratio: 1; height: 62%; margin-top: -0.3%;
  transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #3f5b8a 0%, #17203a 45%, #05070d 75%);
  box-shadow: inset 0 0 0 .5px rgba(120, 150, 200, .35);
}
.ip-home {
  position: absolute; bottom: 1%; left: 50%; z-index: 3; transform: translateX(-50%);
  width: 35%; height: .62%; min-height: 3px; border-radius: 99px; background: rgba(0, 0, 0, .9); pointer-events: none;
}
.ip-dark .ip-status { color: #fff; }
.ip-dark .ip-home { background: rgba(255, 255, 255, .9); }
/* Yon tugmalar */
.ip-side { position: absolute; width: calc(var(--ipw) * .011); min-width: 2px; border-radius: 99px;
  background: linear-gradient(90deg, #6f6a63, #cfcac2 45%, #8b8680); }
.ip-action { left: calc(var(--ipw) * -.009); top: 16.5%; height: 3.8%; }
.ip-vol-up { left: calc(var(--ipw) * -.009); top: 23.5%; height: 7.4%; }
.ip-vol-down { left: calc(var(--ipw) * -.009); top: 32.5%; height: 7.4%; }
.ip-power { right: calc(var(--ipw) * -.009); top: 25%; height: 12%; }
@media (prefers-reduced-motion: reduce) {
  .car-track { scroll-behavior: auto; }
}

@media (max-width: 1020px) {
  .car-track { --car-n: 3; --car-gap: 16px; }
  .ev-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .pf-list { grid-template-columns: 1fr 1fr; }
  .hx-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hx-copy { display: grid; justify-items: center; }
  .hx-cta, .hx-badges { justify-content: center; }
}
@media (max-width: 700px) {
  .lp-section { padding: 80px 0; }
  .hx { padding: 70px 0 190px; min-height: auto; }
  .hx-in { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hx-copy { display: grid; justify-items: center; }
  .hx-cta, .hx-badges { justify-content: center; }
  .hx-tl { width: 62vw; } .hx-tr { width: 50vw; }
  .hx-bl, .hx-br { display: none; }
  .hx-lead { font-size: 17px; }
  .car { margin-top: -130px; }
  .car-head { align-items: flex-start; flex-direction: column; }
  .car-ctrl { width: 100%; justify-content: space-between; }
  .car-track { --car-n: 2; --car-gap: 12px; }
  .car-card { gap: 10px; }
  .car-frame { border-radius: 16px; }
  .car-name b { font-size: 18px; }
  .ev-grid { grid-auto-rows: 200px; gap: 12px; }
  .ev-big { grid-column: span 2; grid-row: span 1; }
  .ev-big .ev-body h3, .ev-body h3 { font-size: 20px; }
  .ev-body { padding: 14px 14px; }
  .ev-links { flex-wrap: wrap; gap: 6px 10px; }
  .pf-list { grid-template-columns: 1fr; }
  .iphone { --ipw: 205px; }
  .hx-phone { transform: none; }
  .hx-stage { padding-bottom: 22px; }
  .pf-fl { width: 240px; left: -16px; }
}
/* ================= FORMALAR ================= */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 500; font-size: 14px; color: var(--ink-2); }
.field em, legend em { font-style: normal; font-weight: 400; color: var(--muted); }
.field small, .hint { color: var(--muted); font-size: 13px; display: block; }
input, select, textarea { font: inherit; }
.field input, .field select, .field textarea, .copy-row input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus, .copy-row input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(168, 129, 74, .18); }
.field textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; display: grid; gap: 18px; }
fieldset.panel { min-width: 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 20px; padding: 0; float: left; width: 100%; margin-bottom: 2px; line-height: 1.1; }
legend + * { clear: both; }
.panel h2 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span:last-child {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 11px 10px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  background: #fff;
  transition: border-color .15s, background .15s, color .15s;
}
.opt:hover > span:last-child { border-color: var(--ink-2); }
.opt input:checked ~ span:last-child { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt input:focus-visible ~ span:last-child { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-opt { display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.theme-thumb {
  position: relative; display: block; aspect-ratio: 390 / 600; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); transition: box-shadow .2s, transform .2s;
}
.theme-opt:hover .theme-thumb { transform: translateY(-2px); }
.theme-opt input:checked ~ .theme-thumb { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.theme-opt > span:last-child { display: grid; gap: 1px; }
.theme-opt input:checked ~ span:last-child small { color: #d9cfc3; }
.theme-opt small { color: var(--muted); font-weight: 400; font-size: 12px; }
.small-link { font-size: 14px; font-weight: 500; }

.cover-row { display: flex; gap: 18px; align-items: flex-start; }
.cover-row > div { display: grid; gap: 10px; }
.cover-preview { width: 110px; height: 136px; object-fit: cover; border-radius: 55px 55px 10px 10px; border: 1px solid var(--line); flex: none; }
.cover-preview[hidden] { display: none; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.check > span { display: grid; }
.check small { color: var(--muted); font-size: 13px; }

.form-actions { display: flex; justify-content: flex-end; }

.alert { background: #fbeceb; color: #86261f; border: 1px solid #efcac5; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.alert ul { margin: 0; padding-left: 18px; }
.success { background: var(--ok-bg); color: var(--ok); border: 1px solid #c9dcc6; border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; font-weight: 500; }

/* ---------- Kirish ---------- */
.auth { display: grid; place-items: center; margin-top: 64px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 38px 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--serif); font-weight: 600; margin: 0 0 6px; font-size: 32px; letter-spacing: -.01em; }
.auth-card > .muted { margin: 0 0 26px; }
.auth-alt { text-align: center; margin: 22px 0 0; color: var(--muted); }
.auth-card.center { text-align: center; }
.big-code { font-family: var(--serif); font-style: italic; font-size: 64px; font-weight: 600; color: var(--gold); margin: 0; line-height: 1; }

/* ---------- Kabinet ---------- */
.back { display: inline-block; margin: 32px 0 8px; text-decoration: none; font-weight: 500; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 28px; }
.back + .page-head, .back + .success + .page-head { margin-top: 8px; }
.page-head .muted { margin: 0 0 4px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.05; letter-spacing: -.015em; margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.narrow .page-title { margin-bottom: 22px; }
.head-actions { display: flex; gap: 10px; }

.badge { display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 11px; border-radius: 999px; }
.badge.on { background: var(--ok-bg); color: var(--ok); }
.badge.off { background: var(--off-bg); color: var(--off); }

.empty { text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: 26px; padding: 64px 20px; }
.empty h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 22px; }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.inv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.inv-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.inv-strip { position: relative; height: 96px; overflow: hidden; border-bottom: 1px solid var(--line); }
.inv-fl { width: 140px; top: -8px; left: -8px; }
.inv-fl2 { width: 140px; top: -8px; right: -8px; transform: scaleX(-1); }
.inv-body { padding: 20px 22px 22px; }
.inv-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.inv-card h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 8px 0 2px; overflow-wrap: anywhere; }
.inv-card .muted { margin: 0; font-size: 14px; }
.inv-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 14px 0 18px; }
.inv-actions { display: flex; gap: 8px; }

.manage-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; }
.share-panel { align-content: start; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px; background: var(--bg); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.stat:first-child { background: var(--wine); border-color: var(--wine); color: #fff; }
.stat:first-child span { color: #b9cbbd; }

.table-wrap { overflow-x: auto; margin: 0 -26px; padding: 0 26px; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table form { margin: 0; }
.msg-cell { max-width: 320px; color: var(--muted); overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; color: var(--muted); font-size: 13px; }

.danger-zone { margin-top: 20px; }
.danger-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.danger-actions form { margin: 0; }

/* ================= MOSLASHUVCHAN ================= */
@media (max-width: 1020px) {
  .manage-grid { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
}
@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .btn { padding: 7px 14px; }
  .row2 { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .table-wrap { margin: 0 -20px; padding: 0 20px; }
  .page-title { font-size: 28px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .copy-row { flex-direction: column; }
  .qr { flex-direction: column; align-items: flex-start; }
  .cover-row { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .auth-card { padding: 30px 22px; }
}

/* ---------- Rasm, musiqa va galereya tanlash ---------- */
.sub-label { margin: 4px 0 -4px; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.panel > .hint { margin: -8px 0 0; }
.upload-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.upload-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 18px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: #fff;
  color: var(--ink-2); font-weight: 500; font-size: 15px; transition: border-color .2s, background .2s, color .2s;
  max-width: 100%;
}
.upload-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-btn:hover { border-color: var(--primary); color: var(--primary); background: #f3f5f2; }
.upload-btn.has-file { border-style: solid; border-color: var(--primary); background: #eef1ee; color: var(--primary); }
.upload-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-btn:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.upload-btn-sm { padding: 9px 14px; font-size: 14px; justify-self: start; }
.upload-box .hint { flex-basis: 100%; }
.cover-preview { width: 84px; height: 104px; object-fit: cover; border-radius: 42px 42px 8px 8px; border: 1px solid var(--line); }
.cover-preview[hidden] { display: none; }
.own-cover { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: #eef1ee; }
.own-cover img { width: 64px; height: 80px; object-fit: cover; border-radius: 32px 32px 6px 6px; }
.own-cover > div { display: grid; gap: 6px; font-size: 14px; }

.cover-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.cover-opt { position: relative; cursor: pointer; display: grid; gap: 6px; text-align: center; font-size: 12.5px; }
.cover-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cover-opt img, .cover-none {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line);
  background: #efeee6; transition: box-shadow .2s, transform .2s;
}
.cover-none { display: grid; place-content: center; gap: 2px; font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--muted); }
.cover-none small { font-family: var(--sans); font-style: normal; font-size: 11px; }
.cover-opt b { font-weight: 500; color: var(--ink-2); }
.cover-opt:hover img, .cover-opt:hover .cover-none { transform: translateY(-2px); }
.cover-opt input:checked ~ img, .cover-opt input:checked ~ .cover-none { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.cover-opt input:focus-visible ~ img { outline: 2px solid var(--gold); outline-offset: 4px; }
.cover-opt .rec { display: none; position: absolute; top: 6px; left: 6px; font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--primary); color: #fff; }
.cover-opt.is-rec .rec { display: block; }

.music-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.music-opt { cursor: pointer; }
.music-opt input { position: absolute; opacity: 0; pointer-events: none; }
.music-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; transition: border-color .2s, background .2s; height: 100%; }
.music-card b { display: block; font-weight: 600; font-size: 14.5px; }
.music-card small { color: var(--muted); font-size: 12.5px; }
.music-opt input:checked + .music-card { border-color: var(--primary); background: #eef1ee; box-shadow: inset 0 0 0 1px var(--primary); }
.music-opt input:focus-visible + .music-card { outline: 2px solid var(--gold); outline-offset: 2px; }
.music-ico, .music-play { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #edeeea; color: var(--ink-2); border: 0; }
.music-play { cursor: pointer; background: var(--primary); color: #fff; transition: transform .15s; }
.music-play:hover { transform: scale(1.06); }
.music-play .i-pause, .music-play.on .i-play { display: none; }
.music-play.on .i-pause { display: block; }
.music-play.on { animation: pulse-ring 1.6s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(47, 89, 65, .45); } 100% { box-shadow: 0 0 0 12px rgba(47, 89, 65, 0); } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.photo-grid:empty { display: none; }
.photo-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: #efeee6; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12px; font-weight: 500; padding: 5px; border-radius: 8px; background: rgba(255, 255, 255, .9); cursor: pointer; }
.photo-item:has(input:checked) img { opacity: .35; filter: grayscale(1); }

@media (max-width: 700px) {
  .cover-grid { grid-template-columns: repeat(3, 1fr); }
  .music-list { grid-template-columns: 1fr; }
}

/* ---------- Ikonkali kiritish maydonlari ---------- */
.field > span:first-child { color: var(--primary); font-weight: 500; }
.ifield { position: relative; display: block; }
.ifield .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--primary); opacity: .85; pointer-events: none; }
.ifield-area .ico { top: 14px; transform: none; }
.field .ifield input, .field .ifield textarea { padding-left: 44px; }
.field .ifield input::placeholder, .field .ifield textarea::placeholder { color: #9aa39b; }
.field .ifield input:focus + .ico, .ifield:focus-within .ico { opacity: 1; }
.field input[type="date"], .field input[type="time"] { min-height: 46px; }

/* ================= QOG'OZ TAKLIFNOMALAR ================= */
/* Bitta qog'oz: 420×595 px (A5 nisbati), ramkaga --fit orqali kichraytiriladi */
.paper {
  position: relative; width: 420px; height: 595px; overflow: hidden; text-align: center;
  background: var(--paper-tex), var(--pp-bg); color: var(--pp-ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.paper::before { content: ""; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--pp-accent) 35%, transparent); pointer-events: none; z-index: 2; }
.pp-fl { position: absolute; z-index: 1; height: auto; pointer-events: none; }
.pp-tl { width: 210px; top: -6px; left: -6px; }
.pp-br { width: 180px; bottom: -6px; right: -6px; transform: rotate(180deg); }
.pp-tr { width: 230px; top: -6px; right: -6px; transform: scaleX(-1); }
.pp-band { position: absolute; left: 0; right: 0; top: 0; height: 16px; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' viewBox='0 0 32 16'%3E%3Crect width='32' height='16' fill='%231f4f8f'/%3E%3Cpath d='M16 2l4 6-4 6-4-6z' fill='%23fbfaf6'/%3E%3Ccircle cx='0' cy='8' r='3' fill='%23b0402f'/%3E%3Ccircle cx='32' cy='8' r='3' fill='%23b0402f'/%3E%3C/svg%3E") repeat-x; }
.pp-band-b { top: auto; bottom: 0; }
.pp-body { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 46px 44px; }
.pp-l-corners .pp-body, .pp-l-band .pp-body { padding-top: 120px; }
.pp-l-top .pp-body { padding-top: 130px; }
.pp-greet { margin: 0 0 4px; font-family: var(--sans); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--pp-sub); }
.pp-names { margin: 0; font-family: 'Great Vibes', cursive; font-weight: 400; font-size: 46px; line-height: 1.05; color: var(--pp-accent); }
.pp-amp { display: block; font-size: 28px; line-height: 1; color: var(--pp-sub); }
.pp-serif .pp-names { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; font-size: 40px; }
.pp-invite { margin: 6px 0 0; font-style: italic; font-size: 16px; }
.pp-sprig { width: 190px; height: auto; margin: 10px 0 2px; }
.pp-wd { margin: 12px 0 0; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--pp-sub); }
.pp-date { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-variant-numeric: lining-nums; }
.pp-date span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 0; border-block: 1px solid color-mix(in srgb, var(--pp-accent) 45%, transparent); min-width: 70px; }
.pp-date b { font-size: 44px; font-weight: 500; line-height: 1; color: var(--pp-accent); }
.pp-time { margin: 6px 0 0; font-family: var(--sans); font-size: 11px; letter-spacing: .12em; }
.pp-place { margin: 10px 0 0; font-size: 15px; line-height: 1.35; }
.pp-hosts { margin: 10px 0 0; font-style: italic; font-size: 14px; color: var(--pp-sub); }
.pp-l-art .pp-body { justify-content: flex-start; padding: 34px 46px 30px; }
.pp-arch { width: 132px; height: 162px; margin-bottom: 12px; border-radius: 75px 75px 4px 4px; overflow: hidden; box-shadow: 0 0 0 4px var(--pp-bg), 0 0 0 5px color-mix(in srgb, var(--pp-accent) 40%, transparent); }
.pp-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-cutout { height: 170px; width: auto; margin-bottom: 6px; }
.pp-l-art .pp-names { font-size: 34px; }
.pp-l-art .pp-amp { font-size: 22px; }
.pp-l-art .pp-date b { font-size: 38px; }
.pp-l-art .pp-place { margin-top: 8px; font-size: 14px; }
.pp-l-art .pp-hosts { margin-top: 6px; }

/* Katalog */
.pq-hero { text-align: center; padding: 56px 0 26px; background: radial-gradient(700px 360px at 50% 0%, rgba(192, 214, 184, .45), transparent 70%); }
.pq-icon { width: 92px; height: 92px; margin-bottom: 10px; filter: drop-shadow(0 12px 18px rgba(30, 50, 35, .18)); }
.pq-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.2vw, 50px); margin: 0 0 10px; letter-spacing: -.02em; }
.pq-hero p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.pq-search { position: relative; display: block; max-width: 620px; margin: 0 auto; }
.pq-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.pq-search input { width: 100%; font: inherit; padding: 15px 18px 15px 52px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.pq-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47, 89, 65, .14); }
.pq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.pq-chips button { font: inherit; font-size: 14px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.pq-chips button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pq-count { color: var(--muted); margin: 26px 0 16px; }
.pq-count b { color: var(--ink); }
.pq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.pq-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; transition: box-shadow .25s, transform .25s; }
.pq-card:hover { box-shadow: 0 24px 40px -24px rgba(30, 50, 35, .4); transform: translateY(-3px); }
.pq-card[hidden] { display: none; }
.pq-frame { position: relative; aspect-ratio: 420 / 595; border-radius: 12px; overflow: hidden; }
.pq-frame .paper, .pq-big .paper { position: absolute; top: 0; left: 0; transform: scale(var(--fit, .55)); transform-origin: 0 0; }
.pq-cat { position: absolute; top: 20px; left: 20px; z-index: 4; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: var(--ink-2); }
.pq-like {
  position: absolute; top: 18px; right: 18px; z-index: 4; display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(40, 40, 40, .55); color: #fff; backdrop-filter: blur(6px);
}
.pq-like svg { color: #ff8f9c; }
.pq-like.liked { background: #c0643f; }
.pq-like.liked svg { color: #fff; }
.pq-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 6px 4px; }
.pq-foot b { display: block; font-size: 15px; }
.pq-foot span { font-size: 13px; color: var(--muted); }
.pq-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Ko'rish oynasi */
.pq-modal { position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 22, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.pq-modal[hidden] { display: none; }
.pq-dialog { width: min(100%, 880px); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); }
.pq-dialog header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pq-dialog h2 { margin: 0; font-size: 18px; }
.pq-x { font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--muted); }
.pq-x:hover { background: #f0f2ec; color: var(--ink); }
.pq-view { position: relative; margin: 20px 22px; padding: 24px; border-radius: 18px; background: #f3f4ef; display: grid; place-items: center; }
.pq-big { position: relative; width: min(100%, 380px); aspect-ratio: 420 / 595; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .35); overflow: hidden; }
.pq-view:fullscreen { margin: 0; border-radius: 0; background: #2a2f2b; }
.pq-view:fullscreen .pq-big { width: auto; height: 92vh; }
.pq-full { position: absolute; right: 16px; bottom: 16px; font: inherit; font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 0; background: rgba(40, 40, 40, .6); color: #fff; cursor: pointer; }
.pq-dialog footer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 22px 22px; }
.pq-likes { margin-left: auto; color: var(--muted); font-size: 14px; }

/* Chop etish sahifasi */
.pp-print-page { background: #e9ebe4; display: block; }
.pp-toolbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.pp-toolbar .back { margin: 0; }
.pp-picks { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: thin; }
.pp-picks a { flex: none; display: grid; text-align: center; font-size: 12px; font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--ink-2); }
.pp-picks a small { font-weight: 400; font-size: 11px; color: var(--muted); }
.pp-picks a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pp-picks a.on small { color: #d6e4d6; }
.pp-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 16px; }
.pp-sheet { display: grid; place-items: center; padding: 0 16px 40px; }
.pp-sheet .paper { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4); }
@page { size: A5; margin: 0; }
@media print {
  html, body { margin: 0; padding: 0; }
  .pp-toolbar, .pp-hint { display: none; }
  .pp-print-page { background: none; }
  .pp-sheet { position: relative; padding: 0; display: block; width: 148mm; height: 210mm; overflow: hidden; }
  /* 420px → 148mm (A5 kengligi) */
  .pp-sheet .paper { position: absolute; top: 0; left: 0; margin: 0; box-shadow: none; transform: scale(1.3318); transform-origin: 0 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 600px) {
  .pq-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pq-card { padding: 6px; border-radius: 14px; }
  .pq-cat { display: none; }
  .pq-like { top: 12px; right: 12px; }
  .pq-foot { flex-direction: column; align-items: flex-start; }
  .pq-dialog footer .btn { flex: 1; }
  .pp-sheet { overflow-x: auto; justify-items: start; }
}


/* ---------- Qog'oz taklifnoma yaratish ---------- */
.pe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 36px; max-width: 1180px; margin: 0 auto; padding: 0 24px; align-items: start; }
.pe-form { display: grid; gap: 18px; padding-bottom: 20px; }
.pe-form .back { margin-bottom: 0; }
.pe-sub { margin: -10px 0 4px; }
.pe-designs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.pe-d { flex: none; width: 92px; display: grid; gap: 5px; text-align: center; font-size: 12px; cursor: pointer; }
.pe-d input { position: absolute; opacity: 0; pointer-events: none; }
.pe-thumb { position: relative; display: block; aspect-ratio: 420 / 595; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.pe-thumb .paper { position: absolute; top: 0; left: 0; transform: scale(var(--fit, .22)); transform-origin: 0 0; }
.pe-d:hover .pe-thumb { transform: translateY(-2px); }
.pe-d input:checked ~ .pe-thumb { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }
.pe-d input:checked ~ b { color: var(--primary); }
.pe-d input:focus-visible ~ .pe-thumb { outline: 2px solid var(--gold); outline-offset: 4px; }
.pe-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pe-preview { position: sticky; top: 84px; margin-top: 30px; display: grid; place-items: center; padding: 25px; border-radius: 22px; background: #e3e7dd; }
.pe-preview .pp-sheet { padding: 0; }
.pe-preview .paper { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4); }
@media (max-width: 1020px) {
  .pe-wrap { grid-template-columns: 1fr; }
  .pe-preview { position: static; order: -1; margin-top: 20px; overflow-x: auto; }
}
@media (max-width: 520px) {
  .pe-preview { padding: 12px; }
  .pe-preview .paper { transform: scale(.78); transform-origin: top center; margin-bottom: -130px; }
}
@media print {
  .pe-page .topbar, .pe-page .foot, .pe-page .pe-form { display: none !important; }
  .pe-page, .pe-page main { background: none; display: block; }
  .pe-wrap { display: block; padding: 0; margin: 0; max-width: none; }
  .pe-preview { position: static; padding: 0; margin: 0; background: none; border-radius: 0; display: block; }
  .pe-preview .paper { margin: 0; }
}

.pq-create { margin: -8px 0 22px; }

/* ---------- To'lov sahifasi ---------- */
.pay-card { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  background: var(--wine); color: #eef2e6; border-radius: 20px; padding: 22px 26px; margin-bottom: 26px; }
.pay-card span { display: block; font-size: 13px; color: #b9cbbd; margin-bottom: 2px; }
.pay-amount b { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.pay-code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-code b { font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.pay-card .btn-ghost { color: #eef2e6; border-color: rgba(255, 255, 255, .35); }
.pay-card .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.pay-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.pay-steps li { display: flex; gap: 14px; align-items: flex-start; }
.pay-steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 14px; }
.pay-steps h3 { margin: 2px 0 2px; font-size: 16px; }
.pay-steps p { margin: 0; color: var(--muted); font-size: 15px; }

.pay-bank { gap: 12px; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pay-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.pay-row span { min-width: 120px; color: var(--muted); font-size: 14px; }
.pay-row b { font-size: 17px; }
.pay-num { font-variant-numeric: lining-nums tabular-nums; letter-spacing: .06em; }
.pay-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.pay-actions form { margin: 0; }
.btn-tg svg { margin-right: 2px; }

/* Kabinetdagi ruxsatlar */
.credit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.credit-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.credit-card b { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--primary); font-variant-numeric: lining-nums; }
.credit-card span { flex: 1; min-width: 120px; color: var(--muted); font-size: 14px; }
.sec-title { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 34px 0 16px; }

/* Namuna suvbelgisi (to'lovdan oldin) */
.pe-preview { position: relative; }
.pp-watermark { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center;
  gap: 60px; pointer-events: none; overflow: hidden; }
.pp-watermark i { font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 44px; letter-spacing: .3em;
  color: rgba(47, 89, 65, .22); transform: rotate(-24deg); text-transform: uppercase; }

/* Admin panel */
.adm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-actions form { margin: 0; }
.adm-settings { grid-template-columns: 1fr 1fr; display: grid; gap: 14px; }
.adm-settings .form-actions { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .adm-settings { grid-template-columns: 1fr; }
  .credit-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pay-card { flex-direction: column; align-items: flex-start; }
  .pay-actions .btn, .pay-actions form { width: 100%; }
  .pay-actions form .btn { width: 100%; }
}

/* Kabinetdagi buyurtmalar holati */
.ord-panel { gap: 10px; }
.ord-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ord-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ord-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ord-code { font-weight: 600; letter-spacing: .03em; font-variant-numeric: lining-nums; }
.ord-kind { color: var(--muted); font-size: 14px; }
.ord-list small { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin-top: -4px; }
@media (max-width: 560px) {
  .ord-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* "Chekni yuboring" bloki */
.pay-done { background: var(--surface); border: 2px solid var(--primary); border-radius: 18px; padding: 24px 26px; margin-bottom: 24px; }
.pay-done h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.pay-done > p { margin: 0 0 16px; color: var(--muted); }
.pay-send { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.pay-send li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pay-send span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; }
.pay-send div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pay-code-inline { font-size: 18px; letter-spacing: .04em; font-variant-numeric: lining-nums; }
.pay-done .hint { margin: 12px 0 0; }
.pay-remind { background: #f1f3f0; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 4px; }

/* ---------- Har bir bo'lim — to'liq ekran ---------- */
@media (min-width: 900px) {
  /* Aylantirilganda bo'limlar ekranga yopishadi */
  html:has(body.is-landing) { scroll-snap-type: y proximity; }
  .is-landing .hx,
  .is-landing .car,
  .is-landing .ev,
  .is-landing .steps3,
  .is-landing .pf,
  .is-landing .fin { scroll-snap-align: start; scroll-margin-top: 60px; }

  .is-landing .car,
  .is-landing .ev,
  .is-landing .steps3,
  .is-landing .pf,
  .is-landing .fin {
    min-height: calc(100vh - 60px); min-height: calc(100svh - 60px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .is-landing .hx { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); }
  .is-landing .car { padding-bottom: 0; justify-content: center; }
  .is-landing .fin-in { padding-block: 0; }
  .is-landing .lp-section { padding-block: 56px; }
  .is-landing .ev-grid { grid-auto-rows: 148px; gap: 12px; }
  .is-landing .lp-head-row { margin-bottom: 26px; }
}

/* Parolni tiklash */
.auth-alt-sm { margin-top: 10px; font-size: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 15px; }

.src-tg { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: #e3f0fb; color: #1d6fb8; vertical-align: middle; margin-left: 4px; }

/* Mehmonlarga yuborish: tablar */
.send-panel h2 { margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; margin-bottom: 18px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px 12px; border-radius: 9px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.tab-pane { display: none; }
.tab-pane.is-active { display: grid; gap: 14px; justify-items: start; }
.tab-pane .copy-row, .tab-pane .post-grid { width: 100%; }
.tab-lead { margin: 0; color: var(--ink-2); }
.more { width: 100%; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.more summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; }
.more summary::before { content: "+ "; }
.more[open] summary::before { content: "\2212  "; }
.more summary::-webkit-details-marker { display: none; }
.more > :not(summary) { margin-top: 12px; }
.qr { display: flex; gap: 16px; align-items: center; }
.qr img { border-radius: 12px; border: 1px solid var(--line); flex: none; background: #fff; }
.post-grid { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.post-preview { display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #eee; }
.post-preview img { display: block; width: 100%; height: auto; }
.post-side { display: grid; gap: 10px; justify-items: start; }
.post-text { width: 100%; box-sizing: border-box; resize: vertical; font: 13.5px/1.5 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; }
.danger-zone summary { cursor: pointer; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.danger-zone .danger-actions { margin-top: 14px; }
@media (max-width: 700px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-preview { max-width: 220px; }
}

/* Video taklifnoma */
.video-box { display: grid; gap: 12px; justify-items: start; width: 100%; }
.video-preview { width: 100%; max-width: 240px; aspect-ratio: 9 / 16; border-radius: 14px; background: #111; box-shadow: var(--shadow); }
.video-wait { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 10px 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--primary); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
