/* ==========================================================================
   акулик.рф — тема
   Тушь на бумаге и один цвет: синий луч диодного лазера 445 нм.
   ========================================================================== */

/* Спокойная палитра: мягкий графит вместо чистого чёрного, тонкие линии, акцент — только для «живого». */
:root {
  --paper: #F5F5F2;
  --raise: #ECECE7;
  --card: #FFFFFF;
  --ink: #1D1D1F;
  --mute: #6A6A65;
  --line: #E3E3DD;
  --line-strong: #CDCDC6;
  --accent: #4A42DB;
  --accent-soft: #ECEBFC;
  --accent-ink: #FFFFFF;
  --ok: #23774B;
  --warn: #9A6400;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 6px 24px rgba(20, 20, 30, .05);

  --font-display: 'Dela Gothic One', 'Golos Text', system-ui, sans-serif;
  --font-head: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1080px;
  --gut: clamp(16px, 3vw, 32px);
  --bar: 64px;
  --r: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121214; --raise: #1E1E22; --card: #19191C; --ink: #ECECE9; --mute: #A3A39D; --line: #2B2B30; --line-strong: #3B3B42;
    --accent: #9C96FF; --accent-soft: #24233D; --accent-ink: #0F0F12; --ok: #57C48C; --warn: #E0A53A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121214; --raise: #1E1E22; --card: #19191C; --ink: #ECECE9; --mute: #A3A39D; --line: #2B2B30; --line-strong: #3B3B42;
  --accent: #9C96FF; --accent-soft: #24233D; --accent-ink: #0F0F12; --ok: #57C48C; --warn: #E0A53A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25); color-scheme: dark;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 16px); }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font-body); font-feature-settings: 'kern', 'liga'; -webkit-font-smoothing: antialiased; }
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
/* Широкий гротеск + длинные русские слова: переносим, а не вылезаем за экран */
.page__title, .article__title, .hero__title, .stage__title, .menu__title, .h-section, .squad__name, .device__name, .gcard__title, .lost__title, .entry__title, .tour__name {
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; }
.skip:focus { top: 12px; }
kbd { font: 500 11px var(--font-mono); padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--mute); }
/* Логотип — тушь: в тёмной теме инвертируется */
.ink-img { mix-blend-mode: multiply; }
:root[data-theme="dark"] .ink-img { filter: invert(1); mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ink-img { filter: invert(1); mix-blend-mode: screen; } }

.main { min-height: 60vh; }
.sheet, .home-grid, .hero, .article, .lost, .game, .foot { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- типографика ---------- */
.h-section { font: 700 clamp(20px, 1.8vw, 24px)/1.2 var(--font-head); margin: 0; letter-spacing: -.015em; }
.h-section a { text-decoration: none; }
.h-small { font: 600 15px/1.3 var(--font-body); margin: 0 0 10px; }
.page__head { padding: clamp(32px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); max-width: 860px; }
.page__head--split { display: flex; justify-content: space-between; gap: 32px; align-items: flex-end; max-width: none; flex-wrap: wrap; }
.page__title { font: 700 clamp(32px, 4.4vw, 54px)/1.08 var(--font-head); margin: 0; letter-spacing: -.025em; }
.page__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); max-width: 62ch; margin: 16px 0 0; }
.page__org { margin: 8px 0 0; font-weight: 600; }
.hint { font-size: 14px; color: var(--mute); }
.empty { color: var(--mute); padding: 24px 0; }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1em; }
.prose h2 { font: 700 26px/1.2 var(--font-head); margin: 1.6em 0 .5em; }
.prose h3 { font: 700 20px/1.3 var(--font-body); margin: 1.4em 0 .4em; }
.prose img, .prose figure { border-radius: var(--r); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 3px solid var(--accent); font-size: 19px; }
.prose code { font: 14px var(--font-mono); background: var(--raise); padding: 1px 5px; border-radius: 4px; }
.prose pre { font: 14px/1.5 var(--font-mono); background: var(--raise); padding: 16px; border-radius: var(--r); overflow-x: auto; }
.prose a { text-decoration-color: var(--accent); }
.prose > *:last-child { margin-bottom: 0; }

/* ---------- кнопки, статусы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn .ico { width: 16px; height: 16px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--light { background: #fff; color: #000; border-color: #fff; }
.btn--wide { width: 100%; }
.btn:disabled { opacity: .4; pointer-events: none; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink); }
.tool:hover { border-color: var(--line); }
.tool .ico { width: 18px; height: 18px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.status--live { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.status--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.status--reg { border-color: var(--accent); color: var(--accent); }
.status--announce { background: var(--raise); border-color: var(--raise); }
.status--done { color: var(--mute); }
@keyframes blink { 50% { opacity: .2; } }
.bar-progress { display: block; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar-progress i { display: block; height: 100%; background: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip, .filter { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; text-decoration: none; cursor: pointer; color: var(--ink); transition: border-color .15s, background .15s; }
.chip:hover, .filter:hover { border-color: var(--ink); }
.chip.is-on, .filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.bar { position: sticky; top: 0; z-index: 40; height: var(--bar); display: flex; align-items: center; gap: 18px; padding: 0 var(--gut); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bar__brand img { width: 34px; height: auto; }
.bar__name { font: 700 18px/1 var(--font-head); letter-spacing: -.02em; }
.bar__name span { color: var(--mute); }
.bar__where { font-size: 15px; color: var(--mute); text-decoration: none; padding-left: 18px; border-left: 1px solid var(--line); }
.bar__where:hover { color: var(--ink); }
.bar__tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .bar__where, .tool kbd { display: none; } .bar__name { font-size: 16px; } }

.cube-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; cursor: pointer; }
.cube-btn:hover .mini-cube { transform: rotateX(-35deg) rotateY(135deg); }
.mini-cube { --s: 14px; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-35deg) rotateY(45deg); transition: transform .6s var(--ease); }
.mini-cube i { position: absolute; inset: 0; border: 1.5px solid currentColor; background: var(--ink); }
.mini-cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.mini-cube i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.mini-cube i:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.mini-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.mini-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.mini-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

/* ==========================================================================
   Меню-куб
   ========================================================================== */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); opacity: 0; transition: opacity .28s var(--ease); overflow-y: auto; }
