/* ===== AzimutLearn — дизайн-система «Dark editorial + knowledge platform» ===== */

/* Шрифты на своём сервере (вместо Google Fonts). Вариативные: Inter 400–700, Inter Tight 400–600.
   Источник — Google Fonts, лицензия SIL Open Font License 1.1. Подмножества грузятся только при нужных символах (unicode-range). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/inter-tight-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/inter-tight-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/inter-tight-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/inter-tight-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Источник: design/mockups/v3/board.png (визуал) и design/mockups/v2/*.pdf (структура).
   Mobile-first: базовые стили — для узкого экрана, дальше только min-width.
   Брейкпоинты 600 / 900 / 1200 / 1440; поля контейнера меняются на 768 и 1200. */

:root {
  color-scheme: dark;

  --bg: #0B0B0C;
  --surface: #121214;
  --elevated: #1A1A1C;
  --border: #2A2A2E;
  --border-strong: #3A3A3F;
  --muted: #A0A0A6;
  --text-soft: #CFCFD4;
  --text: #E5E5E7;
  --white: #F5F5F7;
  --accent: #FF5A5A;
  --success: #6FE3A1;

  /* Метки рубрик и новостей — для обложек, точек и чипов */
  --tag-coral: #FF5A5A;
  --tag-blue: #31A8FF;
  --tag-orange: #FF9A3C;
  --tag-violet: #B18CFF;
  --tag-green: #4FD1A5;

  --font: 'Inter', 'DejaVu Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* Крупные заголовки-манифесты на главной: узкий гротеск с плотной разрядкой, как в макете home-layout */
  --font-display: 'Inter Tight', 'Inter', 'DejaVu Sans', sans-serif;

  --r-card: 14px;
  --r-tile: 12px;
  --r-pill: 999px;

  /* Сетка почти на весь экран: поля растут с шириной окна, но не больше 80px */
  --container: 100%;
  --gutter: 24px;
  --pad: clamp(20px, 5.5vw, 80px);
  /* Расстояние между блоками страницы */
  --section-gap: 100px;
  --header-h: 68px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 80px; --s-10: 96px; --s-11: 128px;
}


*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-5)); }

body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

/* Фоновые градиенты: тёплое свечение сверху справа, холодное слева, коралловый отблеск у подвала.
   Слой закреплён за окном, поэтому при прокрутке свет остаётся на месте */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(255, 90, 90, .18), transparent 70%),
    radial-gradient(50% 45% at -5% 30%, rgba(122, 140, 255, .10), transparent 70%),
    radial-gradient(60% 45% at 50% 115%, rgba(255, 90, 90, .12), transparent 70%),
    radial-gradient(40% 35% at 100% 70%, rgba(177, 140, 255, .08), transparent 70%);
}
body { position: relative; isolation: isolate; }

img, svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--white); }
.prose a, .link { color: var(--accent); }
.prose a:hover, .link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.icon { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Типографика ===== */

h1, h2, h3, h4 { margin: 0; color: var(--white); letter-spacing: -0.02em; }

h1 { font-size: 34px; line-height: 1.12; font-weight: 500; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 600; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }

@media (min-width: 900px) {
  h1 { font-size: 52px; }
  h2 { font-size: 24px; }
}

p { margin: 0 0 var(--s-4); }

b, strong { font-weight: 600; color: var(--white); }

.lead { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 52ch; }

.meta { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Надзаголовок с коралловой точкой: «● Обучение • Дизайн • Развитие» */
.kicker { display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-5); font-size: 13px; color: var(--muted); }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255, 90, 90, .6); }

/* Подпись-капс для советов и служебных блоков */
.eyebrow {
  display: block;
  font-size: 11px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s-2);
}

/* ===== Каркас ===== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}

main:not(.page) > .container:not(.dash) { padding-bottom: var(--section-gap); }

.page { padding-block: var(--s-8) var(--section-gap); }
@media (min-width: 900px) { .page { padding-block: var(--s-9) var(--section-gap); } }

.page-head { margin-bottom: var(--s-6); }
.page-head h1 { margin-bottom: var(--s-3); }
.page-head .lead { margin: 0; }

.block { margin-top: var(--section-gap); }
.block__title { margin-bottom: var(--s-5); }
.block__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-5);
}
.block__head .block__title { margin: 0; }

/* Текстовая ссылка со стрелкой: «Все статьи →» */
.more { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 13px; color: var(--muted); }
.more:hover { color: var(--white); }
.more .icon { width: 16px; height: 16px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--white); color: var(--bg);
  padding: var(--s-3) var(--s-4);
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); z-index: 100; }

/* ===== Шапка ===== */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--header-h);
}

.logo { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; color: var(--white); }
.logo:hover { color: var(--white); }

.nav { display: none; font-size: 13px; }
.nav a, .nav__sub-toggle { color: var(--muted); }
.nav a:hover, .nav__sub-toggle:hover { color: var(--white); }
.nav a[aria-current] { color: var(--white); }

.nav--open {
  display: flex; flex-direction: column; align-items: flex-start;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: var(--s-5) var(--pad); gap: var(--s-4);
}

.nav__toggle {
  margin-left: auto;
  font: inherit; font-size: 14px;
  background: none; border: 0; color: var(--text);
  padding: var(--s-2); cursor: pointer;
}

.nav__group { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
/* «База знаний» — ссылка на все материалы; стрелка рядом открывает подгруппы */
.nav__sub-toggle {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 6px;
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
}
.nav__sub-toggle:hover { background: var(--elevated); }
.nav__chevron { transition: transform .15s ease; }
.nav__sub-toggle[aria-expanded="true"] { color: var(--white); }
.nav__sub-toggle[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.nav__sub[hidden] { display: none; }
.nav__sub { flex-basis: 100%; list-style: none; margin: var(--s-3) 0 0; padding: 0 0 0 var(--s-4); display: grid; gap: var(--s-3); }
.nav__sub-sep { border-top: 1px solid var(--border); margin-top: var(--s-1); padding-top: var(--s-1); }

.header__tools { display: flex; align-items: center; gap: var(--s-4); }
.header__divider { width: 1px; height: 24px; background: var(--border); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: var(--r-pill);
  color: var(--muted);
}
.icon-btn:hover { color: var(--white); background: var(--elevated); }

.avatar {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4A4A52, #1A1A1C 70%);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.avatar .icon { width: 16px; height: 16px; }
.avatar:hover { border-color: var(--muted); }
.avatar[aria-current] { border-color: var(--accent); }

@media (min-width: 600px) {
  .nav, .nav--open {
    display: flex; flex-direction: row; align-items: stretch;
    position: static; padding: 0; border: 0; gap: var(--s-7);
    margin-left: var(--s-8); align-self: stretch;
  }
  .nav__toggle { display: none; }
  .header__tools { margin-left: auto; }
  /* Активный пункт подчёркнут по нижнему краю шапки */
  .nav > a, .nav__group > a {
    display: inline-flex; align-items: center;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
  }
  .nav > a[aria-current], .nav__group > a[aria-current] { border-bottom-color: var(--white); }
  .nav__group { flex-wrap: nowrap; align-items: stretch; gap: var(--s-1); }
  .nav__sub-toggle { align-self: center; }
  .nav__sub {
    position: absolute; top: 100%; left: calc(-1 * var(--s-4));
    min-width: 240px; margin: 0;
    padding: var(--s-2);
    background: var(--elevated); border: 1px solid var(--border); border-radius: var(--r-card);
    gap: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  }
  /* На устройствах с курсором подгруппы открываются и при наведении */
  @media (hover: hover) {
    .nav__group:not(.is-closed):hover .nav__sub[hidden] { display: grid; }
    .nav__group:not(.is-closed):hover .nav__chevron { transform: rotate(180deg); }
  }
  .nav__sub-sep { margin-top: var(--s-1); padding-top: var(--s-1); }
  .nav__sub a { display: block; padding: var(--s-2) var(--s-3); border-radius: 8px; color: var(--text-soft); }
  .nav__sub a:hover { background: var(--surface); color: var(--white); }
}

/* ===== Подвал ===== */

.footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(15, 15, 17, .6), rgba(11, 11, 12, .2)); }
.footer__top { display: grid; gap: var(--s-7); padding-block: var(--s-8) var(--s-7); }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: var(--s-8); } }
.footer__brand p { margin: var(--s-4) 0 0; max-width: 44ch; font-size: 13px; line-height: 1.65; color: var(--muted); }
.footer__title { margin-bottom: var(--s-4); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--white); }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); font-size: 13px; }
.footer__nav a { color: var(--muted); }
.footer__nav a:hover { color: var(--white); }
.footer__cta { padding: var(--s-5); border: 1px solid var(--border); border-radius: var(--r-card); background: radial-gradient(80% 120% at 100% 0%, rgba(255, 90, 90, .12), transparent 60%) var(--surface); }
.footer__cta p { margin: 0 0 var(--s-5); font-size: 13px; color: var(--muted); max-width: 40ch; }
.footer__cta .footer__title { font-size: 16px; margin-bottom: var(--s-2); }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); list-style: none; margin: 0; padding: 0; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--white); }

/* ===== Кнопки, чипы, поиск ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 44px; padding: 0 var(--s-6);
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 16px; height: 16px; }
/* Основная — светлая пилюля, как «Начать обучение» в макете */
.btn--primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--white); color: var(--bg); }
.btn--secondary { background: transparent; color: var(--text); }
.btn--secondary:hover { border-color: var(--muted); color: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip {
  min-height: 34px; padding: 0 var(--s-5);
  font: inherit; font-size: 12px; line-height: 1;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  cursor: pointer;
}
.chip:hover { color: var(--white); border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--elevated); border-color: var(--border-strong); color: var(--white); }

/* Метка — маленькая пилюля: «Figma», «Шаблон», «Платформа» */
.tag {
  display: inline-flex; align-items: center;
  min-height: 22px; padding: 0 var(--s-3);
  font-size: 11px; font-weight: 500; line-height: 1;
  color: var(--text-soft); background: var(--elevated);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
}
.tag[data-color] { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }

.search {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 48px; padding: 0 var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-pill);
}
.search:focus-within { border-color: var(--border-strong); }
.search .icon { color: var(--muted); width: 16px; height: 16px; }
.search input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 13px; color: var(--white);
  background: none; border: 0; padding: var(--s-3) 0;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; }
.search__submit { display: grid; place-items: center; padding: var(--s-1); background: none; border: 0; color: var(--muted); cursor: pointer; }
.search__submit:hover { color: var(--white); }

/* ===== Карточки, плитки, строки ===== */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)) var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

[data-color="coral"]  { --c: var(--tag-coral); }
[data-color="blue"]   { --c: var(--tag-blue); }
[data-color="orange"] { --c: var(--tag-orange); }
[data-color="violet"] { --c: var(--tag-violet); }
[data-color="green"]  { --c: var(--tag-green); }

