/* Spectrum Edu — витрина. Светлая эстетика: серый фон, большая панель со скруглением,
   маленькие белые плашки с данными, крупный заголовок с картинкой-капсулой в строке, синий акцент. */

@font-face { font-family: "Golos"; src: url("./fonts/golos-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos"; src: url("./fonts/golos-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos"; src: url("./fonts/golos-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Golos"; src: url("./fonts/golos-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #e6e9ed;
  --panel: #f3f4f6;
  --card: #ffffff;
  --card-2: #f7f8fa;
  --ink: #1d1f23;
  --ink-2: #555b63;
  --ink-3: #666c74;
  --line: #e3e6ea;
  --line-2: #d5d9de;
  --blue: #1f6bff;
  --blue-2: #1557d6;
  --blue-soft: #e8efff;
  --orbit: #7ea6f2;
  --red: #ef5a52;
  --red-soft: #fde8e7;
  --red-ink: #c2362e;
  --green: #237a47;
  --green-soft: #e3f4ea;
  --mark: #d9e6ff;
  --focus: #1f6bff;
  --radius-xl: 32px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px rgba(16, 24, 40, .06);
  --shadow-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 30px rgba(16, 24, 40, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Golos", "Segoe UI", Arial, sans-serif;
  --wrap: 1360px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
main { outline: none; min-height: 60vh; }
main:focus-visible, h1:focus-visible { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; }

/* ── Панель и шапка ───────────────────────────────────── */
.shell { width: min(var(--wrap), 100% - 32px); margin: 16px auto 0; padding: 0 40px 48px; border-radius: var(--radius-xl); background: var(--panel); box-shadow: 0 1px 2px rgba(16, 24, 40, .03), 0 24px 60px rgba(16, 24, 40, .07); }
.top { position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding: 18px 0 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 40px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-name b { font-weight: 600; color: var(--blue); margin-left: 2px; }

.search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; }
.search-icon { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 40px 0 40px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--card); outline: none; font-size: 14px; }
.search input::placeholder { color: #8a9098; }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus-visible, .hsearch input:focus-visible, .field-inline input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-clear { position: absolute; right: 4px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); }
.search-clear:hover { color: var(--ink); background: var(--card-2); }
html[data-route="home"] #search-form { display: none; }

.top-nav { flex-basis: 100%; }
.top-end { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.top-end .util { background: var(--card); box-shadow: var(--shadow); color: var(--ink-2); }
.top-end .util:hover { background: var(--card); color: var(--ink); }
.top-end .util[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.top-end .burger { display: none; background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.burger:hover { background: var(--card); }
.player-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s var(--ease); }
.player-link:hover, .player-link[aria-current="page"] { background: var(--blue-2); }
.player-link .ico { width: 18px; height: 18px; }
.lang { display: flex; padding: 0; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.lang button { min-width: 40px; min-height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.lang button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }

/* ── Общие элементы ───────────────────────────────────── */
.display { margin: 0; font-weight: 500; font-size: clamp(38px, 4.8vw, 70px); line-height: 1.06; letter-spacing: -.035em; }
.display .line { display: flex; align-items: center; gap: .28em; flex-wrap: wrap; }
.pill { position: relative; display: inline-block; width: 2.3em; height: .9em; flex: none; }
.pill img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 999px; box-shadow: 0 6px 16px rgba(31, 107, 255, .25); }
.pill-dot { position: absolute; left: -.28em; top: .1em; width: .78em; height: .78em; border-radius: 50%; background: var(--blue); opacity: .55; }
.label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.label i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.tile b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.tile small { color: var(--ink-3); font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--subject, var(--blue)); flex: none; }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 8px 20px rgba(31, 107, 255, .28); transition: background .15s var(--ease); }
.btn-pill:hover { background: var(--blue-2); }
button.btn-pill { border: 0; }
.btn-pill .ico, .btn .ico { width: 18px; height: 18px; }
.round-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; flex: none; box-shadow: 0 8px 20px rgba(31, 107, 255, .28); }
.round-btn:hover { background: var(--blue-2); }

/* ── Главная ──────────────────────────────────────────── */
.home { position: relative; display: grid; grid-template-columns: minmax(470px, 1fr) minmax(0, 1fr) 270px; gap: 24px; padding-top: 12px; min-height: 640px; }
.home-left { position: relative; z-index: 2; display: grid; align-content: start; gap: 26px; }
.home .display { font-size: clamp(40px, 3.9vw, 56px); }
.home-lead { margin: -12px 0 0; max-width: 30em; color: var(--ink-2); font-size: 16px; }
.hsearch { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; max-width: 520px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.hsearch input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; outline: none; font-size: 15px; }
.hsearch input::placeholder { color: #8a9098; }
.hsearch input::-webkit-search-cancel-button { display: none; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--ink-3); font-size: 13px; }
.examples button { min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 13px; transition: border-color .15s var(--ease), color .15s var(--ease); }
.examples button:hover { border-color: var(--blue); color: var(--blue); }

.grade-tiles { gap: 5px; flex-wrap: nowrap; }
.grade-tile { position: relative; width: 38px; min-height: 60px; padding: 8px 0 9px; border-radius: 12px; justify-items: center; align-content: start; }
.grade-tile b { font-size: 18px; }
.grade-tile.is-soon { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.grade-tile.is-soon b { color: #8f959c; }
.gdots { display: flex; gap: 2px; margin-top: 3px; }
.gdots i { width: 5px; height: 5px; border-radius: 50%; }
.course-tiles li { width: calc(50% - 5px); }
.course-tiles .tile { height: 100%; min-height: 104px; align-content: space-between; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-top small { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--subject) 14%, #fff); color: var(--subject); }
.badge .ico { width: 16px; height: 16px; }
.course-tile b { font-size: 30px; }
.course-tile b em { margin-left: 6px; font-style: normal; font-size: 13px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }

.home-hero { position: relative; margin: 0; display: grid; place-items: center; align-self: center; min-height: 560px; }
.orbit { position: absolute; left: 50%; top: 50%; width: min(108%, 560px); aspect-ratio: 1; transform: translate(-50%, -50%); overflow: visible; }
.orbit circle { fill: none; stroke: var(--orbit); stroke-width: 1; vector-effect: non-scaling-stroke; }
.slides { position: relative; width: 100%; height: 100%; min-height: 520px; display: grid; place-items: center; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.94) translateY(12px); transition: opacity .6s var(--ease), transform .8s var(--ease); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-object { position: relative; width: 112%; max-width: 640px; margin-left: -14%; filter: drop-shadow(0 30px 40px rgba(29, 31, 35, .18)); }
.slide.is-tall .hero-object { width: auto; height: 430px; max-height: 84%; margin-left: -8%; }
.slide.is-tall .hero-object img { width: auto; height: 100%; }
/* Круглый предмет (Земля) стоит точно в центре окружности и чуть меньше её. */
.slide.is-round .hero-object { margin-left: 0; height: auto; width: min(90%, 468px); max-height: none; aspect-ratio: 1; }
.slide.is-round .hero-object img { width: 100%; height: 100%; }
.hero-object img { width: 100%; height: auto; }
.hotspot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, .35); box-shadow: 0 2px 10px rgba(16, 24, 40, .15); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: pulse 2.8s var(--ease) infinite; }
.hotspot::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); transition: transform .2s var(--ease); }
.hotspot:hover::after, .hotspot:focus-visible::after { transform: scale(1.25); }
.hs-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); padding: 6px 10px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.hotspot:hover .hs-tip, .hotspot:focus-visible .hs-tip { opacity: 1; transform: translateX(-50%); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55), 0 2px 10px rgba(16, 24, 40, .15); } 60% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0), 0 2px 10px rgba(16, 24, 40, .15); } }
.hero-cap { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 22px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--shadow); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.hero-nav { display: flex; align-items: center; gap: 2px; }
.hn-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.hn-btn:hover { background: var(--card-2); color: var(--ink); }
.hn-btn .ico { width: 16px; height: 16px; }
.hero-dots { display: flex; gap: 4px; padding: 0 4px; }
.hdot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; }
.hdot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); transition: width .25s var(--ease), background .25s var(--ease); }
.hdot[aria-current="true"]::before { width: 20px; background: var(--blue); }

