/* ════════════════════════════════════════════════════════════════════
   WELION — компоненты
   Стилистика: интерфейс собран как логотип — лицевая грань, тёмная обводка
   и боковая грань снизу; заголовки разделов — плашки с Unbounded.
   Компоновка: «лаунчер» — постоянная панель слева (навигация, сервер,
   «Играть»), справа сцена из блоков. Все значения — из welion.tokens.css.

   Оглавление
     1. База               6. Места под баннеры    10. Формы
     2. Типографика           (строка, афиша,      11. Окна и оформление
     3. Кнопки                 плитки)             12. Сотрудничество
     4. Оболочка           7. Главная              13. 404, утилиты
     5. Заголовок раздела  8. Подвал  9. Магазин       Адаптив
   ════════════════════════════════════════════════════════════════════ */

/* ── 1. База ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--w-text);
  /* тёплый «ламповый» свет: два мягких пятна поверх тёмного фона */
  background:
    radial-gradient(900px 620px at 18% -8%, rgba(230, 59, 97, .17), transparent 62%),
    radial-gradient(820px 620px at 108% 104%, rgba(236, 92, 104, .09), transparent 60%),
    var(--w-night);
  background-attachment: fixed;
  font: 400 16px/1.6 var(--w-font-body);
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
::selection { background: var(--w-rasp); color: var(--w-cream); }
:focus-visible { outline: 2px solid var(--w-cream); outline-offset: 3px; border-radius: 6px; }

.w-container { width: min(100% - var(--w-gutter) * 2, var(--w-container)); margin-inline: auto; }

/* иконки вставляются инлайном (js/welion.js) и наследуют цвет текста */
.w-ico { display: inline-flex; width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.w-ico svg { width: 100%; height: 100%; display: block; }

/* ── 2. Типографика ────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-family: var(--w-font-display); line-height: 1.12; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.w-h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.w-h3 { font-size: 18px; font-weight: 700; }
.w-lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--w-text-2); max-width: 62ch; text-wrap: pretty; }
.w-muted { color: var(--w-text-2); }
.w-accent { color: var(--w-rasp); }

/* «Заголовок + плашка» из баннеров постов: наклонный жирный Unbounded,
   вторая строка лежит на малиновой плашке */
.w-slant { font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
.w-slant > span { display: inline-block; transform: skewX(-9deg); }
.w-pill { display: inline-block; margin-top: .14em; padding: .08em .36em .14em; white-space: nowrap;
  background: var(--w-rasp); color: var(--w-cream); border-radius: .3em;
  transform: skewX(-9deg) rotate(-1.2deg); }
.w-slant > span.w-pill { transform: skewX(-9deg) rotate(-1.2deg); }
.w-pill--ink { background: var(--w-ink); }

/* пиксельная метка: IP, версии, скидки */
.w-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  font: 400 10px/1.3 var(--w-font-pixel); text-transform: uppercase;
  color: var(--w-cream); background: var(--w-glass-2);
  border: 1px solid var(--w-line); border-radius: var(--w-r-sm); }
.w-tag--solid { background: var(--w-accent-bottom); border-color: transparent; }
.w-dot { width: 8px; height: 8px; background: var(--w-ok); box-shadow: 0 0 0 3px rgba(110, 231, 160, .22); }

/* ── 3. Кнопки ─────────────────────────────────────────────────────────
   Три ступени важности, один шрифт (Onest), одна высота в ряду:
     .w-btn            — основная: малиновая, на экране одна-две
     .w-btn--cream     — светлая: только на градиентных баннерах
     .w-btn--soft      — вторичная: «стекло», подходит к любому фону
     .w-btn--ghost     — третичная: рамка без заливки
   Нижняя грань в 3px — всё, что осталось от «блочности» логотипа. */
.w-btn {
  --bg: var(--w-grad-face); --fg: var(--w-cream); --edge: var(--w-accent-edge);
  --hi: rgba(255, 255, 255, .22); --halo: rgba(230, 59, 97, .7);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; margin-bottom: var(--w-depth); white-space: nowrap;
  font: 600 15px/1 var(--w-font-body); letter-spacing: 0; text-transform: none;
  color: var(--fg); background: var(--bg); border: 0; border-radius: 12px;
  box-shadow: inset 0 1px 0 var(--hi), 0 var(--w-depth) 0 var(--edge), 0 14px 28px -14px var(--halo);
  transition: transform .12s var(--w-ease), box-shadow .12s var(--w-ease), filter .15s, background-color .15s;
}
.w-btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--hi), 0 calc(var(--w-depth) + 1px) 0 var(--edge), 0 18px 34px -14px var(--halo); }
.w-btn:active { filter: none; transform: translateY(2px); box-shadow: inset 0 1px 0 var(--hi), 0 1px 0 var(--edge); }
.w-btn .w-ico { width: 18px; height: 18px; }
.w-btn--cream { --bg: var(--w-cream); --fg: var(--w-ink); --edge: rgba(51, 2, 17, .34); --hi: transparent; --halo: rgba(16, 6, 9, .6); }
.w-btn--soft, .w-btn--ink, .w-btn--ghost {
  --edge: transparent; --hi: transparent; --halo: transparent;
  box-shadow: inset 0 0 0 1px var(--w-line-2);
}
.w-btn--soft { --bg: var(--w-glass-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* тёмное «стекло» — вторичная кнопка поверх яркого градиента */
.w-btn--ink { --bg: rgba(16, 6, 9, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.w-btn--ghost { --bg: transparent; color: var(--w-text-2); }
.w-btn--soft:hover, .w-btn--ink:hover, .w-btn--ghost:hover { filter: none; transform: none; color: var(--w-cream); background: var(--w-glass-2); box-shadow: inset 0 0 0 1px rgba(255, 235, 228, .32); }
.w-btn--soft:hover { background: rgba(255, 235, 228, .15); }
.w-btn--ink:hover { background: rgba(16, 6, 9, .75); }
.w-btn--soft:active, .w-btn--ink:active, .w-btn--ghost:active { transform: translateY(1px); box-shadow: inset 0 0 0 1px var(--w-line-2); }
.w-btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.w-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.w-btn--block { width: 100%; }
.w-btn[disabled] { filter: grayscale(.5) brightness(.65); pointer-events: none; }

/* ── 4. Оболочка: панель слева + сцена справа ──────────────────────── */
.w-shell { display: grid; grid-template-columns: var(--w-rail) minmax(0, 1fr); min-height: 100vh; }
.w-main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
/* сцена: разделы идут столбцом с одним и тем же шагом */
.w-stage {
  flex: 1; width: min(100% - var(--w-gutter) * 2, var(--w-container)); margin-inline: auto;
  padding: 24px 0 64px; display: flex; flex-direction: column; gap: 44px;
}

.w-rail { position: sticky; top: 0; z-index: 30; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 18px;
  background: rgba(16, 6, 9, .72); border-right: 1px solid var(--w-line);
  -webkit-backdrop-filter: var(--w-blur); backdrop-filter: var(--w-blur); }
.w-rail__brand { display: block; padding: 2px 4px 0; }
.w-rail__w { display: none; width: 48px; }
.w-rail__nav { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.w-rail__nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px;
  font-weight: 600; font-size: 15px; color: var(--w-text-2);
  border: 1px solid transparent; border-radius: 12px; transition: color .15s, background .15s, border-color .15s; }
.w-rail__nav a:hover { color: var(--w-cream); background: var(--w-glass); }
.w-rail__nav a.is-active { color: var(--w-cream); background: var(--w-tint); border-color: var(--w-tint-line); }
.w-rail__nav a.is-active .w-ico { color: var(--w-coral); }
.w-rail__nav .w-ico { width: 20px; height: 20px; }
.w-count {
  display: grid; place-items: center; min-width: 22px; height: 22px; margin-left: auto; padding: 0 5px;
  font: 400 9px/1 var(--w-font-pixel); color: var(--w-ink); background: var(--w-cream); border-radius: 6px;
}
.w-rail__grow { flex: 1; }
/* сервер всегда под рукой: онлайн, IP, «Играть» */
.w-server { display: grid; gap: 10px; padding: 12px; background: var(--w-glass); border: 1px solid var(--w-line); border-radius: 16px; }
.w-server__top { display: flex; align-items: center; justify-content: space-between; font: 400 9px/1 var(--w-font-pixel); text-transform: uppercase; color: var(--w-text-2); }
.w-server__top span { display: inline-flex; align-items: center; gap: 8px; }
.w-server__top b { font-size: 12px; font-weight: 400; color: var(--w-cream); }
.w-server__ip { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 12px;
  font: 400 10px/1 var(--w-font-pixel); background: var(--w-well); border: 1px solid var(--w-line); border-radius: 10px; transition: border-color .15s; }
.w-server__ip:hover { border-color: var(--w-tint-line); }
.w-server__ip .w-ico { width: 15px; height: 15px; color: var(--w-text-3); }
.w-server__ip.is-copied .w-ico { color: var(--w-ok); }
.w-server__ver { font-size: 12px; color: var(--w-text-3); text-align: center; }
.w-rail__social { display: flex; justify-content: center; gap: 8px; }
.w-rail__social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--w-text-2);
  border: 1px solid var(--w-line); border-radius: 10px; transition: color .15s, background .15s, border-color .15s; }
.w-rail__social a:hover { color: var(--w-cream); background: var(--w-tint); border-color: var(--w-tint-line); }

/* телефон: панель превращается в верхнюю строку и нижние вкладки */
.w-topbar { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--w-gutter); background: rgba(16, 6, 9, .8); }
.w-topbar a { display: flex; align-items: center; gap: 10px; }
.w-topbar a > img:nth-child(1) { width: 34px; }
.w-topbar a > img:nth-child(2) { height: 24px; width: auto; }
.w-tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; height: 68px;
  grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(16, 6, 9, .86); border-top: 1px solid var(--w-line);
  -webkit-backdrop-filter: var(--w-blur); backdrop-filter: var(--w-blur); }