/* Плитка с иконкой — у рубрик, материалов базы знаний, статистики */
.tile {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--r-tile);
  background: var(--elevated); border: 1px solid var(--border-strong);
  color: var(--text);
}
.tile .icon { width: 22px; height: 22px; }
.tile--lg { width: 56px; height: 56px; border-radius: 14px; }
.tile--ps { background: #001E36; border-color: #0B4A75; color: #31A8FF; font-weight: 700; font-size: 17px; }
.tile--ai { background: #2B1100; border-color: #6B3300; color: #FF9A00; font-weight: 700; font-size: 17px; }

/* Обложка-иллюстрация из CSS: свечение цвета рубрики и плитка с символом */
.art {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 12px; border: 1px solid var(--border);
  background:
    radial-gradient(60% 70% at 50% 55%, color-mix(in srgb, var(--c, #888) 38%, transparent), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, color-mix(in srgb, var(--c, #888) 18%, transparent), transparent 70%),
    linear-gradient(160deg, #17171B, #0D0D10);
}
.art::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
}
.art__tile {
  position: relative;
  display: grid; place-items: center;
  width: 30%; aspect-ratio: 1; max-width: 84px; border-radius: 22%;
  background: rgba(12, 12, 14, .72);
  border: 1px solid color-mix(in srgb, var(--c, #888) 55%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--c, #888) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, .08);
  color: var(--c, var(--white));
  font-size: clamp(16px, 2.2vw, 30px); font-weight: 700; letter-spacing: -0.02em;
}
.art__tile .icon { width: 46%; height: 46%; stroke-width: 1.5; }
.art__tile svg.figma { width: 44%; height: auto; }
.art--wide { aspect-ratio: 21 / 6; }
.art--wide .art__tile { width: 120px; max-width: none; font-size: 40px; }
.art--sm { width: 56px; height: 56px; aspect-ratio: auto; border-radius: 12px; flex: none; }
.art--sm .art__tile { width: 30px; border-radius: 8px; font-size: 11px; box-shadow: none; }
.art--thumb { width: 120px; aspect-ratio: 17 / 10; flex: none; }
@media (min-width: 600px) { .art--thumb { width: 170px; } }

.arrow { flex: none; color: var(--muted); }
.arrow .icon, .arrow.icon { width: 18px; height: 18px; }

/* Строки списков разделены линиями, без карточек (база знаний, новости, история) */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.list > li { border-bottom: 1px solid var(--border); }
.item {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-4) var(--s-2) var(--s-4) 0;
  color: var(--text);
}
.item:hover { color: var(--text); }
.item:hover .item__title { color: var(--white); }
.item:hover .arrow { color: var(--white); transform: translateX(2px); }
.arrow { transition: transform .15s ease, color .15s ease; }
.item__body { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.item__title { font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text); }
.item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: 12px; color: var(--muted); }
.item__meta .icon { width: 14px; height: 14px; }
.item__meta span { display: inline-flex; align-items: center; gap: 6px; }
.item__text { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 72ch; }

.empty {
  padding: var(--s-6) var(--s-5);
  border: 1px dashed var(--border-strong); border-radius: var(--r-card);
  color: var(--muted); text-align: center;
}
.list > li.empty { border: 1px dashed var(--border-strong); margin-top: var(--s-4); }
.empty p { margin: 0 auto; max-width: 52ch; }
.empty a { color: var(--accent); }

/* Полоса прогресса */
.progress { height: 6px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.progress__bar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #C9302C, var(--accent)); box-shadow: 0 0 12px rgba(255, 90, 90, .5); }

/* ===== Главная ===== */

.hero { display: grid; gap: var(--s-7); align-items: center; padding-top: var(--s-8); }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: var(--s-10); }
}
.hero h1 { margin-bottom: var(--s-5); }
.hero .lead { margin-bottom: var(--s-6); }
.hero .search { max-width: 570px; }

.planet { display: none; width: 100%; max-width: 520px; justify-self: center; }
@media (min-width: 900px) { .planet { display: block; margin-top: calc(-1 * var(--s-6)); } }

.cards-4 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 600px)  { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.post { display: grid; gap: var(--s-3); color: var(--text); }
.post:hover .post__title { color: var(--white); }
.post:hover .art { border-color: var(--border-strong); }
.post .art { margin-bottom: var(--s-1); }
.post__title { font-size: 14px; font-weight: 500; line-height: 1.45; }
.post .tag { justify-self: start; }

.directions { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4) var(--s-5); }
@media (min-width: 600px) { .directions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .directions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.direction {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  font-size: 14px; font-weight: 500; color: var(--text);
}
.direction .tile { width: 40px; height: 40px; }
.direction .tile .icon { width: 20px; height: 20px; }
.direction__name { flex: 1; }
.direction:hover { border-color: var(--border-strong); color: var(--white); }
.direction:hover .arrow { color: var(--white); }

.continue { display: grid; gap: var(--s-4); padding: var(--s-5); }
@media (min-width: 900px) { .continue { grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: var(--s-7); } }
.continue p { margin: 0; }
.continue__title { font-size: 17px; margin: var(--s-1) 0 var(--s-3); }
.continue .progress { max-width: 460px; }
.continue__aside { font-size: 13px; color: var(--muted); }
.continue__aside strong { display: block; font-size: 15px; margin: 2px 0 var(--s-2); }

/* Маршрут на главной */
.route-promo { display: grid; gap: var(--s-5); padding: var(--s-5); }
@media (min-width: 900px) { .route-promo { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-7); padding: var(--s-6); } }
.route-promo__title { font-size: 22px; font-weight: 500; margin-bottom: var(--s-2); }
.route-promo__title a { color: var(--white); }
.route-promo .meta { margin: 0; }
.route-promo__status { margin-top: var(--s-4) !important; }

.route-dots {
  list-style: none; margin: var(--s-5) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  width: fit-content; max-width: 100%;
  background: linear-gradient(var(--border-strong), var(--border-strong)) 0 50% / 100% 1px no-repeat;
}
.route-dots__item {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--elevated); border: 1px solid var(--border-strong); color: var(--muted);
  font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.route-dots__item.is-done { background: var(--success); border-color: var(--success); color: var(--bg); }
.route-dots__item.is-current { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 16px rgba(255, 90, 90, .5); }

/* Карусель «С чего начать»: слайды листаются сами, как рекламный блок */
.carousel { position: relative; overflow: hidden; padding: 0; }
.carousel__viewport { overflow: hidden; border-radius: inherit; }
.carousel__track { display: flex; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.carousel__slide {
  flex: 0 0 100%; min-width: 0;
  display: grid; gap: var(--s-6); align-items: center;
  padding: var(--s-6) var(--s-5) var(--s-8);
}
@media (min-width: 900px) {
  .carousel__slide { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--s-8); padding: var(--s-7) var(--s-7) var(--s-8); }
}
.carousel__body { min-width: 0; }
.carousel__body.route-promo { display: block; padding: 0; }
.carousel__body .btn { margin-top: var(--s-5); }
.carousel__title { font-size: 24px; font-weight: 500; line-height: 1.25; margin-bottom: var(--s-3); max-width: 24ch; }
@media (min-width: 900px) { .carousel__title { font-size: 30px; } }
.carousel__title a { color: var(--white); }
.carousel__text { margin: 0; max-width: 52ch; font-size: 14px; color: var(--muted); }
.carousel__art { display: none; }
@media (min-width: 900px) { .carousel__art { display: grid; } }
.carousel__body.route-promo .route-promo__title { font-size: 24px; }
@media (min-width: 900px) { .carousel__body.route-promo .route-promo__title { font-size: 30px; } }

/* Полоса от края до края в цветах первого экрана: глубокий тёмно-красный, свечение и зерно.
   У каждого слайда свой оттенок — при пролистывании цвет плавно меняется */
.carousel-band { margin-inline: calc(-1 * var(--pad)); }
.carousel-band .carousel { border: 0; border-radius: 0; background: #1A0809; }
.carousel-band .carousel__viewport { border-radius: 0; }
.carousel-band .carousel__slide { position: relative; isolation: isolate; overflow: hidden; padding-inline: var(--pad); }
@media (min-width: 900px) {
  .carousel-band .carousel__slide { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); padding-block: var(--s-9) calc(var(--s-9) + var(--s-5)); }
}
.carousel-band .carousel__slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.carousel__slide--1 { background:
  radial-gradient(40% 70% at 74% 50%, rgba(170, 38, 38, .75), transparent 70%),
  radial-gradient(35% 60% at 100% 0%, rgba(255, 90, 90, .32), transparent 70%),
  radial-gradient(45% 80% at 0% 100%, rgba(100, 16, 20, .7), transparent 70%),
  linear-gradient(150deg, #3B0D10, #1A0809 60%, #0E0808); }
.carousel__slide--2 { background:
  radial-gradient(40% 70% at 74% 50%, rgba(160, 30, 70, .7), transparent 70%),
  radial-gradient(35% 60% at 100% 0%, rgba(255, 90, 130, .26), transparent 70%),
  radial-gradient(45% 80% at 0% 100%, rgba(90, 14, 40, .7), transparent 70%),
  linear-gradient(150deg, #3A0B1E, #1A0710 60%, #0E080A); }
.carousel__slide--3 { background:
  radial-gradient(40% 70% at 74% 50%, rgba(180, 64, 30, .7), transparent 70%),
  radial-gradient(35% 60% at 100% 0%, rgba(255, 140, 90, .28), transparent 70%),
  radial-gradient(45% 80% at 0% 100%, rgba(100, 30, 14, .7), transparent 70%),
  linear-gradient(150deg, #3D140B, #1C0A07 60%, #0E0908); }
.carousel__slide--4 { background:
  radial-gradient(40% 70% at 74% 50%, rgba(135, 22, 34, .8), transparent 70%),
  radial-gradient(35% 60% at 100% 0%, rgba(255, 70, 90, .24), transparent 70%),
  radial-gradient(45% 80% at 0% 100%, rgba(70, 10, 16, .8), transparent 70%),
  linear-gradient(150deg, #2E0A0D, #160607 60%, #0C0808); }
.carousel__slide--5 { background:
  radial-gradient(40% 70% at 74% 50%, rgba(185, 70, 50, .65), transparent 70%),
  radial-gradient(35% 60% at 100% 0%, rgba(255, 150, 120, .26), transparent 70%),
  radial-gradient(45% 80% at 0% 100%, rgba(110, 30, 22, .65), transparent 70%),
  linear-gradient(150deg, #3A1310, #1B0909 60%, #0E0909); }

/* Заголовки — шрифт первого экрана (Inter Tight), но обычным регистром */
.carousel-band .carousel__title,
.carousel-band .carousel__body.route-promo .route-promo__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 3.6vw, 56px); line-height: 1.04; letter-spacing: -0.04em;
  max-width: 16ch;
}
.carousel-band .carousel__title a, .carousel-band .route-promo__title a { color: var(--white); }
.carousel-band .eyebrow { color: #FF8A7A; }
.carousel-band .carousel__text { max-width: 46ch; font-size: 15px; color: rgba(245, 245, 247, .72); }
.carousel-band .route-promo .meta { color: rgba(245, 245, 247, .66); }
.carousel-band .route-dots__item { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: rgba(245, 245, 247, .8); }
.carousel-band .route-dots__item.is-current { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.carousel-band .carousel__dots { left: var(--pad); }
.carousel-band .carousel__dot { background: rgba(255, 255, 255, .2); }

/* ===== Иллюстрации слайдов: объём из градиентов, стекла и теней ===== */

.slide-visual { position: relative; display: none; width: 100%; aspect-ratio: 5 / 4; justify-self: end; }
@media (min-width: 900px) { .slide-visual { display: block; } }
.slide-visual svg { width: 100%; height: 100%; }
.slide-visual--planet svg { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }

.orb {
  position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 35%, rgba(255, 140, 120, .75), rgba(200, 40, 40, .45) 45%, transparent 70%);
  filter: blur(18px);
}

.glass {
  position: absolute; display: grid; align-content: start; gap: 10px;
  padding: 18px; border-radius: 20px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(10, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.glass i { display: block; font-style: normal; }
.bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.bar--w40 { width: 40%; } .bar--w50 { width: 50%; } .bar--w60 { width: 60%; } .bar--w70 { width: 70%; } .bar--w80 { width: 80%; }
.glass .block { height: 70px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 120, 100, .5), rgba(255, 255, 255, .08)); }
.glass .row { display: flex; align-items: center; gap: 10px; }
.glass .row .bar { flex: 1; }
.dot-ui { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.badge-ui { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--bg); font-size: 11px; font-weight: 700; }
.btn-ui { justify-self: start; width: 46%; height: 28px; margin-top: 6px; border-radius: 999px; background: var(--white); }

.slide-visual--ui .glass--back  { left: 4%;  top: 6%;  width: 48%; transform: rotate(-8deg); opacity: .75; }
.slide-visual--ui .glass--mid   { right: 4%; top: 2%;  width: 46%; transform: rotate(6deg); }
.slide-visual--ui .glass--front { left: 24%; bottom: 4%; width: 52%; transform: rotate(-2deg); }

.slide-visual--type .glass--type { left: 50%; top: 50%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(-4deg); place-items: center; align-content: center; }
.type-glyph {
  font-family: var(--font-display); font-size: clamp(90px, 9vw, 150px); font-weight: 500; letter-spacing: -0.06em; line-height: 1;
  background: linear-gradient(170deg, #FFFFFF 20%, #FFB0A5 70%, #FF5A5A);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(255, 90, 90, .45));
}
.chip-ui {
  position: absolute; padding: 8px 14px; border-radius: 999px;
  background: rgba(20, 6, 8, .55); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px);
  font-family: var(--font-display); font-size: 13px; color: var(--white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.chip-ui--1 { left: 2%; top: 14%; }
.chip-ui--2 { right: 0; top: 40%; }
.chip-ui--3 { left: 10%; bottom: 8%; }

.app {
  position: absolute; display: grid; place-items: center;
  width: 30%; aspect-ratio: 1; border-radius: 26%;
  font-size: clamp(30px, 3vw, 48px); font-weight: 700; letter-spacing: -0.02em;
  box-shadow: 0 30px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -8px 20px rgba(0, 0, 0, .35);
}
.app svg { width: 42%; height: auto; }
.app--ps { left: 6%; top: 8%; background: linear-gradient(160deg, #0A3A63, #001E36); color: #31A8FF; transform: rotate(-10deg); }
.app--figma { right: 8%; top: 4%; background: linear-gradient(160deg, #2B2B31, #121215); transform: rotate(8deg); }
.app--ai { left: 18%; bottom: 4%; background: linear-gradient(160deg, #4A1E00, #2B1100); color: #FF9A00; transform: rotate(6deg); }
.app--book { right: 14%; bottom: 10%; width: 26%; background: linear-gradient(160deg, #FF7A6A, #C8302E); color: var(--white); transform: rotate(-8deg); }
.app--book svg { width: 46%; }

.slide-visual--blobs {
  overflow: hidden; border-radius: 24px;
  background: radial-gradient(90% 80% at 30% 20%, #B83A36, #7A1A1C 55%, #3A0B0D);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.slide-visual--blobs::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, rgba(255, 255, 255, .05) 1px 3px, transparent 3px 52px, rgba(0, 0, 0, .1) 52px 58px);
}

/* Точки-полоски: у активной заполняется таймер до следующего слайда */
.carousel__dots { position: absolute; left: var(--s-5); bottom: var(--s-5); display: flex; gap: var(--s-2); }
@media (min-width: 900px) { .carousel__dots { left: var(--s-7); bottom: var(--s-6); } }
.carousel__dot {
  position: relative; overflow: hidden;
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: var(--border-strong); cursor: pointer;
  transition: width .3s ease;
}
.carousel__dot::before { content: ""; position: absolute; inset: -8px 0; }
.carousel__dot[aria-current="true"] { width: 56px; }
.carousel__dot span { position: absolute; inset: 0; width: 0; background: var(--white); border-radius: inherit; }
.carousel__dot[aria-current="true"] span { width: 100%; }
.carousel.is-playing .carousel__dot[aria-current="true"] span { animation: carousel-timer var(--carousel-delay, 4s) linear forwards; }
.carousel.is-paused .carousel__dot[aria-current="true"] span { animation-play-state: paused; }
@keyframes carousel-timer { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}

/* Лента новостей на главной */
.cards-3 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 600px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards-3 .art { aspect-ratio: 16 / 8; }

/* Призыв-цитата в конце главной */
.cta {
  padding: var(--s-6) var(--s-5);
  background:
    radial-gradient(50% 90% at 100% 100%, rgba(255, 90, 90, .16), transparent 70%),
    radial-gradient(40% 60% at 0% 0%, rgba(255, 255, 255, .04), transparent 70%),
    var(--surface);
}
@media (min-width: 900px) { .cta { padding: var(--s-8) var(--s-8) var(--s-7); } }
.cta__quote { margin: 0 0 var(--s-7); padding-left: var(--s-5); border-left: 2px solid var(--accent); }
.cta__quote p { max-width: 30ch; }
.cta__quote p { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 400; color: var(--muted); letter-spacing: -0.01em; }
.cta__quote strong { display: block; margin-top: var(--s-2); font-weight: 500; color: var(--white); }
@media (min-width: 900px) { .cta__quote p { font-size: 32px; } }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--border); }
.cta__title { font-size: 18px; font-weight: 500; max-width: 32ch; }

/* ===== Главная: первый экран, манифесты, популярное и новости (макет v3/home-layout.jpg) ===== */

.display {
  font-family: var(--font-display);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: -0.05em; line-height: 1.02;
  color: var(--white);
}

/* Шапка на главной прозрачная поверх первого экрана и темнеет после прокрутки */
.page-home .header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .25s ease, border-color .25s ease; }
.page-home .header.is-scrolled { background: rgba(11, 11, 12, .9); backdrop-filter: blur(12px); border-bottom-color: var(--border); }
.page-home .nav a, .page-home .nav__sub-toggle { color: rgba(245, 245, 247, .72); }
.page-home .nav a:hover { color: var(--white); }

.stage-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; min-height: 100svh;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
}
.stage-hero__bg { position: absolute; inset: 0; z-index: -1; background: #07060A; }
/* Картинка первого экрана: design/source/hero-nebula-original.jpg → assets/img/hero-nebula-*.webp
   (прежняя планета — assets/img/hero-planet-*.webp) */
.stage-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Затемнение справа под заголовком и плавный переход в фон страницы снизу */
.stage-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 10, .5) 0%, transparent 26%, transparent 48%, rgba(7, 6, 10, .55) 66%, rgba(7, 6, 10, .75) 100%),
    linear-gradient(180deg, rgba(7, 6, 10, .35) 0%, transparent 18%, transparent 70%, var(--bg) 100%);
}

.stage-hero__grid {
  position: relative;
  display: grid; gap: var(--s-6); align-content: space-between;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--s-7) var(--s-6);
}
@media (min-width: 900px) {
  .stage-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .stage-hero__side { grid-column: 1; grid-row: 1; align-self: center; }
  .stage-hero__main { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; text-align: right; padding-top: var(--s-6); }
  .stage-hero__cards { grid-column: 1; grid-row: 2; align-self: end; }
  .stage-hero__tags { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; }
}

.stage-hero__kicker { margin: 0 0 var(--s-3); font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.08; letter-spacing: -0.04em; text-transform: uppercase; color: var(--white); }
.stage-hero__note { margin: 0; font-size: 11px; line-height: 1.4; color: rgba(245, 245, 247, .55); }

.stage-hero__title { font-size: clamp(48px, 6.4vw, 112px); line-height: 1.1; }
.stage-hero__lead { display: flex; align-items: center; gap: var(--s-5); margin: var(--s-6) 0 0 auto; max-width: 420px; text-align: left; }
.stage-hero__lead p { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(245, 245, 247, .7); }
.stage-hero__lead strong { color: var(--white); }

.circle-btn {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(245, 245, 247, .85); color: var(--white);
  transition: background .2s ease, color .2s ease;
}
.circle-btn:hover { background: var(--white); color: var(--bg); }
.circle-btn .icon { width: 22px; height: 22px; }

.stage-hero__cards { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.hero-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-4);
  width: 190px; min-height: 172px; padding: var(--s-4);
  border-radius: 16px;
}
.hero-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); font-size: 10px; line-height: 1.35; }
.hero-card__mark { flex: none; width: 22px; height: 22px; }
.hero-card__num { font-family: var(--font-display); font-size: 40px; font-weight: 500; line-height: .9; letter-spacing: -0.05em; }
.hero-card__caption { margin-top: -10px; font-size: 10px; }
.hero-card--light { background: #F2F0EF; color: #2A0C0E; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.hero-card--light:hover { color: #2A0C0E; transform: translateY(-2px); }
.hero-card--light .hero-card__top { flex-direction: row-reverse; justify-content: flex-end; }
.hero-card--glass {
  margin: 0;
  background: linear-gradient(160deg, rgba(255, 120, 110, .28), rgba(70, 10, 12, .35));
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px);
  color: var(--white);
}
.hero-card--glass label { font-size: 15px; line-height: 1.15; cursor: text; }
.hero-card__search { display: flex; align-items: center; gap: var(--s-2); padding: 6px var(--s-3); border-radius: var(--r-pill); background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .15); }
.hero-card__search .icon { width: 14px; height: 14px; color: rgba(255, 255, 255, .7); }
.hero-card__search input { width: 100%; min-width: 0; font: inherit; font-size: 11px; color: var(--white); background: none; border: 0; padding: 4px 0; }
.hero-card__search input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-card__search input:focus { outline: none; }
.hero-card--glass:focus-within { border-color: rgba(255, 255, 255, .45); }

.stage-hero__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); max-width: 420px; }
.stage-hero__tags-break { flex-basis: 100%; height: 0; }
.hero-tag {
  display: inline-grid; place-items: center;
  min-height: 30px; padding: 0 var(--s-4);
  font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(245, 245, 247, .85);
  border: 1px solid rgba(245, 245, 247, .4); border-radius: var(--r-pill);
}
.hero-tag:hover { background: var(--white); color: var(--bg); }
.hero-tag--icon { width: 30px; padding: 0; color: var(--white); }
.hero-tag--icon .asterisk { width: 12px; height: 12px; }

/* Манифест: крупный текст в два тона с картинкой-пилюлей в строке */
.statement { margin-top: var(--section-gap); }
.statement__head { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 900px) { .statement__head { grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s-6); } }
.statement__star { color: var(--accent); }
.asterisk { display: block; width: 44px; height: 44px; }
.statement__text { margin: 0; font-size: clamp(34px, 5.4vw, 82px); }
.statement__dim { color: #5E5E66; }
.statement__aside { margin: 0; font-size: 11px; line-height: 1.3; text-transform: uppercase; text-align: right; color: var(--muted); }
.statement__sub { margin: var(--s-6) 0 0; max-width: 40ch; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (min-width: 900px) { .statement__sub { margin-left: calc(120px + var(--s-6) + 14%); } }

.pill-art {
  position: relative; display: inline-block; vertical-align: 0.04em;
  width: 1.7em; height: .8em; border-radius: var(--r-pill); overflow: hidden;
  background: radial-gradient(70% 120% at 50% 50%, #FF7A6A, #B8262A 55%, #3A0C0E);
}
.pill-art span {
  position: absolute; left: 50%; top: 50%; width: .5em; height: .5em; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #5A2324, #120607);
  box-shadow: 0 0 0 .02em rgba(255, 180, 170, .5), 0 0 .3em rgba(0, 0, 0, .6);
}
.pill-art span::after {
  content: ""; position: absolute; left: -45%; top: 38%; width: 190%; height: 24%;
  border: .02em solid #FFB0A5; border-radius: 50%; transform: rotate(-18deg);
}

.statement__row { display: grid; gap: var(--s-6); align-items: center; margin-top: var(--s-8); }
@media (min-width: 900px) { .statement__row { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); } }
.statement__label { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; text-transform: uppercase; }
.statement__label a { color: var(--white); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.statement__label a:hover { color: var(--accent); }

/* Карточки-«фото» популярных статей: обложка во всю карточку, подпись внизу */
.photo-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 600px) { .photo-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.photo-card { position: relative; display: block; aspect-ratio: 4 / 4.6; border-radius: 18px; overflow: hidden; color: var(--white); }
.photo-card .art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; }
.photo-card .art__tile { width: 34%; max-width: 96px; transition: transform .3s ease; }
.photo-card:hover .art__tile { transform: scale(1.06); }
.photo-card__info {
  position: absolute; inset: auto 0 0; display: grid; gap: 6px; justify-items: start;
  padding: var(--s-6) var(--s-4) var(--s-4);
  background: linear-gradient(transparent, rgba(8, 8, 10, .88));
}
.photo-card__title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.photo-card:hover { color: var(--white); }

/* Новости: ступенчатый заголовок и три колонки */
.statement--news .statement__text { margin-bottom: var(--s-8); }
.statement__text--stagger { font-size: clamp(34px, 5.4vw, 82px); }
.statement__indent { display: inline-block; padding-left: 16%; }
.statement__indent--far { padding-left: 40%; }

.news-trio { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .news-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s-6); padding-inline: 6%; } }
.trio-card { display: block; color: var(--white); }
.trio-card__img { position: relative; display: block; aspect-ratio: 1 / 1.08; border-radius: 18px; overflow: hidden; }
.trio-card__img .art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: inherit; }
.trio-card__img .tag { position: absolute; left: var(--s-3); top: var(--s-3); }
.trio-card__caption { display: flex; gap: var(--s-3); margin-top: var(--s-5); font-size: 12px; line-height: 1.5; color: var(--muted); }
.trio-card__caption .asterisk { flex: none; width: 26px; height: 26px; color: var(--accent); }
.trio-card__caption strong { color: var(--white); font-weight: 500; }
.trio-card:hover strong { color: var(--accent); }

.trio-feature {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 1 / 1; padding: var(--s-5);
  border-radius: 20px; overflow: hidden; color: var(--white);
  background:
    radial-gradient(50% 40% at 70% 30%, rgba(255, 210, 190, .35), transparent 70%),
    radial-gradient(70% 60% at 35% 45%, #E2403E, transparent 70%),
    radial-gradient(80% 70% at 80% 90%, #4A0E12, transparent 70%),
    linear-gradient(160deg, #FF6A5E, #7A1418 70%, #2A0709);
}
.trio-feature::before {
  content: ""; position: absolute; left: 62%; top: 26%; width: 22px; height: 22px;
  background: radial-gradient(circle, #fff 0 1px, transparent 2px), linear-gradient(#fff, #fff) center / 1px 100% no-repeat, linear-gradient(90deg, #fff, #fff) center / 100% 1px no-repeat;
  opacity: .8;
}
.trio-feature:hover { color: var(--white); }
.trio-feature__badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }
.trio-feature__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.trio-feature__title { font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 34px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.trio-feature__meta { display: block; margin-top: var(--s-2); font-family: var(--font); font-size: 12px; letter-spacing: 0; color: rgba(255, 255, 255, .75); }
.trio-feature__go { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--bg); transition: transform .2s ease; }
.trio-feature:hover .trio-feature__go { transform: translateX(3px); }
.trio-feature__go .icon { width: 18px; height: 18px; }

.explore-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  margin-top: var(--s-5); min-height: 64px; border-radius: var(--r-pill);
  border: 1.5px solid rgba(245, 245, 247, .7);
  font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--white);
}
.explore-btn:hover { background: var(--white); color: var(--bg); }
.explore-btn .icon { width: 20px; height: 20px; }

/* ===== Рубрики ===== */

.rubrics { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 600px) { .rubrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .rubrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Карточка рубрики — компактная строка: плитка, название и число статей, стрелка */
.rubric {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto;
  align-items: center; column-gap: var(--s-4);
  height: 100%; padding: var(--s-4) var(--s-5);
  color: var(--text);
}
.rubric .tile { grid-row: 1 / 3; width: 42px; height: 42px; }
.rubric .tile .icon { width: 20px; height: 20px; }
.rubric__name { align-self: end; font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--white); }
.rubric__count { align-self: start; font-size: 12px; color: var(--muted); }
.rubric .arrow { grid-column: 3; grid-row: 1 / 3; }
.rubric:hover { border-color: var(--border-strong); color: var(--text); }
.rubric:hover .arrow { color: var(--white); transform: translateX(2px); }

/* ===== Бенто-блок на странице рубрик ===== */

.bento { display: grid; gap: var(--s-4); margin-top: var(--section-gap); }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(400px, auto) auto; }
  .bento__hero, .bento__visual { grid-column: span 2; }
  .bento__wide { grid-column: span 2; }
}
.bento > * { border-radius: 20px; }

/* Большая карточка — коралловая заливка, тёмный текст */
.bento__hero {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-6);
  background: radial-gradient(120% 90% at 100% 0%, #FF8A7A, transparent 60%), var(--accent);
  color: var(--bg);
}
@media (min-width: 900px) { .bento__hero { padding: var(--s-7) var(--s-7) var(--s-6); } }
.bento__title { max-width: 14ch; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; color: var(--bg); }
@media (min-width: 900px) { .bento__title { font-size: 40px; } }
.bento__text { margin: var(--s-4) 0 var(--s-6); max-width: 42ch; font-size: 15px; line-height: 1.5; color: rgba(11, 11, 12, .82); }
.bento__btn { align-self: flex-start; background: var(--text); border-color: var(--text); color: var(--bg); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.bento__btn:hover { background: var(--white); color: var(--bg); }

/* Картинка из CSS: глянцевые капли за рифлёным стеклом, как на макете */
.bento__visual {
  position: relative; overflow: hidden; min-height: 260px;
  background: radial-gradient(90% 80% at 30% 20%, #FF7A6A, #E2403E 55%, #A92A2A);
}
.bento__visual::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, rgba(255, 255, 255, .05) 1px 3px, transparent 3px 58px, rgba(0, 0, 0, .08) 58px 64px);
}
.blob {
  position: absolute; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  background:
    radial-gradient(35% 30% at 32% 26%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(80% 80% at 60% 70%, #B82C2C, transparent 70%),
    radial-gradient(circle at 45% 40%, #FF9B8C, #F0504C 60%, #C23434);
  box-shadow: inset -10px -14px 24px rgba(120, 20, 20, .45), 0 18px 30px rgba(90, 10, 10, .35);
}
.blob--1 { width: 34%; aspect-ratio: .8; left: 6%;  top: -8%; transform: rotate(-12deg); }
.blob--2 { width: 26%; aspect-ratio: .7; left: 44%; top: 6%;  transform: rotate(18deg); }
.blob--3 { width: 22%; aspect-ratio: .75; left: 76%; top: -6%; transform: rotate(-20deg); }
.blob--4 { width: 30%; aspect-ratio: .78; left: 18%; top: 48%; transform: rotate(10deg); }
.blob--5 { width: 34%; aspect-ratio: .82; left: 54%; top: 44%; transform: rotate(-8deg); }
.blob--6 { width: 18%; aspect-ratio: .7; left: 86%; top: 52%; transform: rotate(24deg); }

/* Нижний ряд: карточки с цифрами и широкая карточка с картинкой */
.bento__stat {
  position: relative; display: flex; flex-direction: column;
  min-height: 170px; padding: var(--s-5);
}
.bento__stat:hover .bento__go { transform: rotate(45deg); }
.bento__stat--light { background: var(--text); color: var(--bg); }
.bento__stat--accent { background: var(--accent); color: var(--bg); }
.bento__stat--light:hover, .bento__stat--accent:hover { color: var(--bg); }
.bento__num { font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.bento__label { margin-top: var(--s-1); font-size: 12px; font-weight: 600; }
.bento__desc { display: block; margin-top: auto; padding-top: var(--s-4); font-size: 13px; line-height: 1.45; opacity: .85; }
.bento__go {
  position: absolute; top: var(--s-5); right: var(--s-5);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  transition: transform .2s ease;
}
.bento__stat--accent .bento__go { background: var(--text); }
.bento__go .icon { width: 16px; height: 16px; }

.bento__wide {
  display: flex; align-items: center; gap: var(--s-5);
  padding: var(--s-4);
  background: var(--text); color: var(--bg);
}
.bento__wide:hover { color: var(--bg); }
.bento__wide:hover .bento__thumb { transform: scale(1.03); }
.bento__thumb { width: 42%; max-width: 200px; aspect-ratio: 4 / 3; flex: none; border-radius: 14px; transition: transform .2s ease; }
.bento__wide-title { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.bento__wide .bento__desc { margin-top: var(--s-2); padding-top: 0; color: rgba(11, 11, 12, .78); opacity: 1; }

.back { display: inline-flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-6); font-size: 13px; color: var(--muted); }
.back:hover { color: var(--white); }
.back .icon { width: 16px; height: 16px; }

/* ===== База знаний ===== */

.kb-search { margin-bottom: var(--s-7); }

.kb { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .kb { grid-template-columns: 270px minmax(0, 1fr); gap: 0; } }

.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
@media (min-width: 900px) {
  .kb .side-nav { padding-right: var(--s-6); margin-right: var(--s-6); border-right: 1px solid var(--border); min-height: 420px; align-content: start; }
}
.side-nav button, .side-nav a {
  display: flex; align-items: center; gap: var(--s-3); width: 100%;
  padding: 10px var(--s-3);
  font: inherit; font-size: 13px; text-align: left;
  color: var(--muted); background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.side-nav .icon { width: 17px; height: 17px; }
.side-nav span { white-space: nowrap; }
.side-nav button:hover, .side-nav a:hover { color: var(--white); }
.side-nav [aria-pressed="true"], .side-nav [aria-current] { color: var(--white); background: var(--elevated); }
.side-nav [aria-pressed="true"] .icon, .side-nav [aria-current] .icon { color: var(--accent); }
.side-nav__count { margin-left: auto; font-size: 12px; color: var(--muted); }

.kb-status { margin: 0 0 var(--s-3); }

/* ===== Новости ===== */

.news-chips { margin-bottom: var(--s-6); }
.news-item { gap: var(--s-6); padding-block: var(--s-4); }
.news-item .item__title { font-size: 15px; font-weight: 600; }
.news-item:target, .list > li:target .news-item { background: var(--surface); }

/* ===== Статья ===== */

/* Полоса прогресса чтения — единственный движущийся элемент на сайте */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.reading-progress__bar { height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

.article-head { padding-top: var(--s-7); margin-bottom: var(--s-6); }
.article-head .tag { margin-bottom: var(--s-3); }
.article-head h1 { font-size: 30px; max-width: 22ch; }
@media (min-width: 900px) { .article-head h1 { font-size: 40px; } }
.article-head .lead { margin: var(--s-4) 0 var(--s-5); max-width: 56ch; }
.article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: 0; font-size: 12px; color: var(--muted); }
.article-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-head__meta .icon { width: 15px; height: 15px; }
.article-head__meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.article-head__disclosure { margin: var(--s-3) 0 0; max-width: 80ch; font-size: 12px; }
.article-head__disclosure a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.article-cover { margin-bottom: var(--s-7); }

/* Сетка статьи: текст и поле с содержанием */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
@media (min-width: 1200px) {
  .article-grid { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 0; }
  .article-main { padding-right: var(--s-8); border-right: 1px solid var(--border); }
  .article-aside { padding-left: var(--s-6); }
}

.toc__title { font-size: 18px; margin-bottom: var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { font-size: 16px; line-height: 1.45; }
.toc a { display: block; padding: 7px var(--s-3); border-radius: 8px; color: var(--muted); transition: color .35s var(--ease), background .35s var(--ease); }
.toc li + li { counter-increment: toc; }
.toc li + li a::before { content: counter(toc) ". "; }
.toc a:hover { color: var(--white); }
.toc a[aria-current="location"] { color: var(--accent); background: linear-gradient(90deg, rgba(255, 90, 90, .22), rgba(255, 90, 90, .06) 60%, transparent); box-shadow: inset 2px 0 0 var(--accent); }

.article-aside { display: grid; gap: var(--s-6); align-content: start; }
@media (min-width: 1200px) { .article-aside__sticky { position: sticky; top: calc(var(--header-h) + var(--s-5)); display: grid; gap: var(--s-6); } }
.save { justify-self: start; }
.save[aria-pressed="true"] { border-color: var(--accent); color: var(--white); }

/* Текст статьи */
.prose { font-size: 16px; line-height: 1.75; color: var(--text-soft); }
.prose > * { max-width: 70ch; }
.prose h2 { margin: var(--s-8) 0 var(--s-4); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--s-7) 0 var(--s-3); }
.prose h4 { margin: var(--s-6) 0 var(--s-3); }
.prose ul, .prose ol { margin: 0 0 var(--s-5); padding-left: 1.4em; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--muted); }
.prose .indent { padding-left: var(--s-5); }
.prose .lead-in { font-size: 17px; color: var(--text); }

/* Совет — карточка с коралловой подписью */
.tip { margin: var(--s-6) 0; padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); max-width: 70ch; }
.tip p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.tip p + p { margin-top: var(--s-2); }
.tip__label { display: block; margin-bottom: var(--s-2); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }

/* Партнёрский блок — пунктирная рамка и серая подпись, не путается с советом */
.partner { margin: var(--s-6) 0; padding: var(--s-4) var(--s-5); border: 1px dashed var(--muted); border-radius: var(--r-card); max-width: 70ch; }
.partner p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.partner__label { display: block; margin-bottom: var(--s-2); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }

.quote { margin: var(--s-6) 0; padding: var(--s-1) 0 var(--s-1) var(--s-5); border-left: 2px solid var(--accent); max-width: 60ch; }
.quote p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--white); }

/* Заметки к абзацу — сразу под ним */
.with-note > .tip, .with-note > .partner { margin-top: 0; }

.ph { background: linear-gradient(160deg, #17171B, #0D0D10); border: 1px solid var(--border); border-radius: var(--r-card); }
.ph--wide { aspect-ratio: 2 / 1; margin-block: var(--s-6); }
.ph--diagram { aspect-ratio: 19 / 10; max-width: 420px; margin-block: var(--s-5); }

/* Таблицы материалов */
.table-wrap { overflow-x: auto; margin: var(--s-5) 0 var(--s-6); border: 1px solid var(--border); border-radius: var(--r-card); }
.prose > .table-wrap { max-width: none; }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.table th { text-align: left; font-weight: 600; padding: var(--s-3) var(--s-4); background: var(--elevated); color: var(--white); }
.table td { vertical-align: top; padding: var(--s-3) var(--s-4); color: var(--text-soft); }
.table tbody td { border-top: 1px solid var(--border); }
.table--ruled td { padding-block: var(--s-4) var(--s-5); }
.table--ruled td + td, .table--ruled th + th { border-left: 1px solid var(--border); }

/* Практика в конце статьи */
.task { margin-top: var(--s-8); padding: var(--s-5); max-width: 70ch; color: var(--text-soft); }
.task h2 { margin: 0 0 var(--s-2); }
.task h3 { margin: var(--s-5) 0 var(--s-3); }
.task__intro { color: var(--muted); }
.task__steps { margin: 0; padding-left: 1.4em; }
.task__steps li + li { margin-top: var(--s-2); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.checklist label { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.checklist input { flex: none; width: 18px; height: 18px; margin: 0.25em 0 0; accent-color: var(--accent); }

.article-nav { margin-top: var(--s-8); }
.article-nav__route { margin: 0 0 var(--s-4); }
.article-nav__route a { color: var(--accent); }
.article-nav__pair { display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .article-nav__pair { grid-template-columns: 1fr 1fr; } }
.article-nav__link { display: block; padding: var(--s-4) var(--s-5); }
.article-nav__link:hover { border-color: var(--border-strong); }
.article-nav__label { display: block; font-size: 12px; color: var(--muted); }
.article-nav__title { display: block; margin-top: var(--s-1); font-size: 14px; font-weight: 500; color: var(--white); }
@media (min-width: 600px) { .article-nav__link--next { text-align: right; } }

/* ===== Маршрут ===== */

.route-head { margin-bottom: var(--s-8); }
.route-head h1 { max-width: 16ch; margin-bottom: var(--s-4); }
.route-head .lead { margin: 0; }
.route-head__terms { margin: var(--s-2) 0 0; font-size: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; max-width: 1086px; }

.stage { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s-5); padding-bottom: var(--s-5); }
@media (min-width: 900px) { .stage { grid-template-columns: 32px minmax(0, 1fr) 130px; padding-left: var(--s-3); } }
.stage:not(:last-child)::before {
  content: ""; position: absolute; top: 32px; bottom: 0;
  left: 15px; width: 1px; background: var(--border-strong);
}
@media (min-width: 900px) { .stage:not(:last-child)::before { left: calc(var(--s-3) + 15px); } }

.stage__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--elevated); border: 1px solid var(--border-strong); color: var(--muted);
  font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.stage--done .stage__num { background: var(--success); border-color: var(--success); color: var(--bg); }
.stage--current .stage__num { background: var(--accent); border-color: var(--accent); color: var(--bg); box-shadow: 0 0 16px rgba(255, 90, 90, .5); }

.stage__body { padding-top: 2px; min-width: 0; }
.stage__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.stage__desc { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.stage__more { margin-top: var(--s-3); font-size: 14px; color: var(--text-soft); max-width: 60ch; }
.stage__more p { margin: 0 0 var(--s-2); }
.stage:not(.stage--current) .stage__more { display: none; }
.stage__outcome-lead { color: var(--muted); }
.stage__articles { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-1); font-size: 13px; }
.stage__articles a { color: var(--accent); }
.stage__pending { margin: var(--s-2) 0 0; font-size: 13px; color: var(--muted); }

.stage__toggle {
  grid-column: 2; justify-self: start; margin-top: var(--s-3);
  min-width: 130px; min-height: 30px; padding: 0 var(--s-4);
  font: inherit; font-size: 11px; line-height: 1;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  cursor: pointer;
}
@media (min-width: 900px) { .stage__toggle { grid-column: 3; grid-row: 1; margin-top: 1px; align-self: start; } }
.stage__toggle:hover { color: var(--white); border-color: var(--muted); }
.stage--done .stage__toggle { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); }
.stage--current .stage__toggle { background: var(--text); border-color: var(--text); color: var(--bg); }

.next-step { margin-top: var(--s-4); padding: var(--s-4) var(--s-5); }
.next-step p { margin: 0; font-size: 14px; }
.next-step a { color: var(--accent); }

/* ===== Кабинет ===== */

.dash { display: grid; gap: var(--s-6); align-items: start; padding-block: 0 var(--s-10); }
@media (min-width: 900px) { .dash { grid-template-columns: 250px minmax(0, 1fr); column-gap: 0; } }

.dash-side { display: grid; gap: var(--s-6); align-content: start; padding-top: var(--s-7); }
@media (min-width: 900px) {
  .dash-side { position: sticky; top: var(--header-h); min-height: calc(100vh - var(--header-h)); padding-right: var(--s-5); border-right: 1px solid var(--border); }
}
.dash-user { display: flex; align-items: center; gap: var(--s-3); }
.dash-user .avatar { width: 48px; height: 48px; }
.dash-user .avatar .icon { width: 20px; height: 20px; }
.dash-user__name { margin: 0; font-size: 14px; font-weight: 600; color: var(--white); }
.dash-user__note { margin: 2px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); }

.dash-main { padding-top: var(--s-7); }
@media (min-width: 900px) { .dash-main { padding-left: var(--s-7); } }
.dash-main h1 { font-size: 28px; font-weight: 600; margin-bottom: var(--s-5); }
.dash-main > section + section { margin-top: var(--s-7); }
.dash-main h2 { font-size: 20px; }

.level { display: flex; align-items: center; gap: var(--s-5); padding: var(--s-5); }
.ring {
  --p: 0;
  display: grid; place-items: center; flex: none;
  width: 76px; height: 76px; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0);
}
.ring__inner {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); color: var(--accent);
}
.ring__inner .icon { width: 26px; height: 26px; }
.level__body { flex: 1; min-width: 0; }
.level__label { margin: 0; font-size: 12px; color: var(--muted); }
.level__title { margin: 2px 0 var(--s-3); font-size: 17px; font-weight: 600; }
.level__title a { color: var(--white); }
.level__row { display: grid; gap: var(--s-2); }
.level__value { justify-self: end; font-size: 12px; color: var(--muted); margin-top: -26px; }

.stats { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-4); }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.stat > .icon { width: 24px; height: 24px; color: var(--text); }
.stat__label { display: block; font-size: 12px; color: var(--muted); }
.stat__value { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--white); }

.route-card { display: block; padding: var(--s-4) var(--s-5); }
.route-card:hover { border-color: var(--border-strong); }
.route-card__title { display: block; font-size: 14px; font-weight: 600; color: var(--white); }
.route-card__row { display: grid; gap: var(--s-3); align-items: center; margin-top: var(--s-2); }
@media (min-width: 900px) { .route-card__row { grid-template-columns: 160px minmax(0, 520px); } }

.dash-settings p { color: var(--muted); font-size: 14px; max-width: 60ch; }

/* =====================================================================
   Слой стиля по макету design/mockups/v3/home-layout.jpg — на всём сайте.
   Крупные заголовки капсом (Inter Tight), мелкий спокойный текст, много воздуха,
   пилюли с контуром, круглые кнопки-стрелки, фото с тёплой цветокоррекцией.
   Фон сайта остаётся тёмным.
   ===================================================================== */

:root {
  --section-gap: 160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 899px) { :root { --section-gap: 96px; } }

/* --- Заголовки по всему сайту --- */
.page-head h1, .block__title, .dash-main h2 {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: -0.045em; line-height: 1.02; color: var(--white);
}
.block__title { font-size: clamp(28px, 3vw, 46px); }
.block__head { margin-bottom: var(--s-7); align-items: flex-end; }

/* Подчёркнутая метка-ссылка капсом: «Все рубрики», «Все статьи» */
.label-link, .more {
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase;
  color: var(--white); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  transition: color .3s var(--ease);
}
.label-link:hover, .more:hover { color: var(--accent); }
.more .icon { display: none; }

/* --- Кнопки: пилюли с контуром, капс, стрелка ↗ --- */
.btn, .pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 54px; padding: 0 var(--s-6);
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase;
  border-radius: var(--r-pill); border: 1.5px solid rgba(245, 245, 247, .7);
  background: transparent; color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:hover, .pill-btn:hover { background: var(--white); border-color: var(--white); color: var(--bg); text-decoration: none; }
.btn .icon, .pill-btn .icon { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .icon, .pill-btn:hover .icon { transform: translate(2px, -2px); }
.btn--primary, .pill-btn--light { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--primary:hover, .pill-btn--light:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--secondary { border-color: rgba(245, 245, 247, .35); color: var(--text); }

.chip { min-height: 38px; padding: 0 var(--s-5); font-family: var(--font-display); font-size: 13px; letter-spacing: -0.01em; text-transform: uppercase; transition: all .35s var(--ease); }
.tag { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; font-size: 10px; min-height: 24px; }

/* --- Шапки внутренних страниц: манифест, как блоки главной --- */
.page { padding-top: var(--s-10); }
.page-hero { display: grid; gap: var(--s-5); align-items: start; margin-bottom: var(--section-gap); }
@media (min-width: 900px) { .page-hero { grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s-6); } }
.page-hero__title { margin: 0; font-size: clamp(42px, 6vw, 96px); line-height: 1.02; }
.page-hero__sub { margin: var(--s-7) 0 0; max-width: 46ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
@media (min-width: 900px) { .page-hero__sub { margin-left: 18%; } }
.page-hero .eyebrow { margin-bottom: var(--s-4); }
.page-head h1.page-hero__title { margin-bottom: var(--s-4); }
.page-head { margin-bottom: var(--s-8); }
.page-head .lead { font-size: 14px; }

/* --- Главная: направления (блок 3 макета) --- */
.services { margin-top: var(--section-gap); text-align: center; }
.services__title { margin: 0 auto; font-size: clamp(36px, 5.4vw, 86px); line-height: 1.02; }
.services__sub { margin: var(--s-6) auto 0; max-width: 46ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.services__strip {
  list-style: none; padding: 0; margin: var(--s-9) calc(-1 * var(--pad)) 0;
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; text-align: left;
  padding-inline: var(--pad); padding-block: var(--s-6);
}
.services__strip::-webkit-scrollbar { display: none; }
.services__strip li { flex: 0 0 clamp(260px, 26vw, 420px); }
.services__strip li + li { margin-left: -28px; }
.services__strip li:nth-child(even) .svc-card { transform: translateY(-24px); }
.svc-card {
  position: relative; display: block; aspect-ratio: 4 / 4.4; overflow: hidden;
  border-radius: 22px; color: var(--white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.svc-card:hover { transform: translateY(-36px) !important; z-index: 2; color: var(--white); box-shadow: 0 50px 80px rgba(0, 0, 0, .6); }
.svc-card img, .svc-card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; transition: transform 1.4s var(--ease); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 8, .1) 30%, rgba(8, 6, 8, .85)); }
.svc-card__tag { position: absolute; z-index: 1; left: var(--s-5); top: var(--s-5); }
.svc-card__bottom { position: absolute; z-index: 1; inset: auto var(--s-5) var(--s-5); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s-4); }
.svc-card__title { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 400; line-height: 1.02; letter-spacing: -0.04em; }
.svc-card__desc { max-width: 18ch; font-size: 10px; line-height: 1.4; color: rgba(245, 245, 247, .7); }
.services__more { margin: var(--s-7) 0 0; }

.tag--glass { background: rgba(10, 6, 8, .4); border-color: rgba(255, 255, 255, .35); color: var(--white); backdrop-filter: blur(8px); }

/* --- Главная: призыв-цитата --- */
.cta-statement { margin-top: var(--section-gap); display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .cta-statement { grid-template-columns: 120px minmax(0, 1fr); gap: var(--s-6); } }
.cta-statement__quote { font-size: clamp(36px, 5.4vw, 86px); }
.cta-statement__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6);
  margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--border);
}
@media (min-width: 900px) { .cta-statement__row { grid-column: 2; } }
.cta-statement__title { max-width: 40ch; font-family: var(--font); font-size: 15px; font-weight: 400; line-height: 1.6; letter-spacing: 0; color: var(--muted); }

/* --- Фото в карточках: тёплая цветокоррекция уже в файлах, здесь — подача и плавность --- */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-card img, .trio-card__img img, .trio-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.photo-card:hover img, .trio-card:hover img, .trio-feature:hover img { transform: scale(1.06); }
.trio-feature img + .trio-feature__shade { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(255, 90, 90, .35), rgba(40, 6, 10, .2) 40%, rgba(10, 4, 6, .85)); }
.trio-feature > * { position: relative; z-index: 1; }
.trio-feature > img, .trio-feature > .trio-feature__shade { position: absolute; z-index: 0; }

.thumb-img { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--surface); }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.item:hover .thumb-img img { transform: scale(1.08); }
.news-item .thumb-img { width: 200px; aspect-ratio: 16 / 10; }
@media (max-width: 599px) { .news-item .thumb-img { width: 120px; } }
.item__title { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.news-item .item__title { font-size: 22px; }
.item { padding-block: var(--s-5); gap: var(--s-6); }
.list { border-top-color: var(--border); }

/* Обложка статьи — фото во всю ширину */
.article-cover-photo { position: relative; aspect-ratio: 21 / 8; margin: 0 0 var(--s-9); border-radius: 22px; overflow: hidden; }
.article-cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 11, 12, .45)); }
.article-head { padding-top: var(--s-9); margin-bottom: var(--s-8); }
.article-head h1 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; font-size: clamp(34px, 4.6vw, 72px); max-width: 20ch; }
.prose h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; margin-top: var(--s-9); }
.prose h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; font-size: 24px; }