.home-right { position: relative; z-index: 2; display: grid; align-content: start; gap: 12px; padding-top: 8px; }
.home-right .label { margin: 8px 0 0; }
.rcard { display: grid; gap: 8px; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.rrow { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--card-2); text-decoration: none; transition: background .15s var(--ease); }
a.rrow:hover { background: var(--blue-soft); }
.rrow small { display: block; color: var(--ink-3); font-size: 11px; }
.rrow b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; }
.avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.rrow.tag { grid-template-columns: 1fr auto; padding: 8px 10px 8px 14px; font-size: 13px; font-weight: 500; }
.ring { width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); box-shadow: inset 0 0 0 5px var(--red-soft), inset 0 0 0 7px var(--red); }
.rcard.list .btn-pill { margin-top: 4px; }

.strip { margin-top: 36px; }
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.strip-head .label { margin: 0 0 12px; }
.strip-head a { color: var(--blue); font-size: 14px; font-weight: 500; text-decoration: none; }
.strip-head a:hover { text-decoration: underline; }

/* ── Страницы ─────────────────────────────────────────── */
.page { padding: 8px 0 24px; }
.page-head { margin-bottom: 26px; }
.page-head .display { font-size: clamp(34px, 4vw, 56px); }
.page-head .lead { margin: 12px 0 0; max-width: 640px; color: var(--ink-2); font-size: 17px; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.section-head h2 a { text-decoration: none; }
.section-head h2 a:hover { color: var(--blue); }
.section-head > a { color: var(--blue); font-weight: 500; text-decoration: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding: 0; list-style: none; color: var(--ink-3); font-size: 13px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

.courses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.course { position: relative; display: grid; gap: 4px; min-height: 140px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.course:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.course h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.course h3 a { text-decoration: none; }
.course h3 a::after { content: ""; position: absolute; inset: 0; }
.course .grade-tag { margin: 0; color: var(--ink-3); font-size: 13px; }
.course .stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; color: var(--ink-2); font-size: 13px; }
.course .ticks { display: flex; gap: 3px; margin-top: 10px; }
.course .ticks i { flex: 1; height: 4px; border-radius: 2px; background: var(--subject); }

.course-banner { padding: 4px 0 26px; }
.course-banner .display { font-size: clamp(36px, 4.4vw, 62px); }
.stat-tiles { margin-top: 22px; }
.stat-tiles .tile { min-width: 130px; }
.course-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.course-tools h2 { margin: 0; font-size: 20px; font-weight: 500; }
.field-inline { position: relative; width: min(340px, 100%); }
.field-inline input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--card); outline: none; font-size: 14px; }
.field-inline svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; }

