/* Дизайн-система витрины. Базовое оформление (серия Core) — тёплая бумажная основа, чернильный текст и акцентный цвет;
   серии Light, Select и Premium меняют материалы и настроение (см. конец файла). Главные действия — внизу, под большим пальцем. */
:root {
  --bg: #F6F3EC; --card: #FFFFFF; --ink: #15171A; --ink-2: #2A2D33; --muted: #6E727A; --line: #E8E3D8; --soft: #EFEBE2;
  --lime: #C8F031; --lime-d: #A9D214; --red: #D7372F; --teal: #0E9F9A; --amber: #E08A00; --ok: #1B8F53;
  --t-sporty: #EEF8C4; --t-svae: #FBE5E2; --t-shtodnya: #DDF3F1;
  --r: 22px; --r-s: 14px; --shadow: 0 1px 2px rgba(21,23,26,.04), 0 8px 24px rgba(21,23,26,.06);
  --nav-h: 68px; --sab: env(safe-area-inset-bottom, 0px); --sat: env(safe-area-inset-top, 0px);
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.45 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; min-height: 100dvh; overscroll-behavior-y: contain; }
body.sheet-open { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font: 800 26px/1.15 var(--display); letter-spacing: -.02em; }
h2 { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
h3 { font-weight: 800; font-size: 16px; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.fineprint { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }

#view { padding-bottom: calc(var(--nav-h) + var(--sab) + 96px); min-height: 100dvh; }
.wrap { max-width: 1120px; margin: 0 auto; padding: calc(18px + var(--sat)) 16px 0; }
.wrap.narrow { max-width: 560px; }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 800; transition: transform .12s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { min-height: 44px; padding: 0 16px; border-radius: 13px; font-size: 14.5px; }
.btn.wide { display: flex; width: 100%; margin-top: 12px; }
.btn.big { min-height: 60px; font-size: 18px; border-radius: 18px; }
.link { color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: underline; text-decoration-color: var(--lime-d); text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link svg { width: 18px; height: 18px; }
.link.strong { text-decoration: none; background: var(--lime); padding: 0 14px; border-radius: 12px; }

/* ── бренды ── */
.brand { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font: 800 11px/1 var(--display); letter-spacing: .02em; }
.brand.b-sporty { background: var(--ink); color: var(--lime); }
.brand.b-svae { background: var(--red); color: #fff; }
.brand.b-shtodnya { background: var(--teal); color: #fff; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; font-style: normal; letter-spacing: .01em; }
.tag.promo { background: var(--red); color: #fff; }
.tag.club { background: var(--ink); color: var(--lime); }
.tag.res { background: var(--soft); color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 99px; font-weight: 800; font-size: 14px; }
.pill.lime { background: var(--lime); color: var(--ink); }
.code { font: 800 12px/1 var(--display); background: var(--card); border-radius: 10px; padding: 9px 10px; box-shadow: inset 0 0 0 2px var(--line); letter-spacing: .04em; flex: none; }

/* ── нижняя панель: Магазин | Клуб | [Сканер] | Корзина | Профиль ── */
#nav { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; height: calc(var(--nav-h) + var(--sab)); padding: 0 6px var(--sab); display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
#nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; min-height: 48px; color: var(--muted); font-size: 11px; font-weight: 700; }
#nav a.on { color: var(--ink); }
#nav a.on svg { stroke-width: 2.4; }
#nav .scan-fab { width: 68px; height: 68px; min-height: 68px; margin: -26px auto 0; border-radius: 24px; background: var(--ink); color: var(--lime); box-shadow: 0 10px 24px rgba(21,23,26,.32), 0 0 0 5px var(--bg); transition: transform .12s; }
#nav .scan-fab svg { width: 32px; height: 32px; stroke-width: 2.1; }
#nav .scan-fab:active { transform: scale(.94); }
#nav .scan-fab.on { background: var(--lime); color: var(--ink); }
.badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.dot { position: absolute; top: 10px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
body.has-paybar #nav .scan-fab { width: 58px; height: 50px; min-height: 50px; margin: 0 auto; border-radius: 18px; box-shadow: none; }
body.has-paybar #nav .scan-fab svg { width: 26px; height: 26px; }
@media (min-width: 900px) {
  #nav { bottom: 18px; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); height: var(--nav-h); padding-bottom: 0; }
}

/* мини-корзина над панелью */
.minicart { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--sab) + 34px); width: calc(100% - 28px); max-width: 520px; min-height: 54px; padding: 0 8px 0 18px; display: flex; justify-content: space-between; align-items: center; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 12px 28px rgba(21,23,26,.28); }
.minicart.in { animation: pop .25s ease; }
.minicart.bump .mc-sum b { display: inline-block; animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }
.minicart b { color: var(--lime); }
.mc-go { display: inline-flex; align-items: center; gap: 2px; background: var(--lime); color: var(--ink); height: 40px; padding: 0 8px 0 14px; border-radius: 12px; font-weight: 800; }
@keyframes pop { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ── главная ── */
.hello { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hero { padding: 14px 0 20px; }
.hero h1 { font-size: clamp(28px, 7.4vw, 44px); }
.hero .lead { margin-top: 12px; color: var(--ink-2); max-width: 520px; }
.brands-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.codebox { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.codebox label, .form label, .manual label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
input:not([type=checkbox]), textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 16px; outline: none; transition: border-color .15s; }
input:focus, textarea:focus { border-color: var(--ink); }
.codebox input { text-transform: uppercase; letter-spacing: .08em; font-family: var(--display); font-size: 15px; }
.codebox .row > input { flex: 1; min-width: 0; }
.codebox input::placeholder { font: 600 15px 'Manrope', system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.sec { margin: 28px 0 12px; }
.stores { display: grid; gap: 10px; }
@media (min-width: 760px) { .stores { grid-template-columns: 1fr 1fr; } }
.store { display: flex; align-items: center; gap: 12px; background: var(--card); padding: 14px; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .12s; }
.store:active { transform: scale(.985); }
.store-pin { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--soft); flex: none; }
.store-pin.f-sporty { background: var(--ink); color: var(--lime); }
.store-pin.f-svae { background: var(--red); color: #fff; }
.store-pin.f-shtodnya { background: var(--teal); color: #fff; }
.store-pin.f-mix { background: linear-gradient(135deg, var(--lime) 0 34%, var(--red) 34% 67%, var(--teal) 67%); color: #fff; }
.store-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.store-body span { font-size: 14px; color: var(--ink-2); }
.store-body small { font-size: 12.5px; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--soft); font-weight: 700; }
.steps b { width: 34px; height: 34px; border-radius: 12px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--display); font-size: 13px; flex: none; }

/* ── стеллаж ── */
.shelf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.shelf-head h1 { font-size: 22px; }
.addr { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.addr svg { width: 16px; height: 16px; }
.search { position: relative; display: block; }
.search svg { position: absolute; left: 16px; top: 14px; color: var(--muted); }
.search input { padding-left: 48px; border-color: transparent; background: var(--card); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; min-height: 44px; padding: 0 16px; border-radius: 14px; background: var(--card); font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 2px var(--line); white-space: nowrap; }
.chip-btn.b-sporty, .chip-btn.b-svae, .chip-btn.b-shtodnya { font-family: var(--display); font-size: 11px; }
.chip-btn.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip-btn.b-sporty.on { color: var(--lime); }
.chip-btn.b-svae.on { background: var(--red); }
.chip-btn.b-shtodnya.on { background: var(--teal); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 880px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.span { grid-column: 1 / -1; }
.card { position: relative; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.grid.fresh .card { animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.tile { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.25; background: var(--soft); }
.b-sporty .tile, .l-emoji.b-sporty, .up.b-sporty .emoji, .b-sporty .ptile { background: var(--t-sporty); }
.b-svae .tile, .l-emoji.b-svae, .up.b-svae .emoji, .b-svae .ptile { background: var(--t-svae); }
.b-shtodnya .tile, .l-emoji.b-shtodnya, .up.b-shtodnya .emoji, .b-shtodnya .ptile { background: var(--t-shtodnya); }
.tile .emoji { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(21,23,26,.14)); transition: transform .2s; }
.card:active .tile .emoji { transform: scale(1.08) rotate(-4deg); }
.tile .tag { position: absolute; top: 10px; left: 10px; }
.heart { position: absolute; top: 8px; right: 8px; z-index: 1; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.86); color: var(--ink-2); transition: transform .12s; }
.heart svg { width: 21px; height: 21px; }
.heart:active { transform: scale(.88); }
.heart.on { color: var(--red); } .heart.on svg { fill: var(--red); }
.card.out .tile .emoji { filter: grayscale(1); opacity: .45; }
.card-body { padding: 10px 12px 0; flex: 1; cursor: pointer; }
.card-body h3 { font-size: 14.5px; line-height: 1.25; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.avail { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; font-weight: 700; }
.av.ok { color: var(--ok); }
.av.low { color: var(--amber); }
.av.none { color: var(--muted); }
.av.held { color: #9A9EA6; font-weight: 600; }   /* зарезервированное — серым, с таймером */
.av.mine { color: var(--ink); background: var(--lime); border-radius: 7px; padding: 2px 7px; align-self: flex-start; }
time { font-variant-numeric: tabular-nums; }
.card-foot { display: flex; flex-direction: column; gap: 8px; padding: 8px 10px 10px 12px; }
.card-acts { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
/* бронь — слева от «+»; когда счётчик количества раскрыт, от неё остаётся значок, на узких карточках она уступает место счётчику */
.rsv { position: relative; flex: 1 1 0; min-width: 44px; height: 48px; padding: 0 6px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 13px; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 2px var(--line); transition: transform .12s; }
.rsv svg { width: 18px; height: 18px; }
.rsv:active { transform: scale(.95); }
.rsv.locked { color: #8E929A; background: var(--soft); box-shadow: none; }
.rsv.locked i { position: absolute; top: 2px; right: 5px; font-size: 11px; font-style: normal; }
.rsv.mine { background: var(--lime); box-shadow: none; font-variant-numeric: tabular-nums; }
.card-acts:has(.stepper) .rsv { flex: 0 0 44px; padding: 0; }
.card-acts:has(.stepper) .rsv span { display: none; }
@media (max-width: 385px) { .card-acts:has(.stepper) .rsv { display: none; } }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; font-variant-numeric: tabular-nums; }
.price b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.price small { font-size: 11px; font-weight: 700; color: var(--muted); }
.price s { font-size: 12.5px; color: var(--muted); }
.price .p-promo { color: var(--red); }
.price.lg b { font-size: 28px; }
.club-hint { flex-basis: 100%; order: 3; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--ink-2); }
.add { width: 48px; height: 48px; border-radius: 16px; background: var(--lime); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform .12s; box-shadow: 0 4px 10px rgba(169,210,20,.4); }
.add svg { stroke-width: 2.6; }
.add:active { transform: scale(.9); }
.add:disabled { background: var(--soft); color: #B9BCC2; box-shadow: none; }
.add.big { width: auto; height: 60px; padding: 0 26px; gap: 8px; display: inline-flex; align-items: center; font-weight: 800; font-size: 17px; border-radius: 18px; }
.stepper { display: inline-flex; align-items: center; height: 48px; border-radius: 16px; background: var(--ink); color: #fff; flex: none; }
.stepper button { width: 40px; height: 48px; display: grid; place-items: center; color: #fff; }
.stepper button svg { width: 20px; height: 20px; stroke-width: 2.6; }
.stepper button:disabled { opacity: .3; }
.stepper output { min-width: 20px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lime); }
.stepper.big { height: 60px; border-radius: 18px; }
.stepper.big button { width: 56px; height: 60px; }
.stepper.big output { min-width: 30px; font-size: 20px; }
body.lefty .card-acts, body.lefty .line, body.lefty .bag, body.lefty .sheet-foot, body.lefty .scan-item { flex-direction: row-reverse; }
body.lefty .l-right { align-items: flex-start; }
.shelf .fineprint { margin: 20px 4px 0; }

/* ── пустые состояния, скелетоны ── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 56px 16px; }
.empty.small { padding: 32px 16px; }
.empty-emoji { font-size: 60px; line-height: 1; }
.sk { border-radius: var(--r); background: linear-gradient(100deg, var(--soft) 30%, #F8F5EE 50%, var(--soft) 70%); background-size: 300% 100%; animation: sh 1.2s infinite linear; }
@keyframes sh { to { background-position: -150% 0; } }
.sk-head { height: 90px; margin-bottom: 16px; } .sk-card { height: 230px; } .sk-row { height: 76px; }
.boot { min-height: 80dvh; display: grid; place-items: center; }
.boot-mark { display: grid; gap: 9px; }
.boot-mark i { display: block; height: 13px; border-radius: 7px; animation: bar 1s infinite ease-in-out; }
.boot-mark i:nth-child(1) { width: 70px; background: var(--lime-d); } .boot-mark i:nth-child(2) { width: 52px; background: var(--red); animation-delay: .12s; } .boot-mark i:nth-child(3) { width: 62px; background: var(--teal); animation-delay: .24s; }
@keyframes bar { 50% { transform: translateX(14px); } }

/* ── шторка ── */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(21,23,26,.5); animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 22px 16px calc(22px + var(--sab)); animation: up .28s cubic-bezier(.2,.9,.3,1); }
@keyframes up { from { transform: translate(-50%, 100%); } }
@media (min-width: 700px) { .sheet { bottom: 50%; transform: translate(-50%, 50%); border-radius: 28px; animation: fadein .2s; } }
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 15px; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow); }
.sheet.product { padding: 0 0 0; }
.ptile { position: relative; display: grid; place-items: center; height: 210px; background: var(--soft); }
.ptile .emoji { font-size: 110px; filter: drop-shadow(0 12px 14px rgba(21,23,26,.18)); }
.fav { position: absolute; left: 14px; top: 14px; width: 44px; height: 44px; border-radius: 15px; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow); }
.fav.on { color: var(--red); } .fav.on svg { fill: var(--red); }
.pinfo { padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pinfo h2 { font-size: 21px; line-height: 1.2; }
.descr { color: var(--ink-2); }
.reserve-box { width: 100%; background: var(--card); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.reserve-box > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.reserve-box b { display: flex; align-items: center; gap: 6px; }
.reserve-box b svg { width: 18px; height: 18px; }
.reserve-box span { font-size: 13.5px; color: var(--muted); }
.reserve-box.mine { background: var(--lime); }
.reserve-box.locked { text-align: left; background: var(--soft); box-shadow: none; }
.reserve-box.locked b { color: var(--ink-2); } .reserve-box.locked .link { min-height: 32px; }
.reserve-box.mine span { color: var(--ink-2); font-weight: 700; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--soft); padding: 4px; border-radius: 14px; }
.seg button { min-height: 44px; border-radius: 11px; font-weight: 800; font-size: 14px; }
.seg button.on { background: var(--ink); color: var(--lime); }
.specs { width: 100%; margin: 4px 0 0; display: grid; gap: 0; }
.spec { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; }
.sheet-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + var(--sab)); background: rgba(246,243,236,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }

/* ── корзина ── */
.page-head { margin-bottom: 16px; }
.block { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; display: block; width: 100%; text-align: left; }
.block h3 { margin-bottom: 12px; }
.cart-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 900px) { .cart-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; } .cart-side { position: sticky; top: 20px; } }
.line, .bag, .scan-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.line + .line, .bag + .bag { border-top: 1px solid var(--line); }
.lines { padding-top: 6px; padding-bottom: 6px; }
.l-emoji { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: var(--soft); flex: none; }
.l-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.l-body b { font-size: 14.5px; line-height: 1.25; }
.l-price { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.l-issue { font-size: 12.5px; font-weight: 800; color: var(--red); }
.l-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.l-right > b { font-variant-numeric: tabular-nums; font-size: 16px; }
.l-right .stepper, .bag .stepper, .scan-item .stepper { height: 44px; border-radius: 14px; }
.l-right .stepper button, .bag .stepper button, .scan-item .stepper button { height: 44px; width: 40px; }
.line.bad { opacity: .75; }
.bags .bag { padding: 8px 0; }
.bags .bag .btn { padding: 0 12px; font-size: 14px; }
/* «Добавить к покупке» листается вправо-влево */
.upsell { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.upsell::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .upsell { scrollbar-width: thin; padding-bottom: 10px; } .upsell::-webkit-scrollbar { display: block; height: 6px; } .upsell::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; } }
.up { flex: 0 0 124px; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; border-radius: 16px; padding: 8px; background: var(--bg); min-height: 48px; transition: transform .12s; }
.up:active { transform: scale(.96); }
.up .emoji { display: grid; place-items: center; height: 54px; border-radius: 12px; font-size: 30px; }
.up-name { font-size: 12px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.up-why { font-size: 10.5px; font-weight: 800; color: var(--muted); line-height: 1.1; }
.up-price { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.up-price i { width: 30px; height: 30px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; }
.up-price svg { width: 16px; height: 16px; stroke-width: 2.8; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.toggle > div { display: flex; flex-direction: column; gap: 2px; }
.toggle span { font-size: 13px; color: var(--muted); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: relative; width: 54px; height: 32px; border-radius: 16px; background: var(--line); flex: none; transition: background .2s; }
.toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked + i { background: var(--ink); }
.toggle input:checked + i::after { transform: translateX(22px); background: var(--lime); }
.toggle input:focus-visible + i { outline: 3px solid var(--ink); outline-offset: 2px; }
.note { font-size: 14px; }
.linkish { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; min-height: 56px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 4px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.method b { font-size: 22px; }
.method.on { box-shadow: inset 0 0 0 3px var(--ink); background: var(--t-sporty); }
.methods + .fineprint { margin-top: 10px; }
.totals > div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.totals .good, .r-line.good { color: var(--ok); }
.totals .grand, .r-line.grand { font-size: 19px; font-weight: 800; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.totals .fineprint { margin-top: 8px; }

/* закреплённая кнопка оплаты */
#paybar:empty { display: none; }
.paybar { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--sab)); width: 100%; max-width: 560px; padding: 10px 14px 12px; background: var(--ink); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(21,23,26,.2); }
@media (min-width: 900px) { .paybar { bottom: calc(var(--nav-h) + 28px); border-radius: 24px; } }
body.has-paybar #view { padding-bottom: calc(var(--nav-h) + var(--sab) + 150px); }
.pay-terms { color: #B6BAC2; font-size: 12px; text-align: center; margin-bottom: 8px; }
.pay-row { display: flex; gap: 10px; }
.pay-back { width: 60px; height: 64px; border-radius: 20px; background: var(--ink-2); color: #fff; display: grid; place-items: center; flex: none; }
.pay-btn { display: block; width: 100%; height: 58px; border-radius: 18px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -.01em; transition: transform .12s, opacity .2s; font-variant-numeric: tabular-nums; }
.pay-btn:active { transform: scale(.98); }
.pay-btn:disabled { opacity: .5; }
.pay-btn.loading { color: transparent; background-image: radial-gradient(circle, var(--ink) 4px, transparent 5px); background-size: 22px 100%; background-position: center; background-repeat: repeat-x; animation: dots .8s infinite linear; }
@keyframes dots { to { background-position-x: calc(50% + 22px); } }

/* ── оплата и заказ ── */
.paycard { margin-top: 24px; background: var(--card); border-radius: 28px; padding: 26px 20px; box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.demo-badge { display: inline-block; background: #FFF3D6; color: #7A5200; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.pay-amount { font: 800 40px/1.1 var(--display); letter-spacing: -.02em; }
.hold { font-weight: 700; }
.outcomes { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.outcomes .btn { width: 100%; white-space: normal; }
.erip-code b { font-family: var(--display); font-size: 18px; letter-spacing: .06em; }
.ohero { text-align: center; padding: 28px 12px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ohero p { color: var(--ink-2); max-width: 420px; }
.bigcheck { width: 92px; height: 92px; border-radius: 34px; background: var(--lime); display: grid; place-items: center; animation: bounce .5s cubic-bezier(.3,1.6,.5,1); box-shadow: 0 14px 30px rgba(169,210,20,.45); }
.bigcheck svg { width: 50px; height: 50px; stroke-width: 3; }
@keyframes bounce { from { transform: scale(.3); opacity: 0; } }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 6px solid var(--line); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.r-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.receipt .fineprint { margin-top: 10px; }
.cta-card { position: relative; display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; margin-top: 12px; padding: 16px 48px 16px 16px; border-radius: var(--r); background: var(--ink); color: #fff; }
.cta-card b { color: var(--lime); font-size: 16px; }
.cta-card span { font-size: 13.5px; color: #C9CCD2; }
.cta-card svg { position: absolute; right: 14px; top: 50%; margin-top: -12px; color: var(--lime); }
.order .link { margin: 10px auto 0; display: flex; justify-content: center; width: 100%; }

/* ── клуб ── */
.club-hero { background: var(--ink); color: #fff; border-radius: 28px; padding: 26px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; position: relative; overflow: hidden; margin-bottom: 12px; }
.club-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 38%, transparent), transparent 70%); }
.club-hero h1 { color: var(--lime); font-size: clamp(22px, 6vw, 32px); position: relative; }
.club-hero p { color: #D5D8DD; position: relative; }
.crown { font-size: 40px; line-height: 1; }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.perk span { font-size: 26px; line-height: 1.1; }
.perk b { font-size: 14.5px; line-height: 1.25; }
.perk p { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.bar { height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; margin-bottom: 8px; }
.bar i { display: block; height: 100%; min-width: 6px; border-radius: 5px; background: var(--lime-d); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; padding: 22px 10px 12px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-size: 12px; }
.plan b { font-size: 14px; }
.plan .tag { position: absolute; top: -9px; left: 10px; }
.plan-price { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 11px; color: var(--muted); }
.plan-bonus { font-weight: 700; margin-top: 4px; }
.plan.on { box-shadow: inset 0 0 0 3px var(--ink); background: var(--t-sporty); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 2px 4px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--ink); margin: 0; }
.club .tier h3 { margin-bottom: 10px; }

/* ── профиль ── */
.phead { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.phead h1 { font-size: 20px; }
.avatar { width: 60px; height: 60px; border-radius: 22px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font: 800 24px var(--display); flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.stats a { background: var(--card); border-radius: 18px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stats b { font-size: 20px; font-weight: 800; }
.stats span { font-size: 12px; color: var(--muted); font-weight: 700; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 16px -16px 12px; padding: 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 13px; font-weight: 800; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tabs button.on { background: var(--ink); color: #fff; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; min-height: 56px; }
.row-link + .row-link { border-top: 1px solid var(--line); }
.row-link > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-link span { font-size: 13px; color: var(--muted); }
.row-link.unread b::before { content: '● '; color: var(--red); font-size: 10px; vertical-align: 2px; }
.rl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; font-variant-numeric: tabular-nums; }
.st { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: var(--soft); color: var(--ink-2); }
.st-paid, .st-converted { background: #DDF5E7; color: #12663A; }
.st-active { background: var(--lime); color: var(--ink); }
.st-pending_payment { background: #FFF3D6; color: #7A5200; }
.st-refunded, .st-problem, .st-expired, .st-cancelled { background: #F3E4E2; color: #8C2A24; }
.plus { color: var(--ok); } .minus { color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { margin-bottom: 0; }
.form label input, .form label textarea { margin-top: 8px; }
.auth { align-items: center; text-align: center; padding: 14px 4px 4px; }
.auth label { width: 100%; text-align: left; }
.code-input { text-align: center; letter-spacing: .5em; font: 800 24px var(--display) !important; }

/* ── сканер ── */
body.v-scan { background: #0D0E10; }
body.v-scan #view { padding-bottom: 0; min-height: 0; }
.scan { position: fixed; inset: 0 0 calc(var(--nav-h) + var(--sab)) 0; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) { .scan { bottom: calc(var(--nav-h) + 30px); } }
.cam { position: relative; flex: 1; min-height: 120px; background: #0D0E10; overflow: hidden; transition: flex .3s; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.frame { position: absolute; left: 50%; top: 50%; width: min(74%, 320px); aspect-ratio: 1.5; transform: translate(-50%, -50%); border-radius: 22px; box-shadow: 0 0 0 100vmax rgba(13,14,16,.45); }
.frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; transition: border-color .2s; }
.frame i:nth-child(1) { left: -2px; top: -2px; border-right: 0; border-bottom: 0; border-radius: 22px 0 0 0; }
.frame i:nth-child(2) { right: -2px; top: -2px; border-left: 0; border-bottom: 0; border-radius: 0 22px 0 0; }
.frame i:nth-child(3) { left: -2px; bottom: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 22px; }
.frame i:nth-child(4) { right: -2px; bottom: -2px; border-left: 0; border-top: 0; border-radius: 0 0 22px 0; }
.frame.ok { animation: fok .6s; } .frame.ok i { border-color: var(--lime); }
.frame.bad { animation: fbad .4s; } .frame.bad i { border-color: #FF6B60; }
@keyframes fok { 30% { background: rgba(200,240,49,.35); transform: translate(-50%, -50%) scale(1.04); } }
@keyframes fbad { 25% { transform: translate(calc(-50% - 8px), -50%); } 75% { transform: translate(calc(-50% + 8px), -50%); } }
.scan-top { position: absolute; top: calc(14px + var(--sat)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 14px; padding: 0 20px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.scan-msg { position: absolute; left: 16px; right: 16px; bottom: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.96); font-size: 14px; font-weight: 700; display: none; }
.scan-msg.show { display: block; animation: fade .2s; }
.scan-msg.err { background: #FFE3E0; color: #8C2A24; }
.scan-msg.warn { background: #FFF3D6; color: #6B4700; }
.scan-panel { background: var(--bg); border-radius: 26px 26px 0 0; margin-top: -22px; position: relative; padding: 14px 16px 34px; display: flex; flex-direction: column; gap: 10px; }
.scan-item { background: var(--card); border-radius: 18px; padding: 8px 8px 8px 10px; box-shadow: var(--shadow); animation: pop2 .25s; }
@keyframes pop2 { from { transform: scale(.94); opacity: 0; } }
.manual .row input { flex: 1; min-width: 0; }
.manual label { margin-bottom: 6px; }
.scan.manual-primary .cam { flex: 0 0 150px; }
.scan.manual-primary .manual input { border-color: var(--ink); min-height: 60px; font-size: 20px; }
.scan.manual-primary .manual .btn { min-height: 60px; background: var(--lime); color: var(--ink); }

/* ── всплывающие сообщения, конфетти ── */
#toasts { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--sab) + 104px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
body.has-paybar #toasts { bottom: calc(var(--nav-h) + var(--sab) + 124px); }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 14.5px; max-width: 420px; text-align: center; box-shadow: 0 10px 26px rgba(21,23,26,.3); animation: tin .25s cubic-bezier(.3,1.4,.5,1); transition: opacity .3s, transform .3s; }
.toast.err { background: #8C2A24; }
.toast.hide { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(14px) scale(.95); } }
#confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ── главная: вкусный первый экран ── */
.hero2 { display: grid; gap: 18px; padding: 10px 0 18px; }
@media (min-width: 820px) { .hero2 { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 36px; padding: 26px 0 30px; } }
.hero2 h1 { font-size: clamp(26px, 7.3vw, 48px); }
.hero2 .lead { margin-top: 12px; color: var(--ink-2); max-width: 520px; font-size: 16.5px; }
.hero-art { position: relative; background: var(--hero, var(--ink)); border-radius: 30px; padding: 22px 18px 54px; overflow: hidden; }
.hero-art::before { content: ''; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lime) 38%, transparent), transparent 70%); }
.wordmark { font: 800 12.5px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px; }
.wordmark::before { content: ''; width: 18px; height: 6px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 0 1px var(--lime-d); }
.rack { display: grid; gap: 12px; position: relative; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 18px; padding: 10px 6px 8px; box-shadow: inset 0 -7px 0 rgba(21,23,26,.14); }
.board.r1 { background: var(--t-sporty); } .board.r2 { background: var(--t-svae); } .board.r3 { background: var(--t-shtodnya); }
.board span { font-size: clamp(30px, 9vw, 44px); line-height: 1.15; text-align: center; filter: drop-shadow(0 5px 6px rgba(21,23,26,.2)); animation: bob 3.2s ease-in-out infinite; }
.board span:nth-child(2) { animation-delay: .4s; } .board span:nth-child(3) { animation-delay: .8s; } .board span:nth-child(4) { animation-delay: 1.2s; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.art-pill { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 13.5px; padding: 8px 16px; border-radius: 99px; }
.home .steps { margin: 6px 0 16px; }
.hint-scan { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 8px 16px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.sec-row .sec { margin: 0; }
.seg.mini { display: inline-grid; padding: 3px; border-radius: 13px; flex: none; }
.seg.mini button { min-height: 40px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.near-btn { margin-bottom: 12px; }
.map { height: 320px; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); background: var(--soft); z-index: 0; position: relative; }
.map-fail { padding: 20px; }
.mpin { display: grid; place-items: center; width: 70px; height: 30px; border-radius: 10px; font: 800 11px var(--display); background: var(--ink); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.3); position: relative; }
.mpin::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.mpin.f-sporty { color: var(--lime); }
.mpin.f-svae { background: var(--red); } .mpin.f-svae::after { border-top-color: var(--red); }
.mpin.f-shtodnya { background: var(--teal); } .mpin.f-shtodnya::after { border-top-color: var(--teal); }
.leaflet-popup-content { font: 500 14px/1.4 'Manrope', system-ui, sans-serif; }
.dist { font-style: normal; font-weight: 800; color: var(--ink); }
.dist.here { background: var(--lime); padding: 1px 7px; border-radius: 6px; }
.teaser { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 18px 16px; border-radius: var(--r); background: var(--ink); color: #fff; }
.teaser > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.teaser b { color: var(--lime); font-size: 17px; }
.teaser span { font-size: 13.5px; color: #C9CCD2; }
.teaser svg { color: var(--lime); }
.brand-cards { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 760px) { .brand-cards { grid-template-columns: repeat(3, 1fr); } }
.bcard { border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bcard.b-sporty { background: var(--t-sporty); } .bcard.b-svae { background: var(--t-svae); } .bcard.b-shtodnya { background: var(--t-shtodnya); }
.bcard p { font-size: 14px; color: var(--ink-2); }
.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 26px; font-size: 13px; }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; display: inline-flex; align-items: center; }
.coach { position: fixed; z-index: 29; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--sab) + 40px); background: var(--lime); color: var(--ink); font-weight: 800; font-size: 13.5px; padding: 11px 16px; border-radius: 14px; box-shadow: 0 10px 24px rgba(21,23,26,.25); white-space: nowrap; animation: pop .3s ease; }
.coach::after { content: ''; position: absolute; bottom: -7px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--lime); border-bottom: 0; }

/* ── гео-акция, «нет денег сейчас», способы оплаты ── */
.geo { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin-bottom: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 2px var(--lime-d); font-size: 13.5px; line-height: 1.35; min-height: 52px; }
.geo span { flex: 1; }
.geo.ok { background: var(--lime); box-shadow: none; }
.later-link { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.35; min-height: 52px; }
.later-link span { flex: 1; color: #D5D8DD; } .later-link b { color: var(--lime); } .later-link svg { color: var(--lime); }
.mlist { display: grid; gap: 8px; }
.mrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 60px; padding: 8px 12px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--line); }
.mrow > b { font-size: 22px; width: 30px; text-align: center; flex: none; }
.mrow span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mrow strong { font-size: 14.5px; } .mrow small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.mrow > i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); flex: none; }
.mrow.on { box-shadow: inset 0 0 0 3px var(--ink); background: var(--t-sporty); }
.mrow.on > i { box-shadow: inset 0 0 0 7px var(--ink); background: var(--lime); }
.explain { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 13.5px; line-height: 1.4; width: 100%; text-align: left; }
.explain.linkish { min-height: 52px; font-weight: 500; }
.mlist ~ .check { margin: 10px 2px 0; }
.pay-terms a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.pay-btn.long { font-size: 16.5px; }
.payqr { width: 220px; max-width: 70%; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.payqr svg { width: 100%; height: auto; display: block; stroke: none; }
.bigcheck { font-size: 44px; }
.credit-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.credit-nums div { background: var(--bg); border-radius: 14px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.credit-nums b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; } .credit-nums span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.credit .r-line { align-items: center; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 12px 4px 4px; }
.intro-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.intro-list li { background: var(--card); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.intro-list span { font-size: 13.5px; color: var(--muted); }
.scan-top small { display: block; font-weight: 600; font-size: 12px; opacity: .85; margin-top: 3px; }
.st-debt { background: #FFF3D6; color: #7A5200; }

/* ── документы ── */
.doc { background: var(--card); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow); margin-top: 8px; }
.doc h1 { font-size: 21px; margin-bottom: 12px; } .doc h2 { font-size: 17px; margin: 22px 0 8px; } .doc h3 { font-size: 15px; margin: 16px 0 6px; }
.doc p { margin: 8px 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.doc ul { margin: 8px 0; padding-left: 20px; } .doc li { margin: 4px 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.doc-note { background: #FFF3D6; color: #6B4700 !important; border-radius: 12px; padding: 10px 12px; font-size: 13.5px !important; }

/* ── верификация, прогрессия лимитов, повтор оплаты ── */
.vsteps { display: flex; gap: 6px; width: 96px; }
.vsteps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .vsteps i.on { background: var(--ink); }
.phone-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.phone-row > span { flex: none; height: 52px; padding: 0 14px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 16px; }
.phone-row input { margin-top: 0 !important; letter-spacing: .03em; }
.selfie { position: relative; display: grid; place-items: center; width: 100%; min-height: 168px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; overflow: hidden; margin: 0 !important; }
.selfie-ph { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; text-align: center; }
.selfie-ph b { font-size: 18px; color: var(--ink); background: var(--lime); padding: 14px 22px; border-radius: 16px; }
.selfie-ph small { font-size: 12.5px; }
.selfie-img { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; }
.selfie-img img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 4px var(--lime); }
.selfie-img small { font-size: 12px; }
.face-msg { min-height: 20px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.face-msg.ok { color: var(--ok); } .face-msg.err { color: var(--red); } .face-msg.warn { color: #7A5200; }
.auth .check { text-align: left; margin: 0 2px; } .auth .check a { text-decoration: underline; text-underline-offset: 3px; }
.note-box { background: #FFF3D6; color: #6B4700; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.credit .btn.wide { margin: 4px 0 10px; }
.seg.retry-m { width: 100%; margin-bottom: 4px; } .seg.retry-m button { font-size: 13px; }
.st-cancelled { background: #F3E4E2; color: #8C2A24; }
.staff-entry { align-self: center; margin-top: 6px; padding-top: 14px; width: 100%; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13.5px; text-decoration: none; min-height: 44px; }
.award { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.award-gifts { display: flex; gap: 10px; width: 100%; justify-content: center; margin: 6px 0 4px; }
.award-gifts div { flex: 1; max-width: 180px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.award-gifts b { font: 800 26px/1.1 var(--display); color: var(--lime); }
.award-gifts span { font-size: 13px; opacity: .8; }
.award-card { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 16px; border-radius: var(--r); background: var(--ink); color: #fff; }
.award-card b { color: var(--lime); font-size: 17px; }
.award-card span { font-size: 13.5px; opacity: .85; }
.picks { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.picks .pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0; background: var(--card); border-radius: 14px; cursor: pointer; min-height: 52px; color: var(--ink); font-size: 14px; }
.pick input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.pick-e { font-size: 22px; flex: none; }
.pick-n { flex: 1; font-weight: 700; font-size: 14px; line-height: 1.25; }
.pick b { font-variant-numeric: tabular-nums; }
.fav-dot { color: var(--red); font-style: normal; }
.form .quiet, .quiet { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.quiet input { width: 14px; height: 14px; accent-color: var(--muted); }
.intro { display: flex; flex-direction: column; gap: 12px; }
.intro h2 { text-align: center; margin: 0; }
.intro-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.intro-card { scroll-snap-align: start; background: var(--card); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.intro-card .empty-emoji { font-size: 34px; margin: 0; }
.intro-card span { font-size: 13px; color: var(--muted); }
.warn-line { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--red); }

/* ── серии оформления: Core → Light → Select → Premium ──
   Core — базовое оформление выше (массовая серия). Остальные повторяют материалы стеллажей: берёза, ясень, дуб с «шампанью».
   Акцентный цвет (--lime) компания выбирает в панели из палитры своей серии. */
html, body { transition: background-color .3s; }
html[data-series="light"] { --bg: #F7F0E2; --card: #FFFDF8; --soft: #EFE4CF; --line: #E6D8BC; --ink: #11281F; --ink-2: #2B3A33; --muted: #6F6A5E; --hero: #163A2E; }
html[data-series="select"] { --bg: #ECE9E3; --card: #FFFFFF; --soft: #E2DDD3; --line: #D7CFC1; --ink: #0F2A22; --ink-2: #26372F; --muted: #686B66; --hero: linear-gradient(150deg, #17402F, #0E2A20); --r: 20px; }
html[data-series="premium"] { --bg: #F3EBDC; --card: #FFFCF5; --soft: #EADFC8; --line: #DED0B2; --ink: #0C221B; --ink-2: #263A31; --muted: #7A705F; --hero: linear-gradient(160deg, #1B4436, #0A1D17); --r: 18px; --shadow: 0 1px 2px rgba(12,34,27,.05), 0 10px 30px rgba(120,96,50,.10); }
html[data-series="premium"] h1, html[data-series="premium"] .club-hero h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; letter-spacing: 0; line-height: 1.05; }
html[data-series="premium"] .hero2 h1 { font-size: clamp(34px, 9vw, 60px); }
html[data-series="premium"] .wordmark { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 15px; letter-spacing: .22em; }
html[data-series="premium"] .wordmark::before { height: 2px; width: 26px; box-shadow: none; }
html[data-series="premium"] .btn.lime, html[data-series="premium"] .art-pill { box-shadow: inset 0 0 0 1px var(--lime-d); }
html[data-series="premium"] .board { box-shadow: inset 0 -5px 0 rgba(120,90,40,.18); }
html[data-series="select"] .wordmark::before, html[data-series="light"] .wordmark::before { width: 22px; }

/* ── аккаунт GYBRY в кабинете покупателя ── */
.gybry-card { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r-s); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.gybry-card::before { content: 'G'; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--lime); font: 800 15px/1 var(--display); }
.gybry-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gybry-card b { font-size: 14.5px; }
.gybry-card span { font-size: 13px; color: var(--muted); }

/* ── язык ── */
.topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topline .wordmark { margin-bottom: 0; }
.head-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-btn { min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 10px; font: 800 12px/1 var(--display); letter-spacing: .04em; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); }
.home .topline { margin-bottom: 10px; }
.lang-list { display: grid; gap: 8px; margin-top: 14px; }
.lang-opt { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px; border-radius: var(--r-s); background: var(--card); box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; font-size: 16px; text-align: left; }
.lang-opt.on { box-shadow: inset 0 0 0 2px var(--ink); }
.lang-hint { position: fixed; z-index: 40; top: calc(10px + var(--sat)); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; padding: 4px; border-radius: 14px; background: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.lang-hint button { min-height: 40px; padding: 0 14px; border-radius: 10px; color: #fff; font-weight: 800; }
.lang-hint button:first-child { background: var(--lime); color: var(--ink); }
.lang-hint .x { padding: 0 12px; font-size: 20px; }

.local-product-header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding-top: var(--sat);
}
.local-product-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 16px;
}
.local-product-back,
.local-product-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  white-space: nowrap;
  font-size: .875rem;
  font-weight: 800;
}
.local-product-back {
  justify-content: center;
  min-width: 44px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.local-product-back:hover { background: var(--soft); }
.local-product-back svg { width: 18px; height: 18px; }
.local-product-brand > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #303b25;
  color: #e0f3a7;
}
.local-product-brand b { color: var(--muted); font-size: .75rem; }
body:has(.local-product-header:not([hidden])) #view { min-height: calc(100dvh - 57px - var(--sat)); }
@media (max-width: 370px) {
  .home .sec-row { flex-wrap: wrap; }
  .local-product-back { white-space: normal; }
}