/* Рубрики, база знаний, маршрут, кабинет — больше воздуха */
.rubric { padding: var(--s-5) var(--s-5); border-radius: 18px; transition: border-color .4s var(--ease), transform .5s var(--ease), background .4s var(--ease); }
.rubric:hover { transform: translateY(-4px); background: var(--elevated); }
.rubric__name { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; }
.rubrics { gap: var(--s-5); }
.bento { margin-top: var(--section-gap); }
.bento__title, .bento__wide-title, .bento__num { font-family: var(--font-display); letter-spacing: -0.045em; }
.bento__title { text-transform: uppercase; font-weight: 500; line-height: 1.02; }
.bento__btn { font-family: var(--font-display); }
.kb { gap: var(--s-8); }
.side-nav button { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; letter-spacing: -0.01em; padding-block: 12px; }
.stage { padding-bottom: var(--s-7); }
.stage__title { font-family: var(--font-display); font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.stage__num { width: 40px; height: 40px; font-family: var(--font-display); font-size: 13px; }
.stage { grid-template-columns: 40px minmax(0, 1fr); }
@media (min-width: 900px) { .stage { grid-template-columns: 40px minmax(0, 1fr) 150px; } .stage:not(:last-child)::before { left: calc(var(--s-3) + 19px); } }
.stage:not(:last-child)::before { top: 40px; left: 19px; }
.stage__toggle { min-height: 40px; min-width: 150px; font-family: var(--font-display); font-size: 12px; text-transform: uppercase; }
.next-step { margin-top: var(--s-8); padding: var(--s-6); border-radius: 20px; }
.dash-title { font-size: clamp(36px, 4.4vw, 68px); margin-bottom: var(--s-8) !important; }
.dash-main > section + section { margin-top: var(--s-9); }
.level, .stat, .route-card { border-radius: 18px; }
.stat__value { font-family: var(--font-display); font-size: 36px; letter-spacing: -0.04em; }
.tip, .partner, .task, .table-wrap { border-radius: 18px; }

/* Карусель «С чего начать» — заголовки в общем стиле, больше воздуха */
.carousel-band { margin-top: var(--section-gap); }

/* Подвал: крупный логотип-надпись */
.footer { margin-top: 0; }
.footer__top { padding-block: var(--s-10) var(--s-8); }
.footer__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; font-size: 14px; }
.footer__nav ul { gap: var(--s-4); font-size: 14px; }
.footer__wordmark {
  margin: 0; padding-bottom: var(--s-5);
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(56px, 13.6vw, 260px); line-height: .82; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 245, 247, .18);
  white-space: nowrap; overflow: hidden; user-select: none;
}

