/* ==========================================================================
   LumiVolt — design system: «warm light in the dark»
   ========================================================================== */
:root {
  --bg: #07080b;
  --bg-2: #0c0e13;
  --bg-3: #12151c;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .065);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f1ea;
  --muted: #a19e95;
  --dim: #6e6b64;
  --amber: #ffb547;
  --amber-2: #ff8a3d;
  --amber-soft: rgba(255, 181, 71, .12);
  --glow: rgba(255, 170, 60, .35);
  --ok: #5ee39a;
  --err: #ff7a7a;
  --info: #8cc8ff;
  --grad: linear-gradient(135deg, #ffe0a0 0%, #ffb547 45%, #ff8a3d 100%);
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Manrope', sans-serif;
  --mx: 50vw; --my: 30vh;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.55; min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 150, 50, .10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(120, 140, 255, .05), transparent 60%);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--amber); color: #111; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.r { text-align: right; }
.container { width: min(1320px, 100% - 40px); margin-inline: auto; }
.page { padding: 34px 0 40px; }
.narrow { width: min(760px, 100% - 40px); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(28px, 3.2vw, 42px); }
h2 { font-size: clamp(22px, 2.4vw, 32px); }
h3 { font-size: 18px; }

/* ambient effects */
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 175, 80, .07), transparent 60%);
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.app, .header, .footer, .topbar { position: relative; z-index: 2; }

/* surfaces */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.glass-strong {
  background: linear-gradient(180deg, rgba(28, 30, 38, .85), rgba(16, 18, 24, .85));
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(380px circle at var(--x, 50%) var(--y, 0%), rgba(255, 175, 80, .12), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
[data-glow]:hover::before { opacity: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  transition: transform .2s var(--ease), box-shadow .25s, background .25s, border-color .25s; white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #1a1206; box-shadow: 0 8px 30px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(255, 160, 60, .55), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 181, 71, .45); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .7; pointer-events: none; }
.grow { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); transition: .2s; color: var(--muted);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn.lg { width: 54px; height: 54px; border-radius: 16px; }
.link { color: var(--amber); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,181,71,.4); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.25); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted);
}
.pill .ic { width: 13px; height: 13px; }
.pill-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(255,181,71,.3); }
.pill-xs { height: 20px; padding: 0 8px; font-size: 11px; }
.pill-muted { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.65); color: #ddd; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(94,227,154,.6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,227,154,.55); } 70% { box-shadow: 0 0 0 8px rgba(94,227,154,0); } 100% { box-shadow: 0 0 0 0 rgba(94,227,154,0); } }

/* topbar */
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: rgba(255,181,71,.04); }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 10px; height: 38px; }
.topbar b { color: var(--text); }
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.topbar-link { color: var(--amber); font-weight: 700; }

/* header */
.header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(7, 8, 11, .78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 22px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #15130f; border: 1px solid rgba(255,181,71,.25); box-shadow: 0 0 24px -4px rgba(255,170,60,.35); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav-ai, .nav-support { padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover, .nav a.on, .nav-ai:hover, .nav-support:hover { color: var(--text); background: var(--surface-2); }
.nav-ai, .nav-support { color: var(--text); border: 1px solid var(--line); }
.nav-support { border-color: rgba(255, 181, 71, 0.35); background: rgba(255, 181, 71, 0.06); }
.nav-support:hover { border-color: var(--amber); background: rgba(255, 181, 71, 0.15); }
.search { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.search input {
  width: 100%; height: 44px; border-radius: 999px; padding: 0 44px 0 44px;
  background: var(--surface); border: 1px solid var(--line); outline: none; transition: .2s;
}
.search input:focus { border-color: rgba(255,181,71,.5); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(255,181,71,.08); }
.search-ic { position: absolute; left: 15px; top: 12px; color: var(--dim); pointer-events: none; }
.search kbd { position: absolute; right: 12px; top: 11px; font: 600 12px var(--font); color: var(--dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 7px; }
.search-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; z-index: 60; background: #11131a; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.sd-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; }
.sd-item:hover { background: var(--surface-2); }
.sd-item img { width: 44px; height: 44px; object-fit: contain; background: #f3f1ec; border-radius: 10px; padding: 3px; }
.sd-item span { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sd-item small { display: block; color: var(--dim); font-weight: 500; }
.sd-item b { font-size: 14px; color: var(--amber); white-space: nowrap; }
.sd-all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: var(--amber); font-weight: 700; font-size: 13px; }
.sd-all .ic { width: 16px; }
.sd-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.h-actions { display: flex; gap: 6px; }
.h-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--muted); transition: .2s; border: 1px solid transparent; }
.h-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--line); }
.h-btn.is-auth { color: var(--amber); }
.h-btn.is-auth::after { content: ''; position: absolute; right: 9px; bottom: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.h-cart { background: var(--surface); border-color: var(--line); color: var(--text); }
.h-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #1a1206; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.h-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95); } }
.burger { display: none; }

/* page transitions */
.app { min-height: 60vh; }
.page-in > * { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* hero */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 56px 0 46px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 74px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 28px rgba(255,160,60,.35)); }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; }
.hero-stats div { padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.hero-stats b { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }
.hero-visual { position: relative; }
.hero-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3.3; border: 1px solid var(--line-2); box-shadow: 0 40px 120px -30px rgba(255, 140, 40, .35), var(--shadow); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 18s ease-in-out infinite alternate; }
.hero-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7,8,11,.55)); }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(18, 19, 25, .72); border-color: var(--line-2); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.float b { display: block; font-size: 14px; }
.float small { color: var(--muted); font-size: 12px; }
.float .ic { color: var(--amber); width: 26px; height: 26px; }
.float-a { left: -28px; bottom: 54px; }
.float-b { right: -18px; top: 34px; animation-delay: -3s; }
.float-pct { font-family: var(--display); font-weight: 700; font-size: 22px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee-track > div { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: 20px; color: rgba(244,241,234,.38); letter-spacing: -.01em; white-space: nowrap; }
.marquee i { color: var(--amber); font-style: normal; opacity: .6; }
@keyframes marq { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: 46px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 small { font-size: 16px; font-family: var(--font); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
.bento-item {
  position: relative; overflow: hidden; padding: 24px; border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.05) 0%, rgba(18,20,28,.5) 100%);
  border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color .35s ease, box-shadow .4s ease;
}
.bento-item:hover {
  border-color: rgba(255,181,71,.4); transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.7), 0 0 30px -10px rgba(255,181,71,.2);
}
.bento-item.b0 { grid-column: span 2; grid-row: span 2; }
.bento-item.b1 { grid-column: span 2; }
.bento-item.b6 { grid-column: span 2; }