.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lesson { display: grid; grid-template-columns: 64px 1fr 256px; grid-template-areas: "num body side" ". chips side"; column-gap: 18px; row-gap: 10px; align-items: start; padding: 16px 16px 16px 12px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease); }
.lesson:hover { box-shadow: var(--shadow-hover); }
.lesson-num { grid-area: num; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--subject) 12%, #fff); color: var(--subject); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lesson-body { grid-area: body; min-width: 0; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-3); font-size: 12px; }
.lesson h3 { margin: 2px 0 4px; font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.lesson h3 a { text-decoration: none; }
.lesson h3 a:hover { color: var(--blue); }
.lesson-summary { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson-3d { grid-area: chips; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 16px; background: var(--card-2); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; }
a.chip:hover { background: var(--blue-soft); color: var(--blue); }
.chip .ico { width: 16px; height: 16px; color: var(--blue); }
.chip.more { color: var(--ink-2); }
.soon-note { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--ink-3); font-size: 12px; }
.soon-note .ico { width: 15px; height: 15px; }
.lesson-side { grid-area: side; display: grid; gap: 8px; min-width: 0; }
.lesson-thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.lesson-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lesson-actions { display: flex; gap: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 0; background: var(--card-2); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s var(--ease); }
.btn:hover { background: var(--line); }
.btn-primary { flex: 1; min-width: 0; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-brass { background: var(--blue); color: #fff; }
.btn-brass:hover { background: var(--blue-2); }
.btn-ghost { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn:disabled { cursor: not-allowed; opacity: .7; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--card-2); color: var(--ink-2); flex: none; }
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); }
.icon-btn[aria-pressed="true"] .ico { fill: currentColor; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-art { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--subject) 10%, var(--card-2)); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art img, .lesson-thumb img, .hit-art img, .avatar img { opacity: 0; transition: opacity .35s var(--ease); }
.card-art img.is-loaded, .lesson-thumb img.is-loaded, .hit-art img.is-loaded, .avatar img.is-loaded { opacity: 1; }
.card-kind { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; font-weight: 600; }
.card-kind .ico { width: 14px; height: 14px; color: var(--blue); }
.card-actions { position: absolute; right: 8px; top: 8px; z-index: 2; display: flex; gap: 6px; }
.card-actions .icon-btn { background: rgba(255, 255, 255, .92); }
.card-actions .icon-btn:hover { background: #fff; color: var(--ink); }
.card-actions .icon-btn[aria-pressed="true"], .icon-btn.coll.is-on { background: var(--blue-soft); color: var(--blue); }
.card-body { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; padding: 10px 6px 4px; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card p { align-self: start; margin: 0; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; color: var(--ink-3); font-size: 12px; }

.group { margin-top: 32px; }
.group:first-of-type { margin-top: 0; }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.group-head h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.group-head .count { color: var(--ink-3); font-size: 14px; }

/* Поиск */
.results-head { margin-bottom: 20px; }
.results-head h1 { margin: 0 0 6px; font-weight: 500; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.understood { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.understood .chip { background: var(--blue-soft); color: var(--blue); }
.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hit { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease); }
.hit:hover { box-shadow: var(--shadow-hover); }
.hit-art { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--card-2); }
.hit-art img { width: 100%; height: 100%; object-fit: cover; }
.hit h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 600; }
.hit h3 a { text-decoration: none; }
.hit h3 a::after { content: ""; position: absolute; inset: 0; }
.hit-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink-3); font-size: 12px; }
.hit-meta a { text-decoration: none; }
.hit-meta a:hover { color: var(--blue); }
.hit-course { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 24px; }
.hit-snippet { max-width: 75ch; margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.hit-snippet small { color: var(--ink-3); margin-right: 4px; }
.hit-top { grid-template-columns: 300px 1fr; padding: 14px; }
.hit-top h3 { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.hit-open { position: relative; z-index: 2; flex: none; margin: 10px 0 4px; }
mark { background: var(--mark); color: inherit; border-radius: 4px; padding: 0 2px; }

.empty { padding: 44px 24px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: center; }
.empty h2 { margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.empty p { max-width: 560px; margin: 0 auto; color: var(--ink-2); }
.empty-left { text-align: left; display: grid; justify-items: start; gap: 8px; padding: 28px; }
.empty-left p { margin: 0 0 8px; }
.empty-ico { width: 32px; height: 32px; color: var(--blue); }

/* Страница Spectrum 3D */
.player { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: 8px 0; }
.player h1 { margin: 0 0 12px; font-weight: 500; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.06; letter-spacing: -.035em; }
.player p { color: var(--ink-2); }
.player ul { margin: 18px 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; }
.player li { display: flex; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; }
.player li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.player .note { color: var(--ink-3); font-size: 13px; }
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.player-shot { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-hover); }

.foot { width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 20px 8px 28px; color: var(--ink-3); font-size: 13px; }

/* ── Главное меню с панелями (как Mozaik, в светлом стиле) ─ */
.menubar { list-style: none; margin: 0; padding: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.mm-item { position: relative; }
.mm-trigger, .mm-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s var(--ease), background .15s var(--ease); }
.mm-trigger:hover, .mm-link:hover { color: var(--ink); background: var(--card-2); }
.mm-link[aria-current="page"], .mm-trigger[data-current="true"] { color: var(--blue); }
.mm-trigger[aria-expanded="true"] { color: var(--blue); background: var(--blue-soft); }
.chev { width: 16px; height: 16px; transition: transform .2s var(--ease); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.nav-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

.mega { position: absolute; top: calc(100% + 12px); left: 0; z-index: 40; padding: 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-hover), 0 0 0 1px var(--line); animation: pop-in .18s var(--ease); }
.mega.is-end { left: auto; right: 0; }
.mega-groups { display: grid; grid-template-columns: repeat(var(--cols, 1), 256px); gap: 8px 18px; }
.mega-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-group .label { margin: 2px 0 8px 10px; }
.mega-link { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 5px 10px 5px 5px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background .15s var(--ease); }
.mega-link:hover { background: var(--card-2); }
.mega-link[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.mega-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.mega-link[aria-current="page"] .mega-ico { background: var(--card); }
.mega-ico .ico { width: 18px; height: 18px; }
.mega-text b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mega-text small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.35; }
.mega-tag { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.mega-tag.is-soon { padding: 2px 8px; border-radius: 10px; background: var(--card-2); font-weight: 500; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Правый rail быстрых разделов (ПК) */
.rail { display: none; }
@media (min-width: 1280px) {
  body { padding-right: 76px; }
  .rail { display: block; position: fixed; right: 16px; top: 50%; z-index: 30; transform: translateY(-50%); padding: 6px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow-hover); }
}
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink-2); text-decoration: none; transition: background .15s var(--ease), color .15s var(--ease); }
.rail-link:hover { background: var(--card-2); color: var(--ink); }
.rail-link[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.rail-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(4px, -50%); padding: 6px 12px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow-hover); color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.rail-link:hover .rail-tip, .rail-link:focus-visible .rail-tip { opacity: 1; transform: translate(0, -50%); }
.rail-count { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; }

/* Полноэкранный лист меню (телефон, планшет) */
html.no-scroll { overflow: hidden; }
.sheet { position: fixed; inset: 0; z-index: 90; overflow-y: auto; overscroll-behavior: contain; background: var(--panel); animation: sheet-in .22s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.sheet-title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.sheet-close { background: var(--card); box-shadow: var(--shadow); }
.sheet-body { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; padding: 14px 16px 36px; }
.sheet-list, .sheet-foot { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.sheet-toggle, .sheet-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font-size: 17px; font-weight: 500; text-align: left; text-decoration: none; }
.sheet-toggle:hover, .sheet-link:hover { background: var(--card-2); }
.sheet-link .ico { width: 18px; height: 18px; color: var(--ink-3); }
.sheet-link[aria-current="page"], .sheet-toggle[data-current="true"] { color: var(--blue); }
.sheet-toggle[aria-expanded="true"] { background: var(--card-2); }
.sheet-panel { display: grid; gap: 12px; padding: 10px 4px 12px; }
.sheet-panel .mega-group ul, .sheet-foot { gap: 2px; }

/* ── Моя полка: вкладки, формы, коллекции ─────────────── */
.page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; margin: -6px 0 24px; padding: 5px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow); }
.seg-item { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.seg-item .ico { width: 18px; height: 18px; }
.seg-item small { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--card-2); color: var(--ink-2); font-size: 12px; line-height: 20px; text-align: center; }
.seg-item:hover { background: var(--card-2); color: var(--ink); }
.seg-item[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.seg-item[aria-current="page"] small { background: var(--card); color: var(--blue); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red-ink); }
.btn-ghost:hover { background: var(--card); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 40px; color: var(--blue); font-size: 14px; font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.muted { color: var(--ink-3); font-size: 14px; }
.empty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }

.inline-form { display: grid; gap: 8px; max-width: 640px; margin: 0 0 24px; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.inline-form > label { font-size: 14px; font-weight: 600; }
.inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inline-row input { flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card-2); outline: none; font-size: 15px; }
.inline-row input:focus-visible, .coll-new input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--red-ink); }
.field-error { margin: 0; color: var(--red-ink); font-size: 13px; }
.field-error:empty { display: none; }
.confirm { display: grid; gap: 10px; max-width: 640px; margin: 0 0 24px; padding: 16px 18px; border-radius: 20px; background: var(--red-soft); }
.confirm p { margin: 0; font-weight: 500; }

.coll-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.coll-card { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.coll-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.coll-thumbs { display: flex; margin-bottom: 8px; }
.coll-thumbs .avatar { margin-right: -10px; box-shadow: 0 0 0 3px var(--card); }
.coll-empty-ico { display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.coll-card h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; }
.coll-card h2 a { text-decoration: none; }
.coll-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.coll-card p { margin: 0; color: var(--ink-3); font-size: 13px; }
.card-remove { position: relative; z-index: 2; justify-self: start; margin-top: 10px; }

/* Меню «В коллекцию» */
.coll-pop { position: absolute; z-index: 60; display: grid; gap: 10px; width: 300px; max-width: calc(100vw - 24px); padding: 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow-hover), 0 0 0 1px var(--line); animation: pop-in .16s var(--ease); }
.coll-pop .label { margin: 0; }
.coll-pop-item { margin: 0; color: var(--ink-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 232px; overflow-y: auto; }
.coll-opt { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 12px; background: transparent; font-size: 14px; font-weight: 500; text-align: left; }
.coll-opt:hover { background: var(--card-2); }
.coll-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coll-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); color: transparent; transition: background .15s var(--ease); }
.coll-check .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.coll-opt[aria-pressed="true"] .coll-check { background: var(--blue); box-shadow: none; color: #fff; }
.coll-opt small { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.coll-none { margin: 0; color: var(--ink-2); font-size: 13px; }
.coll-new { display: flex; align-items: center; gap: 8px; }
.coll-new input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--card-2); outline: none; font-size: 14px; }
.coll-pop .text-link { justify-self: start; }