/* --- Анимация плавности --- */

/* Первый экран появляется при загрузке */
@keyframes rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-out { from { transform: scale(1.12); } to { transform: scale(1); } }
.stage-hero__img { animation: zoom-out 2.4s var(--ease) both, fade 1.2s ease both; }
.stage-hero__title { animation: rise 1.1s var(--ease) .15s both; }
.stage-hero__side { animation: rise 1.1s var(--ease) .3s both; }
.stage-hero__lead { animation: rise 1.1s var(--ease) .45s both; }
.stage-hero__cards { animation: rise 1.1s var(--ease) .6s both; }
.stage-hero__tags { animation: rise 1.1s var(--ease) .75s both; }

/* Появление блоков при прокрутке: класс ставит app.js только тем блокам, что ниже первого экрана */
.reveal { transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(56px); }
.reveal-kids > * { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-kids.is-pending > * { opacity: 0; transform: translateY(48px); }
.reveal-kids > *:nth-child(2) { transition-delay: .08s; }
.reveal-kids > *:nth-child(3) { transition-delay: .16s; }
.reveal-kids > *:nth-child(4) { transition-delay: .24s; }
.reveal-kids > *:nth-child(5) { transition-delay: .32s; }
.reveal-kids > *:nth-child(6) { transition-delay: .4s; }
.reveal-kids > *:nth-child(n+7) { transition-delay: .48s; }

/* Плавные наведения */
.card, .item, .photo-card, .trio-card, .trio-feature, .direction, .row { transition: border-color .4s var(--ease), background .4s var(--ease), transform .6s var(--ease); }
.photo-card:hover, .trio-card:hover { transform: translateY(-6px); }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  .stage-hero__img, .stage-hero__title, .stage-hero__side, .stage-hero__lead, .stage-hero__cards, .stage-hero__tags { animation: none; }
  .reveal.is-pending, .reveal-kids.is-pending > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.dash-main .level__title { font-family: var(--font-display); text-transform: none; font-size: 22px; letter-spacing: -0.03em; }

/* Карточки базы знаний: макет design/mockups/v3/kb-cards.jpg — фото с отступом внутри карточки,
   коралловая метка-пилюля, заголовок, дата; 2–3 в ряд справа от меню типов */
.kb-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
@media (min-width: 600px)  { .kb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .kb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kb-cards .empty { grid-column: 1 / -1; }
.kb-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 8px; border-radius: 20px;
  background: #111113; border: 1px solid var(--border);
  color: var(--white);
  transition: transform .6s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.kb-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: #151517; color: var(--white); }
.kb-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; }
.kb-card__img img, .kb-card__img .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; transition: transform 1.2s var(--ease); }
.kb-card:hover .kb-card__img img { transform: scale(1.06); }
.kb-card__body { display: grid; justify-items: start; gap: var(--s-3); padding: var(--s-5) var(--s-3) var(--s-3); }
.kb-card__tag {
  padding: 5px 12px; border-radius: var(--r-pill);
  background: rgba(255, 90, 90, .16); color: #FF8A7A;
  font-size: 12px; font-weight: 500; line-height: 1;
}
.kb-card__title { font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.kb-card__meta { font-size: 12px; color: var(--muted); }

/* ===== Страница рубрик по макету design/mockups/v3/rubrics-page.jpg ===== */

.rub-head { display: grid; gap: var(--s-6); margin-bottom: var(--s-10); }
@media (min-width: 900px) { .rub-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; column-gap: var(--s-8); } }
.rub-head__labels {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: var(--s-4);
  margin-bottom: var(--s-7);
  font-family: var(--font-display); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted);
}
.rub-head__title { margin: 0; font-size: clamp(40px, 5vw, 80px); line-height: 1.04; }
.rub-head__arrow { color: var(--accent); font-weight: 300; margin-right: .15em; }
.rub-head__text {
  margin: 0; font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.3; letter-spacing: -0.02em;
  color: var(--white);
}
@media (min-width: 900px) { .rub-head__text { text-align: right; padding-bottom: .3em; } }

