/* =========================================================
   Clother — объёмный «тактильный» стиль (как у DREFF China)
   в чёрно-белой палитре (как у SBP) + плавность iOS.
   Подключается после styles.css и переопределяет его.
   ========================================================= */
:root {
  --bg: #0a0a0c;
  --ink: #f4f4f6;
  --muted: #9a9aa5;
  --dim: #5f5f6a;
  --line: rgba(255,255,255,.07);
  --card: #141417;
  --card-2: #1f1f23;
  --glass: rgba(20,20,23,.8);
  --glass-2: #1f1f23;
  /* «металл» — главный акцент вместо красного */
  --metal: linear-gradient(180deg, #ffffff 0%, #ececf0 50%, #c4c4cb 100%);
  --metal-edge: #5c5c64;
  --key: linear-gradient(180deg, #2e2e35, #1a1a1f);
  --key-edge: #050506;
  --chrome: linear-gradient(110deg, #fff 0%, #9c9ca4 25%, #fff 45%, #6d6d75 65%, #fff 100%);
  --r: 18px;
  --display: 'Montserrat', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --body: 'Montserrat', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --spring: cubic-bezier(.32, .72, 0, 1);
  --ease: cubic-bezier(.25, .1, .25, 1);
}
html, body { background: var(--bg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body {
  font-size: 15px; letter-spacing: -.005em; overscroll-behavior-y: none;
  background:
    radial-gradient(120% 55% at 50% -12%, rgba(255,255,255,.13), transparent 60%),
    radial-gradient(70% 40% at 100% 100%, rgba(255,255,255,.05), transparent 60%), var(--bg);
  background-attachment: fixed;
}
/* фон — «чёрный леопард»: отдельный неподвижный слой (быстрее, чем background-attachment: fixed в WebView) */
.bg { display: block; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 55% at 50% -12%, rgba(255,255,255,.11), transparent 60%),
    radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(0,0,0,.35)),
    var(--leo, none) 0 0 / 260px 260px, var(--bg); }
.bg > * { display: none; }

/* ---- текст ---- */
.chrome-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; animation: none; }
.display { font-family: var(--display); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }
.h-3d { filter: none; }
.muted { color: var(--muted); }

/* ---- шапка ---- */
.topbar {
  padding: 10px 16px; padding-top: calc(10px + var(--tg-safe-top, 0px));
  background: linear-gradient(180deg, var(--bg) 65%, rgba(10,10,12,.0));
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.topbar.scrolled { background: rgba(10,10,12,.82); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }
.topbar-logo, .icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer; flex: none;
  background: linear-gradient(145deg, #2a2a30, #121215);
  box-shadow: 0 4px 0 var(--key-edge), 0 8px 16px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.09);
  transition: transform .12s, box-shadow .12s;
}
.icon-btn:active, .topbar-logo:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.09); }
.topbar-logo svg { width: 26px; height: 22px; }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.topbar-title { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: .02em; }
.cart-badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #fff; color: #000;
  font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(255,255,255,.45); animation: pop .4s var(--spring); }
.cart-badge[hidden] { display: none; }
@keyframes pop { from { transform: scale(.3); } }

/* ---- раскладка и плавное появление ---- */
.view { padding-top: 2px; }
.view > * { animation: rise .55s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); } }
.view > *:nth-child(2) { animation-delay: .05s; } .view > *:nth-child(3) { animation-delay: .1s; }
.view > *:nth-child(4) { animation-delay: .15s; } .view > *:nth-child(5) { animation-delay: .2s; }
.view > *:nth-child(n+6) { animation-delay: .24s; }
.large-title { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: -.03em; margin: 8px 0 4px; }
.large-sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.section { margin: 26px 2px 12px; }
.section h2 { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }

/* ---- объёмные карточки ---- */
.card {
  background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 14px 30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.card.iri::before { display: none; }
.tilt { transform: none !important; } .tilt .lift { transform: none; }
.pressable { cursor: pointer; transition: transform .3s var(--spring); }
.pressable:active { transform: scale(.97); }

/* ---- кнопки-клавиши ---- */
.btn {
  border: 0; border-radius: 14px; padding: 14px 18px; font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .09s, box-shadow .09s, opacity .2s;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { color: #0a0a0c; background: var(--metal); box-shadow: 0 5px 0 var(--metal-edge), 0 12px 24px rgba(255,255,255,.14), inset 0 1px 0 #fff; }
.btn-primary::after { display: none; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--metal-edge), 0 4px 10px rgba(255,255,255,.1), inset 0 1px 0 #fff; }
.btn-ghost { color: #fff; background: var(--key); border: 0; box-shadow: 0 5px 0 var(--key-edge), 0 12px 22px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1); }
.btn-ghost:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.1); }
.btn-danger { color: #ff8a8a; background: var(--key); border: 0; box-shadow: 0 5px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-danger:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--key-edge); }
.btn-sm { padding: 9px 13px; border-radius: 11px; font-size: 13px; }
.btn-primary.btn-sm { box-shadow: 0 3px 0 var(--metal-edge), inset 0 1px 0 #fff; }
.btn-ghost.btn-sm, .btn-danger.btn-sm { box-shadow: 0 3px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.1); }
.btn[disabled] { opacity: .4; }

/* ---- hero: вращающаяся посылка ---- */
.hero3d { position: relative; overflow: hidden; text-align: center; padding: 22px 18px 20px; margin-top: 6px; }
.hero3d::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 28%, rgba(255,255,255,.16), transparent 70%); }
.scene { position: relative; width: 112px; height: 112px; margin: 14px auto 34px; perspective: 600px; }
.cube { position: absolute; inset: 0; transform-style: preserve-3d; animation: cubeSpin 11s linear infinite; }
.face {
  position: absolute; width: 112px; height: 112px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #f4f4f6, #b9b9c1 60%, #77777f);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 -20px 40px rgba(0,0,0,.22);
}
.face::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 20px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(20,20,24,.85), rgba(0,0,0,.25)); }
.face span { position: relative; z-index: 1; display: grid; place-items: center; background: #0e0e11; color: #fff; padding: 5px 7px; border-radius: 7px; font-weight: 900; font-size: 10.5px; letter-spacing: .14em; }
.face span svg { width: 34px; height: 29px; }
.f1 { transform: translateZ(56px); } .f2 { transform: rotateY(180deg) translateZ(56px); } .f3 { transform: rotateY(90deg) translateZ(56px); }
.f4 { transform: rotateY(-90deg) translateZ(56px); } .f5 { transform: rotateX(90deg) translateZ(56px); } .f6 { transform: rotateX(-90deg) translateZ(56px); }
.cube-shadow { position: absolute; left: 50%; bottom: -32px; width: 112px; height: 16px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(255,255,255,.35), transparent 70%); filter: blur(4px); animation: shadowPulse 3.2s ease-in-out infinite; }
@keyframes cubeSpin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
@keyframes shadowPulse { 50% { opacity: .5; width: 84px; } }
.hero-title { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -.02em; margin: 0; position: relative; line-height: 1.05; }
.hero-title small { display: block; font-size: 11px; letter-spacing: .6em; text-indent: .6em; color: var(--muted); font-weight: 700; margin-top: 6px; }
.hero-tag { position: relative; color: #c9c9d1; font-size: 14.5px; line-height: 1.45; margin: 12px auto 0; max-width: 30ch; }
.hero-pills { position: relative; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 16px; }
.hpill { padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
/* логотип-клавиша вместо коробки */
.hero-mark3d { position: relative; width: 84px; height: 84px; margin: 8px auto 18px; border-radius: 24px; display: grid; place-items: center; color: #0a0a0c;
  background: var(--metal); box-shadow: 0 6px 0 var(--metal-edge), 0 18px 40px rgba(255,255,255,.18), inset 0 1px 0 #fff; animation: markFloat 5s ease-in-out infinite; }
.hero-mark3d svg { width: 52px; height: 44px; }
@keyframes markFloat { 50% { transform: translateY(-5px); box-shadow: 0 6px 0 var(--metal-edge), 0 26px 46px rgba(255,255,255,.12), inset 0 1px 0 #fff; } }
/* 4 факта под слоганом — мини-карточки 2×2 */
.hero-facts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; text-align: left; }
.hfact { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); min-width: 0; }
.hf-ico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: var(--key); box-shadow: 0 3px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.1); }
.hfact b { display: block; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.hfact small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: 2px; line-height: 1.25; }

/* ---- плитки разделов ---- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { all: unset; box-sizing: border-box; cursor: pointer; min-height: 120px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 6px 0 var(--key-edge), 0 16px 28px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); transition: transform .12s, box-shadow .12s; }
.tile:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--key-edge), 0 6px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06); }
.tic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #0a0a0c; background: var(--metal);
  box-shadow: 0 4px 0 var(--metal-edge), 0 8px 16px rgba(255,255,255,.12), inset 0 1px 0 #fff; }
.tic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile b { display: block; font-size: 15px; font-weight: 800; }
.tile small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.any-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 16px; }
.any-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: var(--key); box-shadow: 0 3px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.1); }
.any-card b { display: block; font-size: 15px; }
.any-card span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }

/* ---- шаги ---- */
.steps { gap: 10px; }
.step { padding: 14px; gap: 12px; }
.step::before { width: 30px; height: 30px; border-radius: 10px; background: var(--metal); color: #0a0a0c; font-family: var(--display); font-weight: 900; box-shadow: 0 3px 0 var(--metal-edge); }
.step b { font-weight: 800; }
.step span { font-size: 13px; }

/* ---- FAQ ---- */
.faq { display: grid; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 15px 16px; cursor: pointer; }
.faq-item summary b { flex: 1; font-size: 14.5px; font-weight: 700; }
.faq-item summary i { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--key); box-shadow: 0 2px 0 var(--key-edge); position: relative; transition: transform .45s var(--spring); }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: #fff; border-radius: 2px; }
.faq-item summary i::after { transform: rotate(90deg); transition: transform .45s var(--spring); }
.faq-item[open] summary i { transform: rotate(180deg); background: var(--metal); }
.faq-item[open] summary i::before, .faq-item[open] summary i::after { background: #0a0a0c; }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-item p { margin: 0; padding: 0 16px 16px; color: #c9c9d1; font-size: 14px; line-height: 1.55; animation: faqIn .45s var(--spring); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---- ссылки ---- */
.link-row { transition: transform .3s var(--spring); }
.link-row:active { transform: scale(.98); }
.link-row .ico { background: var(--key); border: 0; box-shadow: 0 3px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.1); }
.feature .ico { background: var(--metal); color: #000; box-shadow: 0 4px 0 var(--metal-edge); }
.about { color: #c9c9d1; }

/* ---- панель «Узнать цену» ---- */
.quote-panel { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; margin: 8px 0 12px; padding: 14px;
  border-radius: var(--r); position: relative; overflow: hidden; color: #0a0a0c; background: var(--metal);
  box-shadow: 0 6px 0 var(--metal-edge), 0 16px 34px rgba(255,255,255,.14), inset 0 1px 0 #fff; transition: transform .12s, box-shadow .12s; }
.quote-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); background-size: 250% 100%; animation: qShine 4s ease-in-out infinite; pointer-events: none; mix-blend-mode: soft-light; }
@keyframes qShine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -60% 0; } }
.quote-panel:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--metal-edge), inset 0 1px 0 #fff; }
.qp-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: #0e0e11; box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255,255,255,.12); }
.qp-ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qp-ico.big { width: 52px; height: 52px; border-radius: 15px; background: var(--metal); color: #0a0a0c; box-shadow: 0 4px 0 var(--metal-edge), inset 0 1px 0 #fff; }
.quote-panel b { display: block; font-size: 15px; font-weight: 900; letter-spacing: -.01em; }
.quote-panel small { display: block; font-size: 12px; font-weight: 600; color: #4a4a52; margin-top: 2px; line-height: 1.35; }
.qp-go { flex: none; font-size: 26px; font-weight: 300; color: #4a4a52; }
.quote-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.quote-head p { margin: 4px 0 0; font-size: 13px; }
.qsteps { padding: 14px; margin-top: 16px; display: grid; gap: 10px; }
.qsteps div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #c9c9d1; }
.qsteps i { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; color: #0a0a0c; background: var(--metal); box-shadow: 0 2px 0 var(--metal-edge); }
.quote-link { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 11px 12px; border-radius: 12px; background: #0c0c0f; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.quote-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9c9d1; }
.quote-wait { display: flex; align-items: center; gap: 12px; padding: 14px; }
.quote-wait b { display: block; font-size: 14.5px; } .quote-wait small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.qw-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.12); animation: qwPulse 1.6s ease-in-out infinite; }
@keyframes qwPulse { 50% { box-shadow: 0 0 0 10px rgba(255,255,255,.02); } }
.quote-ready { padding: 16px; text-align: center; }
.qr-price { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -.02em; margin: 4px 0 6px; }
.qr-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qr-opt { border: 0; cursor: pointer; padding: 13px 10px; border-radius: 14px; color: #0a0a0c; background: var(--metal); box-shadow: 0 4px 0 var(--metal-edge), inset 0 1px 0 #fff; transition: transform .1s, box-shadow .1s; }
.qr-opt + .qr-opt { color: #fff; background: var(--key); box-shadow: 0 4px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.1); }
.qr-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--metal-edge); }
.qr-opt b { display: block; font-size: 18px; font-weight: 900; }
.qr-opt span { display: block; font-size: 13px; font-weight: 700; margin-top: 2px; }
.qr-opt small { display: block; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.quote-admin .ev-photos img { width: 72px; height: 72px; }

/* ---- каталог ---- */
.search { position: relative; margin: 6px 0 4px; display: block; }
.search input { width: 100%; padding: 13px 14px 13px 40px; border-radius: 14px; border: 1px solid var(--line); background: #0c0c0f; outline: none; font-size: 15px; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); transition: border-color .2s; }
.search input:focus { border-color: rgba(255,255,255,.3); }
.search input::placeholder { color: var(--dim); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.chips { margin: 0 -16px; padding: 12px 16px 14px; gap: 8px; }
.chip { flex: none; border: 1px solid var(--line); background: #141417; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; box-shadow: none; transition: all .25s var(--ease); }
.chip:active { transform: scale(.94); }
.chip.on { color: #0a0a0c; background: var(--metal); border-color: transparent; box-shadow: 0 3px 0 var(--metal-edge); }
.grid { gap: 12px; perspective: none; }
.product { padding: 0; overflow: hidden; transition: transform .3s var(--spring); }
.product:active { transform: scale(.97); }
.product .pimg { border-radius: 0; aspect-ratio: 1; transform: none; border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 70% at 50% 35%, rgba(255,255,255,.14), transparent 70%), linear-gradient(160deg, #25252b, #101013); }
.product:hover .pimg img { transform: none; }
.product .pinfo { padding: 11px 12px 13px; transform: none; }
.product .ptitle { font-weight: 700; font-size: 13.5px; line-height: 1.25; min-height: 34px; }
.price { font-family: var(--display); font-weight: 900; font-size: 17px; margin-top: 6px; letter-spacing: -.01em; }
.price s { font-family: var(--body); font-weight: 600; }
.pre-tag { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ph-hanger { position: absolute; inset: 0; display: grid; place-items: center; color: #e9e9ee; }
.ph-hanger svg { width: 52%; height: auto; filter: drop-shadow(0 14px 12px rgba(0,0,0,.7)) drop-shadow(0 2px 0 #55555c); }
.badge { top: 10px; left: 10px; border-radius: 8px; padding: 4px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: #0c0c0e; border: 1px solid var(--line); box-shadow: none; }
.badge.r { left: auto; right: 10px; }
.badge.pre { top: auto; bottom: 10px; color: #0a0a0c; background: var(--metal); border: 0; box-shadow: 0 2px 0 var(--metal-edge); }

/* ---- шит ---- */
.sheet-backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: opacity .35s var(--ease); }
.sheet {
  background: linear-gradient(180deg, #1c1c21, #111114); border-top: 1px solid rgba(255,255,255,.1); border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(28px + var(--safe-b)); box-shadow: 0 -20px 50px rgba(0,0,0,.7);
  transform: translateY(105%); transition: transform .5s var(--spring); will-change: transform;
}
.sheet.dragging { transition: none; }
.sheet-wrap.open .sheet { transform: translateY(var(--drag, 0px)); }
.sheet-handle { width: 44px; height: 5px; background: #3a3a42; margin: 0 auto 12px; }
.sheet h3 { font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -.02em; margin: 2px 0 0; }
.sheet .card { background: linear-gradient(160deg, #26262c, #18181c); }

.big3d { aspect-ratio: 16/11; border-radius: 20px; display: grid; place-items: center; perspective: 700px; margin-bottom: 14px; border: 1px solid var(--line);
  background: radial-gradient(60% 70% at 50% 40%, rgba(255,255,255,.2), transparent 70%), linear-gradient(160deg, #26262c, #0f0f12); }
.big3d-in { width: 44%; color: #eee; animation: float3d 4.5s ease-in-out infinite; filter: drop-shadow(0 26px 18px rgba(0,0,0,.75)) drop-shadow(0 3px 0 #55555c); }
@keyframes float3d { 0%, 100% { transform: rotateY(-18deg) rotateX(8deg) translateY(0); } 50% { transform: rotateY(18deg) rotateX(-4deg) translateY(-8px); } }

.gallery { position: relative; margin: 2px -16px 14px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; padding: 0 16px; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: none; width: 84%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #000; scroll-snap-align: center; border: 1px solid var(--line); }
.gallery-slide:only-child { width: 100%; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: #3a3a42; transition: all .3s var(--spring); }
.gallery-dots i.on { background: #fff; width: 18px; border-radius: 3px; }

.pre-card { padding: 14px 16px; margin-top: 14px; }
.pre-card .pre-head { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 8px; font-size: 14px; }
.pre-card .pre-head i { font-style: normal; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #0c0c0e; font-size: 14px; }
.pre-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 14px; }
.pre-line + .pre-line { border-top: 1px dashed rgba(255,255,255,.08); }
.pre-line span { color: var(--muted); }
.pre-line b { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pre-line.big b { font-size: 20px; }
.pre-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: 8px 0 0; }

.colors, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.color-chip, .size {
  min-width: 52px; padding: 10px 13px; border-radius: 12px; border: 0; font-weight: 800; font-size: 13.5px; cursor: pointer; text-align: center; color: #fff;
  background: linear-gradient(180deg, #2c2c33, #1b1b20); box-shadow: 0 3px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .09s, box-shadow .09s;
}
.color-chip:active, .size:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--key-edge); }
.color-chip.on, .size.on { color: #0a0a0c; background: var(--metal); box-shadow: 0 3px 0 var(--metal-edge), inset 0 1px 0 #fff; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn-ghost { flex: none; }

.fly-dot { position: fixed; z-index: 120; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px rgba(255,255,255,.8); pointer-events: none; }

/* корзина / оформление */
.cart-list { display: grid; gap: 8px; margin-top: 10px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #0c0c0f; border: 1px solid var(--line); }
.cl-img { position: relative; width: 52px; height: 52px; border-radius: 11px; overflow: hidden; flex: none; background: linear-gradient(160deg, #25252b, #101013); }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-img .ph-hanger svg { width: 60%; filter: none; }
.cart-line b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-line small { color: var(--muted); font-size: 12px; }
.cl-rm { display: block; margin: 4px 0 0 auto; width: 26px; height: 26px; border-radius: 8px; border: 0; background: var(--key); color: var(--muted); cursor: pointer; box-shadow: 0 2px 0 var(--key-edge); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 16px 2px 4px; font-size: 13px; color: #c9c9d1; line-height: 1.4; cursor: pointer; }
.agree input { width: 19px; height: 19px; flex: none; accent-color: #fff; margin: 0; }
.done-mark { width: 84px; height: 84px; margin: 6px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 38px; font-weight: 900; color: #0a0a0c;
  background: var(--metal); box-shadow: 0 6px 0 var(--metal-edge), 0 0 0 10px rgba(255,255,255,.05), 0 20px 40px rgba(255,255,255,.15); animation: pop .6s var(--spring); }

/* ---- формы ---- */
label.f > span { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 700; }
.inp { background: #0c0c0f; border: 1px solid var(--line); border-radius: 13px; box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.inp:focus { border-color: rgba(255,255,255,.3); }
.switch { background: #0c0c0f; border: 1px solid var(--line); }
.switch i { background: #2a2a30; }
.switch i::after { background: #8a8a92; transition: left .3s var(--spring); }
.switch input:checked + i { background: #e9e9ee; }
.switch input:checked + i::after { background: #0a0a0c; }

/* ---- сегмент ---- */
.seg { padding: 4px; border-radius: 14px; background: #111114; border: 1px solid var(--line); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); gap: 4px; }
.seg button { border-radius: 11px; font-weight: 800; color: var(--muted); padding: 10px; transition: all .3s var(--spring); }
.seg button.on { color: #0a0a0c; background: var(--metal); box-shadow: 0 3px 0 var(--metal-edge), inset 0 1px 0 #fff; }

/* ---- доставка ---- */
.dlv-opts { grid-template-columns: repeat(3, 1fr); }
.dlv-opt { background: linear-gradient(180deg, #2c2c33, #1b1b20) !important; border: 0 !important; box-shadow: 0 4px 0 var(--key-edge), inset 0 1px 0 rgba(255,255,255,.08) !important; transition: transform .1s, box-shadow .1s; }
.dlv-opt:active { transform: translateY(3px); }
.dlv-opt.on { background: var(--metal) !important; color: #0a0a0c; box-shadow: 0 4px 0 var(--metal-edge), inset 0 1px 0 #fff !important; transform: none; }
.dlv-opt.on small { color: #4a4a52; }
.pay-note { background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #d6d6dc; }
.dlv-warn { border-radius: 14px; }

/* ---- заказы ---- */
.order { transition: transform .3s var(--spring); }
.order:active { transform: scale(.98); }
.order .oimg, .receipt-row .oimg { background: linear-gradient(160deg, #25252b, #101013); border: 1px solid var(--line); color: #bbb; }
.progress { height: 7px; background: #0c0c0f; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); }
.progress > i { background: var(--metal); box-shadow: 0 0 10px rgba(255,255,255,.4); animation: none; transition: width .9s var(--spring); }
.status-pill { background: rgba(255,255,255,.07); border: 1px solid var(--line); font-weight: 800; }
.status-pill::before { background: #fff; box-shadow: 0 0 8px #fff; }
.status-pill.done::before { background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: none; }
.tl .dot { background: #141417; border: 2px solid #2a2a30; }
.tl.done .dot { background: var(--metal); color: #0a0a0c; border-color: transparent; }
.tl.cur .dot { background: #fff; color: #0a0a0c; border-color: transparent; }
.tl.done::before { background: linear-gradient(#fff, #8a8a92); }
.tl.preo b::after { content: ' · Китай'; color: var(--dim); font-weight: 600; font-size: 11.5px; }

.boxpath { padding: 16px; margin-top: 14px; overflow: hidden; }
.boxpath-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.boxpath-top b { font-size: 16px; font-weight: 800; }
.boxpath-top small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.boxpath-line { position: relative; height: 36px; }
.boxpath-line .rail { position: absolute; left: 10px; right: 10px; top: 50%; height: 4px; margin-top: -2px; background: #0c0c0f; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
.boxpath-line .fill { position: absolute; left: 10px; top: 50%; height: 4px; margin-top: -2px; background: var(--metal); border-radius: 3px; box-shadow: 0 0 10px rgba(255,255,255,.35); transition: width 1s var(--spring); }
.boxpath-line .stop { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #2a2a30; }
.boxpath-line .stop.on { background: #fff; }
.boxpath-line .parcel { position: absolute; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; display: grid; place-items: center; border-radius: 10px; font-size: 15px;
  background: var(--metal); color: #0a0a0c; box-shadow: 0 3px 0 var(--metal-edge), 0 6px 16px rgba(255,255,255,.2); transition: left 1s var(--spring); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.boxpath-cap { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.eta-line { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #0c0c0f; border: 1px solid var(--line); font-size: 13.5px; }
.ev-photos { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.ev-photos img { width: 64px; height: 64px; border-radius: 11px; object-fit: cover; flex: none; border: 1px solid var(--line); cursor: pointer; transition: transform .3s var(--spring); }
.ev-photos img:active { transform: scale(.94); }
.tl .ev-photos img { width: 54px; height: 54px; }

.kv dd { font-weight: 700; }
.total { font-family: var(--display); font-weight: 900; }
.track-card .ep-logo { background: var(--metal); color: #0a0a0c; box-shadow: 0 3px 0 var(--metal-edge); }
.track-office { background: #0c0c0f; }

/* ---- сторис / посты ---- */
.story-bubble .ring { background: conic-gradient(from var(--a), #fff, #5a5a62, #e9e9ee, #1a1a1f, #fff); }
.story-bubble .ava { background: #141417; border-color: var(--bg); }
.post-logo { display: inline-block; width: 24px; height: 20px; color: #fff; }
.post-logo svg { width: 100%; height: 100%; }
.sv-head .post-logo { width: 34px; height: 30px; }
.post-title { font-family: var(--display); font-weight: 800; }

/* ---- отзывы ---- */
.reviews-hero { text-align: center; padding: 28px 20px 22px; position: relative; overflow: hidden; }
.reviews-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 20%, rgba(255,255,255,.14), transparent 70%); pointer-events: none; }
.reviews-stars { position: relative; font-size: 28px; letter-spacing: .14em; margin-bottom: 10px; text-shadow: 0 0 18px rgba(255,255,255,.5); }
.reviews-hero h3 { position: relative; font-family: var(--display); font-weight: 900; font-size: 22px; margin: 0 0 8px; }
.reviews-hero p { position: relative; color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 auto 18px; max-width: 32ch; }
.review-points { display: grid; gap: 10px; margin-top: 14px; }

/* ---- таб-бар: клавиши ---- */
.tabbar {
  bottom: calc(10px + var(--safe-b)); width: min(calc(100% - 24px), 496px); padding: 6px; gap: 4px; border-radius: 22px;
  background: rgba(16,16,19,.86); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: 0 14px 34px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.tabbar a { color: var(--muted); font-weight: 700; font-size: 10px; padding: 8px 2px 6px; border-radius: 15px; gap: 3px; transition: color .25s, background .25s, transform .12s, box-shadow .12s; }
.tabbar a i { display: grid; place-items: center; height: 22px; }
.tabbar a i svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a:active { transform: translateY(2px); }
.tabbar a.on { color: #0a0a0c; background: var(--metal); box-shadow: 0 3px 0 var(--metal-edge), 0 6px 14px rgba(255,255,255,.18), inset 0 1px 0 #fff; transform: translateY(-2px); }

/* ---- тост ---- */
.toast { background: var(--metal); color: #0a0a0c; font-weight: 800; border-radius: 14px; box-shadow: 0 4px 0 var(--metal-edge), 0 14px 30px rgba(0,0,0,.6); transition: transform .5s var(--spring), opacity .3s, visibility .3s; opacity: 0; visibility: hidden; pointer-events: none; }
.toast.show { opacity: 1; visibility: visible; }
.toast.err { background: linear-gradient(180deg, #ffd2d2, #ff9c9c); }

/* ---- админка ---- */
.list-item .thumb { background: #0c0c0f; }
.status-grid button { background: linear-gradient(180deg, #2c2c33, #1b1b20); border: 0; box-shadow: 0 3px 0 var(--key-edge); transition: transform .09s; }
.status-grid button:active { transform: translateY(2px); }
.status-grid button.on { background: var(--metal); color: #0a0a0c; box-shadow: 0 3px 0 var(--metal-edge); }
.share-link { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.share-link code { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 11px; background: #0c0c0f; color: #d6d6dc; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faq-edit .faq-num { flex: none; width: 30px; height: 30px; margin-top: 9px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #0a0a0c; background: var(--metal); box-shadow: 0 2px 0 var(--metal-edge); }
.faq-edit .mini-btns button:disabled { opacity: .3; }
.thumbs-multi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs-multi .tm { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #0c0c0f; }
.thumbs-multi .tm img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-multi .tm button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; cursor: pointer; }
.thumbs-multi .add { display: grid; place-items: center; border: 1.5px dashed #3a3a42; color: var(--muted); font-size: 24px; cursor: pointer; background: none; }

/* ---- интро ---- */
.intro { background: var(--bg); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; }
.intro.gone { opacity: 0; visibility: hidden; }
.intro-mark { text-align: center; opacity: 0; transform: translateY(8px) scale(.96); animation: introIn 1s var(--spring) .1s forwards; }
.intro.gone .intro-mark { transform: scale(1.06); transition: transform .7s var(--ease); }
.intro-mark svg { width: 96px; height: 82px; filter: drop-shadow(0 0 22px rgba(255,255,255,.35)); }
.intro-mark svg path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.3s var(--ease) .15s forwards; }
.intro-word { font-family: var(--display); font-weight: 900; font-size: 36px; letter-spacing: -.01em; margin-top: 12px; }
.intro-sub { font-size: 11px; letter-spacing: .6em; text-indent: .6em; color: var(--muted); margin-top: 6px; font-weight: 700; }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

html.lite .cube, html.lite .big3d-in, html.lite .boxpath-line .parcel { animation: none; }
@media (prefers-reduced-motion: reduce) { .intro-mark svg path { stroke-dashoffset: 0; } }

/* =========================================================
   «Чёрный леопард» — узор на карточках, шторке и фото-заглушках
   ========================================================= */
/* body прозрачный, иначе он перекрывает слой .bg с леопардом (фон рисует html) */
html { background: var(--bg); }
body { background: transparent; }
/* обычные карточки — полупрозрачное «стекло», сквозь которое видно пятна фона */
.card { background: linear-gradient(160deg, rgba(31,31,35,.86), rgba(16,16,19,.9)); }
.tile { background: linear-gradient(160deg, rgba(31,31,35,.88), rgba(16,16,19,.92)); }
/* главная карточка — со своим узором и бегущим бликом, как по меху */
.hero3d { background: linear-gradient(160deg, rgba(28,28,32,.55), rgba(12,12,14,.75)), var(--leo-card) 0 0 / 220px 220px, #151518; }
.hero3d::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.07) 48%, transparent 60%); background-size: 250% 100%; animation: furSheen 6s ease-in-out infinite; }
@keyframes furSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -60% 0; } }
.hero3d > * { position: relative; z-index: 1; }
.product .pimg, .cl-img { background: radial-gradient(70% 70% at 50% 35%, rgba(255,255,255,.12), transparent 70%), var(--leo-img) 0 0 / 180px 180px, #151518; }
.big3d { background: radial-gradient(60% 70% at 50% 40%, rgba(255,255,255,.16), transparent 70%), var(--leo-img) 0 0 / 160px 160px, #151518; }
.sheet { background: linear-gradient(180deg, rgba(28,28,33,.9), rgba(14,14,17,.96)), var(--leo-card) 0 0 / 220px 220px, #121214; }
.sheet .card { background: linear-gradient(160deg, rgba(38,38,44,.85), rgba(22,22,26,.9)); }
.intro { background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.6)), var(--leo, none) 0 0 / 260px 260px, var(--bg); }
html.lite .hero3d::after { animation: none; }