.w-tabbar a { position: relative; display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--w-text-3); }
.w-tabbar a.is-active { color: var(--w-cream); }
.w-tabbar .w-ico { width: 22px; height: 22px; }
.w-tabbar .w-count { position: absolute; top: -6px; left: calc(50% + 6px); }
.w-tabbar__play { width: 52px; height: 52px; margin: -20px auto 0; place-content: center; color: var(--w-cream) !important;
  background: var(--w-grad-face); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 0 var(--w-accent-edge), var(--w-glow); }

/* ── 5. Заголовок раздела: компактная плашка + пояснение ───────────── */
.w-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; }
.w-plate { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px;
  font: 500 15px/1 var(--w-font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--w-cream);
  background: var(--w-tint); border: 1px solid var(--w-tint-line); border-radius: 10px; }
.w-plate .w-ico { width: 18px; height: 18px; color: var(--w-coral); }
.w-head__desc { flex: 1; min-width: 220px; font-size: 15px; color: var(--w-text-2); }
.w-head__more { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 600; font-size: 14px; color: var(--w-text-2); }
.w-head__more:hover { color: var(--w-cream); }
.w-head__count { font-size: 13px; color: var(--w-text-3); white-space: nowrap; }

/* большая плашка — для обложек и редких крупных заголовков */
.w-strip {
  display: grid; place-items: center; min-height: clamp(76px, 10vw, 120px); padding: 12px 24px; text-align: center;
  background: var(--w-grad-strip); border-radius: var(--w-r-lg);
  font: 500 clamp(22px, 4vw, 48px)/1 var(--w-font-display); text-transform: uppercase; color: var(--w-cream);
  text-shadow: 0 6px 14px rgba(51, 2, 17, .35);
}
.w-strip--sm { min-height: 64px; font-size: clamp(18px, 2.4vw, 28px); border-radius: var(--w-r); }

/* ── 6. Места под баннеры ──────────────────────────────────────────── */
/* 6.1 строка-объявление */
.w-ticker { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 8px;
  font-size: 14px; color: var(--w-text-2); background: var(--w-glass); border: 1px solid var(--w-line); border-radius: 12px; }
.w-ticker b { color: var(--w-cream); font-weight: 600; }
.w-ticker code { padding: 4px 7px; font: 400 10px/1 var(--w-font-pixel); color: var(--w-cream); background: var(--w-tint-2); border-radius: 6px; }
.w-ticker a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 8px; font-weight: 600; color: var(--w-cream); white-space: nowrap; }

/* 6.2 афиша: большой баннер и список слайдов справа */
.w-bb { display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-height: 470px; overflow: hidden;
  background: var(--w-night-2); border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow-lg); }