/* Сетка со смещением колонок: 1-я и 3-я ниже, 2-я и 4-я выше, как полоса карточек в макете */
.rub-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-8) var(--s-5); }
@media (min-width: 600px) { .rub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) {
  .rub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: var(--s-6); }
  .rub-grid > :nth-child(4n+1), .rub-grid > :nth-child(4n+3) { transform: translateY(140px); }
  .rub-grid { padding-bottom: 140px; }
}

.rub-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); }
@media (min-width: 1200px) { .rub-grid > .rub-intro { transform: none; } }
.rub-intro__btn {
  display: grid; place-items: center; width: 64px; height: 44px; border-radius: var(--r-pill);
  border: 1.5px solid var(--accent); color: var(--accent);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.rub-intro__btn:hover { background: var(--accent); color: var(--bg); }
.rub-intro__btn .icon { width: 20px; height: 20px; }
.rub-intro__label { margin: 0; font-family: var(--font-display); font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; text-transform: uppercase; color: #3A3A40; }
.rub-intro__card {
  position: relative; display: block; width: 62%; aspect-ratio: 3 / 4; margin-top: var(--s-6);
  border-radius: 18px; overflow: hidden; color: var(--white);
}
.rub-intro__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rub-intro__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 6, 8, .85)); }
.rub-intro__card span { position: absolute; z-index: 1; inset: auto var(--s-4) var(--s-4); font-size: 11px; line-height: 1.4; }
.rub-intro__card:hover img { transform: scale(1.06); }
.rub-intro__card:hover { color: var(--white); }

