/* v31 «Дроп для бренду» — общее: токены, тема, компоненты. Вёрстки — v31-m.css / v31-d.css. */
:root {
  --bg: #0d0d10; --bg2: #16161b; --card: #1c1c22; --line: #2c2c35;
  --fg: #f3f1ec; --mut: #a7a5ae; --ok: #3ccf8e; --bad: #ff6b5e; --warn: #f2b705;
  --brand: #2f7cf6; --rad: 14px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f1ed; --bg2: #e8e6e0; --card: #ffffff; --line: #d9d6ce;
    --fg: #141418; --mut: #5d5b63; --ok: #12814f; --bad: #c4372b; --warn: #8a6400;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 var(--sans); overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.tag-demo { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; color: var(--mut); }
.top-sp { flex: 1; }
.top-lab, .lang { font-size: 14px; color: var(--mut); text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.lang { border: 1px solid var(--line); color: var(--fg); font-weight: 700; }

/* кнопки, чипы */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-main { background: var(--fg); color: var(--bg); }
.btn-main:hover { background: var(--brand); color: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.chip small { color: var(--mut); font-size: 12px; }
.small { font-size: 13px; color: var(--mut); margin: 6px 0; }
.err { color: var(--bad); font-size: 14px; min-height: 0; margin: 4px 0; }
.err:empty { display: none; }

/* постер дропа — кинетика */
.hero { position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 38%, transparent), transparent); opacity: .7; }
.hero-k { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--mut); margin: 0 0 10px; }
.hero-h { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .9; }
.mask { display: block; clip-path: inset(-0.1em -0.15em -0.14em -0.15em); padding-bottom: .04em; }
.hero-h .mask:last-child { line-height: 1.05; }
.hw { display: inline-block; animation: up .8s cubic-bezier(.2, .8, .2, 1) both; }
.hw-n { animation-delay: .12s; }
.hw-2 { animation-delay: .24s; text-transform: none; letter-spacing: -.03em; font-weight: 800; }
@keyframes up { from { transform: translateY(105%); } to { transform: none; } }
.flip { display: inline-block; font-family: var(--mono); font-weight: 800; letter-spacing: -.06em; color: var(--brand);
  -webkit-text-stroke: 0; transform-origin: 50% 60%; }