/* Файлы для скачивания */
.dl-stats { margin: 0 0 8px; }
.dl-group { margin-top: 28px; }
.table-card { padding: 4px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.dl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dl-table th { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--ink-3); font-size: 12px; font-weight: 500; text-align: left; }
.dl-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dl-table tr:last-child td { border-bottom: 0; }
.dl-num { width: 76px; }
.num-badge { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 20px; background: color-mix(in srgb, var(--subject) 12%, #fff); color: var(--subject); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.num-badge.is-bundle { background: var(--card-2); color: var(--ink-2); }
.dl-name a, .dl-name span { font-weight: 600; text-decoration: none; }
.dl-name a:hover { color: var(--blue); }
.dl-name small { display: block; color: var(--ink-3); font-size: 12px; overflow-wrap: anywhere; }
.dl-size { width: 110px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-act { width: 150px; text-align: right; }
.dl-btn .ico { color: var(--blue); }
.note-line { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; color: var(--ink-3); font-size: 13px; }
.note-line .ico { width: 16px; height: 16px; }
.loading { color: var(--ink-3); }

/* Медиатека: фильтры */
.filters { display: grid; gap: 14px; margin-bottom: 18px; padding: 18px 20px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.frow { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; gap: 12px; }
.frow .label { margin: 11px 0 0; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--card-2); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.fchip .ico { width: 17px; height: 17px; color: var(--blue); }
.fchip small { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.fchip:hover { background: var(--line); }
.fchip.is-zero { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.fchip.is-zero .ico { color: var(--ink-3); }
.fchip[aria-current="true"] { background: var(--blue); box-shadow: none; color: #fff; }
.fchip[aria-current="true"] .ico, .fchip[aria-current="true"] small { color: #fff; }
.fchips-grades .fchip { min-width: 40px; justify-content: center; padding: 0 12px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.results-bar p { margin: 0; }
.results-bar b { color: var(--ink); font-weight: 600; }
.soon-badge, .ok-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 12px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 600; }
.soon-badge .ico { width: 14px; height: 14px; }
.ok-badge { background: var(--green-soft); color: var(--green); }
.empty-top { display: flex; align-items: center; gap: 12px; }
.empty-soon h2 { margin-top: 4px; }
.empty-soon p { max-width: 62ch; }

/* Заглушки, помощь, о продукте */
.page-head > .soon-badge { margin-bottom: 14px; }
.stub { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.stub-card { display: grid; justify-items: start; gap: 10px; padding: 28px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.stub-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); flex: none; }
.stub-ico .ico { width: 24px; height: 24px; }
.stub-card h2 { margin: 6px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.stub-card > p { max-width: 62ch; margin: 0; color: var(--ink-2); }
.stub-card > p.label { margin: 10px 0 0; }
.stub-card > p.muted { color: var(--ink-3); font-size: 14px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.points li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--card-2); font-size: 15px; }
.stub-card .points li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--blue); }
.points .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.points.is-next .ico { color: var(--ink-3); }
.stub-side { gap: 8px; }
.stub-side .label { margin: 4px 0 4px 4px; }
.rrow.dest { grid-template-columns: 36px minmax(0, 1fr) 18px; min-height: 52px; }
.dest-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--blue); }
.dest-ico .ico { width: 18px; height: 18px; }
.rrow.dest > .ico { width: 18px; height: 18px; color: var(--ink-3); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.info-card { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.info-card h2 { margin: 4px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.info-card > p { margin: 0; color: var(--ink-2); font-size: 15px; }
.info-card .examples { margin: 2px 0 0; }
.info-card .examples button { min-height: 40px; }
.help-kbd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
kbd { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--card-2); box-shadow: inset 0 -2px 0 var(--line-2), 0 0 0 1px var(--line-2); color: var(--ink); font: 600 14px var(--font); }
.row-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.now-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.now-next .label { margin: 0 0 4px; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feature-grid h2 { font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }

@media (max-width: 1439px) {
  .mm-trigger, .mm-link { padding: 0 11px; font-size: 14px; }
}
@media (max-width: 1279px) {
  .top-nav { display: none; }
  .top-end .burger { display: inline-grid; }
}
@media (max-width: 900px) {
  .stub, .now-next { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 8px; }
  .frow .label { margin: 0; }
}
@media (max-width: 640px) {
  .top-end .util { display: none; }
  .top-end { gap: 6px; }
  .filters { padding: 14px; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; }
  .fchips::-webkit-scrollbar { display: none; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; }
  .seg-item { padding: 0 12px; }
  .stub-card { padding: 20px; }
  .info-grid { grid-template-columns: 1fr; }
  .table-card { padding: 4px 12px; }
  .dl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dl-table tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .dl-table tr:last-child { border-bottom: 0; }
  .dl-table td { width: auto; padding: 0; border: 0; }
  .dl-num { grid-row: span 2; }
  .dl-name { grid-column: 2; }
  .dl-size { grid-column: 2; grid-row: 2; font-size: 12px; }
  .dl-act { grid-column: 3; grid-row: 1 / span 2; }
  .dl-btn { width: 40px; padding: 0; }
  .dl-btn > span:not(.visually-hidden) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ── Адаптив ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .home { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .home-right { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
  .shell { padding: 0 24px 36px; }
  .top { gap: 10px 16px; padding: 12px 0 4px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .lesson { grid-template-columns: 56px 1fr; grid-template-areas: "num body" ". side" ". chips"; }
  .lesson-side { grid-template-columns: 160px 1fr; align-items: center; }
  .player { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .home { grid-template-columns: 1fr; min-height: 0; }
  .home-hero { order: -1; min-height: 300px; }
  .hero-object { width: 112%; margin-left: 0; }
  .home-right { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell { width: 100%; margin: 0; padding: 0 16px 28px; border-radius: 0 0 24px 24px; overflow-x: clip; }
  .brand-name { font-size: 16px; }
  .player-link .pl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .player-link { width: 40px; padding: 0; justify-content: center; }
  .display { font-size: 36px; }
  .grade-tiles { flex-wrap: wrap; }
  .grade-tiles li { width: calc((100% - 25px) / 6); }
  .grade-tile { width: 100%; }
  .lesson { grid-template-columns: 1fr; grid-template-areas: "num" "body" "side" "chips"; padding: 14px; }
  .lesson-side { grid-template-columns: 1fr; }
  .lesson-thumb { display: none; }
  .cards-rail { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .cards-rail .card { scroll-snap-align: start; }
  .hit { grid-template-columns: 84px 1fr; gap: 12px; }
  .hit-top { grid-template-columns: 1fr; }
  #hero-cap-text { display: none; }
  .slides { min-height: 300px; }
  .slide.is-tall .hero-object { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 640px) { .hotspot { width: 34px; height: 34px; margin: -17px 0 0 -17px; } .hotspot::after { inset: 10px; } }

/* ── Видео: карточка и страница просмотра ─────────────── */
.card-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(16, 24, 40, .18); pointer-events: none; transition: transform .2s var(--ease); }
.card-play svg { width: 20px; height: 20px; margin-left: 3px; fill: var(--blue); }
.card:hover .card-play { transform: scale(1.06); }
.card-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: rgba(16, 18, 22, .78); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.video-stage { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; background: #0d0f12; box-shadow: var(--shadow); }
.video-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0d0f12; }
.video-error { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-ink); font-size: 14px; font-weight: 500; }
.video-info { display: grid; align-content: start; gap: 12px; }
.video-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--ink-3); font-size: 13px; }
.video-meta a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-2); text-decoration: none; }
.video-meta a:hover { color: var(--blue); }
.video-time { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.video-time .ico { width: 16px; height: 16px; }
.video-title { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.video-summary { margin: 0; color: var(--ink-2); font-size: 16px; }
.video-lesson { margin-top: 4px; }
.video-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.video-note { margin-left: 4px; color: var(--ink-3); font-size: 12px; }
.video-more { margin-top: 36px; }
@media (max-width: 1100px) {
  .video-layout { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .video-stage { margin: 0 -8px; border-radius: 14px; }
  .video-title { font-size: 26px; }
}

/* Cabinets share Spectrum's existing typography, surfaces and buttons. */
.cabinets {max-width:1040px;margin:auto}
.cab-grid {display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}
.cab-classes,.cab-tasks {list-style:none;padding:0;display:grid;gap:16px}
.cab-classes {grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))}
.cabinets label,.cab-dialog label {display:grid;gap:8px;margin:16px 0;font-weight:500}
.cabinets input,.cab-dialog input,.cab-dialog select {min-width:0;width:100%;border:1px solid var(--line-2);border-radius:12px;padding:12px;background:var(--card);min-height:48px}
.cab-code {font-size:24px;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.cab-actions {display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.cab-kicker {font-size:13px;color:var(--ink-2)}
.cab-empty {padding:28px;border:1px dashed var(--line-2);border-radius:16px;line-height:1.65}
.cab-task {display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--card);padding:24px;border:1px solid var(--line);border-radius:20px}
.cab-task h2 {font-size:20px;line-height:1.35;margin:10px 0 16px}
.cab-task small {display:block;color:var(--ink-2);margin-top:8px}
.cab-status {display:inline-block;padding:5px 10px;background:var(--blue-soft);color:var(--blue-2);border-radius:8px;font-size:13px}
.cab-status.done,.cab-success {background:var(--green-soft);color:var(--green);padding:12px;border-radius:12px}
.cab-dialog {width:min(540px,calc(100% - 24px));max-height:calc(100dvh - 32px);border:1px solid var(--line-2);border-radius:24px;padding:32px;color:var(--ink);background:var(--panel);box-shadow:var(--shadow)}
.cab-dialog::backdrop {background:rgba(20,30,45,.4)}
.cab-dialog-close {position:absolute;right:16px;top:12px;font-size:28px}
.cab-dialog h2 {padding-right:32px}
.cab-assign {margin-top:14px;min-height:44px}
.lesson-side .cab-assign {width:100%;margin-top:8px}
.cab-toolbar {display:flex;gap:14px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:18px;background:var(--card);padding:16px}
.cab-toolbar h1 {font-size:18px;line-height:1.4;flex:1;min-width:180px;margin:0}
.cab-toolbar [data-progress] {width:100%;font-size:13px;color:var(--ink-2);margin:0}
.cab-completion-note {font-size:14px;color:var(--ink-2);margin:14px 0}
.cab-viewer iframe {display:block;width:100%;height:78dvh;border:1px solid var(--line-2);border-radius:16px;background:var(--card)}
.cab-viewer video {display:block;width:100%;max-height:75dvh;background:#111;border-radius:16px}
@media(max-width:640px){.cab-grid{grid-template-columns:1fr}.cab-task{align-items:stretch;flex-direction:column;padding:20px}.cab-task .btn-pill{align-self:flex-start}.cab-dialog{padding:24px}.cab-toolbar h1{order:-1;width:100%;flex-basis:100%}.cab-toolbar .btn{margin-left:auto}.cab-viewer iframe{height:72dvh}.cab-classes .info-card{padding:20px}}
.cab-assign {position:relative;z-index:2}

.cab-result-list{list-style:none;padding:0;display:grid;gap:16px}
.cab-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:20px}
.cab-result-row small{display:block;margin:6px 0}
.cab-result-row h3{font-size:20px;margin:0}
.cab-member{display:flex;align-items:center;justify-content:space-between;gap:16px}
.cab-member h2{margin:0 0 8px}
.cabinets select{max-width:100%;padding:14px;border:1px solid var(--line,#d8dce4);background:#fff;border-radius:12px;font:inherit}
@media(max-width:640px){.cab-result-row{grid-template-columns:1fr}.cab-member{align-items:flex-start;flex-direction:column}.cab-member button{min-height:44px}}

.cabinets h2,.cabinets h3{overflow-wrap:anywhere}
.cab-continue .cards{grid-template-columns:repeat(auto-fit,minmax(260px,360px))}

.cab-member small { display: block; margin-top: .35rem; }

/* ── Лимит недели, приглашение войти, тарифы (закрытый режим) ── */
.quota-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.quota-pill:hover { background: var(--mark); }
.quota-pill.is-full { background: var(--red-soft); color: var(--red-ink); }
.quota-pill[hidden] { display: none; }
.gate-card { max-width: 640px; margin: 24px 0; }
.gate-card p { color: var(--ink-2); }
.gate-kicker { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.gate-quota { display: grid; gap: 6px; justify-items: start; }
.gate-quota small { color: var(--ink-2); }
.gate-reset, .gate-list-title { color: var(--ink-2); font-size: 14px; }
.gate-list-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.gate-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; max-height: 32dvh; overflow: auto; }
.gate-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); text-decoration: none; line-height: 1.35; }
.gate-list a:hover { background: var(--blue-soft); border-color: var(--blue); }
.gate-kind { flex: none; padding: 2px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-2); font-size: 12px; font-weight: 600; }
.gate-dialog .cab-actions { margin-top: 8px; }
.plans { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.plan { display: grid; align-content: start; gap: 8px; }
.plan h2 { margin: 0; font-size: 20px; }
.plan p { margin: 0; color: var(--ink-2); }
.plan.is-main { border-color: var(--blue); }
.plan-price { font-size: 26px; line-height: 1.2; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.plan-price b { font-weight: 600; }
.plan .soon-badge { justify-self: start; margin-top: 8px; }
.plans-note { max-width: 640px; }
@media (max-width: 640px) { .gate-list { max-height: 36dvh; } .quota-pill { padding: 0 10px; } }

/* ── Витрина (PORTAL-STOREFRONT-01): подвал с реквизитами, тарифы, юридические страницы, плашка cookie ─────────────── */
html[data-mode="storefront"] #notif-link, html[data-mode="storefront"] #profile-link, html[data-mode="storefront"] #quota-pill { display: none !important; }
.login-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.login-link:hover { color: var(--blue); }
.login-link[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
.lang a { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border-radius: 12px; color: var(--ink-3); font-size: 12px; font-weight: 600; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--blue-soft); color: var(--blue); }
.lang a:hover { color: var(--ink); }

.foot-inner { display: grid; gap: 10px; }
.foot-line { margin: 0; color: var(--ink-2); line-height: 1.6; }
.foot-line a, .foot-nav a, .foot-link { color: var(--ink-2); text-underline-offset: 3px; }
.foot-sep { margin: 0 4px; color: var(--line-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-nav a, .foot-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; }
.foot-link { padding: 0; border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.foot-nav a:hover, .foot-link:hover, .foot-line a:hover { color: var(--blue); }

.notice { max-width: 760px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--blue-soft); color: var(--ink); font-size: 15px; }
.page-title { font-size: clamp(32px, 3.8vw, 52px); }
.page-head .lead { max-width: 640px; }
.plan-unit { margin-left: 4px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.plan-badge { display: inline-flex; margin-left: 8px; padding: 2px 10px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; vertical-align: middle; }
.plan.is-main { box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 22px; color: var(--ink); font-size: 15px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.pricing-info { margin-top: 8px; }
.pricing-cta { align-items: flex-start; }
.pay-soon summary { list-style: none; cursor: pointer; }
.pay-soon summary::-webkit-details-marker { display: none; }
.pay-soon[open] summary { background: var(--blue-2); }
.pay-soon-msg { margin-top: 12px; max-width: 420px; padding: 14px 18px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.pay-soon-msg p { margin: 0 0 4px; }
.pay-soon-msg p:last-child { margin: 0; color: var(--ink-2); font-size: 14px; }
.static-page .btn { background: var(--card); box-shadow: var(--shadow); color: var(--ink); min-height: 44px; padding: 0 20px; border-radius: 22px; text-decoration: none; }
.static-page .btn:hover { color: var(--blue); }

.legal-page { max-width: 860px; margin: 0 auto; }
.legal-title { font-size: clamp(28px, 3.4vw, 42px); }
.legal-edition { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.legal-toc { margin: 8px 0 24px; }
.legal-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 2px; columns: 2; column-gap: 28px; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { display: inline-flex; min-height: 32px; align-items: center; color: var(--blue-2); text-underline-offset: 3px; }
.legal-body { max-width: 72ch; padding: 4px 0 8px; font-size: 16px; line-height: 1.7; }
.legal-body h2 { margin: 36px 0 10px; font-size: 24px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; scroll-margin-top: 20px; }
.legal-body h3 { margin: 24px 0 8px; font-size: 19px; font-weight: 500; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body blockquote, .legal-table { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 24px; display: grid; gap: 6px; }
.legal-body li::marker { color: var(--blue); }
.legal-body a { color: var(--blue-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body blockquote { padding: 12px 16px; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--card); }
.legal-body blockquote p { margin: 0; }
.legal-table { overflow-x: auto; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { background: var(--card-2); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.legal-table tbody th { font-weight: 500; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }
.legal-related { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 14px; }
.legal-related a { display: inline-flex; min-height: 32px; align-items: center; color: var(--blue-2); }
.static-page .player { padding-top: 8px; }
.static-page main { min-height: 50vh; }

.gate-meta { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.gate-summary { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.gate-soon { margin: 0 0 18px; color: var(--ink); font-weight: 500; }
.gate-locked h2 { margin: 0 0 6px; padding-right: 32px; font-size: 22px; line-height: 1.25; }
.gate-locked .btn { background: var(--card); box-shadow: var(--shadow); }

/* Плашка согласия на cookie: внизу страницы, содержимое не закрывает (внизу страницы добавляется отступ на её высоту). */
body.has-cookie { padding-bottom: var(--cookie-h, 0px); }
.cookie-banner { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 760px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 16px 20px; border-radius: 20px; background: var(--card); box-shadow: 0 2px 6px rgba(16, 24, 40, .10), 0 16px 40px rgba(16, 24, 40, .18); border: 1px solid var(--line-2); }

.cookie-banner p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.cookie-banner p a { color: var(--blue-2); text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--blue); border-radius: 22px; background: var(--card); color: var(--blue-2); font-weight: 600; font-size: 14px; }
.cookie-btn:hover { background: var(--blue-soft); }
@media (max-width: 640px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; grid-template-columns: 1fr; padding: 14px 16px; }
  .cookie-actions .cookie-btn { flex: 1 1 140px; }
  .legal-toc ol { columns: 1; }
  .login-link { padding: 0 12px; }
  html:not([data-route="static"]) .top-end .login-link { display: none; }
}
.info-card > p.plan-price { font-size: 28px; line-height: 1.2; }
.info-card > p.plan-price .plan-unit { font-size: 14px; }
/* Обычные страницы без JavaScript-меню (бургера нет): навигация остаётся на телефоне, прокручивается по горизонтали. */
@media (max-width: 1279px) {
  .static-page .top-nav { display: block; }
  .static-page .menubar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .static-page .menubar::-webkit-scrollbar { display: none; }
}

/* Правки после дизайн-ревью (09.10): главная кнопка на «Что такое Spectrum 3D», сетка тарифов, оглавление, таблицы на телефоне. */
.static-page .btn:not(.btn-brass) { background: var(--card); box-shadow: var(--shadow); color: var(--ink); min-height: 44px; padding: 0 20px; border-radius: 22px; text-decoration: none; }
.static-page .btn.btn-brass { min-height: 44px; padding: 0 22px; border-radius: 22px; text-decoration: none; color: #fff; }
.static-page .btn.btn-brass:hover { background: var(--blue-2); color: #fff; }
.pricing-info { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-top: 20px; }
.pricing-cta { margin: 24px 0 8px; }
.legal-toc ol { display: block; columns: 2; }
.legal-toc li { padding: 0 0 2px; }
.legal-body blockquote { border-left: 0; border-radius: 12px; background: var(--blue-soft); }
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-table { overflow: visible; background: transparent; box-shadow: none; }
  .legal-table table, .legal-table tbody { display: block; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { display: block; margin: 0 0 10px; padding: 8px 0; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
  .legal-table th, .legal-table td { display: block; padding: 4px 14px; border: 0; }
  .legal-table tbody th { font-weight: 600; }
  .legal-table td::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; }
  .foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
}
/* Правки после проверки доступности (09.10): контраст синего текста, порядок заголовков плашки, прокрутка к элементу под плашкой, цели касания. */
:root { --ink-3: #5b6169; }
html { scroll-padding-bottom: calc(var(--cookie-h, 0px) + 16px); }
.lang button[aria-pressed="true"], .lang a[aria-current="true"], .login-link[aria-current="page"], .soon-badge, .top-end .util[aria-current="page"], .strip-head a { color: var(--blue-2); }
.cookie-title { grid-column: 1 / -1; margin: 0; font-size: 16px; font-weight: 600; }
@media (max-width: 640px) {
  .cookie-banner { padding: 12px 14px; gap: 4px 12px; }
  .cookie-title { font-size: 15px; }
  .cookie-banner p { font-size: 13px; line-height: 1.4; }
  .cookie-actions { flex-wrap: nowrap; }
  .cookie-actions .cookie-btn { flex: 1 1 0; min-height: 44px; padding: 0 8px; font-size: 13px; }
}
@media (pointer: coarse) {
  .foot-nav a, .foot-link, .legal-toc a, .legal-related a, .crumbs a { min-height: 44px; }
  .login-link, .lang a { min-height: 44px; }
  .lang a { min-width: 44px; }
}

/* Меньше сдвигов вёрстки при загрузке (CLS): место под язык и быстрые переходы занято сразу, подвал появляется вместе с содержимым (без JS виден всегда). */
.lang { min-width: 80px; min-height: 40px; }
.rail:empty { visibility: hidden; }
@media (scripting: enabled) {
  body:not(.static-page):not([data-route]) .foot { visibility: hidden; }
}

/* ── Страницы каталога без JavaScript (PORTAL-SEO-01): урок, курс, списки, вопросы и ответы ─────────────────────── */
.static-page .card-art img { opacity: 1; }
.static-page .cta-row { margin-top: 14px; }
.lp-section { margin: 34px 0 0; }
.lp-section:first-child { margin-top: 8px; }
.home-static .hs-hero { margin-top: 12px; max-width: 880px; }
.home-static .hs-hero .lead { max-width: 640px; }
.lp-head { margin: 0 0 22px; max-width: 880px; }
.lp-head .page-title { font-size: clamp(30px, 3.6vw, 50px); overflow-wrap: anywhere; }
.lp-head .lead { margin: 12px 0 0; max-width: 720px; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.lp-head .eyebrow { color: var(--subject, var(--blue)); font-weight: 600; letter-spacing: .02em; }
.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.lp-main { display: grid; gap: 18px; min-width: 0; }
.lp-side { display: grid; gap: 14px; min-width: 0; }
.lp-side .info-card { padding: 18px; gap: 8px; }
.lp-side .info-card h2 { font-size: 17px; }
.lp-side .info-card h3 { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lp-cover { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); aspect-ratio: 2.3 / 1; }
.lp-cover img { width: 100%; height: 100%; object-fit: cover; }
.lp-interactive { border-left: 4px solid var(--subject, var(--blue)); }
.lp-interactive p { margin: 0; }
.lp-interactive .cta-row { margin-top: 4px; }
.lp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.lp-links a { color: var(--blue-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.lp-plan { margin: 0; padding-left: 22px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.lp-plan li::marker { color: var(--blue); }
.lp-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 2px; columns: 2; column-gap: 28px; font-size: 15px; }
.lp-toc li { break-inside: avoid; }
.lp-toc a { display: inline-flex; min-height: 30px; align-items: center; color: var(--blue-2); text-underline-offset: 3px; }
.prose { max-width: 70ch; font-size: 17px; line-height: 1.72; overflow-wrap: break-word; }
.prose h2 { margin: 38px 0 10px; font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; scroll-margin-top: 20px; }
.prose h3 { margin: 26px 0 8px; font-size: 20px; font-weight: 500; line-height: 1.3; scroll-margin-top: 20px; }
.prose h4 { margin: 20px 0 6px; font-size: 17px; font-weight: 600; }
.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote, .prose .tbl { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 6px; }
.prose li::marker { color: var(--blue); }
.prose blockquote { padding: 12px 16px; border-radius: 12px; background: var(--blue-soft); }
.prose dt { font-weight: 600; }
.prose dd { margin: 0 0 8px 18px; }
.prose sup, .prose sub { line-height: 0; }
.prose .tbl { overflow-x: auto; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); max-width: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--card-2); font-size: 13px; color: var(--ink-2); }
.prose tr:last-child td, .prose tr:last-child th { border-bottom: 0; }
.lp-terms h2 { margin: 6px 0 10px; font-size: 20px; font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-locked { margin-top: 8px; }
.lrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lrow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); border-left: 4px solid var(--subject, var(--blue)); }
.lrow:hover { box-shadow: var(--shadow-hover); }
.lrow-main { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; text-decoration: none; }
.lrow-main::after { content: ""; position: absolute; inset: 0; }
.lrow-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-2); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.lrow-text { display: grid; gap: 2px; min-width: 0; }
.lrow-title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.lrow-sum { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.lrow-side { display: grid; justify-items: end; gap: 2px; color: var(--ink-2); font-size: 13px; text-align: right; }
.lrow-par { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pager ul { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; font-weight: 500; }
.pager a:hover { color: var(--blue-2); }
.pager span[aria-current="page"] { background: var(--blue); color: #fff; }
.prose-wrap { max-width: 780px; }
.prose-block h2 { margin: 0 0 10px; font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.prose-block p { margin: 0 0 12px; font-size: 17px; line-height: 1.68; color: var(--ink); }
.prose-block .check-list { margin: 0 0 12px; font-size: 17px; gap: 10px; }
.prose-block .check-list li { font-size: 17px; line-height: 1.6; }
.faq-item { padding: 16px 0; border-top: 1px solid var(--line-2); }
.faq-item h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.faq-item p { margin: 0 0 8px; font-size: 16px; line-height: 1.65; }
.pricing-faq { margin-top: 20px; }
.pricing-faq .faq-item:first-of-type { border-top: 0; }
.nf-links { margin-bottom: 8px; }
@media (min-width: 960px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}
@media (max-width: 640px) {
  .lp-head .lead { font-size: 16px; }
  .lp-cover { aspect-ratio: 16 / 9; }
  .lp-toc ol { columns: 1; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 22px; }
  .lrow { grid-template-columns: minmax(0, 1fr); }
  .lrow-side { justify-items: start; text-align: left; grid-auto-flow: column; gap: 4px 12px; margin-left: 50px; }
}
.s-physics { --subject: #3b6fd4; }
.s-chemistry { --subject: #16917f; }
.s-biology { --subject: #4f9a3c; }
.s-geography { --subject: #2489b3; }
.s-math { --subject: #7353c4; }
.s-literature { --subject: #c2415c; }
.s-history { --subject: #b8612b; }
.s-tech { --subject: #c98314; }
.s-informatics { --subject: #3d8fa8; }
.s-language { --subject: #8c8a25; }
.s-social { --subject: #4a8a7a; }
.s-art { --subject: #c4508c; }
.s-music { --subject: #6b7a8c; }
.s-inventions { --subject: #a8651c; }
.s-scientists { --subject: #5a62b8; }
.s-other { --subject: #7b8288; }
.nw { white-space: nowrap; }
.home-static .page-title { font-size: clamp(34px, 4.2vw, 58px); }

/* ── Правки после проверки доступности каталога (09.10): контраст, меню на телефоне, перенос текста, ширина на 320 px ── */
.brand-name b, .section-head > a { color: var(--blue-2); }
.lp-head .eyebrow { color: color-mix(in srgb, var(--subject, var(--blue)) 62%, #1d1f23); }
.search input::placeholder, .hsearch input::placeholder { color: var(--ink-3); opacity: 1; }
.crumbs li + li::before { content: "/" / ""; }
.static-page .card p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.static-page .card-kind { font-size: 12px; }
.static-page .card-meta { font-size: 13px; }
.card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius); }
.cards, .courses { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.lp-main { grid-template-columns: minmax(0, 1fr); }
.static-page .btn-pill, .static-page .btn { white-space: normal; text-align: center; }
.lp-links a { display: inline-block; padding-block: 4px; }
@media (max-width: 1279px) {
  .static-page .top-nav { min-width: 0; max-width: 100%; }
}
@media (max-width: 640px) {
  .static-page .menubar { flex-wrap: wrap; overflow: visible; }
}
@media (pointer: coarse) {
  .lp-toc a, .lp-links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Текст главной для роботов лежит в <main> оболочки; людям с JavaScript его заменяет оформленная главная приложения */
html.js:not(.app-late) #static-home { display: none; }
#static-home .cards .card-art img { opacity: 1; }