.menu.is-open { opacity: 1; }
.menu__inner { min-height: 100%; width: min(100% - 2 * var(--gut), var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 24px 48px; padding: calc(var(--bar) + 2vh) 0 24px; }
.menu__list { align-self: center; display: flex; flex-direction: column; }
.menu__item { display: grid; grid-template-columns: 1fr; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); text-decoration: none; position: relative; transform: translateX(-12px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease), color .2s; }
.menu.is-open .menu__item { transform: none; opacity: 1; }
.menu.is-open .menu__item:nth-child(2) { transition-delay: .03s; } .menu.is-open .menu__item:nth-child(3) { transition-delay: .06s; }
.menu.is-open .menu__item:nth-child(4) { transition-delay: .09s; } .menu.is-open .menu__item:nth-child(5) { transition-delay: .12s; }
.menu.is-open .menu__item:nth-child(6) { transition-delay: .15s; }
.menu__item:last-of-type { border-bottom: 1px solid var(--line); }
.menu__item::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 1px solid var(--line-strong); transform: rotate(45deg) scale(.6); transition: transform .3s var(--ease), background .2s; }
.menu__item.is-current::before { background: var(--accent); border-color: var(--accent); transform: rotate(45deg) scale(.8); }
.menu__item:hover::before, .menu__item:focus-visible::before { transform: rotate(45deg) scale(1); background: var(--ink); }
.menu__title { font: 700 clamp(30px, 4.6vw, 54px)/1.05 var(--font-head); letter-spacing: -.01em; transition: transform .3s var(--ease); }
.menu__item:hover .menu__title, .menu__item:focus-visible .menu__title { transform: translateX(8px); }
.menu__note { font-size: 15px; color: var(--mute); margin-top: 4px; }
.menu__extra { list-style: none; margin: 18px 0 0; padding: 0 0 0 28px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.menu__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; }
.menu__close { margin-left: auto; border: 0; background: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }

.menu__stage { align-self: center; display: grid; place-items: center; perspective: 1100px; min-height: 360px; padding-bottom: 70px; position: relative; }
.cube { --s: clamp(180px, 22vw, 280px); position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transition: transform .8s var(--ease); }
.cube[data-face="0"] { transform: rotateX(-16deg) rotateY(-24deg); }
.cube[data-face="1"] { transform: rotateX(-16deg) rotateY(-114deg); }
.cube[data-face="2"] { transform: rotateX(-16deg) rotateY(-204deg); }
.cube[data-face="3"] { transform: rotateX(-16deg) rotateY(66deg); }
.cube[data-face="4"] { transform: rotateX(-74deg) rotateY(0deg) rotateZ(24deg); }
.cube[data-face="5"] { transform: rotateX(74deg) rotateY(0deg) rotateZ(-24deg); }
.cube__face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--s) * .09); background: var(--paper); border: 1px solid var(--line-strong); backface-visibility: hidden; }
.cube__face--0 { transform: translateZ(calc(var(--s) / 2)); }
.cube__face--1 { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube__face--2 { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube__face--3 { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube__face--4 { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube__face--5 { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube__face:nth-child(odd) { background: var(--ink); color: var(--paper); }
.cube__glyph { font: 400 calc(var(--s) * .36)/1 var(--font-display); }
.cube__label { font: 700 calc(var(--s) * .1)/1.1 var(--font-head); }
.cube { z-index: 1; }
.cube-shadow { position: absolute; bottom: 10px; z-index: 0; width: 50%; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 22%, transparent), transparent); }
@media (max-width: 820px) {
  .menu__inner { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .menu__stage { order: -1; min-height: 170px; } .cube { --s: 120px; } .cube-shadow { display: none; }
}

.now-list .now { display: block; }
.now-list .now::before { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; }
.now { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; text-decoration: none; color: var(--mute); }
.now b { color: var(--ink); font-weight: 600; }
.now--live b { color: var(--accent); }
.now--live::before, .now--busy::before { content: ''; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.6s infinite; }
.now--busy::before { background: var(--ok); }
.now small { color: var(--mute); }

/* ---------- поиск ---------- */
.palette { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--paper) 70%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; opacity: 0; transition: opacity .2s; }
.palette.is-open { opacity: 1; }
.palette__box { width: min(640px, 100%); background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.18); overflow: hidden; }
.palette__input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 18px 20px; font: 500 19px var(--font-body); color: var(--ink); outline: none; }
.palette__list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.palette__item a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.palette__item.is-active a, .palette__item a:hover { background: var(--ink); color: var(--paper); }
.palette__item.is-active .palette__k, .palette__item a:hover .palette__k { color: inherit; opacity: .7; }
.palette__k { font-size: 13px; color: var(--mute); white-space: nowrap; }
.palette__none { padding: 12px 14px; color: var(--mute); }
.palette__hint { margin: 0; padding: 10px 20px; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); }

/* ==========================================================================
   Главная
   ========================================================================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(36px, 7vw, 96px) 0 clamp(36px, 6vw, 72px); }
.hero__kicker { margin: 0 0 14px; color: var(--mute); }
.hero__title { font: 700 clamp(36px, 5vw, 64px)/1.04 var(--font-head); margin: 0; letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.hero__lead { font-size: clamp(17px, 1.6vw, 21px); max-width: 46ch; color: var(--mute); margin: 22px 0 0; }
.now-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hero__mark { position: relative; justify-self: center; width: min(100%, 360px); }
.hero__logo { width: 100%; animation: engrave 1.8s .2s var(--ease) both; }
/* Единственная «фоновая» анимация сайта: лазер выжигает логотип при первом открытии */
.hero__beam { position: absolute; left: -6%; right: -6%; height: 2px; top: 0; z-index: 2; background: var(--accent); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; animation: beam 1.8s .2s var(--ease) both; pointer-events: none; }
@keyframes engrave { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes beam { 0% { top: 0; opacity: 1; } 92% { top: 100%; opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; } .hero__mark { order: -1; width: 46vw; justify-self: start; }
}

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 5vw, 72px); align-items: start; padding-bottom: 80px; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; } .rail { position: static !important; } .rail__nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.feed__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line-strong); }
.feed__list { transition: opacity .2s; }
.feed__list.is-loading { opacity: .4; }
.feed__more { display: block; width: 100%; margin: 24px 0 0; height: 52px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: none; cursor: pointer; font-weight: 600; color: var(--mute); }
.feed__more:hover { border-color: var(--ink); color: var(--ink); }

