[hidden] { display: none !important; }
:root {
  --accent: #FF5917;
  --accent-ink: #E64A0A;
  --accent-soft: #FFE6D6;
  --blue: #1747F4;
  --blue-ink: #0F34C4;
  --ink: #14110F;
  --muted: #6B6159;
  --line: #EEDFCF;
  --bg: #FFF7EC;
  --card: #FFFDF9;
  --ok: #1F9D55;
  --warn: #B45309;
  --radius: 20px;
  --head: 'Rubik', 'Arial Black', Arial, sans-serif;
  --display: 'Russo One', 'Rubik', 'Arial Black', sans-serif;
  --body: 'Manrope', Arial, sans-serif;
}
@font-face { font-family: 'Russo One'; src: url(../fonts/RussoOne.ttf) format('truetype'); font-display: swap; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button { font-family: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251,251,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.brand img { height: 28px; width: auto; }
nav { display: flex; gap: 4px; }
nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
nav a.active { background: var(--accent-soft); color: var(--accent); }
.cart-link b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; margin-left: 4px; padding: 0 6px; }

/* общие */
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 16px; border-radius: 999px; padding: 14px 24px; background: var(--accent); color: #fff; transition: background .15s, transform .05s; }
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.ghost:hover { background: #E2E3F5; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.pill.soon { background: #F1F1F1; color: #6B6B6B; }

/* главная */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 48px 0 32px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 18px 0 26px; }
.hero-art { background: var(--accent); border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-art .tile { background: rgba(255,255,255,.1); border-radius: 18px; padding: 10px; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .tile svg { width: 100%; height: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 56px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step b { font-family: var(--head); color: var(--accent); font-size: 14px; }
.step h3 { margin: 6px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 30px rgba(20,21,43,.08); transform: translateY(-2px); }
.card .thumb { background: var(--accent-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 22px; position: relative; }
.card .thumb svg { width: 100%; height: 100%; }
.card .thumb .pill { position: absolute; left: 14px; top: 14px; background: #fff; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .body p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card .price { font-family: var(--head); font-size: 18px; font-weight: 700; }
.card .price small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 600; }
.card.soon .thumb { background: #F3F3F1; }
.soon-art { font-family: var(--head); font-size: 22px; color: #9A9AA8; text-align: center; }

/* конструктор */
.crumbs { padding: 20px 0 8px; font-size: 14px; }
.crumbs a { text-decoration: none; }
.builder { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; padding-bottom: 64px; }
.stage { position: sticky; top: 84px; }
.viewport { position: relative; background: radial-gradient(120% 90% at 50% 20%, #FFFFFF 0%, #EDEEF6 100%); border: 1px solid var(--line); border-radius: 24px; aspect-ratio: 1 / 1; overflow: hidden; }
.viewport canvas { width: 100% !important; height: 100% !important; display: block; touch-action: none; }
.viewport .hint { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.8); padding: 4px 10px; border-radius: 999px; }
.viewport .busy { position: absolute; right: 14px; top: 12px; font-size: 13px; font-weight: 700; color: var(--accent); opacity: 0; transition: opacity .2s; }
.viewport .busy.on { opacity: 1; }
.view-tabs { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 4px; background: rgba(255,255,255,.9); padding: 4px; border-radius: 999px; }
.view-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); }
.view-tabs button.on { background: var(--accent); color: #fff; }
.facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; font-size: 14px; }
.fact b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.panel h1 { font-size: clamp(26px, 3vw, 36px); }
.panel .lead { color: var(--muted); margin: 10px 0 18px; }
.opt { padding: 14px 0; border-top: 1px solid var(--line); }
.opt > label, .opt > .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.opt input[type=text], .opt textarea, .opt select { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none; }
.opt textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
.opt input:focus, .opt textarea:focus, .opt select:focus { border-color: var(--accent); }
.opt .note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.opt .note.warn { color: var(--warn); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 40px; height: 40px; border-radius: 999px; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; position: relative; }
.sw.on { box-shadow: 0 0 0 2.5px var(--accent); }
.sw span { position: absolute; inset: auto 0 -22px; font-size: 11px; color: var(--muted); white-space: nowrap; display: none; }
.belts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.belt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 4px 5px; cursor: pointer; font-size: 11px; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.belt i { display: block; width: 100%; height: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,.12); }
.belt.on { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink); }
.seg button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.buy .total { font-family: var(--head); font-size: 26px; font-weight: 700; margin-right: auto; }
.buy .total small { display: block; font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { border: 0; background: transparent; width: 38px; height: 42px; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.workshop-strip { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); background: #F4F4F0; border-radius: 14px; padding: 10px 14px; }
.workshop-strip select { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.upsell { margin-top: 16px; display: flex; gap: 14px; align-items: center; background: var(--accent-soft); border-radius: 16px; padding: 14px; }
.upsell .mini { width: 72px; height: 72px; flex: none; background: #fff; border-radius: 12px; padding: 6px; }
.upsell .mini svg { width: 100%; height: 100%; }
.upsell p { margin: 0; font-size: 14px; flex: 1; }

/* корзина */
.page-title { padding: 32px 0 20px; }
.cart { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; padding-bottom: 64px; }
.line-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.line-item .mini { background: var(--accent-soft); border-radius: 12px; aspect-ratio: 1; padding: 8px; }
.line-item .mini svg { width: 100%; height: 100%; }
.line-item h3 { font-size: 16px; }
.line-item .spec { font-size: 13px; color: var(--muted); margin-top: 4px; }
.line-item .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: end; }
.line-item .sum { font-weight: 800; }
.link-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.summary { position: sticky; top: 84px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary .row.total { font-family: var(--head); font-size: 22px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.summary .field { margin-top: 12px; }
.summary .field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.summary .field input { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; }
.ozon { display: flex; gap: 12px; align-items: center; background: #F4F6FF; border: 1px solid #DCE2FF; border-radius: 14px; padding: 12px; margin-top: 14px; font-size: 14px; }
.ozon b { color: #005BFF; font-family: var(--head); font-size: 14px; }
.empty { text-align: center; padding: 60px 0 80px; }
.empty p { color: var(--muted); }

/* мастерская */
.ws-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding: 32px 0 20px; }
.ws-settings { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-weight: 600; }
.ws-settings select { font: inherit; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.order { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin-bottom: 14px; }
.order-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.order-top h3 { font-size: 16px; margin-right: auto; }
.status { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #FFF4E5; color: var(--warn); }
.status.done { background: #E8F7EE; color: var(--ok); }
.order-items { display: grid; gap: 8px; }
.order-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #FAFAF8; border-radius: 14px; padding: 8px 10px; }
.order-item .mini { background: var(--accent-soft); border-radius: 10px; aspect-ratio: 1; padding: 4px; }
.order-item .mini svg { width: 100%; height: 100%; }
.order-item .spec { font-size: 13px; color: var(--muted); }
.fil { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 6px; }
.fil i { width: 12px; height: 12px; border-radius: 99px; border: 1px solid rgba(0,0,0,.15); display: inline-block; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 50; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.foot { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero, .builder, .cart { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; gap: 24px; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .stage, .summary { position: static; }
  .belts { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .steps, .grid { grid-template-columns: 1fr; }
  .brand span { display: none; }
  nav a { padding: 8px 8px; font-size: 14px; }
  .line-item { grid-template-columns: 64px 1fr; }
  .line-item .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .panel { padding: 18px; }
  .hero-art { padding: 16px; }
}

/* опт */
.optbar { margin-top: 16px; background: var(--accent-soft); border-radius: 16px; padding: 14px 16px 16px; }
.optbar-text { font-size: 14px; line-height: 1.45; }
.optbar-track { position: relative; height: 10px; background: #fff; border-radius: 99px; margin: 14px 0 26px; }
.optbar-track > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 99px; transition: width .3s; }
.optbar-track .mark { position: absolute; top: -4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.optbar-track .mark::before { content: ''; width: 18px; height: 18px; border-radius: 99px; background: #fff; border: 2px solid #C7C9E8; box-sizing: border-box; }
.optbar-track .mark.on::before { background: var(--accent); border-color: var(--accent); }
.optbar-track .mark em { font-style: normal; font-weight: 800; font-size: 12px; margin-top: 2px; }
.optbar-track .mark small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.optbar-track .mark:last-child { transform: translateX(-90%); }
.opt-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; margin-bottom: 64px; }
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tier { background: #F4F4F0; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; }
.tier.on { background: var(--accent-soft); }
.tier b { font-family: var(--head); font-size: 15px; color: var(--accent); }
.tier span { font-family: var(--head); font-size: 22px; font-weight: 700; }
.tier small { color: var(--muted); font-size: 13px; }
.card .price small { display: block; margin-top: 2px; }
/* командный набор */
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.team-head .lbl { margin: 0; }
.seg.mini button { padding: 6px 12px; font-size: 13px; }
.team-rows { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; margin-bottom: 10px; }
.trow { display: grid; grid-template-columns: 22px 1fr 18px 110px 34px; gap: 8px; align-items: center; }
.trow .num { font-size: 12px; color: var(--muted); text-align: right; font-weight: 700; }
.trow input, .trow select { font: inherit; font-size: 15px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.trow input:focus, .trow select:focus { border-color: var(--accent); outline: none; }
.trow .chip { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.18); }
.trow .tdel { border: 0; background: #F4F4F0; border-radius: 10px; height: 38px; font-size: 20px; cursor: pointer; color: var(--muted); }
.trow .tdel:hover { background: #FBE9E9; color: #B42318; }
.team-text { width: 100%; min-height: 220px; font: inherit; font-size: 15px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
/* мастерская: цены */
.order-item { grid-template-columns: 56px 1fr auto auto; }
.price-col { text-align: right; display: flex; flex-direction: column; }
.price-col small { color: var(--muted); font-size: 12px; }
.order-sum { display: flex; gap: 16px; justify-content: flex-end; flex-wrap: wrap; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.order-sum b { font-family: var(--head); font-size: 17px; }
@media (max-width: 900px) { .opt-block { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 560px) { .order-item { grid-template-columns: 48px 1fr auto; } .order-item .btn { grid-column: 3; } .price-col { grid-column: 2; text-align: left; } .trow { grid-template-columns: 20px 1fr 16px 92px 32px; gap: 6px; } }

/* комбо */
.combo-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--accent); color: #fff; border-radius: 20px; padding: 16px 20px; margin: 0 0 24px; }
.combo-banner > b { font-family: var(--head); font-size: 18px; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; }
.combo-banner span { flex: 1; min-width: 220px; }
.combo-banner .btn { background: #fff; color: var(--accent); }
.erow input { font: inherit; font-size: 15px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; width: 100%; }
.ebelt { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: center; }
.ebelt select { font: inherit; font-size: 15px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.ebelt .chip { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.18); }
.combo-up { margin-top: 8px; border: 0; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; cursor: pointer; text-align: left; }
/* разные надписи */
.each-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
#eachRows { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.erow { display: grid; grid-template-columns: 22px repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; align-items: center; }
.erow .num { font-size: 12px; color: var(--muted); text-align: right; font-weight: 700; }
/* фото */
.photo-pick { display: flex; gap: 14px; align-items: center; }
.photo-mini { width: 88px; height: 66px; border-radius: 10px; overflow: hidden; background: #eee; flex: none; }
.photo-mini img { width: 100%; height: 100%; object-fit: cover; }
.opt input[type=range] { width: 100%; accent-color: var(--accent); }
.lit { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 45%, #3a2d1f 0%, #14110d 100%); z-index: 1; }
.lit img { max-width: 82%; max-height: 72%; box-shadow: 0 0 60px rgba(255,200,120,.35); border-radius: 4px; }
.view-tabs { z-index: 2; }
.viewport .hint { z-index: 2; }
/* галерея примеров */
.gallery { margin: 4px 0 18px; }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.gallery-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gcard { border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 6px 6px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: var(--ink); }
.gcard:hover { border-color: var(--accent); }
.gcard .gimg { background: var(--accent-soft); border-radius: 9px; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 8px; }
.gcard .gimg svg { width: 100%; height: 100%; }
.gcard b { font-size: 14px; line-height: 1.2; margin-top: 4px; }
.gcard small { font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .gallery-row { grid-template-columns: repeat(3, 1fr); } }

/* ===== ЛИГА: оранжево-белый стиль ===== */
.top { background: rgba(255,248,241,.92); }
.brand img { height: 22px; }
.brand span { font-weight: 700; }
nav a.active { background: var(--accent); color: #fff; }
.cart-link b { background: var(--ink); }
h1, h2, h3 { letter-spacing: -0.02em; }
h1 { font-weight: 900; }
h2 { font-weight: 800; }
.btn { border-radius: 16px; font-weight: 800; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--accent-soft); }
.pill { background: var(--accent-soft); color: var(--accent-ink); }
.card { border-radius: 24px; }
.card .thumb { background: linear-gradient(160deg, #FFEDE2, #FFE0CC); }
.sw { width: 44px; height: 44px; }
.sw.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.foot { background: var(--ink); color: #CFC6BE; border: 0; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { height: 16px; filter: invert(1); }
.optbar { background: var(--accent-soft); }
.combo-banner { background: var(--ink); }
.combo-banner .btn { background: var(--accent); color: #fff; }
.opt-block { background: #fff; }
.tier.on { background: var(--accent-soft); }
.tier b { color: var(--accent-ink); }
.step b { color: var(--accent); }
/* нумерация шагов в конструкторе: 01, 02, 03… */
#opts { counter-reset: opt; }
#opts > .opt > .lbl, #opts > .opt > label:not(.toggle):first-child, #opts > .opt > .team-head > .lbl { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 16px; }
#opts > .opt > .lbl::before, #opts > .opt > label:not(.toggle):first-child::before, #opts > .opt > .team-head > .lbl::before { counter-increment: opt; content: counter(opt, decimal-leading-zero); flex: none; width: 30px; height: 30px; border-radius: 99px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; }

/* главная: первый экран как на макете */
.hero2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; padding: 26px 0 18px; align-items: stretch; }
.hero-left { position: relative; }
.hero-title { font-size: clamp(40px, 6.4vw, 86px); line-height: .92; margin: 0 0 14px; position: relative; z-index: 2; }
.hero-title span { display: block; }
.hero-title .o { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 420px; margin: 0 0 18px; position: relative; z-index: 2; }
.hero-stage { position: relative; background: radial-gradient(120% 90% at 70% 30%, #FF8A3D 0%, #FF5B14 55%, #F04A05 100%); border-radius: 36px; min-height: 430px; overflow: hidden; }
.hero-stage::before { content: ''; position: absolute; left: -12%; top: -38%; width: 70%; height: 70%; background: var(--bg); border-radius: 50%; }
.hero-big { position: absolute; inset: 9% 6% 22% 26%; display: grid; place-items: center; filter: drop-shadow(0 24px 30px rgba(120,30,0,.35)); transform: rotate(-8deg); transition: transform .4s; }
.hero-big svg { width: 100%; height: 100%; }
.hero-stage:hover .hero-big { transform: rotate(-4deg) scale(1.03); }
.badge360 { position: absolute; right: 22px; top: 18px; color: #fff; font-family: var(--head); font-weight: 800; font-size: 20px; border: 2px solid rgba(255,255,255,.7); border-radius: 99px; padding: 6px 14px; }
.dice { position: absolute; left: 22px; bottom: 112px; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border: 0; border-radius: 99px; padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 20px rgba(120,30,0,.18); }
.dice svg { width: 22px; height: 22px; }
.hero-minis { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 10px; }
.hero-minis button { width: 86px; height: 86px; border-radius: 18px; border: 0; background: rgba(255,255,255,.2); padding: 8px; cursor: pointer; }
.hero-minis button:hover { background: rgba(255,255,255,.35); }
.hero-minis svg { width: 100%; height: 100%; }
.quick { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.qstep { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 20px; }
.qstep b { width: 34px; height: 34px; border-radius: 99px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 14px; }
.qforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qforms button { border: 2px solid var(--line); background: #FFF8F1; border-radius: 16px; padding: 8px 6px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-weight: 700; font-size: 13px; color: var(--ink); }
.qforms button .qi { width: 100%; aspect-ratio: 1.2; display: grid; place-items: center; }
.qforms button svg { width: 100%; height: 100%; }
.qforms button.on { border-color: var(--accent); background: var(--accent-soft); }
.quick input { width: 100%; font: inherit; font-family: var(--head); font-weight: 700; font-size: 22px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; outline: none; }
.quick input:focus { border-color: var(--accent); }
.quick .swatches { gap: 10px; }
.qprice { font-family: var(--head); font-weight: 900; font-size: 44px; line-height: 1; margin-top: 4px; }
.qprice small { display: block; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.quick .btn { padding: 16px; font-size: 18px; }
.qmore { text-align: center; font-weight: 700; font-size: 14px; text-decoration: none; }
.steps3 { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; margin: 10px 0 40px; }
.steps3 .s { display: flex; gap: 14px; align-items: center; }
.steps3 .s i { flex: none; width: 46px; height: 46px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-style: normal; font-family: var(--head); font-weight: 900; font-size: 20px; display: grid; place-items: center; }
.steps3 .s b { display: block; font-family: var(--head); font-size: 18px; }
.steps3 .s span { font-size: 14px; color: var(--muted); }
.steps3 .arr { color: var(--muted); font-size: 22px; }
.rand-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--accent-soft); color: var(--accent-ink); font: inherit; font-weight: 800; font-size: 14px; padding: 8px 14px; border-radius: 99px; cursor: pointer; margin-left: 8px; }
.rand-btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; }
  .hero-stage { min-height: 360px; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 .arr { display: none; }
}
@media (max-width: 560px) { .hero-minis button { width: 64px; height: 64px; } .dice { bottom: 90px; } .hero-big { inset: 12% 4% 26% 14%; } }
nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .brand img { height: 18px; }
  nav { gap: 2px; }
  nav a { padding: 7px 9px; font-size: 13px; }
  .cart-link b { min-width: 18px; height: 18px; font-size: 11px; }
}

.censor { margin-top: 14px; background: #FFF0EE; color: #B42318; border: 1.5px solid #F4C3BD; border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 14px; }
.quick input.bad { border-color: #E5484D; background: #FFF6F5; }

/* ===== геймификация ===== */
.belt-chip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px 5px 6px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); margin-right: 4px; }
.belt-chip i { width: 26px; height: 12px; border-radius: 4px; border: 1px solid rgba(0,0,0,.2); }
.belt-chip b { color: var(--accent-ink); font-weight: 800; }
.belt-chip:hover { border-color: var(--accent); }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px 10px 10px; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(22,18,15,.3); }
.fab-wheel { width: 34px; height: 34px; border-radius: 99px; background: conic-gradient(#FF5B14 0 45deg, #fff 45deg 90deg, #FF5B14 90deg 135deg, #fff 135deg 180deg, #FF5B14 180deg 225deg, #fff 225deg 270deg, #FF5B14 270deg 315deg, #fff 315deg 360deg); border: 2px solid #fff; }
.fab b { background: var(--accent); min-width: 22px; height: 22px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.fab.pulse .fab-wheel { animation: wspin 3s ease-in-out infinite; }
.fab.pulse { animation: fabpulse 2s ease-in-out infinite; }
@keyframes wspin { 0%, 70% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes fabpulse { 0%, 100% { box-shadow: 0 10px 30px rgba(22,18,15,.3), 0 0 0 0 rgba(255,91,20,.5); } 50% { box-shadow: 0 10px 30px rgba(22,18,15,.3), 0 0 0 10px rgba(255,91,20,0); } }
.xp-pop { position: fixed; top: 70px; right: 24px; z-index: 60; background: var(--accent); color: #fff; font-family: var(--head); font-weight: 800; padding: 8px 14px; border-radius: 99px; opacity: 0; pointer-events: none; }
.xp-pop.on { animation: xppop 1.6s ease-out; }
@keyframes xppop { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 15% { opacity: 1; transform: translateY(0) scale(1.05); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(22,18,15,.55); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; background: #fff; border-radius: 28px; padding: 26px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-x { position: absolute; right: 12px; top: 10px; border: 0; background: #F4EEE8; width: 36px; height: 36px; border-radius: 99px; font-size: 22px; cursor: pointer; }
.wheel-wrap { text-align: center; }
.wheel { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto 14px; }
.wheel-rot { width: 100%; height: 100%; transition: transform 4.6s cubic-bezier(.15,.7,.12,1); }
.wheel-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 20px rgba(255,91,20,.3)); }
.wheel-pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 2; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--ink); }
.wheel-res { min-height: 24px; margin-bottom: 12px; font-size: 15px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.wheel-res .win { background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 10px 12px; font-weight: 600; }
.wheel-wrap > .btn { width: 100%; }
.timer { font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.path-belts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.path-belts span { font-size: 11px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; gap: 4px; align-items: center; opacity: .45; }
.path-belts span.on { opacity: 1; color: var(--ink); }
.path-belts i { width: 100%; height: 10px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); }
.path-bar { height: 10px; background: #F4EEE8; border-radius: 99px; margin-top: 12px; overflow: hidden; }
.path-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.quests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.quests li { display: flex; justify-content: space-between; gap: 10px; background: #FBF7F3; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.quests li b { color: var(--accent-ink); }
.quests li.done { background: #EAF7EF; color: var(--muted); text-decoration: line-through; }
.quests li.done b { color: var(--ok); text-decoration: none; }
.prize-box { display: block; width: 100%; text-align: left; margin-top: 12px; background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.spin-cta { cursor: pointer; }
.prize-row { color: var(--ok); }
@media (max-width: 560px) {
  .belt-chip .bc-name { display: none; }
  .belt-chip { padding: 5px 8px 5px 6px; }
  .fab-txt { display: none; }
  .fab { padding: 8px; }
}

/* персонализация и заметное колесо */
.qname { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qstep small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 600; }
.qerr { color: #B42318; font-weight: 700; font-size: 14px; }
.quick .btn.ghost { padding: 12px; font-size: 16px; }
.hero-minis button.on { background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 2px #fff; }
.catalog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 6px; scroll-margin-top: 80px; }
h3.grp { font-size: 22px; margin: 18px 0 0; }
.card .thumb { position: relative; }
.card-dice { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: #fff; color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.08); transition: transform .2s; }
.card-dice:hover { transform: rotate(-15deg) scale(1.08); }
.card-dice svg { width: 22px; height: 22px; }
.wheel-promo { display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: 28px; padding: 18px 26px; margin: 4px 0 26px; overflow: hidden; }
.wheel-promo .eyebrow { color: #FFB37A; }
.wheel-promo h2 { color: #fff; margin: 4px 0 6px; }
.wheel-promo p { margin: 0; color: #CFC6BE; }
.wp-wheel { width: 170px; height: 170px; animation: wslow 16s linear infinite; }
.wp-wheel svg { width: 100%; height: 100%; }
@keyframes wslow { to { transform: rotate(360deg); } }
.wp-btn { padding: 18px 26px; font-size: 18px; box-shadow: 0 0 0 0 rgba(255,91,20,.6); animation: fabpulse 2s ease-in-out infinite; }
.fab { padding: 12px 20px 12px 12px; font-size: 16px; }
.fab-wheel { width: 42px; height: 42px; }
@media (max-width: 900px) { .wheel-promo { grid-template-columns: 110px 1fr; } .wp-wheel { width: 110px; height: 110px; } .wp-btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fab-txt { display: inline; font-size: 13px; } .fab { padding: 8px 14px 8px 8px; } .fab-wheel { width: 34px; height: 34px; } }
/* живые 3D-карточки */
.card .thumb .c3d { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.card .thumb .c3d:active { cursor: grabbing; }
.hero-big.is3d { transform: none; inset: 4% 4% 20% 20%; filter: drop-shadow(0 24px 30px rgba(120,30,0,.35)); }
.hero-big.is3d .c3d { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.qbelts { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.qbelts .belt { font-size: 10px; padding: 5px 2px 4px; }
.qbelts .belt.on { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
/* мат в тексте: модели не показываем вообще */
.vp-block { display: none; position: absolute; inset: 0; z-index: 3; place-items: center; text-align: center; padding: 30px; font-family: var(--head); font-weight: 800; font-size: 20px; color: #B42318; background: #FFF6F4; }
.viewport.blocked .vp-block { display: grid; }
.viewport.blocked canvas, .viewport.blocked svg, .viewport.blocked .lit { visibility: hidden; }
#app.blocked .hero-big, #app.blocked .card .thumb .c3d, #app.blocked .card .thumb svg, #app.blocked .hero-minis { visibility: hidden; }
#app.blocked .hero-stage::after { content: 'Ошибка в тексте — попробуйте написать другой.'; position: absolute; inset: 30% 10% auto; text-align: center; color: #fff; font-family: var(--head); font-weight: 800; font-size: 22px; }
#app.blocked .card .thumb::after { content: 'Исправьте текст'; position: absolute; inset: 0; display: grid; place-items: center; color: #B42318; font-weight: 800; }

/* ---------- комбо по шагам ---------- */
.combo-top { display: flex; gap: 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; padding: 8px 0 18px; }
.combo-top h1 { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 42px); }
.combo-top p { margin: 0; max-width: 560px; }
.combo-deal { display: flex; gap: 8px; flex-wrap: wrap; }
.combo-deal span { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.combo-deal b { font-family: var(--head); font-size: 20px; color: var(--ink); }
.combo-deal i { font-style: normal; font-family: var(--head); color: var(--accent); font-size: 16px; }
.csteps { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 8px; scrollbar-width: thin; }
.cstep { flex: none; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); background: var(--card); border-radius: 18px; padding: 8px 14px 8px 8px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; transition: border-color .15s, box-shadow .15s; }
.cstep:hover { border-color: #F3C9AE; }
.cstep.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), 0 6px 18px rgba(255,91,20,.12); }
.cstep.bad { border-color: #F4C3BD; }
.cstep.bad .cs-img { visibility: hidden; }
.cs-img { width: 54px; height: 54px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; padding: 4px; flex: none; }
.cs-img svg { width: 100%; height: 100%; }
.cs-img.plus { font-family: var(--head); font-size: 30px; font-weight: 800; color: var(--accent); background: #fff; border: 2px dashed #F3C9AE; }
.cs-txt { display: flex; flex-direction: column; line-height: 1.2; max-width: 150px; }
.cs-txt small { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.cs-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-arr { flex: none; color: #D9C6B6; font-size: 26px; font-weight: 300; }
.cpick-head { margin: 6px 0 16px; }
.cpick-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.cpick-head p { margin: 6px 0 0; }
.cpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cpick-card { border: 1.5px solid var(--line); background: var(--card); border-radius: 20px; padding: 12px 12px 14px; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; text-align: left; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cpick-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,18,15,.08); }
.cp-img { aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--accent-soft); border-radius: 14px; display: grid; place-items: center; padding: 14px; margin-bottom: 6px; }
.cp-img svg { max-height: 100%; }
.cp-img svg { width: 100%; height: 100%; }
.cpick-card b { font-size: 15px; line-height: 1.25; }
.cpick-card small { font-family: var(--head); font-size: 16px; font-weight: 700; color: var(--muted); }
.cstep-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cstep-acts { display: flex; gap: 14px; }
.cnav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.cnav #cNext { flex: 1 1 220px; }
.combo-bar { position: sticky; bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 14px 12px 20px; margin: 18px 0 90px; box-shadow: 0 14px 34px rgba(22,18,15,.25); }
.cb-info { display: flex; flex-direction: column; flex: 1; min-width: 200px; line-height: 1.3; }
.cb-info b { font-family: var(--head); font-size: 18px; }
.cb-info span { font-size: 14px; color: #D9CFC6; }
.cb-info s { color: #9C918A; }
.cb-info em { font-style: normal; font-family: var(--head); font-weight: 700; color: #fff; font-size: 16px; }
.cb-warn { color: #FFB4A8; font-weight: 700; font-size: 14px; }
.combo-bar .link-btn { color: #D9CFC6; }
.combo-bar .btn[disabled] { background: #4A423C; color: #B9AEA6; opacity: 1; }
.combo-cta { margin-top: 16px; display: flex; gap: 14px; align-items: center; background: var(--accent-soft); border-radius: 16px; padding: 14px 16px; }
.combo-cta > div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.combo-cta b { font-family: var(--head); color: var(--accent); font-size: 16px; }
.line-item .mini.has-more { position: relative; }
.line-item .mini.has-more > b { position: absolute; right: -6px; bottom: -6px; background: var(--accent); color: #fff; font-size: 13px; min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; border: 2px solid #fff; }
@media (max-width: 900px) { .cpick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .cpick { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cs-txt { max-width: 110px; }
  .cs-img { width: 44px; height: 44px; }
  .combo-bar { margin-bottom: 80px; padding: 12px; }
  .combo-bar .btn { flex: 1 1 100%; }
  .combo-cta { flex-direction: column; align-items: stretch; }
}


/* ===================== Редизайн «Носи свой уровень» ===================== */
html { overflow-x: clip; }
body { background: var(--bg); }
.btn { border-radius: 14px; min-height: 48px; }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* шапка */
.top { background: rgba(255,247,236,.94); border-bottom: 1px solid var(--line); }
.top-in { height: 64px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; }
.brand img { height: 24px; }
.brand span { font-weight: 600; color: var(--muted); }
.mainnav { justify-content: center; gap: 6px; }
.mainnav a { font-size: 15px; font-weight: 700; padding: 10px 14px; border-radius: 999px; color: var(--ink); }
.mainnav a:hover { background: var(--accent-soft); }
.mainnav a.active { background: var(--ink); color: #fff; }
.top-act { display: flex; align-items: center; gap: 10px; grid-column: 3; justify-self: end; }
.mybelt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px 4px 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s; }
.mybelt:hover { border-color: var(--accent); }
.mb-ico { width: 38px; height: 22px; display: grid; place-items: center; }
.mb-ico svg { width: 100%; height: 100%; }
.mb-ico.nobelt { opacity: .45; }
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.cart-btn:hover, .cart-btn.active { background: var(--accent-soft); }
.cart-btn svg { width: 26px; height: 26px; }
.cart-btn b { position: absolute; right: 2px; top: 2px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
.cart-btn b.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* студия на синем */
.studio { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(340px, .95fr); gap: 18px; align-items: center;
  margin: 0 calc(50% - 50vw); padding: 30px max(16px, calc(50vw - 610px)); min-height: min(660px, calc(100vh - 64px));
  background: radial-gradient(70% 90% at 52% 45%, #3366FF 0%, #1747F4 48%, #1037D2 100%); color: #fff; overflow: hidden; }
.studio::before, .studio::after { content: ''; position: absolute; border: 1.5px solid rgba(255,255,255,.22); border-radius: 50%; pointer-events: none; }
.studio::before { width: 760px; height: 260px; left: 22%; top: 58%; transform: rotate(-14deg); border-color: rgba(255,255,255,.18) transparent transparent transparent; }
.studio::after { width: 420px; height: 160px; left: 24%; top: 8%; transform: rotate(-20deg); border-color: transparent transparent rgba(255,255,255,.16) transparent; }
.studio-left { position: relative; z-index: 2; }
.studio-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 5.3vw, 80px); line-height: .9; letter-spacing: -.01em; margin: 0; color: #fff; }
.studio-dash { display: block; width: 84px; height: 12px; border-radius: 4px; background: var(--accent); margin: 16px 0 18px; transform: skewX(-18deg); }
.studio-sub { font-size: 20px; font-weight: 600; margin: 0 0 22px; opacity: .95; }
.btn-line { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px; border-radius: 999px; border: 2px solid rgba(255,255,255,.9); background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; transition: background .15s, transform .1s; }
.btn-line svg { width: 22px; height: 22px; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-line:active { transform: scale(.97); }
.studio-stage { position: relative; align-self: stretch; min-height: 440px; }
.studio .hero-big { position: absolute; inset: 0; transform: none; filter: drop-shadow(0 34px 34px rgba(4,14,90,.45)); display: grid; place-items: center; }
.studio-stage:hover .hero-big { transform: none; }
.studio .hero-big svg { width: 88%; height: 80%; }
.hero-big canvas.c3d { width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.hero-big canvas.c3d:active { cursor: grabbing; }
.stage-load { font-weight: 700; opacity: .8; }
.stage-note { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 13px; opacity: .85; }
.is-flat .spin-hint { display: none; }
.spin-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 13px; font-weight: 700; opacity: .85; white-space: nowrap; pointer-events: none; }
.studio-panel { position: relative; z-index: 3; background: var(--bg); color: var(--ink); border-radius: 28px; padding: 22px 22px 18px; box-shadow: 0 28px 70px rgba(4,16,100,.38); }
.studio-panel h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 12px; }
.forms3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.forms3 button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 84px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 6px 6px 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.forms3 .fi { width: 100%; height: 50px; display: grid; place-items: center; }
.forms3 .fi svg { width: 100%; height: 100%; }
.forms3 button:hover { border-color: #F6BFA0; }
.forms3 button.on { border-color: var(--accent); background: var(--accent-soft); }
.forms3 button:active, .belts2 button:active, .sw:active { transform: scale(.95); }
.sp-lbl { font-weight: 800; font-size: 15px; margin: 14px 0 6px; }
.sp-lbl span { font-weight: 600; color: var(--muted); font-size: 14px; }
.studio-panel .qname { gap: 8px; }
.studio-panel .qname input { width: 100%; min-height: 48px; font: inherit; font-family: var(--head); font-weight: 700; font-size: 18px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; outline: none; transition: border-color .15s; }
.studio-panel .qname input:focus { border-color: var(--accent); }
.studio-panel .qname input.bad { border-color: #E5484D; background: #FFF6F5; }
.belts2 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.belts2 button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 5px 2px 4px; font: inherit; font-size: 11px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.belts2 .bi { width: 100%; height: 18px; display: grid; place-items: center; }
.belts2 .bi svg { width: 92%; height: 100%; }
.belts2 button.on { border-color: var(--accent); background: var(--accent-soft); }
.belts2.flash { animation: flash 1.2s ease; border-radius: 14px; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px rgba(255,89,23,.5); } 100% { box-shadow: 0 0 0 0 rgba(255,89,23,0); } }
.studio-panel .swatches { gap: 8px; }
.studio-panel .sw { width: 42px; height: 42px; transition: box-shadow .15s, transform .1s; }
.studio-panel .sw.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--accent); animation: pop .25s ease; }
@keyframes pop { 50% { transform: scale(1.12); } }
.qnote { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--warn); background: #FFF1DE; border-radius: 10px; padding: 8px 10px; }
.sp-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.sp-more summary { cursor: pointer; font-weight: 800; font-size: 14px; min-height: 36px; display: flex; align-items: center; gap: 8px; list-style: none; }
.sp-more summary::-webkit-details-marker { display: none; }
.sp-more summary::after { content: '▾'; color: var(--accent); transition: transform .2s; }
.sp-more[open] summary::after { transform: rotate(180deg); }
.sp-more .seg button { min-height: 40px; }
.sp-full { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--accent-ink); }
.combo2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.combo2 button { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 6px 10px; line-height: 1.2; border: 2px solid var(--line); background: #fff; border-radius: 14px; font: inherit; font-weight: 800; font-size: 13px; color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.combo2 button i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CDBFB2; background: #fff; transition: border-width .15s, border-color .15s; }
.combo2 button.on { border-color: var(--accent); background: var(--accent-soft); }
.combo2 button.on i { border: 6px solid var(--accent); }
.sp-combo { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.sp-buy { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.studio-panel .qprice { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1; margin: 0; display: flex; flex-direction: column; }
.studio-panel .qprice s { font-family: var(--body); font-size: 14px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.sp-buy .btn { flex: 1; min-height: 56px; font-size: 18px; }
.btn svg { width: 22px; height: 22px; }
.btn.done { background: var(--ok); }
.sp-ship { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.mbar { display: none; }
.stage-dice { display: none; }

/* каталог «Собери свою Лигу» */
.league { padding: 36px 0 10px; scroll-margin-top: 70px; }
.league-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.league-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4vw, 50px); margin: 0 10px 0 0; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; order: 3; flex: 1 1 100%; }
.league-head .rand-btn { margin-left: auto; }
.cat-tabs button { min-height: 44px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cat-tabs button:hover { border-color: var(--accent); }
.cat-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.league .rand-btn { min-height: 44px; margin: 0; }
.league-for { margin: 10px 0 18px; color: var(--muted); font-weight: 600; }
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lcard { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--tone); transition: transform .2s, box-shadow .2s; }
.lcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,17,15,.12); }
.lcard.t0 { --tone: #FFDD57; } .lcard.t1 { --tone: #CFE0FF; } .lcard.t2 { --tone: #FF8B52; }
.lcard.t3 { --tone: #CDEFD9; } .lcard.t4 { --tone: #FFD3E1; } .lcard.t5 { --tone: #E3DAFF; }
.lthumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; }
.lthumb > svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 12px rgba(20,17,15,.18)); }
.lthumb canvas.c3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; filter: drop-shadow(0 14px 14px rgba(20,17,15,.22)); }
.lthumb .pill { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(255,255,255,.85); color: var(--ink); }
.lthumb .card-dice { z-index: 2; width: 44px; height: 44px; }
.lbody { position: relative; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 2px; min-height: 108px; }
.lbody small { font-size: 14px; font-weight: 700; opacity: .75; }
.lbody h3 { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; padding-right: 54px; }
.lprice { font-family: var(--display); font-size: 24px; margin-top: 6px; display: flex; flex-direction: column; }
.lprice small { font-family: var(--body); font-size: 12px; font-weight: 700; opacity: .7; }
.larrow { position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
.lcard:hover .larrow { background: var(--ink); color: #fff; transform: translateX(3px); }
.lcard.soon { opacity: .75; }
.lcard.soon .lthumb { background: rgba(255,255,255,.35); }

/* командный блок */
.teamb { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; background: var(--ink); color: #fff; border-radius: 30px; padding: 30px 34px; margin: 26px 0; overflow: hidden; }
.teamb h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; color: #fff; }
.teamb p { color: #D9CFC6; margin: 12px 0 14px; }
.tiers2 { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tiers2 span { display: flex; flex-direction: column; background: rgba(255,255,255,.08); border-radius: 14px; padding: 8px 14px; font-family: var(--display); font-size: 20px; }
.tiers2 b { font-family: var(--body); font-size: 12px; font-weight: 800; color: #FFB08A; }
.teamb-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.teamb-art span { background: rgba(255,255,255,.06); border-radius: 18px; padding: 10px; aspect-ratio: 1; display: grid; place-items: center; }
.teamb-art span:nth-child(1) { transform: rotate(-8deg); } .teamb-art span:nth-child(3) { transform: rotate(7deg); }
.teamb-art svg { width: 100%; height: 100%; }
.combo-banner { background: var(--blue); }
.combo-banner .btn { background: #fff; color: var(--blue); }
.wheel-strip { display: flex; align-items: center; gap: 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 12px 18px; margin: 0 0 40px; }
.ws-wheel { width: 64px; height: 64px; flex: none; }
.ws-wheel svg { width: 100%; height: 100%; }
.wheel-strip > div:not(.ws-wheel) { flex: 1; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.wheel-strip b { font-family: var(--head); font-size: 17px; color: var(--ink); }

/* страница изделия в новой палитре */
.viewport { background: radial-gradient(110% 90% at 50% 30%, #3366FF 0%, #1747F4 55%, #1037D2 100%); border: 0; }
.viewport .hint { background: rgba(255,255,255,.18); color: #fff; }
.viewport .busy { color: #fff; }
.view-tabs { background: rgba(255,255,255,.9); }
.vp-block { background: #FFF6F4; }
.panel { background: var(--card); }
.fab { padding: 8px 14px 8px 8px; font-size: 14px; right: auto; left: 18px; } /* слева — не закрывает панель заказа */
.fab-wheel { width: 34px; height: 34px; }
.foot-owner { color: #CFC6BE; }
body.no-fab .fab { display: none; }

@media (max-width: 1100px) {
  .studio { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); }
  .studio-left { grid-column: 1 / -1; display: flex; align-items: end; gap: 18px; flex-wrap: wrap; }
  .studio-left .studio-title { font-size: clamp(44px, 7vw, 72px); }
  .studio-left .studio-dash { display: none; }
  .lgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .mainnav { display: none; }
  .top-in { grid-template-columns: auto 1fr auto; }
  .brand span { display: none; }
  .studio { grid-template-columns: 1fr; padding: 18px 16px 0; gap: 4px; min-height: 0; }
  .studio-left { display: block; }
  .studio-title { font-size: clamp(42px, 13vw, 64px); }
  .studio-sub { font-size: 17px; margin-bottom: 0; }
  .studio-dash { display: block; width: 64px; height: 10px; margin: 12px 0 10px; }
  .studio-left .btn-line { display: none; }
  .stage-dice { display: inline-flex; position: absolute; left: 16px; bottom: 16px; z-index: 4; min-height: 46px; font-size: 15px; background: rgba(23,71,244,.4); }
  .studio-stage { min-height: 380px; margin: 0 -16px; }
  .spin-hint { left: auto; right: 16px; transform: none; bottom: 22px; border: 2px solid rgba(255,255,255,.8); border-radius: 999px; padding: 10px 14px; }
  .studio-panel { margin: 0 -16px; border-radius: 26px 26px 0 0; box-shadow: none; padding: 22px 16px 18px; }
  .studio-panel h2 { font-size: 30px; }
  .belts2 { grid-template-columns: repeat(5, 1fr); }
  .belts2 button { min-height: 52px; font-size: 12px; }
  .studio-panel .sw { width: 46px; height: 46px; }
  .sp-buy { display: none; }
  body.has-mbar { padding-bottom: 84px; }
  body.has-mbar .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,247,236,.97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,17,15,.08); }
  .mbar > div { display: flex; flex-direction: column; min-width: 0; }
  .mbar b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
  .mbar small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
  .mbar .btn { flex: 1; min-height: 54px; font-size: 17px; }
  .fab { display: none; } /* на телефоне колесо — в блоке на главной и в корзине: кнопка не закрывает настройки и заказ */
  .teamb { grid-template-columns: 1fr; padding: 24px 20px; }
  .wheel-strip { flex-wrap: wrap; }
  .panel .buy { position: sticky; bottom: 0; z-index: 6; background: var(--card); padding-bottom: 12px; margin-bottom: -12px; }
}
@media (max-width: 560px) {
  .lgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .lthumb { padding: 8px; }
  .lthumb .pill { left: 8px; top: 8px; font-size: 11px; }
  .lthumb .card-dice { right: 6px; top: 6px; }
  .lbody { padding: 0 12px 14px; min-height: 96px; }
  .lbody h3 { font-size: 18px; padding-right: 0; }
  .lprice { font-size: 18px; }
  .larrow { display: none; }
  .league-title { font-size: 30px; }
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .cat-tabs button { flex: none; }
  .mybelt .mb-txt { display: none; }
  .mybelt { padding: 4px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* брелок-связка */
.charm-pal .sw { position: relative; }
.charm-pal .sw em { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--ink); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.charm-lbl { margin-top: 14px; }
.charm-rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.crow { background: #FBF5EE; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.crow-head { display: flex; align-items: center; gap: 8px; }
.crow-head > b { width: 26px; height: 26px; flex: none; border-radius: 99px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; }
.crow-head .seg { flex: 1; }
.crow-head .seg button { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.crow .ctext { font: inherit; font-size: 15px; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.crow-cols { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cchips { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cchips span { margin-right: 2px; }
.sw.sm { width: 32px; height: 32px; }
.chip-none { min-height: 32px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 0 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip-none.on { border-color: var(--accent); color: var(--accent); }

.opt[data-charm] > .lbl { flex-wrap: wrap; }
.opt[data-charm] > .lbl small { flex-basis: 100%; padding-left: 40px; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); }

/* колесо фортуны — компактная круглая кнопка, подпись при наведении */
.fab .fab-txt { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s; }
.fab:hover .fab-txt, .fab:focus-visible .fab-txt { max-width: 160px; }
.fab { gap: 6px; padding: 7px; }
.fab:hover { padding-right: 14px; }

/* плитки выбора (конструктор герба) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tiles button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 92px; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 8px 6px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.tiles button:hover { border-color: #F6BFA0; }
.tiles button:active { transform: scale(.95); }
.tiles button.on { border-color: var(--accent); background: var(--accent-soft); }
.tiles .ti { width: 100%; height: 52px; display: grid; place-items: center; }
.tiles .ti svg { width: 100%; height: 100%; }
.tiles .ti svg path { fill: var(--ink); stroke: none; }
.tiles button.on .ti svg path { fill: var(--accent); }
/* блок конструктора для детей на главной */
.kidb { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, #FFDD57, #FF8B52); border-radius: 30px; padding: 30px 34px; margin: 26px 0 0; }
.kidb .eyebrow { color: var(--ink); opacity: .75; }
.kidb h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); text-transform: uppercase; margin: 6px 0 10px; }
.kidb p { margin: 0 0 18px; font-weight: 600; max-width: 460px; }
.kidb .btn { background: var(--ink); }
.kidb-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kidb-art span { aspect-ratio: 1; display: grid; place-items: center; background: rgba(255,255,255,.35); border-radius: 20px; padding: 10px; }
.kidb-art span:nth-child(2) { transform: translateY(-10px) rotate(-3deg); }
.kidb-art svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(80,30,0,.25)); }
@media (max-width: 860px) { .kidb { grid-template-columns: 1fr; padding: 24px 20px; } }

/* вместе / по деталям */
.view-modes { position: absolute; left: 14px; top: 12px; z-index: 2; display: flex; gap: 4px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 4px; }
.view-modes button { border: 0; background: transparent; padding: 7px 14px; min-height: 36px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; color: var(--muted); }
.view-modes button.on { background: var(--ink); color: #fff; }

/* блок «Собери сам» */
.kidb-art { grid-template-columns: repeat(5, 1fr); }
.kidb-art a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 800; text-align: center; line-height: 1.2; }
.kidb-art .ka-img { width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: rgba(255,255,255,.4); border-radius: 18px; padding: 8px; transition: transform .2s; }
.kidb-art a:hover .ka-img { transform: translateY(-3px) rotate(-2deg); }
.kidb-art .ka-img svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 8px rgba(80,30,0,.25)); }
.kidb-art span:nth-child(2) { transform: none; }
@media (max-width: 860px) { .kidb-art { grid-template-columns: repeat(3, 1fr); } }

/* комбо в корзине: каждый подарок своей строкой */
.combo-item { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ci-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ci-sum b { font-family: var(--head); font-size: 20px; }
.ci-list { display: flex; flex-direction: column; gap: 8px; }
.ci-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; background: #FBF5EE; border-radius: 14px; padding: 8px 12px 8px 8px; }
.ci-row .mini { background: var(--accent-soft); border-radius: 12px; aspect-ratio: 1; padding: 6px; display: grid; place-items: center; }
.ci-row .mini svg { width: 100%; height: 100%; }
.ci-row b { font-size: 15px; }
.ci-price { font-weight: 800; color: var(--muted); white-space: nowrap; }
.ci-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ci-actions .combo-up { margin-top: 0; }
.order-item .ci-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; }
.order-item .ci-minis span { display: grid; place-items: center; }
.order-item .ci-minis svg { width: 100%; height: 100%; }
@media (max-width: 560px) { .ci-row { grid-template-columns: 56px 1fr; } .ci-price { grid-column: 2; } }

/* мастерская: печать пачкой */
.batch { background: var(--ink); color: #fff; border-radius: 22px; padding: 18px 20px; margin: 4px 0 18px; }
.batch-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: start; }
.batch-head > div:first-child { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.batch-head b { font-family: var(--head); font-size: 20px; }
.batch-head span { color: #D9CFC6; font-size: 14px; }
.batch-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.batch .link-btn { color: #D9CFC6; }
.batch-plan { margin-top: 12px; font-size: 14px; color: #D9CFC6; }
.batch-plan p { margin: 0 0 10px; color: #fff; }
.bp-list { display: flex; gap: 8px; flex-wrap: wrap; }
.bp { display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 12px; min-width: 120px; }
.bp small { color: #D9CFC6; }
.oi-act { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pick input { width: 18px; height: 18px; accent-color: var(--accent); }

/* согласие с офертой при оформлении */
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

/* ---------- мастерская: вход, менеджеры, оплата ---------- */
.ws-login { max-width: 420px; margin: 48px auto; }
.ws-login .field { margin-bottom: 12px; }
.ml-pw { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.ml-pw summary { cursor: pointer; font-weight: 700; color: var(--muted); font-size: 14px; }
.ml-pw form { margin-top: 12px; }
.tm-list { display: grid; gap: 8px; margin: 12px 0; }
.tm { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #FAFAF8; border-radius: 14px; padding: 10px 12px; }
.tm > div { margin-right: auto; display: grid; }
.tm small { color: var(--muted); font-size: 13px; }
.tm-add { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-add input, .tm-add select { flex: 1 1 160px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; }
.tm-add .btn { flex: 0 0 auto; }
.mgr { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; font-weight: 600; }
.mgr select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }
.status.wait { background: #EEF0F6; color: #4A5578; }
.order.unpaid { opacity: .78; border-style: dashed; }
.batch.team { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.batch.team .batch-head span { color: var(--muted); }
.batch.team .link-btn { color: var(--accent); }
.mgr { color: var(--ink); }

/* размеры изделия в 3D-просмотре */
.dims { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.dims[hidden] { display: none; }
.dim-lbl { position: absolute; left: 0; top: 0; background: #fff; color: var(--ink); font-weight: 800; font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.dim-cap { position: absolute; left: 14px; top: 12px; max-width: calc(100% - 120px); background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.view-modes:not([hidden]) ~ .dims .dim-cap { top: 60px; }
@media (max-width: 560px) { .viewport .hint { display: none; } .view-tabs button { padding: 6px 10px; } }
