@font-face { font-family: 'Fira Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/fira-sans-v17-cyrillic_latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/fira-sans-v17-cyrillic_latin-500.woff2') format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/fira-sans-v17-cyrillic_latin-700.woff2') format('woff2'); }

/* ArbatSport. Тёмный интерфейс «как приложение»: модули на тёмных поверхностях, фото без затемнений, текст отдельно от фото.
   Мобильная вёрстка основная; широкие экраны — с 960px. */
:root {
    --bg: #f2f3f5;
    --s1: #fff;
    --s2: #eef0f3;
    --s3: #e2e5ea;
    --line: rgba(16, 21, 27, .08);
    --line-2: rgba(16, 21, 27, .14);
    --t1: #10151b;
    --t2: #4d5864;
    --t3: #89939f;
    --body: #262c34;
    --acc: #d12c2c;
    --acc-soft: rgba(209, 44, 44, .12);
    --num: #d6dae0;
    --brand: #c8322f;
    --card-line: transparent;
    --card-shadow: 0 1px 2px rgba(16, 21, 27, .05), 0 8px 24px rgba(16, 21, 27, .05);
    --card-shadow-hover: 0 2px 4px rgba(16, 21, 27, .06), 0 16px 40px rgba(16, 21, 27, .11);
    --card-hover: #fff;
    --seg-on: #fff;
    --glass: rgba(255, 255, 255, .8);
    --glass-on: rgba(16, 21, 27, .07);
    --float-shadow: 0 12px 34px rgba(16, 21, 27, .18);
    --r: 18px;
    --r-s: 12px;
    --wrap: 1240px;
    --text: 'Fira Sans', 'Roboto', -apple-system, 'Segoe UI', sans-serif;
    color-scheme: light;
}
/* тёмная тема включается кнопкой в шапке (выбор хранится в браузере) */
:root[data-theme="dark"] {
    --bg: #0a0c0f;
    --s1: #13161b;
    --s2: #1a1e25;
    --s3: #252a33;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .15);
    --t1: #f3f5f7;
    --t2: #a4acb7;
    --t3: #6f7884;
    --body: #e3e7ec;
    --acc: #ff5456;
    --acc-soft: rgba(255, 84, 86, .16);
    --num: #39404b;
    --card-line: rgba(255, 255, 255, .08);
    --card-shadow: none;
    --card-shadow-hover: none;
    --card-hover: #1a1e25;
    --seg-on: #2e343e;
    --glass: rgba(12, 14, 18, .74);
    --glass-on: rgba(255, 255, 255, .1);
    --float-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
}
/* плавная смена темы: класс ставится скриптом на время переключения */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--text); font-size: 16px; line-height: 1.45; color: var(--t1); padding-bottom: 96px; -webkit-font-smoothing: antialiased; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; }
time { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 14px; }
.scroll-x { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }

/* --- шапка: полупрозрачная, с размытием --- */
.hd { position: sticky; top: 0; z-index: 40; color: var(--t1); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 18px; height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 4px; color: var(--t1); flex: none; }
.logo__mark, .logo__sport { height: 22px; width: auto; display: block; shape-rendering: geometricPrecision; }
/* красная плашка: наклонён только фон (.logo__bg), буквы лежат поверх без трансформаций — поэтому остаются чёткими */
.logo__plate { position: relative; display: inline-flex; padding: 5px 10px; }
.logo__bg { position: absolute; inset: 0; background: var(--brand); border-radius: 5px; transform: skewX(-11deg); overflow: hidden; }
.logo__sport { position: relative; color: #fff; }
/* блик, пробегающий по плашке раз в несколько секунд и при наведении */
.logo__bg::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 42%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-140%); animation: logo-shine 7s ease-in-out 1.2s infinite; }
.logo:hover .logo__bg::after { animation: logo-shine-once .7s ease-out; }
@keyframes logo-shine { 0%, 80% { transform: translateX(-140%); } 100% { transform: translateX(300%); } }
@keyframes logo-shine-once { from { transform: translateX(-140%); } to { transform: translateX(300%); } }
/* появление в шапке: плашка выезжает слева, буквы встают снизу по одной. После анимации трансформаций на буквах не остаётся */
.hd .logo__bg { transform-origin: left center; animation: logo-plate .5s cubic-bezier(.2, .9, .3, 1) backwards; }
.hd .logo__l { transform-box: fill-box; animation: logo-letter .42s cubic-bezier(.2, .9, .3, 1.2) backwards; animation-delay: calc(.22s + var(--i) * .055s); }
@keyframes logo-plate { from { transform: skewX(-11deg) scaleX(0); } to { transform: skewX(-11deg) scaleX(1); } }
@keyframes logo-letter { from { opacity: 0; transform: translateY(55%); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .logo__bg, .logo__l, .logo__bg::after { animation: none !important; }
    .logo__bg::after { display: none; }
}
.hd__nav { display: none; }
.hd__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hd__date { display: none; }
.icon-btn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--t1); background: var(--glass-on); cursor: pointer; transition: background .2s; -webkit-tap-highlight-color: transparent; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--line-2); }
.theme-btn__sun, :root[data-theme="dark"] .theme-btn__moon { display: none; }
:root[data-theme="dark"] .theme-btn__sun { display: block; }

