/* Дополнения к макетам: состояния формы, cookie-баннер, юридические страницы, доступность */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); text-decoration: none; }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mo-form__status { display: none; }
.mo-form__status.is-visible { display: flex; }
.mo-form__status--error { color: var(--rec-text); }
.mo-form.is-sending .mo-btn[type="submit"] { opacity: .6; pointer-events: none; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 720px; margin: 0 auto; display: none; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-6); border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font: 400 14px/20px var(--font-text); color: var(--ink-muted); }
.cookie.is-visible { display: flex; }
.cookie p { margin: 0; flex: 1; }
.cookie__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 600px) { .cookie { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 18px; } .cookie__actions { flex-wrap: nowrap; } .cookie__actions .mo-btn { flex: 1 1 0; justify-content: center; padding-left: 8px; padding-right: 8px; } }

.legal { max-width: 760px; }
.legal h1 { margin: 0 0 var(--space-6); font: 700 40px/46px var(--font-display); letter-spacing: -0.02em; }
.legal h2 { margin: var(--space-8) 0 var(--space-3); font: 600 22px/28px var(--font-display); }
.legal p, .legal li { font: 400 16px/26px var(--font-text); color: var(--ink); }
.legal .draft { padding: var(--space-4) var(--space-6); border-radius: var(--radius-m); background: var(--rec-tint); color: var(--ink); }
@media (max-width: 900px) { .legal h1 { font-size: 28px; line-height: 34px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Подвал: кнопка «Настройки cookie» выглядит как ссылка */
.mo-footer__cookie { padding: 0; border: 0; background: none; color: var(--on-night); font: inherit; cursor: pointer; }
.mo-footer__cookie:hover { color: var(--rec); }
.mo-footer__cookie:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Юридические страницы: таблицы и списки */
.legal ul { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.legal li { margin-bottom: var(--space-2); }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal__table { margin: var(--space-4) 0 var(--space-6); overflow-x: auto; }
.legal table { width: 100%; min-width: 640px; border-collapse: collapse; font: 400 14px/21px var(--font-text); }
.legal th, .legal td { padding: var(--space-3); border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: var(--surface); font-weight: 600; }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Блог ---------- */
.blog-post h3 { margin: var(--space-6) 0 var(--space-2); font: 600 18px/26px var(--font-text); }
.blog-post ol { margin: 0 0 var(--space-4); padding-left: 1.4em; }
.blog-post__crumbs { margin: 0 0 var(--space-3); font: 500 14px/20px var(--font-text); }
.blog-post__meta { margin: 0 0 var(--space-8); color: var(--ink-muted) !important; font-size: 14px !important; }
.blog-tool { margin-top: var(--space-12); padding: var(--space-8); border-radius: var(--radius-l); background: var(--night); color: var(--on-night); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.blog-tool h2 { margin: 0 !important; color: var(--on-night); }
.blog-tool p { margin: 0; color: var(--on-night) !important; opacity: .85; }
.blog-tool .mo-btn { text-decoration: none; }
.blog-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.blog-list__item a { display: flex; flex-direction: column; gap: 4px; padding: var(--space-6); border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; }
.blog-list__date { font: 500 12px/16px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.blog-list__title { font: 600 20px/28px var(--font-text); color: var(--ink); }
.blog-list__desc { font: 400 15px/22px var(--font-text); color: var(--ink-muted); }

/* ---------- Промокод в форме оплаты (pay.js) ---------- */
.promo { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.promo__toggle { padding: 0; border: 0; background: none; color: var(--ink); font: 500 14px/20px var(--font-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.promo__toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.promo__box { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.promo__box[hidden] { display: none; }
.promo__row { display: flex; gap: var(--space-2); align-items: stretch; }
.promo__row .mo-field__input { flex: 1 1 0; width: auto; min-width: 0; text-transform: uppercase; }
.promo__row .mo-btn { flex: none; width: auto; min-height: 52px; }
.promo__info { margin: 0; font: 500 14px/20px var(--font-text); color: var(--ink-muted); }
.promo__info--ok { color: var(--ink); }
.promo__info--bad { color: var(--rec-text); }
.promo__info[hidden] { display: none; }
.promo-old { margin-right: 8px; font-size: .6em; font-weight: 400; color: var(--ink-muted); text-decoration: line-through; }
.promo-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--paper, #fff); font: 600 13px/20px var(--font-text); white-space: nowrap; vertical-align: middle; }
[data-pay-price] .promo-badge { margin-left: 8px; font-size: 13px; }

/* ---------- Закрытая страница кодов ---------- */
.promo-admin__main { max-width: 1040px; margin: 0 auto; padding: var(--space-8) 16px var(--space-12); display: flex; flex-direction: column; gap: var(--space-6); }
.promo-admin__main h1 { margin: 0; font: 700 32px/40px var(--font-display); }
.promo-admin__main h2:not(.mo-form__title) { margin: var(--space-4) 0 0; font: 600 20px/28px var(--font-text); }
.promo-admin__form { max-width: none; }
.promo-admin__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); align-items: start; }
.promo-admin__grid .mo-field { min-width: 0; }
.promo-admin__grid .mo-field__input { box-sizing: border-box; min-width: 0; }
.promo-admin__wide { grid-column: 1 / -1; }
.promo-admin__row { display: flex; gap: var(--space-2); }
.promo-admin__row .mo-field__input { flex: 1 1 0; width: auto; min-width: 0; }
.promo-admin__row .mo-btn { flex: none; width: auto; min-height: 52px; padding: 0 18px; }
.promo-admin__scroll { overflow-x: auto; }
.promo-admin__table { width: 100%; min-width: 760px; border-collapse: collapse; font: 400 14px/20px var(--font-text); }
.promo-admin__table th, .promo-admin__table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.promo-admin__table th { font-weight: 600; background: var(--surface); }
.promo-admin__table .is-off { color: var(--ink-subtle); }
.promo-admin__table .is-off .promo-badge { background: var(--ink-subtle); }
.promo-admin__code { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.promo-uses { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.promo-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.promo-bar i { display: block; height: 100%; background: var(--ink); }
.promo-bar i.is-open { opacity: .35; }
.promo-admin__form [hidden] { display: none; }

/* Режим администратора на страницах товаров (pay.js, только при входе в /panel/) */
.pay-admin { margin: 0 0 var(--space-3); padding: 6px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); background: var(--surface-sunken); color: var(--ink-muted); font: 500 13px/20px var(--font-text); }
.pay-admin__off { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pay-admin__note { margin: var(--space-2) 0 0; color: var(--ink-muted); font: 400 13px/20px var(--font-text); }

/* Страница оплаты счёта /pay/ */
.invoice { max-width: 520px; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.invoice h2 { margin: 0 0 var(--space-2); font: 600 22px/28px var(--font-display); }
.invoice__sum { margin: 0 0 var(--space-3); font: 700 36px/42px var(--font-display); }
.invoice__client, .invoice__until, .invoice__note { color: var(--ink-muted); font: 400 14px/20px var(--font-text); }
.invoice__offer { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-4) 0; font: 400 14px/20px var(--font-text); }
.invoice__offer input { margin-top: 3px; }
.invoice__status { margin: var(--space-3) 0 0; color: var(--rec-text); font: 500 14px/20px var(--font-text); }

/* Плашка над шапкой (main.js, настраивается в админке) */
.mo-banner { background: var(--night); color: var(--on-night); font: 500 14px/20px var(--font-text); }
.mo-banner__in { display: flex; align-items: center; justify-content: center; gap: var(--space-3); max-width: var(--container); margin: 0 auto; padding: 8px 48px; position: relative; text-align: center; }
.mo-banner__text { color: inherit; text-decoration: none; }
a.mo-banner__text { text-decoration: underline; text-underline-offset: 3px; }
.mo-banner__x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font: 400 22px/1 var(--font-text); cursor: pointer; }
.mo-banner__x:hover { background: rgba(255,255,255,.14); }
@media (max-width: 600px) { .mo-banner__in { padding: 8px 44px 8px 16px; text-align: left; justify-content: flex-start; } }

/* игра */
.igra { background: var(--night); color: var(--on-night); border-radius: var(--radius-l); padding: 24px clamp(12px, 3vw, 32px) 20px; display: grid; gap: 16px; }
.igra__head .mo-hero__title { margin: 8px 0 6px; font-size: clamp(26px, 4.2vw, 44px); line-height: 1.1; }
.igra__head .mo-hero__lead { margin: 0; max-width: 640px; }
.ig { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; width: 100%; max-width: 1000px; margin: 0 auto; }
.ig-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0e0c10; border-radius: 16px; overflow: hidden; outline: 1px solid #2c2730; outline-offset: -1px; display: grid; place-items: center; }
.ig-stage canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; flex: none; grid-area: 1 / 1; }
.ig-stage #ig-tx { pointer-events: none; }
.ig-hud { position: absolute; left: 10px; right: 10px; top: 8px; display: flex; flex-wrap: wrap; gap: 2px 14px; font: 500 14px/18px var(--font-mono); color: #f7f5f2; pointer-events: none; text-shadow: 0 1px 0 #000; }
.ig-hud b { color: #f2c14e; font-weight: 700; }
.ig-hud .ig-r { margin-left: auto; }
.ig-combo { color: #ff5a4e; font-weight: 700; opacity: 0; transition: opacity .2s; }
.ig-combo.on { opacity: 1; }
.ig-toast { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: calc(100% - 20px); margin: 0; padding: 5px 12px; border-radius: 8px; background: rgba(23,20,26,.9); color: #f7f5f2; font: 500 14px/19px var(--font-text); text-align: center; pointer-events: none; }
.ig-toast[hidden] { display: none; }
.ig-card { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14,12,16,.88); padding: 12px; overflow: auto; }
.ig-card[hidden] { display: none; }
.ig-card__box, .ig-nick, .ig-stage { box-sizing: border-box; }
.ig-card__box { max-width: 580px; width: 100%; display: grid; gap: 10px; padding: 18px 20px; border-radius: 18px; background: #221e24; border: 1px solid #3d3640; color: #f3f0ec; }
.ig-card h2 { margin: 0; font: 700 20px/26px var(--font-display); color: #f7f5f2; }
.ig-card p { margin: 0; color: #d9d3ce; font-size: 14px; line-height: 21px; }
.ig-k { font: 500 11px/14px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #ff5a4e; }
.ig-small { font-size: 12px !important; line-height: 17px !important; color: #b4adb6 !important; }
.ig-big { font: 600 18px/24px var(--font-display) !important; color: #f2c14e !important; }
.ig-legend { margin: 0; padding: 0 0 0 18px; display: grid; gap: 2px; font-size: 13px; line-height: 19px; color: #d9d3ce; }
.ig-legend b { color: #f7f5f2; font-weight: 600; }
.ig-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ig-score { display: grid; gap: 2px; font: 500 13px/20px var(--font-mono); color: #d9d3ce; }
.ig-row { display: flex; justify-content: space-between; gap: 16px; }
.ig-row b { color: #f7f5f2; font-weight: 500; }
.ig-total { border-top: 1px solid #3d3640; padding-top: 4px; font-size: 15px; }
.ig-total b { color: #f2c14e; }
.ig-rate { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ig-rate p { flex-basis: 100%; }
.ig-nick { flex: 1 1 160px; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #3d3640; background: #17141a; color: #f7f5f2; font: 500 15px/1 var(--font-text); }
.ig-nick:focus-visible, .ig-stage button:focus-visible, .ig-pad button:focus-visible, .ig-bar button:focus-visible { outline: 3px solid var(--rec); outline-offset: 2px; }
.ig-codebox { display: grid; gap: 8px; }
.ig-code { justify-self: start; padding: 10px 16px; border-radius: 10px; background: #f7f5f2; color: #221e24; font: 700 22px/1 var(--font-mono); letter-spacing: .06em; user-select: all; }
.ig-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 500 14px/18px var(--font-mono); color: #b4adb6; }
.ig-bar__btns { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.igra .mo-btn--secondary { background: transparent; color: #f7f5f2; box-shadow: inset 0 0 0 1.5px #6b646e; }
.igra .mo-btn--secondary:hover { background: #2c2730; color: #fff; }
.ig-goal { margin: 0; padding: 8px 12px; border-radius: 10px; background: #221e24; color: #f7f5f2; font: 500 14px/20px var(--font-text); }
.ig-goal:empty { display: none; }
.ig-goal__last { margin-left: 10px; color: #9fe0bd; font-weight: 600; }
.ig-goal__last::before { content: '· '; color: #b4adb6; }
.ig-goal__last.is-bad { color: #ffa8a1; }
.ig-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid #3d3640; font-size: 14px; line-height: 22px; color: #d9d3ce; }
.ig-keys b { color: #f7f5f2; font-weight: 600; }
.ig-keys kbd, .ig-ctl kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; border: 1px solid #3d3640; border-bottom-width: 3px; background: #2c2730; font: 600 14px/1 var(--font-mono); color: #f7f5f2; }
.ig-kk { white-space: nowrap; }
.ig-hints { position: absolute; inset: 0; pointer-events: none; }
.ig-hint { position: absolute; transform: translate(-50%, -100%); padding: 2px 10px; border-left: 3px solid #f2c14e; background: rgba(23,20,26,.92); color: #f7f5f2; font: 500 14px/20px var(--font-text); white-space: nowrap; }
@media (max-width: 700px) { .ig-hint { font-size: 14px; line-height: 18px; padding: 1px 6px; } }
.ig-pad, .ig-keys[hidden], .ig-pad[hidden] { display: none; }
.ig-pad { justify-content: space-between; align-items: flex-end; gap: 12px; }
.ig-pad > div { display: flex; gap: 10px; align-items: flex-end; }
.ig-pad button { display: grid; place-items: center; align-content: center; gap: 2px; width: 64px; min-height: 58px; padding: 4px 2px; border-radius: 14px; border: 1px solid #3d3640; background: #221e24; color: #f7f5f2; touch-action: none; user-select: none; -webkit-user-select: none; }
.ig-pad__a { font: 600 20px/1 var(--font-text); }
.ig-pad__c { font: 500 12px/14px var(--font-text); color: #b4adb6; }
.ig-pad button.ig-fire { width: 96px; background: var(--rec-fill); border-color: var(--rec-fill); }
.ig-pad button.ig-fire .ig-pad__c { color: #fff; }
.ig-pad > .ig-dpad { display: grid; grid-template-columns: repeat(3, 58px); gap: 6px; }
.ig-dpad button { width: 58px; min-height: 50px; }
.ig-dpad [data-k="up"] { grid-area: 1 / 2; } .ig-dpad [data-k="left"] { grid-area: 2 / 1; } .ig-dpad [data-k="down"] { grid-area: 2 / 2; } .ig-dpad [data-k="right"] { grid-area: 2 / 3; }
@media (pointer: coarse), (max-width: 700px) { .ig-pad:not([hidden]) { display: flex; } .ig-keys { display: none; } }
@media (max-width: 420px) { .ig-pad { gap: 6px; } .ig-pad > div { gap: 6px; } .ig-pad button { width: 54px; } .ig-pad button.ig-fire { width: 84px; } .ig-pad > .ig-dpad { grid-template-columns: repeat(3, 50px); gap: 4px; } .ig-dpad button { width: 50px; } }
.ig-how { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4px 18px; }
.ig-how p { margin: 0 0 6px; }
.ig-h { display: block; margin-bottom: 4px; font: 600 11px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #f2c14e; }
.ig-ctl { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; line-height: 20px; color: #d9d3ce; }
#ig-map .ig-card__box { max-width: 720px; }
.ig-maphead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.ig-mapcount { font: 500 14px/20px var(--font-mono) !important; }
.ig-mapcount b { color: #f2c14e; font-weight: 700; }
.ig-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ig-tile { display: grid; align-content: start; gap: 2px; min-height: 96px; padding: 10px; text-align: left; border: 2px solid #3d3640; border-radius: 4px; background: #17141a; box-shadow: 3px 3px 0 #0e0c10; color: #f7f5f2; font: 500 12px/16px var(--font-text); cursor: pointer; }
.ig-tile:hover:not(:disabled), .ig-tile:focus-visible { border-color: #f2c14e; }
.ig-tile__n { font: 700 18px/1 var(--font-mono); color: #f2c14e; }
.ig-tile__name { font: 600 14px/18px var(--font-display); }
.ig-tile__t { color: #b4adb6; }
.ig-tile__s { align-self: end; display: flex; align-items: center; gap: 6px; margin-top: 4px; color: #9fe0bd; font: 600 12px/16px var(--font-mono); }
.ig-tile.is-done { border-color: #1d6b47; }
.ig-tile.is-soon { opacity: .55; border-style: dashed; cursor: not-allowed; box-shadow: none; }
.ig-tile.is-soon .ig-tile__s { color: #b4adb6; }
.ig-lock { position: relative; display: inline-block; width: 10px; height: 8px; margin-top: 4px; border-radius: 1px; background: #b4adb6; }
.ig-lock::before { content: ''; position: absolute; left: 1px; top: -5px; width: 4px; height: 5px; border: 2px solid #b4adb6; border-bottom: 0; border-radius: 4px 4px 0 0; }
.ig-hud .ig-st::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: #b4adb6; }
.ig-hud .ig-st0::before { background: #f2c14e; } .ig-hud .ig-st2::before { background: #2f8f62; }
@media (max-width: 700px) {
  .igra { padding: 16px 4px; border-radius: 20px; }
  .igra__head, .ig-bar, .ig-pad, .ig-goal, .ig-keys { padding-left: 8px; padding-right: 8px; }
  .ig-how, .ig-tiles { grid-template-columns: minmax(0, 1fr); }
  .ig-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-stage.is-card { aspect-ratio: auto; display: block; background: transparent; outline: 0; }
  .ig-stage.is-card canvas, .ig-stage.is-card .ig-hud, .ig-stage.is-card .ig-toast { display: none; }
  .ig-stage.is-card .ig-card { position: static; padding: 0; background: transparent; overflow: visible; }
  .ig-card__box { padding: 16px; margin: 0 8px; width: auto; }
}
.igra-board { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.ig-boardbar { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.ig-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ig-boardbar .ig-pills { margin-bottom: 0; }
.ig-pills button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong, var(--line)); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--font-text); cursor: pointer; }
.ig-pills button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ig-pills button:focus-visible { outline: 3px solid var(--focus, var(--rec)); outline-offset: 2px; }
.ig-lvs { margin-left: 8px; color: var(--ink-muted); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; }
.ig-me { font: 600 14px/20px var(--font-text) !important; color: var(--ink) !important; }
.igra-board__t { margin: 0 0 8px; font: 600 18px/24px var(--font-display); }
.igra-board__n { margin: 8px 0 0; font-size: 12px; line-height: 17px; color: var(--ink-muted); }
.igra-table { width: 100%; border-collapse: collapse; font: 500 14px/20px var(--font-mono); }
.igra-table td { padding: 5px 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.igra-table td:first-child { width: 2.4em; color: var(--ink-muted); }
.igra-table td:last-child { text-align: right; color: var(--rec-text); white-space: nowrap; }
.igra-table td[colspan] { white-space: normal; text-align: left; color: var(--ink-muted); font-family: var(--font-text); }
.tools-strip--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tools-strip--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tools-strip--5 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ig-combo { transition: none; } }
.shop-promo { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--rec-tint); color: var(--ink); font: 500 14px/20px var(--font-text); }

/* игровые ссылки по сайту (задание 09): пиксельный Обсервер из build.py, плашки в меню, полоса в витрине, 404, блог, карточка «Попробуйте сами» */
.px { display: inline-block; flex: 0 0 auto; width: 24px; height: 24px; image-rendering: pixelated; }
.px--2x { width: 40px; height: 40px; }
.px--3x { width: 72px; height: 72px; }
.dd__game, .mm__game { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #17141a; color: #f7f5f2; text-decoration: none; }
.dd__game { margin: 8px 0 0; }
.mm__game { margin-top: 10px; min-height: 0; justify-content: flex-start; border-bottom: 0; font: 600 15px/20px var(--font-text); }
.dd__game:hover { background: #221e24; color: #fff; }
.game__t { display: grid; gap: 2px; }
.game__t b { font: 600 14px/18px var(--font-text); color: #f7f5f2; }
.nav2__dd a.dd__game, .mmenu a.mm__game { color: #f7f5f2; }
.game__t small { font: 600 11px/14px var(--font-mono); letter-spacing: .06em; color: #f2c14e; }
.gl-strip, .gl-404, .gl-blog { background-color: #17141a; color: #f7f5f2; background-image: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 8px 8px; }
.gl-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 24px; padding: 14px 18px; border-radius: 16px; }
.gl-strip__t { display: grid; flex: 1 1 220px; gap: 2px; }
.gl-strip b { font: 700 16px/22px var(--font-display); }
.gl-strip span { font-size: 13px; line-height: 19px; color: #d9d3ce; }
.gl-404 { display: flex; align-items: center; gap: 20px; margin: 24px 0 0; padding: 20px; border-radius: 16px; }
.gl-404__t { display: grid; justify-items: start; gap: 8px; }
.gl-404 b { font: 700 20px/26px var(--font-display); }
.gl-404 span { color: #d9d3ce; font: 400 15px/22px var(--font-text); }
.gl-blog { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; font: 500 14px/20px var(--font-text); }
.gl-blog span { flex: 1 1 240px; color: #d9d3ce; }
.legal .gl-404 a.mo-btn, .legal .gl-blog a.mo-btn { text-decoration: none; }
.legal .gl-404 a.mo-btn--primary { color: var(--on-rec, #fff); }
.gl-blog .mo-btn--secondary, .legal .gl-blog a.mo-btn--secondary { background: transparent; color: #f7f5f2; box-shadow: inset 0 0 0 1.5px #6b646e; }
.gl-blog .mo-btn--secondary:hover { background: #2c2730; color: #fff; }
.gl-blog--form { margin-top: 24px; }
.tool-card--game { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; padding: 14px 20px; background-color: #17141a; border-color: #17141a; background-image: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 8px 8px; }
.tool-card--game:hover { border-color: #f2c14e; }
.tool-card__g { display: grid; flex: 1 1 auto; gap: 2px; }
.tool-card--game .tool-card__k { color: #f2c14e; }
.tool-card--game .tool-card__t, .tool-card--game .tool-card__d { color: #f7f5f2; font-size: 15px; line-height: 21px; }
.tool-card--game .tool-card__t { font-size: 17px; line-height: 22px; }
.tool-card--game .tool-card__d { color: #d9d3ce; font-size: 13px; line-height: 19px; }
.tool-card--game .tool-card__more { margin: 0; color: #f2c14e; white-space: nowrap; }
@media (max-width: 560px) { .tool-card--game { flex-wrap: wrap; } .gl-404 { flex-direction: column; align-items: flex-start; } }
.blog-post p, .blog-post li, .blog-post code { overflow-wrap: anywhere; }   /* длинные адреса с UTM-метками не раздвигают страницу на телефоне */

/* Страницы по нишам и индекс цен MAX (задание 16): /mediaplan/primery/…, /max/ceny/… */
.nx { display: flex; flex-direction: column; gap: var(--space-12); padding-block: var(--space-8) var(--space-16); }
.nx > * { min-width: 0; margin: 0; }
.nx h1, .nx h2, .nx h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
.nx h1 { overflow-wrap: anywhere; font-size: clamp(26px, 4.4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
.nx h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; }
.nx h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.nx p, .nx li { font: 400 16px/26px var(--font-text); }
.nx-crumbs { font: 500 14px/20px var(--font-text); color: var(--ink-muted); }
.nx-crumbs a { color: inherit; }
.nx-hero { background: var(--night); color: var(--on-night); border-radius: 28px; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: var(--space-4); }
.nx-eyebrow { font: 500 12px/16px var(--font-mono) !important; letter-spacing: .08em; text-transform: uppercase; color: #ff8a80; }
.nx-lead { max-width: 62ch; color: #cfc8d1; }
.nx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: var(--space-4); }
.nx-kpis div { border: 1px solid #4a4250; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nx-kpis b { font: 600 clamp(20px, 2.4vw, 26px)/1.1 var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nx-kpis span { font: 400 13px/18px var(--font-text); color: #cfc8d1; }
.nx-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--space-4); }
.mo-btn--secondary-night { background: transparent; color: var(--on-night); border-color: currentColor; }
.mo-btn--secondary-night:hover { background: rgba(255, 255, 255, .1); }
.nx-sign { font: 400 14px/22px var(--font-text) !important; color: var(--ink-muted); }
.nx-muted { color: var(--ink-muted); }
.nx .sec { display: flex; flex-direction: column; gap: var(--space-4); }
.nx-tw { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 4px 10px; }
.nx-tw table { width: 100%; min-width: 560px; border-collapse: collapse; font: 400 15px/22px var(--font-text); }
.nx-tw th, .nx-tw td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.nx-tw th { font: 500 12px/16px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.nx-tw tr.tot td { font-weight: 700; border-bottom: 0; }
.nx-tw tr:last-child td { border-bottom: 0; }
.nx-tw a, .nx-method a { color: var(--ink); text-underline-offset: 2px; }
.nx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.nx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nx-card ul { margin: 0; padding-left: 1.2em; }
.nx-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nx-chip { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px; font: 500 14px/20px var(--font-text); background: var(--surface); color: var(--ink); text-decoration: none; }
.nx-chip:hover { border-color: var(--ink); }
.nx-cta { background: var(--night); color: var(--on-night); border-radius: 28px; padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nx-cta p { color: #cfc8d1; margin-top: 8px; }
.nx-method ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: var(--space-2); }
@media (max-width: 900px) { .nx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nx-grid { grid-template-columns: 1fr; } .nx { gap: var(--space-8); } }
@media (max-width: 480px) { .nx-cta { padding: 24px; } .nx-cta .mo-btn { width: 100%; } .nx-btns .mo-btn { width: 100%; } }
.path__plan-link { margin: 0; font: 500 14px/20px var(--font-text); }
.path__plan-link a { color: inherit; text-underline-offset: 2px; }