.w-bb__stage { position: relative; min-height: 470px; }
.w-bb__slide {
  position: absolute; inset: 0; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; padding: 40px 44px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.w-bb__slide.is-active { opacity: 1; visibility: visible; }
.w-bb__slide--brand { background: var(--w-grad-brand); }
.w-bb__slide--post { background: var(--w-grad-post); }
.w-bb__slide--dusk { background: var(--w-grad-dusk); }
.w-bb__slide--strip { background: var(--w-grad-strip); }
.w-bb__slide > * { max-width: 60%; }
.w-bb__slide--brand > * { max-width: 100%; }
.w-bb__word { width: min(500px, 84%); }
.w-bb__title { font-size: clamp(22px, 2.9vw, 38px); }
.w-bb__slide p { max-width: 46ch; color: var(--w-cream); opacity: .92; }
.w-bb__slide .w-row { margin-top: 4px; }
.w-bb__art {
  position: absolute; z-index: -1; right: 5%; top: 50%; width: min(300px, 32%); max-width: none !important;
  transform: translateY(-50%); filter: drop-shadow(0 16px 16px rgba(12, 0, 5, .5)); animation: w-float 5s ease-in-out infinite;
}
.w-bb__bill { display: flex; flex-direction: column; background: rgba(12, 0, 5, .5); border-left: 1px solid var(--w-line); }
.w-bb__tab {
  position: relative; flex: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: center;
  padding: 14px 18px; text-align: left; color: var(--w-text-2); border-bottom: 1px solid var(--w-line); transition: background .15s;
}
.w-bb__tab:last-child { border-bottom: 0; }
.w-bb__tab:hover { background: var(--w-glass); }
.w-bb__tab small { grid-row: span 2; align-self: center; font: 400 10px/1 var(--w-font-pixel); color: var(--w-text-3); }
.w-bb__tab b { font: 600 13px/1.25 var(--w-font-display); color: var(--w-cream); }
.w-bb__tab span { font-size: 13px; line-height: 1.35; }
.w-bb__tab.is-active { background: var(--w-glass-2); }
.w-bb__tab.is-active small { color: var(--w-coral); }
/* полоска-таймер: когда добегает — включается следующий слайд (см. welion.js) */
.w-bb__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--w-rasp); }
.w-bb__tab.is-active::after { animation: w-progress var(--bb-time, 7s) linear forwards; }
.w-bb.is-paused .w-bb__tab.is-active::after { animation-play-state: paused; }
@keyframes w-progress { to { width: var(--bb-w, 100%); } }
@keyframes w-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.w-pixels { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.w-pixels i { position: absolute; bottom: -24px; background: var(--w-cream); opacity: 0; animation: w-rise linear infinite; }
@keyframes w-rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .45; } 100% { transform: translateY(-520px); opacity: 0; } }
.w-pixel-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 36px; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='36'%3E%3Cpath fill='%23100609' d='M0 36V24H12V12H24V24H36V0H48V12H60V24H72V12H84V0H96V24H108V12H120V24H144V0H156V12H168V24H180V12H204V24H216V0H228V12H240V36Z'/%3E%3C/svg%3E") repeat-x bottom / 240px 36px;
}

/* 6.3 баннер-плитка: ряд из большого и двух малых, либо одиночный */
.w-promos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; min-height: 320px; }
.w-banner {
  position: relative; isolation: isolate; overflow: hidden; text-align: left; color: var(--w-cream);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; padding: 24px 26px;
  border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow);
  transition: transform .15s var(--w-ease), box-shadow .15s var(--w-ease);
}
a.w-banner:hover, button.w-banner:hover { transform: translateY(-2px); border-color: var(--w-line-2); }
.w-banner--lg { grid-row: span 2; gap: 16px; padding: 36px 40px; }
.w-banner--post { background: var(--w-grad-post); }
.w-banner--strip { background: linear-gradient(135deg, #8E1F39 0%, #5C1026 100%); }
.w-banner--ink { background: var(--w-grad-card); }
.w-banner > * { max-width: 62%; }
.w-banner__title { font-size: clamp(22px, 2.6vw, 36px); }
.w-banner b { font: 800 19px/1.15 var(--w-font-display); }
.w-banner p { font-size: 15px; opacity: .92; }
.w-banner__art { position: absolute; z-index: -1; right: 3%; top: 50%; width: 34%; max-width: none !important; transform: translateY(-50%); filter: drop-shadow(0 12px 12px rgba(12, 0, 5, .5)); }
.w-banner--lg .w-banner__art { right: 6%; width: min(260px, 30%); }
/* готовая картинка-баннер из админки: просто <img> во всю плитку */
.w-banner--image { padding: 0; }
.w-banner--image > img { max-width: none; width: 100%; height: 100%; object-fit: cover; }

/* ── 7. Главная ────────────────────────────────────────────────────── */
/* 7.1 выбор режима: две половины с косым стыком, активная раздвигается */
.w-duel { position: relative; display: flex; overflow: hidden; background: var(--w-night-2); border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow-lg); }
.w-duel__side { position: relative; isolation: isolate; overflow: hidden; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 36px 32px; transition: filter .3s var(--w-ease); }
.w-duel__side:hover, .w-duel__side:focus-within { filter: none; }
.w-duel:hover .w-duel__side:not(:hover), .w-duel:focus-within .w-duel__side:not(:focus-within) { filter: brightness(.55) saturate(.8); }
.w-duel__side--sv { background: radial-gradient(95% 120% at 82% 0%, rgba(236, 92, 104, .42) 0%, transparent 62%), linear-gradient(180deg, #46102A 0%, #1A0B10 100%); padding-right: 92px; }
.w-duel__side--rp { background: radial-gradient(95% 120% at 90% 0%, rgba(230, 59, 97, .34) 0%, transparent 62%), linear-gradient(180deg, #1A0B10 0%, #1B020B 100%); margin-left: -56px; padding-left: 96px; clip-path: polygon(56px 0, 100% 0, 100% 100%, 0 100%); }
.w-duel__art { flex: none; width: auto !important; max-width: 150px; max-height: 132px; margin-left: auto; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(12, 0, 5, .5)); transition: transform .4s var(--w-ease); }
.w-duel__side--rp .w-duel__art { max-width: 170px; }
.w-duel__side:hover .w-duel__art { transform: translateY(-6px) scale(1.06); }
.w-duel__head { display: flex; align-items: center; gap: 14px; width: 100%; height: 132px; }
.w-duel__head img { width: 118px; }
.w-duel__head h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; text-transform: uppercase; text-shadow: 0 4px 10px rgba(51, 2, 17, .35); }
.w-duel p { max-width: 42ch; min-height: 3.2em; color: var(--w-text-2); }
.w-duel__side > .w-btn { margin-top: auto; }
/* режим в разработке: половина приглушена, при наведении (на телефоне — по нажатию) по центру подсказка */
.w-duel .w-duel__side.is-soon, .w-duel:hover .w-duel__side.is-soon { filter: none; cursor: default; outline: none; box-shadow: inset 0 0 0 999px rgba(12, 4, 7, .45); }
.w-duel__side.is-soon > * { filter: brightness(.6) saturate(.5); transition: filter .2s; }
.w-duel__side.is-soon:hover > *, .w-duel__side.is-soon.is-tip > * { filter: brightness(.45) saturate(.4); }
.w-duel .w-duel__side.is-soon:hover .w-duel__art { transform: none; }
.w-duel:has(.is-soon:hover) .w-duel__side:not(.is-soon) { filter: none; }
.w-duel__side.is-soon[data-tip]::after { top: 50%; left: calc(50% + 20px); translate: -50% calc(-50% + 4px); padding: 10px 16px; border-radius: 10px; font-size: 14px; filter: none; }
.w-duel__side.is-soon[data-tip]:hover::after, .w-duel__side.is-soon[data-tip].is-tip::after, .w-duel__side.is-soon[data-tip]:focus-visible::after { translate: -50% -50%; }
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: rgba(12, 0, 5, .34); border: 1px solid var(--w-line); border-radius: 10px; }
.w-chips .w-ico { color: var(--w-coral); }
/* ровная сетка 2×2: чипы не переносятся по одному */
.w-chips--2 { display: grid; grid-template-columns: repeat(2, max-content); }

/* 7.2 путь в три шага */
.w-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.w-path__step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.w-path__step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px;
  font: 400 14px/1 var(--w-font-pixel); color: var(--w-cream); background: var(--w-tint-2);
  border: 1px solid var(--w-tint-line); border-radius: 10px; }
.w-path__step:not(:last-child)::after { content: ""; position: absolute; left: 56px; right: -8px; top: 20px; border-top: 1px dashed var(--w-line-2); }
.w-path__step h3 { font-size: 17px; }
.w-path__step p { font-size: 15px; color: var(--w-text-2); }
.w-path__step > .w-btn, .w-path__step > .w-copyfield, .w-path__step > .w-chips { margin-top: auto; }
/* нижний ряд шагов — три элемента одной высоты и одного вида */
.w-path__ctl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; width: 100%; margin-top: auto; }
.w-path__ctl > * { margin: 0; min-height: 48px; }
.w-copyfield { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; text-align: left;
  color: var(--w-cream); background: var(--w-well); border: 1px solid var(--w-line-2); border-radius: 12px;
  font: 400 12px/1.2 var(--w-font-pixel); transition: border-color .15s, background .15s; }