.rail { position: sticky; top: calc(var(--bar) + 24px); display: flex; flex-direction: column; gap: 28px; }
.rail__nav { display: flex; flex-direction: column; }
.rail__link { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.rail__link:hover .rail__glyph { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rail__glyph { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 16px; transition: background .2s, color .2s; }
.rail__link b { display: block; font-weight: 600; }
.rail__link small { display: block; font-size: 14px; color: var(--mute); line-height: 1.4; }

/* ---------- запись ленты ---------- */
.entry { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feed--solo .entry:first-child { border-top: 0; }
.entry__side { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--mute); padding-top: 3px; }
.entry__kind { color: var(--ink); font-weight: 600; }
.entry--tournament .entry__kind { color: var(--accent); }
.entry__pin { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.entry__title { font: 700 21px/1.3 var(--font-body); margin: 0 0 8px; letter-spacing: -.005em; }
.entry__title a { text-decoration: none; }
.entry__text { font-size: 17px; }
.entry__text.is-clamped { max-height: 11.5em; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.entry__expand { border: 0; background: none; padding: 0; margin-top: 6px; font-weight: 600; color: var(--accent); cursor: pointer; }
.entry__tag { margin: 12px 0 0; font-size: 14px; color: var(--mute); }
.entry__article { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; text-decoration: none; align-items: start; }
.entry__article:hover .entry__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.entry__excerpt { display: block; color: var(--mute); margin: 0; }
.entry__read { display: block; margin-top: 10px; font-size: 13px; color: var(--mute); }
.entry__thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.entry__tour { display: block; text-decoration: none; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--r); }
.entry__tour:hover { border-color: var(--accent); }
.entry__tour .entry__title { margin: 10px 0 4px; font-size: 22px; }
.entry__champ { margin: 0 0 12px; color: var(--mute); }
.entry__champ b { color: var(--ink); }
.entry__game { display: grid; grid-template-columns: 200px 1fr; gap: 18px; text-decoration: none; align-items: center; }
.entry__game img { border-radius: var(--r); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .entry__side { flex-direction: row; gap: 10px; }
  .entry__article, .entry__game { grid-template-columns: 1fr; }
  .entry__thumb { order: -1; }
}

.mosaic { display: grid; gap: 4px; margin-top: 14px; border-radius: var(--r); overflow: hidden; }
.mosaic--2 { grid-template-columns: 1fr 1fr; }
.mosaic--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic--3 .mosaic__cell:first-child { grid-row: span 2; }
.mosaic--4 { grid-template-columns: 1fr 1fr; }
.mosaic__cell { position: relative; display: block; background: var(--raise); overflow: hidden; }
.mosaic__cell img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .5s var(--ease); }
.mosaic--1 .mosaic__cell img { aspect-ratio: 3 / 2; max-height: 520px; }
.mosaic__cell:hover img { transform: scale(1.02); }
.mosaic__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font: 700 28px var(--font-head); }

.video { position: relative; margin-top: 14px; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--file { aspect-ratio: auto; }
.video--file video { position: static; height: auto; }
.video__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; background: radial-gradient(circle at center, #1a1a1a, #000); color: #fff; font-weight: 600; cursor: pointer; }
.video__play .ico { width: 56px; height: 56px; padding: 16px; border-radius: 50%; background: var(--accent); color: #fff; transition: transform .2s; }
.video__play:hover .ico { transform: scale(1.08); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 40px; cursor: pointer; padding: 10px 18px; }
.lightbox__x { top: 8px; right: 8px; }
.lightbox__p { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__n { right: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #bbb; font-size: 13px; }

.schedule { width: 100%; border-collapse: collapse; font-size: 15px; }
.schedule th { text-align: left; font-weight: 600; font-size: 13px; color: var(--mute); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.schedule td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.schedule tr.is-today td { font-weight: 700; }
.schedule tr.is-today td:first-child::after { content: 'сегодня'; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--accent); }
.schedule--compact { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.schedule--compact li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.schedule--compact span { color: var(--mute); }

/* ==========================================================================
   Статьи и одиночные страницы
   ========================================================================== */
.article { padding: clamp(32px, 6vw, 72px) 0 80px; }
.article__head { max-width: 860px; }
.article__meta { font-size: 14px; color: var(--mute); margin: 0 0 14px; display: flex; gap: 8px; }
.article__meta a { text-decoration: none; }
.article__title { font: 700 clamp(32px, 4.4vw, 52px)/1.1 var(--font-head); margin: 0; letter-spacing: -.025em; text-wrap: balance; }
.article__lead { font-size: 21px; color: var(--mute); max-width: 56ch; }
.article__cover { margin: 32px 0; }
.article__cover img { width: 100%; border-radius: var(--r); max-height: 72vh; object-fit: cover; }
.article__body { margin-top: 28px; font-size: 18px; line-height: 1.7; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.article__nav a { text-decoration: none; font-weight: 600; }
.article__nav a[rel="next"] { text-align: right; grid-column: 2; }
.article__nav small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; margin: 28px 0; max-width: 860px; }
.specs div { padding: 10px 0; border-top: 1px solid var(--line); }
.specs dt { font-size: 13px; color: var(--mute); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.pager { margin: 32px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pager .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sheet--list .feed { max-width: 860px; padding-bottom: 60px; }

.lost { padding: 12vh 0; max-width: 640px; }
.lost__code { font: 400 clamp(90px, 18vw, 200px)/.9 var(--font-display); margin: 0; -webkit-text-stroke: 2px var(--ink); color: transparent; }
.lost__title { font: 700 32px var(--font-head); margin: 18px 0 8px; }
.lost__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ==========================================================================
   Киберспорт
   ========================================================================== */
.tally { display: grid; grid-auto-flow: column; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--r); }
.tally div { padding: 14px 22px; border-left: 1px solid var(--line); }
.tally div:first-child { border-left: 0; }
.tally dt { font-size: 13px; color: var(--mute); }
.tally dd { margin: 0; font: 700 34px/1.1 var(--font-head); }
.subnav { position: sticky; top: var(--bar); z-index: 20; display: flex; gap: 22px; padding: 12px 0; background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.subnav a { text-decoration: none; font-weight: 600; white-space: nowrap; color: var(--mute); }
.subnav a:hover { color: var(--ink); }
.block { padding: clamp(28px, 4vw, 48px) 0; }
.block__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.block__lead { flex: 1 1 100%; margin: 0; color: var(--mute); }
.block--join { border-top: 1px solid var(--line-strong); }
.block > .h-section { margin-bottom: 18px; }

.live-now { margin-top: 28px; padding: clamp(18px, 3vw, 28px); border: 1.5px solid var(--accent); border-radius: var(--r); }
.live-now__head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.live-now__head .btn { margin-left: auto; height: 38px; }

.tours { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.tour__link { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.tour__link:hover .tour__name { text-decoration: underline; text-decoration-color: var(--accent); }
.tour__date { display: flex; flex-direction: column; font-size: 13px; color: var(--mute); line-height: 1.1; }
.tour__date b { font: 700 30px/1 var(--font-head); color: var(--ink); }
.tour__name { display: block; font-weight: 700; font-size: 19px; }
.tour__sub { display: block; font-size: 14px; color: var(--mute); }
.tour__state { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tour__champ { font-size: 14px; font-weight: 600; }
.tour__champ::before { content: '★ '; color: var(--accent); }
@media (max-width: 560px) { .tour__link { grid-template-columns: 52px 1fr; } .tour__state { grid-column: 2; align-items: flex-start; flex-direction: row; } }

.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.team { display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.team__logo { grid-row: span 2; flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 14px var(--font-head); letter-spacing: -.02em; overflow: hidden; border-radius: var(--r); text-align: center; }
.team__logo img { width: 100%; height: 100%; object-fit: cover; }
.team__name { font-weight: 700; align-self: end; }
.team__roster { font-size: 14px; color: var(--mute); }
.team:hover .team__logo { background: var(--accent); }

.tour-head { padding: clamp(28px, 5vw, 64px) 0 24px; }
.tour-head__meta { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tour-head__meta div { padding: 12px 26px 12px 0; margin-right: 26px; border-right: 1px solid var(--line); }
.tour-head__meta div:last-child { border-right: 0; }
.tour-head__meta dt { font-size: 13px; color: var(--mute); }
.tour-head__meta dd { margin: 2px 0 0; font-weight: 600; }
.matches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.match { display: grid; grid-template-columns: 44px 1fr 72px 1fr minmax(90px, auto); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.match__no { font: 12px var(--font-mono); color: var(--mute); }
.match__p--r { text-align: right; }
.match__p.is-win { font-weight: 700; }
.match__score { text-align: center; font: 600 16px var(--font-mono); }
.match--live .match__score { color: var(--accent); }
.match__info { font-size: 13px; color: var(--mute); text-align: right; }
@media (max-width: 640px) { .match { grid-template-columns: 1fr 64px 1fr; } .match__no, .match__info { display: none; } }
.people { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 32px; }
.people li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.people img { border-radius: 4px; }
.people__seed { font: 12px var(--font-mono); color: var(--mute); width: 22px; }

.team-head { display: flex; gap: 28px; align-items: center; padding: clamp(28px, 5vw, 64px) 0 12px; }
.team-head > div:last-child { min-width: 0; }
@media (max-width: 560px) { .team-head { flex-direction: column; align-items: flex-start; gap: 16px; } }
.team-head__logo { flex: 0 0 auto; width: clamp(88px, 12vw, 140px); aspect-ratio: 1; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 700 clamp(22px, 3vw, 34px) var(--font-head); border-radius: var(--r); overflow: hidden; }
.team-head__logo img { width: 100%; height: 100%; object-fit: cover; }
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--line-strong); }
.roster__p { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.roster__nick { font: 700 22px var(--font-head); }
.roster__name, .roster__role { font-size: 14px; color: var(--mute); }

/* ==========================================================================
   Игры
   ========================================================================== */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; padding-bottom: 80px; }
.gcard { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.gcard__img { display: block; aspect-ratio: 16 / 10; background: var(--ink); border-radius: var(--r); overflow: hidden; margin-bottom: 10px; }
.gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard:hover img { transform: scale(1.03); }
.gcard__title { font: 700 22px var(--font-head); }
.gcard__sub { font-size: 14px; color: var(--mute); }

.game { padding: 24px 0 80px; }
.stage { position: relative; aspect-ratio: var(--ratio, 16/9); background: #000; border-radius: var(--r); overflow: hidden; color: #fff; max-height: calc(100vh - var(--bar) - 48px); margin-inline: auto; }
.stage__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.stage__ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px; padding: clamp(18px, 4vw, 48px); background: linear-gradient(transparent 40%, rgba(0,0,0,.75)); }
.stage__title { font: 700 clamp(32px, 6vw, 72px)/1 var(--font-head); margin: 0; }
.stage__soon { margin: 0; color: #ccc; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage.is-playing .stage__ui, .stage.is-playing .stage__cover { display: none; }
.stage__full { position: absolute; right: 10px; top: 10px; z-index: 3; color: #fff; background: rgba(0,0,0,.5); }
.stage:fullscreen { max-height: none; border-radius: 0; aspect-ratio: auto; }
.game__info { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 36px; }
.specs--side { display: block; margin: 0; }
@media (max-width: 820px) { .game__info { grid-template-columns: 1fr; } }

/* ==========================================================================
   Мастерская
   ========================================================================== */
.devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.device { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.device__img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); width: 100%; }
.device__state { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lamp--busy { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: blink 2s infinite; }
.lamp--idle { background: var(--ok); }
.lamp--service { background: var(--warn); }
.device__name { margin: 0; font: 700 24px/1.1 var(--font-head); }
.device__name a { text-decoration: none; }
.device__type { margin: 0; color: var(--mute); font-size: 14px; }
.device__specs { margin: 0; font-size: 14px; }
.device__specs div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px dashed var(--line); }
.device__specs dt { color: var(--mute); }
.device__specs dd { margin: 0; text-align: right; }

.calc__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .calc__grid { grid-template-columns: 1fr; } }
.calc__view { position: relative; min-height: 380px; border: 1px dashed var(--line-strong); border-radius: var(--r); cursor: pointer; overflow: hidden; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px; background-color: var(--paper); }
.calc__view.is-over { border-color: var(--accent); }
.calc__view.has-model { border-style: solid; border-color: var(--ink); cursor: grab; }
.calc__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.calc__hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; pointer-events: none; }
.calc__hint span { color: var(--mute); font-size: 14px; }
.has-model .calc__hint { inset: auto 0 0 0; justify-content: flex-end; padding: 12px; align-items: flex-start; pointer-events: auto; cursor: pointer; background: linear-gradient(transparent, color-mix(in srgb, var(--paper) 90%, transparent)); }
.calc__form { display: flex; flex-direction: column; gap: 14px; }
.calc__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.calc__form label:has(input[type=range]) { grid-template-columns: 1fr auto; }
.calc__form label:has(input[type=range]) input { grid-column: 1 / -1; grid-row: 2; }
.calc__out { margin: 6px 0 0; border-top: 1px solid var(--line-strong); }
.calc__out div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.calc__out dt { color: var(--mute); }
.calc__out dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__total dd { font: 700 26px var(--font-head); color: var(--accent); }
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.history li { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.history__years { font: 13px var(--font-mono); color: var(--mute); }
.history__model { color: var(--mute); font-size: 14px; }

/* ---------- поля форм (ЧПУ, калькулятор) ---------- */
input[type=text], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); font: 500 15px var(--font-body); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
input[readonly] { background: var(--raise); }
input[type=range] { accent-color: var(--accent); width: 100%; }
input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; }

/* ==========================================================================
   ЧПУ
   ========================================================================== */
.cnc { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
@media (max-width: 960px) { .cnc { grid-template-columns: 1fr; } }
.cnc__panel { position: sticky; top: calc(var(--bar) + 16px); display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--card); max-height: calc(100vh - var(--bar) - 32px); overflow-y: auto; }
@media (max-width: 960px) { .cnc__panel { position: static; max-height: none; } }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--mute); }
.field output { color: var(--ink); }
#cnc-go { position: sticky; bottom: -20px; box-shadow: 0 -12px 0 var(--card); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 14px; }
.checks label { display: flex; gap: 8px; align-items: center; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.seg__b { border: 0; border-left: 1px solid var(--line); background: none; padding: 9px 6px; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.2; }
.seg__b:first-child { border-left: 0; }
.seg__b.is-on { background: var(--ink); color: var(--paper); }
.seg__b:disabled { color: var(--line); cursor: not-allowed; }
.drop { display: block; padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--r); text-align: center; font-size: 14px; color: var(--mute); cursor: pointer; }
.drop b { color: var(--ink); }
.drop.is-over, .drop:hover { border-color: var(--accent); }
.drop.has-file { border-style: solid; border-color: var(--ink); }
.is-laser .only-mill, .is-mill .only-laser { display: none; }
.cnc__preview { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px; background: var(--card); }
.cnc__preview canvas { width: 100%; }
.cnc__legend { display: flex; gap: 18px; font-size: 13px; color: var(--mute); margin: 8px 4px 0; }
.cnc__legend span::before { content: ''; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--ink); }
.cnc__legend .l-move::before { background: var(--accent); height: 0; border-top: 1px dashed var(--accent); }
.cnc__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 16px 0; border-top: 1px solid var(--line-strong); }
.cnc__stats div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.cnc__stats dt { font-size: 13px; color: var(--mute); }
.cnc__stats dd { margin: 2px 0 0; font-weight: 700; }
.cnc__stats .is-error { grid-column: 1 / -1; }
.cnc__stats .is-error dd { color: #C21F1F; font-weight: 600; }
.cnc__code { border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.cnc__code-bar { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.cnc__code-bar span { margin-right: auto; }
.cnc__code-bar .btn { height: 36px; }
.cnc__code pre { margin: 0; padding: 14px; max-height: 420px; overflow: auto; font: 12.5px/1.55 var(--font-mono); background: var(--raise); white-space: pre; }
.cnc__help { margin-top: 18px; font-size: 15px; }
.cnc__help summary { cursor: pointer; font-weight: 600; }
.cnc__help code { font: 13px var(--font-mono); background: var(--raise); padding: 1px 5px; border-radius: 4px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.foot { padding: 40px 0 28px; border-top: 1px solid var(--line-strong); margin-top: 40px; }
.foot__row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__word { width: 180px; }
.foot__text { margin: 0; color: var(--mute); flex: 1; min-width: 200px; }
.foot__social { display: flex; gap: 6px; }
.foot__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.foot__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.foot__social .ico { width: 20px; height: 20px; }
.foot__nav { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; }
.foot__nav a { text-decoration: none; color: var(--mute); }
.foot__nav a:hover { color: var(--ink); }
.foot__year { margin-left: auto; color: var(--mute); }

/* ---------- сетки турниров в цветах темы ---------- */
.akb-bracket { --font-mono: 'JetBrains Mono', monospace; }
.akb-standings { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) { .akb-table th, .akb-table td { padding: 8px 6px; } .akb-table { font-size: 13px; } }
.akb-box { border-radius: var(--r); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__beam { display: none; }
}
@media print {
  .bar, .menu, .palette, .rail, .foot, .subnav { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Составы и результаты
   ========================================================================== */
.page__head-text { flex: 1 1 420px; min-width: 0; }
.page__org { font-size: clamp(16px, 1.5vw, 19px); }
.empty__hint { display: block; margin-top: 4px; font-size: 14px; color: var(--accent); }
.squads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; border-top: 1px solid var(--line-strong); }
.squad { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.squad__head { display: flex; gap: 14px; align-items: center; text-decoration: none; margin-bottom: 14px; }
.squad__head:hover .team__logo { background: var(--accent); }
.squad__name { display: block; font: 700 clamp(20px, 2vw, 24px)/1.15 var(--font-head); }
.squad__sub { display: block; font-size: 14px; color: var(--mute); }
.squad__roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 16px; }
.squad__roster li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px dashed var(--line); min-width: 0; }
.squad__roster b { font-weight: 700; overflow-wrap: anywhere; }
.squad__roster span { font-size: 13px; color: var(--mute); }
.squad__roster li.is-cap b { color: var(--accent); }
.place { display: flex; flex-direction: column; font-size: 13px; color: var(--mute); line-height: 1.1; }
.place b { font: 700 30px/1 var(--font-head); color: var(--ink); }
.place--1 b { color: var(--accent); }

/* ==========================================================================
   Телефоны и планшеты
   ========================================================================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .page__head--split { gap: 20px; }
  .tally { grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; }
  .tally div { border-left: 0; border-top: 1px solid var(--line); padding: 10px 14px; }
  .tally div:nth-child(-n+2) { border-top: 0; }
  .tally div:nth-child(even) { border-left: 1px solid var(--line); }
  .tally dd { font-size: 26px; }
  .tour-head__meta { display: grid; grid-template-columns: 1fr 1fr; }
  .tour-head__meta div { border-right: 0; margin-right: 0; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
  .tour-head__meta div:nth-last-child(-n+2) { border-bottom: 0; }
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule td { display: block; }
  .schedule tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .schedule td { border: 0; padding: 0; }
  .schedule td:first-child { grid-row: span 3; font: 700 22px/1 var(--font-head); min-width: 52px; }
  .schedule td[data-l="Где"], .schedule td[data-l="Что"] { color: var(--mute); }
  .schedule tr.is-today td:first-child::after { display: block; margin: 6px 0 0; }
  .history li { grid-template-columns: 1fr; gap: 2px; }
  .calc__view { min-height: 300px; }
  .akb-col { width: 200px; flex-basis: 200px; }
  .akb-cols { gap: 32px; }
  .live-now { padding: 14px; margin-inline: calc(var(--gut) * -.5); }
  .live-now__head .btn { margin-left: 0; }
  .cnc__code-bar { flex-wrap: wrap; }
  .cnc__code pre { max-height: 320px; font-size: 12px; }
  .stage { border-radius: 0; margin-inline: calc(var(--gut) * -1); }
  .game { padding-top: 0; }
  .article__body { font-size: 17px; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav a[rel="next"] { grid-column: 1; text-align: left; }
  .foot__year { margin-left: 0; width: 100%; }
  .menu__title { font-size: clamp(28px, 9vw, 40px); }
}
@media (max-width: 380px) {
  .cube-btn { padding: 0 12px; }
  .cube-btn__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bar { gap: 10px; }
  .bar__name span { display: none; }
  .tool { padding: 0 8px; }
  .checks { grid-template-columns: 1fr; }
}
/* Телефон в горизонтальном положении: меню и игра не должны упираться в высоту */
@media (max-height: 500px) and (orientation: landscape) {
  .menu__stage { display: none; }
  .menu__inner { grid-template-columns: 1fr; padding-top: 16px; }
  .menu__item { padding: 8px 0 8px 28px; }
  .stage { max-height: calc(100vh - var(--bar)); }
}

/* ==========================================================================
   Версия 1.1: понятная навигация, векторный логотип, спокойные карточки
   ========================================================================== */
body { color: var(--ink); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.status { border-color: var(--line-strong); }
.status--live { box-shadow: 0 0 0 4px var(--accent-soft); }
.chip.is-on, .filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip, .filter { background: var(--card); }

/* ---------- шапка: разделы видны сразу ---------- */
.bar { gap: 24px; }
.bar__brand { gap: 9px; flex: 0 0 auto; }
.bar__mark { width: 30px; height: 35px; flex: 0 0 auto; }
.bar__nav { display: none; align-items: center; gap: 2px; min-width: 0; }
.bar__link { position: relative; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--mute); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.bar__link:hover { color: var(--ink); background: var(--raise); }
.bar__link.is-current { color: var(--ink); font-weight: 600; }
.bar__link.is-current::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--accent); }


/* ---------- логотип ---------- */
.hero__mark { width: min(100%, 340px); color: var(--ink); }
.hero__logo { display: block; width: 100%; height: auto; aspect-ratio: 2096 / 2456; }
.foot__brand { color: var(--ink); display: block; }
.foot__word { display: block; width: 190px; height: auto; aspect-ratio: 2200 / 360; }

/* ---------- главная: тише и чище ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(28px, 5vw, 56px); }
.now-list { gap: 8px; }
.now-list .now { display: inline-flex; width: fit-content; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.feed__head { border-bottom-color: var(--line); }
.entry { border-bottom-color: var(--line); }
.entry__tour { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.entry__tour:hover { border-color: var(--accent); transform: translateY(-1px); }
.rail__glyph { border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); }
.rail__link { border-top-color: var(--line); }
.foot { border-top: 1px solid var(--line); }

/* ==========================================================================
   Киберспорт: обзор + вкладки
   ========================================================================== */
.cy-head { padding-bottom: clamp(16px, 2.4vw, 28px); }
.page__org { font-weight: 500; color: var(--mute); margin-top: 10px; }

.tabs { position: sticky; top: var(--bar); z-index: 20; display: flex; gap: 4px; margin: 0 0 clamp(20px, 3vw, 32px); padding: 8px 0; background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px; color: var(--mute); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.tab:hover { color: var(--ink); background: var(--raise); }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -9px; height: 2px; border-radius: 2px; background: var(--accent); }
.tab__n { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--raise); color: var(--mute); font-size: 12px; font-weight: 600; }
.tab.is-on .tab__n { background: var(--accent-soft); color: var(--accent); }
.pane { padding-bottom: clamp(40px, 6vw, 80px); }
.pane > .block__head { margin-bottom: 14px; }

.ov { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.ov__main { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); min-width: 0; }
.ov__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--bar) + 76px); }
.ov__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.ov__head .h-small { margin: 0; font-size: 17px; }
.ov__head a, .side-card__more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ov__head a:hover, .side-card__more:hover { text-decoration: underline; }

.spot { position: relative; padding: clamp(20px, 3vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.spot--live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.spot--empty { box-shadow: none; background: transparent; border-style: dashed; }
.spot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.spot__when { font-size: 14px; color: var(--mute); }
.spot__title { margin: 4px 0 0; font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--font-head); letter-spacing: -.02em; }
.spot__title a { text-decoration: none; }
.spot__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.spot__sub { margin: 0; color: var(--mute); }
.spot__progress { width: 100%; max-width: 460px; display: grid; gap: 8px; font-size: 14px; color: var(--mute); }
.spot__progress .bar-progress { height: 6px; }
.spot__progress .bar-progress i { background: var(--accent); }
.spot .btn { margin-top: 6px; }

.side-card { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.side-card .h-small { font-size: 15px; margin-bottom: 12px; }
.side-card__more { display: inline-block; margin-top: 12px; }
.side-card .tally { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; border-radius: 0; }
.side-card .tally div { padding: 0; border: 0; }
.side-card .tally dt { font-size: 13px; }
.side-card .tally dd { font: 700 26px/1.15 var(--font-head); letter-spacing: -.02em; }
.side-card--join { background: var(--accent-soft); border-color: transparent; }
.side-card .schedule--compact li { border-top-color: var(--line); }
.side-card .schedule--compact li:first-child { border-top: 0; padding-top: 0; }
.schedule--compact li.is-today b { color: var(--accent); }

.tours { border-top: 0; }
.tour__link { padding: 16px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background .15s; }
.tour:last-child .tour__link { border-bottom-color: transparent; }
.tour__link:hover { background: var(--card); }
.tour__link:hover .tour__name { text-decoration: none; }
.tour__name { font-size: 17px; font-weight: 600; }
.tour__date b, .place b { font: 700 26px/1 var(--font-head); letter-spacing: -.02em; }
.tours--compact .tour__link { padding: 12px; }
.tour__champ::before { content: none; }
.tour__champ { color: var(--mute); font-weight: 500; }

.squads { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; border-top: 0; }
.squad { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.squad__name { font: 700 20px/1.2 var(--font-head); letter-spacing: -.015em; }
.squad__roster { grid-template-columns: 1fr; gap: 0; }
.squad__roster li { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.squad__roster span { text-align: right; }
.squad__roster li.is-cap b { color: var(--ink); }
.squad__roster li.is-cap b::after { content: 'капитан'; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.team__logo { background: var(--ink); border-radius: 12px; font: 700 14px var(--font-head); }
.schedule th { border-bottom-color: var(--line-strong); }

@media (max-width: 960px) {
  .ov { grid-template-columns: 1fr; }
  .ov__side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
  .tabs { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .tab { padding: 8px 12px; font-size: 14px; }
  .tab.is-on::after { left: 12px; right: 12px; }
  .tour__link { margin: 0; padding-inline: 0; border-radius: 0; }
  .tour__link:hover { background: transparent; }
  .squad { padding: 16px; }
  .side-card .tally dd { font-size: 22px; }
}
.bar-progress i { background: var(--accent); }
.status--done ~ .bar-progress { display: none; }
.cube-btn { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.cube-btn:hover { border-color: var(--ink); }
.cube-btn .mini-cube i { background: var(--card); }
@media (max-width: 760px) { .hero__mark { width: 46vw; } }

/* ==========================================================================
   Версия 1.2: на ПК — как на телефоне. Боковое меню, карточки, главная-профиль.
   ========================================================================== */
.side { display: none; }
.app__body { min-width: 0; }
@media (min-width: 1024px) {
  :root { --bar: 0px; }
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
  .bar { display: none; }
  .side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px 18px; border-right: 1px solid var(--line); overflow-y: auto; }
}
.side__brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; text-decoration: none; color: var(--ink); }
.side__mark { width: 36px; height: 42px; flex: 0 0 auto; }
.side__name { font: 700 19px/1 var(--font-head); letter-spacing: -.02em; }
.side__name span { color: var(--mute); }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--mute); font-size: 15.5px; font-weight: 500; text-decoration: none; transition: background .15s, color .15s; }
.side__link:hover { background: var(--raise); color: var(--ink); }
.side__link.is-current { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.side__link.is-current .side__ico { color: var(--accent); }
.side__ico { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; }
.side__ico .ico { width: 22px; height: 22px; }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.side__tool { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; background: none; border-radius: 12px; color: var(--mute); font: 500 14.5px var(--font-body); cursor: pointer; text-align: left; }
.side__tool:hover { background: var(--raise); color: var(--ink); }
.side__tool .ico { width: 20px; height: 20px; flex: 0 0 auto; }
.side__tool kbd { margin-left: auto; }

/* ---------- главная: профиль + лента ---------- */
.wall { width: min(100% - 2 * var(--gut), 1080px); margin-inline: auto; padding: clamp(16px, 3vw, 32px) 0 64px; display: grid; gap: 24px; align-items: start; }
@media (min-width: 1200px) { .wall { grid-template-columns: minmax(0, 1fr) 300px; } }
.wall__main { min-width: 0; }
.profile { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; align-items: center; padding: 24px; margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.profile__ava { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.profile__logo { width: 74%; height: auto; aspect-ratio: 2096 / 2456; animation: engrave 1.8s .2s var(--ease) both; }
.profile__kicker { margin: 0 0 4px; color: var(--mute); font-size: 14px; }
.profile__name { margin: 0; font: 700 clamp(26px, 3.2vw, 38px)/1.1 var(--font-head); letter-spacing: -.03em; overflow-wrap: anywhere; }
.profile__bio { margin: 8px 0 0; color: var(--mute); max-width: 56ch; }
.profile__now { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.profile__now .now { display: inline-flex; width: fit-content; max-width: 100%; padding: 7px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
@media (min-width: 1200px) { .profile__now { display: none; } } /* на широком экране «Сейчас» — в правой колонке */
@media (max-width: 640px) {
  .profile { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 18px; }
  .profile__ava { width: 72px; height: 72px; }
  .profile__name { font-size: 26px; }
  .profile__bio { font-size: 15px; }
}

.feed__head { padding: 0 0 14px; border-bottom: 0; }
.entry { display: block; padding: 18px 20px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.entry__side { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0 0 10px; font-size: 13px; }
.entry__kind { font-weight: 600; }
.entry__tour { background: var(--paper); border: 1px solid var(--line); box-shadow: none; border-radius: 14px; padding: 14px 16px; }
.entry__tour:hover { transform: none; }
.entry__game img, .mosaic, .video, .entry__thumb { border-radius: 12px; }
.feed__more { border-radius: 14px; background: var(--card); }
@media (max-width: 640px) {
  .entry { padding: 14px 16px; border-radius: 16px; }
}

.wall__side { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 1200px) { .wall__side { position: sticky; top: 24px; } }
.widget { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.widget__title { margin: 0 0 10px; font: 700 15px/1.2 var(--font-head); }
.widget__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.widget__list .now { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.widget__list li:first-child .now { border-top: 0; padding-top: 0; }
.widget__list .now::before { grid-row: span 2; margin-top: 6px; }
.widget__list .now b, .widget__list .now span, .widget__list .now small { grid-column: 2; }
.widget__list .now span { color: var(--ink); }
.widget--now { display: none; }
@media (min-width: 1200px) { .widget--now { display: block; } }
.widget--sections { display: grid; }
.widget--sections .rail__link { padding: 10px 0; }
.widget--sections .rail__link:first-of-type { border-top: 0; padding-top: 0; }
.rail__glyph .ico { width: 18px; height: 18px; }
@media (min-width: 1024px) { .widget--sections { display: none; } } /* на ПК разделы — в боковом меню */
@media (min-width: 641px) and (max-width: 1199px) { .wall__side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

/* ---------- страницы разделов: те же карточки ---------- */
.page__head { padding-top: clamp(24px, 5vw, 56px); }
.tour-head__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; padding: 4px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.tour-head__meta div { padding: 12px 0; margin: 0; border-right: 0; }
#bracket .akb-bracket { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.matches, .people { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; }
.match:last-child, .people li:last-child { border-bottom: 0; }
.subnav { border-bottom-color: var(--line); }

/* ---------- плеер трансляции ---------- */
.watch { margin: 18px 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.watch__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; }
.watch__badge { padding: 3px 10px; border-radius: 999px; background: #E03131; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.watch[data-status="done"] .watch__badge, .watch[data-status="announce"] .watch__badge, .watch[data-status="reg"] .watch__badge { background: var(--raise); color: var(--ink); }
.watch__title { font-weight: 600; }
.watch__src { margin-left: auto; color: var(--mute); font-size: 13px; }
.watch__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.watch__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .watch { margin-inline: calc(var(--gut) * -1); border-radius: 0; border-inline: 0; } }
.spot__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.spot__actions .btn { margin-top: 0; }
.btn .ico--play { width: 14px; height: 14px; }
/* «Сейчас» в карточке профиля — аккуратными строками, а не таблетками */
.profile__now { display: grid; gap: 6px; }
.profile__now .now { display: block; width: auto; padding: 9px 12px; border-radius: 12px; line-height: 1.4; }
.profile__now .now b { margin-right: 4px; }
.profile__now .now small { margin-left: 4px; }
.now--next::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--mute); box-sizing: border-box; }
.widget__list .now--next::before { margin-top: 6px; }
@media (min-width: 1200px) { .profile__now { display: none; } }
/* Мастерская и игры — тоже карточками */
.devices { gap: 16px; border-top: 0; }
.device { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; border-bottom: 1px solid var(--line); }
.gcard { padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.gcard__img { margin-bottom: 8px; border-radius: 12px; }
/* Меню на ПК — справа */
@media (min-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr) 248px; }
  .side { grid-column: 2; grid-row: 1; border-right: 0; border-left: 1px solid var(--line); }
  .app__body { grid-column: 1; grid-row: 1; }
}

/* ---------- 1.3: эфиры ---------- */
.onair { margin: 0 0 24px; }
.onair__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.onair__head .h-section { margin: 0; }
.onair__dot { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .18); animation: onair 1.4s infinite; }
@keyframes onair { 50% { opacity: .35; } }
.onair__n { color: var(--mute); font-size: 14px; }
.onair__grid { display: grid; gap: 10px; }
.onair.is-multi .onair__grid { grid-template-columns: minmax(0, 1fr); }
.onair__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b0b0d; border: 1px solid var(--line); }
.onair__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.onair__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.onair__list li { flex: 0 0 auto; }
.onair__list button { display: grid; gap: 2px; text-align: left; min-width: 180px; max-width: 240px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card, var(--paper)); color: inherit; font: inherit; cursor: pointer; }
.onair__list button.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.onair__list b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onair__list small { font-size: 12px; color: var(--mute); }
.onair__live { justify-self: start; font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: #E5484D; color: #fff; }
@media (min-width: 1200px) {
	.onair.is-multi .onair__grid { grid-template-columns: minmax(0, 1fr) 220px; }
	.onair.is-multi .onair__list { flex-direction: column; overflow-x: hidden; overflow-y: auto; height: 0; min-height: 100%; }
	.onair.is-multi .onair__list button { max-width: none; width: 100%; }
}
.records__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.rec { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card, var(--paper)); }
.rec__media { position: relative; aspect-ratio: 16 / 9; background: #0b0b0d; }
.rec__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rec__play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: transparent; color: #fff; cursor: pointer; }
.rec__play svg { width: 54px; height: 54px; padding: 13px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.rec__play:hover svg { background: var(--accent); }
.rec__body { display: grid; gap: 2px; padding: 10px 12px; }
.rec__body small { color: var(--mute); font-size: 12px; }

/* ---------- 1.3.2: тренировки и прогресс команды ---------- */
.training { --t-acc: #E8711A; }
:root[data-theme="dark"] .training { --t-acc: #FF9A4D; }
.training .block__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.training__tag { font: 600 12px/1 var(--mono, ui-monospace, monospace); color: var(--t-acc); letter-spacing: .04em; }
.training__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ttile { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.ttile span { font-size: 12px; color: var(--mute); }
.ttile b { font: 700 26px/1.1 var(--font-head, inherit); letter-spacing: -.02em; }
.ttile b small { font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.tbar { display: block; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tbar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--t-acc), #FFB066); }
.tdelta { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mute); }
.tdelta.is-up { color: #1F9D5B; }
.tdelta.is-down { color: #D9443B; }
.tchart { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; padding: 10px 12px 6px; margin-bottom: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.tchart__m { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; min-width: 0; }
.tchart__m i { align-self: end; position: relative; display: block; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--t-acc), rgba(232, 113, 26, .35)); min-height: 0; }
.tchart__m i b { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -2px); font: 600 10px/1 var(--mono, ui-monospace, monospace); color: var(--mute); white-space: nowrap; }
.tchart__m.is-empty i b { display: none; }
.tchart__m small { font-size: 11px; color: var(--mute); }
.tplayers { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.tplayers li { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(70px, .8fr) minmax(80px, 1.2fr) 44px minmax(90px, auto); gap: 6px 12px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.tplayers li > span { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tplayers li > em { font-style: normal; font-size: 13px; font-weight: 600; text-align: right; }
.training__h { margin: 18px 0 8px; font-size: 15px; }
.tnext { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tnext li { display: grid; grid-template-columns: auto auto; gap: 0 8px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tnext b { grid-row: span 2; align-self: center; font-size: 18px; color: var(--t-acc); }
.tnext span { font-size: 14px; }
.tnext em { font-style: normal; font-size: 12px; color: var(--mute); }
@media (max-width: 900px) { .training__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tplayers li { grid-template-columns: 1fr auto; }
  .tplayers li > .tbar { grid-column: 1 / -1; order: 3; }
  .tplayers li > span { grid-column: 1; order: 2; }
  .tplayers li > em:first-of-type { order: 1; }
  .tchart { height: 120px; gap: 3px; padding: 8px 8px 4px; }
  .tchart__m i b { display: none; }
}
