/* «Полночь» (ключ polnoch): стиль страниц ученика «Структуры». Версия 2, 20.11.2026: свой вид поверх раскладки «Графита».
   Основа: дизайн-система Н3 «ПОЛНОЧЬ» (утверждена 08.08) и стиль школы «Следы»: ночной стол, предметы-улики в холодном свете,
   тонкие линии, подписи разрядкой, номер в квадрате, как на обложках уроков.
   Цвета: фон #0B0D12, под свечением #06060E, карточки #151922 и #11151E, линии #262C38 и #39414F, текст #EEF1F6, служебный #8E97A6.
   Акцент: электрик #4F7DFF, светлый конец #7FA6FF (им пишем, когда синий текст стоит на тёмном), подложка #16203C.
   Смысл цвета: зелёный #3BD07A пройдено, жёлтый #E0A33B срок и дата, красный только «так нельзя» и ошибки.
   Радиусы (версия 2, 20.11: углы мягче, как на тарифах): 8 чипы, 10 номер в квадрате, 12 кнопки и поля, 18 карточки, 24 шапки.
   Карточки как на тарифах: сверху светлее, светлая кромка сверху. Geologica 700–800 заголовки, Inter 400–600 текст. На телефоне текст от 15 точек.
   Правила пишем через html.uch.tema-polnoch: так они сильнее «Графита» (tema-grafit.css) и не трогают другие стили.
   У страницы два класса: tema-polnoch (этот файл) и tema-grafit-osnova (раскладка «Графита» через [class*=tema-grafit]). */
/* Стиль «Графит» (22.10, дизайн Алины): чёрный фон в точку с тонкой сеткой линий, графитовые плашки с тонкой рамкой,
   синий акцент и широкий шрифт с обложек уроков Михаила. Ориентиры: панель AI Room Club и обложка «Урок 08».
   Ложится поверх vid.css только на страницах ученика (html.uch.tema-grafit). Своей кнопки в переключателе у него нет (22.10 Алина выбрала светлые): его подключает светлая основа
   tema-svetlyj-baza.css, а её светлые варианты, и меняют своё: поэтому правила написаны через :is([class*=tema-grafit],[class*=tema-svetlyj]). Разметка та же, меняется вид.
   Шрифты свои, в static/fonts: Inter (OFL) для текста, Unbounded (OFL) для больших надписей.
   Баннер с фото здесь не показан: вместо него большая надпись из заголовка страницы (h1.sr, текст баннера из настроек). */