button.w-copyfield:hover { border-color: var(--w-tint-line); background: rgba(12, 0, 5, .55); }
.w-copyfield .w-ico { color: var(--w-text-3); }
.w-copyfield.is-copied .w-ico { color: var(--w-ok); }
.w-path .w-chips li { background: var(--w-well); }

/* 7.3 мозаика: плитки разного размера под ссылки, новости и баннеры */
.w-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 20px; }
.w-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px;
  background: var(--w-grad-card); border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow);
  transition: transform .15s var(--w-ease), border-color .15s, background .15s; }
a.w-tile:hover { transform: translateY(-3px); border-color: var(--w-tint-line); }
.w-tile--wide { grid-column: span 2; }
.w-tile--big { grid-column: span 2; grid-row: span 2; justify-content: flex-start; gap: 14px; padding: 26px; }
.w-tile--promo { color: var(--w-cream); background: linear-gradient(135deg, rgba(230, 59, 97, .32) 0%, rgba(230, 59, 97, .08) 100%), var(--w-surface); border-color: var(--w-tint-line); }
.w-tile__ico { position: absolute; top: 22px; left: 22px; width: 34px; height: 34px; color: var(--w-coral); }
.w-tile__go { position: absolute; top: 22px; right: 20px; width: 20px; height: 20px; opacity: .7; }
.w-tile b { font: 600 17px/1.2 var(--w-font-display); }
.w-tile small { font-size: 14px; color: var(--w-text-2); }
.w-tile h3 { font-size: 20px; }
.w-tile p { color: var(--w-text-2); }

.w-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: row; }
.w-rows li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--w-well); border: 1px solid var(--w-line); border-radius: 14px; }
.w-rows b { display: block; font: 700 14px/1.25 var(--w-font-display); }
.w-rows span { font-size: 14px; line-height: 1.4; color: var(--w-text-2); }
.w-rows--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-rows--num li { align-items: flex-start; }
.w-rows--num li::before { counter-increment: row; content: counter(row, decimal-leading-zero); flex: none; padding-top: 3px; font: 400 11px/1 var(--w-font-pixel); color: var(--w-rasp); }
.w-iconbox { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--w-coral);
  background: var(--w-tint); border: 1px solid var(--w-tint-line); border-radius: 12px; }
.w-iconbox .w-ico { width: 20px; height: 20px; }
.w-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--w-text-2); }
.w-checks li { display: flex; gap: 10px; align-items: flex-start; }
.w-checks .w-ico { color: var(--w-rasp); margin-top: .2em; }
.w-checks--bad .w-ico { color: var(--w-bad); }
.w-card { position: relative; padding: 24px; background: var(--w-grad-card); border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow); }

/* 7.4 плитки-ссылки в ряд: сколько есть — столько и делят ширину поровну */
.w-bento--auto { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); grid-auto-rows: minmax(160px, auto); }
/* плитка со значком: текст всегда начинается под значком, даже если заголовок в две строки */
.w-tile:has(> .w-tile__ico) { padding-top: 72px; }
.w-tile__handle { margin-top: 8px; font: 400 10px/1 var(--w-font-pixel); color: var(--w-text-3); }
.w-tile--link { justify-content: flex-start; }

/* 7.5 заголовок внутренней страницы */
.w-pagehead { display: grid; gap: 12px; padding-top: 12px; }
.w-pagehead h1 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.w-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }

/* ── 8. Подвал ─────────────────────────────────────────────────────── */
.w-foot { margin-top: auto; font-size: 13px; color: var(--w-text-3); border-top: 1px solid var(--w-line); }
.w-foot__in { width: min(100% - var(--w-gutter) * 2, var(--w-container)); margin-inline: auto; padding: 20px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.w-foot a { color: var(--w-text-2); }
.w-foot a:hover { color: var(--w-cream); }
.w-pay { display: flex; align-items: center; gap: 14px; }
.w-pay img { height: 17px; width: auto; opacity: .8; }
.w-foot__end { padding: 0 var(--w-gutter) 22px; text-align: center; font-size: 12px; color: var(--w-text-3); }

/* ── 9. Магазин ────────────────────────────────────────────────────── */
/* 9.1 липкая строка: режим, категории-якоря, поиск */
.w-bar { position: sticky; top: 0; z-index: 20; background: rgba(16, 6, 9, .74); border-bottom: 1px solid var(--w-line); -webkit-backdrop-filter: var(--w-blur); backdrop-filter: var(--w-blur); }
.w-bar__in { width: min(100% - var(--w-gutter) * 2, var(--w-container)); margin-inline: auto; padding: 12px 0; display: flex; align-items: center; gap: 14px; }
.w-seg { display: inline-flex; flex: none; padding: 4px; background: var(--w-well); border: 1px solid var(--w-line); border-radius: 14px; }
.w-seg button { padding: 9px 16px; border-radius: 10px; font: 600 14px/1 var(--w-font-body); color: var(--w-text-2); transition: color .15s, background .15s; }
.w-seg button:hover { color: var(--w-cream); }
.w-seg button.is-active { color: var(--w-cream); background: var(--w-grad-face); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.w-seg button.is-soon { color: var(--w-text-3); cursor: default; }
.w-seg button.is-soon:hover { color: var(--w-text-2); background: none; }
/* подсказка [data-tip]: маленькая плашка под элементом — по наведению, фокусу или нажатию (.is-tip) */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; z-index: 40; left: 50%; top: calc(100% + 8px); translate: -50% -4px; padding: 7px 10px; border-radius: 8px; background: var(--w-surface-2, #2A1219); box-shadow: inset 0 0 0 1px var(--w-line-2), 0 10px 24px -8px rgba(0, 0, 0, .6); font: 600 12px/1 var(--w-font-body); color: var(--w-cream); letter-spacing: 0; text-transform: none; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, translate .15s var(--w-ease); }
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip].is-tip::after { opacity: 1; translate: -50% 0; }
@media (hover: none) { [data-tip]:hover:not(.is-tip)::after { opacity: 0; } }
.w-cats { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.w-cats::-webkit-scrollbar { display: none; }
.w-cat { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 9px 12px; font-weight: 600; font-size: 14px; color: var(--w-text-2);
  border: 1px solid transparent; border-radius: 12px; transition: color .15s, border-color .15s, background .15s; }
.w-cat:hover { color: var(--w-cream); background: var(--w-glass); }
.w-cat.is-active { color: var(--w-cream); background: var(--w-tint); border-color: var(--w-tint-line); }
.w-search { flex: none; width: 240px; }

/* 9.2 полка категории и карточки */
.w-shelves { display: flex; flex-direction: column; gap: 44px; }
.w-shelf { scroll-margin-top: 92px; }
.w-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px 18px; }
.w-prod { position: relative; display: flex; flex-direction: column; overflow: hidden; cursor: pointer; text-align: left;
  background: var(--w-grad-card); border: 1px solid var(--w-line); border-radius: 18px; box-shadow: var(--w-shadow);
  transition: transform .15s var(--w-ease), border-color .15s; }
.w-prod:hover { transform: translateY(-3px); border-color: var(--w-tint-line); }
.w-prod__art { position: relative; aspect-ratio: 1 / .88; display: grid; place-items: center; background: radial-gradient(70% 70% at 50% 52%, rgba(230, 59, 97, .30) 0%, rgba(230, 59, 97, .06) 60%, transparent 100%); }
.w-prod__art img { width: 72%; transition: transform .2s var(--w-ease); filter: drop-shadow(0 14px 16px rgba(12, 0, 5, .5)); }
.w-prod:hover .w-prod__art img { transform: translateY(-4px) scale(1.06); }
.w-prod__badges { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.w-badge { padding: 5px 7px 4px; font: 400 9px/1 var(--w-font-pixel); text-transform: uppercase; color: var(--w-ink); background: var(--w-cream); border-radius: 6px; }
.w-badge--sale { color: var(--w-cream); background: var(--w-accent-bottom); }
.w-badge--tier { color: var(--w-cream); background: rgba(12, 0, 5, .55); box-shadow: inset 0 0 0 1px var(--w-line-2); }
.w-prod__bar { flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 12px 12px 14px 14px; background: rgba(12, 0, 5, .28); border-top: 1px solid var(--w-line); }
.w-prod__title { display: block; margin-bottom: 7px; font: 600 13px/1.25 var(--w-font-display); }
.w-prod__desc { font-size: 14px; line-height: 1.45; color: var(--w-text-2); }
.w-price { display: flex; flex-direction: column; gap: 3px; font: 800 17px/1 var(--w-font-display); white-space: nowrap; }
.w-price s { font: 500 13px/1 var(--w-font-body); color: var(--w-text-3); }
.w-price--lg { font-size: 28px; }
/* «+» — добавить в корзину одним нажатием, не открывая карточку */
.w-add { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-bottom: 3px; color: var(--w-cream);
  background: var(--w-grad-face); border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 3px 0 var(--w-accent-edge); transition: transform .12s var(--w-ease), box-shadow .12s var(--w-ease), filter .15s; }
.w-add:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 0 var(--w-accent-edge), var(--w-glow); }
.w-add:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 0 var(--w-accent-edge); }
/* широкая карточка: товар с описанием, занимает два места */
.w-prod--wide { grid-column: span 2; flex-direction: row; }
.w-prod--wide .w-prod__art { flex: 0 0 46%; aspect-ratio: auto; }
.w-prod--wide .w-prod__bar { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 18px; border-top: 0; border-left: 1px solid var(--w-line); }
.w-prod--wide .w-prod__title { margin: 0; font-size: 18px; }
.w-prod__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: auto; }
/* баннер внутри полки: встаёт в сетку как широкая карточка */
.w-prod--promo { grid-column: span 2; justify-content: center; align-items: flex-start; gap: 10px; padding: 20px 22px; color: var(--w-cream); background: linear-gradient(135deg, rgba(230, 59, 97, .34) 0%, rgba(230, 59, 97, .08) 100%), var(--w-surface); border-color: var(--w-tint-line); }
.w-prod--promo:hover { border-color: var(--w-rasp); }
.w-prod--promo h3 { font-size: 20px; }
.w-prod--promo p { font-size: 14px; opacity: .92; }
.w-empty { padding: 56px 16px; text-align: center; color: var(--w-text-3); border: 1px dashed var(--w-line-2); border-radius: var(--w-r-lg); }

