/* SCOBOX — стили магазина. Светлая тема, mobile-first */
:root {
  --bg: #ffffff;
  --surface: #f4f5f7;
  --surface-2: #e9ecf0;
  --line: #eceef1;
  --line-2: #d5d9df;
  --text: #16181d;
  --muted: #4a505c;
  --muted-2: #6b7280;
  --accent: #1f5bff;
  --accent-hover: #1749d6;
  --ok: #067647;
  --ok-bg: #e7f6ee;
  --err: #b42318;
  --err-bg: #fdecec;
  --warn-bg: #fff3d6;
  --warn: #5c3d00;
  --info-bg: #e8eeff;
  --info: #1f46b8;
  --radius: 24px;
  --radius-sm: 14px;
  --tabbar-h: 68px;
  --font: Manrope, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; }
.h3 { font-size: 17px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; display: flex; justify-content: center; margin-top: 24px; }
.center-text { text-align: center; align-items: center; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; }
.upper { text-transform: uppercase; }
.upper::placeholder { text-transform: none; }
.cart-img, .hero-img, .pcard-img, .gallery-slide a { text-decoration: none; }
.ok-text { color: var(--ok); font-weight: 600; }
.err-text { color: var(--err); font-weight: 600; }
.warn-text { color: #8a5a00; font-weight: 600; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { margin-top: 48px; }
.section.first { margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.section > h2, .section > h1 { margin-bottom: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-gap { display: flex; gap: 8px; align-items: center; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-head h1 { flex: 1; font-size: clamp(24px, 4vw, 32px); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 16px; text-align: center; color: var(--muted); }
.empty h2 { color: var(--text); font-size: 20px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #2a2e37; }
.btn-outline { background: #fff; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost-light { background: transparent; border: 1px solid #4a515e; color: #fff; }
.btn-text-danger { background: transparent; color: var(--err); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1 1 0; }
.link-strong { font-weight: 700; text-underline-offset: 4px; padding: 8px 4px; }
.link-muted { background: none; border: 0; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; position: relative; color: var(--text); text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--surface); }
.icon-btn.sm { width: 36px; height: 36px; }
.round-btn { width: 52px; height: 52px; border-radius: 999px; border: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--text); color: #fff; flex: none; }
.pcard .round-btn { width: 44px; height: 44px; }
.round-btn.outline { background: #fff; border: 1px solid var(--line-2); color: var(--text); }
.round-btn.dark { background: var(--text); color: #fff; }
.round-btn.glass { background: rgba(0,0,0,.35); color: #fff; width: 44px; height: 44px; }
.round-btn.on, .fav-btn.on, .rail-btn.on { color: var(--accent); }
.round-btn.on svg, .fav-btn.on svg { fill: currentColor; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.badge[hidden] { display: none; }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 10px; background: var(--surface); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.err { background: var(--err-bg); color: var(--err); }
.tag.info { background: var(--info-bg); color: var(--info); }
.tag.warn { background: var(--warn-bg); color: #8a5a00; }
.chip { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fff; border-radius: 999px; padding: 7px 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Шапка и подвал ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.logo img { height: 19px; width: auto; }
.desktop-nav { display: none; gap: 24px; flex: 1; font-size: 15px; font-weight: 600; }
.desktop-nav a { text-decoration: none; padding: 8px 0; }
.desktop-nav a:hover { color: var(--accent); }
.header-actions { display: flex; gap: 4px; margin-left: auto; }
.hide-mobile { display: none; }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 32px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-brand img { height: 17px; width: auto; align-self: flex-start; }
.copyright { margin-top: 24px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted-2); text-decoration: none; }
.tabbar a[aria-current] { color: var(--text); }
.tabbar .badge { top: 6px; right: auto; left: 50%; margin-left: 6px; }

/* ---------- Витрина на главной ---------- */
.hero-wrap { margin-top: 8px; }
.hero { position: relative; background: var(--surface); border-radius: 28px; overflow: hidden; touch-action: pan-y; user-select: none; }
.hero-track { display: flex; transition: transform .5s cubic-bezier(.22,.7,.2,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; display: flex; flex-direction: column-reverse; gap: 12px; padding: 18px 18px 0; }
.hero-text { display: flex; flex-direction: column; gap: 12px; transition: opacity .5s; }
.hero-slide[aria-hidden="true"] .hero-text { opacity: .15; }
.hero-title { font-size: clamp(28px, 6vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; }
.hero-desc { color: var(--muted); font-size: 16px; max-width: 480px; display: none; }
.hero-img { display: flex; align-items: center; justify-content: center; height: 250px; }
.hero-img img { max-height: 100%; width: auto; object-fit: contain; }
.hero-img .ph { width: 100%; height: 100%; border-radius: 20px; }
.hero-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero .btn-row { flex-wrap: nowrap; gap: 8px; }
.hero .btn-row .btn { flex: 1 1 0; padding: 0 12px; min-width: 0; }
.hero .link-strong { display: none; }
.hero-controls { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 16px; gap: 12px; }
.hero-counter { display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; font-size: 14px; }
.dots { display: inline-flex; gap: 6px; margin-left: 14px; align-items: center; }
.dot { width: 12px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: #c3c8d1; transition: width .4s, background .4s; }
.dot.on { width: 28px; background: var(--text); }
.arrows { display: none; gap: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.check { width: 24px; height: 24px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.price { font-weight: 800; font-size: 20px; white-space: nowrap; }
.price.xl { font-size: 28px; }
.price s { font-size: .6em; color: var(--muted-2); font-weight: 600; margin-left: 4px; }

.sticky-buy { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 35; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(22,24,29,.14); border-radius: 22px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px; animation: up .25s ease; }
.sticky-buy[hidden] { display: none; }
.sticky-buy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy-info span { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .btn { min-height: 46px; padding: 0 22px; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Горизонтальные ленты ---------- */
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.reel-card { position: relative; flex: 0 0 148px; height: 263px; border-radius: 18px; overflow: hidden; background: #1b1e24; color: #fff; scroll-snap-align: start; text-decoration: none; }
.reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.4); border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.reel-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); display: flex; flex-direction: column; font-size: 12px; }
.reel-meta b { font-size: 13px; }
.chips { gap: 8px; margin-bottom: 16px; padding-bottom: 4px; }
.chip-btn { flex: none; display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip-btn.on { background: var(--text); color: #fff; border-color: var(--text); }

/* ---------- Карточки товаров ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { position: relative; background: var(--surface); border-radius: 20px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.pcard-img { text-decoration: none; aspect-ratio: 1; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; color: var(--text); }
.pcard-body { padding: 0 4px; display: flex; flex-direction: column; gap: 2px; }
.pcard-name { font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; min-height: 36px; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; padding-left: 4px; margin-top: auto; gap: 6px; }
.pcard-foot .price { font-size: 16px; }
.ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted-2); font-size: 12px; font-weight: 600; background: #fff; width: 100%; height: 100%; }
.ph svg { color: #8b93a1; }

.opt-band { background: var(--text); color: #fff; border-radius: 28px; padding: 26px 20px; display: flex; flex-direction: column; gap: 18px; }
.opt-band h2 { color: #fff; }
.opt-band p { color: #c3c8d1; margin-top: 8px; }
.opt-band .btn { flex: 1 1 auto; }

/* ---------- Каталог ---------- */
.search-form { margin-bottom: 14px; }
.search-field { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--muted); }
.search-form .search-field input[type=search] { flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none; font-size: 16px; color: var(--text); }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; }
.sort-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.sort-row > .muted { white-space: nowrap; flex: none; }
.sorts { margin: 0; padding: 0; gap: 14px; }
.sorts a { flex: none; font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 0; }
.sorts a.on { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--text); }

/* ---------- Страница товара ---------- */
.product-page { padding-top: 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.crumbs a { text-decoration: none; }
.product-grid { display: grid; gap: 20px; }
.gallery { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--surface); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery-slide.dark { background: #1b1e24; }
.gallery-slide .ph { background: transparent; }
.gallery-count { position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumb { width: 60px; height: 60px; border-radius: 12px; border: 2px solid transparent; background: var(--surface); padding: 0; overflow: hidden; flex: none; }
.thumb.on { border-color: var(--text); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-video { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #1b1e24; color: #fff; }
.product-info { display: flex; flex-direction: column; gap: 12px; }
.product-title { font-size: clamp(26px, 4vw, 44px); }
.rating-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.stars { display: inline-flex; gap: 2px; color: #d5d9df; }
.star.on { color: #f5a524; }
.product-price { display: flex; align-items: baseline; gap: 12px; }
.chips-static { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-static span { font-size: 13px; font-weight: 600; background: var(--surface); border-radius: 999px; padding: 8px 12px; }
.buy-row { flex-wrap: nowrap; }
.info-card { background: var(--surface); border-radius: 20px; padding: 4px 16px; }
.info-card > div { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e3e6eb; }
.info-card > div:last-child { border: 0; }
.info-card b { display: block; font-size: 14px; }
.info-card .muted { display: block; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { transition: transform .25s; }
.accordion details[open] summary svg { transform: rotate(180deg); }
.details-body { padding-bottom: 16px; color: var(--muted); font-size: 15px; }
.prose p + p { margin-top: 10px; }
.kv { margin: 0; display: flex; flex-direction: column; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed #e3e6eb; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); font-weight: 600; text-align: right; }
.list { margin: 0; padding-left: 20px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq b { color: var(--text); }
.inline-video { width: 100%; border-radius: 16px; background: #000; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; text-decoration: none; color: var(--text); }
.file-row > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.pdf { width: 44px; height: 44px; border-radius: 10px; background: var(--err-bg); color: var(--err); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.review-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.review { background: var(--surface); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.review-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.review p { font-size: 15px; color: #2e333b; }
.review-reply { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* ---------- Reels ---------- */
body.is-reels { background: #0e0f12; padding-bottom: 0; }
body.is-reels .site-header, body.is-reels .site-footer { display: none; }
body.is-reels .tabbar { background: #0e0f12; border-color: #23262d; }
body.is-reels .tabbar a { color: #a9b0bc; }
body.is-reels .tabbar a[aria-current] { color: #fff; }
.reels { position: relative; color: #fff; }
.reels-top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 60px; padding: 0 12px 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 22px; font-weight: 800; pointer-events: none; max-width: 520px; margin: 0 auto; }
.reels-top button { pointer-events: auto; }
.reels .i-sound { display: none; }
.reels.unmuted .i-sound { display: block; }
.reels.unmuted .i-mute { display: none; }
.reels-feed { height: calc(100dvh - var(--tabbar-h) - env(safe-area-inset-bottom)); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; max-width: 520px; margin: 0 auto; }
.reels-feed::-webkit-scrollbar { display: none; }
.reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #15171c; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.reel-tap { position: absolute; inset: 0; z-index: 1; background: transparent; border: 0; }
.reel-paused { position: absolute; left: 50%; top: 45%; z-index: 2; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 999px; background: rgba(0,0,0,.35); display: none; align-items: center; justify-content: center; pointer-events: none; }
.reel.paused .reel-paused { display: flex; }
.reel-rail { position: absolute; right: 8px; bottom: 28px; z-index: 3; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rail-btn { width: 48px; height: 48px; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 1px 3px rgba(0,0,0,.4)); }
.rail-btn.on svg { fill: #ff3b5c; stroke: #ff3b5c; }
.rail-btn.accent { background: var(--accent); border-radius: 14px; filter: none; }
.reel-info { position: absolute; left: 14px; right: 76px; bottom: 22px; z-index: 3; display: flex; flex-direction: column; gap: 10px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.reel-info p { font-size: 14px; color: #e3e6eb; }
.reel-author { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: #fff; color: var(--text); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; text-shadow: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; background: var(--text); color: #fff; }
.reel-product { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border-radius: 16px; padding: 8px 12px 8px 8px; text-decoration: none; color: #fff; text-shadow: none; }
.reel-product > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.reel-product b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-icon { width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Корзина и оформление ---------- */
.card { background: var(--surface); border-radius: 20px; padding: 16px; }
.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.cart-item { background: var(--surface); border-radius: 20px; padding: 12px; display: flex; gap: 12px; }
.cart-img { width: 84px; height: 84px; border-radius: 14px; background: #fff; overflow: hidden; flex: none; display: flex; }
.cart-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cart-name { font-weight: 700; text-decoration: none; line-height: 1.3; }
.stepper { display: flex; align-items: center; background: #fff; border-radius: 999px; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; font-weight: 600; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.totals { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; font-size: 15px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals > div[hidden] { display: none; }
.total { padding-top: 10px; border-top: 1px solid #e3e6eb; font-size: 19px; font-weight: 800; }
.bottom-cta { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #fff 30%); padding: 16px 0 12px; margin-top: 8px; z-index: 5; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field-label { font-size: 14px; font-weight: 700; }
input:not([type=radio]):not([type=checkbox]), select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 16px; color: var(--text); background: #fff; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[aria-invalid="true"] { border-color: var(--err); }
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 2px solid #e3e6eb; background: #fff; cursor: pointer; }
.option:has(input:checked) { border-color: var(--text); }
.option input { width: 20px; height: 20px; accent-color: var(--text); margin: 0; flex: none; }
.option > span { display: flex; flex-direction: column; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check-row.between { justify-content: space-between; align-items: center; color: var(--text); font-weight: 600; }
.check-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--text); flex: none; }
[data-show-for], [data-show-pay] { display: none; }
[data-show-for].show, [data-show-pay].show { display: flex; }
.pvz-box { background: #fff; border-radius: 16px; border: 1px solid #e3e6eb; overflow: hidden; }
.pvz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; font-size: 14px; font-weight: 600; }
.pvz-list { max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); }
.pvz-item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 10px 12px; font-size: 14px; }
.pvz-item:hover, .pvz-item.on { background: var(--surface); }
.pvz-item small { display: block; color: var(--muted); }
.alert { background: var(--err-bg); color: var(--err); border-radius: 14px; padding: 12px 16px; font-weight: 600; margin-bottom: 12px; }
.alert.info { background: var(--info-bg); color: var(--info); }

/* ---------- Заказ и профиль ---------- */
.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.timeline li::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: #e3e6eb; }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--text); }
.tl-dot { width: 20px; height: 20px; border-radius: 999px; border: 2px solid #c3c8d1; background: #fff; flex: none; position: relative; z-index: 1; }
.timeline li.done .tl-dot { background: var(--text); border-color: var(--text); }
.timeline li > span:last-child { display: flex; flex-direction: column; font-size: 14px; }
.timeline li:not(.done) b { color: var(--muted-2); }
.track { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; }
.track > span { display: flex; flex-direction: column; }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; color: #d5d9df; padding: 4px; display: flex; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: #f5a524; }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.profile-card { display: flex; gap: 14px; align-items: center; }
.profile-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.segmented { background: var(--surface-2); border-radius: 999px; padding: 4px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.segmented a { height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; text-decoration: none; }
.segmented a[aria-current] { background: #fff; box-shadow: 0 1px 3px rgba(22,24,29,.12); }
.order-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.addr { display: flex; gap: 10px; align-items: center; }
.addr > span { display: flex; flex-direction: column; }
.tg-login { display: flex; justify-content: center; min-height: 48px; }
.prose-page .prose { color: #2e333b; margin-top: 16px; }

/* ---------- Окно заявки и уведомление ---------- */
dialog.sheet { border: 0; padding: 0; border-radius: 24px 24px 0 0; width: 100%; max-width: 520px; margin: auto auto 0; max-height: 92dvh; overflow-y: auto; }
dialog.sheet::backdrop { background: rgba(14,15,18,.55); }
dialog.sheet form { padding: 20px 16px 24px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { font-size: 22px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60; background: var(--text); color: #fff; border-radius: 14px; padding: 12px 18px; font-size: 14px; font-weight: 600; opacity: 0; transition: .25s; max-width: calc(100% - 32px); text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Планшет и компьютер ---------- */
@media (min-width: 640px) {
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .pcard { padding: 12px; border-radius: 24px; }
  .pcard-name { font-size: 16px; }
  .reel-card { flex-basis: 220px; height: 391px; border-radius: 22px; }
  .opt-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 48px; }
  .opt-band .btn { flex: none; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .container { padding: 0 24px; }
  .hscroll { margin: 0 -24px; padding: 0 24px; }
  .tabbar { display: none; }
  .desktop-nav, .hide-mobile { display: flex; }
  .header-row { min-height: 72px; }
  .logo img { height: 23px; }
  .section { margin-top: 88px; }
  .hero-wrap { margin-top: 24px; }
  .hero { border-radius: 32px; }
  .hero-slide { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px 64px 112px; }
  .hero-text { gap: 20px; }
  .hero-desc { display: block; }
  .checks li { font-size: 16px; }
  .check { width: 28px; height: 28px; }
  .hero-img { height: 460px; }
  .hero .btn-row .btn { flex: none; padding: 0 28px; }
  .hero .link-strong { display: inline; }
  .hero-controls { position: absolute; left: 64px; right: 64px; bottom: 36px; padding: 0; }
  .arrows { display: flex; }
  .price.xl { font-size: 36px; }
  .sticky-buy { left: auto; right: 24px; bottom: 24px; width: 420px; }
  .toast { bottom: 32px; }
  .product-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: 96px; }
  .section-head h2, .section > h2 { font-size: 40px; }
  dialog.sheet { border-radius: 24px; margin: auto; }
  .bottom-cta { position: static; background: none; padding: 8px 0 0; }
  .reels-feed { height: 100dvh; }
  body.is-reels .tabbar { display: grid; width: 520px; left: 50%; transform: translateX(-50%); }
  body.is-reels .reels-feed { height: calc(100dvh - var(--tabbar-h)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