.flip.go { animation: flip .36s ease-in-out; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: .2; } 100% { transform: rotateX(0); } }
.hero-lead { max-width: 34em; color: var(--mut); position: relative; z-index: 1; }
.hero-uses { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.hero-uses li { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 7px 9px; border: 1px dashed var(--line); border-radius: 6px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }

.sec-h { font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; margin: 0 0 14px; }

/* сцена */
.stage { position: relative; margin: 0; border-radius: var(--rad); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 25%, #2a2a33, #0b0b0e 70%); color: #f3f1ec; }
.stage[data-bg="light"] { background: radial-gradient(120% 90% at 50% 25%, #ffffff, #d9d6cf 75%); color: #141418; }
.stage .ped { position: absolute; left: 50%; bottom: 10%; width: 70%; aspect-ratio: 3 / 1; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 45%, transparent), transparent); filter: blur(6px); }
.poster { position: absolute; left: 50%; top: 50%; width: min(70%, 62vh); height: auto; transform: translate(-50%, -52%); object-fit: contain; opacity: .9; transition: opacity .4s;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent); mask-image: radial-gradient(closest-side, #000 62%, transparent); }
.stage.live .poster { opacity: 0; }
.gl { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.pill { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 0; cursor: pointer; font-size: 13px; font-weight: 600;
  background: rgba(10, 10, 14, .72); color: #f3f1ec; backdrop-filter: blur(8px); }
.pill-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.pill[data-k="ok"] i { background: #3ccf8e; }
.pill[data-k="bad"] i { background: #ff6b5e; }
.pill[data-k="fail"] i { background: #a7a5ae; }
.pill[data-k="load"] i { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.stage-tag { position: absolute; right: 10px; top: 10px; margin: 0; font: 800 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 9px; border-radius: 6px; background: var(--brand); color: #fff; max-width: 40%; overflow: hidden; white-space: nowrap; }
.stage-tag:empty { display: none; }
.stage-cap { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 12px; color: inherit; opacity: .78; pointer-events: none;
  white-space: nowrap; overflow: hidden; }
.demo-m { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* режимы изделия */
.modes { margin: 10px 0 4px; }
.mchips { align-items: center; }
.modes-k { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mut); }
.mch { min-height: 36px; font-size: 14px; }
.why { margin: 6px 0 0; font-size: 13px; color: var(--mut); min-height: 1.45em; }

/* полка дропа: бирки-вердикты */
.shelf-k { font: 600 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mut); margin: 12px 0 8px; }
.shelf { list-style: none; margin: 0; padding: 0; }
.slot { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--rad); background: var(--card); }
.slot.cur { border-color: var(--fg); }
.card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px; border: 0; background: none; cursor: pointer; text-align: left; flex: 1; }
.pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, var(--pc), color-mix(in srgb, var(--pc) 40%, #0b0b0e)); }
.pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.card-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-t { font-size: 14px; line-height: 1.2; }
.card-r { font-size: 12px; color: var(--mut); }
.tag { position: absolute; top: 6px; right: 6px; font: 700 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 7px 6px 15px; border-radius: 4px 4px 4px 4px; background: var(--fg); color: var(--bg); max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; }
.tag::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--bg); }
.slot[data-m="off"] .tag { background: var(--bad); color: #fff; }
.slot[data-m="wait"] .tag { background: var(--warn); color: #141418; }
.slot[data-m="pair"] .tag, .slot[data-m="num"] .tag { background: var(--brand); color: #fff; }
.slot[data-m="off"] .pic { filter: grayscale(1) opacity(.55); }
.add { margin: 0 10px 10px; min-height: 38px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.add[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.add:disabled { opacity: .45; cursor: not-allowed; }

/* шаги */
.step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 18px; }
.step h3 i { font: 800 12px/1 var(--mono); font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand); color: #fff; flex: none; }
.brand img { width: 22px; height: 22px; flex: none; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.brand-t small { font-size: 11px; }
.upload { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; margin-top: 10px; border: 1px dashed var(--mut);
  border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.capg { margin: 10px 0 0; }
.capg-k { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mut); margin: 0 0 6px; }
.cap { font-family: var(--mono); font-weight: 700; letter-spacing: .02em; min-height: 38px; }
.cap-n { font-family: var(--sans); font-weight: 500; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.field input { min-height: 46px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 18px; font-weight: 700; }
.quick { margin-bottom: 12px; }
.tog { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.tog input { width: 22px; height: 22px; accent-color: var(--brand); }
.tog:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* PR-бокс: коробка, в которую «падают» изделия */
.boxart { position: relative; height: 120px; margin: 8px 0; border-radius: 12px; background: var(--bg2); overflow: hidden; opacity: .5; transition: opacity .3s; }
.boxart.on { opacity: 1; }
.boxart .lid { position: absolute; left: 14%; right: 14%; bottom: 14px; height: 54px; border-radius: 6px; border: 2px solid var(--fg);
  background: repeating-linear-gradient(45deg, transparent 0 8px, color-mix(in srgb, var(--fg) 8%, transparent) 8px 9px);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); white-space: nowrap; overflow: hidden; }
.boxart .slots { position: absolute; left: 14%; right: 14%; bottom: 34px; display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.bx { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), var(--pc);
  box-shadow: 0 4px 10px #0006; }
.bx:nth-child(2) { border-radius: 10px; }
.bx:nth-child(3) { width: 34px; height: 50px; border-radius: 8px; }
.boxart.drop .bx { animation: fall .7s cubic-bezier(.3, 1.4, .5, 1) both; }
.boxart.drop .bx:nth-child(2) { animation-delay: .12s; }
.boxart.drop .bx:nth-child(3) { animation-delay: .24s; }
@keyframes fall { from { transform: translateY(-120px) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* сводка КП */
.sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0; font-size: 14px; }
.sum dt { color: var(--mut); }
.sum dd { margin: 0; overflow-wrap: anywhere; }
.price { font-weight: 700; margin: 6px 0 12px; }
.kp-st { min-height: 1.4em; font-size: 14px; margin: 8px 0 0; }
.kp-st[data-k="bad"] { color: var(--bad); }

/* страхи */
.fear { border: 1px solid var(--line); border-radius: var(--rad); padding: 18px; background: var(--card); }
.fear h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.2; }
.fear p { margin: 0 0 10px; color: var(--mut); }
.mats { margin: 0; padding-left: 18px; font-size: 14px; }
.mats li { margin: 4px 0; }
.mats span { color: var(--mut); }
.flow { margin: 0; padding-left: 20px; font-size: 14px; }
.flow li { margin: 5px 0; }
.flow li:first-child { color: var(--brand); font-weight: 700; }
.proof { border-left: 3px solid var(--brand); padding-left: 10px; color: var(--fg) !important; }

.foot { padding: 24px 16px 120px; color: var(--mut); font-size: 13px; border-top: 1px solid var(--line); }

/* протокол — нижний лист */
.sheet { border: 0; padding: 0; background: transparent; color: var(--fg); max-width: 560px; width: 100%; }
.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet-in { background: var(--card); border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.sheet h2 { margin: 0 0 12px; font-size: 20px; }
.pdl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 12px; font-size: 14px; }
.pdl dt { color: var(--mut); }
.pdl dd { margin: 0; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .hw, .hl, .flip.go, .boxart.drop .bx, .pill[data-k="load"] i { animation: none !important; }
  .poster { transition: none; }
}

/* постер: линейка дропа веером (на телефоне — лентой) */
.hero-line { pointer-events: none; }
.hl { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 12px; line-height: 1.2; }
.hl-pic { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 45%, var(--pc), color-mix(in srgb, var(--pc) 40%, #0b0b0e)); }
.hl-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl small { font-family: var(--mono); color: var(--mut); font-size: 10px; letter-spacing: .04em; }

/* номер дропа: префикс и номера */
.pres { margin-bottom: 6px; }
.pre { font-family: var(--mono); font-weight: 800; min-height: 34px; }
.pre[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nums .cap { min-width: 64px; justify-content: center; }

/* изделие, которое движок не пропустил: показываем, но приглушённо */
.stage.off .gl { filter: grayscale(.85) opacity(.55); }
.adv { margin: 0; padding-left: 18px; }
.adv li { margin: 0 0 4px; }