/* 9.3 корзина-док: появляется снизу, когда в корзине что-то есть */
.w-dock { position: fixed; z-index: 60; bottom: 20px; left: calc(var(--w-rail) + (100% - var(--w-rail)) / 2);
  width: min(100% - var(--w-rail) - 40px, 660px); display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px;
  background: rgba(16, 6, 9, .78); border: 1px solid var(--w-line-2); border-radius: 18px; box-shadow: var(--w-shadow-lg);
  -webkit-backdrop-filter: var(--w-blur); backdrop-filter: var(--w-blur);
  transform: translate(-50%, 170%); transition: transform .3s var(--w-ease); }
.w-dock.is-open { transform: translate(-50%, 0); }
.w-dock__thumbs { display: flex; padding-left: 10px; }
.w-dock__thumbs img { width: 42px; height: 42px; margin-left: -10px; object-fit: contain; background: var(--w-surface-2); border: 1px solid var(--w-line); border-radius: 11px; }
.w-dock__info { display: grid; gap: 5px; margin-right: auto; }
.w-dock__info small { font-size: 13px; color: var(--w-text-2); }
.w-dock__info b { font: 800 19px/1 var(--w-font-display); }
.w-dock .w-btn { margin-bottom: 3px; }

/* ── 10. Формы ─────────────────────────────────────────────────────── */
.w-field { position: relative; display: block; }
.w-field > .w-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--w-text-3); pointer-events: none; }
.w-input { width: 100%; height: 48px; padding: 0 14px 0 44px; color: var(--w-cream);
  background: var(--w-well); border: 1px solid var(--w-line-2); border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s; }
.w-input::placeholder { color: var(--w-text-3); }
.w-input:hover { border-color: rgba(255, 235, 228, .3); }
.w-input:focus { border-color: var(--w-rasp); box-shadow: 0 0 0 3px rgba(230, 59, 97, .22); }
.w-stepper { display: inline-flex; align-items: center; background: var(--w-well); border: 1px solid var(--w-line-2); border-radius: 12px; overflow: hidden; }
.w-stepper button { width: 38px; height: 38px; font: 600 18px/1 var(--w-font-body); color: var(--w-text-2); transition: background .12s, color .12s; }
.w-stepper button:hover { background: var(--w-tint-2); color: var(--w-cream); }
.w-stepper output { min-width: 44px; text-align: center; font: 600 15px/1 var(--w-font-body); font-variant-numeric: tabular-nums; }
.w-label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--w-text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ── 11. Окна: карточка товара сбоку, оформление в одном окне ──────── */
.w-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: rgba(14, 0, 6, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.w-overlay.is-open { opacity: 1; visibility: visible; }
.w-dialog { position: relative; width: min(100%, 920px); background: var(--w-grad-card);
  border: 1px solid var(--w-line-2); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow-lg);
  transform: translateY(14px); transition: transform .22s var(--w-ease); }
.w-overlay.is-open .w-dialog { transform: none; }
.w-dialog--sm { width: min(100%, 520px); }
.w-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--w-line); border-radius: 19px 19px 0 0; background: linear-gradient(180deg, rgba(230, 59, 97, .2), rgba(230, 59, 97, .05)); font: 600 16px/1.2 var(--w-font-display); }
.w-dialog__body { padding: 22px; }
.w-x { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: var(--w-cream); background: var(--w-glass-2); border: 1px solid var(--w-line); border-radius: 10px; transition: background .12s; }
.w-x:hover { background: rgba(255, 235, 228, .16); }

.w-sheet { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(100%, 460px); display: flex; flex-direction: column;
  background: var(--w-surface); border-left: 1px solid var(--w-line-2); box-shadow: var(--w-shadow-lg);
  transform: translateX(105%); transition: transform .26s var(--w-ease); }
.w-sheet.is-open { transform: none; }
.w-sheet__art { position: relative; flex: none; display: grid; place-items: center; min-height: 270px; padding: 24px; background: var(--w-grad-post); }
.w-sheet__art img { width: 58%; filter: drop-shadow(0 18px 20px rgba(12, 0, 5, .55)); }
.w-sheet__art .w-x { position: absolute; top: 16px; right: 16px; }
.w-sheet__body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.w-sheet__body h3 { font-size: 26px; }
.w-sheet__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 24px 18px; background: var(--w-night); border-top: 1px solid var(--w-line); }

.w-checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.w-checkout__order { display: flex; flex-direction: column; gap: 10px; padding: 22px; max-height: min(64vh, 560px); overflow-y: auto; }
.w-checkout__pay { display: grid; align-content: start; gap: 10px; padding: 22px; border-left: 1px solid var(--w-line); }
.w-line-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 10px; background: var(--w-night-2); border: 1px solid var(--w-line); border-radius: 14px; }
.w-line-item img { width: 56px; height: 56px; object-fit: contain; }
.w-line-item > div:not(.w-stepper) { min-width: 0; }
.w-line-item b { display: block; overflow-wrap: anywhere; margin-bottom: 6px; font: 600 13px/1.25 var(--w-font-display); }
.w-line-item small { font-size: 14px; color: var(--w-text-2); }
.w-line-item .w-stepper button { width: 30px; height: 30px; font-size: 16px; }
.w-line-item .w-stepper output { min-width: 28px; font-size: 14px; }
.w-methods { display: grid; gap: 8px; }
.w-method { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; text-align: left; background: var(--w-well); border: 1px solid var(--w-line); border-radius: 14px; transition: border-color .15s, background .15s; }
.w-method:hover { border-color: var(--w-line-2); }
.w-method img { width: 32px; height: 32px; }
.w-method b { display: block; font: 600 13px/1.2 var(--w-font-display); }
.w-method small { font-size: 13px; color: var(--w-text-3); }
.w-method > .w-ico { margin-left: auto; color: var(--w-text-3); }
.w-method.is-active { border-color: var(--w-tint-line); background: var(--w-tint); }
.w-method.is-active > .w-ico { color: var(--w-coral); }
.w-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.w-total span { color: var(--w-text-2); }

.w-toast { position: fixed; left: 50%; top: 20px; z-index: 120; display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  font-weight: 600; color: var(--w-ink); background: var(--w-cream); border-radius: 12px; box-shadow: var(--w-shadow-lg);
  transform: translate(-50%, -180%); transition: transform .28s var(--w-ease); }
.w-toast.is-open { transform: translate(-50%, 0); }

/* ── 12. Сотрудничество: закреплённое предложение слева, условия справа ── */
.w-split { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 32px; align-items: start; }
.w-pitch { position: sticky; top: 24px; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px 28px 36px;
  background: var(--w-grad-brand); border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow-lg); }