.rub-card { display: block; color: var(--white); }
.rub-card:hover { color: var(--white); }
.rub-card__img {
  position: relative; display: block; aspect-ratio: 3 / 3.9; overflow: hidden;
  border-radius: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  transition: transform .8s var(--ease);
}
.rub-card__img img, .rub-card__img .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; transition: transform 1.4s var(--ease); }
.rub-card__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 8, .55), transparent 38%, transparent 62%, rgba(8, 6, 8, .55)); }
.rub-card:hover .rub-card__img { transform: translateY(-8px); }
.rub-card:hover .rub-card__img img { transform: scale(1.06); }
.rub-card__tag { position: absolute; z-index: 1; left: var(--s-4); top: var(--s-4); }
.rub-card__lead { position: absolute; z-index: 1; left: var(--s-4); right: var(--s-5); top: 64px; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.rub-card__name {
  display: block; margin-top: var(--s-5);
  font-family: var(--font-display); font-size: clamp(22px, 1.9vw, 30px); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; text-transform: uppercase;
  transition: color .4s var(--ease);
}
.rub-card:hover .rub-card__name { color: var(--accent); }

/* Поиск в шапке на странице базы знаний */
.header-search {
  display: flex; align-items: center; gap: var(--s-2);
  width: clamp(200px, 24vw, 340px); height: 40px; padding: 0 var(--s-4);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  transition: border-color .4s var(--ease), background .4s var(--ease), width .5s var(--ease);
}
.header-search:focus-within { border-color: var(--muted); background: rgba(255, 255, 255, .07); width: clamp(240px, 30vw, 420px); }
.header-search .icon { width: 16px; height: 16px; color: var(--muted); }
.header-search input { flex: 1; min-width: 0; font: inherit; font-size: 13px; color: var(--white); background: none; border: 0; padding: 0; }
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { outline: none; }

/* «Популярные статьи» — по нижнему краю карточек */
@media (min-width: 900px) { .statement__row { align-items: end; } .statement__label { padding-bottom: var(--s-2); } }

/* Карусель «С чего начать»: фото во всю полосу, затемнение и градиент в цвете слайда под текстом.
   CSS-иллюстрации уступили место фото */
.carousel-band .slide-visual { display: none; }
.carousel-band .carousel__slide { min-height: 560px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .carousel-band .carousel__slide { grid-template-columns: minmax(0, 640px) 1fr; min-height: 620px; } }
.carousel__photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.62) saturate(.9);
  transform: scale(1.04); transition: transform 6s linear;
}
.carousel__slide:not([inert]) .carousel__photo { transform: scale(1.12); }
/* Градиент под текстом: слева плотный цвет слайда, к правому краю фото открывается */
.carousel-band .carousel__slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--slide-tint) 0%, color-mix(in srgb, var(--slide-tint) 88%, transparent) 30%, color-mix(in srgb, var(--slide-tint) 35%, transparent) 62%, transparent 85%),
    linear-gradient(0deg, rgba(8, 4, 6, .7) 0%, transparent 35%);
}
.carousel__slide--1 { --slide-tint: #2A0B0E; }
.carousel__slide--2 { --slide-tint: #2A0A1C; }
.carousel__slide--3 { --slide-tint: #2B1009; }
.carousel__slide--4 { --slide-tint: #260810; }
.carousel__slide--5 { --slide-tint: #2A100C; }
@media (prefers-reduced-motion: reduce) { .carousel__photo, .carousel__slide:not([inert]) .carousel__photo { transform: none; transition: none; } }

/* Звёздное небо на фоне: canvas создаёт app.js, слой закреплён за окном поверх фоновых градиентов */
.starfield { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Похожие статьи в конце статьи */
.related { margin-top: var(--section-gap); padding-top: var(--s-9); border-top: 1px solid var(--border); }
.related__head { display: grid; gap: var(--s-5); align-items: end; margin-bottom: var(--s-8); }
@media (min-width: 900px) { .related__head { grid-template-columns: 120px minmax(0, 1fr) auto; gap: var(--s-6); } .related__head .statement__star { align-self: start; } }
.related__title { margin: 0; font-size: clamp(32px, 4vw, 64px); line-height: 1.04; }

/* Иконка «в избранное» под содержанием статьи, справа */
.save-icon {
  justify-self: end; display: grid; place-items: center;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border-strong); color: var(--text);
  cursor: pointer; transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.save-icon .icon { width: 20px; height: 20px; transition: fill .35s var(--ease); }
.save-icon:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.save-icon[aria-pressed="true"] { background: linear-gradient(135deg, rgba(255, 90, 90, .28), rgba(255, 90, 90, .08)); border-color: var(--accent); color: var(--accent); }
.save-icon[aria-pressed="true"] .icon { fill: currentColor; }
.save-icon--float {
  position: fixed; right: var(--pad); bottom: var(--s-6); z-index: 40;
  width: 56px; height: 56px;
  background: rgba(18, 18, 20, .82); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.save-icon--float .icon { width: 22px; height: 22px; }
.save-icon--float[aria-pressed="true"] { background: linear-gradient(135deg, rgba(255, 90, 90, .38), rgba(40, 10, 12, .9)); }

/* ===== Страница 404: тёмная галактика, свет в центре, крупный текст капсом по центру ===== */
.page-404 .header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.lost {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  min-height: 100svh; margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + var(--s-8)) var(--pad) var(--s-9);
}
.lost__bg { position: absolute; inset: 0; z-index: -1; background: #050408; }
.lost__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.38) saturate(.85); animation: zoom-out 3s var(--ease) both; }
/* Свет в центре и тёмные края */
.lost__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(30% 34% at 50% 50%, rgba(255, 210, 200, .30), rgba(255, 90, 90, .16) 45%, transparent 75%),
    radial-gradient(70% 70% at 50% 50%, transparent 40%, rgba(5, 4, 8, .85) 100%),
    linear-gradient(180deg, transparent 70%, var(--bg));
}
.lost__content { display: grid; justify-items: center; width: 100%; }
.lost__kicker { margin: 0 0 var(--s-5); font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #FF8A7A; animation: rise 1s var(--ease) .1s both; }
.lost__title {
  margin: 0; width: 100%;
  font-size: clamp(40px, calc(9.6vw - 20px), 160px); line-height: .98;
  text-shadow: 0 0 60px rgba(255, 140, 120, .35);
  animation: rise 1.1s var(--ease) .2s both;
}
.lost__code {
  display: block; margin-bottom: .04em;
  font-size: clamp(90px, calc(18.24vw - 120px), 222px); line-height: .9; letter-spacing: -0.06em;
  background: linear-gradient(180deg, #FFFFFF 10%, #FFB3A8 55%, rgba(255, 90, 90, .55));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 40px rgba(255, 90, 90, .35));
}
.lost__text { margin: var(--s-7) 0 var(--s-6); max-width: 44ch; font-size: 15px; line-height: 1.6; color: rgba(245, 245, 247, .7); animation: rise 1.1s var(--ease) .35s both; }
.lost__btn { animation: rise 1.1s var(--ease) .5s both; }
@media (prefers-reduced-motion: reduce) { .lost__bg img, .lost__kicker, .lost__title, .lost__text, .lost__btn { animation: none; } }

/* =====================================================================
   Мобильная версия. Базовые значения — для узкого экрана, широкий восстанавливается через min-width.
   ===================================================================== */

/* Шапка: на телефоне поиск — круглая кнопка, при нажатии поле раскрывается на всю ширину шапки */
.header__inner { position: relative; gap: var(--s-3); }
.nav__toggle { order: 3; margin-left: 0; padding: var(--s-2) var(--s-3); border: 1px solid var(--border-strong); border-radius: var(--r-pill); font-size: 13px; }
.header__tools { margin-left: auto; gap: var(--s-3); }
.header__divider { display: none; }
.header-search { position: relative; width: 40px; padding: 0; justify-content: center; }
.header-search input { position: absolute; inset: 0; width: 100%; padding: 0 0 0 40px; opacity: 0; cursor: pointer; }
.header-search .icon { position: relative; z-index: 1; pointer-events: none; }
.header-search:focus-within {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%; z-index: 5;
  width: auto; transform: translateY(-50%);
  justify-content: flex-start; padding: 0 var(--s-4); background: var(--surface);
}
.header-search:focus-within input { position: static; opacity: 1; padding: 0; cursor: text; }
@media (min-width: 900px) {
  .header__inner { gap: var(--s-5); }
  .header__divider { display: block; }
  .header-search { width: clamp(200px, 24vw, 340px); padding: 0 var(--s-4); justify-content: flex-start; }
  .header-search input { position: static; opacity: 1; padding: 0; cursor: text; }
  .header-search:focus-within { position: relative; left: auto; right: auto; top: auto; transform: none; width: clamp(240px, 30vw, 420px); }
}
/* Меню-гамбургер ниже 600px — выпадающая панель на всю ширину */
.nav--open { gap: var(--s-5); padding-block: var(--s-6); font-size: 17px; }
.nav--open a, .nav--open .nav__group > a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; font-size: 22px; color: var(--white); }
.nav--open .nav__sub { margin-top: var(--s-3); }
@media (min-width: 600px) { .nav--open a, .nav--open .nav__group > a { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: inherit; color: var(--muted); } }

/* Первый экран: плашки рядом и компактнее */
.stage-hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.hero-card { width: auto; min-height: 150px; padding: var(--s-3); }
.hero-card__num { font-size: 32px; }
.stage-hero__tags { justify-content: flex-start; }
@media (min-width: 900px) {
  .stage-hero__cards { display: flex; gap: var(--s-4); }
  .hero-card { width: 190px; min-height: 172px; padding: var(--s-4); }
  .hero-card__num { font-size: 40px; }
  .stage-hero__tags { justify-content: flex-end; }
}

/* Лесенка в заголовках — только на широком экране */
.statement__indent, .statement__indent--far { padding-left: 0; }
@media (min-width: 900px) { .statement__indent { padding-left: 16%; } .statement__indent--far { padding-left: 40%; } }
.statement__aside { text-align: left; }
@media (min-width: 900px) { .statement__aside { text-align: right; } }

/* Популярные статьи: на телефоне карточки ниже */
.photo-card { aspect-ratio: 4 / 3.4; }
@media (min-width: 600px) { .photo-card { aspect-ratio: 4 / 4.6; } }

/* Направления: подпись на карточке только на широком экране */
.svc-card__desc { display: none; }
@media (min-width: 900px) { .svc-card__desc { display: block; } }
.services__strip li { flex-basis: 72vw; }
@media (min-width: 600px) { .services__strip li { flex-basis: clamp(260px, 26vw, 420px); } }

/* Новости на главной: на телефоне без пустых отступов */
.trio-feature { aspect-ratio: 4 / 4.2; }
@media (min-width: 900px) { .trio-feature { aspect-ratio: 1 / 1; } }

/* Плавающая закладка — не мешает тексту на телефоне */
.save-icon--float { bottom: var(--s-5); width: 50px; height: 50px; }
@media (min-width: 900px) { .save-icon--float { bottom: var(--s-6); width: 56px; height: 56px; } }

/* Новости на телефоне: фото над текстом, во всю ширину */
.news-item { flex-wrap: wrap; }
.news-item .thumb-img { width: 100%; aspect-ratio: 16 / 9; }
.news-item .item__body { flex: 1 1 0; }
@media (min-width: 600px) {
  .news-item { flex-wrap: nowrap; }
  .news-item .thumb-img { width: 200px; aspect-ratio: 16 / 10; }
}

/* Юридические и служебные страницы: текст узкой колонкой со сдвигом, как подзаголовки манифестов */
@media (min-width: 900px) { .legal { margin-left: calc(120px + var(--s-6)); } }
.legal > * { max-width: 72ch; }
.legal h2 { margin-top: var(--s-8); font-size: clamp(22px, 2vw, 30px); }
.legal code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--elevated); color: var(--white); }

/* Доступность: ссылки в тексте отличаются не только цветом; подпись «Не знаете, с чего начать?» — контраст 3:1 */
.prose p a, .prose li a, .meta a, .legal a, .lead a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rub-intro__label { color: #6E6E78; }

/* Таблицы материалов: ссылка на материал и формат под ней */
.table td a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 90, 90, .6); text-underline-offset: 3px; }
.table td a:hover { color: var(--accent); }
.table__meta { display: block; margin-top: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Типографика на телефоне: единая шкала и больше воздуха.
   Крупные заголовки ~38 → 26 → 21 → 18, подписи 15–16, основной текст 15. Планшет и десктоп не меняются. */
@media (max-width: 599px) {
  :root { --pad: 24px; --section-gap: 120px; }
  body, .lead, .prose, .toc li { font-size: 15px; }
  .prose .lead-in, .quote p { font-size: 16px; }

  /* Первый экран */
  .stage-hero__title { font-size: 38px; line-height: 1.06; }
  .stage-hero__kicker { font-size: 17px; line-height: 1.15; }
  .hero-card__num { font-size: 28px; }

  /* Заголовки страниц */
  .page-hero__title, .rub-head__title, .rub-head__arrow, .dash-title, .dash-main h1 { font-size: 32px; line-height: 1.06; }
  .article-head h1 { font-size: 28px; line-height: 1.1; }
  .lost__title { font-size: 34px; }

  /* Заголовки разделов */
  .statement__text, .statement__text--stagger, .services__title, .cta-statement__quote { font-size: 26px; line-height: 1.08; }
  .related__title, .bento__title { font-size: 24px; line-height: 1.08; }
  .carousel-band .carousel__title,
  .carousel-band .carousel__body.route-promo .route-promo__title { font-size: 24px; line-height: 1.1; }
  .prose h2 { font-size: 21px; line-height: 1.12; margin-top: var(--s-8); }
  .block__title, .statement__label, .rub-intro__label, .legal h2 { font-size: 20px; line-height: 1.1; }

  /* Заголовки карточек */
  .prose h3, .stage__title, .svc-card__title, .trio-feature__title, .bento__wide-title { font-size: 19px; line-height: 1.15; }
  .news-item .item__title, .rub-card__name, .kb-card__title, .dash-main .level__title, .toc__title { font-size: 17px; line-height: 1.2; }
  .bento__num, .stat__value { font-size: 28px; }

  /* Подписи и вводный текст */
  .rub-head__text { font-size: 16px; line-height: 1.45; }
  .rub-card__lead { font-size: 15px; }
  .nav--open a, .nav--open .nav__group > a { font-size: 20px; }
  .explore-btn { font-size: 15px; }

  /* Воздух между заголовком и текстом */
  .statement__head { gap: var(--s-5); }
  .statement__sub { margin-top: var(--s-7); }
}

/* Политика конфиденциальности как документ: оглавление слева, лист с реквизитами, нумерованные пункты */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
@media (min-width: 1100px) { .doc { grid-template-columns: 240px minmax(0, 860px); gap: var(--s-9); justify-content: center; align-items: start; } }
.doc__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.doc__toc li { counter-increment: toc; }
.doc__toc a { display: flex; gap: var(--s-3); padding: var(--s-2) 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); transition: color .3s var(--ease); }
.doc__toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-size: 12px; color: var(--accent); min-width: 2ch; padding-top: 2px; }
.doc__toc a:hover { color: var(--white); text-decoration: none; }
@media (min-width: 1100px) { .doc__toc { position: sticky; top: calc(var(--header-h) + var(--s-6)); } }
@media (max-width: 1099px) { .doc__toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: var(--s-5); } }