/* разделы на телефоне — лента «таблеток» под шапкой */
.subnav__in { gap: 8px; margin: 0 -14px; padding: 12px 14px 4px; }
.subnav a { flex: none; padding: 8px 15px; border-radius: 999px; font-size: 14.5px; line-height: 1.2; font-weight: 500; color: var(--t2); background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); white-space: nowrap; }
.subnav a.is-active { background: var(--t1); border-color: var(--t1); color: var(--bg); }

/* --- общие детали --- */
.page { padding: 18px 0 40px; }
.panel, .card { background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); border-radius: var(--r); padding: 16px; }
.badge { display: inline-block; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--acc); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--t3); }
.meta time { color: var(--acc); font-weight: 500; }
.meta--old time { color: var(--t3); font-weight: 400; }
.meta__cat { color: var(--t2); }
.meta__cat::before { content: '·'; margin-right: 8px; color: var(--t3); }
.sh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.sh__title { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.sh__more { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); font-size: 13.5px; line-height: 1.2; font-weight: 500; color: var(--t2); white-space: nowrap; transition: color .2s; }
.sh__more:hover { color: var(--acc); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.panel-title, .panel__title { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.panel-title { margin-bottom: 8px; }
.panel__link { font-size: 13.5px; font-weight: 500; color: var(--t2); }
.panel__link { transition: color .2s; }
.panel__link:hover { color: var(--acc); }

/* --- карточка материала: фото сверху, текст под ним --- */
.pc { display: flex; flex-direction: column; min-width: 0; background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); border-radius: var(--r); overflow: hidden; transition: background .25s, box-shadow .3s, transform .3s; }
.pc:hover { background: var(--card-hover); box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.pc__img { display: block; flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: var(--s2); }
/* «О проекте»: одна колонка, сведения списком «название — значение» */
.about { max-width: 860px; }
.facts { display: grid; gap: 0; margin-top: 14px; font-size: 16px; line-height: 1.45; }
.facts > div { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--t3); font-size: 14px; }
.facts dd { margin: 0; color: var(--t1); }
@media (min-width: 700px) {
    .facts > div { grid-template-columns: 240px 1fr; gap: 16px; }
    .facts dt { font-size: 15px; padding-top: 1px; }
}
/* страница автора и список авторов */
.who { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.who .band__title { margin-top: 0; }
.who__img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.who__bio { max-width: 720px; }
.topic.topic--text { padding: 11px 18px; }
.ph__author { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.ph__author:hover { color: var(--t1); text-decoration-color: var(--acc); }
/* виден только поисковикам и программам чтения с экрана */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* у материала нет картинки (или файл пропал): на её месте приглушённый знак сайта */
.noimg { background: var(--s2) url(/img/sport-noimage.svg) center / min(46%, 220px) auto no-repeat !important; }
.row__img.noimg { background-size: 64% auto !important; }
.pc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.pc:hover .pc__img img { transform: scale(1.035); }
.pc__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 13px 15px 16px; }
.pc__meta { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; line-height: 1.3; color: var(--t3); }
.pc__cat { color: var(--acc); font-weight: 500; }
.pc__cat + time::before { content: '·'; margin-right: 8px; }
.pc__title { font-size: 16.5px; line-height: 1.26; font-weight: 700; letter-spacing: -.01em; }
.pc__desc { font-size: 15px; line-height: 1.45; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc--lead .pc__img { aspect-ratio: 16 / 10; }
.pc--lead .pc__body { gap: 9px; padding: 16px 16px 20px; }
.pc--lead .pc__title { font-size: 25px; line-height: 1.16; letter-spacing: -.015em; }
.pc--big .pc__title { font-size: 20px; line-height: 1.2; letter-spacing: -.015em; }
.pc--sm .pc__body { padding: 11px 12px 13px; gap: 5px; }
.pc--sm .pc__title { font-size: 14.5px; line-height: 1.3; font-weight: 500; letter-spacing: 0; }
.pc--sm .pc__meta { font-size: 12px; }
/* карточка-строка: фото слева */
.pc--row { flex-direction: row; align-items: stretch; }
.pc--row .pc__img { width: 38%; aspect-ratio: auto; min-height: 104px; }
.pc--row .pc__body { flex: 1; justify-content: center; padding: 12px 14px; }
.pc--row .pc__title { font-size: 15.5px; }

/* --- главная: первый экран --- */
.home { padding: 14px 0 44px; }
.top { display: grid; gap: 12px; }
.top > .pc--lead { order: 1; }
.top__rail { order: 2; gap: 10px; margin: 0 -14px; padding: 0 14px; scroll-snap-type: x mandatory; scroll-padding: 0 14px; }
.top__rail .pc { flex: none; width: 72%; scroll-snap-align: start; }
.top__side { order: 3; display: grid; gap: 12px; }

/* --- новости во вкладках: последние и популярное --- */
.board { display: flex; flex-direction: column; min-height: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--s2); }
.seg__btn { padding: 7px 14px; border: 0; border-radius: 999px; background: none; font: 500 14px/1.2 var(--text); color: var(--t2); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s, box-shadow .2s; }
.seg__btn:hover { color: var(--t1); }
.seg__btn.is-on { background: var(--seg-on); color: var(--t1); box-shadow: 0 1px 3px rgba(16, 21, 27, .14); }
.board__pane { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.board__pane[hidden], .board__list[hidden], .board__empty[hidden] { display: none; }
.periods { display: flex; gap: 4px; margin: 4px 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.periods__btn { padding: 5px 10px; border: 0; border-radius: 999px; background: none; font: 500 13.5px/1.2 var(--text); color: var(--t3); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .2s, background .2s; }
.periods__btn:hover { color: var(--t1); }
.periods__btn.is-on { background: var(--acc-soft); color: var(--acc); }
.board__empty { padding: 16px 0 6px; font-size: 14.5px; color: var(--t3); }
.board__list { flex: 1; min-height: 0; }
.board__list li + li { border-top: 1px solid var(--line); }
.board__list a { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 11px 0; }
.board__list--plain a { display: block; }
.board__list li:last-child a { padding-bottom: 2px; }
.board__list time { padding-top: 2px; font-size: 13px; line-height: 1.35; font-weight: 500; color: var(--t3); }
.board__list time.is-today { color: var(--acc); }
.board__text { display: block; font-size: 15px; line-height: 1.34; font-weight: 500; transition: color .2s; }
.board__list a:hover .board__text { color: var(--acc); }
.board__cat { display: block; margin-top: 3px; font-size: 12.5px; color: var(--t3); }

/* --- сюжеты: «таблетки» с круглым фото --- */
.topics { gap: 8px; margin: 0 -14px; padding: 0 14px; }
.topic { flex: none; display: flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); transition: background .2s, box-shadow .3s; }
.topic:hover { background: var(--card-hover); box-shadow: var(--card-shadow-hover); }
.topic img, .topic__ph { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--s3); }
.topic__name { display: block; font-size: 15px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.topic__count { display: block; margin-top: 1px; font-size: 12px; color: var(--t3); white-space: nowrap; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- блок раздела на главной --- */
.sec__body { display: grid; gap: 12px; }
.sec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sec__stack { display: grid; gap: 10px; }

/* --- популярное --- */
.rank { margin-top: 36px; }
.rank__list li + li { border-top: 1px solid var(--line); }
.rank__list a { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: start; padding: 13px 0; }
.rank__list li:last-child a { padding-bottom: 2px; }
.rank__n { font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--num); font-variant-numeric: tabular-nums; transition: color .25s; }
.rank__list a:hover .rank__n { color: var(--acc); }
.rank__body { display: block; min-width: 0; }
.rank__cat { display: block; font-size: 12.5px; color: var(--acc); font-weight: 500; }
.rank__title { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.32; font-weight: 500; transition: color .2s; }

/* --- главное на Arbat Media --- */
.fam { margin-top: 28px; }
.fam__item { display: block; padding: 12px 0; }
.fam__item + .fam__item { border-top: 1px solid var(--line); }
.fam__item:last-child { padding-bottom: 2px; }
.fam__item time { font-size: 13px; font-weight: 500; color: var(--t3); }
.fam__title { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.32; font-weight: 500; }
.fam__title { transition: color .2s; }
.fam__item:hover .fam__title { color: var(--acc); }
.fam__cat { display: block; margin-top: 4px; font-size: 12.5px; color: var(--t3); }

/* --- матч-центр --- */
.hd__live { display: inline-flex; align-items: center; gap: 7px; }
.subnav a.hd__live { display: inline-flex; }
.hd__live.is-active .board__live { animation: none; }
.mc__days { gap: 8px; margin: 0 -14px; padding: 2px 14px 12px; }
.mc__day { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 76px; padding: 8px 14px 9px; border-radius: 14px; background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); color: var(--t2); transition: color .2s; }
.mc__day b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; line-height: 1.25; font-weight: 500; text-transform: capitalize; }
.mc__day span:not(.board__live) { font-size: 12.5px; color: var(--t3); }
.mc__day:hover { color: var(--t1); }
.mc__day.is-on { background: var(--t1); border-color: var(--t1); color: var(--s1); }
.mc__day.is-on span:not(.board__live) { color: inherit; opacity: .7; }
.mc__bar { display: grid; gap: 10px; margin-bottom: 14px; }
.mc__bar .seg { justify-self: start; }
.mc__sports { gap: 8px; margin: 0 -14px; padding: 2px 14px; }
.mc__sports .chip { flex: none; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; }
.mc__sports .chip.is-on { background: var(--t1); color: var(--s1); border-color: var(--t1); }
.mc__list { display: grid; gap: 12px; }
.mc__note { font-size: 13px; color: var(--t3); }
.mc__none { color: var(--t2); font-size: 15px; }
.mc__none[hidden], .mt[hidden], .mrow[hidden] { display: none; }
.panel.mt { padding: 0; overflow: hidden; }
.mt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px 11px; background: var(--s2); font-size: 14.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
.mt__sport { flex: none; font-size: 12.5px; font-weight: 500; color: var(--t3); }
.mrow { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 0 8px; padding: 11px 16px; border-top: 1px solid var(--line); }
.mt__head + .mrow { border-top: 0; }
.mrow__when { display: grid; gap: 1px; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--t2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mrow__when small { font-size: 11.5px; font-weight: 400; color: var(--t3); }
.mrow__live { color: var(--acc); }
.mrow__team { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 15.5px; line-height: 1.35; font-weight: 500; }
.mrow__team img, .mrow__team i { flex: none; width: 24px; height: 24px; object-fit: contain; }
.mrow__team i { display: grid; place-items: center; border-radius: 50%; background: var(--s2); font-style: normal; font-size: 11.5px; line-height: 1; font-weight: 700; color: var(--t3); }
.mrow__team span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__team b { flex: none; min-width: 20px; text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mrow.is-live .mrow__team b { color: var(--acc); }
.mrow__team.is-lost { color: var(--t3); }
.mrow__extra { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 3px 0 1px; font-size: 12.5px; color: var(--t3); font-variant-numeric: tabular-nums; }

/* --- появление блоков при прокрутке (только когда работает скрипт) --- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .3, 1); }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .rv { opacity: 1; transform: none; transition: none; }
    .board__live { animation: none; }
}

/* --- списки материалов на страницах разделов --- */
.feat { display: block; }
.feat__img { border-radius: var(--r-s); overflow: hidden; aspect-ratio: 16 / 9; background: var(--s2); }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.feat:hover .feat__img img { transform: scale(1.035); }
.feat .meta { margin-top: 12px; }
.feat__title { margin-top: 6px; font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.feat__desc { margin-top: 7px; font-size: 15px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.feat + .rows { margin-top: 15px; }
.feat + .rows .row:first-child { border-top: 1px solid var(--line); padding-top: 13px; }
.row__img { flex: none; width: 108px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--s2); }
.row__img img { width: 100%; height: 100%; object-fit: cover; }
.row__body { min-width: 0; }
.row__title { margin-top: 4px; font-size: 16px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.row__title, .feat__title, .tl__title, .pop__title, .vcard__title { transition: color .2s; }
.row:hover .row__title, .feat:hover .feat__title, .tl a:hover .tl__title, .pop a:hover .pop__title, .vcard:hover .vcard__title { color: var(--acc); }

/* --- боковая колонка --- */
.tl li + li { border-top: 1px solid var(--line); }
.tl a { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 11px 0; }
.tl time { padding-top: 2px; font-size: 13px; line-height: 1.35; font-weight: 500; color: var(--t3); }
.tl__title { font-size: 15px; line-height: 1.34; font-weight: 500; }
.tl__cat { display: block; margin-top: 3px; font-size: 12.5px; color: var(--t3); }
.pop li + li { border-top: 1px solid var(--line); }
.pop a { display: block; padding: 11px 0; }
.pop__title { font-size: 15px; line-height: 1.34; font-weight: 500; }
.more-link { display: block; margin-top: 10px; padding: 11px; border-radius: 12px; background: var(--s2); text-align: center; font-size: 14px; font-weight: 500; color: var(--t2); transition: color .2s; }
.more-link:hover { color: var(--acc); }
.grid { display: block; }
.grid > .aside { margin-top: 28px; }
.aside > * + * { margin-top: 12px; }

/* --- заголовок страницы --- */
.band { padding: 22px 0 2px; }
.band__kicker { font-size: 14px; font-weight: 500; color: var(--acc); }
.band__title { margin-top: 4px; font-size: 34px; line-height: 1.06; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.band__note { margin-top: 8px; font-size: 14.5px; color: var(--t2); }

/* --- списки --- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14.5px; font-weight: 500; }
.pager a { padding: 11px 18px; border-radius: 999px; background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); transition: color .2s; }
.pager a:hover { color: var(--acc); }
.pager span { color: var(--t3); font-variant-numeric: tabular-nums; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; font: inherit; color: var(--t1); background: var(--s1); border: 1px solid var(--line-2); border-radius: 999px; }
.search input::placeholder { color: var(--t3); }
.search input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.search button { height: 50px; padding: 0 22px; font-size: 15px; font-weight: 500; color: #fff; background: var(--acc); border: 0; border-radius: 999px; cursor: pointer; }
.empty { padding: 6px 0; color: var(--t2); }
.empty a { color: var(--t1); text-decoration: underline; text-decoration-color: var(--acc); text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 15px; border-radius: 999px; background: var(--s1); border: 1px solid var(--card-line); box-shadow: var(--card-shadow); font-size: 14px; line-height: 1.2; font-weight: 500; color: var(--t2); transition: color .2s; }
.chip:hover { color: var(--acc); }
.card .chip { background: var(--s2); border-color: transparent; box-shadow: none; }

/* --- карточки «картинка сверху» («Читайте также») --- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.vcard { display: block; }
.vcard__img { border-radius: var(--r-s); overflow: hidden; aspect-ratio: 16 / 10; background: var(--s2); }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.vcard:hover .vcard__img img { transform: scale(1.04); }
.vcard .meta { margin-top: 9px; }
.vcard__title { margin-top: 4px; font-size: 15px; line-height: 1.3; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* --- страница новости --- */
.ph { padding: 22px 0 0; }
.ph__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--t2); }
.ph__title { margin-top: 12px; max-width: 900px; font-size: 29px; line-height: 1.14; font-weight: 700; letter-spacing: -.015em; }
.post__hero { margin: 0; }
.post__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: var(--s2); }
.post__hero figcaption { padding-top: 8px; font-size: 13px; color: var(--t3); }
.card.post__card { margin-top: 14px; padding: 20px 16px 18px; }
.post-body { font-size: 18px; line-height: 1.66; color: var(--body); overflow-wrap: break-word; }
.post-body > * + * { margin-top: 17px; }
.post-body > p:first-child { font-size: 20px; line-height: 1.5; font-weight: 500; color: var(--t1); }
.post-body a { color: var(--t1); text-decoration: underline; text-decoration-color: var(--acc); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.post-body h2, .post-body h3 { margin-top: 30px; font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--t1); }
.post-body img { border-radius: var(--r-s); margin: 0 auto; }
.post-body figcaption { padding-top: 6px; font-size: 13px; color: var(--t3); }
.post-body blockquote { margin: 22px 0; padding: 16px 18px; border-left: 3px solid var(--acc); background: var(--s1); border-radius: 0 var(--r-s) var(--r-s) 0; font-weight: 500; color: var(--t1); }
.post-body ul, .post-body ol { padding-left: 22px; list-style: revert; }
.post-body iframe, .post-body video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-s); }
.post-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.post-body td, .post-body th { padding: 7px 11px; border: 1px solid var(--line-2); }
.post__tags { margin-top: 26px; }
/* --- плавающая панель реакций на странице новости --- */
.react { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 45; display: flex; justify-content: center; pointer-events: none; transition: opacity .35s ease, bottom .35s ease; }
.react.is-hidden { opacity: 0; bottom: calc(74px + env(safe-area-inset-bottom)); }
.react__in { position: relative; pointer-events: auto; }
.react.is-hidden .react__in { pointer-events: none; }
.react__bar { position: relative; display: flex; align-items: stretch; overflow: hidden; background: rgba(24, 28, 35, .86); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); color: #fff; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--float-shadow); padding: 0 6px; }
.react__btn { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 14px; background: none; border: 0; color: #fff; font: 500 15px/1 var(--text); font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.react__btn + .react__btn { border-left: 1px solid rgba(255, 255, 255, .12); }
.react__btn svg { width: 22px; height: 22px; display: block; }
.react__btn--down svg { transform: scaleY(-1); }
.react__btn:not(:disabled):hover { color: #ff6b6d; }
.react__btn:disabled { cursor: default; opacity: .55; }
.react__btn.is-on { color: #ff6b6d; opacity: 1; }
.react__btn .react__on, .react__btn.is-on .react__off { display: none; }
.react__btn.is-on .react__on { display: block; }
.react__btn.is-fresh .react__on { animation: react-pop .5s cubic-bezier(.2, .9, .3, 1.7); }
.react__btn--down.is-fresh .react__on { animation-name: react-pop-down; }
@keyframes react-pop { from { transform: scale(.4) rotate(-18deg); } to { transform: scale(1) rotate(0); } }
@keyframes react-pop-down { from { transform: scaleY(-1) scale(.4) rotate(-18deg); } to { transform: scaleY(-1) scale(1) rotate(0); } }
.react__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #ff5456; transition: width .15s linear; }
.react__menu { position: absolute; left: 50%; bottom: 60px; width: 270px; margin-left: -135px; padding: 8px; border-radius: 18px; background: var(--s1); color: var(--t1); border: 1px solid var(--line); box-shadow: var(--float-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.react__menu.is-open { opacity: 1; visibility: visible; transform: none; }
.react__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; border-radius: 12px; background: none; font: 500 15.5px/1.2 var(--text); color: inherit; text-align: left; cursor: pointer; }
.react__item:hover { background: var(--s2); }
.react__item svg { width: 22px; height: 22px; flex: none; color: var(--t1); }
.toast { position: fixed; left: 0; right: 0; bottom: calc(156px + env(safe-area-inset-bottom)); z-index: 70; width: fit-content; max-width: 90vw; margin: 0 auto; padding: 10px 16px; border-radius: 999px; background: var(--t1); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--float-shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.toast.is-on { opacity: 1; }

/* --- подвал --- */
.ft { margin-top: 20px; background: var(--s1); border-top: 1px solid var(--line); color: var(--t2); padding: 34px 0 30px; font-size: 14.5px; }
.ft__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 18px; }
.ft__brand { grid-column: 1 / -1; }
.ft__brand p { margin-top: 12px; max-width: 30em; line-height: 1.45; }
.ft__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.ft__col h2 { margin-bottom: 2px; font-size: 13px; line-height: 1.2; font-weight: 500; color: var(--t3); }
.ft__col a { font-size: 15px; line-height: 1.25; font-weight: 500; color: var(--t1); }
.ft a:hover { color: var(--acc); }
.ft__note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--t3); }
.ft__note a { color: var(--t2); text-decoration: underline; text-underline-offset: 3px; }

/* --- нижняя панель на телефоне: парящая, полупрозрачная --- */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px; border-radius: 28px; background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7); border: 1px solid var(--line); box-shadow: var(--float-shadow); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 22px; font-size: 11px; line-height: 1; font-weight: 500; color: var(--t3); -webkit-tap-highlight-color: transparent; transition: color .2s, background .25s; }
.tabbar__ico { display: grid; place-items: center; height: 24px; transition: transform .15s; }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tabbar .d { stroke-dasharray: 1; }
.tabbar .dot { fill: var(--acc); stroke: none; transform-box: fill-box; transform-origin: center; animation: tab-pulse 1.8s ease-in-out infinite; }
.tabbar a:active .tabbar__ico { transform: scale(.86); }
.tabbar a.is-active { color: var(--t1); background: var(--glass-on); }
.tabbar a.is-active svg { color: var(--acc); }
/* активная иконка прорисовывается штрих за штрихом */
.tabbar a.is-active .d { animation: tab-draw .5s ease-out backwards; animation-delay: calc(.12s + var(--i, 0) * .13s); }
@keyframes tab-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tab-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
    .tabbar a.is-active .d, .tabbar .dot { animation: none; }
}