.bento-head { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.bento-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,181,71,.12); color: var(--amber); border: 1px solid rgba(255,181,71,.25);
  transition: transform .3s ease, background .3s ease;
}
.bento-item:hover .bento-ic { transform: scale(1.06); background: rgba(255,181,71,.2); }
.bento-ic .ic { width: 22px; height: 22px; }
.bento-go {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--muted);
  transition: all .35s ease;
}
.bento-go .ic { width: 15px; height: 15px; }
.bento-item:hover .bento-go { background: var(--amber); color: #121318; border-color: var(--amber); transform: rotate(-45deg) scale(1.08); }

.bento-visual {
  position: absolute; right: 16px; bottom: 12px; width: 140px; height: 140px;
  display: flex; align-items: flex-end; justify-content: flex-end;
  pointer-events: none; z-index: 1;
}
.b0 .bento-visual { width: 340px; height: 330px; right: 20px; bottom: 20px; }
.b1 .bento-visual { width: 180px; height: 145px; right: 20px; bottom: 12px; }
.b6 .bento-visual { width: 150px; height: 145px; right: 24px; bottom: 12px; }

.bento-visual::before {
  content: ""; position: absolute; width: 130px; height: 130px; right: 5px; bottom: 5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,181,71,.22) 0%, rgba(255,140,50,.07) 50%, transparent 70%);
  filter: blur(22px); z-index: -1; opacity: 0.75; transition: opacity .4s ease, transform .4s ease;
}
.b0 .bento-visual::before { width: 280px; height: 260px; right: 30px; bottom: 30px; filter: blur(35px); background: radial-gradient(circle, rgba(255,181,71,.32) 0%, rgba(255,140,50,.1) 55%, transparent 75%); }
.b1 .bento-visual::before { background: radial-gradient(circle, rgba(56,189,248,.32) 0%, rgba(14,165,233,.1) 50%, transparent 70%); }
.b3 .bento-visual::before { background: radial-gradient(circle, rgba(168,85,247,.25) 0%, rgba(147,51,234,.08) 50%, transparent 70%); }

.bento-visual img {
  width: 100%; height: 100%; object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.65));
  transition: transform .45s cubic-bezier(0.2, 0.8, 0.2, 1), filter .45s ease;
}
.bento-item:hover .bento-visual img {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 22px 32px rgba(0,0,0,.85)) drop-shadow(0 0 15px rgba(255,181,71,.2));
}
.bento-item:hover .bento-visual::before { opacity: 1; transform: scale(1.2); }

