/* Метапутешественник — базовый стиль «Тёмный» (data-skin="glass" — историческое имя).
   «Светлый» и «Минимал» переопределяют его в light.css и minimal.css.

   Производительность — главное правило файла:
   • никаких backdrop-filter и filter: blur — панели непрозрачные;
   • фон — неподвижный градиент на body, рисуется один раз;
   • бесконечная анимация одна — бегущая строка, и та на паузе, когда её не видно;
   • длинные списки рисуются лениво (content-visibility: auto). */

/* ---------- токены ---------- */
:root {
  --bg: #0b0a14;
  --ink: #f6f4ff;
  --ink-2: rgba(246, 244, 255, .72);
  --ink-3: rgba(246, 244, 255, .5);
  --violet: #8b6cff;
  --cyan: #3be0ff;
  --pink: #ff5fb4;
  --lime: #c6ff4a;
  --amber: #ffb547;
  --accent: var(--lime);
  --accent-ink: #0c0f02;
  --r-xl: 20px;
  --r-pill: 999px;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* ширина колонки и поля по краям; поле не меньше безопасной зоны (вырез iPhone боком) */
  --container: 1240px;
  --gutter: max(14px, env(safe-area-inset-left), env(safe-area-inset-right));

  /* поверхности контента */
  --surface: rgba(255, 255, 255, .045);
  --surface-hover: rgba(255, 255, 255, .075);
  --hairline: rgba(255, 255, 255, .08);
  /* плавающие панели (шапка, нижнее меню, меню, уведомления) — непрозрачные */
  --panel: #16131f;
  --panel-line: rgba(255, 255, 255, .09);
  --panel-shadow: 0 10px 28px -14px rgb(0 0 0 / .7);
  --indicator: rgba(255, 255, 255, .1);
  /* мягкий цветной отсвет фона — статичный */
  --glow-a: rgba(139, 108, 255, .2);
  --glow-b: rgba(59, 224, 255, .08);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f1f1f6;
  --ink: #12101f;
  --ink-2: rgba(18, 16, 31, .72);
  --ink-3: rgba(18, 16, 31, .5);
  --accent: #5b3cff;
  --accent-ink: #fff;
  --surface: #fff;
  --surface-hover: #fafaff;
  --hairline: rgba(18, 16, 31, .08);
  --panel: #fff;
  --panel-line: rgba(18, 16, 31, .08);
  --panel-shadow: 0 8px 24px -14px rgb(30 20 60 / .25);
  --indicator: rgba(91, 60, 255, .1);
  --glow-a: rgba(139, 108, 255, .12);
  --glow-b: rgba(59, 224, 255, .06);
  color-scheme: light;
}

/* ---------- основа ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  /* отсвет только у верха страницы; без background-attachment: fixed — оно перерисовывает фон при прокрутке */
  background:
    radial-gradient(1100px 520px at 8% -6%, var(--glow-a), transparent 62%),
    radial-gradient(900px 480px at 100% 0%, var(--glow-b), transparent 60%),
    var(--bg) no-repeat;
  color: var(--ink);
  font: 500 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* страховка для узких экранов: слово длиннее строки переносится, а не вылезает за край
     (iOS Safari игнорирует overflow-x: hidden у body и даёт прокрутку вбок) */
  overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.num { font-variant-numeric: tabular-nums; }