/* телефон: после статьи короткий хвост — без «Популярного», «Свежее» в четыре строки */
@media (max-width: 959px) {
    .board__list li:nth-child(n+7) { display: none; }
    .grid--post .aside__pop { display: none; }
    .post__more .row:nth-child(n+5) { display: none; }
}
@media (min-width: 640px) {
    .top__rail .pc { width: 42%; }
    .sec__grid { grid-template-columns: repeat(4, 1fr); }
    .row__img { width: 150px; height: 100px; }
    .row__title { font-size: 17px; }
    .cards { grid-template-columns: repeat(4, 1fr); }
    .ph__title { font-size: 40px; }
    .band__title { font-size: 46px; }
    .pc--lead .pc__title { font-size: 32px; }
}
@media (min-width: 960px) {
    body { padding-bottom: 0; }
    .tabbar, .subnav { display: none; }
    .react { bottom: 26px; }
    .react.is-hidden { bottom: 6px; }
    .toast { bottom: 92px; }
    .wrap { padding: 0 24px; }
    .hd__in { height: 64px; gap: 28px; }
    .logo__mark, .logo__sport { height: 26px; }
    .logo__plate { padding: 6px 11px; }
    .logo { gap: 5px; }
    .hd__nav { display: flex; align-items: center; gap: 2px; }
    .hd__nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; line-height: 1.2; font-weight: 500; color: var(--t2); transition: color .2s, background .2s; }
    .hd__nav a:hover { color: var(--t1); background: var(--glass-on); }
    .hd__nav a.is-active { color: var(--bg); background: var(--t1); }
    .hd__date { display: block; font-size: 13.5px; color: var(--t3); margin-right: 6px; }
    .hd__date::first-letter { text-transform: uppercase; }
    .page { padding: 26px 0 70px; }
    .panel, .card { padding: 20px; }
    .sh { margin: 54px 0 18px; }
    .sh__title { font-size: 30px; letter-spacing: -.02em; }

    .home { padding: 20px 0 80px; }
    .top { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
    .top > .pc--lead { grid-column: span 8; order: 0; }
    .pc--lead .pc__img { aspect-ratio: 16 / 9; }
    .pc--lead .pc__body { gap: 12px; padding: 22px 26px 28px; }
    .pc--lead .pc__title { font-size: 42px; line-height: 1.1; letter-spacing: -.02em; max-width: 17em; }
    .pc--lead .pc__desc { font-size: 17px; max-width: 46em; }
    .pc--lead .pc__meta { font-size: 14px; }
    /* правая колонка не растягивает ряд: её высоту задаёт главная карточка, лента прокручивается внутри */
    .top__side { grid-column: span 4; order: 0; display: flex; flex-direction: column; gap: 16px; height: 0; min-height: 100%; }
    .top__side .board { flex: 1; }
    .top__side .board__list { overflow-y: auto; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); padding-bottom: 20px; }
    .top__rail { grid-column: 1 / -1; order: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
    .top__rail .pc { width: auto; }
    .pc__body { padding: 15px 18px 19px; }
    .pc__title { font-size: 18px; }
    .topics { margin: 0; padding: 0; flex-wrap: wrap; gap: 10px; }
    .topic img, .topic__ph { width: 46px; height: 46px; }
    .topic { padding: 5px 20px 5px 5px; }
    .topic__name { font-size: 16px; }

    .sec__body { grid-template-columns: 1fr 1fr; gap: 16px; }
    .sec__body--solo { grid-template-columns: 1fr; }
    .sec__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .sec__stack { gap: 16px; grid-auto-rows: 1fr; }
    .pc--big .pc__img { aspect-ratio: auto; flex: 1; min-height: 300px; }
    .pc--big .pc__body { padding: 20px 22px 24px; gap: 10px; }
    .pc--big .pc__title { font-size: 27px; line-height: 1.16; letter-spacing: -.018em; }
    .pc--big .pc__desc { font-size: 16px; }
    .pc--sm .pc__body { padding: 13px 15px 16px; gap: 6px; }
    .pc--sm .pc__title { font-size: 16px; }
    .pc--sm .pc__meta { font-size: 13px; }
    .pc--row .pc__img { width: 44%; min-height: 150px; }
    .pc--row .pc__body { padding: 18px 22px; gap: 9px; }
    .pc--row .pc__title { font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
    .sec__body--solo .pc--row .pc__img { min-height: 320px; width: 50%; }
    .sec__body--solo .pc--row .pc__title { font-size: 30px; letter-spacing: -.025em; }

    .rank { margin-top: 54px; padding: 24px 26px 26px; }
    .rank__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .rank__list li + li { border-top: 0; border-left: 1px solid var(--line); }
    .rank__list a { display: block; height: 100%; padding: 4px 20px 2px; }
    .rank__list li:first-child a { padding-left: 0; }
    .rank__list li:last-child a { padding-right: 0; }
    .rank__n { display: block; margin-bottom: 14px; font-size: 54px; }
    .rank__title { font-size: 16.5px; }
    .fam { margin-top: 40px; padding: 24px 26px 26px; }
    .fam__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fam__item { padding: 4px 20px 2px; }
    .fam__item + .fam__item { border-top: 0; border-left: 1px solid var(--line); }
    .fam__item:first-child { padding-left: 0; }
    .fam__item:last-child { padding-right: 0; }
    .fam__title { font-size: 16.5px; }
    .panel__head { margin-bottom: 16px; }
    .panel__title { font-size: 22px; letter-spacing: -.015em; }
    .board .panel__head { margin-bottom: 6px; }
    .aside .board__list { max-height: 520px; overflow-y: auto; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }

    .mc__days { margin: 0; padding: 2px 0 14px; flex-wrap: wrap; }
    .mc__bar { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 16px; }
    .mc__sports { margin: 0; padding: 2px 0; }
    .mt__head { padding: 13px 22px 12px; font-size: 15.5px; }
    .mrow { grid-template-columns: 74px minmax(0, 1fr); padding: 12px 22px; }
    .mrow__team { font-size: 16.5px; }
    .mrow__team b { font-size: 17px; }
    .grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
    .grid > .aside { margin-top: 0; position: sticky; top: 84px; }
    .aside > * + * { margin-top: 16px; }
    .block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
    .feat + .rows { margin-top: 0; }
    .feat + .rows .row:first-child { border-top: 0; padding-top: 0; }
    .feat__title { font-size: 25px; letter-spacing: -.02em; }

    .band { padding: 40px 0 6px; }
    .band__title { font-size: 56px; letter-spacing: -.025em; }
    .ph { padding: 40px 0 4px; }
    .ph__title { font-size: 50px; line-height: 1.08; letter-spacing: -.022em; }
    .card.post__card { margin-top: 18px; padding: 36px 44px 34px; }
    .post-body { max-width: 720px; }
    .post-body { font-size: 19.5px; }
    .post-body > p:first-child { font-size: 22px; }
    .ft { margin-top: 30px; padding: 54px 0 34px; }
    .ft__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; }
    .ft__brand { grid-column: auto; }
}