.w-pitch h1 { font-size: clamp(26px, 2.5vw, 34px); }
.w-pitch p { color: var(--w-cream); opacity: .93; }
.w-facts { display: grid; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.w-facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 14px; background: rgba(23, 1, 10, .55); border-radius: 12px; }
.w-facts b { font: 800 15px/1 var(--w-font-display); white-space: nowrap; }
.w-facts span { font-size: 13px; text-align: right; opacity: .9; }
.w-split__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.w-rates { display: grid; gap: 14px; }
.w-rate { display: grid; grid-template-columns: 190px 200px minmax(0, 1fr); align-items: center; gap: 20px; padding: 20px 22px; }
.w-rate h3 { margin-top: 10px; font-size: 16px; }
.w-rate__sum { font: 900 22px/1 var(--w-font-display); }
.w-rate__sum small { display: block; margin-top: 8px; font: 500 13px/1.3 var(--w-font-body); color: var(--w-text-2); }
.w-rate .w-checks { font-size: 14px; }
.w-rate--top { background: var(--w-tint); border-color: var(--w-tint-line); }
.w-rate--top .w-checks, .w-rate--top .w-rate__sum small, .w-rate--top .w-checks .w-ico { color: var(--w-cream); }
.w-twin { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.w-twin > div { padding: 24px; }
.w-twin > div + div { border-left: 1px solid var(--w-line); }
.w-twin h3 { margin-bottom: 14px; font-size: 16px; }
.w-faq { display: grid; gap: 10px; }
.w-faq details { background: var(--w-grad-card); border: 1px solid var(--w-line); border-radius: var(--w-r); }
.w-faq details[open] { border-color: var(--w-tint-line); }
.w-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 700; }
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; font: 600 18px/1 var(--w-font-body); color: var(--w-coral); background: var(--w-tint); border: 1px solid var(--w-tint-line); border-radius: 8px; }
.w-faq details[open] summary::after { content: "–"; }
.w-faq details p { padding: 0 18px 16px; color: var(--w-text-2); }
.w-note { padding: 14px 18px; font-size: 14px; color: var(--w-text-2); background: var(--w-glass); border: 1px solid var(--w-line); border-radius: 12px; }

/* ── 13. 404 и утилиты ─────────────────────────────────────────────── */
.w-void { position: relative; isolation: isolate; overflow: hidden; flex: 1; min-height: 70vh; display: grid; place-items: center; padding: 48px 24px 80px; text-align: center;
  background: var(--w-grad-brand); border: 1px solid var(--w-line); border-radius: var(--w-r-lg); box-shadow: var(--w-shadow-lg); }
.w-void__num { font: 400 clamp(72px, 16vw, 200px)/1 var(--w-font-pixel); color: var(--w-cream);
  text-shadow: 0 6px 0 rgba(51, 2, 17, .45), 0 30px 60px rgba(51, 2, 17, .5); }
.w-void h1 { margin-top: 36px; font-size: clamp(22px, 3vw, 36px); }
.w-void .w-lead { margin: 20px auto 28px; color: var(--w-cream); }