@font-face{font-family:"Inter";src:url(../fonts/inter-cyrillic-wght-normal.woff2?v=76a42fc0d029) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter";src:url(../fonts/inter-latin-wght-normal.woff2?v=dbb5776d6b90) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

html.uch:is([class*=tema-grafit],[class*=tema-svetlyj]){
  --bg:#0A0A0A; --card:#171717; --card-2:#121212; --line:rgba(255,255,255,.075); --line-2:rgba(255,255,255,.13);
  --ink:#F5F5F5; --soft:#C9C9C9; --muted:#8F8F8F; --dim:#6E6E6E;
  --acc:#5B8CFF; --acc-hi:#7DA4FF; --acc-ink:#050A1C; --acc-text:#8DAEFF; --acc-wash:rgb(var(--acc-rgb) / .12); --acc-line:rgb(var(--acc-rgb) / .4);
  --acc-rgb:91 140 255; --hi-rgb:125 164 255; --glow-rgb:70 110 255;
  --sq-grad:linear-gradient(145deg,#D6E1FF 0%,#8FB0FF 45%,#5B8CFF 100%); --fill-grad:linear-gradient(180deg,#5786FA,#3762DC); --fill-ink:#fff;
  --btn-grad:linear-gradient(180deg,#B9CCFF 0%,#7DA4FF 50%,#5B8CFF 100%); --btn-grad-hi:linear-gradient(180deg,#C9D8FF 0%,#8FB0FF 50%,#6B97FF 100%);
  --set:url(../img/vid/set-grafit.svg?v=fccebde908d3);
  --blue:var(--acc); --blue-2:var(--acc-text); --blue-line:var(--acc-line); --blue-ink:var(--acc-ink); --blue-wash:var(--acc-wash);
  --sky:var(--acc); --sky-hi:var(--acc-hi); --sky-lo:var(--acc); --sky-edge:var(--acc); --sky-ink:var(--acc-ink);
  --green:#5BD69A; --green-wash:rgba(91,214,154,.1); --amber:#F2BA60; --amber-wash:rgba(242,186,96,.1);
  --red:#FF8A84; --red-wash:rgba(255,138,132,.09); --black:#0A0A0A;
  --f-t:"Inter",-apple-system,"SF Pro Text",system-ui,sans-serif;
  --f-d:"Unbounded","Inter",system-ui,sans-serif;
  --f-body:var(--f-t);
  --r-card:24px;
  color-scheme:dark;
  background:#0A0A0A;
}
html.uch:is([class*=tema-grafit],[class*=tema-svetlyj]) body{background:transparent;color:var(--ink);font-family:var(--f-t)}
/* фон: синее свечение слева сверху (как на обложках), точки и тонкая сетка линий справа; стоит на месте */
html.uch:is([class*=tema-grafit],[class*=tema-svetlyj]) body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(820px 520px at 8% -12%,rgb(var(--glow-rgb) / .24),transparent 68%),
    radial-gradient(600px 420px at 100% 0%,rgb(var(--glow-rgb) / .07),transparent 70%),
    #0A0A0A}
html.uch:is([class*=tema-grafit],[class*=tema-svetlyj]) body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    var(--set) right -60px top 40px/min(1200px,90vw) auto no-repeat,
    radial-gradient(circle,rgba(255,255,255,.09) 1px,transparent 1.5px) 0 0/24px 24px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 55%,rgba(0,0,0,.3) 100%);
  mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 55%,rgba(0,0,0,.3) 100%)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) ::selection{background:rgb(var(--acc-rgb) / .35);color:#fff}
:is([class*=tema-grafit],[class*=tema-svetlyj]) :focus-visible{outline-color:var(--acc)}

/* ---------- текст: заголовки широким шрифтом строчными (как «Обзор школы» у Ковальской), подписи разрядкой ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) h1,:is([class*=tema-grafit],[class*=tema-svetlyj]) h2,:is([class*=tema-grafit],[class*=tema-svetlyj]) .display{font-family:var(--f-d);font-weight:600;text-transform:none;letter-spacing:-.03em;line-height:1.12;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) h1{font-size:clamp(28px,3vw,42px)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) h2{font-size:clamp(22px,2.2vw,30px)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) h3{font-family:var(--f-d);font-weight:600;letter-spacing:-.02em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .prose h2,:is([class*=tema-grafit],[class*=tema-svetlyj]) .prose h3{font-family:var(--f-d);font-weight:600;letter-spacing:-.02em;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .auth-box h1{font-size:clamp(28px,5vw,38px)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .l-head h1{font-size:clamp(20px,1.7vw,24px);line-height:1.25;letter-spacing:-.025em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .d-h1{font-size:clamp(28px,3.4vw,40px)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-group-h h2{font-size:clamp(20px,2vw,26px)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .stat-big{font-family:var(--f-d);font-weight:600;font-size:44px;letter-spacing:-.04em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .stat-of{color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .eyebrow,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-eb{display:flex;align-items:center;gap:12px;font:500 10.5px/1.3 var(--f-d);letter-spacing:.18em;text-transform:uppercase}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .eyebrow::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-eb::before{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .eyebrow{color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .eyebrow.blue,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-eb{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mats h3{display:flex;align-items:center;gap:12px;margin-bottom:14px;font:500 10.5px/1.3 var(--f-d);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mats h3::before{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .lead{color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .lead b{color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .muted{color:var(--muted)}

/* синяя плашка, как «Урок 08» на обложке: над заголовком модуля и урока */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .eyebrow.blue{display:inline-flex;margin:0 0 18px;padding:10px 16px 9px;border-radius:12px;
  font:700 14px/1.15 var(--f-d);letter-spacing:0;text-transform:none;color:var(--acc-ink);background:var(--acc);
  box-shadow:0 0 0 1px rgb(var(--hi-rgb) / .5),0 14px 50px -12px rgb(var(--acc-rgb) / .7)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .eyebrow.blue::before{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head h1{font-size:clamp(30px,3.6vw,52px);line-height:1.05;letter-spacing:-.035em;text-wrap:balance}

/* ---------- кнопки: синие таблетки, как «Вступить» на референсе ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn{font:600 15px/1 var(--f-t);letter-spacing:0;text-transform:none;color:var(--acc-ink);border-radius:999px;padding-inline:24px;
  background:var(--acc);box-shadow:none;transition:background .2s,transform .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn:hover{background:var(--acc-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn:active{transform:scale(.98)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn.small{font-size:14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn.ghost{background:transparent;color:var(--ink);border:0;box-shadow:inset 0 0 0 1px var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn.ghost:hover{background:rgba(255,255,255,.06)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn.done{background:var(--green-wash);color:var(--green);border:0;box-shadow:inset 0 0 0 1px rgba(91,214,154,.32)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .btn.danger{background:var(--red-wash);color:var(--red);border:0;box-shadow:inset 0 0 0 1px rgba(255,138,132,.32)}

/* ---------- общие плашки: графит и тонкая рамка, без стекла и свечений ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .card,:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row,:is([class*=tema-grafit],[class*=tema-svetlyj]) .mat,:is([class*=tema-grafit],[class*=tema-svetlyj]) .pn a,:is([class*=tema-grafit],[class*=tema-svetlyj]) .result,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-quality,
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-tile,:is([class*=tema-grafit],[class*=tema-svetlyj]) .d-links a{background:var(--card);border-color:var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .card{border-radius:var(--r-card)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .card.hi{border-color:var(--acc-line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) a.mod:hover,:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row:hover,:is([class*=tema-grafit],[class*=tema-svetlyj]) .mat:hover,:is([class*=tema-grafit],[class*=tema-svetlyj]) .pn a:hover{background:#1D1D1D;border-color:rgba(255,255,255,.16)}
/* уроки модуля: строки-плашки с номером в квадратике, как «01» у Ковальской */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row{grid-template-columns:44px minmax(0,1fr) auto;gap:18px;padding:16px 20px 16px 16px;border-radius:20px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-title,:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-meta{display:block}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .l-title{font:600 16px/1.35 var(--f-d);letter-spacing:-.025em;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .l-meta{margin-top:4px;font-size:13.5px;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .l-num{width:44px;height:44px;border:0;border-radius:13px;font:600 14px/1 var(--f-d);color:var(--acc-text);background:var(--acc-wash);
  box-shadow:inset 0 0 0 1px rgb(var(--acc-rgb) / .22)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .l-num svg{width:20px;height:20px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .l-num.done{background:var(--green-wash);color:var(--green);box-shadow:inset 0 0 0 1px rgba(91,214,154,.3)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .l-num.started{color:var(--acc-ink);background:var(--sq-grad);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-right{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1px var(--line-2);transition:.2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row:hover .l-right{color:var(--acc-ink);background:var(--acc);box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-right svg{width:16px;height:16px}
/* «Пройдено» на странице модуля: карточка-цифра со значком */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .card{display:flex;align-items:center;gap:18px;min-width:240px;padding:20px 26px 20px 20px;
  --sq-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050A1C' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M8.5 12.2l2.4 2.4 4.6-5'/%3E%3C/svg%3E")}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .card .eyebrow{margin-bottom:8px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .card .eyebrow::before{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .card .stat-big{font-size:38px;line-height:1}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .result{border-radius:16px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .prose{color:var(--soft)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .prose a{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .prose code{background:rgba(255,255,255,.06);border-color:var(--line-2);color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .prose .note{border-left-color:var(--acc);background:var(--acc-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player{border:0;border-radius:var(--r-card);box-shadow:inset 0 0 0 1px var(--line),0 30px 80px -50px rgba(0,0,0,.9)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player-empty{background:radial-gradient(520px 320px at 20% 10%,rgb(var(--acc-rgb) / .18),transparent 70%),#111;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player-empty b{font-family:var(--f-t);text-transform:none;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .chip{border-color:var(--line-2);color:var(--soft);background:rgba(255,255,255,.03)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .chip.blue{border-color:transparent;color:var(--acc-text);background:var(--acc-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .chip.green{border-color:transparent;color:var(--green);background:var(--green-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .chip.amber{border-color:transparent;color:var(--amber);background:var(--amber-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .chip.red{border-color:transparent;color:var(--red);background:var(--red-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mat-ico{background:var(--acc-wash);color:var(--acc-text);box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .result b{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .crumbs{font-size:14px;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .crumbs a:hover{color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .crumbs span:last-child{color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .dot{border-color:var(--line-2);font-weight:600}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .dot.done{background:var(--green);border-color:var(--green);color:#04220F}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .input,:is([class*=tema-grafit],[class*=tema-svetlyj]) textarea.input,:is([class*=tema-grafit],[class*=tema-svetlyj]) select.input{background:#101010;border-color:var(--line-2);color:var(--ink);border-radius:14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .input::placeholder{color:#5E5E5E}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .input:focus{border-color:var(--acc);box-shadow:0 0 0 4px rgb(var(--acc-rgb) / .16)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) input[type=file]{color:var(--soft)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) input[type=file]::file-selector-button{margin-right:12px;padding:8px 16px;border:0;border-radius:999px;cursor:pointer;font:600 13px/1.2 var(--f-t);
  color:var(--ink);background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) input[type=file]::-webkit-file-upload-button{margin-right:12px;padding:8px 16px;border:0;border-radius:999px;cursor:pointer;font:600 13px/1.2 var(--f-t);
  color:var(--ink);background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-tile.on{border-color:var(--acc-line);background:var(--acc-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-tile.on .z-tile-n{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-tile.on .z-tile-c{background:var(--acc);border-color:var(--acc);color:var(--acc-ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-tile:hover{border-color:rgba(255,255,255,.18)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-ring .fg,:is([class*=tema-grafit],[class*=tema-svetlyj]) .ring .fg{stroke:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-ring .bg,:is([class*=tema-grafit],[class*=tema-svetlyj]) .ring .bg{stroke:#2E2E2E}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-ring b,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-team-big,:is([class*=tema-grafit],[class*=tema-svetlyj]) .ring-t b{font-family:var(--f-t);font-weight:700;letter-spacing:-.02em;text-transform:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-opt{background:rgba(255,255,255,.025);border-color:var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-opt:hover{border-color:var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-opt:has(input:checked){border-color:var(--acc-line);background:var(--acc-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-opt input,:is([class*=tema-grafit],[class*=tema-svetlyj]) .d-check input,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-check input{accent-color:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-answer{border-left-color:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-krit{border-radius:14px;border-color:transparent;background:var(--card-2)}
/* в строках заданий и базы знаний справа не стрелка, а статус: кружка нет, ширина по тексту */
:is([class*=tema-grafit],[class*=tema-svetlyj]) :is(.z-mgroup,.g-matl) .lesson-row .l-right,:is([class*=tema-grafit],[class*=tema-svetlyj]) :is(.z-mgroup,.g-matl) .lesson-row:hover .l-right{display:block;width:auto;height:auto;border-radius:0;background:none;box-shadow:none;color:inherit}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-matl .lesson-row .l-right:empty{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-matl .lesson-row .l-right .lock{white-space:nowrap}
/* одинаковый отступ под малой подписью: «Домашнее задание», «Тест после урока», «Телеграм», как у «Пароль» */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-sec:not(.z-qs) > .z-sec-h,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-sec > .eyebrow,:is([class*=tema-grafit],[class*=tema-svetlyj]) .tg-head .eyebrow{margin-bottom:14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-who.blue,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-link,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-qa.mine .z-who b{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-result b{font-family:var(--f-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-home-ico,:is([class*=tema-grafit],[class*=tema-svetlyj]) .mail-ico{background:var(--acc-wash);border-color:var(--acc-line);color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .mail-ico svg{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .continue{background:var(--acc-wash);border-color:var(--acc-line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .play{background:var(--acc);color:var(--acc-ink);box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .logo{font-family:var(--f-d);font-weight:700;font-size:15px;letter-spacing:-.01em;text-transform:none}
/* значок на странице входа тот же, что в полосе слева: завод в синем квадратике, виден и на телефоне */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .logo{gap:12px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .logo-mark{width:40px;height:40px;border-radius:0;background:url(../img/vid/logo.svg?v=555ec6a7f449) center/contain no-repeat;box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .logo-mark svg{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .big-ico{background:var(--card);border-color:var(--line-2);box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .big-ico svg{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .msg{background:var(--card);border-color:var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .msg.mine{background:var(--acc-wash);border-color:var(--acc-line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .msg.author{border-color:rgba(242,186,96,.35)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .msg-src{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .chat-form{background:rgba(0,0,0,.25)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .chat-note{background:var(--card);border-color:var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .d-check{background:rgba(255,255,255,.03);border-color:var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .d-check:has(input:checked){border-color:var(--acc-line);background:var(--acc-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .d-links a:hover{border-color:var(--acc-line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .d-links svg{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .preview-bar{background:#101010;border-bottom:1px solid var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .preview-bar .in{max-width:1320px;margin:0 auto;padding:8px 32px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .preview-bar button,:is([class*=tema-grafit],[class*=tema-svetlyj]) .preview-tema a{background:transparent;border-color:var(--line-2);color:var(--soft)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .preview-bar button.on,:is([class*=tema-grafit],[class*=tema-svetlyj]) .preview-tema a.on{background:var(--acc);color:var(--acc-ink);border-color:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .foot{max-width:1320px;margin:0 auto;padding:28px 32px 44px;color:var(--dim);border-top-color:var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .foot-links a{color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .foot-links a:hover{color:var(--ink)}

/* ---------- меню слева, как у школы Ковальской: название, «Меню», пункты, активный цветной таблеткой, кружок ученика внизу.
   Обычно свёрнуто в узкую полосу значков и раскрывается с подписями, когда на него наводят. Телефон: нижняя панель ---------- */
/* сплошное длинное слово в названии переносится и не раздвигает страницу; подпись в строке профиля не сжимается длинной почтой */
:is([class*=tema-grafit],[class*=tema-svetlyj]) main{max-width:1320px;margin:0 auto;padding:28px 32px 80px;overflow-wrap:anywhere}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rows .row > .muted{flex:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .page.has-rail{margin-left:92px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail{left:12px;top:12px;bottom:12px;width:68px;align-items:stretch;gap:0;padding:20px 12px 14px;border-radius:22px;overflow:hidden;
  background:#121212;box-shadow:inset 0 0 0 1px var(--line),0 30px 60px -30px rgba(0,0,0,.95);transition:width .32s cubic-bezier(.2,.8,.2,1),box-shadow .32s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:hover,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:focus-within{width:244px;box-shadow:inset 0 0 0 1px var(--line-2),0 40px 90px -20px rgba(0,0,0,.98)}
/* логотип: завод в синем квадратике (img/vid/logo.svg), справа название и «Обучение». Сам он рисуется стилем, поэтому нажимается прозрачная ссылка поверх, она ведёт на главную */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-logo{position:absolute;z-index:1;left:0;right:0;top:0;height:84px;border-radius:22px 22px 0 0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-logo:focus-visible{outline:2px solid var(--acc);outline-offset:-6px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail::before{content:"Структура";order:0;flex:none;height:40px;padding:1px 0 0 54px;white-space:nowrap;
  font:700 15.5px/22px var(--f-d);letter-spacing:-.01em;color:transparent;
  background:url(../img/vid/logo.svg?v=555ec6a7f449) 2px 0/40px 40px no-repeat;transition:color .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail::after{content:"Обучение";order:1;margin-top:-15px;padding-left:54px;white-space:nowrap;font:500 10px/1 var(--f-d);letter-spacing:.2em;
  text-transform:uppercase;color:transparent;transition:color .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:hover::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:focus-within::before{color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:hover::after,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:focus-within::after{color:var(--dim)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-new{order:2;display:flex;align-items:center;gap:12px;align-self:stretch;min-width:0;height:44px;margin:22px 0 0;padding:0 10px;
  border-radius:14px;background:var(--red-wash);box-shadow:inset 0 0 0 1px rgba(255,138,132,.22);color:var(--ink);white-space:nowrap}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-new > span:first-child{flex:none;min-width:24px;height:20px;padding:0 7px;border-radius:999px;background:#E5484D;color:#fff;font:600 12px/20px var(--f-t);text-align:center}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-list{order:3;gap:4px;margin-top:26px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-list::before{content:"Меню";height:10px;padding:0 0 12px 12px;white-space:nowrap;font:500 10px/1 var(--f-d);letter-spacing:.2em;text-transform:uppercase;
  color:transparent;transition:color .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:hover .rail-list::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:focus-within .rail-list::before{color:var(--dim)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-i{display:flex;align-items:center;gap:14px;height:46px;padding:0 0 0 2px;border-radius:14px;white-space:nowrap;color:var(--muted);
  transition:background .2s,color .2s,box-shadow .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-sq,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-i:hover .rail-sq,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-i.on .rail-sq{flex:none;width:40px;height:40px;background:none;box-shadow:none;color:inherit}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-sq svg{width:20px;height:20px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-tip,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-new .rail-tip{position:static;transform:translateX(-6px);opacity:0;padding:0;background:none;box-shadow:none;border-radius:0;
  pointer-events:none;font:500 15px/1 var(--f-t);color:inherit;transition:opacity .2s,transform .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-new .rail-tip{font-size:13.5px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:hover .rail-tip,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:focus-within .rail-tip{opacity:1;transform:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-i:hover{color:var(--ink);background:rgba(255,255,255,.05)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-i.on{color:var(--fill-ink);background:var(--fill-grad);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 16px 34px -14px rgb(var(--acc-rgb) / .75)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail{overflow:hidden auto;scrollbar-width:none}
/* кружок наверху не нужен: ученик показан внизу, в блоке аккаунта */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-me{display:none}
/* «Полезное»: база знаний, канал, поддержка */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-extra{order:4;display:flex;flex-direction:column;gap:4px;margin-top:22px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-extra::before{content:"Полезное";height:10px;padding:0 0 12px 12px;white-space:nowrap;font:500 10px/1 var(--f-d);
  letter-spacing:.2em;text-transform:uppercase;color:transparent;transition:color .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:hover .rail-extra::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:focus-within .rail-extra::before{color:var(--dim)}
/* аккаунт внизу, как у Ковальской: кружок с буквами, имя, «Профиль и настройки», «Выйти» */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc{order:9;display:flex;flex-direction:column;gap:6px;margin-top:auto;padding-top:14px;box-shadow:inset 0 1px 0 var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc-me{display:flex;align-items:center;gap:12px;padding:4px 0 4px 2px;border-radius:14px;white-space:nowrap;
  text-decoration:none;color:var(--ink);transition:background .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc-me:hover{background:rgba(255,255,255,.05)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc-av{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  font:700 13px/1 var(--f-d);color:#0D1430;background:var(--sq-grad);box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc-t{display:flex;flex-direction:column;gap:3px;min-width:0;opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc-t b{max-width:150px;overflow:hidden;text-overflow:ellipsis;font:600 14px/1.2 var(--f-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc-t small{font:400 12px/1.2 var(--f-t);color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:hover .rail-acc-t,:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail:focus-within .rail-acc-t{opacity:1;transform:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-acc form{margin:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-out{width:100%;border:0;background:none;cursor:pointer;font:inherit;text-align:left}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rail-out:hover{color:var(--red)}

/* ---------- главная ---------- */
/* вместо баннера с фото: большая надпись, как заголовок на обложке урока */
:is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> h1.sr){position:relative;display:flex;flex-direction:column}
:is([class*=tema-grafit],[class*=tema-svetlyj]) main > h1.sr,:is([class*=tema-grafit],[class*=tema-svetlyj]) main > p.sr{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
:is([class*=tema-grafit],[class*=tema-svetlyj]) main > p.sr{order:0;align-self:flex-start;margin:4px 0 14px;padding:8px 13px 7px;border-radius:10px;
  font:700 11px/1.15 var(--f-d);letter-spacing:.03em;color:var(--acc-ink);background:var(--acc);
  box-shadow:0 0 0 1px rgb(var(--hi-rgb) / .5),0 14px 50px -12px rgb(var(--acc-rgb) / .7)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) main > h1.sr{order:1;max-width:100%;margin:0 0 30px;
  font:900 clamp(34px,4.6vw,72px)/.95 var(--f-d);letter-spacing:-.025em;text-transform:uppercase;color:#F4F5F7}
:is([class*=tema-grafit],[class*=tema-svetlyj]) main > .g-news{order:2}
:is([class*=tema-grafit],[class*=tema-svetlyj]) main > .g-wrap{order:3}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .bn{display:none}

:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-wrap{grid-template-columns:minmax(0,1fr) clamp(300px,24vw,350px);gap:20px 24px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-main,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-side,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-verh{gap:20px}

/* продолжить: главная плашка с синей кромкой и синей кнопкой */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip{color:var(--ink);border-radius:var(--r-card);background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
/* значок в квадратике, как у карточек-цифр Ковальской: синий градиент, тёмный рисунок */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .card::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay::before{content:"";flex:none;width:52px;height:52px;border-radius:15px;
  background:var(--sq-ico) center/24px 24px no-repeat,var(--sq-grad);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65),0 14px 30px -14px rgb(var(--acc-rgb) / .8)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go{grid-template-columns:auto minmax(0,1fr) auto;padding:24px 26px 24px 24px;gap:22px;
  background:radial-gradient(70% 140% at 0% 0%,rgb(var(--acc-rgb) / .14),transparent 60%),var(--card);
  box-shadow:inset 0 0 0 1px rgb(var(--acc-rgb) / .3);
  --sq-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050A1C' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 4.6L18.5 9.5l-4.6 1.9L12 16l-1.9-4.6L5.5 9.5l4.6-1.9z'/%3E%3Cpath d='M19 15l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8z'/%3E%3C/svg%3E")}
:is([class*=tema-grafit],[class*=tema-svetlyj]) a.g-go:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px rgb(var(--acc-rgb) / .55)}
/* до старта потока: самый заметный блок главной. Дата из настроек потока, рядом что сделать сейчас */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start{display:flex;align-items:flex-start;gap:22px;padding:28px 28px 26px 24px;border-radius:var(--r-card);color:var(--ink);
  background:radial-gradient(70% 140% at 0% 0%,rgb(var(--acc-rgb) / .14),transparent 60%),var(--card);box-shadow:inset 0 0 0 1px rgb(var(--acc-rgb) / .3),var(--shadow,0 0 0 transparent);
  --sq-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050A1C' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='15' rx='3'/%3E%3Cpath d='M4 10.5h16M8.5 3v4M15.5 3v4'/%3E%3C/svg%3E")}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-t{min-width:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-h{margin:10px 0;font:600 clamp(28px,3.2vw,42px)/1.08 var(--f-d);letter-spacing:-.035em;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-s{margin:0;font-size:16px;line-height:1.5;color:var(--soft)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-do{display:grid;gap:6px;margin:12px 0 0;padding:0;list-style:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-do li{position:relative;margin:0;padding-left:18px;font-size:15.5px;line-height:1.45;color:var(--soft)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-do li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-do a{font-weight:600;color:var(--acc-text);text-decoration:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start-do a:hover{text-decoration:underline}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go-t{gap:8px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go-h{font:600 19px/1.3 var(--f-d);letter-spacing:-.025em;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go-s{font-size:14px;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go-mesto{font:600 16px/1.3 var(--f-t);font-variant-numeric:tabular-nums;color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-play{width:60px;height:60px;color:var(--acc-ink);background:var(--acc);box-shadow:0 12px 40px -12px rgb(var(--acc-rgb) / .8);transition:transform .2s,background .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) a.g-go:hover .g-play{transform:scale(1.06);background:var(--acc-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay{justify-content:flex-start;padding:24px 28px 24px 24px;
  --sq-ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050A1C' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='3'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E")}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay > div:first-of-type{flex:1;min-width:240px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay h3{font:600 19px/1.3 var(--f-d);letter-spacing:-.025em;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay p{color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay .btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay-note{color:var(--soft)!important}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-lost{padding:22px 28px 14px;border-radius:var(--r-card)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-lost-h{font:600 19px/1.3 var(--f-d);letter-spacing:-.025em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-lost-s{color:var(--soft)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-lost-go{color:var(--acc-text)}

/* карточки разделов: графит, метка недели таблеткой, 3D-предмет в углу */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:18px;margin-top:14px}
/* подпись «Программа» фиксированной высоты: календарь спущен ровно на неё, поэтому его верх вровень с первой карточкой */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards::before{content:"Программа";grid-column:1/-1;display:flex;align-items:center;gap:12px;height:14px;margin-bottom:-4px;
  font:500 10.5px/1.3 var(--f-d);letter-spacing:.18em;text-transform:uppercase;color:var(--muted);
  padding-left:2px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc{min-height:268px;padding:26px 26px 24px 28px;border-radius:var(--r-card);color:var(--ink);
  background:radial-gradient(55% 60% at 88% 88%,rgba(255,255,255,.055),transparent 70%),var(--card);
  box-shadow:inset 0 0 0 1px var(--line);transition:transform .25s ease,box-shadow .25s ease}
/* карточек нечётное число: последняя на всю ширину, чтобы рядом не оставалось пустоты */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc:last-child:nth-child(odd){grid-column:1/-1}
:is([class*=tema-grafit],[class*=tema-svetlyj]) a.gc:hover{transform:translateY(-3px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.17),0 30px 60px -36px rgba(0,0,0,.95)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-eb{align-self:flex-start;max-width:none;margin:0 0 20px;padding:7px 12px;border-radius:999px;
  font:500 12.5px/1.2 var(--f-t);letter-spacing:0;text-transform:none;color:var(--acc-text);background:var(--acc-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-t{max-width:64%;font:600 clamp(19px,1.5vw,23px)/1.2 var(--f-d);letter-spacing:-.035em;text-transform:none;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-tail{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-sub{max-width:58%;margin-top:10px;font-size:14.5px;line-height:1.45;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-sub.gc-flag{color:#FFB1AB}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-foot{max-width:60%;gap:14px;padding-top:22px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-prog{width:min(200px,100%);font:500 12.5px/1 var(--f-t);color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-prog .bar{height:6px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-prog .bar rect.bg{fill:#2E2E2E}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-prog .bar rect.fg{fill:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-ico{right:-3%;bottom:-6%;width:42%;max-width:220px;filter:drop-shadow(0 24px 30px rgba(0,0,0,.75))}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc.off{background:var(--card-2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc.off .gc-t{color:#8A8A8A}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc.off .gc-tail{color:#7A7A7A}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc.off .gc-eb{color:#7A7A7A;background:rgba(255,255,255,.05)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc.off .gc-sub{color:#707070}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .gc.off .gc-ico{opacity:.3;filter:grayscale(1)}

/* «Перейти»: тонкая таблетка, на наведении синяя; закрытая: серая с замком */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pill{min-width:0;height:40px;padding:0 16px 0 18px;border-radius:999px;font:600 14px/1 var(--f-t);letter-spacing:0;text-transform:none;
  color:var(--ink);background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px var(--line-2);transition:background .2s,color .2s,box-shadow .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pill:not(.off)::after{content:"";width:14px;height:14px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .2s ease}
:is([class*=tema-grafit],[class*=tema-svetlyj]) a.gc:hover .pill{filter:none;color:var(--acc-ink);background:var(--acc);box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) a.gc:hover .pill::after{transform:translateX(3px)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pill.off{min-height:36px;height:auto;padding:9px 14px;gap:8px;color:#9A9A9A;font:500 13px/1.2 var(--f-t);letter-spacing:0;
  background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pill.off svg{color:#7A7A7A}

/* правая колонка */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-btns{gap:12px}
@media (min-width:1021px){:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-side{margin-top:42px}}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kanal,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-chat{display:flex;align-items:center;justify-content:center;gap:10px;height:60px;border-radius:999px;
  font:600 16px/1 var(--f-t);letter-spacing:0;text-transform:none;box-shadow:none;transition:background .2s,transform .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-chat{color:var(--acc-ink);background:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-chat:hover{background:var(--acc-hi);filter:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kanal{color:var(--ink);background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kanal:hover{background:rgba(255,255,255,.06);filter:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-chat::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kanal::before{content:"";width:20px;height:20px;flex:none;background:currentColor;
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-chat::before{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a7.5 7.5 0 0 1-11 6.6L4 20l1.4-4.5A7.5 7.5 0 1 1 20 12z'/%3E%3C/svg%3E")}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kanal::before{
  --ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 4L3 11l6 2.5M21 4l-3 16-9-6.5M21 4L9 13.5V19l3-3'/%3E%3C/svg%3E")}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza{display:grid;grid-template-columns:minmax(0,1fr) 120px;grid-template-rows:auto 1fr auto;align-items:start;gap:6px 12px;
  min-height:190px;padding:24px 22px 22px 26px;border-radius:var(--r-card);text-align:left;color:var(--ink);
  background:radial-gradient(60% 70% at 90% 60%,rgba(255,255,255,.05),transparent 70%),var(--card);box-shadow:inset 0 0 0 1px var(--line);transition:transform .25s,box-shadow .25s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.17)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza-h{grid-column:1;grid-row:1;font:600 18px/1.2 var(--f-d);letter-spacing:-.03em;text-transform:none;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza img{grid-column:2;grid-row:1/4;align-self:center;width:130px;max-width:none;margin:0;filter:drop-shadow(0 20px 24px rgba(0,0,0,.7))}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza-s{grid-column:1;grid-row:2;font:400 14px/1.45 var(--f-t);letter-spacing:0;text-transform:none;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza-go{grid-column:1;grid-row:3;margin-top:8px;font:600 14px/1 var(--f-t);letter-spacing:0;text-transform:none;color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza-go svg{width:18px;height:14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza:hover .g-baza-go{color:var(--acc-hi)}

/* календарь */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kal{border-radius:var(--r-card);padding:24px 22px 22px;color:var(--ink);background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-n{font-family:var(--f-d)!important;font-weight:600!important;font-size:16px;letter-spacing:-.02em;text-transform:none;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-a{color:var(--soft);background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-a:hover{color:var(--ink);background:rgba(255,255,255,.06)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-a.off{opacity:.3}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-wd{font:500 11px/1 var(--f-t);letter-spacing:.06em;text-transform:uppercase;color:var(--dim)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-d{font:500 13.5px/1 var(--f-t);color:#DADADA}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-d.today{color:var(--acc-ink);font-weight:700;background:var(--acc);box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-d.ev-open:not(.today){box-shadow:inset 0 0 0 1px var(--acc-line);color:#fff}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-d.ev-open::after{background:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-d.ev-razbor::before{background:#fff}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-d.today.ev-open::after,:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-d.today.ev-razbor::before{background:var(--acc-ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-ev.on .kal-d{box-shadow:0 0 0 2px var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-pop{border-radius:16px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line-2),0 22px 50px -18px rgba(13,20,48,.5)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-pop > b{font:600 14px/1.25 var(--f-d);letter-spacing:-.02em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-pop li::before{background:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kal-pop li.razbor::before{background:var(--ink)}

/* полосы внизу */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-home{gap:14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip{min-height:84px;padding:18px 24px 18px 30px;transition:transform .25s,box-shadow .25s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.17)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip-h{font:600 clamp(17px,1.5vw,20px)/1.2 var(--f-d);letter-spacing:-.03em;text-transform:none;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip-a{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-stars span{width:32px;height:32px;margin-left:-8px;color:var(--acc);background:#202020;box-shadow:0 0 0 2px var(--card)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-stars svg{width:14px;height:14px;fill:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip-s{color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip-go{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:var(--soft);
  box-shadow:inset 0 0 0 1px var(--line-2);transition:color .2s,background .2s,box-shadow .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip-go svg{width:18px;height:18px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip:hover .g-strip-go{color:var(--acc-ink);background:var(--acc);box-shadow:none}

/* ---------- подсказка «Установить на телефон»: только на телефоне, показывает prilozhenie.js ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint{position:relative;order:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:18px 44px 18px 20px;border-radius:20px;color:var(--ink);background:var(--card);box-shadow:inset 0 0 0 1px var(--line-2),var(--shadow,none)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint[hidden],:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint [hidden]{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint h3{margin:0 0 6px;font:600 16px/1.3 var(--f-d);letter-spacing:-.02em;color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint p{margin:0;font-size:14px;line-height:1.5;color:var(--soft)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint a{color:var(--acc-text);text-decoration:underline}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint-x{position:absolute;top:8px;right:8px;width:36px;height:36px;border:0;border-radius:50%;background:none;cursor:pointer;font:400 22px/1 var(--f-t);color:var(--muted)}
@media (min-width:641px){:is([class*=tema-grafit],[class*=tema-svetlyj]) .pwa-hint{display:none}}

/* ---------- кружок «Спросить куратора»: кнопка как «Урок пройден», панель как плашка. Положение и раскрытие в vid.css ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kur-btn{color:var(--fill-ink);background:var(--btn-grad);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 18px 34px -14px rgb(var(--acc-rgb) / .75);transition:background .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kur-btn:hover{background:var(--btn-grad-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kur-panel{padding:16px 12px 12px;border-radius:22px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line-2),0 30px 60px -24px rgba(13,20,48,.5)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kur-h{margin:0 0 10px 10px;font:600 15px/1.25 var(--f-d);letter-spacing:-.02em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kur-i{font:500 14.5px/1.3 var(--f-t);transition:background .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kur-i:hover{background:var(--acc-wash)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .kur-sq{color:var(--acc-text);background:var(--acc-wash);box-shadow:inset 0 0 0 1px rgb(var(--acc-rgb) / .22)}

/* ---------- поиск: поле и кнопка в строку, найденное плашкой без полоски снизу (полоски Алина убрала) ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-f .input{border-radius:999px;padding-inline:22px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-pusto-h{font:600 18px/1.25 var(--f-d);letter-spacing:-.02em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-pusto a{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) mark{color:inherit;background:rgb(var(--acc-rgb) / .16)}
/* места в расшифровке под найденным уроком: время и отрывок, нажатие ведёт на эту секунду */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-mesta{display:grid;gap:2px;margin:6px 0 10px 62px;padding:0;list-style:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-mesto{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:baseline;min-height:44px;padding:10px 12px;border-radius:12px;
  text-decoration:none;color:var(--soft);font-size:14px;line-height:1.45;overflow-wrap:anywhere;touch-action:manipulation;transition:background .15s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-mesto:hover{color:var(--ink);background:rgb(var(--acc-rgb) / .06)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-mesto:focus-visible{outline:2px solid var(--acc);outline-offset:-2px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-vremya{font-weight:600;font-variant-numeric:tabular-nums;color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-otryvok b{font-weight:600;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-esche{padding:2px 12px 4px 86px;font-size:13px;color:var(--muted)}

/* ---------- раздел с записями: ближайший разбор и пустой раздел ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-live{padding:20px 22px;border-radius:20px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-live-t{font:600 18px/1.25 var(--f-d);letter-spacing:-.02em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-live .btn{display:inline-flex;align-items:center;gap:8px;color:var(--fill-ink);background:var(--btn-grad)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-live .btn:hover{background:var(--btn-grad-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-live .btn svg{width:16px;height:16px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-pusto{padding:20px 22px;border-radius:20px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-pusto p{font-size:16px}

/* список уроков модуля: номер, название, строка описания, статус. Закрытый урок без ссылки */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-lock{margin-bottom:14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row{grid-template-columns:44px minmax(0,1fr) auto 36px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-t{display:block;min-width:0}
/* обложка урока в списке модуля: номер или галочка в углу обложки */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row.s-ob{grid-template-columns:176px minmax(0,1fr) auto 36px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-ob{position:relative;display:block}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-ob img{display:block;width:100%;height:auto;border-radius:12px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-ob .l-num{position:absolute;left:8px;bottom:8px}
@media (max-width:640px){:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row.s-ob{grid-template-columns:104px minmax(0,1fr) 36px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row.s-ob .ur-row-st{grid-column:2}}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-s{display:block;margin-top:4px;font-size:14px;line-height:1.4;color:var(--muted)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-mesto{display:block;margin-top:4px;font:600 15px/1.35 var(--f-t);font-variant-numeric:tabular-nums;color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-st{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-st .chip{white-space:nowrap}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-st .chip svg{width:13px;height:13px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-st .l-meta{margin:0;font-size:13px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row.off{grid-template-columns:44px minmax(0,1fr) auto;background:var(--card-2);box-shadow:inset 0 0 0 1px var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row.off .l-num{color:var(--muted);background:rgb(var(--acc-rgb) / .05);box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row.off .l-title{color:var(--muted)}

/* ---------- страница «Расписание» ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-h1 em{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-dw{font:500 10.5px/1.3 var(--f-d);letter-spacing:.14em;color:var(--dim)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-wl b{font:600 14px/1.2 var(--f-d);letter-spacing:-.01em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c{border-radius:16px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c b{font:600 22px/1 var(--f-d);letter-spacing:-.03em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c small{font:600 10.5px/1.1 var(--f-t);letter-spacing:.03em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c.op{color:var(--acc-ink);background:var(--fill-grad)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c.ef{color:var(--ink);background:rgb(var(--acc-rgb) / .08);box-shadow:inset 0 0 0 2px rgb(var(--acc-rgb) / .55)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c.ef small{color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c.today{outline-color:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-lg i{background:var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-lg i.ef{background:rgb(var(--acc-rgb) / .08);box-shadow:inset 0 0 0 2px rgb(var(--acc-rgb) / .55)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-lg i.dd{background:var(--ink)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-week{margin-top:30px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-week-eb{font:500 10.5px/1.3 var(--f-d);letter-spacing:.18em;text-transform:uppercase;color:var(--acc-text)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-week-eb .chip{font:600 12px/1 var(--f-t);letter-spacing:0;text-transform:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-week-t{margin-top:8px;font:600 clamp(17px,1.5vw,20px)/1.25 var(--f-d);letter-spacing:-.02em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row{border:0;border-radius:20px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-d b{font:600 26px/1.1 var(--f-d);letter-spacing:-.03em}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-kogda .chip{font-size:12px;padding:3px 9px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row .rp-t{font:600 16px/1.3 var(--f-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-go .btn{color:var(--fill-ink);background:var(--btn-grad)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-go .btn:hover{background:var(--btn-grad-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row.next{box-shadow:inset 0 0 0 2px var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row:target{box-shadow:inset 0 0 0 2px var(--acc)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row.past{background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row.past .rp-d b{font-weight:500}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row.past .rp-t{font-weight:500}

/* ---------- адаптив ---------- */
}
@media (max-width:1020px){
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kanal,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-chat{height:56px;font-size:15px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza{min-height:0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kal{max-width:none}
}
@media (max-width:640px){
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .page.has-rail{margin-left:0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main{padding:20px 16px 56px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .preview-bar .in{padding:8px 16px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .foot{padding:22px 16px 28px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-list .l-right,:is([class*=tema-grafit],[class*=tema-svetlyj]) .razdel-list .l-right{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .tabbar-uch{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));padding:6px;border-radius:24px;
    background:#141414;box-shadow:inset 0 0 0 1px var(--line),0 20px 40px -16px rgba(0,0,0,.9)}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .tabbar-uch a,:is([class*=tema-grafit],[class*=tema-svetlyj]) .tabbar-uch summary{color:#9A9A9A;border-radius:18px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .tabbar-uch a.on,:is([class*=tema-grafit],[class*=tema-svetlyj]) .tabbar-uch summary.on,:is([class*=tema-grafit],[class*=tema-svetlyj]) .tab-esche[open] summary{color:var(--ink);background:rgba(255,255,255,.08)}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .tab-new{background:#E5484D}
  html.uch:is([class*=tema-grafit],[class*=tema-svetlyj]) body::after{background-size:900px auto,20px 20px;background-position:right -280px top 20px,0 0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main > p.sr{margin:0 0 12px;font-size:10px;padding:7px 11px 6px;border-radius:9px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main > h1.sr{width:min-content;margin-bottom:22px;font-size:clamp(34px,10.6vw,46px)}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-news{background:var(--red-wash);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(255,138,132,.25)}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go{grid-template-columns:minmax(0,1fr) auto;padding:18px 16px 18px 20px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start::before,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-pay::before{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-start{padding:20px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go .g-eb::before{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .card{min-width:0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-go-h{font-size:18px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-lost{padding:16px 16px 8px 20px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-play{width:50px;height:50px}
  /* главная: сначала то, что можно нажать сейчас, база знаний и календарь рядом, закрытые модули внизу короткими строками */
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-wrap{gap:14px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards{display:contents}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards::before{order:5;margin:6px 0 -2px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards:has(.gc.off)::after{content:"Дальше по программе";order:10;margin:6px 0 -2px;padding-left:2px;font:500 10.5px/1.3 var(--f-d);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza{order:7;grid-template-columns:minmax(0,1fr) 92px;padding:18px 14px 16px 20px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-baza img{width:96px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kal{order:8}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .z-home{order:9;margin-top:0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .gc{order:6;min-height:176px;padding:20px 20px 18px 22px;border-radius:20px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-eb{margin-bottom:12px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-foot{padding-top:14px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .gc.off{order:11;flex-flow:row wrap;align-items:center;justify-content:space-between;gap:6px 10px;min-height:0;padding:14px 16px;border-radius:18px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards .gc.off .gc-t{flex:0 0 100%;order:-1;max-width:none;font-size:15.5px;line-height:1.25}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards .gc.off .gc-eb{max-width:none;margin:0;padding:0;background:none;font-size:12.5px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards .gc.off :is(.gc-sub,.gc-ico){display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards .gc.off .gc-foot{max-width:none;margin:0;padding:0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards .gc.off .pill.off{min-height:0;padding:0;gap:5px;background:none;box-shadow:none;font-size:12.5px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-cards .gc.off .pill.off svg{width:12px;height:12px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-t{font-size:22px;max-width:66%}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .gc-ico{width:44%;right:-6%;bottom:-8%}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip{padding:16px 16px 16px 20px;min-height:72px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip-h{font-size:20px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-strip-go{width:36px;height:36px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .g-kal{padding:20px 14px 16px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .mod-head .eyebrow.blue{font-size:12.5px;padding:8px 12px 7px;border-radius:10px}
  /* чат: поле ввода на первом экране. Заголовок короче, список по высоте экрана, пояснения под чатом */
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> .chat){display:flex;flex-direction:column}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> .chat) > .eyebrow{margin-bottom:8px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> .chat) > h1{font-size:26px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> .chat) > :is(.chat,#niz){order:1}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> .chat) > .chat{margin-top:12px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> .chat) > .lead{order:2;font-size:15px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) main:has(> .chat) > .chat-note{order:3;margin-top:12px;font-size:14px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .chat-list{min-height:200px;max-height:none;height:calc(100vh - 318px - env(safe-area-inset-bottom));height:calc(100dvh - 318px - env(safe-area-inset-bottom))}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .chat:has(> .chat-empty:not([hidden])) .chat-list{height:auto;min-height:0;padding:0}
  /* кнопки формы на телефоне во всю ширину */
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .z-row .btn,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-ask .btn,:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-self .btn{width:100%;justify-content:center}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-mesta{margin-left:0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-mesto{grid-template-columns:56px minmax(0,1fr);padding:10px 8px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .poisk-esche{padding-left:74px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-row{border-radius:18px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-d b{font-size:22px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c{border-radius:12px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .rp-c b{font-size:15px}
  /* строки-плашки: значок, название, статус под названием. Стрелка не нужна, вся плашка нажимается */
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row,:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row,:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row.off{grid-template-columns:36px minmax(0,1fr);gap:8px 12px;padding:14px;align-items:start}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-num{width:36px;height:36px;border-radius:11px;font-size:12px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-num svg{width:18px;height:18px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-title{font-size:15px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row .l-right{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .lesson-row .l-right .chip,:is([class*=tema-grafit],[class*=tema-svetlyj]) .g-matl .lesson-row .l-right .lock{white-space:normal}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-st{grid-column:2;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 10px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-st:empty{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-row-st .chip{white-space:normal}
}

/* ---------- страница урока: спокойно и только основное. Заголовок, видео, справа тайм-коды, под видео описание,
   что сделать, материалы, «Урок пройден», соседние уроки. Без карточек: разделы отделяет тонкая линия. Текст от 17 точек ---------- */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok{--u-t:#14171F;--u-m:#4A4F5C;--u-l:rgba(13,20,48,.13);--u-s:#2850D2;--u-z:#E3E9FF;--u-g:#0B7A4B;--u-a:#8F5400;--u-r:#B3261E;
  --u-k:linear-gradient(180deg,#3D6BF5,#2848CF);--u-k-hi:linear-gradient(180deg,#4A76FA,#2F55DA);color:var(--u-t);font:400 18px/1.55 var(--f-t)}
.tema-svetlyj-mono .urok{--u-s:#0D0F14;--u-z:#ECEEF1;--u-k:var(--btn-grad);--u-k-hi:var(--btn-grad-hi)}
html.uch:has(.urok) .foot{font-size:17px;color:#4A4F5C}
html.uch:has(.urok) .foot-links a{color:#4A4F5C}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-nazad{display:inline-flex;align-items:flex-start;gap:10px;min-height:44px;margin:0 0 6px;padding:8px 0;font:500 18px/1.4 var(--f-t);color:var(--u-s);text-decoration:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-nazad svg{flex:none;width:18px;height:18px;margin-top:3px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-nazad:hover span{text-decoration:underline;text-underline-offset:3px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-chernovik{margin:0 0 10px;font-size:17px;color:var(--u-a)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-head{display:block;margin:0 0 22px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-head h1{margin:0;font:600 32px/1.18 var(--f-d);letter-spacing:-.03em;color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-podzag{margin:6px 0 0;font-size:18px;line-height:1.4;color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .ur-h{margin:0 0 18px;font:600 20px/1.3 var(--f-d);letter-spacing:-.025em;text-transform:none;color:var(--u-t)}

/* сетка: в левом столбце строка над видео, видео с описанием и всё остальное. Справа тайм-коды рядом с видео */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-setka{display:grid;grid-template-columns:minmax(0,1fr) 380px;column-gap:44px;align-items:start}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-nad{grid-column:1;grid-row:1}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-video{grid-column:1;grid-row:2;min-width:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kody{grid-column:2;grid-row:2 / span 2;min-width:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-niz{grid-column:1;grid-row:3;min-width:0}

/* где остановился: одна заметная строка прямо над видео. Найденное место: подпись там же */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-resume{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin:0 0 16px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-resume[hidden]{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-resume p{margin:0;font:600 22px/1.25 var(--f-t);font-variant-numeric:tabular-nums;color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .ur-resume .btn{min-height:52px;padding:0 28px;border-radius:26px;font:600 18px/1 var(--f-t);color:#fff;background:var(--u-k);box-shadow:inset 0 1px 0 rgba(255,255,255,.28)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .ur-resume .btn:hover{background:var(--u-k-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) :is(.ur-nashli,.ur-zapusk){margin:0 0 14px;font-size:17px;line-height:1.45;font-variant-numeric:tabular-nums;color:var(--u-m)}

/* видео и обложка, пока видео нет */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .player{border-radius:20px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .player-empty{font-size:17px;line-height:1.4}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .player-empty b{margin-bottom:4px;font:600 18px/1.3 var(--f-t);text-transform:none;color:#fff}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player:has(> .player-empty){aspect-ratio:auto;height:clamp(170px,18vw,220px)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player:has(> .player-empty.s-ob){aspect-ratio:16/9;height:auto}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .player-empty.s-ob{place-items:end start;padding:0;text-align:left}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player-empty.s-ob img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player-empty.s-ob > div{position:relative;margin:14px;padding:10px 16px;border-radius:12px;background:rgb(10 13 24/.82);color:#fff}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .player-empty > div > span{display:block}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-summary{margin:26px 0 0;font-size:18px;line-height:1.5;color:var(--u-t)}

/* тайм-коды столбцом: время синее, тонкая линия между строками */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kody ol{margin:0;padding:0;list-style:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kody li + li{border-top:1px solid var(--u-l)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kod{display:grid;grid-template-columns:72px minmax(0,1fr);gap:4px;align-items:baseline;width:100%;min-height:44px;padding:9px 0;border:0;background:none;color:var(--u-t);text-align:left;font:400 18px/1.5 var(--f-t);touch-action:manipulation;overflow-wrap:anywhere}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kody li:first-child .ur-kod{padding-top:2px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) button.ur-kod{cursor:pointer;transition:color .15s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) button.ur-kod:hover{color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) button.ur-kod:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:6px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kod-t{font-weight:600;font-variant-numeric:tabular-nums;color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) div.ur-kod .ur-kod-t{color:var(--u-m)}

/* переход из поиска: расшифровка с найденным местом */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-det{margin:28px 0 0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-rash{display:grid;gap:2px;max-height:min(60vh,540px);margin:0;padding:0;list-style:none;overflow-y:auto}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-rash:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:12px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-rash .ur-kod{padding:8px 10px;border-radius:10px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-rash li.on .ur-kod{background:var(--u-z)}

/* разделы под видео: тонкая линия сверху */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-niz > section,:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-niz > :is(section,details),:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kon{margin:40px 0 0;padding:36px 0 0;border:0;border-top:1px solid var(--u-l);border-radius:0;background:none;box-shadow:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-niz{display:block;max-width:none;margin:0}

/* что сделать после урока: номера */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-cheklist ol{display:grid;gap:12px;margin:0;padding:0;list-style:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-cheklist li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;align-items:start}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-cheklist i{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--u-z);font:600 17px/1 var(--f-t);color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-cheklist span{padding-top:2px}

/* текст из кабинета и вводные слова к заготовкам */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok :is(.ur-tekst,.ur-vvod) .prose,:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prose.ur-vvod{max-width:none;margin:0;font-size:18px;line-height:1.55;color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prose.ur-vvod{margin:0 0 12px;color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prose > :first-child{margin-top:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prose > :last-child{margin-bottom:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prose h3{font-size:18px;line-height:1.35}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prose h4{font:600 17px/1.35 var(--f-t)}

/* материалы списком: значок, название, кнопка. Заготовка ещё и тихо копируется */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .mats{max-width:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl{margin:0;padding:0;list-style:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl li{display:flex;align-items:center;gap:16px;padding:12px 0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl li + li{border-top:1px solid var(--u-l)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl-i{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--u-z);color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl-i svg{width:21px;height:21px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl-n{flex:1;min-width:0;font-weight:500;overflow-wrap:anywhere}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl-n small{margin-left:8px;font-size:17px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl-k{flex:none;display:flex;align-items:center;gap:6px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-sk{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:24px;background:#fff;box-shadow:inset 0 0 0 1.5px rgb(var(--acc-rgb) / .5);font:600 17px/1 var(--f-t);color:var(--u-s);text-decoration:none;touch-action:manipulation}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-sk:hover{background:#F4F6FF}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl .copy{min-height:48px;padding:0 14px;border:0;border-radius:24px;background:none;font:600 17px/1 var(--f-t);letter-spacing:0;color:var(--u-s);cursor:pointer;touch-action:manipulation}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl .copy:hover{text-decoration:underline;text-underline-offset:3px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl .copy.ok{color:var(--u-g)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl pre[hidden]{display:none}

/* «Урок пройден» и тихая ссылка на куратора */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kon{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-actions{display:block;margin:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-actions .btn{height:56px;padding:0 30px;border-radius:28px;font:600 18px/1 var(--f-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-actions .btn:not(.done){color:#fff;background:var(--u-k);box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 16px 30px -14px rgb(var(--acc-rgb) / .85)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-actions .btn:not(.done):hover{background:var(--u-k-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-actions .btn.done{color:var(--u-g);box-shadow:inset 0 0 0 1.5px rgb(11 122 75 / .45)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kurator{display:inline-flex;align-items:center;min-height:44px;font-size:18px;color:var(--u-s);text-decoration:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kurator:hover{text-decoration:underline;text-underline-offset:3px}

/* соседние уроки простыми ссылками */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn{display:grid;grid-template-columns:1fr 1fr;gap:32px;max-width:none;margin:36px 0 0;padding:28px 0 0;border-top:1px solid var(--u-l)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed{display:block;min-width:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--u-t);text-decoration:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn a.ur-sosed:hover{border:0;background:none;box-shadow:none;color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed small{display:flex;align-items:center;gap:7px;margin:0 0 5px;font:500 17px/1.3 var(--f-t);letter-spacing:0;text-transform:none;color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-sosed small svg{flex:none;width:15px;height:15px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-sosed b{display:block;font:500 18px/1.4 var(--f-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed.next{text-align:right}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed.next small{justify-content:flex-end}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed.off,:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed.off small{color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-sosed-why{display:block;margin-top:4px;font-size:17px;line-height:1.35;color:var(--u-m)}

/* задание и тест: простые блоки, форма и статус те же */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin:0 0 10px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec h3{margin:0;font:600 18px/1.4 var(--f-t);letter-spacing:0;color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .chip{padding:0;border:0;border-radius:0;background:none;box-shadow:none;font:600 17px/1.4 var(--f-t);letter-spacing:0;white-space:normal;color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .chip svg{width:16px;height:16px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .chip.green{color:var(--u-g)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .chip.amber{color:var(--u-a)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .chip.red{color:var(--u-r)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .chip.blue{color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec :is(.small,small,.z-sub,.z-who,.z-text,.z-krit,.field label,.z-file-err,.z-draft-when){font-size:17px;line-height:1.45}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec :is(.muted,.z-who,.field label){color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .z-who b,:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-text{color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sub{margin:6px 0 16px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-krit + .z-sub{margin-top:14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-prose{margin:10px 0 0;max-width:none;font-size:18px;line-height:1.55;color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-krit{margin:14px 0 0;padding:0;border:0;border-radius:0;background:none;color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-note{font-size:17px;line-height:1.45}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-note.ok{color:var(--u-g)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-note.err{color:var(--u-r)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sent{margin:18px 0;padding:0 0 0 16px;border:0;border-left:3px solid var(--u-l);border-radius:0;background:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-answer{margin-top:14px;padding:0 0 0 16px;border-radius:0;background:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-form .input{font-size:18px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-file::file-selector-button{min-height:44px;margin-right:14px;padding:0 16px;border:1px solid var(--u-l);border-radius:22px;background:#fff;font:600 17px/1 var(--f-t);color:var(--u-t);cursor:pointer}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-area{min-height:120px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-result{margin:4px 0 14px;padding:0;border:0;border-radius:0;background:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-result b{font-size:18px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-marks li{padding:10px 0;border:0;border-radius:0;background:none;font-size:17px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-marks li + li{border-top:1px solid var(--u-l)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-marks li,:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-marks li.ok,:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-marks li.bad{color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-marks .z-mark-a{color:var(--u-g)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-marks li.bad .z-mark-a{color:var(--u-r)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-result.pass b{color:var(--u-g)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-result.fail b{color:var(--u-a)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-q legend{font-size:18px;font-weight:500}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-qn{min-width:32px;height:32px;font-size:17px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-opt input{width:20px;height:20px;margin-top:3px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-quiz > .btn{align-self:flex-start}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-opt{font-size:18px;line-height:1.45}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .btn{min-height:52px;padding:0 26px;font:600 17px/1.2 var(--f-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .btn:not(.ghost,.done,.danger){color:#fff;background:var(--u-k)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .btn:not(.ghost,.done,.danger):hover{background:var(--u-k-hi)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec .btn.ghost{color:var(--u-t)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prompt figcaption{font-size:17px;letter-spacing:0;text-transform:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prompt pre{font-size:17px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prompt .copy{min-height:44px;padding:0 12px;font:600 17px/1 var(--f-t);color:var(--u-s);background:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .prompt .copy.ok{color:var(--u-g)}
/* галочка одной строкой */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec.z-galka{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:6px 14px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-galka .z-sec-h{display:contents}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-galka .z-sec-h .chip{grid-column:2;grid-row:1}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-galka .z-sec-h .chip:not(.green){display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec.z-galka h3{grid-column:1;grid-row:1;font-weight:500}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-galka .z-self{grid-column:3;grid-row:1;margin:0}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-galka > :is(.z-prose,.z-krit,.z-note){grid-column:1/-1;margin:2px 0 6px}
/* вопросы к уроку, если они на платформе: сворачиваются сами, это отдельная настройка */
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str > summary{display:flex;align-items:center;gap:8px;min-height:50px;margin:0;padding:8px 0;cursor:pointer;list-style:none;font:500 18px/1.35 var(--f-t);letter-spacing:0;color:var(--u-t);touch-action:manipulation}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str > summary:hover{color:var(--u-s)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str > summary::-webkit-details-marker{display:none}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str > summary::after{content:"";flex:none;width:8px;height:8px;margin:-3px 4px 0 auto;border:solid var(--u-m);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);transition:transform .2s}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str[open] > summary::after{margin-top:3px;transform:rotate(-135deg)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str > summary:focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:8px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str-n{font-size:17px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str-b{padding:2px 0 20px;font-size:18px;line-height:1.5;color:var(--u-m)}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-str-b.z-qs{gap:10px}
:is([class*=tema-grafit],[class*=tema-svetlyj]) .z-qs .z-ask{margin:4px 0 0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}

@media (max-width:1280px){
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .player-empty.s-ob .ur-esche{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-setka{grid-template-columns:minmax(0,1fr) 320px;column-gap:32px}
}
@media (max-width:1020px){
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-setka{display:block}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kody{margin:22px 0 0}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kody li:first-child .ur-kod{padding-top:9px}
}
@media (max-width:640px){
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-nazad-n{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-head{margin-bottom:16px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-head h1{font-size:27px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .ur-h{font-size:19px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .player{border-radius:14px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .ur-resume .btn{width:100%}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .player-empty.s-ob > div{margin:8px;padding:8px 12px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-summary{margin-top:20px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kod{grid-template-columns:68px minmax(0,1fr)}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-niz > section,:is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-niz > :is(section,details),:is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kon{margin-top:32px;padding-top:28px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-fl li{gap:12px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-sk{padding:0 16px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-zag{flex-wrap:wrap}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-zag .ur-fl-n{flex:1 1 calc(100% - 54px)}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-zag .ur-fl-k{flex:1 1 100%;justify-content:flex-start;margin-top:-4px;padding-left:40px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kon{display:block}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .l-actions .btn{width:100%;height:58px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .ur-kurator{display:flex;justify-content:center;margin-top:10px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn{grid-template-columns:minmax(0,1fr);gap:22px;margin-top:32px;padding-top:26px}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn > span:empty{display:none}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed.next{text-align:left}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .pn .ur-sosed.next small{justify-content:flex-start}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .urok .z-sec.z-galka{grid-template-columns:minmax(0,1fr) auto}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .z-galka .z-sec-h .chip{grid-column:1;grid-row:2}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .z-galka .z-self{grid-column:2}
  :is([class*=tema-grafit],[class*=tema-svetlyj]) .z-galka .z-self .btn{width:auto}
}


/* Geologica: заголовки (OFL, текст лицензии fonts/OFL-geologica.txt). Inter для текста подключает tema-grafit.css. */
@font-face{font-family:"Geologica";src:url(../fonts/geologica-cyrillic-wght-normal.woff2?v=a7dc739efa0c) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Geologica";src:url(../fonts/geologica-latin-wght-normal.woff2?v=b14f1edee95a) format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

html.uch.tema-polnoch{
  /* Н3: фон листа, карточки, линии, текст. Три ступени поверхности и ни одной больше. */
  --bg:#0B0D12; --card:#151922; --card-2:#11151E; --line:#262C38; --line-2:#39414F;
  --ink:#EEF1F6; --soft:#C3CAD5; --muted:#8E97A6; --dim:#5B6473;
  /* электрик — единственный акцент; на кнопке тёмные буквы: белые на #4F7DFF не держат 4,5:1 */
  --acc:#4F7DFF; --acc-hi:#7FA6FF; --acc-ink:#06060E; --acc-text:#7FA6FF;
  --acc-rgb:79 125 255; --hi-rgb:127 166 255; --glow-rgb:47 53 71;
  --acc-wash:#16203C; --acc-line:rgb(var(--acc-rgb) / .45);
  --sq-grad:linear-gradient(145deg,#7FA6FF 0%,#4F7DFF 100%); --fill-grad:linear-gradient(180deg,#4F7DFF,#3B66E8); --fill-ink:#06060E;
  --btn-grad:linear-gradient(180deg,#7FA6FF 0%,#4F7DFF 100%); --btn-grad-hi:linear-gradient(180deg,#9DBBFF 0%,#6690FF 100%);
  /* смысловые цвета: зелёный — пройдено, жёлтый — срок, красный — нельзя */
  --green:#3BD07A; --green-wash:rgba(59,208,122,.1); --amber:#E0A33B; --amber-wash:rgba(224,163,59,.1);
  --red:#FF6B66; --red-wash:rgba(255,107,102,.09); --black:#06060E;
  --f-d:"Geologica","Inter",system-ui,sans-serif;
  /* радиусы, версия 2: 8 — чипы и статусы, 10 — номер в квадрате и мелкие плитки, 12 — кнопки, поля, пункты меню, 18 — карточки, 24 — шапки страниц */
  --r-s:8px; --r-n:10px; --r:12px; --r-card:18px; --r-hero:24px;
  /* поверхность карточки как на тарифах (Обучение и тарифы v5): сверху светлее, кромка сверху светлее */
  --surf:linear-gradient(180deg,#1A1F2B 0%,#141821 100%); --surf-low:linear-gradient(180deg,#141821 0%,#0F131B 100%);
  --edge:inset 0 1px 0 rgb(255 255 255 / .05),inset 0 0 0 1px #2A303C; --edge-hi:inset 0 1px 0 rgb(255 255 255 / .08),inset 0 0 0 1px #4A5363;
  --lift:0 30px 60px -34px rgb(0 0 0 / .95);
  /* ширина меню слева: раскрыто на больших экранах, узкой полосой на средних */
  --nav-w:252px; --nav-sw:72px;
  background:#0B0D12;
}
html.uch.tema-polnoch body{font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}

/* фон: свечение-носитель G1 — пятно сверху слева на базе #06060E, низ уходит в тьму; сверху тонкое зерно, как на обложках */
html.uch.tema-polnoch body::before{background:
    radial-gradient(1100px 640px at 8% -16%,#2F3547 0%,transparent 64%),
    radial-gradient(760px 460px at 100% -12%,rgb(var(--acc-rgb) / .09) 0%,transparent 70%),
    linear-gradient(180deg,#0B0D12 0%,#06060E 78%)}
html.uch.tema-polnoch body::after{background:url(../img/vid/shum.svg?v=5b3906a7a645) 0 0/320px 320px;opacity:.04;mix-blend-mode:overlay;-webkit-mask-image:none;mask-image:none}

/* ---------- текст ---------- */
html.uch.tema-polnoch :is(h1,h2,h3,.display){font-family:var(--f-d);font-weight:800;letter-spacing:-.03em;text-transform:none;color:var(--ink)}
html.uch.tema-polnoch h1{font-size:clamp(30px,3.2vw,44px);line-height:1.06}
html.uch.tema-polnoch h2{font-size:clamp(22px,2vw,28px);line-height:1.15}
html.uch.tema-polnoch h3{font-weight:700;letter-spacing:-.02em}
html.uch.tema-polnoch .prose :is(h2,h3){font-family:var(--f-d);font-weight:700;letter-spacing:-.02em}
html.uch.tema-polnoch .lead{color:var(--soft)}
html.uch.tema-polnoch .muted{color:var(--muted)}
html.uch.tema-polnoch a{text-underline-offset:3px}
html.uch.tema-polnoch ::selection{background:rgb(var(--acc-rgb) / .4);color:#fff}
html.uch.tema-polnoch :focus-visible{outline:2px solid var(--acc);outline-offset:2px}
/* подпись разрядкой: «МОДУЛЬ 1», «ПРОГРАММА». На телефоне от 15 точек и разрядка меньше, иначе строка не влезает */
html.uch.tema-polnoch :is(.eyebrow,.g-eb){gap:10px;font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
html.uch.tema-polnoch .eyebrow.blue{color:var(--acc-text);background:none;padding:0}

/* ---------- кнопки, плашки, поля: радиус 12, чипы 8 ---------- */
html.uch.tema-polnoch .btn{min-height:52px;padding:0 24px;border:0;border-radius:var(--r);font:600 16px/1 var(--f-t);letter-spacing:0;text-transform:none;
  color:var(--acc-ink);background:var(--acc);box-shadow:inset 0 1px 0 rgb(255 255 255 / .28),0 18px 40px -22px rgb(var(--acc-rgb) / .9);transition:background .2s,transform .2s,box-shadow .2s}
html.uch.tema-polnoch .btn:hover{background:var(--acc-hi);color:var(--acc-ink);transform:translateY(-1px)}
html.uch.tema-polnoch .btn.small{min-height:44px;padding:0 18px;font-size:15px;border-radius:var(--r)}
html.uch.tema-polnoch .btn.ghost{color:var(--ink);background:transparent;border:0;box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .btn.ghost:hover{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px #4A5363}
html.uch.tema-polnoch .btn.done{color:var(--green);background:var(--green-wash);border:0;box-shadow:inset 0 0 0 1px rgba(59,208,122,.4)}
html.uch.tema-polnoch .btn.danger{color:var(--red);background:var(--red-wash);border:0;box-shadow:inset 0 0 0 1px rgba(255,107,102,.4)}
html.uch.tema-polnoch :is(.chip,.tag){border-radius:var(--r-s)}
html.uch.tema-polnoch :is(.pill,.input){border-radius:var(--r)}
html.uch.tema-polnoch .chip{min-height:28px;padding:4px 10px;font:600 13px/1.2 var(--f-t);letter-spacing:.02em}
html.uch.tema-polnoch .input,html.uch.tema-polnoch textarea.input,html.uch.tema-polnoch select.input{min-height:52px;padding:14px 16px;border:0;border-radius:var(--r);
  font:400 16px/1.4 var(--f-t);color:var(--ink);background:#0B0D12;box-shadow:inset 0 0 0 1px var(--line-2);transition:box-shadow .2s}
html.uch.tema-polnoch .input::placeholder{color:#7B8494}
html.uch.tema-polnoch .input:hover{box-shadow:inset 0 0 0 1px #4A5363}
html.uch.tema-polnoch .input:focus{outline:0;box-shadow:inset 0 0 0 1px var(--acc),0 0 0 3px rgb(var(--acc-rgb) / .22)}
html.uch.tema-polnoch .field label{font:500 15px/1.3 var(--f-t);color:var(--soft)}
html.uch.tema-polnoch .error{border-radius:var(--r)}
html.uch.tema-polnoch .bar rect.bg{fill:#262C38}
html.uch.tema-polnoch .bar rect.fg{fill:var(--acc)}
html.uch.tema-polnoch progress{accent-color:var(--acc)}

/* номер в квадрате, как «01» на обложках уроков: тонкая рамка, Geologica, цифры одной ширины */
html.uch.tema-polnoch :is(.gc-n,.l-num){display:inline-grid;place-items:center;flex:none;min-width:40px;height:40px;padding:0 6px;border-radius:var(--r-n);
  font:800 15px/1 var(--f-d);letter-spacing:-.01em;font-variant-numeric:tabular-nums;color:var(--ink);background:rgba(11,13,18,.6);box-shadow:inset 0 0 0 1.5px #4A5363}

/* ---------- меню слева: на большом экране раскрыто с подписями, на среднем — полоса значков, раскрывается при наведении ---------- */
html.uch.tema-polnoch .page.has-rail{margin-left:calc(var(--nav-sw) + 12px)}
html.uch.tema-polnoch .rail{left:0;top:0;bottom:0;width:var(--nav-sw);padding:22px 12px 16px;border-radius:0;
  background:rgba(8,9,14,.94);box-shadow:inset -1px 0 0 var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
html.uch.tema-polnoch .rail:hover,html.uch.tema-polnoch .rail:focus-within{width:var(--nav-w);box-shadow:inset -1px 0 0 var(--line-2),30px 0 80px -30px rgba(0,0,0,.95)}
html.uch.tema-polnoch .rail-logo{height:76px;border-radius:0}
/* аватарка канала обучения (Телеграм, набор «Бирка»): вместо нарисованного знака, по просьбе Тимофея 20.11 */
html.uch.tema-polnoch .rail-logo::before{content:"";position:absolute;left:16px;top:22px;width:40px;height:40px;border-radius:12px;
  background:url(../img/vid/avatarka.webp?v=f3a7f7ba835b) center/cover no-repeat;box-shadow:inset 0 0 0 1px rgb(255 255 255 / .1),0 10px 24px -12px rgb(var(--acc-rgb) / .7)}
/* аватарка канала (рисует .rail-logo::before) и слово «СТРУКТУРА»; logo.svg остался светлым стилям */
html.uch.tema-polnoch .rail::before{content:"СТРУКТУРА";height:40px;padding:0 0 0 52px;background:none;
  font:800 17px/40px var(--f-d);letter-spacing:-.01em}
html.uch.tema-polnoch .rail::after{content:"Обучение";margin-top:-12px;padding-left:52px;font:600 11px/1 var(--f-t);letter-spacing:.18em}
html.uch.tema-polnoch .rail-list{gap:2px;margin-top:30px}
html.uch.tema-polnoch :is(.rail-list,.rail-extra)::before{padding:0 0 10px 12px;font:600 11px/1 var(--f-t);letter-spacing:.18em}
html.uch.tema-polnoch .rail-extra{gap:2px;margin-top:24px}
html.uch.tema-polnoch .rail-i{gap:12px;height:44px;padding:0 0 0 4px;border-radius:var(--r);color:var(--muted)}
html.uch.tema-polnoch .rail-sq{width:40px!important;height:40px!important}
html.uch.tema-polnoch .rail-tip{font:500 15px/1 var(--f-t)}
html.uch.tema-polnoch .rail-i:hover{color:var(--ink);background:rgba(255,255,255,.045)}
html.uch.tema-polnoch .rail-i.on{color:var(--ink);background:var(--acc-wash);box-shadow:inset 2px 0 0 var(--acc)}
html.uch.tema-polnoch .rail-i.on .rail-sq{color:var(--acc-text)}
html.uch.tema-polnoch .rail-new{border-radius:var(--r);background:var(--red-wash);box-shadow:inset 0 0 0 1px rgba(255,107,102,.3)}
html.uch.tema-polnoch .rail-new > span:first-child{border-radius:999px;background:#E5484D}
html.uch.tema-polnoch .rail-acc{padding-top:12px}
html.uch.tema-polnoch .rail-acc-me{border-radius:var(--r);padding:4px 0 4px 4px}
html.uch.tema-polnoch .rail-acc-av{width:36px;height:36px;margin:2px;border-radius:50%;font:800 13px/1 var(--f-d);color:var(--acc-text);background:var(--acc-wash);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .rail-acc-t small{font-size:13px}
html.uch.tema-polnoch .rail-out:hover{color:var(--red);background:var(--red-wash)}
@media (min-width:1280px){
  html.uch.tema-polnoch .page.has-rail{margin-left:var(--nav-w)}
  html.uch.tema-polnoch .rail,html.uch.tema-polnoch .rail:hover,html.uch.tema-polnoch .rail:focus-within{width:var(--nav-w);padding:24px 16px 18px;box-shadow:inset -1px 0 0 var(--line)}
  html.uch.tema-polnoch .rail::before{color:var(--ink)}
  html.uch.tema-polnoch .rail-logo::before{top:24px}
  html.uch.tema-polnoch .rail::after{color:var(--muted)}
  html.uch.tema-polnoch :is(.rail-list,.rail-extra)::before{color:var(--muted)}
  html.uch.tema-polnoch :is(.rail-tip,.rail-acc-t){opacity:1;transform:none}
}

/* ---------- телефон: нижняя панель вместо меню ---------- */
@media (max-width:640px){
  html.uch.tema-polnoch main :is(h1,h2){overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
  html.uch.tema-polnoch .page.has-rail{margin-left:0}
  html.uch.tema-polnoch .tabbar-uch{left:0;right:0;bottom:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-radius:0;
    background:rgba(8,9,14,.94);box-shadow:inset 0 1px 0 var(--line);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
  html.uch.tema-polnoch .tabbar-uch a,html.uch.tema-polnoch .tabbar-uch summary{min-height:58px;gap:5px;border-radius:var(--r);color:var(--muted);font:500 15px/1 var(--f-t)}
  html.uch.tema-polnoch .tabbar-uch svg{width:24px;height:24px}
  html.uch.tema-polnoch .tabbar-uch a.on,html.uch.tema-polnoch .tabbar-uch summary.on,html.uch.tema-polnoch .tab-esche[open] summary{color:var(--ink);background:var(--acc-wash);box-shadow:inset 0 2px 0 var(--acc)}
  html.uch.tema-polnoch .tabbar-uch a.on svg,html.uch.tema-polnoch .tabbar-uch summary.on svg{color:var(--acc-text)}
  html.uch.tema-polnoch .tab-esche-p{border-radius:var(--r-card);background:#11151E;box-shadow:inset 0 0 0 1px var(--line-2),0 -30px 60px -20px rgba(0,0,0,.9)}
  html.uch.tema-polnoch .tabbar-uch .tab-esche-p a{border-radius:var(--r);font-size:17px;box-shadow:none;background:none}
  html.uch.tema-polnoch .tab-new{border-radius:999px}
  html.uch.tema-polnoch main{padding:18px 16px 120px}
}

/* ---------- кружок «Спросить куратора»: квадрат акцента, как кнопка ---------- */
html.uch.tema-polnoch .kur summary,html.uch.tema-polnoch .kur > a{border-radius:16px!important}
/* на компьютере и планшете он в меню слева, над блоком ученика: справа поверх календаря и карточек его больше нет.
   На низком экране места в меню нет: остаётся справа внизу */
@media (min-width:641px) and (min-height:720px){
  /* bottom: над линией блока ученика тот же отступ, что под ней до аватара (18 px): блок 110 px + 18 (Тимофей, 21.11) */
  html.uch.tema-polnoch .kur{left:12px;right:auto;bottom:146px;width:48px;height:48px;z-index:45}
  html.uch.tema-polnoch .kur-panel{left:0;right:auto}
}
@media (min-width:1280px) and (min-height:720px){
  html.uch.tema-polnoch .kur{left:16px;width:calc(var(--nav-w) - 32px)}
  html.uch.tema-polnoch .kur-btn{justify-content:flex-start;gap:12px;padding:0 16px}
  html.uch.tema-polnoch .kur-btn::after{content:"Спросить куратора";font:600 15px/1 var(--f-t);white-space:nowrap}
  /* хвостик облачка тянет значок вниз: поднимаем на полтора пикселя, чтобы стоял по центру строки (Тимофей, 21.11) */
  html.uch.tema-polnoch .kur-btn .kur-ico svg{transform:translateY(-1.5px)}
}

/* ---------- подвал ---------- */
html.uch.tema-polnoch .foot{max-width:1320px;padding:26px 40px 40px;color:var(--muted);font-size:14px;border-top:1px solid var(--line)}
html.uch.tema-polnoch .foot-links a{color:var(--muted)}
html.uch.tema-polnoch .foot-links a:hover{color:var(--ink)}
@media (max-width:640px){html.uch.tema-polnoch .foot{padding:22px 16px 120px;font-size:15px}}

/* ========== ВХОД: слева название и форма, справа сцена ========== */
html.uch.tema-polnoch .auth{display:grid;grid-template-columns:minmax(420px,560px) minmax(0,1fr);min-height:100vh;min-height:100dvh;padding:0;place-items:stretch;
  background:radial-gradient(720px 520px at 0% 0%,#232838 0%,transparent 70%),#0B0D12}
html.uch.tema-polnoch .auth-box{grid-column:1;grid-row:1;display:flex;flex-direction:column;justify-content:center;gap:0;max-width:none;width:100%;
  padding:56px clamp(32px,4.4vw,72px);border-radius:0;overflow:visible;background:transparent;box-shadow:none}
/* над формой знак и название строкой: большое слово уже на сцене справа */
html.uch.tema-polnoch .a-verh{display:grid;grid-template-columns:48px auto;grid-template-rows:auto auto;column-gap:14px;row-gap:5px;align-items:center;justify-content:start;justify-items:start;
  padding:0 0 36px;background:none;text-decoration:none}
html.uch.tema-polnoch .a-verh::before{content:"";grid-column:1;grid-row:1/3;width:48px;height:48px;border-radius:14px;
  background:url(../img/vid/avatarka.webp?v=f3a7f7ba835b) center/cover no-repeat;box-shadow:inset 0 0 0 1px rgb(255 255 255 / .1),0 14px 30px -14px rgb(var(--acc-rgb) / .7)}
html.uch.tema-polnoch .a-verh b{grid-column:2;grid-row:1;align-self:end;font:800 24px/1 var(--f-d);letter-spacing:-.02em;text-transform:uppercase;color:var(--ink);background:none;-webkit-text-fill-color:currentColor;white-space:nowrap}
html.uch.tema-polnoch .a-verh span{grid-column:2;grid-row:2;align-self:start;font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
html.uch.tema-polnoch .a-niz{gap:18px;padding:32px 0 0;border-top:1px solid var(--line)}
html.uch.tema-polnoch .auth-box h1{margin:0;font:800 30px/1.1 var(--f-d);letter-spacing:-.03em;color:var(--ink)}
html.uch.tema-polnoch .auth-box .lead{margin:8px 0 0;font-size:16px;line-height:1.5;color:var(--soft)}
html.uch.tema-polnoch .auth-box .eyebrow{display:flex;min-height:0;margin:0 0 12px;padding:0;background:none;font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--acc-text)}
html.uch.tema-polnoch .a-ak{color:var(--acc-text)}
html.uch.tema-polnoch .a-sh{align-items:flex-end}
html.uch.tema-polnoch .a-nad{min-height:36px;padding:0 12px;border-radius:var(--r);background:var(--acc-wash);color:var(--acc-text);font:500 15px/1 var(--f-t);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .a-nad:hover{background:#1C2A50;color:#fff}
html.uch.tema-polnoch .auth-box form{gap:16px}
html.uch.tema-polnoch .auth-box .field{gap:8px}
html.uch.tema-polnoch .auth-box #password{padding-right:104px}
html.uch.tema-polnoch .pokaz-v{right:14px;bottom:7px;color:var(--acc-text);text-decoration:none;font-weight:600}
html.uch.tema-polnoch .pokaz-v:hover{color:#fff}
html.uch.tema-polnoch .auth-box .btn.wide{min-height:56px;margin-top:4px;font-size:17px}
html.uch.tema-polnoch .a-niz .a-zab{margin:0;text-align:left}
html.uch.tema-polnoch .auth-box .a-zab a{padding:6px 0;font-size:15px;color:var(--soft);text-decoration:underline;text-decoration-color:var(--line-2)}
html.uch.tema-polnoch .auth-box .a-zab a:hover{color:var(--ink);text-decoration-color:var(--acc)}
html.uch.tema-polnoch .auth-box .error{padding:12px 14px;font-size:15px;color:#FFB4B1;background:var(--red-wash);box-shadow:inset 0 0 0 1px rgba(255,107,102,.35)}
html.uch.tema-polnoch .auth-note{padding:12px 14px;border-radius:var(--r);background:var(--card-2);box-shadow:inset 0 0 0 1px var(--line);font-size:15px;color:var(--soft)}
html.uch.tema-polnoch .auth-box .d-check{border-radius:var(--r)}
html.uch.tema-polnoch .auth-box .d-links a{border-radius:var(--r)}
/* сцена (версия 3, 20.11): скруглённая панель, сверху огромное «СТРУКТУРА», под ним Алмаз — то же фото, что в шапке главной
   («лучше одну везде поставим»), волосы чуть заходят на низ букв. Мягкий синий свет за ним, зерно как на обложках. Внизу подпись школы и ник. */
html.uch.tema-polnoch .a-scena{grid-column:2;grid-row:1;position:relative;isolation:isolate;overflow:hidden;container-type:inline-size;margin:16px 16px 16px 0;border-radius:28px;
  background:
    radial-gradient(34% 28% at 50% 50%,rgb(var(--acc-rgb) / .36) 0%,rgb(var(--acc-rgb) / .11) 52%,transparent 78%),
    radial-gradient(90% 60% at 50% 0%,#1C2338 0%,transparent 70%),
    linear-gradient(180deg,#121726 0%,#0B0D12 58%,#06060E 100%);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .07),inset 0 0 0 1px #2A303C}
html.uch.tema-polnoch .a-scena::after{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;
  background:url(../img/vid/shum.svg?v=5b3906a7a645) 0 0/320px 320px;opacity:.06;mix-blend-mode:overlay}
html.uch.tema-polnoch .a-scena::before{content:"";position:absolute;inset:auto 0 0 0;z-index:2;height:34%;pointer-events:none;
  background:linear-gradient(180deg,transparent 0%,rgb(6 6 14 / .7) 62%,#06060E 100%)}
html.uch.tema-polnoch .a-slovo{position:absolute;z-index:0;left:0;right:0;top:12%;text-align:center;white-space:nowrap;
  font:800 15cqw/.8 var(--f-d);letter-spacing:-.055em;text-transform:uppercase;
  color:#EEF1F6;background:linear-gradient(180deg,#FFFFFF 0%,#DCE5FF 48%,#7FA6FF 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
/* по центру сцены голова, а не кадр: голова на фото на 30% ширины от левого края (Тимофей, 21.11) */
html.uch.tema-polnoch .a-almaz{display:block;position:absolute;z-index:1;left:50%;bottom:0;height:76%;aspect-ratio:609/760;transform:translateX(-30%);
  -webkit-mask-image:linear-gradient(90deg,#000 70%,transparent 97%);mask-image:linear-gradient(90deg,#000 70%,transparent 97%)}
html.uch.tema-polnoch .a-almaz img{display:block;width:100%;height:100%;object-fit:contain;object-position:bottom}
html.uch.tema-polnoch .a-reika{position:absolute;z-index:4;left:36px;right:36px;bottom:30px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding-top:16px;border-top:1px solid rgba(162,170,184,.22);font:600 12px/1.3 var(--f-t);letter-spacing:.2em;text-transform:uppercase;color:#C3CAD5}
html.uch.tema-polnoch .a-kto{display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;letter-spacing:.12em;color:var(--ink);
  background:rgb(11 13 18 / .6);box-shadow:inset 0 0 0 1px #39414F}
@media (max-width:900px){
  html.uch.tema-polnoch .auth{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
  html.uch.tema-polnoch .a-scena{grid-column:1;grid-row:1;height:clamp(340px,52vh,440px);margin:12px 12px 0;border-radius:24px}
  html.uch.tema-polnoch .a-slovo{top:8%;font-size:14.6cqw}
  html.uch.tema-polnoch .a-almaz{height:86%;bottom:-4%;transform:translateX(-30%)}
  html.uch.tema-polnoch .a-scena::before{height:46%}
  html.uch.tema-polnoch .a-reika{left:16px;right:16px;bottom:16px;justify-content:center;padding-top:12px;font-size:15px;letter-spacing:.06em}
  html.uch.tema-polnoch .a-kto{display:none}
  html.uch.tema-polnoch .auth-box{grid-column:1;grid-row:2;justify-content:flex-start;margin-top:0;position:relative;z-index:1;padding:26px 28px 40px}
  /* название уже крупно на сцене: строку со знаком оставляем читалке экрана */
  html.uch.tema-polnoch .a-verh{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html.uch.tema-polnoch .a-niz{padding-top:0;gap:16px;border-top:0}
  html.uch.tema-polnoch .auth-box h1{font-size:26px}
}
@media (max-width:640px){
  html.uch.tema-polnoch .a-scena{height:min(400px,52vh);min-height:330px}
  html.uch.tema-polnoch .auth-box{padding:24px 20px 40px}
  html.uch.tema-polnoch .a-verh span,html.uch.tema-polnoch .auth-box .eyebrow{font-size:15px;letter-spacing:.06em}
}

/* ========== ГЛАВНАЯ ========== */
/* шапка (версия 3, 20.11): «ОБУЧЕНИЕ АЛМАЗА СУЛТАНОВА», огромное «СТРУКТУРА», недели, модули, уроки; справа Алмаз в мягком синем свете.
   Фото у правого края и выходит за верх шапки, на слово не заходит. h1 и p внутри шапки видимы (у app.css .sr прячет текст для читалки). */
html.uch.tema-polnoch .g-hero{position:relative;isolation:isolate;container-type:inline-size;display:flex;align-items:flex-end;min-height:clamp(300px,25vw,360px);margin:36px 0 26px;
  padding:40px clamp(28px,3.4vw,52px) 38px;border-radius:var(--r-hero);
  background:
    radial-gradient(19% 56% at 85% 66%,rgb(var(--acc-rgb) / .32) 0%,rgb(var(--acc-rgb) / .09) 54%,transparent 80%),
    radial-gradient(60% 130% at 0% 0%,#222A3E 0%,transparent 62%),
    linear-gradient(120deg,#151B2A 0%,#0E121B 52%,#0B0D12 100%);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .08),inset 0 0 0 1px #2A303C,0 40px 80px -50px rgb(0 0 0 / .95)}
html.uch.tema-polnoch .g-hero::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  background:url(../img/vid/shum.svg?v=5b3906a7a645) 0 0/320px 320px;opacity:.06;mix-blend-mode:overlay}
html.uch.tema-polnoch .g-hero .sr{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
html.uch.tema-polnoch .g-hero-t{position:relative;z-index:1;display:flex;flex-direction:column;align-items:flex-start;min-width:0;max-width:100%}
html.uch.tema-polnoch .g-hero p.sr{display:flex;align-items:center;gap:12px;margin:0 0 18px;font:600 13px/1.3 var(--f-t);letter-spacing:.2em;text-transform:uppercase;color:var(--soft)}
html.uch.tema-polnoch .g-hero p.sr::before{content:"";width:28px;height:2px;border-radius:2px;background:var(--acc)}
/* градиент рисуется только в рамке слова, а последняя буква с отрицательной разрядкой вылезает за рамку: справа запас,
   иначе «А» обрезана (Тимофей, 21.11) */
html.uch.tema-polnoch .g-hero h1.sr{margin:0 -.12em 0 -.04em;padding:0 .12em 0 0;font:800 clamp(56px,11.2cqw,128px)/.8 var(--f-d);letter-spacing:-.055em;text-transform:uppercase;white-space:nowrap;
  color:#EEF1F6;background:linear-gradient(180deg,#FFFFFF 0%,#E4EAF6 52%,#9FB2D6 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
html.uch.tema-polnoch .g-hero-s{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 0}
html.uch.tema-polnoch .g-hero-s span{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;font:600 14px/1 var(--f-t);color:var(--soft);
  background:rgb(11 13 18 / .5);box-shadow:inset 0 0 0 1px #39414F;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.uch.tema-polnoch .g-hero-s .g-hero-ned{color:var(--acc-ink);background:var(--acc);box-shadow:inset 0 1px 0 rgb(255 255 255 / .28)}
html.uch.tema-polnoch .g-hero-ph{display:block;position:absolute;z-index:2;right:2.6cqw;bottom:0;height:calc(100% + 40px);aspect-ratio:609/760;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,#000 72%,transparent 98%);mask-image:linear-gradient(90deg,#000 72%,transparent 98%)}
html.uch.tema-polnoch .g-hero-ph img{display:block;width:100%;height:100%;object-fit:contain;object-position:bottom}
/* планшет, узкий компьютер и телефон: Алмаз сверху справа, подпись, слово и цифры внизу поверх затемнения.
   Уже 1100 точек фото рядом со словом не помещается, не задев «А» */
@media (max-width:1100px){
  html.uch.tema-polnoch .g-hero{flex-direction:column;align-items:stretch;justify-content:flex-end;min-height:420px;margin:30px 0 20px;padding:24px 20px 22px;
    background:
      radial-gradient(46% 36% at 74% 34%,rgb(var(--acc-rgb) / .32) 0%,rgb(var(--acc-rgb) / .09) 54%,transparent 80%),
      radial-gradient(80% 60% at 0% 0%,#222A3E 0%,transparent 64%),
      linear-gradient(180deg,#151B2A 0%,#0E121B 56%,#0B0D12 100%)}
  html.uch.tema-polnoch .g-hero::before{content:"";position:absolute;inset:auto 0 0 0;z-index:2;height:56%;border-radius:0 0 var(--r-hero) var(--r-hero);pointer-events:none;
    background:linear-gradient(180deg,transparent 0%,rgb(11 13 18 / .78) 46%,#0B0D12 100%)}
  html.uch.tema-polnoch .g-hero-t{z-index:3}
  html.uch.tema-polnoch .g-hero p.sr{margin-bottom:14px}
  html.uch.tema-polnoch .g-hero h1.sr{font-size:min(16.6cqw,92px)}
  html.uch.tema-polnoch .g-hero-s{margin-top:18px}
  html.uch.tema-polnoch .g-hero-ph{right:4cqw;top:-30px;bottom:auto;height:min(340px,92cqw)}
}
html.uch.tema-polnoch main{max-width:1320px;padding:40px 40px 88px}

html.uch.tema-polnoch .g-wrap{grid-template-columns:minmax(0,1fr) clamp(300px,24vw,344px);gap:24px}
@media (min-width:1021px){
  html.uch.tema-polnoch .g-wrap{grid-template-rows:auto auto 1fr}
  html.uch.tema-polnoch .g-wrap > .g-verh{grid-column:1;grid-row:1/3}
  html.uch.tema-polnoch .g-wrap > .g-baza{grid-column:2;grid-row:1;align-self:start}
  html.uch.tema-polnoch .g-wrap > .g-side{grid-column:2;grid-row:2/4;align-self:start}
  html.uch.tema-polnoch .g-wrap > .g-main{grid-column:1;grid-row:3}
}
html.uch.tema-polnoch :is(.g-main,.g-side,.g-verh){gap:16px}

/* «Продолжить»: обложка урока справа, слева что и где, квадрат «играть» акцентом */
html.uch.tema-polnoch .g-go{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:20px;min-height:0;padding:28px;border-radius:var(--r-card);overflow:hidden;
  background:radial-gradient(80% 140% at 0% 0%,rgb(var(--acc-rgb) / .12),transparent 62%),linear-gradient(180deg,#1A1F2B,#141821);box-shadow:var(--edge);text-decoration:none;color:var(--ink)}
html.uch.tema-polnoch .g-go::before{display:none}
html.uch.tema-polnoch .g-go:has(> .g-go-ob){grid-template-columns:minmax(0,1fr) minmax(260px,46%);grid-template-rows:1fr auto;align-items:stretch;padding:0;min-height:236px}
html.uch.tema-polnoch .g-go-ob{grid-column:2;grid-row:1/3;position:relative;display:block;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgb(0 0 0 / .65) 20%,#000 46%);mask-image:linear-gradient(90deg,transparent 0%,rgb(0 0 0 / .65) 20%,#000 46%)}
/* у обложки слева своё название: в «Продолжить» показываем только сцену справа, обложка увеличена от правого края */
html.uch.tema-polnoch .g-go-ob img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:100% 50%;transform:scale(1.45);transform-origin:100% 50%;transition:transform .5s ease}
html.uch.tema-polnoch a.g-go:hover .g-go-ob img{transform:scale(1.5)}
html.uch.tema-polnoch .g-go:has(> .g-go-ob) .g-go-t{grid-column:1;grid-row:1/3;align-self:stretch;justify-content:center;padding:28px 0 28px 30px}
html.uch.tema-polnoch .g-go-t{display:flex;flex-direction:column;gap:10px;min-width:0}
html.uch.tema-polnoch .g-go .g-eb{color:var(--acc-text);line-height:1.5}
html.uch.tema-polnoch .g-go-h{font:800 clamp(24px,2.3vw,32px)/1.08 var(--f-d);letter-spacing:-.03em;color:var(--ink);text-wrap:balance}
html.uch.tema-polnoch .g-go-s{font:400 15px/1.45 var(--f-t);color:var(--muted)}
html.uch.tema-polnoch .g-go-mesto{font:600 16px/1.3 var(--f-t);color:var(--acc-text)}
html.uch.tema-polnoch .g-play{width:56px;height:56px;border-radius:16px;color:var(--acc-ink);background:var(--acc);box-shadow:0 18px 40px -16px rgb(var(--acc-rgb) / .9);transition:background .2s,transform .2s}
html.uch.tema-polnoch .g-play svg{width:22px;height:22px}
html.uch.tema-polnoch .g-go:has(> .g-go-ob) .g-play{grid-column:2;grid-row:2;justify-self:end;margin:0 22px 22px 0;position:relative;z-index:1}
html.uch.tema-polnoch a.g-go:hover{transform:none;box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch a.g-go:hover .g-play{background:var(--acc-hi);transform:translateY(-2px)}

/* «Если потерялись»: тихая подсказка с синей чертой слева */
html.uch.tema-polnoch .g-lost{padding:20px 24px 16px;border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge),inset 3px 0 0 var(--acc)}
html.uch.tema-polnoch .g-lost-h{font:700 19px/1.25 var(--f-d);letter-spacing:-.02em;color:var(--ink)}
html.uch.tema-polnoch .g-lost-s{margin-top:4px;font-size:15px;color:var(--soft)}
html.uch.tema-polnoch .g-lost-go{display:inline-flex;gap:8px;margin-top:6px;padding:6px 0;font:600 16px/1.3 var(--f-t);color:var(--acc-text);text-decoration:none}
html.uch.tema-polnoch .g-lost-go:hover{color:#fff}

/* доплата: жёлтым — это срок */
html.uch.tema-polnoch .g-pay{gap:18px 24px;padding:22px 24px;border-radius:var(--r-card);background:var(--surf);box-shadow:inset 0 1px 0 rgb(255 255 255 / .05),inset 0 0 0 1px rgba(224,163,59,.32),inset 3px 0 0 var(--amber)}
html.uch.tema-polnoch .g-pay::before{display:none}
html.uch.tema-polnoch .g-pay .g-eb{color:var(--amber)}
html.uch.tema-polnoch .g-pay h3{margin:6px 0 4px;font:700 20px/1.25 var(--f-d);letter-spacing:-.02em;color:var(--ink)}
html.uch.tema-polnoch .g-pay p{font-size:15px;color:var(--soft)}
html.uch.tema-polnoch .g-pay .btn{flex:none}

/* до старта потока */
html.uch.tema-polnoch .g-start{padding:28px;border-radius:var(--r-card);background:radial-gradient(80% 140% at 0% 0%,rgb(var(--acc-rgb) / .14),transparent 62%),var(--surf);box-shadow:inset 0 1px 0 rgb(255 255 255 / .06),inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .g-start::before{display:none}
html.uch.tema-polnoch .g-start .g-eb{color:var(--amber)}
html.uch.tema-polnoch .g-start-h{font:800 clamp(30px,3vw,44px)/1.04 var(--f-d);letter-spacing:-.035em}
html.uch.tema-polnoch .g-start-do li::before{border-radius:50%;background:var(--acc)}

/* программа: подпись разрядкой и тонкая линия до края, как рейка на обложке */
html.uch.tema-polnoch .g-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
html.uch.tema-polnoch .g-cards::before{content:"Программа";display:flex;align-items:center;gap:14px;height:20px;margin:0 0 4px;padding:0;font:600 12px/1 var(--f-t);letter-spacing:.18em;color:var(--muted)}
html.uch.tema-polnoch .g-cards::after{content:none}

/* карточка модуля: номер в квадрате, подпись, название; предмет справа в круге холодного света, срезан краем */
html.uch.tema-polnoch .gc{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:flex-start;min-height:300px;padding:24px 24px 22px;border-radius:var(--r-card);overflow:hidden;
  color:var(--ink);text-decoration:none;
  background:radial-gradient(48% 56% at 84% 70%,rgb(var(--acc-rgb) / .16),transparent 72%),linear-gradient(180deg,#1A1F2B,#141821);
  box-shadow:var(--edge);transition:box-shadow .25s,transform .25s}
html.uch.tema-polnoch a.gc:hover{transform:translateY(-3px);box-shadow:var(--edge-hi),var(--lift)}
html.uch.tema-polnoch .gc-n{position:relative;z-index:2;margin:0 0 18px}
html.uch.tema-polnoch .gc-eb{position:relative;z-index:2;margin:0 0 8px;padding:0;background:none;border-radius:0;
  font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--acc-text)}
html.uch.tema-polnoch .gc-t{position:relative;z-index:2;max-width:64%;margin:0;font:800 clamp(21px,1.6vw,25px)/1.08 var(--f-d);letter-spacing:-.03em;color:var(--ink);text-wrap:balance;overflow-wrap:normal;word-break:normal;hyphens:manual}
html.uch.tema-polnoch .gc-tail{color:var(--ink)}
html.uch.tema-polnoch .gc-sub{position:relative;z-index:2;max-width:52%;margin-top:10px;font:400 15px/1.45 var(--f-t);color:var(--muted)}
html.uch.tema-polnoch .gc-sub.gc-flag{color:#FFB4B1}
html.uch.tema-polnoch .gc-foot{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:14px;max-width:54%;margin-top:auto;padding-top:20px}
html.uch.tema-polnoch .gc-prog{display:flex;align-items:center;gap:10px;width:min(190px,100%);font:600 13px/1 var(--f-t);font-variant-numeric:tabular-nums;color:var(--soft)}
html.uch.tema-polnoch .gc-prog span{flex:none}
html.uch.tema-polnoch .gc-prog .bar{flex:1;height:4px}
html.uch.tema-polnoch .gc-ico{position:absolute;z-index:1;right:5%;bottom:-3%;width:auto;max-width:40%;height:72%;object-fit:contain;object-position:right bottom;
  filter:drop-shadow(0 28px 34px rgba(0,0,0,.85));transition:transform .4s ease}
html.uch.tema-polnoch a.gc:hover .gc-ico{transform:translateY(-4px) rotate(-1deg)}
/* предметы разной формы: широкие ниже, высокие выше */
html.uch.tema-polnoch .ik-karta .gc-ico{height:48%;max-width:46%;right:2%;bottom:6%}
html.uch.tema-polnoch .ik-lestnica .gc-ico{height:56%;max-width:42%;right:3%;bottom:2%}
html.uch.tema-polnoch :is(.ik-zerkalo,.ik-profil,.ik-bokaly) .gc-ico{height:80%}
html.uch.tema-polnoch :is(.ik-duhi,.ik-shahmaty,.ik-klyuchi) .gc-ico{height:62%}

/* «Перейти» — строка со стрелкой, на наведении карточки синяя */
html.uch.tema-polnoch .pill{height:auto;min-height:0;padding:8px 0;gap:8px;border-radius:0;background:none;box-shadow:none;font:600 15px/1.2 var(--f-t);color:var(--ink)}
html.uch.tema-polnoch a.gc:hover .pill{color:var(--acc-text);background:none;box-shadow:none}
/* закрыто до даты: дата жёлтым с замком, карточка тише, предмет в тени */
html.uch.tema-polnoch .pill.off{min-height:30px;padding:6px 12px;gap:8px;border-radius:999px;font:600 13px/1.2 var(--f-t);letter-spacing:.02em;color:var(--amber);background:var(--amber-wash);box-shadow:inset 0 0 0 1px rgba(224,163,59,.3)}
html.uch.tema-polnoch .pill.off svg{width:14px;height:14px;color:var(--amber)}
html.uch.tema-polnoch .gc.off{background:var(--surf-low);box-shadow:inset 0 1px 0 rgb(255 255 255 / .03),inset 0 0 0 1px rgba(42,48,60,.75)}
html.uch.tema-polnoch .gc.off .gc-n{color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line-2)}
html.uch.tema-polnoch .gc.off .gc-eb{color:var(--muted)}
html.uch.tema-polnoch .gc.off :is(.gc-t,.gc-tail){color:#B9C0CC}
html.uch.tema-polnoch .gc.off .gc-sub{color:var(--muted)}
html.uch.tema-polnoch .gc.off .gc-ico{opacity:.42;filter:grayscale(.55) brightness(.75) drop-shadow(0 28px 34px rgba(0,0,0,.85))}
/* модуль пройден: зелёная полоса и галочка у номера */
html.uch.tema-polnoch .gc-n.s-ok{color:var(--green);box-shadow:inset 0 0 0 1.5px rgba(59,208,122,.6)}
html.uch.tema-polnoch .gc:has(> .gc-n.s-ok) .gc-prog .bar rect.fg{fill:var(--green)}
/* разделы (задания, разборы, эфиры, сертификат): короче, четыре в ряд на широком экране */
html.uch.tema-polnoch .gc:not(:has(> .gc-n)){min-height:200px;padding:20px 20px 18px}
html.uch.tema-polnoch .gc:not(:has(> .gc-n)) .gc-t{max-width:70%;font-size:22px}
html.uch.tema-polnoch .gc:not(:has(> .gc-n)) .gc-sub{max-width:60%;font-size:14.5px}
html.uch.tema-polnoch .gc:not(:has(> .gc-n)) .gc-foot{max-width:60%;padding-top:14px}
html.uch.tema-polnoch .gc:not(:has(> .gc-n)) .gc-ico{height:70%;max-width:40%;right:4%;bottom:-4%}
html.uch.tema-polnoch .gc:last-child:nth-child(odd){grid-column:auto}
@media (min-width:1500px){
  html.uch.tema-polnoch .g-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
  html.uch.tema-polnoch .gc:has(> .gc-n){grid-column:span 2}
}

/* правая колонка: база знаний, календарь, канал */
@media (min-width:1021px){html.uch.tema-polnoch .g-side{margin-top:0}}
html.uch.tema-polnoch .g-baza{position:relative;overflow:hidden;grid-template-columns:minmax(0,1fr) 116px;min-height:180px;padding:22px 18px 20px 22px;border-radius:var(--r-card);
  background:radial-gradient(60% 80% at 90% 60%,rgb(var(--acc-rgb) / .14),transparent 72%),linear-gradient(180deg,#1A1F2B,#141821);box-shadow:var(--edge)}
html.uch.tema-polnoch .g-baza:hover{transform:translateY(-2px);box-shadow:var(--edge-hi)}
html.uch.tema-polnoch .g-baza-h{font:800 21px/1.15 var(--f-d);letter-spacing:-.03em}
html.uch.tema-polnoch .g-baza-s{font-size:15px;color:var(--muted)}
html.uch.tema-polnoch .g-baza-go{font:600 15px/1 var(--f-t);color:var(--acc-text)}
html.uch.tema-polnoch .g-baza img{width:150px;margin-right:-26px;filter:drop-shadow(0 22px 26px rgba(0,0,0,.85))}
html.uch.tema-polnoch .g-kal{padding:20px 18px 18px;border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge)}
html.uch.tema-polnoch .kal-n{font:800 17px/1.2 var(--f-d)!important;letter-spacing:-.02em}
html.uch.tema-polnoch .kal-a{border-radius:var(--r-n);color:var(--soft);box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .kal-wd{font:600 11px/1 var(--f-t);letter-spacing:.12em;color:var(--muted)}
html.uch.tema-polnoch .kal-d{border-radius:var(--r-s);font:500 14px/1 var(--f-t);font-variant-numeric:tabular-nums;color:var(--soft)}
html.uch.tema-polnoch .kal-d.today{color:var(--acc-ink);font-weight:700;background:var(--acc);box-shadow:0 10px 24px -10px rgb(var(--acc-rgb) / .9)}
html.uch.tema-polnoch .kal-d.ev-open:not(.today){color:var(--ink);box-shadow:inset 0 0 0 1px var(--acc-line);background:rgb(var(--acc-rgb) / .08)}
html.uch.tema-polnoch .kal-d.ev-open::after{border-radius:50%;background:var(--acc-hi)}
html.uch.tema-polnoch .kal-d.ev-razbor::before{border-radius:50%;background:var(--amber)}
html.uch.tema-polnoch .kal-ev.on .kal-d{box-shadow:0 0 0 2px var(--acc)}
html.uch.tema-polnoch .kal-pop{border-radius:var(--r-card);background:#151922;box-shadow:inset 0 0 0 1px var(--line-2),0 24px 50px -20px rgba(0,0,0,.95)}
html.uch.tema-polnoch .kal-pop li::before{border-radius:50%}
html.uch.tema-polnoch .kal-pop li.razbor::before{background:var(--amber)}
html.uch.tema-polnoch :is(.g-kanal,.g-chat){height:56px;border-radius:14px;font:600 16px/1 var(--f-t)}
html.uch.tema-polnoch .g-kanal{color:var(--ink);background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .g-kanal:hover{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1px #4A5363}
html.uch.tema-polnoch .g-chat{color:var(--acc-ink);background:var(--acc)}
/* полосы внизу: напоминания и поддержка */
html.uch.tema-polnoch .z-home{gap:12px}
html.uch.tema-polnoch .g-strip{min-height:76px;padding:16px 18px 16px 24px;border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge)}
html.uch.tema-polnoch .g-strip:hover{transform:none;box-shadow:var(--edge-hi)}
html.uch.tema-polnoch .g-strip-h{font:800 19px/1.2 var(--f-d);letter-spacing:-.02em}
html.uch.tema-polnoch .g-strip-a{color:var(--acc-text)}
html.uch.tema-polnoch .g-strip-s{font-size:15px;color:var(--muted)}
html.uch.tema-polnoch .g-strip-go{border-radius:var(--r);color:var(--soft);box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .g-strip:hover .g-strip-go{color:var(--acc-ink);background:var(--acc);box-shadow:none}
html.uch.tema-polnoch .g-news{border-radius:var(--r-card)}
html.uch.tema-polnoch .pwa-hint{border-radius:var(--r-card);background:var(--surf);box-shadow:inset 0 0 0 1px var(--acc-line)}

@media (max-width:1020px){
  html.uch.tema-polnoch .g-wrap{grid-template-columns:minmax(0,1fr)}
  /* календарь перед программой, не в самом низу (Тимофей, 21.11) */
  html.uch.tema-polnoch .g-wrap > .g-verh{order:1}
  html.uch.tema-polnoch .g-wrap > .g-side{order:2}
  html.uch.tema-polnoch .g-wrap > .g-baza{order:3}
  html.uch.tema-polnoch .g-wrap > .g-main{order:4}
  html.uch.tema-polnoch .g-kal{order:4}
  html.uch.tema-polnoch :is(.g-kal,.g-baza){align-self:stretch;width:auto;max-width:none}
}
@media (max-width:640px){
  html.uch.tema-polnoch main{padding:18px 16px 120px}
  html.uch.tema-polnoch .g-eb{letter-spacing:.04em}
  html.uch.tema-polnoch .g-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px}
  html.uch.tema-polnoch .g-strip-h{grid-column:1;grid-row:1}
  html.uch.tema-polnoch .g-strip-s{grid-column:1;grid-row:2}
  html.uch.tema-polnoch .g-strip-go{grid-column:2;grid-row:1/3}
  html.uch.tema-polnoch .g-hero{min-height:440px;padding:22px 18px 20px}
  html.uch.tema-polnoch .g-hero p.sr{font-size:15px;letter-spacing:.06em}
  html.uch.tema-polnoch .g-hero-s{gap:6px}
  html.uch.tema-polnoch .g-hero-s span{min-height:32px;padding:0 12px;font-size:15px}
  html.uch.tema-polnoch :is(.eyebrow,.g-eb,.gc-eb){font-size:15px;letter-spacing:.06em}
  html.uch.tema-polnoch .g-go:has(> .g-go-ob){grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;min-height:0}
  html.uch.tema-polnoch .g-go-ob{grid-column:1/-1;grid-row:1;position:relative;aspect-ratio:2/1}
  html.uch.tema-polnoch .g-go-ob img{transform:scale(1.7)}
  html.uch.tema-polnoch a.g-go:hover .g-go-ob img{transform:scale(1.7)}
  html.uch.tema-polnoch .g-go-ob{-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%);mask-image:linear-gradient(180deg,#000 55%,transparent 100%)}
  html.uch.tema-polnoch .g-go:has(> .g-go-ob) .g-go-t{grid-column:1;grid-row:2;padding:4px 0 20px 18px;gap:8px}
  html.uch.tema-polnoch .g-go:has(> .g-go-ob) .g-play{grid-column:2;grid-row:2;align-self:end;margin:0 16px 20px 12px}
  html.uch.tema-polnoch .g-go-h{font-size:24px}
  html.uch.tema-polnoch .g-go-s{font-size:15px}
  html.uch.tema-polnoch .g-cards{display:contents}
  html.uch.tema-polnoch .g-cards::before{order:5;height:auto;margin:14px 0 2px;font-size:15px;letter-spacing:.08em}
  html.uch.tema-polnoch .g-cards:has(.gc.off)::after{content:"Дальше по программе";order:10;margin:14px 0 2px;padding:0;font:600 15px/1.3 var(--f-t);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
  html.uch.tema-polnoch .gc{order:6;min-height:236px;padding:20px 18px 18px 20px}
  html.uch.tema-polnoch .gc-n{margin-bottom:14px}
  html.uch.tema-polnoch .gc-t{max-width:64%;font-size:24px}
  html.uch.tema-polnoch .gc-sub{max-width:58%;font-size:15px}
  html.uch.tema-polnoch .gc-foot{max-width:60%}
  html.uch.tema-polnoch .gc-prog{font-size:15px}
  html.uch.tema-polnoch .gc-ico{height:74%;max-width:44%;right:2%}
  html.uch.tema-polnoch .gc:not(:has(> .gc-n)){min-height:170px}
  html.uch.tema-polnoch .gc:not(:has(> .gc-n)) .gc-sub{font-size:15px}
  /* закрытые модули внизу короткими строками: номер, название, дата */
  html.uch.tema-polnoch .gc.off{order:11;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"n t" "n f";align-items:center;gap:6px 14px;min-height:0;padding:14px 16px;border-radius:var(--r-card)}
  html.uch.tema-polnoch .g-cards .gc.off .gc-n{grid-area:n;margin:0}
  html.uch.tema-polnoch .g-cards .gc.off .gc-t{grid-area:t;max-width:none;font-size:18px;line-height:1.2}
  html.uch.tema-polnoch .g-cards .gc.off :is(.gc-eb,.gc-sub,.gc-ico){display:none}
  html.uch.tema-polnoch .g-cards .gc.off .gc-foot{grid-area:f;max-width:none;margin:0;padding:0}
  html.uch.tema-polnoch .g-cards .gc.off .pill.off{min-height:0;padding:0;background:none;box-shadow:none;font-size:15px}
  html.uch.tema-polnoch .g-baza{order:7;grid-template-columns:minmax(0,1fr) 100px;min-height:150px}
  html.uch.tema-polnoch .g-baza img{width:120px}
  html.uch.tema-polnoch .g-kal{order:4}  /* после «Продолжить» и перед программой (Тимофей, 21.11) */
  html.uch.tema-polnoch .z-home{order:9}
  html.uch.tema-polnoch .kal-wd{font-size:15px;letter-spacing:.02em;text-transform:none}
  html.uch.tema-polnoch .kal-d{font-size:15px}
  html.uch.tema-polnoch .g-strip-h{font-size:19px}
}

/* ========== МОДУЛЬ ========== */
html.uch.tema-polnoch .v50 .crumbs{display:flex;align-items:center;gap:10px;margin:0 0 18px;font:500 15px/1.3 var(--f-t);color:var(--muted)}
html.uch.tema-polnoch .v50 .crumbs a{color:var(--muted);text-decoration:none}
html.uch.tema-polnoch .v50 .crumbs a:hover{color:var(--ink)}
html.uch.tema-polnoch .m1-top{min-height:300px;margin-bottom:20px;padding:36px clamp(220px,34%,420px) 32px 36px;border-radius:var(--r-hero);
  background:radial-gradient(42% 70% at 84% 62%,rgb(var(--acc-rgb) / .2),transparent 72%),linear-gradient(180deg,#1A1F2B,#141821);box-shadow:var(--edge)}
html.uch.tema-polnoch .v50 .m1-pla{display:flex;min-height:0;padding:0;border-radius:0;background:none;font:600 12px/1.4 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--acc-text)}
html.uch.tema-polnoch .v50 .m1-top h1{margin-top:12px;font:800 clamp(34px,3.6vw,52px)/1.02 var(--f-d);letter-spacing:-.035em;text-wrap:balance}
html.uch.tema-polnoch .v50 .m1-sub{margin-top:10px;font-size:19px;line-height:1.4;color:var(--soft)}
html.uch.tema-polnoch .v50 .m1-rez{max-width:620px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:16px;line-height:1.5;color:var(--soft)}
html.uch.tema-polnoch .v50 .m1-rez b{display:block;margin-bottom:4px;font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
html.uch.tema-polnoch .m1-pr{max-width:460px;margin-top:20px}
html.uch.tema-polnoch .v50 .m1-pr p{font:600 15px/1.3 var(--f-t);font-variant-numeric:tabular-nums;color:var(--ink)}
html.uch.tema-polnoch .v50 .m1-seg progress{height:4px;border-radius:4px}
html.uch.tema-polnoch .m1-predmet{right:5%;top:auto;bottom:-6%;width:auto;height:96%;max-width:32%;max-height:none;object-fit:contain;object-position:right bottom;transform:none;filter:drop-shadow(0 30px 36px rgba(0,0,0,.9))}
/* продолжить в модуле: текст слева, обложка справа */
html.uch.tema-polnoch .m1-hero{grid-template-columns:minmax(0,1fr) minmax(280px,44%);gap:28px;padding:12px 12px 12px 30px;border-radius:var(--r-card);
  background:radial-gradient(70% 140% at 0% 0%,rgb(var(--acc-rgb) / .1),transparent 62%),linear-gradient(180deg,#1A1F2B,#141821);box-shadow:var(--edge)}
html.uch.tema-polnoch .v50 .m1-where{font:600 12px/1.4 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--acc-text)}
html.uch.tema-polnoch .v50 .m1-hero h2{margin-top:8px;font:800 clamp(24px,2.2vw,30px)/1.1 var(--f-d);letter-spacing:-.03em}
html.uch.tema-polnoch .v50 .m1-hs{font-size:16px;color:var(--soft)}
html.uch.tema-polnoch .v50 .m1-ost{color:var(--muted)}
html.uch.tema-polnoch .m1-ob{border-radius:var(--r)}
html.uch.tema-polnoch .v50 .kn{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 24px;border:0;border-radius:var(--r);
  font:600 16px/1 var(--f-t);color:var(--acc-ink);background:var(--acc);box-shadow:0 18px 40px -22px rgb(var(--acc-rgb) / .9);text-decoration:none}
html.uch.tema-polnoch .v50 .kn:hover{background:var(--acc-hi)}
html.uch.tema-polnoch .v50 .kn svg{width:18px;height:18px}
html.uch.tema-polnoch .v50 .m1-msg{gap:12px;padding:20px 24px;border-radius:var(--r-card);background:var(--surf);box-shadow:inset 0 0 0 1px rgba(224,163,59,.3),inset 3px 0 0 var(--amber)}
html.uch.tema-polnoch .v50 .m1-msg .lock{font:700 19px/1.3 var(--f-d);color:var(--ink)}
html.uch.tema-polnoch .v50 .m1-msg .lock svg{color:var(--amber)}
/* список уроков: обложка, название, описание, длина, статус */
html.uch.tema-polnoch .v50 .m1-h2{display:flex;align-items:center;gap:14px;margin:36px 0 14px;font:600 12px/1.3 var(--f-t);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
html.uch.tema-polnoch .v50 .m1-list{gap:10px}
html.uch.tema-polnoch .m1-r{grid-template-columns:200px minmax(0,1fr) 72px 196px 44px;gap:24px;padding:10px 20px 10px 10px;border-radius:var(--r-card);
  background:var(--surf);box-shadow:var(--edge);transition:box-shadow .2s,background .2s}
html.uch.tema-polnoch .m1-r:not(.s-ob){grid-template-columns:44px minmax(0,1fr) 72px 196px 44px;padding-left:20px}
html.uch.tema-polnoch .bez-dlin .m1-r{grid-template-columns:200px minmax(0,1fr) 196px 44px}
html.uch.tema-polnoch a.m1-r:hover{background:linear-gradient(180deg,#1D2330,#161B25);box-shadow:var(--edge-hi)}
html.uch.tema-polnoch .m1-r.on{background:linear-gradient(90deg,rgb(var(--acc-rgb) / .12),transparent 60%),var(--surf);box-shadow:inset 0 1px 0 rgb(255 255 255 / .06),inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .m1-r.off{background:var(--surf-low)}
html.uch.tema-polnoch .m1-r.off img{filter:grayscale(.7) brightness(.6);opacity:1}
html.uch.tema-polnoch .ur-ob{border-radius:var(--r);overflow:hidden;background:#06060E}
html.uch.tema-polnoch .ur-ob img{border-radius:var(--r)}
html.uch.tema-polnoch .v50 .ur-ob .l-num{left:8px;bottom:8px;min-width:40px;height:30px;padding:0 7px;border-radius:var(--r-s);background:rgb(6 6 14 / .86);font:800 14px/1 var(--f-d);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(162,170,184,.35)}
html.uch.tema-polnoch .v50 .m1-r > .l-num{width:44px;height:44px;border-radius:var(--r-n);background:none;color:var(--ink);font:800 15px/1 var(--f-d);box-shadow:inset 0 0 0 1.5px #4A5363}
html.uch.tema-polnoch .v50 .m1-r .l-title{font:700 20px/1.2 var(--f-d);letter-spacing:-.025em}
html.uch.tema-polnoch .v50 .m1-r .ur-row-s{margin-top:6px;font-size:15px;line-height:1.45;color:var(--muted)}
html.uch.tema-polnoch .v50 .m1-r .ur-row-mesto{font-size:15px;color:var(--acc-text)}
html.uch.tema-polnoch .v50 .m1-r.off .l-title{color:#B9C0CC}
html.uch.tema-polnoch .m1-m{font:600 15px/1 var(--f-t);font-variant-numeric:tabular-nums;color:var(--soft)}
/* плашка статуса урока: шире колонка и текст в строку, не в три (Тимофей, 21.11); на узком экране не больше двух строк */
html.uch.tema-polnoch .st{min-height:32px;max-width:100%;padding:4px 12px;gap:7px;border-radius:999px;font:600 14px/1.15 var(--f-t);white-space:normal;text-wrap:balance;text-align:left}
html.uch.tema-polnoch .st svg{width:15px;height:15px}
html.uch.tema-polnoch .st.s-ok{color:var(--green);background:var(--green-wash);box-shadow:inset 0 0 0 1px rgba(59,208,122,.35)}
html.uch.tema-polnoch .st.s-go{color:var(--acc-text);background:var(--acc-wash);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .st.s-no{color:var(--muted);background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .st.s-lock,html.uch.tema-polnoch .m1-r.off .st.s-lock{padding:6px 10px;color:var(--amber);background:var(--amber-wash);box-shadow:inset 0 0 0 1px rgba(224,163,59,.3);font-size:14px}
html.uch.tema-polnoch .st.s-zad{border-radius:999px;font-size:14px}
html.uch.tema-polnoch .m1-g{width:44px;height:44px;border-radius:var(--r);color:var(--soft);box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .m1-g svg{width:18px;height:18px}
html.uch.tema-polnoch a.m1-r:hover .m1-g,html.uch.tema-polnoch .m1-r.on .m1-g{color:var(--acc-ink);background:var(--acc);box-shadow:none}
@media (max-width:1180px){
  html.uch.tema-polnoch .m1-r{grid-template-columns:160px minmax(0,1fr) 64px 184px 44px;gap:18px}
}
@media (max-width:860px){
  html.uch.tema-polnoch .m1-top{padding:28px 36% 26px 24px}
  html.uch.tema-polnoch .m1-hero{grid-template-columns:minmax(0,1fr);padding:12px}
  html.uch.tema-polnoch .m1-hero-t{padding:12px 12px 8px}
}
@media (max-width:640px){
  html.uch.tema-polnoch .v50 .crumbs{font-size:15px}
  html.uch.tema-polnoch .m1-top{min-height:0;padding:22px 20px 22px;margin-bottom:14px}
  html.uch.tema-polnoch .v50 .m1-pla{font-size:15px;letter-spacing:.04em}
  html.uch.tema-polnoch .v50 .m1-top h1{max-width:72%;font-size:clamp(25px,7.4vw,32px);overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
  html.uch.tema-polnoch .v50 .m1-sub{max-width:66%;font-size:17px}
  html.uch.tema-polnoch .v50 .m1-rez b{font-size:15px;letter-spacing:.04em}
  html.uch.tema-polnoch .m1-predmet{right:3%;bottom:auto;top:20px;height:auto;width:30%;max-width:none}
  html.uch.tema-polnoch .v50 .m1-where{font-size:15px;letter-spacing:.04em}
  html.uch.tema-polnoch .v50 .m1-h2{font-size:15px;letter-spacing:.06em}
  html.uch.tema-polnoch .m1-r,html.uch.tema-polnoch .m1-r:not(.s-ob),html.uch.tema-polnoch .bez-dlin .m1-r{grid-template-columns:116px minmax(0,1fr);gap:10px 14px;padding:10px;align-items:start}
  html.uch.tema-polnoch .v50 .m1-r .l-title{font-size:17px}
  html.uch.tema-polnoch .v50 .m1-r .ur-row-s{display:none}
  html.uch.tema-polnoch .m1-low{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;grid-column:2}
  html.uch.tema-polnoch .m1-g{display:none}
  html.uch.tema-polnoch .v50 .ur-ob .l-num{min-width:34px;height:26px;font-size:15px}
}

/* ========== УРОК ========== */
html.uch.tema-polnoch .urok{--u-t:#EEF1F6;--u-m:#8E97A6;--u-l:#262C38;--u-s:#7FA6FF;--u-z:#16203C;--u-g:#3BD07A;--u-a:#E0A33B;--u-r:#FF6B66;
  --u-k:var(--acc);--u-k-hi:var(--acc-hi);font:400 17px/1.55 var(--f-t)}
html.uch.tema-polnoch:has(.urok) .foot,html.uch.tema-polnoch:has(.urok) .foot-links a{color:var(--muted)}
html.uch.tema-polnoch .urok .ur-nazad{gap:8px;min-height:0;margin:0 0 18px;padding:4px 0;font:500 15px/1.4 var(--f-t);color:var(--muted)}
html.uch.tema-polnoch .urok .ur-nazad:hover{color:var(--ink)}
html.uch.tema-polnoch .urok .ur-nazad:hover span{text-decoration:none}
html.uch.tema-polnoch .ur-kick{display:flex;align-items:center;gap:10px;margin:0 0 12px;font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--acc-text)}
html.uch.tema-polnoch .ur-kick i{font-style:normal;color:var(--muted)}
html.uch.tema-polnoch .urok .l-head{margin:0 0 24px}
html.uch.tema-polnoch .urok .l-head h1{max-width:900px;font:800 clamp(30px,3.2vw,46px)/1.05 var(--f-d);letter-spacing:-.035em;text-wrap:balance}
html.uch.tema-polnoch .urok .ur-podzag{margin-top:10px;font-size:18px;color:var(--soft)}
html.uch.tema-polnoch .urok .player{border-radius:var(--r-card);overflow:hidden;background:#06060E;box-shadow:0 0 0 1px var(--line),0 40px 80px -50px rgba(0,0,0,.95)}
html.uch.tema-polnoch .urok .player-empty.s-ob{place-items:start end}
html.uch.tema-polnoch .player-empty.s-ob > div{margin:18px;padding:12px 16px;border-radius:var(--r);background:rgb(6 6 14 / .84);box-shadow:inset 0 0 0 1px var(--line-2);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
html.uch.tema-polnoch .urok .player-empty b{display:flex;align-items:center;gap:8px;font:700 16px/1.3 var(--f-d);color:var(--ink)}
html.uch.tema-polnoch .urok .player-empty b::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--amber);box-shadow:0 0 0 4px rgba(224,163,59,.18)}
html.uch.tema-polnoch .urok .player-empty > div > span{font-size:15px;color:var(--soft)}
html.uch.tema-polnoch .urok .ur-summary{max-width:820px;margin-top:22px;font-size:19px;line-height:1.5;color:var(--soft)}
html.uch.tema-polnoch .urok .ur-resume p{font:700 20px/1.25 var(--f-d)}
html.uch.tema-polnoch .urok .ur-resume .btn{border-radius:var(--r);color:var(--acc-ink);background:var(--acc);box-shadow:none}
/* панели под видео: тайм-коды, материалы, текст, домашнее задание */
html.uch.tema-polnoch .ur-pod{margin-top:28px}
html.uch.tema-polnoch .ur-pan{padding:22px 24px;border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge)}
html.uch.tema-polnoch .urok h2.ur-pan-h{display:flex;align-items:center;gap:12px;margin:0 0 14px;font:600 12px/1.3 var(--f-t);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
html.uch.tema-polnoch .ur-dz{box-shadow:inset 0 0 0 1px var(--line),inset 3px 0 0 var(--acc)}
html.uch.tema-polnoch .ur-kod{font-size:16px}
html.uch.tema-polnoch .ur-kod-t{color:var(--acc-text)}
html.uch.tema-polnoch .ur-cheklist i{border-radius:var(--r-s);background:none;color:var(--ink);font:800 14px/1 var(--f-d);box-shadow:inset 0 0 0 1.5px #4A5363}
html.uch.tema-polnoch .urok .ur-fl-i{width:32px;height:40px;padding:0 0 7px;place-items:end center;clip-path:none;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 40'%3E%3Cpath d='M4.5.5h16l11 11v24a4 4 0 0 1-4 4h-23a4 4 0 0 1-4-4v-31a4 4 0 0 1 4-4z' fill='%2316203C' stroke='%234F7DFF' stroke-opacity='.55'/%3E%3Cpath d='M20.5.5v7a4 4 0 0 0 4 4h7' fill='none' stroke='%234F7DFF' stroke-opacity='.55'/%3E%3C/svg%3E") center/100% 100% no-repeat;color:var(--acc-text);box-shadow:none;justify-self:center}
html.uch.tema-polnoch .urok .ur-fl-i.s-ssylka{width:40px;height:40px;padding:0;place-items:center;border-radius:var(--r-n);background:var(--acc-wash);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .urok .ur-fl-i b{font:800 9px/1 var(--f-d);letter-spacing:.02em}
html.uch.tema-polnoch .urok :is(.ur-sk,.ur-fl .copy){border-radius:var(--r)}
html.uch.tema-polnoch .urok .ur-sk,html.uch.tema-polnoch .urok .ur-sk:hover{background:var(--acc-wash);color:var(--acc-text);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .urok .ur-fl .copy{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-2)}
/* «Урок пройден» и вопрос куратору */
html.uch.tema-polnoch .urok .ur-niz .ur-kon{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:28px}
html.uch.tema-polnoch .urok .ur-kon .btn{min-height:56px;padding:0 28px;font-size:17px}
html.uch.tema-polnoch .urok .ur-kon .btn.done{color:var(--green);background:var(--green-wash);box-shadow:inset 0 0 0 1px rgba(59,208,122,.4)}
html.uch.tema-polnoch .urok .ur-kurator{font:600 15px/1.3 var(--f-t);color:var(--acc-text);text-decoration:none}
html.uch.tema-polnoch .urok .ur-kurator:hover{color:#fff}
/* соседние уроки: две карточки, следующая с синей кромкой */
html.uch.tema-polnoch .urok .pn{gap:14px;margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
html.uch.tema-polnoch .urok .pn .ur-sosed{min-height:88px;padding:16px 20px;border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge)}
html.uch.tema-polnoch .urok .pn a.ur-sosed:hover{background:linear-gradient(180deg,#1D2330,#161B25);box-shadow:var(--edge-hi)}
html.uch.tema-polnoch .urok .pn .ur-sosed.next,html.uch.tema-polnoch .urok .pn a.ur-sosed.next:hover{background:linear-gradient(90deg,transparent 40%,rgb(var(--acc-rgb) / .14)),var(--surf);box-shadow:inset 0 1px 0 rgb(255 255 255 / .06),inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .urok .pn .ur-sosed small{font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
html.uch.tema-polnoch .urok .pn .ur-sosed.next small{color:var(--acc-text)}
html.uch.tema-polnoch .urok .ur-sosed b{margin-top:6px;font:700 17px/1.25 var(--f-d);letter-spacing:-.02em;color:var(--ink)}
html.uch.tema-polnoch .ur-sosed > svg{width:20px;height:20px;color:var(--acc-text)}
html.uch.tema-polnoch .urok .pn .ur-sosed.off{background:var(--surf-low);box-shadow:inset 0 0 0 1px var(--line)}
html.uch.tema-polnoch .urok .pn .ur-sosed.off small svg{color:var(--amber)}
html.uch.tema-polnoch .urok .ur-sosed-why{color:var(--amber)}
@media (max-width:640px){
  html.uch.tema-polnoch .ur-kick,html.uch.tema-polnoch .urok h2.ur-pan-h,html.uch.tema-polnoch .urok .pn .ur-sosed small{font-size:15px;letter-spacing:.04em}
  html.uch.tema-polnoch .urok .l-head h1{font-size:30px}
  html.uch.tema-polnoch .urok .player{border-radius:var(--r)}
  html.uch.tema-polnoch .player-empty.s-ob > div{margin:10px;padding:8px 12px}
  html.uch.tema-polnoch .urok .ur-summary{font-size:17px}
  html.uch.tema-polnoch .ur-pan{padding:18px}
  html.uch.tema-polnoch .urok .ur-kon .btn{width:100%}
}

/* ========== ЗАКРЫТО, ОШИБКА, НЕТ ДОСТУПА: один блок по центру и предмет над ним ========== */
html.uch.tema-polnoch .center{min-height:64vh}
html.uch.tema-polnoch .center .box{position:relative;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:560px;padding:40px 40px 36px;border-radius:var(--r-hero);
  background:radial-gradient(70% 60% at 50% 0%,rgb(var(--acc-rgb) / .14),transparent 70%),linear-gradient(180deg,#1A1F2B,#141821);box-shadow:var(--edge)}
html.uch.tema-polnoch .center .box h2{margin:0;font:800 clamp(26px,2.6vw,34px)/1.1 var(--f-d);letter-spacing:-.03em;text-wrap:balance}
html.uch.tema-polnoch .center .box .lead{margin:0;font-size:17px;line-height:1.5;color:var(--soft)}
html.uch.tema-polnoch .center .box .eyebrow{justify-content:center;color:var(--acc-text)}
html.uch.tema-polnoch .center .box .btn{min-width:240px}
html.uch.tema-polnoch .center .box form{margin:0}
html.uch.tema-polnoch .big-ico{width:auto;height:auto;margin:-8px 0 2px;border:0;border-radius:0;background:none;box-shadow:none}
html.uch.tema-polnoch .big-ico svg{display:none}
html.uch.tema-polnoch .zk-predmet{display:block;width:auto;height:150px;margin:-8px auto 4px;filter:drop-shadow(0 26px 30px rgba(0,0,0,.9))}
html.uch.tema-polnoch .zk-kogda{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:6px 14px;border-radius:999px;font:600 14px/1.2 var(--f-t);color:var(--amber);background:var(--amber-wash);box-shadow:inset 0 0 0 1px rgba(224,163,59,.3)}
@media (max-width:640px){
  html.uch.tema-polnoch .center .box{padding:28px 20px 24px}
  html.uch.tema-polnoch .center .box .btn{width:100%;min-width:0}
  html.uch.tema-polnoch .zk-predmet{height:120px}
  html.uch.tema-polnoch .zk-kogda{font-size:15px}
}

/* ========== общие плашки страниц модуля, профиля, поиска (stranicy-50.css): радиус 18, кнопки 12 ========== */
html.uch.tema-polnoch .v50 .pl{border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge)}
html.uch.tema-polnoch .v50 .kn{border-radius:var(--r)}
html.uch.tema-polnoch .v50 .kn.sin{color:var(--acc-ink);background:var(--acc);box-shadow:0 18px 40px -22px rgb(var(--acc-rgb) / .9)}
html.uch.tema-polnoch .v50 .kn.sin:hover{background:var(--acc-hi);filter:none}
html.uch.tema-polnoch .v50 .kn.kon{min-height:48px;padding:0 20px;font:600 15px/1 var(--f-t);color:var(--ink);background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .v50 .kn.kon:hover{box-shadow:inset 0 0 0 1px var(--acc)}
html.uch.tema-polnoch .v50 .vvod{height:52px;border:0;border-radius:var(--r);background:#0B0D12;box-shadow:inset 0 0 0 1px var(--line-2);font:400 16px/1 var(--f-t)}
html.uch.tema-polnoch .v50 .vvod:focus{box-shadow:inset 0 0 0 1px var(--acc),0 0 0 3px rgb(var(--acc-rgb) / .22)}
html.uch.tema-polnoch .v50 .vvod::placeholder{color:#7B8494}
html.uch.tema-polnoch .v50 :is(.pl h2,.p4-st h3){font-family:var(--f-d);font-weight:700;letter-spacing:-.02em}

/* ========== ПРОФИЛЬ ========== */
html.uch.tema-polnoch .p4-ob{padding:36px 36px 32px;border-radius:var(--r-hero);
  background:radial-gradient(42% 80% at 86% 60%,rgb(var(--acc-rgb) / .2),transparent 72%),linear-gradient(180deg,#1A1F2B,#141821);box-shadow:var(--edge)}
html.uch.tema-polnoch .v50 .p4-vr{gap:8px}
html.uch.tema-polnoch .v50 :is(.p4-pl,.p4-tf){min-height:30px;padding:0 12px;border-radius:999px;font:600 13px/1 var(--f-t);letter-spacing:.02em}
html.uch.tema-polnoch .v50 .p4-pl{color:var(--acc-text);background:var(--acc-wash);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .v50 .p4-tf{color:var(--ink);background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .v50 .p4-ob h1{max-width:calc(100% - 220px);margin-top:20px;font:800 clamp(44px,5vw,72px)/.95 var(--f-d);letter-spacing:-.04em;color:var(--ink)}
html.uch.tema-polnoch .v50 .p4-ob .ml{font:400 17px/1.3 var(--f-t);color:var(--muted)}
html.uch.tema-polnoch .v50 .p4-tr{gap:8px}
html.uch.tema-polnoch .v50 .p4-tr span{min-height:32px;padding:0 14px;border-radius:999px;font:500 14px/1 var(--f-t);color:var(--soft);background:rgba(11,13,18,.6);box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .p4-ob img{right:6%;top:auto;bottom:-8%;width:auto;height:118%;max-width:30%;object-fit:contain;transform:none;filter:drop-shadow(0 26px 30px rgba(0,0,0,.9))}
html.uch.tema-polnoch .p4-rg svg circle:first-child{stroke:#262C38}
html.uch.tema-polnoch .p4-rg svg circle + circle{stroke:var(--acc)}
html.uch.tema-polnoch .v50 .p4-rg b{font:800 40px/1 var(--f-d);color:var(--ink)}
html.uch.tema-polnoch .p4-mini{border-radius:var(--r);overflow:hidden;box-shadow:0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .p4-mini img{border-radius:var(--r);filter:saturate(.85)}
html.uch.tema-polnoch .v50 .p4-st + .p4-st{border-top:1px solid var(--line)}
html.uch.tema-polnoch .v50 .tx{color:var(--muted)}
@media (max-width:640px){
  html.uch.tema-polnoch .p4-ob{padding:24px 20px}
  html.uch.tema-polnoch .v50 .p4-ob h1{max-width:66%;font-size:40px}
  html.uch.tema-polnoch .p4-ob img{height:84%;bottom:-4%;right:2%}
  html.uch.tema-polnoch .v50 :is(.p4-pl,.p4-tf,.p4-tr span){font-size:15px}
}

/* ========== БАЗА ЗНАНИЙ ========== */
html.uch.tema-polnoch .bz-shapka{min-height:240px;padding:36px 36px 34px;border-radius:var(--r-hero);
  background:radial-gradient(42% 80% at 86% 60%,rgb(var(--acc-rgb) / .2),transparent 72%),linear-gradient(180deg,#1A1F2B,#141821);box-shadow:var(--edge)}
html.uch.tema-polnoch .bz-pla{min-height:0;padding:0;border-radius:0;background:none;font:600 12px/1.4 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--acc-text)}
html.uch.tema-polnoch main h1.bz-h{max-width:calc(100% - 260px);margin-top:14px;font:800 clamp(40px,4.6vw,68px)/.95 var(--f-d);letter-spacing:-.04em}
html.uch.tema-polnoch .bz-shapka-o{right:6%;width:auto;height:84%;max-width:34%;filter:drop-shadow(0 26px 30px rgba(0,0,0,.9))}
html.uch.tema-polnoch main .bz-pusto{margin-top:20px;padding:22px 24px;border-radius:var(--r-card);font-size:17px;color:var(--muted);background:var(--surf);box-shadow:var(--edge)}
@media (max-width:640px){
  html.uch.tema-polnoch .bz-shapka{min-height:0;padding:22px 20px 26px}
  html.uch.tema-polnoch .bz-pla{font-size:15px;letter-spacing:.04em}
  html.uch.tema-polnoch main h1.bz-h{max-width:64%;font-size:38px}
  html.uch.tema-polnoch .bz-shapka-o{height:70%;max-width:32%;right:4%}
}

/* ========== ЗАДАНИЯ ========== */
html.uch.tema-polnoch .z-shapka h1{font:800 clamp(36px,4vw,56px)/1 var(--f-d);letter-spacing:-.04em}
html.uch.tema-polnoch .z-shapka .lead{max-width:680px;margin-top:12px;font-size:17px}
html.uch.tema-polnoch main > .card{border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge);border:0}

/* ========== РАСПИСАНИЕ ========== */
html.uch.tema-polnoch .rp-c{border-radius:var(--r-s)}
html.uch.tema-polnoch .rp-c.op{color:var(--ink);background:var(--acc-wash);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch .rp-c.op small{color:var(--acc-text)}
html.uch.tema-polnoch .rp-c.today{outline:2px solid var(--acc);outline-offset:-2px}
html.uch.tema-polnoch .rp-row{border-radius:var(--r-card)}
html.uch.tema-polnoch .rp-lg i{border-radius:50%}

/* ========== ПОИСК ========== */
html.uch.tema-polnoch .v-poisk h1,html.uch.tema-polnoch .poisk h1{font:800 clamp(36px,4vw,56px)/1 var(--f-d);letter-spacing:-.04em}
html.uch.tema-polnoch :is(.poisk-list,.razdel-list) .lesson-row{border-radius:var(--r-card)}
html.uch.tema-polnoch mark{padding:0 3px;border-radius:4px;color:var(--ink);background:rgb(var(--acc-rgb) / .3)}

/* ========== СЕРТИФИКАТ (sertifikat.css делает страницу белой во всех стилях): у «Полночи» страница тёмная, документ тоже («Полночь», 20.11) ========== */
html.uch.tema-polnoch[class]:has(.v > .t5){--ink:#EEF1F6;--t2:#C3CAD5;--sin:#7FA6FF;--lin:#262C38;--lin2:#39414F;background:#0B0D12}
html.uch.tema-polnoch[class]:has(.v > .t5) body{background:transparent}
html.uch.tema-polnoch[class]:has(.v > .t5) body::before,html.uch.tema-polnoch[class]:has(.v > .t5) body::after{display:block}
html.uch.tema-polnoch[class]:has(.v > .t5) .rail{background:rgba(8,9,14,.94);box-shadow:inset -1px 0 0 var(--line)}
html.uch.tema-polnoch[class]:has(.v > .t5) .rail-i{color:var(--muted)}
html.uch.tema-polnoch[class]:has(.v > .t5) .rail::before{font-family:var(--f-d)}
html.uch.tema-polnoch[class]:has(.v > .t5) .rail-acc-t b{font-family:var(--f-t)}
html.uch.tema-polnoch[class]:has(.v > .t5) main{color:var(--ink)}
html.uch.tema-polnoch[class]:has(.v > .t5) .foot{border-top-color:var(--line);color:var(--muted)}
html.uch.tema-polnoch[class]:has(.v > .t5) .foot-links a{color:var(--muted)}
html.uch.tema-polnoch[class] .v h1{font:800 clamp(28px,2.8vw,36px)/1.1 var(--f-d);letter-spacing:-.03em;color:var(--ink)}
html.uch.tema-polnoch .v .kn{border-radius:var(--r);color:var(--acc-ink);background:var(--acc);font:600 17px/1.2 var(--f-t)}
html.uch.tema-polnoch .v .kn:hover{background:var(--acc-hi)}
html.uch.tema-polnoch .v .dok{border-radius:var(--r-card);overflow:hidden;background:#0B0D12;box-shadow:0 0 0 1px var(--line-2),0 40px 80px -40px rgba(0,0,0,.95)}
html.uch.tema-polnoch .v .zam{border-radius:var(--r);background:var(--surf);color:var(--amber);box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .v .z{border-radius:var(--r-s)}
html.uch.tema-polnoch .v .d.sd .z{color:var(--green)}
html.uch.tema-polnoch .v .d.now .z::after{border-radius:2px;background:var(--acc)}
html.uch.tema-polnoch .v .vv{border:0;border-radius:var(--r);background:#0B0D12;box-shadow:inset 0 0 0 1px var(--line-2);color:var(--ink)}

/* ========== РАЗДЕЛЫ (разборы, эфиры): шапка как у модуля, без предмета ========== */
html.uch.tema-polnoch .razdel h1,html.uch.tema-polnoch main > .rz-shapka h1{font:800 clamp(36px,4vw,56px)/1 var(--f-d);letter-spacing:-.04em}
html.uch.tema-polnoch .razdel-list .lesson-row,html.uch.tema-polnoch .rz-blizh{border-radius:var(--r-card)}

/* ========== мелочи ========== */
html.uch.tema-polnoch :is(.mail-ico,.z-home-ico){border-radius:var(--r)}
html.uch.tema-polnoch .preview-bar{background:#08090E;border-bottom:1px solid var(--line)}
html.uch.tema-polnoch .preview-bar button{border-radius:var(--r)}
html.uch.tema-polnoch .lesson-row .l-num{border-radius:var(--r-n)}

/* обложка в строке урока уже несёт свой номер в квадрате: номер поверх обложки не дублируем */
html.uch.tema-polnoch .v50 .ur-ob .l-num{display:none}

/* 3D-предметы: тень и сам предмет появляются, когда картинка раскодирована (app.js), иначе Safari рисует квадратную тень */
html.uch.tema-polnoch.js-3d img[src*="/img/vid/3d/"]:not(.zagruzheno){opacity:0!important;filter:none!important}
html.uch.tema-polnoch.js-3d img[src*="/img/vid/3d/"]{transition:opacity .35s ease,transform .4s ease}

/* ---------- домашнее задание: каждое задание своей карточкой (Тимофей, 21.11) ---------- */
html.uch.tema-polnoch .urok .ur-dz .z-niz{display:flex;flex-direction:column;max-width:none;margin-top:4px;gap:14px}
html.uch.tema-polnoch .ur-dz .z-sec,html.uch.tema-polnoch .urok .ur-dz > .ur-pan-h + .z-niz > .z-sec:first-child{margin:0;padding:18px 20px;border-radius:var(--r);background:var(--surf-low,#0F1218);box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .ur-dz .z-sec h3{font:700 17px/1.3 var(--f-d);color:var(--ink)}
html.uch.tema-polnoch .ur-dz .z-sec .z-sub{margin:6px 0 14px}
html.uch.tema-polnoch .ur-dz .z-galka .z-self{margin-top:10px}
/* «Выбрать файл»: кнопка в цветах темы, а не белая системная */
html.uch.tema-polnoch input[type=file]{color:var(--soft);font:400 15px/1.3 var(--f-t)}
html.uch.tema-polnoch input[type=file]::file-selector-button{margin-right:14px;padding:9px 16px;border:0;border-radius:var(--r);cursor:pointer;
  font:600 14px/1 var(--f-t);color:var(--acc-text);background:var(--acc-wash);box-shadow:inset 0 0 0 1px var(--acc-line)}
html.uch.tema-polnoch input[type=file]::file-selector-button:hover{color:var(--ink)}

/* ---------- анкета участника ---------- */
html.uch.tema-polnoch .ank{max-width:860px}
html.uch.tema-polnoch .ank-ban{position:relative;overflow:hidden;display:flex;align-items:flex-end;min-height:230px;margin:14px 0 22px;padding:30px 32px;
  border-radius:var(--r-hero);background:radial-gradient(520px 320px at 85% 20%,rgb(79 125 255 / .22),transparent 70%),linear-gradient(180deg,#151A26 0%,#0B0D12 100%);
  box-shadow:inset 0 0 0 1px var(--line-2)}
html.uch.tema-polnoch .ank-ban-t{position:relative;z-index:2;max-width:62%}
html.uch.tema-polnoch .ank-eb{margin:0 0 10px;font:600 12px/1.3 var(--f-t);letter-spacing:.16em;text-transform:uppercase;color:var(--acc-text)}
html.uch.tema-polnoch .ank-ban h1{margin:0;font:800 clamp(30px,4vw,44px)/1.02 var(--f-d);letter-spacing:-.03em;color:var(--ink)}
html.uch.tema-polnoch .ank-sub{margin:12px 0 0;font-size:16px;color:var(--soft)}
html.uch.tema-polnoch .ank-ban-o{position:absolute;z-index:1;right:4%;bottom:-8%;height:110%;width:auto;max-width:40%;object-fit:contain;filter:drop-shadow(0 26px 30px rgba(0,0,0,.9))}
html.uch.tema-polnoch .ank-vvod{margin:0 0 22px;font-size:17px;color:var(--soft)}
html.uch.tema-polnoch .ank-forma{display:flex;flex-direction:column;gap:18px}
html.uch.tema-polnoch .ank-razdel{display:flex;flex-direction:column;gap:12px;padding:22px 24px;border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge)}
html.uch.tema-polnoch .ank-h{margin:0 0 4px;font:600 12px/1.3 var(--f-t);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
html.uch.tema-polnoch .ank-q label{display:flex;gap:12px;align-items:flex-start;margin-bottom:8px;font:600 16px/1.4 var(--f-t);color:var(--ink)}
html.uch.tema-polnoch .ank-n{flex:none;display:grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border-radius:var(--r-s,8px);font:800 14px/1 var(--f-d);color:var(--ink);box-shadow:inset 0 0 0 1.5px #4A5363}
html.uch.tema-polnoch .ank-t{padding-top:4px}
html.uch.tema-polnoch .ank-a{min-height:64px;margin-left:42px;width:calc(100% - 42px)}
html.uch.tema-polnoch .ank-q.s-pusto .ank-a{box-shadow:inset 0 0 0 1.5px var(--red,#FF6B6B)}
html.uch.tema-polnoch .ank-go{margin-top:6px}
html.uch.tema-polnoch .ank-gotovo{padding:22px 24px;border-radius:var(--r-card);background:var(--surf);box-shadow:var(--edge)}
@media (max-width:640px){
  html.uch.tema-polnoch .ank-ban{min-height:260px;padding:22px 20px;align-items:flex-end}
  html.uch.tema-polnoch .ank-ban-t{max-width:none}
  html.uch.tema-polnoch .ank-ban-o{top:10px;bottom:auto;height:52%;right:2%}
  html.uch.tema-polnoch .ank-razdel{padding:18px 16px}
  html.uch.tema-polnoch .ank-a{margin-left:0;width:100%}
}
/* значок файла в материалах урока: силуэт листа с загнутым углом, рамка рисуется вместе с углом, ничего не срезано (Тимофей, 21.11) */
html.uch.tema-polnoch .urok .ur-fl li{grid-template-columns:40px minmax(0,1fr);gap:8px 14px}
html.uch.tema-polnoch .urok .ur-dva > .ur-pan:only-child .ur-fl li{grid-template-columns:40px minmax(0,1fr) auto}
@media (max-width:900px){html.uch.tema-polnoch .urok .ur-dva > .ur-pan:only-child .ur-fl li{grid-template-columns:40px minmax(0,1fr)}}