.legal.doc__sheet { margin-left: 0; }
.doc__sheet > * { max-width: none; }
.doc__sheet {
  position: relative; padding: clamp(24px, 5vw, 72px);
  background: linear-gradient(180deg, var(--elevated), var(--surface) 320px);
  border: 1px solid var(--border); border-radius: 22px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
/* Коралловый «корешок» документа */
.doc__sheet::before { content: ""; position: absolute; left: -1px; top: 48px; width: 3px; height: 72px; border-radius: 0 3px 3px 0; background: var(--accent); }

.doc__head { padding-bottom: var(--s-6); border-bottom: 1px solid var(--border-strong); }
.doc__kind { margin: 0 0 var(--s-4); font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal .doc__title { margin: 0; max-width: 24ch; font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.02em; color: var(--white); }
.doc__props { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); margin: var(--s-6) 0 0; }
.doc__props dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.doc__props dd { margin: 4px 0 0; font-size: 14px; color: var(--white); }

.doc__summary { margin-top: var(--s-6); padding: var(--s-5) var(--s-6); border: 1px solid rgba(255, 90, 90, .35); border-radius: var(--r-card); background: rgba(255, 90, 90, .05); }
.doc__summary h3 { margin: 0 0 var(--s-3); }
.doc__summary ul { margin: 0; padding-left: 1.1em; display: grid; gap: var(--s-2); }

.doc__section { padding-top: var(--s-7); }
.legal .doc__section h2 { display: flex; align-items: baseline; gap: var(--s-4); margin: 0 0 var(--s-5); }
.doc__num { flex: none; font-family: var(--font-display); font-size: .6em; font-weight: 600; color: var(--accent); min-width: 2.2em; padding: 4px 0; text-align: center; border: 1px solid rgba(255, 90, 90, .45); border-radius: var(--r-pill); }
.doc__section p { position: relative; margin: 0 0 var(--s-4); line-height: 1.7; color: var(--text-soft); }
.doc__pt { font-family: var(--font-display); font-weight: 600; color: var(--white); margin-right: .35em; }
.doc__table { margin: var(--s-2) 0 var(--s-5); }
.doc__table .table { min-width: 620px; }
.doc__table td { vertical-align: top; }
.doc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px dashed var(--border-strong); font-size: 12px; color: var(--muted); }
@media (max-width: 599px) {
  .doc__sheet { border-radius: 18px; }
  .doc__summary { padding: var(--s-5); }
  .legal .doc__section h2 { gap: var(--s-3); }
  .legal .doc__title { font-size: 24px; }
}

/* Уведомление о cookie: стандартная плашка внизу во всю ширину — иконка, заголовок, текст, «Принять» и «Подробнее».
   На телефоне всё в столбик, кнопки на всю ширину */
.cookie {
  position: fixed; z-index: 70; left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start;
  padding: var(--s-5);
  background: rgba(18, 18, 20, .95); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.cookie--hidden { transform: translateY(24px); opacity: 0; pointer-events: none; }
.cookie__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 90, 90, .12); border: 1px solid rgba(255, 90, 90, .35); color: var(--accent); }
.cookie__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cookie__icon circle { fill: currentColor; stroke: none; }
.cookie__title { margin: 0 0 var(--s-2); line-height: 1.2; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; color: var(--white); }
.cookie__text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-soft); }
.cookie__text a { color: var(--white); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cookie__text a:hover { color: var(--accent); }
.cookie__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.cookie__actions .btn { min-height: 46px; padding: 0 var(--s-5); font-size: 14px; }
@media (min-width: 900px) {
  .cookie { left: var(--pad); right: var(--pad); bottom: var(--s-5); grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); padding: var(--s-5) var(--s-6); }
  .cookie__text { max-width: 80ch; }
  .cookie__actions { grid-column: auto; display: flex; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* Узнавание вернувшегося читателя: точка на аватаре, карточка «Продолжить чтение» на главной */
.avatar { position: relative; }
.avatar--known::after { content: ""; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 10px rgba(255, 90, 90, .6); }
.hero-card--welcome .hero-card__caption { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: -6px; font-size: 11px; line-height: 1.35; }

/* Перенос кабинета на другое устройство */
.transfer { margin: var(--s-6) 0; padding: var(--s-6); max-width: 720px; }
.transfer__title { margin: 0 0 var(--s-4); font-size: 18px; color: var(--white); }
.transfer__steps { margin: 0 0 var(--s-5); padding-left: 1.2em; display: grid; gap: var(--s-2); font-size: 14px; line-height: 1.55; color: var(--text-soft); }
.transfer__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.transfer__upload { cursor: pointer; }
.transfer__upload:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.transfer__status:empty { display: none; }
.transfer__status { margin: var(--s-4) 0 0; font-size: 13px; color: var(--accent); }
@media (max-width: 599px) { .transfer { padding: var(--s-5); } .transfer__actions .btn { width: 100%; } }

/* ===== Новости: лента карточек по макету новости.jpg =====
   Заголовок с коралловой точкой и счётчиком, справа тема и круглые стрелки;
   лента во всю ширину экрана, карточки трёх видов, главная — выше остальных */
.news-stage__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); }
.news-stage__title { display: flex; align-items: center; gap: var(--s-3); margin: 0; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 34px); font-weight: 400; letter-spacing: -0.03em; color: var(--white); }
.news-stage__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 90, 90, .18), 0 0 16px rgba(255, 90, 90, .7); }
.news-stage__count { color: var(--muted); }
.news-stage__date { margin: var(--s-2) 0 0 calc(14px + var(--s-3)); font-size: 13px; color: var(--muted); }
.news-stage__tools { display: flex; align-items: center; gap: var(--s-3); }

