/* Атрибут hidden скрывает и элементы со своим display (.cta-block, .btn):
   на нём держится переключение «гость / пришёл из кабинета» в шапке и подвале. */
[hidden] { display: none !important; }

/* ═════════════════════════════════════════════════════════════════════════
   База знаний Liderik. Токены и приёмы — те же, что на liderik.ru (style.css):
   Inter, кобальт, прямые углы, ярлык-«маркер», номер секции фоном, пиксели.
   ═════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --paper: #f3f3f6;
  --ink: #13131b;
  --ink-2: #5a5a66;
  --accent: #2b39ff;
  --accent-hover: #1f2ad9;
  --accent-tint: #e7e9ff;
  --line: #e7e7ec;
  --dark: #15151c;
  --coral: #ff5a36;
  --coral-tint: #ffe6de;

  --tone-a: #e6e9ff;
  --tone-b: #e3f4e8;
  --tone-c: #ffebdf;
  --tone-d: #f0e6ff;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-hover: 150ms;
  --t-block: 300ms;

  --container: 1360px;
  --bar-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.03em; }
h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; text-wrap: balance; }
h3 { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.lead { font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink-2); margin: 0; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Ярлык-маркер ─────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 5px 11px;
  background: var(--tone-a);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  transform: rotate(-0.6deg);
  clip-path: polygon(0% 5%, 31% 0%, 66% 4%, 100% 1%, 100% 95%, 67% 100%, 33% 96%, 0% 99%);
}
.tag-b { background: var(--tone-b); }
.tag-c { background: var(--tone-c); }
.tag-d { background: var(--tone-d); }
.tag-w { background: var(--white); }
.tag-coral { background: var(--coral); color: var(--white); }

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font: 600 16px/1 Inter, system-ui, sans-serif; white-space: nowrap;
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border: 1px solid var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--line); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }

/* ── Шапка ────────────────────────────────────────────────────────────── */
.bar { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 1px solid var(--line); }
.bar-in { position: relative; height: var(--bar-h); display: flex; align-items: stretch; gap: 40px; padding-left: 32px; }
.bar-logo { display: flex; align-items: center; flex-shrink: 0; }
.bar-logo img { height: 32px; width: auto; }
.nav { display: flex; gap: 34px; position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%); white-space: nowrap; }
.nav a { display: flex; align-items: center; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; transition: color var(--t-hover) var(--ease); }
.nav a:hover { color: var(--accent); }
.nav a.is-here { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.bar-right { margin-left: auto; display: flex; align-items: stretch; gap: 28px; }
.bar-right > a:first-child { display: flex; align-items: center; font-size: 16px; font-weight: 500; }
.bar-right > a:first-child:hover { color: var(--accent); }
.cta-block { display: flex; align-items: center; padding: 0 28px; background: var(--accent); color: var(--white); font-size: 16px; font-weight: 600; transition: background-color var(--t-hover) var(--ease); }
.cta-block:hover { background: var(--accent-hover); }

/* ── Пиксели ──────────────────────────────────────────────────────────── */
.pixels { position: absolute; display: grid; grid-template-columns: repeat(4, 34px); gap: 4px; pointer-events: none; }
.pixels i { width: 34px; height: 34px; display: block; }
.pixels .a { background: var(--accent); } .pixels .t { background: var(--accent-tint); }
.pixels .c { background: var(--tone-c); } .pixels .b { background: var(--tone-b); } .pixels .d { background: var(--tone-d); }

/* ── Первый экран ─────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: end; padding: 84px 0 76px; }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-card { background: var(--white); padding: 28px 28px 26px; position: relative; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hero-stats div { padding-right: 16px; }
.hero-stats b { display: block; font-size: 52px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.hero-stats span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.hero-progress { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-progress p { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.hero-progress p span { color: var(--ink-2); }
.meter { height: 6px; background: var(--line); }
.meter i { display: block; height: 100%; background: var(--accent); transition: width var(--t-block) var(--ease); }
.hero .pixels.p1 { right: -4px; top: -4px; }
.hero .pixels.p2 { left: -4px; bottom: -4px; }

/* ── Полоса разделов и поиск ──────────────────────────────────────────── */
.filter { position: sticky; top: var(--bar-h); z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.filter-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 10px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; background: var(--paper); transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.chip:hover { background: var(--line); }
.chip.is-on { background: var(--ink); color: var(--white); }
.chip small { font-size: 12.5px; opacity: .6; font-weight: 600; }
.search { position: relative; flex: none; width: 300px; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border: 0; background: var(--paper); font: 500 15px/1 Inter, system-ui, sans-serif; color: var(--ink); border-radius: 0; }
.search input::placeholder { color: var(--ink-2); }
.search svg { position: absolute; left: 13px; top: 12px; width: 16px; height: 16px; color: var(--ink-2); }

/* ── Секция раздела ───────────────────────────────────────────────────── */
.sec { padding: 84px 0 32px; scroll-margin-top: calc(var(--bar-h) + 64px); }
.sec:last-of-type { padding-bottom: 104px; }
.head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: end; margin-bottom: 36px; }
.head .ghost { font-size: 118px; font-weight: 300; line-height: .82; letter-spacing: -0.04em; color: var(--accent-tint); user-select: none; }
.head-text .tag { margin-bottom: 14px; }
.head-text .lead { margin-top: 12px; max-width: 40em; font-size: 18px; }
.sec-coral .head .ghost { color: var(--coral-tint); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--paper); transition: background-color var(--t-hover) var(--ease); }
.card:hover { background: var(--line); }
.card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-block) var(--ease); }
.card:hover .card-cover img { transform: scale(1.03); }
.card-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--accent); color: var(--white); display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: opacity var(--t-hover) var(--ease), transform var(--t-hover) var(--ease); }
.card-play svg { width: 26px; height: 26px; }
.card:hover .card-play, .card:focus-visible .card-play { opacity: 1; transform: none; }
.card.is-coral .card-play { background: var(--ink); }
.card-dur { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; background: rgba(19, 19, 27, .86); color: var(--white); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-done { position: absolute; right: 12px; top: 12px; padding: 4px 9px 4px 7px; background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 600; display: none; align-items: center; gap: 5px; }
.card-done svg { width: 13px; height: 13px; }
.card.is-done .card-done { display: inline-flex; }
.card-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .35); display: none; }
.card-bar i { display: block; height: 100%; background: var(--accent); }
.card.is-started .card-bar { display: block; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-n { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.sec-coral .card-n, .card.is-coral .card-n { color: var(--coral); }
.card-body p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.card-hit { margin-top: 4px; font-size: 14px; color: var(--ink); }
.card-hit b { font-weight: 600; background: var(--tone-c); }

/* Раздел из одного ролика — широкая карточка с главами; из двух и четырёх — без пустых ячеек */
.grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.grid[data-n="1"] .card { flex-direction: row; }
.grid[data-n="1"] .card-cover { flex: 0 0 56%; }
.grid[data-n="1"] .card-body { padding: 34px 40px; justify-content: center; gap: 12px; }
.grid[data-n="1"] .card-body h3 { font-size: 34px; font-weight: 400; letter-spacing: -0.03em; }
.grid[data-n="1"] .card-body p { font-size: 17px; }
.card-chapters { list-style: none; margin: 10px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(19, 19, 27, .12); display: grid; gap: 6px; font-size: 15px; }
.card-chapters li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.card-chapters time { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.card.is-coral .card-chapters time { color: var(--coral); }

.empty { padding: 64px 0 120px; text-align: center; }
.empty h2 { font-size: 32px; }
.empty p { margin: 14px auto 26px; color: var(--ink-2); max-width: 30em; }

/* ── Страница ролика ──────────────────────────────────────────────────── */
.watch { background: var(--paper); padding: 26px 0 0; --pl: var(--accent); --pl-hover: var(--accent-hover); --pl-tint: var(--accent-tint); }
.watch.is-coral { --pl: var(--coral); --pl-hover: #e84a28; --pl-tint: var(--coral-tint); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs b { font-weight: 500; color: var(--ink); }
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 20px; align-items: start; }
.watch-main { min-width: 0; }

/* Плеер */
.player { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; outline: none; user-select: none; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.pl-poster { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity var(--t-block) var(--ease); }
.player.is-started .pl-poster { opacity: 0; pointer-events: none; }
.pl-big { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--pl); color: var(--white); display: grid; place-items: center; transition: transform var(--t-hover) var(--ease), background-color var(--t-hover) var(--ease), opacity var(--t-hover) var(--ease); }
.pl-big svg { width: 34px; height: 34px; }
.pl-big:hover { background: var(--pl-hover); transform: scale(1.04); }
.player.is-playing .pl-big, .player.is-ended .pl-big { opacity: 0; pointer-events: none; }
.pl-flash { position: absolute; left: 50%; top: 50%; padding: 10px 16px; transform: translate(-50%, -50%); background: rgba(19, 19, 27, .82); color: var(--white); font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-flash.is-on { opacity: 1; }
.pl-chapter { position: absolute; left: 20px; top: 20px; max-width: calc(100% - 40px); padding: 8px 14px 8px 12px; background: var(--white); color: var(--ink); border-left: 6px solid var(--pl); font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(-6px); transition: opacity var(--t-block) var(--ease), transform var(--t-block) var(--ease); pointer-events: none; }
.player.show-ui.is-started .pl-chapter:not(:empty) { opacity: 1; transform: none; }
.pl-captions { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); max-width: 82%; text-align: center; pointer-events: none; transition: bottom var(--t-block) var(--ease); }
.pl-captions span { display: inline; padding: 4px 10px; background: rgba(19, 19, 27, .86); color: var(--white); font-size: clamp(15px, 1.7vw, 22px); line-height: 1.5; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.player:not(.show-ui) .pl-captions { bottom: 28px; }

.pl-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 10px; background: linear-gradient(to top, rgba(10, 10, 16, .82), rgba(10, 10, 16, 0)); color: var(--white); opacity: 0; transition: opacity var(--t-block) var(--ease); }
.player.show-ui .pl-controls, .player:not(.is-playing) .pl-controls { opacity: 1; }
.player:not(.show-ui).is-playing { cursor: none; }
.player:not(.is-started) .pl-controls { opacity: 0; pointer-events: none; }

.pl-seek { position: relative; height: 22px; cursor: pointer; touch-action: none; }
.pl-track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: rgba(255, 255, 255, .28); transition: height var(--t-hover) var(--ease), top var(--t-hover) var(--ease); }
.pl-seek:hover .pl-track, .pl-seek.is-drag .pl-track { height: 8px; top: 7px; }
.pl-buf, .pl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.pl-buf { background: rgba(255, 255, 255, .28); }
.pl-fill { background: var(--pl); }
.pl-ticks i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: rgba(10, 10, 16, .9); }
.pl-thumb { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; background: var(--white); opacity: 0; transition: opacity var(--t-hover) var(--ease); }
.pl-seek:hover .pl-thumb, .pl-seek.is-drag .pl-thumb { opacity: 1; }
.pl-tip { position: absolute; bottom: 26px; transform: translateX(-50%); padding: 6px 10px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-hover) var(--ease); font-variant-numeric: tabular-nums; }
.pl-tip small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.pl-seek:hover .pl-tip, .pl-seek.is-drag .pl-tip { opacity: 1; }