.contents { display: contents; }
.muted { color: var(--ink-2); margin: 0 0 18px; }
.gap-top { margin-top: 16px; }
.stack { display: grid; gap: 14px; align-content: start; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* Широкий Unbounded — только для главного заголовка и крупных цифр, остальное спокойным Manrope. */
h1, h2, h3 { letter-spacing: -.01em; margin: 0; }
/* длинные русские слова в заголовках не должны распирать сетку */
h1 { font: 700 clamp(28px, 4.2vw, 50px)/1.06 var(--font-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
h2 { font: 700 17px/1.3 var(--font); }
h3 { font: 700 15px/1.35 var(--font); }
.eyebrow { font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow + h1 { margin-top: 10px; }
.eyebrow + h2 { margin-top: 6px; }
.eyebrow + h3 { margin-top: 8px; }
.lead { color: var(--ink-2); font-size: clamp(14.5px, 1.2vw, 16.5px); max-width: 620px; margin: 12px 0 0; }
.grad {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 40%, var(--pink) 70%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- поверхности ---------- */
/* карточка контента (.glass — историческое имя класса) */
.glass {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
/* плавающая панель управления: непрозрачная, с тонкой рамкой и мягкой тенью */
.panel {
  background: var(--panel);
  border-radius: var(--panel-radius, var(--r-pill));
  box-shadow: inset 0 0 0 1px var(--panel-line), var(--panel-shadow);
}
@media (forced-colors: active) {
  .panel { border: 1px solid CanvasText; box-shadow: none; }
}

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0; width: min(var(--container), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 12px;
  padding: 5px 5px 5px 14px;
}
.logo { display: flex; align-items: center; gap: 8px; min-width: 28px; font: 700 14px/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
/* если шапке тесно, название обрезается многоточием, а не вылезает за край */
.logo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.logo-mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.nav { display: flex; gap: 0; margin: 0 auto; }
.nav a {
  white-space: nowrap; padding: 8px 12px; border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 600; font-size: 13.5px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); background: var(--indicator); }
.top-actions { display: flex; gap: 4px; align-items: center; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; background: transparent;
  display: grid; place-items: center; font-size: 16px; color: var(--ink-2); transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--indicator); color: var(--ink); }
.top-actions .btn { min-height: 36px; padding-block: 6px; }
.seg.skin-switch { padding: 3px; flex-wrap: nowrap; white-space: nowrap; }
.seg.skin-switch button { padding: 7px 11px; font-size: 12px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 13.5px; line-height: 1.2; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .seg :is(button, a):focus-visible, .icon-btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn.ghost:hover { background: var(--surface-hover); }

/* ---------- страница ---------- */
main { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin: 24px auto 72px; }
/* смена страницы — короткое проявление прозрачностью (без transform: не создаёт слой на всю страницу) */
.view { animation: fade .25s ease-out; }
.page-head { position: relative; margin: 14px 4px 20px; padding-right: 64px; }
.page-sticker { position: absolute; right: 4px; top: 0; }
.page-sticker .px { width: 52px; height: 52px; }

/* ---------- бенто-сетка ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento > * { min-width: 0; }
.card { padding: 18px 20px 20px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.card-head a.more { color: var(--ink-3); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.card-head a.more:hover { color: var(--ink); }
.span-12 { grid-column: span 12; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }

/* ---------- главный экран ---------- */
.hero { padding: clamp(22px, 3.2vw, 38px); overflow: hidden; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: end; }
.hero > * { min-width: 0; }
.hero h1 { margin-top: 14px; }
.hero .actions { margin-top: 22px; }
/* наклейки-эмодзи — неподвижные (покачивание грузило бы компоновщик постоянно) */
.hero-stickers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-stickers b { position: absolute; left: var(--x); top: var(--y); }
.hero-stickers b:nth-child(odd) { transform: rotate(-6deg); }
.hero-stickers b:nth-child(even) { transform: rotate(5deg); }
/* цифры — без плашек, разделены тонкими линиями */
.kpis { display: grid; grid-template-columns: 1fr 1fr; }
.kpi { padding: 14px 16px; box-shadow: inset 1px 0 0 var(--hairline); }
.kpi:nth-child(-n+2) { box-shadow: inset 1px 0 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.kpi b { display: block; font: 700 clamp(20px, 2.2vw, 26px)/1.05 var(--font-display); letter-spacing: -.02em; }
.kpi span { color: var(--ink-3); font-size: 12px; font-weight: 600; }

.live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #3dff8b; box-shadow: 0 0 0 3px rgba(61, 255, 139, .18); }

/* бегущая строка — единственная бесконечная анимация; только transform (работает на видеокарте),
   на паузе при наведении и когда строки нет на экране (класс .off ставит app.js) */
.ticker {
  overflow: hidden; padding: 2px 0 12px; margin-bottom: 14px; box-shadow: inset 0 -1px 0 var(--hairline);
  contain: layout paint;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
/* бесконечная лента: две одинаковые копии, сдвиг ровно на одну (-50%). Отступ — у каждой ссылки, а не gap,
   чтобы копии были одной ширины и стык не дёргался; --dur ставит app.js по длине строки (постоянная скорость) */
.ticker-track { display: flex; width: max-content; animation: ticker var(--dur, 90s) linear infinite; }
.ticker:hover .ticker-track, .ticker.off .ticker-track { animation-play-state: paused; }
.ticker a { white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2); padding-right: 40px; }
.ticker a:hover { color: var(--ink); }
.ticker a b { color: var(--ink-3); margin-right: 8px; font-weight: 700; font-size: 10.5px; letter-spacing: .08em; }
:root[data-theme="light"] .ticker a b { color: var(--violet); }

/* ---------- рейтинги ---------- */
/* строки с тонкой шкалой снизу вместо цветных плашек */
.rank { list-style: none; margin: 0; padding: 0; display: grid; }
.rank li { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 9px 2px 12px; }
.rank li + li { box-shadow: inset 0 1px 0 var(--hairline); }
.rank li .bar { position: absolute; left: 40px; bottom: 5px; height: 2px; max-width: calc(100% - 40px); border-radius: 2px; background: var(--violet); opacity: .55; transform-origin: left; animation: grow .8s var(--ease) both; }
.rank.gta li .bar { background: var(--pink); }
.rank.mc li .bar { background: var(--lime); opacity: .45; }
.rank .pos { font: 700 13px/1 var(--font); color: var(--ink-3); text-align: center; }
.rank li:nth-child(2) .pos { color: #d7dbe6; }
.rank li:nth-child(3) .pos { color: #e3976b; }
.rank .who { min-width: 0; }
.rank .who b, .rank .who b a { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .who span { font-size: 12px; color: var(--ink-3); }
.rank .val { font: 700 14px/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank .val small { display: block; font: 600 11px var(--font); color: var(--ink-3); text-align: right; margin-top: 4px; }
.meta-line { color: var(--ink-3); font-size: 12px; margin-top: 12px; }

/* сегментные переключатели */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); gap: 0; flex-wrap: wrap; }
.seg :is(button, a) { border: 0; background: none; padding: 7px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 12.5px; color: var(--ink-3); cursor: pointer; transition: color .2s, background-color .2s; }
.seg :is(button, a):hover { color: var(--ink); }
.seg :is(button, a).on { color: var(--ink); background: var(--indicator); }
.tag-seg { margin: 0 0 16px; border-radius: 20px; }

/* таблица рейтинга */
.table-wrap { overflow-x: auto; margin: 0 -10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: right; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; padding: 10px; }
table.data td { text-align: right; padding: 11px 10px; border-top: 1px solid var(--hairline); }
table.data th:nth-child(-n+2), table.data td:nth-child(-n+2) { text-align: left; }
table.data td b { font-weight: 700; }
table.data td .sub { display: block; color: var(--ink-3); font-size: 12px; }

/* метки тем: нейтральные, цвет темы — маленькой точкой */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--hairline); white-space: nowrap; }
.chip:is(.lime, .pink, .cyan, .amber)::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.chip.lime { --dot: var(--lime); }
.chip.pink { --dot: var(--pink); }
.chip.cyan { --dot: var(--cyan); }
.chip.amber { --dot: var(--amber); }

/* ---------- новости ---------- */
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 14px; transition: background-color .2s; }
.news-item + .news-item { box-shadow: inset 0 1px 0 var(--hairline); }
.news-item:hover { background: var(--surface-hover); box-shadow: none; }
.news-item h3 { font: 700 14px/1.38 var(--font); letter-spacing: 0; }
.news-item .src { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.news-item .thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface); }
/* min(…, 100%): на экране уже 280px (складные телефоны) колонка не шире самого экрана */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
/* карточки за пределами экрана браузер не рисует, пока до них не долистали */
.news-card { padding: 14px; display: flex; flex-direction: column; gap: 9px; transition: background-color .2s; content-visibility: auto; contain-intrinsic-size: auto 330px; }
.news-card:hover { background: var(--surface-hover); }
.news-card img:not(.px) { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--surface); }
/* картинка карточки Ленты — целиком в рамке, края — размытая копия (как у кейсов и окна на главной) */
.news-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--surface); contain: paint; }
.news-media .nmd-bg { position: absolute; inset: -12px; background: center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .85; }
.news-card .news-media img:not(.px) { position: relative; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; }
.news-card h3 { font: 700 15px/1.35 var(--font); letter-spacing: 0; }
.news-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; }
/* заглушка новости без картинки — крупный пиксельный эмодзи */
.news-ph { aspect-ratio: 16 / 9; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(176, 77, 255, .14), transparent 70%), var(--surface); }
.news-ph .px { width: 56px; height: 56px; transition: transform .25s var(--ease); }
.news-card:hover .news-ph .px { transform: translateY(-4px) rotate(-4deg); }
.news-ph[hidden] { display: none; }
/* панель фильтров новостей */
.toolbar { --panel-radius: 26px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; padding: 5px; }
.toolbar .seg { background: none; box-shadow: none; }
.search { flex: 1 1 220px; min-width: 0; height: 38px; border: 0; outline: 0; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.search:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.empty { color: var(--ink-3); padding: 28px; text-align: center; }
.more-news { justify-content: center; }
.empty .px { margin: 0 auto 10px; }

/* ---------- премии ---------- */
.award { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; content-visibility: auto; contain-intrinsic-size: auto 260px; }
.award .row { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
/* длинное название премии переносится, а не распирает карточку на узком экране */
.stack > *, .award, .award .row > div { min-width: 0; }
.award h3 { font-size: 16px; overflow-wrap: anywhere; }
.award p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.award .more { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.award .more:hover { color: var(--ink); }
.proj { display: grid; gap: 8px; }
.proj div { padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--hairline); font-size: 13px; }
.proj b { display: block; }
.proj span { color: var(--ink-3); font-size: 12.5px; }

/* ---------- карта индустрии ---------- */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.map-block { padding: 18px; content-visibility: auto; contain-intrinsic-size: auto 180px; }
.map-block h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 19px; }
.map-block .muted { margin: 0 0 12px; font-size: 14px; }
.map-block.big { grid-column: span 2; }
.map-block.big h2 { font-size: 24px; }
@media (max-width: 640px) { .map-block.big { grid-column: auto; } }
.map-no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #800020; color: #FFD21F; font-size: 14px; font-weight: 800; }
.map-poster { display: block; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hairline); }
.map-poster img { display: block; width: 100%; height: auto; }
/* прошлая карта (2025) на закрытой странице карты: высокий постер по центру, клик — полный размер */
.map-prev { margin-top: 28px; text-align: center; }
.map-prev h2 { margin: 0 0 18px; }
.map-prev a { display: block; max-width: 640px; margin: 0 auto; }
.map-prev img { display: block; width: 100%; height: auto; }
.logos { display: flex; flex-wrap: wrap; gap: 6px; }
.logos span { padding: 6px 10px; border-radius: 10px; font-weight: 600; font-size: 12.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline); }