.bento-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 3px; max-width: 58%; }
.b0 .bento-text { max-width: 52%; gap: 6px; }
.bento-text b { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.22; color: #f4f1ea; letter-spacing: -.01em; }
.b0 .bento-text b { font-size: 26px; line-height: 1.15; }
.bento-sub { display: block; font-size: 13px; font-weight: 500; color: var(--amber); line-height: 1.35; opacity: .95; }
.b0 .bento-sub { font-size: 15px; }
.bento-count { display: inline-block; color: var(--muted); font-size: 12px; margin-top: 3px; font-weight: 500; }

/* product cards */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.pcard {
  border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(255,181,71,.3); box-shadow: 0 24px 50px -20px rgba(255,150,50,.25); }
.pcard-media { position: relative; display: grid; place-items: center; aspect-ratio: 1/.9; margin: 8px; border-radius: 18px; background: radial-gradient(circle at 50% 35%, #ffffff 0%, #f7f6f3 70%, #ece9e2 100%); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; }
.pcard-media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.07); }
.pcard-media .ph { width: 48px; height: 48px; color: #bbb; }
.pcard-wish { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: #444; transition: .2s; z-index: 2; }
.pcard-wish .ic { width: 17px; height: 17px; }
.pcard-wish:hover { transform: scale(1.1); }
.pcard-wish.on { color: #ff5a6a; }
.pcard-wish.on .ic { fill: currentColor; }
.icon-btn.pcard-wish { position: static; background: var(--surface); color: var(--muted); }
.icon-btn.pcard-wish.on { color: #ff5a6a; }
.pcard-body { padding: 6px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard-meta { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.pcard-title { font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; margin-bottom: 14px; }
.pcard-title:hover { color: var(--amber); }
.pcard-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.pcard-price b { font-family: var(--display); font-weight: 600; font-size: 19px; display: block; }
.pcard-price small { display: block; font-size: 11.5px; color: var(--ok); font-weight: 700; }
.price-old { color: var(--dim); text-decoration: line-through; font-size: 13px; }
.add-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #1a1206; box-shadow: 0 8px 20px -8px var(--glow); transition: .25s var(--ease); flex-shrink: 0; }
.add-btn:hover { transform: rotate(90deg) scale(1.06); }
.add-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.add-btn .ic { width: 20px; height: 20px; stroke-width: 2.4; }

.skel .pcard-media, .skel-box { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skel .pcard-body i, .skel-pd i { display: block; height: 12px; border-radius: 6px; margin: 8px 0; background: rgba(255,255,255,.06); }
.skel .pcard-body i:nth-child(2) { width: 70%; }
.skel .pcard-body i:nth-child(3) { width: 40%; height: 20px; margin-top: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* loyalty */
.loyal { display: grid; grid-template-columns: .9fr 1.4fr; gap: 40px; padding: 44px; align-items: center; overflow: hidden; position: relative; }
.loyal::after { content: ''; position: absolute; width: 500px; height: 500px; right: -150px; top: -250px; background: radial-gradient(circle, rgba(255,160,60,.18), transparent 65%); pointer-events: none; }
.loyal p { color: var(--muted); margin: 14px 0 24px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tier { --c: #d39066; position: relative; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); overflow: hidden; transition: .35s var(--ease); animation: rise .6s calc(var(--i) * 90ms) var(--ease) both; }
.tier::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: .8; }
.tier:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.tier-silver { --c: #cfd6e2; } .tier-gold { --c: #ffcf5c; } .tier-platinum { --c: #c6b5ff; }
.tier-top { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--c); flex-wrap: wrap; }
.tier-top .ic { width: 16px; height: 16px; }
.tier-top em { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; background: var(--c); color: #111; border-radius: 999px; padding: 2px 7px; }
.tier-pct { font-family: var(--display); font-size: 44px; font-weight: 700; line-height: 1; margin: 16px 0 10px; letter-spacing: -.04em; }
.tier-pct small { font-size: 22px; color: var(--c); }
.tier-th { font-weight: 700; font-size: 14px; }
.tier-sub { font-size: 11.5px; color: var(--dim); }
.tier.reached { border-color: color-mix(in srgb, var(--c) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(255,255,255,.01)); }
.tier.current { box-shadow: 0 0 0 1px var(--c), 0 20px 50px -20px var(--c); }

/* loyalty card */
.lcard {
  --c1: #2a2620; --c2: #15130f; --acc: var(--amber);
  position: relative; overflow: hidden; border-radius: 26px; padding: 28px; min-height: 240px;
  background: radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 60%), linear-gradient(135deg, var(--c1), var(--c2));
  border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--acc) 50%, transparent);
}
.lcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 6s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -100% 0; } }
.lcard-bronze { --acc: #d39066; } .lcard-silver { --acc: #cfd6e2; } .lcard-gold { --acc: #ffcf5c; } .lcard-platinum { --acc: #c6b5ff; } .lcard-start { --acc: #8b8f99; }
.lcard-top { display: flex; justify-content: space-between; align-items: center; }
.lcard-brand { font-family: var(--display); font-weight: 600; font-size: 14px; opacity: .85; }
.lcard-tier { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--acc); color: #111; }
.lcard-pct { font-family: var(--display); font-weight: 700; font-size: 72px; line-height: 1; margin-top: 26px; letter-spacing: -.05em; }
.lcard-pct small { font-size: 34px; color: var(--acc); }
.lcard-sub { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 20px; }
.lcard-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.lcard-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc), #fff); box-shadow: 0 0 20px var(--acc); transition: width 1s var(--ease); }
.lcard-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.75); flex-wrap: wrap; }

/* steps & cta */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 24px; position: relative; }
.step > .ic { width: 30px; height: 30px; color: var(--amber); margin-bottom: 18px; }
.step b { display: block; font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }
.step-n { position: absolute; top: 20px; right: 22px; font-family: var(--display); font-size: 34px; font-weight: 700; color: rgba(255,255,255,.06); }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 44px; align-items: center; }
.cta p { color: var(--muted); margin-top: 14px; }
.cta-form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.done { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 30px; }
.done .ic { width: 50px; height: 50px; color: var(--ok); padding: 12px; border-radius: 50%; background: rgba(94,227,154,.12); }
.done span { color: var(--muted); }

/* forms */
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-label { font-size: 13px; font-weight: 700; color: #d9d5cc; display: flex; gap: 8px; align-items: baseline; }
.req { color: var(--amber); font-style: normal; }
.opt { color: var(--dim); font-style: normal; font-weight: 500; font-size: 12px; }
.field-hint { font-size: 12px; color: var(--dim); }
.field input, .field select, .field textarea, .cta-form select, .input, .sort select, .status-select, .req select {
  width: 100%; min-height: 48px; padding: 12px 15px; border-radius: 14px; outline: none;
  background: rgba(0,0,0,.25); border: 1px solid var(--line-2); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: rgba(255,181,71,.6); box-shadow: 0 0 0 4px rgba(255,181,71,.1); background: rgba(0,0,0,.35); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a19e95' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; padding-right: 38px !important; }
option { background: #15171e; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--amber-soft); border: 1px solid rgba(255,181,71,.2); font-size: 13.5px; color: #ead9b8; }
.note .ic { width: 18px; color: var(--amber); margin-top: 1px; }
.note a { color: var(--amber); font-weight: 700; text-decoration: underline; }
.note.ok { background: rgba(94,227,154,.08); border-color: rgba(94,227,154,.25); color: #c9f3dc; }
.note.ok .ic { color: var(--ok); }
.radios { display: grid; gap: 10px; }
.radio input { position: absolute; opacity: 0; }
.radio span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.2); cursor: pointer; transition: .2s; font-weight: 600; font-size: 14px; }
.radio span .ic { color: var(--dim); }
.radio input:checked + span { border-color: var(--amber); background: var(--amber-soft); box-shadow: 0 0 0 3px rgba(255,181,71,.08); }
.radio input:checked + span .ic { color: var(--amber); }
.radio input:focus-visible + span { outline: 2px solid var(--amber); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { display: none; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); position: relative; transition: .25s; flex-shrink: 0; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #ccc; transition: .25s var(--ease); }
.switch input:checked + span { background: var(--amber); border-color: var(--amber); }
.switch input:checked + span::after { left: 20px; background: #1a1206; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; padding: 5px 0; }
.check input { display: none; }
.check span { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-2); flex-shrink: 0; transition: .2s; display: grid; place-items: center; }
.check input:checked + span { background: var(--amber); border-color: var(--amber); }
.check input:checked + span::after { content: '✓'; color: #1a1206; font-size: 12px; font-weight: 900; }
.check small { color: var(--dim); margin-left: auto; }

/* catalog */
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--amber); }
.crumbs .ic { width: 14px; }
.cat-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.cat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 92px; padding: 20px; display: grid; gap: 22px; max-height: calc(100vh - 110px); overflow: auto; }
.f-close { display: none; }
.f-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 10px; }
.f-cat { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .2s; }
.f-cat .ic { width: 18px; }
.f-cat small { margin-left: auto; color: var(--dim); font-weight: 600; }
.f-cat:hover { color: var(--text); background: var(--surface); }
.f-cat.on { color: var(--text); background: var(--amber-soft); }
.f-cat.on .ic { color: var(--amber); }
.f-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; color: var(--dim); }
.f-price input { width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line-2); outline: none; }
.f-brands { max-height: 260px; overflow: auto; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .input { max-width: 360px; }
.chips-active { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip .ic { width: 14px; }
.chip-clear { color: var(--amber); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-left: auto; }
.sort select { min-height: 40px; padding: 8px 14px; width: auto; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pager button { min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.pager button.on { background: var(--grad); color: #1a1206; border: 0; }
.pager span { align-self: center; color: var(--dim); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 50px 24px; text-align: center; }
.empty > .ic { width: 52px; height: 52px; color: var(--amber); padding: 13px; border-radius: 18px; background: var(--amber-soft); }
.empty b { font-size: 18px; }
.empty span { color: var(--muted); }
.empty.big { padding: 80px 24px; }
.big-404 { font-family: var(--display); font-size: 90px !important; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* product page */
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.pd-gallery { position: sticky; top: 92px; }
.pd-main { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, #fff, #e9e5dc) !important; border: 0; }
.pd-main img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { width: 72px; height: 72px; border-radius: 14px; background: #f1eee7; padding: 6px; border: 2px solid transparent; }
.pd-thumbs button.on { border-color: var(--amber); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.skel-pd { grid-template-columns: 1fr 1fr; }
.skel-pd .pd-gallery { aspect-ratio: 1; border-radius: var(--r-lg); }
.pd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 13px; }
.pd-info h1 { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; margin-bottom: 14px; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 20px; }
.stock i { width: 8px; height: 8px; border-radius: 50%; }
.stock.in { color: var(--ok); } .stock.in i { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.stock.out { color: var(--muted); } .stock.out i { background: var(--dim); }
.pd-price { padding: 22px; display: grid; gap: 16px; margin-bottom: 18px; }
.pd-price-big { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.pd-yours { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ok); margin-top: 6px; }
a.pd-yours { color: var(--amber); }
.pd-yours .ic { width: 16px; }
.pd-buy { display: flex; gap: 10px; }
.qty { display: flex; align-items: center; height: 54px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty .ic { width: 16px; }
.qty input { width: 44px; text-align: center; background: none; border: 0; outline: none; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 40px; border-radius: 12px; }
.qty.sm button { width: 32px; }
.qty.sm input { width: 36px; }
.perks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.perks li { display: flex; gap: 10px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.perks .ic { color: var(--amber); }
.perks b { display: block; font-size: 13px; }
.perks span { font-size: 12px; color: var(--muted); }
.ask-ai { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; transition: .25s; border-color: rgba(255,181,71,.25); background: linear-gradient(120deg, rgba(255,181,71,.10), rgba(255,255,255,.02)); }
.ask-ai:hover { border-color: rgba(255,181,71,.5); transform: translateY(-2px); }
.ask-ai > .ic:first-child { width: 30px; height: 30px; color: var(--amber); }
.ask-ai div { flex: 1; }
.ask-ai b { display: block; }
.ask-ai span { font-size: 13px; color: var(--muted); }
.tabs { margin-top: 44px; }
.tabs-head { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs-head button { height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 700; color: var(--muted); border: 1px solid transparent; }
.tabs-head button.on { color: var(--text); background: var(--surface-2); border-color: var(--line-2); }
.tab { padding: 26px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.specs div { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; }
.desc { white-space: pre-line; color: #d6d2c9; max-width: 860px; }
.sticky-buy { display: none; }

/* cart & checkout */
.checkout { display: grid; grid-template-columns: 1fr 390px; gap: 24px; align-items: start; margin-top: 24px; }
.co-main { display: grid; gap: 18px; }
.lines { padding: 8px 18px; }
.line { display: grid; grid-template-columns: 72px 1fr auto 110px 40px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 72px; height: 72px; border-radius: 14px; background: #f1eee7; padding: 6px; }
.line-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line-info a { font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-info span { font-size: 12.5px; }
.warn { color: var(--amber); font-style: normal; }
.line-total { text-align: right; font-size: 16px; }
.co-form { padding: 24px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid var(--line); margin-bottom: 22px; }
.seg button, .seg a { height: 44px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; transition: .25s; }
.seg .ic { width: 17px; }
.seg .on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg .on .ic { color: var(--amber); }
.seg-wide { grid-template-columns: repeat(3, 1fr); max-width: 620px; }
.co-step { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.co-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1a1206; font-weight: 800; font-size: 13px; }
.co-side { position: sticky; top: 92px; }
.summary { padding: 26px; display: grid; gap: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-row.disc { color: var(--ok); font-weight: 700; }
.sum-row.disc span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.sum-row .ic { width: 16px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-total b { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; }

/* success */
.success { padding: 50px 40px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.success-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(94,227,154,.25), rgba(94,227,154,.05)); border: 1px solid rgba(94,227,154,.35); animation: popIn .6s var(--ease) both; }
.success-ic .ic { width: 40px; height: 40px; color: var(--ok); stroke-width: 2.5; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s ease forwards; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-steps { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.success-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.success-steps .on { color: var(--ok); border-color: rgba(94,227,154,.35); }
.success-steps .ic { width: 15px; }
.claim { padding: 24px; text-align: left; width: 100%; display: grid; gap: 10px; }
.claim h3 { display: flex; align-items: center; gap: 10px; }
.claim h3 .ic { color: var(--amber); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* auth */
.auth { display: grid; grid-template-columns: 460px 1fr; gap: 50px; align-items: center; }
.auth-card { padding: 36px; display: grid; gap: 18px; }
.auth-alt { color: var(--muted); font-size: 14px; text-align: center; }
.auth-alt a { color: var(--amber); font-weight: 700; }
.auth-side h2 { margin-bottom: 24px; }
.auth-side .tiers { grid-template-columns: repeat(2, 1fr); }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 24px; color: var(--muted); }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .ic { color: var(--ok); width: 18px; }

/* account */
.acc-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.acc-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.acc-grid .tiers .tier-pct { font-size: 32px; }
.acc-form { padding: 26px; }
.orders { display: grid; gap: 10px; }
.order summary { display: grid; grid-template-columns: 110px 130px auto 1fr auto 120px; gap: 14px; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; font-size: 14px; }
.order summary::-webkit-details-marker { display: none; }
.order .right { text-align: right; font-size: 16px; }
.order-items { padding: 4px 20px 18px; display: grid; gap: 10px; }
.order-items > div { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.order-items img { width: 48px; height: 48px; border-radius: 10px; background: #f1eee7; object-fit: contain; padding: 4px; }
.order-items .btn { justify-self: start; }
.disc-tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--ok); background: rgba(94,227,154,.1); border-radius: 999px; padding: 2px 8px; }
.status { display: inline-flex; height: 26px; align-items: center; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 800; justify-self: start; }
.st-new { background: rgba(140,200,255,.12); color: var(--info); }
.st-confirmed { background: rgba(255,181,71,.12); color: var(--amber); }
.st-shipped { background: rgba(198,181,255,.14); color: #c6b5ff; }
.st-completed { background: rgba(94,227,154,.12); color: var(--ok); }
.st-cancelled { background: rgba(255,122,122,.12); color: var(--err); }

/* admin */
.page.wide .container, .wide { width: min(1480px, 100% - 40px); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { padding: 18px; display: grid; gap: 4px; }
.kpi .ic { color: var(--amber); margin-bottom: 8px; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.table { overflow: auto; padding: 0; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td a { color: var(--amber); }
.tr-main { cursor: pointer; transition: background .2s; }
.tr-main:hover { background: rgba(255,255,255,.025); }
.tr-detail td { background: rgba(0,0,0,.2); }
.detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.d-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; }
.d-item img { width: 44px; height: 44px; border-radius: 10px; background: #f1eee7; object-fit: contain; padding: 3px; }
.d-meta p { margin-bottom: 6px; font-size: 13.5px; color: var(--muted); }
.d-meta b { color: var(--text); }
.status-select { min-height: 38px !important; padding: 6px 12px !important; border-radius: 999px !important; font-size: 13px; font-weight: 700; width: auto !important; border: 0 !important; }
.tier-pill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.tp-bronze { color: #d39066; } .tp-silver { color: #cfd6e2; } .tp-gold { color: #ffcf5c; } .tp-platinum { color: #c6b5ff; }
.reqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.req { padding: 18px; display: grid; gap: 8px; align-content: start; }
.req.is-new { border-color: rgba(255,181,71,.35); }
.req-top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.req-top select { margin-left: auto; min-height: 34px; padding: 4px 12px; width: auto; font-size: 13px; border-radius: 999px; }
.req p { color: #d6d2c9; font-size: 14px; white-space: pre-line; }
.req a { color: var(--amber); }
.req .row-btns { justify-content: flex-start; }
.transcript { display: grid; gap: 10px; max-height: 60vh; overflow: auto; margin-top: 16px; }

/* static pages */
.center-head { text-align: center; max-width: 760px; margin: 10px auto 36px; display: grid; justify-items: center; gap: 12px; }
.narrow-box { max-width: 520px; margin: 0 auto 26px; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 30px 0; }
.rule { padding: 24px; }
.rule > .ic { width: 28px; height: 28px; color: var(--amber); margin-bottom: 14px; }
.rule b { display: block; margin-bottom: 6px; }
.rule p { color: var(--muted); font-size: 14px; }

/* footer */
.footer { margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,170,60,.03)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 50px 0 34px; }
.f-brand p { color: var(--muted); margin-top: 14px; max-width: 300px; font-size: 14px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--muted); }
.footer ul a:hover, .footer .link:hover { color: var(--amber); }
.footer li { display: flex; align-items: center; gap: 8px; }
.footer li .ic { width: 16px; }
.footer .link { color: var(--muted); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 30px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); flex-wrap: wrap; }

/* modal & toasts */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); animation: fade .25s; }
.modal-card { position: relative; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 30px; border-radius: 26px; background: #12141b; border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: modalIn .35s var(--ease); }
.modal-sm .modal-card { width: min(440px, 100%); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; color: var(--muted); background: var(--surface); }
.m-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; padding-right: 30px; }
.m-ic { width: 46px !important; height: 46px !important; padding: 11px; border-radius: 14px; background: var(--amber-soft); color: var(--amber); }
.m-head p { font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 10px; width: min(440px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(22,24,31,.95); border: 1px solid var(--line-2); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: toastIn .4s var(--ease); transition: .4s var(--ease); }
.toast.out { opacity: 0; transform: translateY(10px); }
.toast div { flex: 1; min-width: 0; }
.toast b { display: block; font-size: 14px; }
.toast small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(94,227,154,.14); color: var(--ok); flex-shrink: 0; }
.toast-err .toast-ic { background: rgba(255,122,122,.14); color: var(--err); }
.toast-ic .ic { width: 17px; }
.toast-act { padding: 8px 14px; border-radius: 999px; background: var(--grad); color: #1a1206; font-weight: 800; font-size: 13px; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* AI manager */
.ai { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; justify-items: end; gap: 12px; }
.ai-fab { position: relative; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 22px 0 8px; border-radius: 999px; background: #15130f; border: 1px solid rgba(255,181,71,.4); box-shadow: 0 16px 40px -10px rgba(255,150,50,.45); font-weight: 800; transition: .3s var(--ease); }
.ai-fab:hover { transform: translateY(-3px); }
.ai-fab-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1a1206; }
.ai-fab-ic .ic { width: 22px; height: 22px; }
.ai-fab-ring { position: absolute; left: 8px; top: 8px; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--amber); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
.ai.open .ai-fab-ring { display: none; }
.ai-teaser { position: relative; max-width: 300px; padding: 16px 18px; border-radius: 18px 18px 6px 18px; background: #16181f; border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 4px; cursor: pointer; animation: modalIn .5s var(--ease); font-size: 13.5px; }
.ai-teaser span { color: var(--muted); }
.ai-teaser-x { position: absolute; top: 6px; right: 8px; color: var(--dim); font-size: 18px; }
.ai-panel { width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: rgba(15,16,21,.96); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,181,71,.08); backdrop-filter: blur(20px); animation: modalIn .35s var(--ease); }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(255,181,71,.10), transparent); }
.ai-head b { display: block; font-size: 14px; }
.ai-head small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.ai-head .live-dot { width: 6px; height: 6px; }
.ai-head-info { flex: 1; min-width: 0; }
.ai-human-btn {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber);
  background: rgba(255,181,71,.12);
  border: 1px solid rgba(255,181,71,.35);
  transition: .2s;
  cursor: pointer;
  white-space: nowrap;
}
.ai-human-btn:hover {
  background: var(--amber);
  color: #1a1206;
  border-color: var(--amber);
  box-shadow: 0 0 16px rgba(255,181,71,.3);
}
.ai-orb { width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(from 0deg, #ffe0a0, #ff8a3d, #ffb547, #ffe0a0); animation: spin 6s linear infinite; padding: 3px; flex-shrink: 0; }
.ai-orb span { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3d6, #ffb547 45%, #a24a10); }
.ai-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.ai-x:hover { background: var(--surface-2); color: var(--text); }
.ai-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: grid; gap: 8px; max-width: 88%; animation: rise .35s var(--ease) both; }
.msg > div:first-child { padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.msg.bot > div:first-child { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; }
.msg.me > div:first-child { background: var(--grad); color: #1a1206; font-weight: 600; border-bottom-right-radius: 6px; }
.msg small { color: var(--dim); font-size: 11px; }
.msg ul { padding-left: 18px; margin: 4px 0; }
.lead-ok { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--ok); font-weight: 700; font-size: 13px; }
.lead-ok .ic { width: 15px; }
.typing { display: flex; gap: 4px; padding: 14px 16px !important; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-5px); background: var(--amber); } }
.ai-products { display: grid; gap: 8px; }
.ai-p { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); }
.ai-p img { width: 48px; height: 48px; border-radius: 10px; background: #f1eee7; object-fit: contain; padding: 3px; }
.ai-p div a { font-size: 12.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-p b { font-size: 13px; color: var(--amber); }
.ai-fb { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-fb input { height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); outline: none; min-width: 0; }
.ai-fb button { grid-column: span 2; }
.ai-chips { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.ai-chips button { white-space: nowrap; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,181,71,.3); background: var(--amber-soft); color: #f5d9a8; font-size: 12.5px; font-weight: 600; }
.ai-chips button:hover { background: rgba(255,181,71,.2); }
.ai-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.ai-form input { flex: 1; height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line-2); outline: none; min-width: 0; }
.ai-form input:focus { border-color: rgba(255,181,71,.5); }
.ai-send { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1a1206; flex-shrink: 0; }
.ai-send .ic { width: 19px; }
.ai-note { font-size: 11px; color: var(--dim); text-align: center; padding: 0 14px 10px; }

.only-mobile { display: none !important; }

/* responsive */
@media (max-width: 1180px) {
  .nav a[data-nav="/delivery"] { display: none; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .bento-item.b0 { grid-column: span 2; }
  .bento-item.b1 { grid-column: span 1; }
  .bento-item.b6 { grid-column: span 1; }
}
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 14px 20px 20px; background: rgba(7,8,11,.97); border-bottom: 1px solid var(--line); }
  .nav a[data-nav="/delivery"] { display: flex; }
  body.menu-open .nav { display: flex; }
  .burger { display: grid; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 30px; }
  .float-a { left: 12px; } .float-b { right: 12px; }
  .loyal, .cta { grid-template-columns: 1fr; padding: 28px; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; top: 0; z-index: 110; border-radius: 0 24px 24px 0; background: #101218; transform: translateX(-105%); transition: transform .35s var(--ease); }
  body.filters-open .filters { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .f-close { display: flex; justify-content: space-between; align-items: center; }
  .only-mobile { display: inline-flex !important; }
  .pd { grid-template-columns: 1fr; gap: 24px; }
  .pd-gallery { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .co-side { position: static; }
  .auth { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .sticky-buy.only-mobile { display: flex !important; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; border-radius: 20px; }
  .sticky-buy b { font-family: var(--display); font-size: 18px; display: block; }
  .sticky-buy small { color: var(--muted); font-size: 12px; }
  .ai:has(~ .sticky-buy), body:has(.sticky-buy) .ai { bottom: 92px; }
}
@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .container { width: calc(100% - 28px); }
  .topbar-link { display: none; }
  .topbar-in { font-size: 12px; text-align: center; }
  .header-in { gap: 10px; height: 64px; flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0 0 12px; }
  .search kbd { display: none; }
  .nav { top: 64px; }
  .h-actions { margin-left: auto; }
  .h-btn { width: 40px; height: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .hero-stats div { padding: 10px; }
  .hero-stats b { font-size: 15px; }
  .float { padding: 10px 12px; }
  .float-a { bottom: 16px; } .float-b { top: 14px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 165px; gap: 12px; }
  .bento-item { padding: 16px; border-radius: 18px; }
  .bento-item.b0 { grid-column: span 2; grid-row: span 1; }
  .bento-item.b6 { grid-column: span 2; }
  .b0 .bento-text b { font-size: 20px; }
  .b0 .bento-visual { width: 170px; height: 140px; right: 14px; bottom: 8px; }
  .bento-visual { width: 110px; height: 110px; right: 8px; bottom: 8px; }
  .b1 .bento-visual, .b6 .bento-visual { width: 130px; height: 110px; }
  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pcard-body { padding: 4px 12px 12px; }
  .pcard-title { font-size: 13px; }
  .pcard-price b { font-size: 16px; }
  .add-btn { width: 38px; height: 38px; border-radius: 12px; }
  .row2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .line { grid-template-columns: 60px 1fr auto; grid-template-areas: 'img info del' 'img qty total'; gap: 8px 12px; }
  .line-img { grid-area: img; width: 60px; height: 60px; }
  .line-info { grid-area: info; } .line .qty { grid-area: qty; justify-self: start; } .line-total { grid-area: total; } .line [data-del] { grid-area: del; }
  .order summary { grid-template-columns: 1fr auto; }
  .order summary > :nth-child(2), .order summary > :nth-child(4), .order summary > :nth-child(5) { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .seg-wide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .ai { right: 14px; bottom: 14px; }
  .ai-fab-label { display: none; }
  .ai-fab { padding: 0 8px; }
  .ai-panel { height: calc(100vh - 110px); }
  .lcard-pct { font-size: 58px; }
  .success { padding: 36px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   v2 — фиксы, полноценная ПК-версия и мобильная версия «как приложение»
   ========================================================================== */
/* атрибут hidden должен побеждать display:grid/flex у компонентов */
[hidden] { display: none !important; }
.field-label .req { padding: 0; display: inline; border: 0; background: none; }
.note { display: block; overflow: hidden; }
.note > .ic { float: left; margin: 2px 10px 0 0; }
html { -webkit-tap-highlight-color: transparent; }
.tabbar, .nav-cats, .only-mobile-flex { display: none; }

/* ---------- быстрый заказ прямо с карточки ---------- */
.pcard-top { position: relative; }
.quick-over {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 13px;
  color: #1a1206; background: rgba(255, 255, 255, .94); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s;
}
.quick-over .ic { width: 16px; height: 16px; color: var(--amber-2); }
.pcard:hover .quick-over, .quick-over:focus-visible { opacity: 1; transform: none; }
.quick-over:hover { background: var(--grad); }
.quick-over:hover .ic { color: #1a1206; }
.qo-short { display: none; }
@media (hover: none) {
  .quick-over { opacity: 1; transform: none; left: auto; right: 14px; bottom: 14px; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 12px; gap: 5px; }
  .quick-over .ic { width: 14px; height: 14px; }
  .qo-long { display: none; } .qo-short { display: inline; }
  .pill-muted { bottom: auto; top: 12px; }
  .pcard:hover, .bento-item:hover, .tier:hover { transform: none; }
  .spotlight { display: none; }
}

/* ---------- ПК: мега-меню каталога ---------- */
.nav-cat { position: relative; }
.nav-cat-link .ic { width: 16px; height: 16px; }
.mega {
  position: absolute; top: calc(100% + 16px); left: -12px; z-index: 70; width: min(880px, 92vw);
  display: grid; grid-template-columns: 1fr 250px; gap: 14px; padding: 16px; border-radius: 26px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.nav-cat:hover .mega, .nav-cat:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.nav-cat.mega-off .mega { opacity: 0; visibility: hidden; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; transition: background .2s; }
.mega-item:hover { background: var(--surface-2); }
.mega-item:hover b { color: var(--amber); }
.mega-img { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; padding: 5px; background: radial-gradient(circle at 50% 35%, #fff, #ece8df); color: #555; }
.mega-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mega-txt b { display: block; font-size: 14px; transition: color .2s; }
.mega-txt small { color: var(--dim); font-size: 12px; }
.mega-side { padding: 20px; border-radius: 18px; display: grid; gap: 12px; align-content: start; background: linear-gradient(160deg, rgba(255,181,71,.15), rgba(255,255,255,.02)); border: 1px solid rgba(255,181,71,.22); }
.mega-side .eyebrow { margin: 0; }
.mega-side .eyebrow .ic { width: 14px; height: 14px; }
.mega-side p { color: var(--muted); font-size: 13.5px; }
.mega-side .btn { justify-self: start; }

/* ---------- ПК: большие мониторы ---------- */
@media (min-width: 1600px) {
  .container { width: min(1480px, 100% - 64px); }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
  .cat-layout { grid-template-columns: 290px 1fr; }
  body { font-size: 15.5px; }
}

/* ---------- планшет и телефон ---------- */
@media (max-width: 980px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.chat-open { overflow: hidden; }
  .nav { max-height: calc(100dvh - 74px); overflow: auto; gap: 2px; background: #090a0e !important; box-shadow: 0 40px 80px -10px rgba(0,0,0,.85); border-radius: 0 0 24px 24px; }
  .nav-cat { display: none; }
  .nav-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .nav .nav-cats a { font-size: 13px; padding: 11px 12px; border-radius: 14px; background: var(--surface); color: var(--text); }
  .nav-cats a .ic { width: 17px; height: 17px; color: var(--amber); }
  .nav-cats small { margin-left: auto; color: var(--dim); }
  #accountBtn { display: none; }

  /* нижняя панель навигации */
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(9, 10, 14, .9); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid var(--line);
  }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--dim); transition: color .2s; }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--amber); }
  .tabbar a.on::before { content: ''; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
  .tab-ai { color: var(--text) !important; }
  .tab-ai i { width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #1a1206; box-shadow: 0 10px 26px -6px var(--glow), 0 0 0 5px var(--bg); }
  .tab-ai i .ic { width: 22px; height: 22px; }
  .tab-count { position: absolute; top: 6px; left: calc(50% + 5px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #1a1206; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }

  /* AI-менеджер — на весь экран, вызов из нижней панели */
  .ai-fab, .ai-teaser { display: none !important; }
  .ai { right: 0; bottom: 0; }
  .ai-panel { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; animation: sheetIn .35s var(--ease); }
  .ai-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .ai-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .ai-x { width: 40px; height: 40px; background: var(--surface-2); }

  /* липкие панели покупки над нижней навигацией */
  .sticky-buy.only-mobile { bottom: calc(66px + 10px + env(safe-area-inset-bottom)); }
  body:has(.sticky-buy) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .sticky-acts { display: flex; gap: 8px; }
  .sticky-buy .btn { height: 46px; padding: 0 16px; }
  .toasts { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body:has(.sticky-buy) .toasts { bottom: calc(150px + env(safe-area-inset-bottom)); }

  /* лента категорий в каталоге */
  .only-mobile-flex { display: flex; }
  .cat-chips { gap: 8px; overflow-x: auto; margin: -8px calc(50% - 50vw) 16px; padding: 2px calc(50vw - 50%); scrollbar-width: none; scroll-snap-type: x proximity; }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chips a { flex-shrink: 0; scroll-snap-align: start; height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; color: var(--muted); }
  .cat-chips a.on { background: var(--amber-soft); color: var(--amber); border-color: rgba(255,181,71,.35); }
  .cat-chips .ic { width: 16px; height: 16px; }
  .cat-head { margin-bottom: 18px; }

  /* без зума iOS при фокусе */
  .field input, .field select, .field textarea, .ai-form input, .search input, .ai-fb input, .f-price input, .input { font-size: 16px; }
}

@media (max-width: 680px) {
  .quick-over { opacity: 1; transform: none; left: auto; right: 14px; bottom: 14px; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 12px; gap: 5px; }
  .quick-over .ic { width: 14px; height: 14px; }
  .qo-long { display: none; } .qo-short { display: inline; }
  .pill-muted { bottom: auto; top: 12px; }
  .header-in { height: auto; min-height: 64px; padding-top: 10px; }
  .nav { top: 100%; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .float-b { display: none; }
  .sec { padding: 34px 0; }
  .sec-head { align-items: start; flex-direction: column; gap: 10px; }
  .pd-price-big { font-size: 32px; }
  .pd-buy { flex-wrap: wrap; }
  .pd-buy .btn { flex: 1; }
  .tabs-head { overflow-x: auto; }
  .tab { padding: 18px; }
  .specs div { grid-template-columns: 1fr 1fr; gap: 10px; }
  .checkout { margin-top: 16px; }
  .co-form { padding: 18px; }
  .lines { padding: 4px 14px; }
  .auth-card { padding: 24px 20px; }
  .loyal, .cta { padding: 22px; }
  .tier-pct { font-size: 34px; }
  .footer { margin-top: 40px; }
  .footer-grid { gap: 22px; padding: 36px 0 24px; }

  /* модалки — нижний «шторка» как в приложениях */
  .modal { place-items: end center; padding: 0; }
  .modal-card, .modal-sm .modal-card { width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetIn .35s var(--ease); }
  .modal-card::before { content: ''; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--line-2); }
  .ai-panel { height: 100dvh; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }


/* ==========================================================================
   v5: подкатегории, автодополнение НП, товары в админке, юр. страницы
   ========================================================================== */
.f-subs { display: grid; gap: 2px; margin: 2px 0 8px 18px; padding-left: 12px; border-left: 1px solid var(--line-2); max-height: 340px; overflow: auto; }
.f-sub { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .2s; }
.f-sub small { margin-left: auto; color: var(--dim); }
.f-sub:hover { color: var(--text); background: var(--surface); }
.f-sub.on { color: var(--amber); background: var(--amber-soft); }
.sub-chips { margin-top: -6px; }
.sub-chips a { font-size: 12.5px; }
.sub-chips small { color: var(--dim); font-weight: 600; margin-left: 4px; }

.has-suggest { position: relative; }
.suggest { position: absolute; z-index: 70; top: calc(100% + 6px); left: 0; right: 0; max-height: 300px; overflow: auto; padding: 6px;
  background: #11131a; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }
.sg-item { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.sg-item small { display: block; color: var(--dim); font-size: 12px; font-weight: 500; }
.sg-item:hover, .sg-item.on { background: var(--amber-soft); color: var(--text); }
.sg-empty { padding: 10px 12px; color: var(--muted); font-size: 13px; }

.sync { display: grid; gap: 12px; padding: 16px 18px; margin-bottom: 16px; border-radius: var(--r); }
.sync-info { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.sync-info span:not(.pill) { color: var(--muted); font-size: 13.5px; }
.sync-log { margin: 0; max-height: 220px; overflow: auto; padding: 12px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid var(--line);
  color: #cfcac0; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.pill-red { background: rgba(255,122,122,.12); color: var(--err); border-color: rgba(255,122,122,.3); }
.tb-img { width: 46px; height: 46px; object-fit: contain; background: #f3f1ec; border-radius: 10px; padding: 3px; }
.price-in { width: 110px; height: 38px; padding: 0 10px; }
tr.is-hidden td { opacity: .45; }
tr.is-hidden td:last-child { opacity: 1; }

.legal { max-width: 860px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg); }
.legal h1 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 18px; }
.legal h2 { font-size: 18px; margin: 26px 0 10px; color: var(--text); }
.legal p, .legal li { color: #d6d2c9; }
.legal p + p { margin-top: 10px; }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 6px; }
.legal a, .muted a, .small a { color: var(--amber); }
.seller { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 10px 0 14px; }
.seller dt { color: var(--muted); font-size: 13.5px; }
.seller dd { margin: 0; font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 0 auto; }
.legal-card { padding: 24px; border-radius: var(--r-lg); }
.legal-card h3 { margin-bottom: 12px; }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .seller { grid-template-columns: 1fr; gap: 2px; }
  .seller dd { margin-bottom: 8px; }
  .price-in { width: 86px; }
}

/* Badges on product cards */
.pcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.badge-smart {
  background: rgba(255, 181, 71, 0.2);
  color: #ffc259;
  border: 1px solid rgba(255, 181, 71, 0.45);
  box-shadow: 0 2px 8px rgba(255, 181, 71, 0.2);
}
.badge-design {
  background: rgba(198, 181, 255, 0.2);
  color: #d8cdff;
  border: 1px solid rgba(198, 181, 255, 0.45);
  box-shadow: 0 2px 8px rgba(198, 181, 255, 0.2);
}
.badge-neon {
  background: rgba(94, 227, 214, 0.2);
  color: #72f0e4;
  border: 1px solid rgba(94, 227, 214, 0.45);
  box-shadow: 0 2px 8px rgba(94, 227, 214, 0.2);
}
.badge-hit {
  background: rgba(255, 114, 94, 0.2);
  color: #ff8e7b;
  border: 1px solid rgba(255, 114, 94, 0.45);
}
.badge-abb {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.badge-hager {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.45);
}
.badge-value {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.45);
}
.badge-cob {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.45);
}
.badge-track {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
}
.badge-vintage {
  background: rgba(217, 119, 6, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(217, 119, 6, 0.45);
}

/* Tabs for trend hits on homepage */
.hit-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
}
.hit-tabs::-webkit-scrollbar { display: none; }
.pill-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.pill-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}
.pill-tab.on {
  background: linear-gradient(135deg, rgba(255,181,71,.25), rgba(255,138,61,.2));
  border-color: var(--amber);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255,181,71,.22);
}