.pl-row { display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.pl-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--white); flex: none; transition: background-color var(--t-hover) var(--ease); }
.pl-btn:hover { background: rgba(255, 255, 255, .16); }
.pl-btn svg { width: 22px; height: 22px; }
.pl-btn[disabled] { opacity: .35; pointer-events: none; }
.pl-btn.is-on { box-shadow: inset 0 -3px 0 var(--pl); }
.pl-time { padding: 0 10px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-time span { opacity: .65; }
.pl-vol { display: flex; align-items: center; }
.pl-vol input { width: 0; opacity: 0; transition: width var(--t-block) var(--ease), opacity var(--t-block) var(--ease); accent-color: var(--white); height: 4px; margin: 0; }
.pl-vol:hover input, .pl-vol input:focus-visible { width: 76px; opacity: 1; margin-right: 8px; }
.pl-gap { flex: 1; }
.pl-speed { width: auto; min-width: 54px; padding: 0 10px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-menu { position: absolute; right: 14px; bottom: 62px; min-width: 150px; background: var(--white); color: var(--ink); padding: 6px 0; display: none; }
.pl-menu.is-open { display: block; }
.pl-menu button { display: flex; width: 100%; justify-content: space-between; gap: 18px; padding: 9px 16px; font-size: 14.5px; font-weight: 500; text-align: left; }
.pl-menu button:hover { background: var(--paper); }
.pl-menu button.is-on { color: var(--pl); font-weight: 600; }

/* Экран «дальше»: одна белая карточка — обложка слева, текст и кнопки справа.
   Размеры внутри заданы в em, а кегль карточки привязан к ширине плеера (cqw): карточка
   уменьшается целиком, как картинка, поэтому обложка не обрезается и кнопки не переносятся. */
.player { container-type: inline-size; }
.pl-next { position: absolute; inset: 0; background: #0e0e14; display: none; align-items: center; justify-content: center; padding: 16px 16px 76px; }
.player.is-ended .pl-next { display: flex; }
.player.is-ended .pl-controls { background: none; }
.pl-next-in { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: stretch; width: min(780px, 100%); font-size: 16px; background: var(--white); color: var(--ink); }
@supports (width: 1cqw) {
  .pl-next-in { width: min(780px, 92cqw); font-size: min(16px, 1.887cqw); }
}
.pl-next-cover { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.pl-next-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-next-cover i { position: absolute; left: 0; bottom: 0; height: .375em; background: var(--pl); width: 0; }
.pl-next-text { display: flex; flex-direction: column; justify-content: center; padding: 1.25em 1.75em; min-width: 0; }
.pl-next small { font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pl-next small b { color: var(--ink); }
.pl-next h3 { margin: .33em 0 .7em; font-size: 1.5em; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.pl-next-actions { display: flex; gap: .5em; }
.pl-next .btn { height: 2.85em; padding: 0 1.1em; gap: .6em; font-size: .92em; white-space: nowrap; }
.pl-next .btn svg { width: 1.1em; height: 1.1em; }
.pl-next .btn-primary { background: var(--pl); }
.pl-next .btn-primary:hover { background: var(--pl-hover); }
.pl-next .btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.pl-next .btn-ghost:hover { background: var(--line); }
.pl-next-solo { grid-column: 1 / -1; padding: 2.4em 2em; text-align: center; }
.pl-next-solo .pl-next-actions { justify-content: center; }
/* Узкий плеер (телефон): обложка не помещается — остаётся карточка с текстом и кнопками */
@container (max-width: 700px) {
  .pl-next { padding: 8px 12px 58px; }
  .pl-next-in { grid-template-columns: minmax(0, 1fr); width: min(400px, 100%); font-size: 14px; }
  .pl-next-cover { display: none; }
  .pl-next-text, .pl-next-solo { padding: .9em 1.15em 1em; }
  .pl-next h3 { font-size: 1.3em; margin: .25em 0 .6em; }
  .pl-next .btn { height: 2.6em; font-size: 1em; padding: 0 .9em; }
}

/* Под плеером */
/* Шапка ролика: сверху — ярлык раздела, номер, название и описание; снизу, в той же карточке,
   полоса «где это в кабинете» с обеими кнопками */
.watch-head { background: var(--white); margin-top: 20px; }
.wh-top { padding: 26px 32px 28px; }
.wh-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.meta span + span::before { content: "·"; margin: 0 9px; opacity: .6; }
.meta b { font-weight: 600; color: var(--ink); }
.watch-head h1 { font-size: clamp(30px, 3.2vw, 46px); margin-top: 16px; }
.watch-head .lead { margin-top: 12px; font-size: 18.5px; max-width: 40em; }
.wh-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 32px 20px; border-top: 1px solid var(--line); }
.wh-where { min-width: 0; }
.wh-where small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.wh-where p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 5px 0 0; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink-2); }
.wh-where p b { font-weight: 600; color: var(--ink); }
.wh-where p i { font-style: normal; color: var(--pl); }
.wh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-actions .btn-primary { background: var(--pl); }
.wh-actions .btn-primary:hover { background: var(--pl-hover); }
#copy-link { min-width: 214px; }

.watch-cols { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; margin-top: 20px; }
.panel { background: var(--white); padding: 28px 32px 30px; }
.panel h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 16px; }
.chapters { list-style: none; margin: 0 -12px; padding: 0; }
.chapters button { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; width: 100%; padding: 10px 12px; text-align: left; font-size: 16px; line-height: 1.35; transition: background-color var(--t-hover) var(--ease); }
.chapters button:hover { background: var(--paper); }
.chapters time { font-weight: 600; color: var(--pl); font-variant-numeric: tabular-nums; }
.chapters li.is-on button { background: var(--pl-tint); font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 0 16px 46px; counter-increment: s; font-size: 16.5px; line-height: 1.5; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font-size: 15px; font-weight: 600; color: var(--pl); font-variant-numeric: tabular-nums; }
.steps li:last-child { padding-bottom: 0; }
.tips { margin-top: 22px; padding: 18px 20px; background: var(--tone-c); }
.tips h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.tips p { margin: 0; font-size: 15.5px; line-height: 1.45; }
.tips p + p { margin-top: 8px; }
.keys { margin-top: 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.keys kbd { display: inline-block; min-width: 22px; padding: 0 6px; margin: 0 2px; background: var(--paper); border: 1px solid var(--line); font: 600 12px/20px Inter, system-ui, sans-serif; color: var(--ink); text-align: center; }

.transcript { margin-top: 20px; padding: 0; }
.transcript summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 32px; cursor: pointer; list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary h2 { margin: 0; }
.transcript summary span { font-size: 14.5px; font-weight: 600; color: var(--pl); }
.transcript[open] summary span { visibility: hidden; }
.transcript ol { list-style: none; margin: 0; padding: 0 20px 24px; columns: 2; column-gap: 20px; }
.transcript li { break-inside: avoid; }
.transcript button { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; width: 100%; padding: 7px 12px; text-align: left; font-size: 15.5px; line-height: 1.4; transition: background-color var(--t-hover) var(--ease); }
.transcript button:hover { background: var(--paper); }
.transcript time { font-size: 14px; font-weight: 600; color: var(--pl); font-variant-numeric: tabular-nums; padding-top: 1px; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 0; }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; background: var(--white); min-height: 104px; transition: background-color var(--t-hover) var(--ease); }
.pn:hover { background: var(--line); }
.pn small { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.pn b { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.pn.is-next { text-align: right; background: var(--ink); color: var(--white); }
.pn.is-next small { color: rgba(255, 255, 255, .6); }
.pn.is-next:hover { background: #24242e; }
.pn.is-empty { visibility: hidden; }
.watch-end { height: 84px; }

/* Плейлист */
.playlist { position: sticky; top: calc(var(--bar-h) + 16px); background: var(--white); display: flex; flex-direction: column; max-height: calc(100vh - var(--bar-h) - 32px); }
.pls-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.pls-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 18px; letter-spacing: -0.01em; }
.pls-title b { font-weight: 600; }
.pls-title span { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pls-item.is-coral { --pl: var(--coral); --pl-tint: var(--coral-tint); }
.grid + .grid { margin-top: 20px; }
.pls-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); }
.pls-tabs button { height: 38px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.pls-tabs button.is-on { background: var(--ink); color: var(--white); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 40px; height: 22px; background: var(--line); position: relative; flex: none; transition: background-color var(--t-hover) var(--ease); }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: var(--white); transition: transform var(--t-hover) var(--ease); }
.switch input:checked + i { background: var(--pl); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.pls-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; }
.pls-group { padding: 14px 20px 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pls-item a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px 20px; align-items: center; transition: background-color var(--t-hover) var(--ease); }
.pls-item a:hover { background: var(--paper); }
.pls-item.is-on a { background: var(--pl-tint); box-shadow: inset 4px 0 0 var(--pl); }
.pls-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.pls-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pls-thumb span { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; background: rgba(19, 19, 27, .86); color: var(--white); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pls-thumb i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--pl); }
.pls-text b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.pls-text small { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.pls-text small svg { width: 13px; height: 13px; color: var(--pl); }
.pls-item.is-on .pls-text small { color: var(--ink); font-weight: 600; }

/* ── Подвал ───────────────────────────────────────────────────────────── */
.foot { background: var(--dark); color: var(--white); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .6fr)); gap: 40px; padding: 84px 0 64px; }
.foot-logo img { height: 34px; width: auto; }
.foot-in p { margin: 22px 0 28px; max-width: 26em; font-size: 18px; color: rgba(255, 255, 255, .72); }
.foot-col h4 { margin: 8px 0 22px; font-size: 16px; font-weight: 600; }
.foot-col a { display: block; margin-bottom: 14px; font-size: 16px; color: rgba(255, 255, 255, .72); transition: color var(--t-hover) var(--ease); }
.foot-col a:hover { color: var(--white); }
.foot-low { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 26px 0 40px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15.5px; color: rgba(255, 255, 255, .6); }
.foot-low a:hover { color: var(--white); }

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .grid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .playlist { position: static; max-height: none; }
  .pls-list { max-height: 440px; }
  .nav { gap: 22px; }
}
@media (max-width: 980px) {
  .nav, .bar-right > a:first-child { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 56px 0 56px; align-items: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid[data-n="1"] .card-cover { flex-basis: 50%; }
  .grid[data-n="1"] .card-body { padding: 24px 26px; }
  .card-chapters { display: none; }
  .search { width: 220px; }
  .watch-cols { grid-template-columns: minmax(0, 1fr); }
  .transcript ol { columns: 1; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .bar-in { padding-left: 16px; gap: 12px; }
  .bar-logo img { height: 24px; }
  .cta-block { padding: 0 18px; font-size: 15px; }
  .hero .pixels { display: none; }
  .hero-stats b { font-size: 40px; }
  .filter-in { flex-direction: column-reverse; align-items: stretch; gap: 0; padding-top: 10px; }
  .search { width: auto; }
  .sec { padding: 56px 0 20px; }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head .ghost { font-size: 84px; margin-bottom: 6px; }
  .grid, .grid[data-n="2"], .grid[data-n="4"] { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .grid[data-n="1"] .card { flex-direction: column; }
  .grid[data-n="1"] .card-body { padding: 20px 22px 24px; }
  .grid[data-n="1"] .card-body h3 { font-size: 26px; }
  .watch { padding-top: 14px; }
  .watch .wrap { padding: 0; }
  .crumbs { padding: 0 16px; }
  .watch-head { margin-top: 0; }
  .wh-top { padding: 20px 16px 22px; }
  .wh-foot { padding: 16px 16px 18px; }
  .wh-actions { width: 100%; }
  .wh-actions .btn { flex: 1 1 auto; }
  #copy-link { min-width: 0; }
  .panel { padding: 22px 16px 24px; }
  .watch-cols, .prevnext { gap: 12px; margin-top: 12px; }
  .keys { display: none; }
  .transcript { margin-top: 12px; }
  .transcript summary { padding: 20px 16px; }
  .transcript ol { columns: 1; padding: 0 4px 16px; }
  .prevnext { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .pn.is-empty { display: none; }
  .watch-grid { gap: 12px; }
  .pl-controls { padding: 28px 6px 4px; }
  .pl-btn { width: 40px; height: 40px; }
  .pl-btn.pl-hide-sm, .pl-vol input { display: none; }
  .pl-big { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .pl-chapter { left: 10px; top: 10px; font-size: 13px; padding: 6px 10px; }
  .pl-captions { bottom: 64px; max-width: 94%; }
  .foot-in { grid-template-columns: minmax(0, 1fr); padding: 56px 0 40px; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