/* ---------- журнал ---------- */
.issue { display: grid; gap: 10px; align-content: start; }
.issue .no { font: 700 46px/.95 var(--font-display); letter-spacing: -.04em; }
.issue .issue-date { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.issue ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.issue .btn { justify-self: start; margin-top: 6px; }

/* ---------- эксперт и заявка ---------- */
.expert { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.avatar .px { width: 48px; height: 48px; }
.quote { font: 700 clamp(16px, 1.5vw, 18.5px)/1.4 var(--font); margin: 16px 0 10px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hint { color: var(--ink-3); font-size: 12.5px; }
.hint a { color: var(--ink); }
/* «Я не робот» и поле-ловушка для ботов (людям не видно) */
.robot-check { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hairline); background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.robot-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.field { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.field input, .field textarea, .field select {
  border: 0; outline: 0; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow .2s;
}
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 7px 12px; border-radius: var(--r-pill); font-weight: 700; font-size: 12.5px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color .2s, color .2s; }
.pills input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.toast { --panel-radius: 999px; position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 99; display: flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; font-size: 14px; font-weight: 700; animation: fade .2s ease-out; }
footer { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin: 0 auto 40px; color: var(--ink-3); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 6px; }
/* подписка на каналы над подвалом: текст слева, маскот справа стоит на линии подвала */
.subscribe { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin: -24px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 8px 40px; align-items: end; border-top: 1px solid var(--hairline); }
.subscribe-text { min-width: 0; align-self: center; padding: 28px 0; }
.subscribe h2 { margin: 6px 0 12px; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; text-wrap: balance; }
.subscribe .muted { margin: 0; max-width: 46ch; font-size: 16px; }
.subscribe-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.subscribe-actions .btn { gap: 8px; }
.subscribe-actions svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.subscribe img { display: block; width: 100%; max-width: 400px; height: auto; justify-self: end; margin-top: 16px; }
@media (max-width: 720px) {
  .subscribe { grid-template-columns: 1fr; margin-top: -32px; }
  .subscribe-text { padding-bottom: 0; }
  .subscribe img { max-width: 300px; justify-self: center; }
}

/* ---------- выпадающее меню (ui.js → UI.menu) ---------- */
.menu {
  --panel-radius: 16px;
  position: fixed; z-index: 100; display: grid; padding: 6px;
  min-width: 220px; max-width: min(340px, calc(100vw - 16px));
  opacity: 0; transform: translateY(-4px);
  transition: opacity .14s ease-out, transform .14s ease-out;
}
.menu.open { opacity: 1; transform: none; }
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px 12px;
  border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer;
  font: 600 13.5px/1.25 var(--font); text-align: left; -webkit-tap-highlight-color: transparent;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--indicator); outline: 0; }
.menu-item small { margin-left: auto; padding-left: 12px; color: var(--ink-3); font-size: 11.5px; font-weight: 700; }

/* ---------- пиксельные эмодзи (картинки) ---------- */
.px { display: inline-block; flex: none; image-rendering: pixelated; vertical-align: middle; }
:is(h1, h2, h3) .px { vertical-align: -4px; margin-right: 8px; }
h2 .px { width: 20px; height: 20px; }
.chip .px { margin-left: -3px; }
.rank .pos .px { margin: 0 auto; display: block; }
.ticker a .px { vertical-align: -2px; margin-right: 8px; }

/* ---------- бургер-меню (экраны до 960px) ----------
   Кнопка — фирменный уголок L (левая и нижняя линии) с двумя линиями меню внутри.
   Открыто: линии гаснут, уголок поворачивается на −45° и становится стрелкой вниз. */
.burger, .menu-sheet { display: none; }
.burger { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--corner, #800020); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.burger-l, .burger-l::before, .burger-l::after { position: absolute; display: block; content: ""; }
.burger-l { left: 12px; top: 11px; width: 20px; height: 20px; box-shadow: inset 2px -2px 0 currentColor; transition: transform .25s ease, top .25s ease; }
.burger-l::before, .burger-l::after { left: 6px; height: 2px; background: var(--ink, #111); transition: opacity .2s; }
.burger-l::before { top: 4px; width: 14px; }
.burger-l::after { top: 10px; width: 10px; }
.burger[aria-expanded="true"] .burger-l { top: 6px; transform: rotate(-45deg); }
.burger[aria-expanded="true"] .burger-l::before, .burger[aria-expanded="true"] .burger-l::after { opacity: 0; }
.burger:focus-visible { outline: 2px solid var(--corner, #800020); outline-offset: 2px; }
/* меню выезжает из-под шапки; у пунктов — уголок при наведении и у текущего раздела */
.menu-sheet { position: fixed; z-index: 55; left: 0; right: 0; top: 0; max-height: 100dvh; overflow-y: auto; padding: calc(var(--menu-top, 76px) + 8px) var(--gutter, 16px) 24px; background: var(--bg, #f4f2ec); box-shadow: 0 18px 40px rgb(0 0 0 / .14); animation: menu-in .22s ease-out; }
.menu-sheet[hidden] { display: none !important; }
body.menu-open .topbar { z-index: 60; }
.menu-sheet > a { display: block; width: fit-content; max-width: 100%; margin: 2px 0; padding: 10px 14px 8px; font: 700 clamp(20px, 5.4vw, 28px)/1.15 var(--font-display, Georgia, serif); color: var(--ink, #111); text-decoration: none; transition: box-shadow .2s, color .2s; animation: menu-item .3s ease-out backwards; }
.menu-sheet > a:nth-child(n+2) { animation-delay: calc(var(--i, 1) * 25ms); }
.menu-sheet > a:hover { color: var(--corner, #800020); box-shadow: inset 2px -2px 0 color-mix(in srgb, var(--corner, #800020) 35%, transparent); }
.menu-sheet > a.active { color: var(--corner, #800020); box-shadow: inset 2px -2px 0 var(--corner, #800020); }
.menu-sheet-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline, #ddd); }
.menu-tg { font-weight: 700; color: var(--ink, #111); }
@keyframes menu-in { from { transform: translateY(-12px); opacity: 0; } }
@keyframes menu-item { from { transform: translateX(-10px); opacity: 0; } }

/* ---------- анимации (только opacity/transform) ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- адаптив ---------- */
/* верхнее меню на ноутбуках и планшетах боком: семь разделов + переключатели не помещаются целиком —
   сначала прячем название у знака, потом кнопку «Консультация» (она есть в блоке эксперта) */
@media (min-width: 961px) and (max-width: 1180px) {
  .top-actions .btn { display: none; }
  .nav a { padding: 8px 8px; font-size: 13px; }
  .seg.skin-switch :is(button, a) { padding: 7px 8px; }
}
@media (max-width: 1080px) {
  .span-7, .span-6, .span-5 { grid-column: span 12; }
  .span-4 { grid-column: span 6; }
  .hero { grid-template-columns: 1fr; }
  /* в одну колонку заголовок занимает всю ширину: наклейки уходят в правый угол,
     а тексту оставляем под них поле справа, чтобы они не ложились на слова */
  .hero > div:first-of-type { padding-right: clamp(56px, 12vw, 110px); }
  .hero-stickers b:nth-child(n+3) { display: none; }
  .hero-stickers b:nth-child(1) { left: auto; right: clamp(18px, 4vw, 40px); top: 18px; }
  .hero-stickers b:nth-child(2) { left: auto; right: clamp(12px, 2vw, 24px); top: 92px; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar { justify-content: space-between; }
  .burger { display: block; }
  .menu-sheet { display: block; }
  main { margin-bottom: 32px; }
  /* шапка карточки: если заголовку и ссылке «Все →» тесно, ссылка уходит на вторую строку;
     вкладки рейтинга — одной строкой с прокруткой пальцем */
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .card-head > div { min-width: 0; }
  .card-head > .seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .card-head > .seg::-webkit-scrollbar { display: none; }
  .card-head > .seg :is(button, a) { flex: none; }
  /* сенсорные экраны: зоны нажатия не меньше 40–44px */
  .logo { min-height: 44px; min-width: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .seg :is(button, a) { min-height: 40px; }
  .top-actions .btn { min-height: 44px; }
  /* ссылки «Все →» выглядят как текст, но ловят касание невидимой зоной ≥ 44px вокруг */
  .card-head a.more, .award .more { position: relative; }
  .card-head a.more::after, .award .more::after { content: ''; position: absolute; inset: -14px -10px; }
  .search { height: 44px; }
  /* iOS приближает страницу при фокусе на поле мельче 16px */
  .search, .field :is(input, textarea, select) { font-size: 16px; }
  .ticker a b { font-size: 11px; }
}
/* телефоны: переключатель стиля компактнее, чтобы шапка помещалась в одну строку */
@media (max-width: 430px) {
  .seg.skin-switch button { padding-inline: 8px; font-size: 11.5px; }
  .topbar { gap: 6px; }
}
@media (max-width: 360px) {
  .seg.skin-switch button { padding-inline: 6px; font-size: 11px; }
  .topbar { padding-left: 6px; }
}
@media (max-width: 640px) {
  /* темы новостей — одна строка с прокруткой пальцем, как в приложениях, вместо 4 рядов */
  .tag-seg { display: flex; flex-wrap: nowrap; width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--r-pill); }
  .tag-seg::-webkit-scrollbar { display: none; }
  .tag-seg button { flex: none; }
  h1 { font-size: clamp(24px, 6.2vw, 40px); }
  /* на телефоне сетка в одну колонку: 12 колонок с промежутками на узком экране
     (складные — 280px) сами по себе шире экрана */
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .bento > * { grid-column: 1 / -1; }
  .card { padding: 16px; }
  .kpi b { font-size: 20px; }
  .form { grid-template-columns: 1fr; }
  .top-actions .btn { display: none; }
  .news-item .thumb { width: 52px; height: 52px; }
  .page-sticker { right: 0; }
  .page-sticker .px { width: 44px; height: 44px; }
  .hero-stickers b { zoom: .7; }
}
/* логотип — только надпись, без значка: она видна на любом экране */
/* сенсорные экраны шире 960px (iPad Pro, iPad боком, ноутбуки с сенсором): шапка «компьютерная»,
   но нажимают пальцем — зоны нажатия не меньше 44px */
@media (pointer: coarse) and (min-width: 961px) {
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .icon-btn { width: 44px; height: 44px; }
  .top-actions .btn { min-height: 44px; }
  .seg :is(button, a) { min-height: 40px; }
  .card-head a.more, .award .more { position: relative; }
  .card-head a.more::after, .award .more::after { content: ''; position: absolute; inset: -14px -10px; }
  .search { height: 44px; font-size: 16px; }
  .field :is(input, textarea, select) { font-size: 16px; }
}
/* наведение только там, где есть мышь: на сенсорных экранах подсветка «залипала» после касания */
@media (hover: none) {
  .news-card:hover, .news-item:hover { background: none; }
  .news-card.glass:hover { background: var(--surface); }
  .news-card:hover .news-ph .px { transform: none; }
}
/* большие мониторы: колонка шире, а на 2K/4K и ультрашироких — весь интерфейс пропорционально
   крупнее, иначе на 2560px сайт превращается в узкую полосу мелкого текста */
@media (min-width: 1600px) {
  :root { --container: 1360px; }
}
@media (min-width: 2200px) {
  body { zoom: 1.2; }
}
@media (min-width: 3000px) {
  body { zoom: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* лента новостей — суть блока, как в «Известиях»: идёт всегда, только медленнее */
  .ticker-track { animation: ticker calc(var(--dur, 90s) * 1.4) linear infinite !important; }
}
/* печать и «Сохранить как PDF»: только содержимое — без шапки, меню, кнопок и тёмного фона */
@media print {
  :root { --ink: #000; --ink-2: #222; --ink-3: #555; --surface: #fff; --hairline: #ccc; color-scheme: light; }
  body { background: #fff !important; color: #000; zoom: 1 !important; }
  .topbar, .burger, .menu-sheet, .page-loader, .ticker, .toolbar, .tag-seg, .actions, .btn, .hero-stickers, .page-sticker,
  .toast, .menu, footer, .subscribe, .more-news, .card-head a.more, .skin-switch, #theme { display: none !important; }
  main { width: 100%; margin: 0; }
  .glass { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .news-card, .award, .map-block { content-visibility: visible; }
  .grad { -webkit-text-fill-color: #000; color: #000; background: none; }
  .bento { display: block; }
  .bento > * { margin-bottom: 12px; }
  a { color: #000; }
}

/* ---------- служебное: переход к содержимому, скрытый заголовок, загрузка ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.loading #app { opacity: .55; transition: opacity .2s .15s; }
/* загрузка: фирменный уголок крутится — при переходе между страницами (справа сверху) и на занятых кнопках */
@keyframes corner-spin { to { transform: rotate(360deg); } }
.page-loader { position: fixed; top: 84px; right: 22px; z-index: 60; display: grid; place-items: center; width: 40px; height: 40px; background: var(--bg, #f4f2ec); box-shadow: 0 4px 14px rgb(0 0 0 / .14); opacity: 0; visibility: hidden; transition: opacity .2s .15s, visibility 0s .35s; }
.page-loader::before { content: ""; width: 18px; height: 18px; box-shadow: inset 2px -2px 0 var(--corner, #800020); animation: corner-spin .9s cubic-bezier(.6, .1, .4, .9) infinite; }
body.loading .page-loader { opacity: 1; visibility: visible; transition-delay: .15s, 0s; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; }
.btn[aria-busy="true"]::after { content: ""; position: absolute; left: calc(50% - 8px); top: calc(50% - 8px); width: 16px; height: 16px; box-shadow: inset 2px -2px 0 currentColor; color: var(--accent-ink, #fff); animation: corner-spin .9s cubic-bezier(.6, .1, .4, .9) infinite; }
.btn.ghost[aria-busy="true"]::after { color: var(--corner, #800020); }
@media (prefers-reduced-motion: reduce) { .page-loader::before, .btn[aria-busy="true"]::after { animation-duration: 2.4s; } }
.seg a { display: inline-flex; align-items: center; text-decoration: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar:has(img) { overflow: hidden; }

/* ---------- страница новости ---------- */
.crumbs { font-size: 13px; color: var(--ink-3); margin: 6px 0 14px; }
.crumbs a { color: var(--ink-2); }
.article { max-width: 820px; }
.article h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 10px 0 12px; }
.article .src { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: 13.5px; }
.article .lead { font-size: 18px; line-height: 1.6; margin: 18px 0; max-width: 700px; } /* не шире ~80 знаков в строке */
.article-img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border-radius: var(--r-xl); margin-top: 18px; }

/* ---------- рейтинг миров за период ---------- */
.top-kpis { margin-bottom: 14px; }
.top-controls { display: grid; gap: 10px; margin-bottom: 8px; }
.top-controls .seg { justify-self: start; max-width: 100%; }
.top-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.top-form .search { flex: 1 1 200px; }
.field-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.field-inline input { height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink); font: inherit; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.top-table td { vertical-align: middle; }
.world { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 220px; }
.world img { width: 40px; height: 40px; border-radius: 10px; flex: none; background: var(--surface); object-fit: cover; }
.world:hover b { text-decoration: underline; text-underline-offset: 3px; }
.spark { display: block; margin-left: auto; fill: var(--accent); opacity: .85; }
.delta { font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--ink-3); }
.delta.up { color: #3dcc7a; }
.delta.down { color: var(--pink); }
.world-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.world-head img { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; }
.world-head h1 { font-size: clamp(22px, 3vw, 34px); margin: 4px 0 12px; }
.chart { margin: 18px 0 0; }
.chart figcaption { font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.chart svg { display: block; width: 100%; height: 180px; fill: var(--accent); }
.chart rect:hover { opacity: .7; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .top-controls .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .top-controls .seg::-webkit-scrollbar { display: none; }
  .top-controls .seg a { flex: none; }
  .world { min-width: 0; }
  .world img { width: 32px; height: 32px; }
  .world-head { grid-template-columns: 1fr; }
  .world-head img { width: 72px; height: 72px; }
  .field-inline input { height: 44px; font-size: 16px; }
}
@media print { .top-controls, .skip { display: none !important; } }

/* ---------- лендинги: Brand Lift, реклама в играх; анонсы на главной ---------- */
.premiere { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.page-head .eyebrow .premiere { margin-bottom: 4px; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.prose { line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.formula { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--indicator); }
.formula p { margin: 6px 0 0; }
.metric-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.metric-list li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.metric-list li:last-child { border: 0; padding: 0; }
.metric-list li > span:last-child { font-size: 13.5px; color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; }
.feature-grid h3 { margin: 0 0 6px; font-size: 16px; }
.feature-grid p { margin: 0; line-height: 1.55; }
.format-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.format { padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.format h3 { margin: 10px 0 6px; font-size: 15.5px; }
.format p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; counter-reset: none; }
.steps li { padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.steps .step-no { display: block; font-family: var(--font-display); font-size: 22px; color: var(--accent); margin-bottom: 8px; }
.steps p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.slides figure { margin: 0; }
.slides img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px var(--hairline); background: var(--surface); }
.slides figcaption { display: flex; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.slides figcaption span { color: var(--accent); font-weight: 700; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.6; }
.cta { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; }
.audience { display: grid; gap: 10px; align-content: start; justify-items: start; }
.audience h2 { margin: 6px 0 0; }
.case { padding: 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.case h3 { margin: 6px 0; }
.promo { display: grid; gap: 8px; align-content: start; color: inherit; text-decoration: none; transition: transform .2s var(--ease); }
.promo:hover { transform: translateY(-2px); }
.promo h2 { display: flex; align-items: center; gap: 10px; margin: 2px 0; }
.promo p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.promo .more { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.promo .premiere { justify-self: start; }
@media (max-width: 640px) {
  .cta { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- узкие экраны: длинные слова и цифры ---------- */
/* «Метапутешественник» одним словом шире экрана складного телефона — разрешаем перенос внутри слова */
.expert > div { min-width: 0; }
.expert h2, .expert .eyebrow { overflow-wrap: anywhere; }
.kpi { min-width: 0; }
.kpi b { overflow-wrap: anywhere; }
@media (max-width: 340px) {
  .expert { grid-template-columns: 1fr; }
  .top-kpis, .stat-grid, .cab-kpis { grid-template-columns: 1fr; }
}

/* ---------- маскот Пиксик ---------- */
.mascot-img { display: inline-block; image-rendering: pixelated; height: auto; }
.page-head { padding-right: 110px; }
.page-sticker .mascot-img { width: 100px; }
.empty .mascot-img { margin: 0 auto 8px; }
.hero-mascot .mascot-img { width: 120px; }
/* днём Пиксик машет, ночью (автотема 22:00–6:00 по Москве) — спит */
.mascot-night { display: none !important; }
:root[data-night="1"] .mascot-night { display: inline-block !important; }
:root[data-night="1"] .mascot-day { display: none !important; }
@media (max-width: 1080px) { .hero-mascot .mascot-img { width: 96px; } }
@media (max-width: 640px) {
  .page-head { padding-right: 72px; }
  .page-sticker .mascot-img { width: 68px; }
  .empty .mascot-img { width: 72px; }
}
@media print { .mascot-img { display: none !important; } }
.empty .actions { justify-content: center; }

/* ---------- библиотека кейсов ---------- */
.cases-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: stretch; padding: 28px; }
.ch-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ch-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; }
/* большое окно: картинка случайного кейса, подпись поверх */
.case-window { position: relative; margin: 0; min-height: 360px; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.case-window .cw-link, .case-window img { display: block; width: 100%; height: 100%; }
/* картинка кейса видна целиком (без растяжения и обрезки); поля закрывает размытая копия той же картинки */
.case-window .cw-bg { position: absolute; inset: 0; background: center / cover no-repeat; filter: blur(22px) saturate(1.1); opacity: .85; transition: opacity .22s ease; }
.case-window img { position: absolute; inset: 0; object-fit: contain; transition: opacity .22s ease, transform 6s ease; }
.case-window:hover img { transform: scale(1.03); }
.case-window.cw-fade img, .case-window.cw-fade .cw-bg { opacity: 0; }
.case-window figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgb(10 8 6 / .72); color: #fff; pointer-events: none; }
.case-window figcaption b { font: 700 18px/1.2 var(--font-display); }
.case-window figcaption .chip { justify-self: start; color: #fff; background: rgb(255 255 255 / .14); box-shadow: none; }
.case-window .cw-title { font-size: 13.5px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-window .cw-next { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(10 8 6 / .6); color: #fff; font-size: 18px; cursor: pointer; }
.case-filters { display: grid; gap: 8px; margin: 18px 0 6px; }
.case-filters .seg { justify-self: start; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.case-filters .seg::-webkit-scrollbar { display: none; }
.case-filters .seg a { flex: none; }
.case-search { display: flex; }
.case-search .search { max-width: 420px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.case-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; content-visibility: auto; contain-intrinsic-size: 340px; }
/* картинка кейса — целиком, без обрезки и растяжения; пустое по краям — размытая копия той же картинки (как окно кейсов на главной) */
.case-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; contain: paint; }
.case-media .cm-bg { position: absolute; inset: -12px; background: center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .85; }
.case-media img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); }
.case-card:hover .case-media img { transform: scale(1.04); }
.case-ph { display: grid; place-items: center; height: 100%; }
.case-body { display: grid; gap: 6px; padding: 12px 14px 14px; align-content: start; }
.case-body h3 { font-size: 16px; }
.case-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-body .foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.case-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px; margin-top: 18px; }
/* рамка фиксированной пропорции: страница не «прыгает», когда картинка догружается; картинка вписана целиком */
.case-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 16px; object-fit: contain; background: var(--soft, #ebe8df); max-height: 520px; }
/* «Лента»: эмодзи перед заголовком (выбирает редактор), метка «Статья»/«Мнение», текст статьи */
.title-emo { display: inline-block; vertical-align: -.12em; margin-right: .3em; line-height: 0; }
.title-emo img { height: 1.05em; width: auto; }
.kind-chip { color: #800020; box-shadow: inset 0 0 0 1px #800020; }
[data-theme="dark"] .kind-chip { color: #E06C84; box-shadow: inset 0 0 0 1px #E06C84; }
.kind-seg { margin-bottom: 12px; }
.article-body { max-width: 720px; font-size: 17px; line-height: 1.65; }
.article-body p { margin: 0 0 1em; }
.article .author { font-weight: 700; color: var(--ink); }
/* две рядом: слева и справа (на узком телефоне — тоже рядом, чтобы читалось как пара) */
.case-gallery.pair { grid-template-columns: 1fr 1fr; }
/* карусель: лента с прокруткой по слайдам, стрелки поверх, точки снизу */
.case-carousel { position: relative; margin-top: 18px; }
.cc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cc-track::-webkit-scrollbar { display: none; }
.cc-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.cc-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: var(--soft, #ebe8df); max-height: 520px; }
.cc-btn { position: absolute; top: calc(50% - 32px); width: 40px; height: 40px; border: 0; background: rgba(244, 242, 236, .92); color: #111; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cc-btn.prev { left: 8px; } .cc-btn.next { right: 8px; }
.cc-btn:hover { box-shadow: inset 2px -2px 0 #800020; }
.cc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.cc-dots button { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.cc-dots button::before { content: ""; width: 8px; height: 8px; background: var(--ink-3, #888); }
.cc-dots button[aria-current]::before { background: #800020; }
.case-article { max-width: 920px; }
/* текст кейса: абзацы и блок «Результат» — цифры жирным, слева фирменный уголок */
.case-text { max-width: 700px; margin: 18px 0; font-size: 18px; line-height: 1.6; }
.case-text p { margin: 0 0 14px; }
.case-results { margin: 18px 0; padding: 4px 0 10px 16px; box-shadow: inset 2px -2px 0 var(--corner, #800020); }
.case-results-h { display: block; margin-bottom: 6px; font: 700 13px/1.2 var(--font-label, var(--font)); text-transform: uppercase; letter-spacing: .08em; color: var(--corner, #800020); }
.case-results ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.case-results li b { font-family: var(--font-display); font-size: 1.15em; color: var(--ink); }
@media (max-width: 640px) { .case-text { font-size: 16px; } }
@media (max-width: 960px) {
  .cases-hero { grid-template-columns: 1fr; padding: 20px; }
  .case-window { min-height: 0; aspect-ratio: 16 / 11; order: -1; }
}
@media (max-width: 640px) {
  .cases-hero { padding: 14px; gap: 16px; }
  .ch-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-window figcaption { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .case-window figcaption b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .case-window img { transition: none; } }
@media print { .case-window, .case-filters { display: none !important; } }
.case-media .case-ph .mascot-img { width: 96px; height: auto; object-fit: contain; transform: none !important; }

/* ---------- сравнение фирменного цвета: жёлтый «Маршрут» и красный «Сигнал» ----------
   Включается переключателем «Цвет» (cookie mt-pal → <html data-pal>). Эмодзи и Пиксика сервер рисует
   в той же палитре. Стиль «Минимал» меняет только эмодзи: у него своя чёрно-белая основа. */
:root[data-pal="yellow"]:not([data-theme="light"]):not([data-skin="light"]):not([data-skin="minimal"]) {
  --accent: #ffd21f; --accent-ink: #14110f; --violet: #ffd21f; --bg: #12100c; --panel: #1d1a14;
  --indicator: rgba(255, 210, 31, .14); --glow-a: rgba(255, 210, 31, .14); --glow-b: rgba(255, 120, 60, .06);
}
:root[data-pal="yellow"][data-theme="light"]:not([data-skin="minimal"]), :root[data-pal="yellow"][data-skin="light"] {
  --accent: #14110f; --accent-ink: #ffd21f; --violet: #e6a800; --accent-soft: rgba(255, 210, 31, .3); --bg: #fbf7ea;
  --indicator: rgba(255, 210, 31, .3); --glow-a: rgba(255, 210, 31, .3); --glow-b: rgba(255, 170, 0, .1);
}


/* выделенные слова в заголовках */
:root[data-pal="yellow"]:not([data-skin="minimal"]) .grad { background: linear-gradient(100deg, #ffe46b, #ffd21f 45%, #ffb000); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-pal="yellow"]:is([data-theme="light"], [data-skin="light"]):not([data-skin="minimal"]) .grad {
  background: none; color: var(--ink); -webkit-text-fill-color: currentColor; box-shadow: inset 0 -.36em 0 #ffd21f; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

 [data-skin="light"]):not([data-skin="minimal"]) .grad { background: linear-gradient(100deg, #e11d2b, #ff5a3c); -webkit-background-clip: text; background-clip: text; }
:root[data-pal][data-skin="light"] .btn:hover { filter: brightness(1.08); background: var(--accent); }
:root[data-pal][data-skin="light"] .rank:is(.gta, .mc) li .bar { background: var(--violet); }
:root[data-pal][data-skin="light"] .issue .no { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
:root[data-pal][data-skin="light"] .news-ph { background: var(--indicator); }
:root[data-pal="yellow"]:is([data-theme="light"], [data-skin="light"]) :is(.card-head a.more, .promo .more) { color: var(--ink); text-decoration: underline; text-decoration-color: #ffd21f; text-decoration-thickness: 3px; }

/* четыре стиля в переключателе на складном телефоне (≤ 330 px): плотнее, чтобы не вылезать за край */
@media (max-width: 330px) {
  .seg.skin-switch :is(button, a) { padding-inline: 3px !important; font-size: 10px !important; letter-spacing: 0 !important; }
  .seg.skin-switch { padding: 2px !important; }
}
/* телефоны: переключатель стилей в шапке не помещается */
@media (max-width: 430px) { .topbar .skin-switch { display: none; } }

/* ---------- премия Метапутешественника (/prize) ---------- */
@media (max-width: 1080px) { .bento > .promo-prize { grid-column: 1 / -1; } }
.nom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.nom { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.nom h3 { margin: 0; font-size: 16.5px; line-height: 1.3; padding-right: 34px; }
.nom p { margin: 0; line-height: 1.5; font-size: 13.5px; }
.nom-no { position: absolute; top: 14px; right: 16px; font-family: var(--font-display); font-size: 15px; color: var(--accent); opacity: .85; }
.nom-leaders { list-style: none; margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--indicator, rgb(127 127 127 / .08)); display: grid; gap: 4px; counter-reset: lead; font-size: 13px; }
.nom-leaders li { display: flex; gap: 8px; align-items: baseline; counter-increment: lead; min-width: 0; }
.nom-leaders li::before { content: counter(lead); font-weight: 800; color: var(--accent); width: 1ch; }
.nom-leaders span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nom-prev { display: flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 12.5px !important; }
.nom-prev img { flex: none; }
.nom-origin { justify-self: start; margin-top: auto; font-size: 11.5px; max-width: 100%; white-space: normal; line-height: 1.35; }
.prize-data .nom { box-shadow: inset 0 0 0 1px var(--hairline), inset 0 3px 0 var(--accent); }
.criteria, .rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.criteria li > div { display: flex; justify-content: space-between; gap: 12px; }
.criteria li > i { display: block; height: 8px; margin: 8px 0 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--w), var(--hairline) var(--w)); }
.criteria p { margin: 0; font-size: 13.5px; }
.rules li { position: relative; padding-left: 22px; line-height: 1.5; }
.rules li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }





/* «Метапутешественника» одним словом шире складного телефона */
.promo h2, .page-head h1 { overflow-wrap: anywhere; min-width: 0; }
.promo h2 > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 340px) { .promo h2 { font-size: 18px; } }

/* ---------- архив обложек (/journal#covers) ---------- */
#covers .card-head { flex-wrap: wrap; gap: 10px; }

/* ---------- главная: первый экран «вся индустрия» ---------- */
.hero-industry { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; gap: 32px; }
.hero-industry .eyebrow { margin-top: 12px; }
.hero-industry h1 { margin-top: 8px; }
.hi-window { position: relative; min-height: 420px; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hi-window .case-window { min-height: 420px; height: 100%; width: 100%; aspect-ratio: auto; }
.hi-window .hero-mascot { position: absolute; left: -38px; top: -30px; z-index: 3; pointer-events: none; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .35)); }
.hi-window .hero-mascot .mascot-img { width: 110px; }
.hub { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hub-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 16px 16px 15px; border-radius: 20px; color: inherit; text-decoration: none; transition: transform .2s var(--ease); min-width: 0; }
.hub-tile:hover { transform: translateY(-3px); }
.hub-tile img, .hub-tile svg { grid-row: span 2; }
.hub-tile b { font: 700 15.5px/1.2 var(--font-display); min-width: 0; }
.hub-tile span { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hub-tile .premiere { position: absolute; top: -9px; right: 12px; font-size: 10px; font-style: normal; padding: 3px 8px; }
@media (max-width: 1280px) { .hub { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  .hero-industry { grid-template-columns: 1fr; }
  .hero-industry > div:first-of-type { padding-right: 0; }
  .hi-window, .hi-window .case-window { min-height: 300px; }
  .hi-window .hero-mascot { left: auto; right: 10px; top: -40px; bottom: auto; }
  .hi-window .hero-mascot .mascot-img { width: 84px; }
  .hub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-tile { grid-template-columns: 1fr; padding: 14px; }
  .hub-tile img, .hub-tile svg { grid-row: auto; width: 30px; height: 30px; }
  .hi-window, .hi-window .case-window { min-height: 240px; }
}


/* ---------- маскоты брендов (/mascots) ---------- */
.mascot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.mascot-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px; border-radius: 22px; align-items: start; }
.mc-ava { position: relative; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: hsl(var(--h) 80% 55%); box-shadow: inset 0 -6px 0 rgb(0 0 0 / .18); }
.mc-ava span { font: 700 36px/1 var(--font-display); color: #fff; text-shadow: 0 3px 0 rgb(0 0 0 / .2); }
.mc-ava img, .mc-ava svg { position: absolute; right: -8px; bottom: -8px; }
.mc-body { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; } /* ряд чипов не растягивает карточку */
.mc-body .chips { flex-wrap: wrap; }
.mc-body .chip { max-width: 100%; white-space: normal; }
.mc-body h3 { margin: 0; font-size: 18px; line-height: 1.2; }
.mc-brand { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.mc-body p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.mc-games { display: flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ink) !important; }
.mbars { display: grid; gap: 10px; }
.mbars div { display: grid; grid-template-columns: minmax(0, 190px) 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; }
.mbars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mbars i { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) var(--w), var(--hairline) var(--w)); }
.mbars b { text-align: right; }
.mascot-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mascot-games div { padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.mascot-games b { display: block; } .mascot-games span { font-size: 13px; color: var(--ink-2); } .mascot-games p { margin: 6px 0 0; font-size: 13px; }
@media (max-width: 430px) { .mascot-grid { grid-template-columns: 1fr; } .mbars div { grid-template-columns: minmax(0, 120px) 1fr 32px; } }


/* ---------- дни рождения людей индустрии (главная) ---------- */
/* кейс ↔ мир в рейтинге */
.case-world { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 18px 0; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); color: inherit; text-decoration: none; }
.case-world img { border-radius: 12px; }
.case-world small { display: block; font-size: 12px; color: var(--ink-3); }
.case-world b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-world .num { text-align: right; font: 700 20px/1.1 var(--font-display); }
@media (max-width: 400px) { .case-world { grid-template-columns: auto minmax(0, 1fr); } .case-world .num { grid-column: 1 / -1; text-align: left; } }


/* ---------- вехи индустрии (/milestones): годы, слева мир, справа Россия ---------- */
.ms-years { position: sticky; top: 76px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px; margin: 14px 0 4px; scrollbar-width: none; }
.ms-years a { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; }
.ms-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 0; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.ms-legend span { display: flex; align-items: center; gap: 8px; }
.ms-year { scroll-margin-top: 130px; margin-top: 18px; }
.ms-y { font: 700 clamp(40px, 6vw, 72px)/1 var(--font-display); margin: 6px 0 10px; opacity: .9; }
.ms-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; position: relative; }
.ms-cols::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--hairline); }
.ms-col { display: grid; gap: 12px; align-content: start; }
.ms-item { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.ms-item.major { box-shadow: inset 0 0 0 2px var(--accent); }
.ms-item.soon { border: 2px dashed var(--accent); }
.ms-dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--indicator, rgb(127 127 127 / .1)); }
.ms-body { min-width: 0; }
.ms-date { font-size: 12.5px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.ms-item h3 { margin: 4px 0 6px; font-size: 16px; line-height: 1.3; }
.ms-item.major h3 { font-size: 18px; }
.ms-item p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ms-item .chip.src { text-decoration: none; }
.ms-none { text-align: center; }
@media (max-width: 760px) {
  .ms-cols, .ms-legend { grid-template-columns: 1fr; }
  .ms-legend { display: none; }
  .ms-cols::before { display: none; }
  .ms-col.ru .ms-item { border-left: 4px solid var(--accent); }
  .ms-none { display: none; }
  .ms-years { top: 0; }
}



.ms-item .chips { flex-wrap: wrap; }
.ms-item .chip { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }

.mascot-card { min-width: 0; }
.mc-body h3, .mc-brand { overflow-wrap: anywhere; }
@media (max-width: 340px) { .mascot-card { grid-template-columns: 1fr; } .mascot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- главная: окно кейсов поменьше, четыре раздела ---------- */
.hero-industry { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); }
.hi-window { min-height: 0; align-self: center; }
.hi-window .case-window { min-height: 0; height: auto; aspect-ratio: 4 / 3; max-width: 520px; justify-self: start; width: 100%; }
@media (max-width: 1080px) {
  .hero-industry { grid-template-columns: 1fr; }
  .hi-window .case-window { justify-self: start; max-width: 480px; }
}
.hub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* кнопка «Вверх»: только компьютеры */
.to-top { position: fixed; z-index: 40; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  padding: 12px 16px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font: 700 13px/1 var(--font); cursor: pointer; box-shadow: 0 8px 24px -10px rgb(0 0 0 / .45); }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 960px), (hover: none) { .to-top { display: none !important; } }

/* новости на главной: превью у каждой новости (картинка или значок темы), регион в бегущей строке — красным */
.news-item .thumb { width: 96px; height: 72px; flex: none; border-radius: 12px; object-fit: cover; }
.news-item .thumb-ph { display: grid; place-items: center; background: var(--indicator, rgb(127 127 127 / .1)); }
.ticker a b { color: var(--ticker-accent, #eb001b) !important; }
@media (max-width: 430px) { .news-item .thumb { width: 72px; height: 56px; } }
/* превью — слева от заголовка */
.news-item { grid-template-columns: auto minmax(0, 1fr); }
.news-item .thumb-box { display: block; flex: none; order: -1; }
.news-item .thumb-ph[hidden] { display: none; }

/* ---------- динамика в рейтинге: 8 недель (Roblox) и месяцы (GTA) + пояснение «i» ---------- */
.td-dyn { width: 140px; }
.bars-svg { display: block; margin-left: auto; overflow: visible; }
.bars-svg rect { fill: var(--brand-red, #eb001b); } /* прошлые недели — фирменный красный */
.bars-svg rect.last { fill: #ffd21f; stroke: #111111; stroke-width: 1; } /* текущая — жёлтая с тонкой обводкой, чтобы читалась на светлом фоне */
.bars-svg rect.none { fill: var(--hairline); opacity: 1; }
/* наведение: число над столбиком (поверх соседей, с подложкой цвета страницы), сам столбик чуть светлее */
.bars-svg rect.hit { fill: transparent; }
.bars-svg .bv { opacity: 0; font: 700 10px/1 var(--font-label, var(--font)); fill: var(--ink); paint-order: stroke; stroke: var(--paper, var(--bg)); stroke-width: 3px; pointer-events: none; }
.bars-svg .bar:hover rect:not(.hit) { opacity: .75; }
.bars-svg .bar:hover .bv { opacity: 1; }
.bars-svg .bar:hover { position: relative; }
.th-dyn { white-space: nowrap; position: relative; }
.info-pop { display: inline-block; position: relative; vertical-align: middle; margin-left: 6px; }
.info-pop summary { list-style: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  font: italic 700 12px/1 Georgia, serif; color: var(--bg); background: var(--ink); text-transform: none; letter-spacing: 0; }
.info-pop summary::-webkit-details-marker { display: none; }
.info-pop summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-body { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: min(320px, 80vw); padding: 14px 16px; text-align: left; white-space: normal;
  background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--panel-line), 0 16px 34px -14px rgb(0 0 0 / .35); border-radius: 12px;
  font: 500 13px/1.5 var(--font); text-transform: none; letter-spacing: 0; }
.info-body b { display: block; margin-bottom: 6px; font-size: 14px; }
.info-body p { margin: 0 0 6px; }
.gta-table .sub { display: block; font-size: 12.5px; color: var(--ink-2); }
[data-skin="minimal"] .info-body { border-radius: 0; box-shadow: inset 0 0 0 1px var(--rule), 0 16px 34px -14px rgb(0 0 0 / .3); }

/* ---------- логотип: надпись-картинка; бордовая на светлом, жёлтая на тёмном ---------- */

/* ---------- новый набор эмодзи (PNG): плавное масштабирование, пропорции не ломаются ---------- */
img.px-png { object-fit: contain; image-rendering: auto; }
.mascot-png { image-rendering: auto; }
.page-sticker .mascot-png { width: 120px; }
.hero-mascot .mascot-png { width: 130px; }
@media (max-width: 1080px) { .hero-mascot .mascot-png { width: 104px; } }
@media (max-width: 640px) { .page-sticker .mascot-png { width: 68px; } } /* иначе наезжает на заголовок страницы */
/* новый набор крупнее там, где мелкие головы теряются */
.card-head h2 img.px-png, .card-head h3 img.px-png { height: 28px; width: auto; }
.format img.px-png { height: 56px; width: auto; }
.audience img.px-png { height: 80px; width: auto; }
.hub-tile img.px-png { height: 40px; width: auto; }
/* значки-головы нового набора нарисованы обрезанными снизу — мягко растворяем нижний край, чтобы не было «ступеньки» */
.hero-mascot .mascot-day img.px-png { height: 120px; width: auto; } @media (max-width: 1080px) { .hero-mascot .mascot-day img.px-png { height: 90px; } }
.consult-form { max-width: 820px; }

/* ---------- логотип (25.10.2026): «МЕТА» — чернила, «ПУТЕШЕСТВЕННИК» — бордовый; узкий плотный шрифт прописными ---------- */
.logo-word { font: 700 23px/1 'Oswald', 'Arial Narrow', sans-serif; text-transform: uppercase; letter-spacing: .005em; color: #800020; white-space: nowrap; }
.logo-word b { font-weight: 700; color: var(--ink); }
@media (max-width: 1100px) { .logo-word { font-size: 19px; } }
@media (max-width: 520px) { .logo-word { font-size: 16px; } }
@media (max-width: 340px) { .logo-word { font-size: 14px; } }
:root[data-theme="dark"]:not([data-skin="light"]) .logo-word, :root[data-skin="glass"]:not([data-theme="light"]) .logo-word { color: #e06c84; }
.news-eyebrow { margin-bottom: 10px; }

/* ---------- журнал: два последних выпуска с обложкой, ниже — архив списком ---------- */
.journal-latest { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.journal-archive { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.issue-row { display: grid; gap: 14px; align-content: start; border-top: 2px solid var(--ink); padding-top: 18px; min-width: 0; }
.issue-cover img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 701; object-fit: cover; }
.issue-text { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.issue-text .no { font: italic 700 clamp(40px, 5vw, 56px)/1 var(--font-display); }
.issue-text h2 { margin: 0; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; }
.issue-text ul { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.issue-text li { line-height: 1.4; }
@media (max-width: 860px) { .journal-latest, .journal-archive { grid-template-columns: 1fr; } }

/* ---------- главная: блок «Рейтинг Метапутешественника» ---------- */
.home-rating { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 18px; }
.hr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hr-head h2 { margin: 0; font: 700 clamp(26px, 3vw, 38px)/1.1 var(--font-display); }
.home-news-head { margin-top: 18px; }
.hr-updated { margin: 10px 0 0; text-align: right; font-size: 13px; font-style: italic; color: var(--ink-3); }
.hr-label { font: 700 13px/1.2 var(--font-label, var(--font)); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.hr-row { display: grid; gap: 14px 24px; }
.hr-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hr-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .hr-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .hr-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hr-5 { grid-template-columns: 1fr; } }
.hr-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hr-col { min-width: 0; padding: 14px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.hr-col h3 { margin: 0 0 10px; font: 700 14px/1.3 var(--font); }
/* /rating, Roblox: «ТОП-5 по набору 1 млн визитов» под таблицей */
.million-top { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--hairline); max-width: 560px; }
.million-top h3 { margin: 0 0 10px; }
.million-top ol { margin: 0; padding: 0 0 0 22px; display: grid; gap: 6px; font-size: 14px; }
.million-top li::marker { color: var(--accent); font-weight: 700; }
.million-top li { display: list-item; }
.million-top li > b { float: right; margin-left: 12px; font-weight: 700; }
.million-top .muted { margin: 0; }
/* «Онлайн сейчас» на главной — рамка бордовым из брендбука (на тёмной теме — светлый бордовый) */
.hr-col.hr-online { box-shadow: inset 0 0 0 2px #800020; }
[data-theme="dark"] .hr-col.hr-online { box-shadow: inset 0 0 0 2px #E06C84; }
.hr-col h3 small { font-weight: 500; color: var(--ink-3); }
.hr-col ol { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; font-size: 13.5px; }
.hr-col li { padding-left: 2px; }
.hr-col li::marker { color: var(--accent); font-weight: 700; }
.hr-col li { display: list-item; }
.hr-col li > span { display: inline-block; max-width: calc(100% - 78px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.hr-col li > b { float: right; font-weight: 700; }
@media (max-width: 1080px) { .hr-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hr-4, .hr-2 { grid-template-columns: 1fr; } }
[data-skin="minimal"] .hr-col { border-radius: 0; }
.hr-head > * { min-width: 0; } .hr-head h2 { overflow-wrap: anywhere; }
@media (max-width: 430px) { .hr-head h2 { font-size: 24px; } }

/* ---------- первый экран: «Новости» (главная новость) · «Кейсы» (окно кейсов) ----------
   Над каждым блоком — подпись с фирменным уголком; углы прямые, без скруглений. */
.hero-industry { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 1080px) { .hero-industry { grid-template-columns: 1fr; } }
.hi-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
/* align-self: stretch — иначе старое .hi-window { align-self: center } сжимает окно кейсов до нуля на экранах уже 1281px */
.hi-col > .hi-feature, .hi-col > .hi-window { flex: 1 1 auto; align-self: stretch; }
.hi-label { align-self: flex-start; padding: 2px 10px 5px 10px; font: 600 12.5px/1 var(--font-label, var(--font)); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); text-decoration: none; box-shadow: inset 2px -2px 0 var(--corner, #800020); }
.hi-label:hover { color: var(--corner, #800020); }
.hero-industry :is(.hi-feature-media, .case-window, .case-window figcaption, .case-window .cw-next, .hi-feature-tag) { border-radius: 0; }
/* маскот выглядывает из-за окна кейсов справа от подписи «Кейсы», не закрывая её */
.hero-industry .hi-window .hero-mascot { left: 84px; right: auto; top: -62px; }
.hero-industry .hi-window .hero-mascot :is(.mascot-img, img, svg) { width: 84px; height: auto; }
/* «Онлайн сейчас» — первая колонка рейтинга; точка записи мигает, как на камере */
.rec-dot { display: inline-block; width: 9px; height: 9px; margin-right: 2px; border-radius: 50%; background: #e0001b; vertical-align: 1px; animation: rec 1s steps(1, end) infinite; }
@keyframes rec { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation-duration: 2s; } }

/* «В этот день» на главной: годовщины вех индустрии */
.otd { display: flex; flex-direction: column; gap: 10px; }
.otd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.otd-item { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--hairline); }
.otd-item:first-child { border-top: 0; }
.otd-item.now { padding: 14px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); margin-bottom: 6px; }
.otd-date { font-weight: 800; font-size: 13px; color: var(--accent); }
.otd-date small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.otd-body { min-width: 0; }
.otd-body b, .otd-body b a { font-size: 14.5px; line-height: 1.3; color: inherit; text-decoration: none; }
.otd-body b a:hover { color: var(--accent); }
/* сноска о Meta — сразу под текстом вехи; «Подробнее про веху» — к ней на таймлайне */
.otd-body .otd-meta-note { margin: 8px 0 0; padding-top: 8px; font-size: 12px; }
.otd-more { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13px; color: var(--accent); text-decoration: none; }
.otd-more::after { content: ' →'; }
.otd-more:hover { text-decoration: underline; }
/* веха, к которой привела ссылка, — выделена */
.ms-item:target { box-shadow: inset 0 0 0 2px var(--accent); scroll-margin-top: 120px; }
.otd-item.now .otd-body b { font: 700 17px/1.25 var(--font-display); }
.otd-body p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.otd .btn { align-self: flex-start; margin-top: auto; }

/* Подпись под лого: «Геймифицированный маркетинг» — во всю ширину слова */
.logo-stack { display: inline-flex; flex-direction: column; align-items: stretch; gap: 3px; }
.topbar .logo:has(.logo-stack) { padding-block: 1px; } /* с подписью лого выше — шапка остаётся в 72 px */
/* подпись — SVG-текст, растянутый ровно на ширину слова (textLength=100%): буквы не вылезают за «К» ни при каком шрифте.
   width: 0 + min-width: 100% — подпись не влияет на ширину блока, а занимает её целиком */
.logo-tag { display: block; width: 0; min-width: 100%; height: 11px; overflow: visible; }
.logo-tag text { font: 600 9.5px 'Manrope', system-ui, sans-serif; fill: var(--ink-3); }
@media (max-width: 1100px) { .logo-tag { height: 9px; } .logo-tag text { font-size: 8px; } }
@media (max-width: 520px) { .logo-tag { height: 8px; } .logo-tag text { font-size: 7px; } }
@media (max-width: 340px) { .logo-tag { display: none; } }

/* Главный анонс на первом экране (новость со звёздочкой из админки) */
.hi-feature { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Картинка главной новости: всегда 16:9 и видна целиком (постеры не обрезаются);
   поля по краям закрывает размытая копия той же картинки */
.hi-feature-media { position: relative; flex: none; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.hi-feature-media::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) saturate(1.1); opacity: .85; }
.hi-feature-media img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.hi-feature-media.no-img { display: none; }
.hi-feature-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.hi-feature-tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #800020; color: #fff; font: 700 11px/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
.hi-feature h2 { margin: 0; font: 700 clamp(22px, 2.3vw, 32px)/1.15 var(--font-display); text-wrap: balance; }
.hi-feature h2 a { color: inherit; text-decoration: none; }
.hi-feature h2 a:hover { color: var(--accent); }
.hi-feature .lead { margin: 0; font-size: 15.5px; line-height: 1.5; }
/* на телефоне анонс главной новости — не длиннее 5 строк: остальное на её странице («Читать») */
@media (max-width: 640px) { .hi-feature .lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; } }
.hi-feature .src { display: flex; gap: 6px; font-size: 13px; color: var(--ink-3); }
.hi-feature .actions { margin-top: 4px; }

/* Первый экран на десктопе: главный анонс и окно кейсов — одна высота, общий верх и низ.
   Высоту ряда задаёт анонс (картинка 16:9 + заголовок и текст, обрезанные по строкам), окно кейсов растягивается под неё. */
@media (min-width: 1281px) {
  .hero-industry .hi-feature, .hero-industry .hi-window { align-self: stretch; height: auto; }
  .hero-industry .hi-window .case-window { height: 100%; aspect-ratio: auto; max-width: none; }
  .hero-industry .hi-feature { gap: 14px; }
  .hero-industry .hi-feature-body { flex: none; gap: 8px; }
  .hero-industry .hi-feature h2 { font-size: clamp(22px, 1.7vw, 30px); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .hero-industry .hi-feature .lead { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .hero-industry .hi-feature .src { display: none; }
  .hero-industry .hi-feature .actions { margin-top: 2px; }
  .hero-industry .hi-window .hero-mascot { top: -34px; }
}

/* Страница новости: переносы строк из поста сохраняются (списки «- …»), дополнительные фото — сеткой */
.article .lead { white-space: pre-line; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 6px 0 18px; }
.article-gallery a { display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--surface); }
.article-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* GTA-рейтинг: предпоследний месяц рядом с последним — для сравнения, приглушённо */
.gta-table .gta-prev { color: var(--ink-3); }
@media (max-width: 640px) { .gta-table .gta-prev { display: none; } }

/* подпись-ссылка на источник картинки под галереей кейса */
.img-src { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.img-src a { color: inherit; }

/* сноска о Meta внизу страницы, где она упоминается */
.meta-note { margin: 32px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 12.5px; line-height: 1.5; color: var(--ink-3); max-width: 760px; }
/* сноска сразу под блоком (веха, новость, кейс): мельче и ближе к тексту */
.meta-note.meta-note-in { margin: 8px 0 0; padding-top: 6px; font-size: 11.5px; line-height: 1.45; }
/* в блоках-сетках (веха «значок | текст», карточки) — на всю ширину, у вехи — под текстом, не под значком */
.meta-note-in { grid-column: 1 / -1; }
.ms-item > .meta-note-in { grid-column: 2 / -1; }
.article-quote { margin: 24px 0; padding: 20px 24px; border-left: 4px solid #800020; background: #8000200a; }
.article-quote p { margin: 0 0 12px; }
.article-quote footer { font-weight: 700; font-size: .9em; }
.article-insert { margin: 24px 0; }
.article-insert img { max-width: 100%; height: auto; display: block; margin: auto; }
.article-insert figcaption { text-align: center; font-size: .85em; margin-top: 8px; }

.case-outcome{margin:28px 0;padding:24px;border-left:5px solid #800020;background:#fff5cc;overflow-wrap:anywhere}.case-outcome h2{margin:0 0 14px}.case-outcome b{color:#800020}.case-outcome div{line-height:1.75}@media(max-width:600px){.case-outcome{padding:18px}}