.w-stack { display: grid; gap: var(--gap, 16px); }
.w-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 14px); }
.w-center { text-align: center; }
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── Адаптив ───────────────────────────────────────────────────────── */
/* узкий ноутбук: панель сжимается до значков */
@media (max-width: 1240px) {
  :root { --w-rail: 84px; }
  .w-rail { align-items: center; padding: 18px 10px; }
  .w-rail__word, .w-rail__nav span, .w-server__ip, .w-server__ver, .w-server .w-btn span { display: none; }
  .w-rail__w { display: block; }
  .w-rail__nav a { justify-content: center; width: 56px; padding: 0; }
  .w-rail__nav .w-count { position: absolute; top: -8px; right: -8px; }
  .w-server { padding: 8px; justify-items: center; }
  .w-server__top { flex-direction: column; gap: 8px; }
  .w-server__top span { font-size: 0; gap: 0; }
  .w-server .w-btn { padding: 0 12px; }
  .w-rail__social { flex-direction: column; }
  .w-bb { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 1020px) {
  .w-bb { grid-template-columns: 1fr; }
  .w-bb__bill { flex-direction: row; border-left: 0; border-top: 1px solid var(--w-line); }
  .w-bb__tab { border-bottom: 0; border-right: 1px solid var(--w-line); padding: 12px 14px; }
  .w-bb__tab span { display: none; }
  .w-duel { flex-direction: column; }
  .w-duel__side { flex: none; }
  .w-duel__side--sv { padding-right: 36px; }
  .w-duel__side--rp { margin-left: 0; padding-left: 36px; clip-path: none; }
  .w-duel__side.is-soon[data-tip]::after { left: 50%; }
  .w-promos { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .w-banner--lg { grid-column: span 2; grid-row: auto; min-height: 260px; }
  .w-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-split { grid-template-columns: 1fr; }
  .w-pitch { position: relative; top: auto; }   /* не static: живая сцена внутри держится в рамке, а не на всю страницу */
  .w-rate { grid-template-columns: 1fr 1fr; }
  .w-rate .w-checks { grid-column: span 2; }
  .w-checkout { grid-template-columns: 1fr; }
  .w-checkout__order { max-height: 240px; border-bottom: 1px solid var(--w-line); }
  .w-checkout__pay { border-left: 0; }
  .w-bar__in { flex-wrap: wrap; }
  .w-cats { order: 3; flex-basis: 100%; }
  .w-search { flex: 1; }
}
@media (max-width: 760px) {
  :root { --w-gutter: 16px; }
  body { padding-bottom: 68px; }
  .w-shell { grid-template-columns: 1fr; }
  .w-rail { display: none; }
  .w-topbar { display: flex; }
  .w-tabbar { display: grid; }
  .w-stage { padding-top: 16px; gap: 36px; }
  .w-bb, .w-bb__stage { min-height: 480px; }
  .w-bb__slide { padding: 28px 22px; }
  .w-bb__title, .w-pitch h1, .w-void h1 { font-size: clamp(17px, 5vw, 22px); }
  .w-grid-2 { grid-template-columns: 1fr; }
  .w-duel__side { padding: 22px 22px 26px; }
  .w-duel__head { height: 104px; }
  .w-duel__art, .w-duel__side--rp .w-duel__art { max-width: 104px; max-height: 96px; }
  .w-duel__head img:first-child { width: 96px; }
  .w-chips--2 { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .w-chips li { white-space: normal; }
  .w-path__ctl { grid-auto-flow: row; }
  .w-bb__slide > * { max-width: 100%; }
  .w-bb__art { top: auto; bottom: 6%; right: 4%; width: 120px; opacity: .5; transform: none; }
  .w-path { grid-template-columns: 1fr; gap: 28px; }
  .w-path__step::after { display: none; }
  .w-bento { grid-template-columns: 1fr 1fr; gap: 14px; }
  .w-tile--big, .w-tile--wide { grid-column: span 2; }
  .w-promos { grid-template-columns: 1fr; }
  .w-banner--lg { grid-column: auto; }
  .w-banner > * { max-width: 70%; }
  .w-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .w-prod--wide { flex-direction: column; }
  .w-prod--wide .w-prod__art { flex: none; aspect-ratio: 2 / 1; }
  .w-prod--wide .w-prod__art img { width: 40%; }
  .w-prod--wide .w-prod__bar { border-left: 0; border-top: 1px solid var(--w-line); }
  .w-dock { left: 50%; bottom: 80px; width: calc(100% - 24px); }
  .w-rows--2, .w-twin, .w-rate { grid-template-columns: 1fr; }
  .w-twin > div + div { border-left: 0; border-top: 1px solid var(--w-line); }
  .w-rate .w-checks { grid-column: auto; }
  .w-ticker a span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* без движения, но смена состояния остаётся заметной: цвет и прозрачность меняются мягко */
  *, *::before, *::after { animation: none !important; transition-property: color, background-color, border-color, opacity, box-shadow !important; transition-duration: .15s !important; }
  html { scroll-behavior: auto; }
}

/* Оболочка, афиша и формы на узком экране */
.w-split > *, .w-bb__stage, .w-bb__bill, .w-void__content { min-width: 0; }

.w-pitch .w-pill { margin-top: .2em; }
.w-split__main > section { display: grid; gap: 16px; }
.w-split__main .w-plate { justify-self: start; }
.w-split__main .w-rate { grid-template-columns: minmax(120px,.8fr) minmax(0,1.2fr); }
.w-partner-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.w-partner-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--w-line); }
.w-partner-steps li:last-child { border-bottom: 0; }
.w-partner-steps li::before { content: counter(step); grid-row: span 2; align-self: start; display: grid; place-items: center; width: 34px; height: 34px; font: 400 12px/1 var(--w-font-pixel); color: var(--w-cream); background: var(--w-tint-2); border: 1px solid var(--w-tint-line); border-radius: 9px; }
.w-partner-steps p { color: var(--w-text-2); }
.partner-checks { list-style: disc; padding-left: 36px; }
.w-void__content { position: relative; width: 100%; }
.w-void__content p { max-width: 45ch; }
.w-void .w-pixel-edge { z-index: 0; }
.w-shelf { scroll-margin-top: calc(var(--shop-bar-height, 80px) + 12px); }
.has-cart .w-foot { padding-bottom: 108px; }
.w-sheet:not(.is-open), .w-dock:not(.is-open) { visibility: hidden; }
.w-checkout__pay label { display: grid; gap: 5px; color: var(--w-text-2); font-size: 14px; }
.w-checkout__pay input { padding-inline: 12px; font-size: 16px; }
.w-checkout__pay label small { display: contents; }
#checkout .w-dialog { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
#checkout .w-dialog__head, .w-order-footer { flex: none; }
.w-checkout { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.w-order-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 18px; border-top: 1px solid var(--w-line); }
.w-order-footer .w-total { display: grid; margin: 0; gap: 5px; }
.w-order-footer .w-total span { font-size: 13px; }
:focus-visible { outline: 3px solid var(--w-cream); outline-offset: 2px; }
@media (max-width: 1020px) {
  .w-bb { grid-template-columns: minmax(0,1fr); }
  .w-bb__bill { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .w-bb__tab { min-width: 0; }
  .w-checkout__order { max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  body:has(.w-tabbar) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .w-tabbar { height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); align-items: center; }
  .w-tabbar a { min-height: 44px; align-content: center; }
  .w-dock { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .w-bb__bill { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .w-bb__tab { padding: 12px; column-gap: 8px; min-height: 46px; }
  .w-bb__tab b { font-size: 11px; }
  .w-bb__stage { display: grid; min-height: 420px; }
  .w-bb__slide { position: relative; grid-area: 1 / 1; min-width: 0; gap: 14px; padding: 24px 18px; }
  .w-bb__word { width: min(100%,370px); height: auto; }
  .w-bb__slide .w-btn { min-height: 44px; font-size: 12px; padding-inline: 14px; }
  .w-bb__slide .w-row { gap: 12px; }
  .w-prod__bar { flex-wrap: wrap; align-items: center; padding: 10px; }
  .w-prod__bar > span { min-width: 0; }
  .w-prod__title { overflow-wrap: anywhere; }
  .w-prod__badges { flex-wrap: wrap; }
  .w-sheet__art { min-height: 0; height: min(28dvh,230px); }
  .w-sheet__art img { max-height: 100%; object-fit: contain; }
  .w-sheet__foot, .w-order-footer { padding-bottom: max(16px,env(safe-area-inset-bottom)); }
  #checkout { padding: 8px; }
  #checkout .w-dialog { max-height: calc(100dvh - 16px); }
  .w-dock__thumbs img:not(:first-child) { display: none; }
  .w-pitch { padding: 24px; }
  .w-split__main .w-rate { grid-template-columns: 1fr; gap: 6px; }
  .w-void { padding-inline: 12px; }
  .w-void h1 { font-size: clamp(18px,5vw,30px); }
  .w-search { min-width: 0; }
  .w-bar__in { gap: 8px; }
  .w-line-item { grid-template-columns: 40px minmax(0,1fr) auto; gap: 7px; }
  .w-line-item img { width: 40px; }
  .w-line-item .w-stepper button { min-height: 42px; }
}
@media (max-width: 440px) {
  .w-seg button { padding-inline: 10px; }
  .w-search input { font-size: 16px; padding-left: 32px; }
  .w-search .w-ico { left: 10px; }
  .w-checkout__order, .w-checkout__pay { padding: 14px; }
  .w-sheet__foot { gap: 8px; padding-inline: 12px; }
  .w-sheet__foot .w-price { font-size: 20px; }
  .w-dock__thumbs { display: none; }
}


.w-product-trigger { color: inherit; font: inherit; text-align: left; }
.w-product-trigger::after { content: ""; position: absolute; inset: 0; }
.w-prod:has(:focus-visible) { outline: 3px solid var(--w-cream); outline-offset: 2px; }
.w-prod .w-add { position: relative; z-index: 2; }
.w-prod .w-prod__title { font: 600 13px/1.3 var(--w-font-display); }
.w-prod--wide .w-prod__title { font-size: 18px; }

.w-shop-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-shop-title a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--w-text-2); }
#shelves { scroll-margin-top: calc(var(--shop-bar-height, 80px) + 12px); }
