/* Ярмарка: витрина покупателя. Липкая шапка с поиском, сетка каталога с фильтрами слева. */
:root {
  --bg: #F2F4F7; --surface: #FFFFFF; --sunk: #E8EBF0; --ink: #141A24; --muted: #5B6474; --line: #DDE1E8;
  --accent: #2350E0; --accent-ink: #FFFFFF; --sale: #D93A2B; --ok: #1C8A57; --warn: #9A6900;
  --tile-l: 91%; --tile-s: 52%; --glyph-l: 34%;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E121A; --surface: #161C27; --sunk: #1D2533; --ink: #E7EBF2; --muted: #98A1B2; --line: #283142;
    --accent: #6F8CFF; --accent-ink: #0B1020; --sale: #FF6B5B; --ok: #4FC98D; --warn: #E5B23C;
    --tile-l: 22%; --tile-s: 30%; --glyph-l: 72%;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
img { max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 19px; line-height: 1.25; font-weight: 800; }
h3 { font-size: 15px; line-height: 1.3; font-weight: 800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap {
  max-width: 1240px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.hbar { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 21px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; }
.search { flex: 1 1 320px; position: relative; min-width: 0; order: 2; margin: 0; }
.search input { width: 100%; height: 44px; border-radius: 10px; border: 2px solid var(--accent); background: var(--surface); padding: 0 48px 0 14px; }
.search-go { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.search-go svg, .hbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sugg { position: absolute; left: 0; right: 0; top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgb(0 0 0 / .14); overflow: hidden; z-index: 30; }
.sugg a { display: flex; gap: 10px; padding: 10px 14px; color: var(--ink); text-decoration: none; align-items: baseline; }
.sugg a:hover, .sugg a[aria-selected="true"] { background: var(--sunk); }
.sugg .kind { font-size: 12px; color: var(--muted); }
.hnav { display: flex; gap: 2px; order: 3; margin-left: auto; }
.hbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; padding: 4px 10px; border-radius: 8px; font-size: 12px; color: var(--muted); position: relative; text-decoration: none; }
.hbtn:hover, .hbtn[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.badge { position: absolute; top: 0; right: 6px; background: var(--sale); color: #fff; font-size: 10.5px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.sub { padding-block: 0 10px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { white-space: nowrap; color: var(--ink); text-decoration: none; padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.cats a:hover { background: var(--sunk); }
.cats a[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (max-width: 700px) { .search { order: 4; flex-basis: 100%; } .hbtn span { display: none; } }

main { padding-block: 18px 60px; min-height: 60vh; outline: none; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* общие элементы */
.btn { border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; background: var(--accent); color: var(--accent-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: var(--sunk); color: var(--ink); }
.btn.line { background: none; border: 1px solid var(--line); color: var(--ink); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.panel { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; }
.inp, .field input, .field select, .field textarea { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 10px 12px; font-weight: 500; min-width: 0; width: 100%; }
.field textarea { resize: vertical; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.pill.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pill.bad { background: color-mix(in srgb, var(--sale) 15%, transparent); color: var(--sale); }
.pill.acc { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.alert { border-radius: 10px; padding: 12px 14px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.alert.err { background: color-mix(in srgb, var(--sale) 10%, var(--surface)); border-color: color-mix(in srgb, var(--sale) 35%, transparent); }
.empty { text-align: center; padding: 48px 16px; }
.empty p { color: var(--muted); }
.back { display: inline-block; font-weight: 700; margin-bottom: 14px; text-decoration: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* иллюстрация товара без фото: оттенок задаётся классом h0…h11 */
.ph { background: hsl(var(--h) var(--tile-s) var(--tile-l)); color: hsl(var(--h) 45% var(--glyph-l)); display: grid; place-items: center; border-radius: 10px; aspect-ratio: 3 / 4; position: relative; overflow: hidden; width: 100%; }
.ph svg { width: 46%; height: auto; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.h0 { --h: 220; } .h1 { --h: 160; } .h2 { --h: 38; } .h3 { --h: 200; } .h4 { --h: 10; } .h5 { --h: 265; }
.h6 { --h: 130; } .h7 { --h: 330; } .h8 { --h: 95; } .h9 { --h: 185; } .h10 { --h: 28; } .h11 { --h: 240; }

/* главная и каталог */
.promo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.promo a { border-radius: 16px; padding: 20px 22px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; color: #fff; text-decoration: none; }
.promo b { font-size: 20px; line-height: 1.2; font-weight: 800; max-width: 20ch; }
.promo span { font-size: 14px; opacity: .9; }
.p1 { background: #1F3FB8; } .p2 { background: #0F6E57; } .p3 { background: #A23A1E; }
@media (max-width: 860px) { .promo { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; } .promo a { scroll-snap-align: start; } }
.store { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 150px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.filters legend { font-weight: 800; margin-bottom: 6px; padding: 0; }
.filters label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.prow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.subcats { display: flex; flex-direction: column; gap: 4px; }
.subcats a { color: var(--ink); text-decoration: none; font-size: 14px; }
.subcats a:hover { color: var(--accent); }
.mfilters { display: none; }
@media (max-width: 860px) { .store { grid-template-columns: 1fr; } .filters.side { display: none; } .mfilters { display: block; margin-bottom: 12px; } .filters { position: static; } }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 24px 14px; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; } }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
.disc { position: absolute; left: 8px; bottom: 8px; background: var(--sale); color: #fff; font-weight: 800; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-size: 19px; font-weight: 800; color: var(--sale); }
.price s { color: var(--muted); font-size: 13px; }
.pname { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.pname em { font-style: normal; color: var(--muted); }
.rate { font-size: 13px; color: var(--muted); }
.star { color: #E8A300; }
.eta { font-size: 13px; color: var(--accent); font-weight: 700; }
.card .btn { margin-top: auto; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager a { min-width: 40px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); text-align: center; text-decoration: none; color: var(--ink); background: var(--surface); }
.pager a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* карточка товара */
.pp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 1060px) { .pp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .buybox { grid-column: 1 / -1; position: static !important; } }
@media (max-width: 700px) { .pp { grid-template-columns: 1fr; } .pp > div > .ph { aspect-ratio: 4 / 3; } }
.opts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.opt { border: 1.5px solid var(--line); background: var(--surface); border-radius: 9px; padding: 7px 13px; font-weight: 700; font-size: 14px; min-width: 46px; }
.opt[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.opt:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.buybox { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 12px; }
.bigprice b { font-size: 30px; line-height: 1; font-weight: 800; color: var(--sale); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.rev { border-top: 1px solid var(--line); padding-block: 14px; display: flex; flex-direction: column; gap: 6px; }
.stars { color: #E8A300; letter-spacing: 2px; }
.stars .off { color: var(--line); }
.reply { background: var(--sunk); padding: 8px 10px; border-radius: 8px; font-size: 14px; }

/* корзина и оформление */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 860px) { .cart { grid-template-columns: 1fr; } .summary { position: static !important; } }
.summary { position: sticky; top: 150px; }
.citem { display: grid; grid-template-columns: auto 84px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-block: 16px; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: 0; }
.citem .ph { width: 84px; }
@media (max-width: 520px) { .citem { grid-template-columns: auto 64px minmax(0, 1fr); } .citem .ph { width: 64px; } .citem .line-total { grid-column: 3; text-align: left !important; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { border: 0; background: var(--sunk); width: 34px; height: 34px; font-weight: 800; }
.qty span { min-width: 36px; text-align: center; }
.sumrow { display: flex; justify-content: space-between; gap: 10px; }
.total { font-size: 22px; font-weight: 800; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.choice input { margin-top: 4px; accent-color: var(--accent); }
.minis { display: flex; gap: 8px; flex-wrap: wrap; }
.minis .ph { width: 52px; border-radius: 8px; }
.minis .ph svg { width: 50%; }

/* заказы */
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-block: 12px; }
.steps div { font-size: 11.5px; color: var(--muted); }
.steps div::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 5px; }
.steps .done::before { background: var(--ok); }
.steps .cur { color: var(--ink); font-weight: 700; }
.steps .cur::before { background: var(--accent); }
@media (max-width: 520px) { .steps div { font-size: 0; } .steps .cur { font-size: 11.5px; grid-column: span 5; order: 9; } }
.ship { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ship:first-of-type { border-top: 0; padding-top: 0; }
.pickup { display: flex; gap: 16px; align-items: center; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-radius: 12px; padding: 14px 16px; flex-wrap: wrap; }
.pickup-code { font-size: 34px; font-weight: 900; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.oitem { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.oitem .ph { width: 52px; border-radius: 8px; }
.oitem .ph svg { width: 50%; }
.oitem-actions { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.starpick { display: flex; gap: 2px; border: 0; padding: 0; margin: 0; }
.starpick label { font-size: 26px; color: var(--line); cursor: pointer; line-height: 1; }
.starpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.starpick label.on { color: #E8A300; }
.starpick input:focus-visible + span { outline: 2px solid var(--accent); }

/* окно и уведомления */
.sheet { position: fixed; inset: 0; background: rgb(10 14 20 / .5); z-index: 50; display: grid; place-items: center; padding: 16px; }
.sheet .panel { width: min(440px, 100%); max-height: 88vh; overflow: auto; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.devnote { font-size: 13px; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 12px; color: var(--muted); }
.devnote b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Служебные классы вместо inline-стилей: строгая CSP запрещает атрибут style в разметке. */
.mb16 { margin-bottom: 16px; } .mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt28 { margin-top: 28px; } .m0 { margin: 0; }
.sp14 { height: 14px; } .jb { justify-content: space-between; } .tr { text-align: right; } .self-end { align-self: end; }
.c-sale { color: var(--sale); } .c-warn { color: var(--warn); } .c-ink { color: var(--ink); } .b700 { font-weight: 700; }
.fs16 { font-size: 16px; } .fs24 { font-size: 24px; } .g4 { gap: 4px; } .g6 { gap: 6px; }
.w280 { width: 280px; max-width: 100%; } .minw260 { min-width: 260px; } .maxw560 { max-width: 560px; }
.grow { flex: 1; width: auto; } .grow220 { flex: 1; min-width: 220px; } .prewrap { white-space: pre-wrap; }
.plain { text-decoration: none; color: inherit; } .selall { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hr { border: 0; border-top: 1px solid var(--line); margin: 2px 0; } .bg-ok { background: var(--ok); color: #fff; }
.grid-side300 { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 860px) { .grid-side300 { grid-template-columns: 1fr; } .minw260 { min-width: 0; } }

/* Баннер cookie и согласия */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgb(0 0 0 / .12); padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.cookiebar-in { max-width: 1240px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cookiebar p { margin: 0; max-width: 80ch; font-size: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 500; line-height: 1.45; }
.consent input { margin-top: 3px; flex: none; accent-color: var(--accent); width: 16px; height: 16px; }
.foot a { color: var(--muted); }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }

/* Страницы документов */
.legal { max-width: 760px; margin: 0 auto; padding-block: 28px 60px; }
.legal h1 { margin-bottom: 6px; }
.legal h2 { margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal .fill { background: color-mix(in srgb, var(--warn) 18%, transparent); border-radius: 4px; padding: 0 4px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* Защита входа: QR-код, ключ, коды восстановления */
.self-start { align-self: flex-start; }
.hint { font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.45; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.qrbox { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
/* QR рисуется на своём белом фоне и в тёмной теме: сканеры плохо читают инвертированные коды. */
canvas.qr { display: block; max-width: 100%; height: auto; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.secret, .codes, .invite-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.secret { font-size: 15px; font-weight: 600; letter-spacing: .06em; overflow-wrap: anywhere; background: var(--sunk); padding: 6px 8px; border-radius: 6px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; margin: 0; padding: 12px 14px 12px 36px; background: var(--sunk); border-radius: 10px; font-size: 15px; font-weight: 600; }
.invite-code { font-size: 26px; font-weight: 800; letter-spacing: .08em; padding: 10px 14px; background: var(--sunk); border-radius: 10px; text-align: center; word-break: break-all; }
.sheet .panel.wide { width: min(560px, 100%); }
.banner { border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner p { margin: 0; max-width: 70ch; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
@media (max-width: 420px) { .codes { grid-template-columns: 1fr; } }
.maxw640 { max-width: 640px; }
.ml6 { margin-left: 6px; }

/* Реквизиты владельца площадки в подвале — отдельной строкой под копирайтом и ссылками. */
.foot .req { order: 3; flex-basis: 100%; font-size: 12px; }