.select-pill { position: relative; display: inline-flex; align-items: center; }
.select-pill select {
  appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 44px 0 var(--s-5);
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); cursor: pointer;
}
.select-pill select:hover { border-color: var(--muted); }
.select-pill .icon { position: absolute; right: 16px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.round-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; color: var(--text); border: 1px solid var(--border-strong); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.round-btn .icon { width: 18px; height: 18px; }
.round-btn:hover:not(:disabled) { background: var(--white); color: var(--bg); border-color: var(--white); }
.round-btn:disabled { opacity: .35; cursor: default; }

.news-rail {
  display: flex; align-items: flex-end; gap: var(--s-5);
  margin: 0 calc(var(--pad) * -1); padding: var(--s-9) var(--pad) var(--s-5); list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.news-rail::-webkit-scrollbar { display: none; }
.news-rail:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.nc { flex: none; width: min(82vw, 340px); scroll-snap-align: start; }
.nc__link { position: relative; display: block; color: var(--text); text-decoration: none; }
.nc__box { position: relative; display: flex; flex-direction: column; }
.nc__link:hover { text-decoration: none; }
.nc__title { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; color: var(--white); }
.nc__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nc__bottom { display: grid; gap: var(--s-4); margin-top: auto; }
.nc__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nc__pill {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 var(--s-3);
  font-family: var(--font-display); font-size: 11px; letter-spacing: .02em; text-transform: uppercase;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); color: var(--text); white-space: nowrap;
}
.nc__pill .icon { width: 14px; height: 14px; }
.nc__pill--sm { justify-self: start; }
.nc__pill--fill { background: var(--elevated); border-color: var(--elevated); }
.nc__pill--go { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.nc__link:hover .nc__pill--go { background: var(--white); border-color: var(--white); color: var(--bg); }
.nc__pill--glass { background: rgba(11, 11, 12, .35); border-color: rgba(255, 255, 255, .25); color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nc__label { display: inline-flex; align-items: center; gap: var(--s-2); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-soft); }
.nc__ring { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.nc__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; color: var(--accent); }
.nc__icon .asterisk { width: 18px; height: 18px; }
.nc__icon--glass { border-radius: 50%; background: rgba(11, 11, 12, .35); border: 1px solid rgba(255, 255, 255, .25); color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nc__shade { position: absolute; inset: 0; pointer-events: none; }
.nc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.nc__link:hover img { transform: scale(1.04); }

/* Текстовая карточка */
.nc--text .nc__box { min-height: 440px; padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.nc--text .nc__box:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.nc__text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin: var(--s-6) 0 var(--s-6); font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Фото-карточка: текст поверх снимка */
.nc--photo .nc__box { min-height: 440px; padding: var(--s-5); overflow: hidden; border-radius: 22px; background: var(--elevated); isolation: isolate; }
.nc--photo img { z-index: -2; }
.nc--photo .nc__shade { z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 12, .25) 0%, rgba(11, 11, 12, 0) 35%, rgba(11, 11, 12, .85) 100%); }
.nc--photo .nc__label { color: rgba(255, 255, 255, .85); }

/* Главная карточка: фото выше соседних, заголовок под ним — белый и приглушённый */
.nc--feature { width: min(85vw, 420px); }
.nc__media { position: relative; display: block; height: 400px; overflow: hidden; border-radius: 22px; background: var(--elevated); isolation: isolate; box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.nc__media img { z-index: -2; }
.nc--feature .nc__shade { z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 12, .45), rgba(11, 11, 12, 0) 40%); }
.nc--feature .nc__top { position: absolute; inset: var(--s-5) var(--s-5) auto; }
.nc__live { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.nc__live i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--white); background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px); }
.nc__caption { display: block; margin-top: var(--s-5); }
.nc--feature .nc__title { display: inline; font-size: clamp(24px, 2vw, 30px); }
.nc__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: var(--s-2); font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.2; letter-spacing: -0.02em; color: #6E6E78; }

.nc--target .nc__box, .nc--target .nc__media { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 22px; }
.nc--empty { width: min(82vw, 520px); padding: var(--s-6); border: 1px dashed var(--border-strong); border-radius: 22px; color: var(--muted); font-size: 14px; }
.nc--empty p { margin: 0; }

@media (min-width: 900px) {
  .nc { width: 340px; }
  .nc--feature { width: 420px; }
  .nc--text .nc__box, .nc--photo .nc__box { min-height: 470px; }
  .nc__media { height: 460px; }
  .nc__title { font-size: 30px; }
}
@media (max-width: 599px) {
  .news-stage__head { margin-bottom: var(--s-5); }
  .news-stage__tools { width: 100%; }
  .select-pill { flex: 1; }
  .select-pill select { width: 100%; }
  .news-rail { padding-top: var(--s-4); gap: var(--s-4); }
  .nc__title { font-size: 22px; }
  .nc--text .nc__box, .nc--photo .nc__box { min-height: 400px; }
  .nc__media { height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .nc img, .nc--text .nc__box { transition: none; } }
/* Новости: лента — первый экран, как в макете; тёплое свечение сверху справа */
.page--news { padding-top: var(--s-8); overflow-x: clip; }
.news-stage { position: relative; }
.news-stage__glow { position: absolute; z-index: -1; top: -240px; right: -10%; width: 60vw; height: 520px; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 90, 90, .16), rgba(177, 140, 255, .06) 60%, transparent); filter: blur(20px); }
.news-stage__title { font-size: clamp(26px, 3vw, 44px); line-height: 1.05; }
.nc__sub { color: #8E8E97; }
@media (min-width: 900px) { .page--news .news-stage { min-height: calc(100vh - var(--header-h) - var(--s-8)); } }
@media (min-width: 900px) {
  .page--news .news-stage__head { margin-bottom: var(--s-5); }
  .page--news .news-rail { padding-top: var(--s-6); }
  .nc--text .nc__box, .nc--photo .nc__box { min-height: 430px; }
  .nc__media { height: 400px; }
}
.news-stage__title { display: block; }
.news-stage__dot { display: inline-block; vertical-align: .18em; margin-right: var(--s-3); }
.news-rail { padding-top: var(--s-6); }
@media (max-width: 899px) { .nc--feature { order: -1; } }
@media (max-width: 599px) {
  .news-stage__title { font-size: 26px; }
  .news-stage__dot { width: 10px; height: 10px; margin-right: var(--s-2); }
  .news-stage__date { margin-left: 0; }
}

/* Новости, десктоп: карточки одной ширины, на экране три с половиной (как в макете).
   Ширина — от ширины экрана, но не выше, чем позволяет его высота; высота карточки — 1.24 ширины.
   Главная карточка той же высоты, но поднята над соседними на высоту подписи под фото */
@media (min-width: 900px) {
  .news-rail { --nc-w: min(calc((100vw - var(--pad) - 3 * var(--s-5)) / 3.5), calc((100vh - 420px) / 1.24)); }
  .nc, .nc--feature { width: var(--nc-w); }
  .nc--text .nc__box, .nc--photo .nc__box { min-height: 0; height: calc(var(--nc-w) * 1.24); padding: var(--s-6); }
  .nc__media { height: calc(var(--nc-w) * 1.24); }
  .nc--feature .nc__top { inset: var(--s-6) var(--s-6) auto; }
  .nc__title, .nc--feature .nc__title { font-size: clamp(28px, 2.2vw, 40px); }
  .nc__sub { font-size: clamp(20px, 1.6vw, 28px); }
  .nc__text { font-size: 14px; -webkit-line-clamp: 6; }
  .nc__pill { min-height: 34px; padding: 0 var(--s-4); font-size: 12px; }
  .nc__label { font-size: 12px; }
}

/* ===== Выпадающее меню «База знаний»: жидкое стекло, прозрачное, с лёгким коралловым оттенком =====
   Размытие шапки — в ::before, иначе шапка становится «корнем» фона для backdrop-filter
   и стекло меню размывало бы только саму шапку, а не страницу под ним */
@media (min-width: 900px) {
  .header, .page-home .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .page-home .header:not(.is-scrolled)::before, .page-404 .header::before { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .nav__sub {
    top: calc(100% + 8px); min-width: 260px; padding: var(--s-2);
    border-radius: 20px; border: 0; isolation: isolate; overflow: hidden;
    background:
      linear-gradient(150deg, rgba(255, 90, 90, .12) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .02) 100%),
      rgba(18, 18, 22, .22);
    backdrop-filter: blur(18px) saturate(120%); -webkit-backdrop-filter: blur(18px) saturate(120%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .30),
      inset 0 -1px 0 rgba(255, 255, 255, .06),
      inset 0 0 30px rgba(255, 255, 255, .05),
      0 30px 60px rgba(0, 0, 0, .4);
  }
  /* Блик сверху слева — как на изогнутом стекле */
  .nav__sub::before {
    content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background: radial-gradient(120% 70% at 15% -10%, rgba(255, 255, 255, .12), transparent 55%);
  }
  /* Градиентная кромка: светлая сверху, коралловая снизу */
  .nav__sub::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .14));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
  }
  /* Мостик над меню, чтобы оно не закрывалось, пока курсор идёт к нему через зазор */
  .nav__group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }

  .nav__sub:not([hidden]), .nav__group:not(.is-closed):hover .nav__sub { animation: glass-in .35s var(--ease) both; }
  .nav__sub a { position: relative; padding: 10px var(--s-4); border-radius: 12px; color: rgba(245, 245, 247, .82); transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); }
  .nav__sub a:hover, .nav__sub a:focus-visible {
    color: var(--white);
    background: linear-gradient(120deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 0 0 1px rgba(255, 255, 255, .08);
  }
  .nav__sub a:hover::before { content: ""; position: absolute; left: 6px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
  .nav__sub-sep { border-top-color: rgba(255, 255, 255, .14); margin-top: var(--s-2); padding-top: var(--s-2); }
}
@keyframes glass-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav__sub { animation: none !important; } }

/* Новости, десктоп: поднята карточка под курсором или в фокусе, остальные опускаются.
   Верх опущенных карточек выровнен, поднятая сдвигается вверх на --lift (высота подписи главной карточки) */
@media (min-width: 900px) {
  .page--news .news-rail { align-items: flex-start; padding-top: calc(var(--s-6) + var(--lift, 140px)); }
  .nc { transition: transform .7s var(--ease); }
  .nc.is-raised { transform: translateY(calc(-1 * var(--lift, 140px))); }
  .nc--text .nc__box:hover { transform: none; }
  .nc--feature .nc__media { transition: box-shadow .7s var(--ease); }
  .nc:not(.is-raised) .nc__media { box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) { .nc { transition: none; } }


/* ===== Новости: подпись «прыгает» у всех карточек =====
   Телефон и планшет: подпись под фото только у главной карточки, остальные — как есть.
   Десктоп: поднятая карточка показывает заголовок и выдержку под собой, внутри они растворяются;
   у опущенной — наоборот. Смена плавная: старое тает с размытием, новое выплывает следом */
.nc--feature .nc__in, .nc--text .nc__mark { display: none; }
.nc:not(.nc--feature) .nc__caption { display: none; }

@media (min-width: 900px) {
  .page--news .news-rail { overflow-y: hidden; }
  .nc:not(.nc--feature) .nc__caption { display: block; }
  .nc__caption, .nc--feature .nc__caption { position: absolute; left: 0; right: 0; top: calc(100% + var(--s-5)); margin: 0; pointer-events: none; }
  .nc__caption .nc__title { display: inline; font-size: clamp(24px, 1.9vw, 34px); }
  .nc__caption .nc__sub { color: #8E8E97; }

  /* Подпись внутри главной карточки — внизу фото, на затемнении */
  .nc--feature .nc__in { display: grid; gap: var(--s-2); position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6); }
  .nc--feature .nc__in .nc__sub { margin: 0; color: rgba(245, 245, 247, .75); }
  .nc--feature .nc__shade { background: linear-gradient(180deg, rgba(11, 11, 12, .45), rgba(11, 11, 12, 0) 35%, rgba(11, 11, 12, 0) 45%, rgba(11, 11, 12, .88) 100%); transition: opacity .8s var(--ease); }

  /* Звёздочка в пустой текстовой карточке, когда её заголовок ушёл вниз */
  .nc--text .nc__mark { display: grid; place-items: center; position: absolute; inset: 0; pointer-events: none; color: var(--accent); }
  .nc--text .nc__mark .asterisk { width: 34%; height: auto; filter: drop-shadow(0 0 30px rgba(255, 90, 90, .45)); }

  /* Плавная смена: исчезает сразу, появляется с задержкой — сначала одно растворяется, потом другое выплывает */
  .nc__swap, .nc__caption, .nc--text .nc__mark {
    transition: opacity .55s cubic-bezier(.4, 0, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), filter .55s cubic-bezier(.4, 0, .2, 1);
  }
  .nc__swap { opacity: 1; transform: none; filter: none; transition-delay: .32s; }
  .nc.is-raised .nc__swap { opacity: 0; transform: translateY(14px); filter: blur(8px); transition-delay: 0s; }
  .nc__caption { opacity: 0; transform: translateY(-16px); filter: blur(8px); transition-delay: 0s; }
  .nc.is-raised .nc__caption { opacity: 1; transform: none; filter: none; transition-delay: .32s; }
  .nc--text .nc__mark { opacity: 0; transform: scale(.7) rotate(-30deg); filter: blur(6px); transition-delay: 0s; }
  .nc--text.is-raised .nc__mark { opacity: 1; transform: none; filter: none; transition-delay: .32s; }
}
@media (prefers-reduced-motion: reduce) { .nc__swap, .nc__caption, .nc__mark { transition: none !important; } }

/* Живая туманность первого экрана (initNebula в app.js): canvas поверх картинки, под затемнением ::after */
.stage-hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.stage-hero__gl.is-on { opacity: 1; }

/* ===== Курсор-головастик (initCursor в app.js) =====
   Системный курсор скрыт везде, кроме полей ввода; точка не перехватывает клики */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type=button]):not([type=submit]):not([type=file]), .has-cursor textarea, .has-cursor select, .has-cursor [contenteditable="true"] { cursor: text !important; }
.has-cursor select { cursor: pointer !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 2147483647; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor.is-text { opacity: 0; }
.cursor__head {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(255, 255, 255, .28), 0 0 0 1px rgba(0, 0, 0, .12);
  will-change: transform;
}
/* Хвостик — сужающийся назад клин, вырастает со скоростью */
.cursor__tail {
  position: absolute; right: 0; top: 0; width: 60px; height: 14px; transform-origin: 100% 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 45%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, .22));
  opacity: 0; will-change: transform, opacity;
}
.cursor.is-down .cursor__head { background: #d8d8dc; }
@media print { .cursor { display: none; } }

/* Первый экран главной: текст как на остальных экранах — подписи Inter 13px приглушённым цветом
   (как .statement__sub), метки рубрик — Inter Tight, как .tag и пилюли на сайте, заголовок с тем же интерлиньяжем, что .display */
.stage-hero__title { line-height: 1.02; }
.stage-hero__note, .stage-hero__lead p { font-size: 13px; line-height: 1.5; color: var(--muted); }
.stage-hero__lead strong { font-weight: inherit; color: inherit; }
.hero-tag { font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
