/* Авентурамания · Обучение — стили в фирменном стиле Авентурамании (брендбук designwise.team, 2022).
   Mobile-first, светлая тема. Шрифты локальные (static/fonts), никаких внешних CDN.

   Палитра — только цвета брендбука + чёрный и белый (оттенки серого = чёрный с прозрачностью):
     Закатное солнце      #E1342B  красный: логотип, линии-пути, стрелки, крупные акценты
     Согревающий глинтвейн #A6000B  бордо: кнопки, ссылки, мелкий акцентный текст (контраст 8:1)
     Дикий мёд            #F0D580  домашнее задание, билеты
     Северное сияние      #B0D8BD  «пройдено», успех, билеты
     Морозный румянец     #EED2D5  мягкие подложки, наведение
     Лёд Байкала          #F4F8FD  фон страницы
   Красный #E1342B на белом даёт 4,4:1 — поэтому мелкий текст им не пишем, только крупный и графику. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/onest-400.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/onest-500.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/onest-700.woff2") format("woff2"); }
@font-face { font-family: "Neutral Face"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/neutral-face-400.woff2") format("woff2"); }
@font-face { font-family: "Neutral Face"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("../fonts/neutral-face-700.woff2") format("woff2"); }

:root {
  /* бренд */
  --sun: #E1342B;        /* Закатное солнце */
  --wine: #A6000B;       /* Согревающий глинтвейн */
  --honey: #F0D580;      /* Дикий мёд */
  --aurora: #B0D8BD;     /* Северное сияние */
  --blush: #EED2D5;      /* Морозный румянец */
  --ice: #F4F8FD;        /* Лёд Байкала */
  --black: #000;
  --white: #fff;

  /* роли */
  --bg: var(--ice);
  --surface: var(--white);
  --ink: #000;
  --ink-2: rgba(0, 0, 0, .78);
  --muted: rgba(0, 0, 0, .64);    /* ≈ #5c5c5c на белом: 6,6:1 */
  --line: rgba(0, 0, 0, .12);
  --line-strong: rgba(0, 0, 0, .28);
  --sunk: rgba(0, 0, 0, .05);
  --accent: var(--sun);
  --accent-strong: var(--wine);
  --wash: rgba(238, 210, 213, .55);  /* румянец, лёгкий */

  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Neutral Face", "Onest", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.3, .7, .4, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
::selection { background: var(--blush); color: var(--black); }
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--black); text-decoration-color: var(--sun); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: .92em; }
.right { text-align: right; }
.grow { flex: 1 1 auto; min-width: 0; }
.arrow { color: var(--sun); font-family: var(--display); }

.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 16px; height: 16px; }
.ico--xl { width: 44px; height: 44px; stroke-width: 1.4; color: var(--sun); }

/* --- типографика: заголовки Neutral Face, верхний регистр --- */
.h1 { font: 400 clamp(26px, 6.2vw, 38px)/1.08 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 0 0 12px; text-wrap: balance; overflow-wrap: anywhere; }
.h2 { font: 700 17px/1.25 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 14px; }
.kicker { font: 700 12.5px/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--wine); margin: 0 0 8px; }

/* --- шапка --- */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar__inner { max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--black); min-width: 0; }
.brand:hover { color: var(--black); }
.brand__logo { height: 22px; width: auto; color: var(--sun); flex: none; }
.brand__sep { width: 1px; height: 22px; background: var(--line-strong); flex: none; }
.brand__sub { font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--black); white-space: nowrap; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topnav a { white-space: nowrap; text-decoration: none; color: var(--black); padding: 10px 10px; font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; border-radius: 8px; position: relative; }
.topnav a:hover { background: var(--wash); color: var(--black); }
.topnav a.is-current::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--sun); border-radius: 2px; }
.topnav__out { margin: 0; }
.linkbtn { background: none; border: 0; padding: 8px; color: var(--wine); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.linkbtn:hover { background: var(--wash); color: var(--black); }
.topnav .linkbtn { color: var(--black); font: 700 13px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 10px; }
.sr-only-sm { display: none; }
@media (max-width: 520px) {
  .brand { gap: 8px; }
  .brand__logo { height: 17px; }
  .brand__sep { height: 18px; }
  .brand__sub { font-size: 11.5px; letter-spacing: .05em; }
  .topnav a { padding: 10px 6px; font-size: 12px; letter-spacing: .03em; }
  .topnav a.is-current::after { left: 6px; right: 6px; }
  .topnav__home { display: none; }
}
@media (max-width: 329px) { .brand__sep, .brand__sub { display: none; } }
/* у администратора в шапке два пункта меню — на узком экране подпись «Обучение» убираем */
@media (max-width: 440px) { .topbar__inner:has(a[href="/admin"]) .brand__sep, .topbar__inner:has(a[href="/admin"]) .brand__sub { display: none; } }
@media (min-width: 640px) { .sr-only-sm { display: inline; } }

/* --- каркас --- */
.page { max-width: 760px; margin: 0 auto; padding: 28px var(--gutter) 64px; }
.page--admin { max-width: 1080px; }

.flash { max-width: 760px; margin: 14px auto 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--aurora); color: var(--black); font-weight: 500; width: calc(100% - 2 * var(--gutter)); }
.flash--error { background: var(--blush); color: var(--wine); }
.is-admin .flash { max-width: 1080px; }
.flash--inline { width: auto; margin: 0 0 16px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--wine); text-decoration: underline; }

/* подвал */
.foot { border-top: 1px solid var(--line); background: var(--white); }
.foot__inner { max-width: 1080px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.foot__sign { width: 28px; height: auto; color: var(--sun); flex: none; }
.foot__motto { font: 700 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--black); }

/* --- кнопки: «пилюли», как «Я в деле!» в брендбуке --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 700 14.5px/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; text-decoration: none; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--wine); color: #fff; border-color: var(--wine); }
.btn--primary:hover { background: var(--black); border-color: var(--black); color: #fff; }
.btn--quiet { background: var(--white); color: var(--wine); border-color: var(--wine); }
.btn--quiet:hover { background: var(--blush); color: var(--wine); }
.btn--danger { background: var(--blush); color: var(--wine); border-color: var(--blush); }
.btn--danger:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 12.5px; }
.btn--wide { width: 100%; }
.iconbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.iconbtn:hover { background: var(--blush); color: var(--wine); }

/* --- формы --- */
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.stack > * { min-width: 0; }
.field__label { font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.field__label em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
input:not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 16px;
}
textarea { line-height: 1.5; resize: vertical; }
.mono-area { font-family: var(--mono); font-size: 14.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(225, 52, 43, .22); }
input[type=file] { font-size: 15px; padding: 8px 0; width: 100%; max-width: 100%; }
input[type=file]::file-selector-button { font: 700 12.5px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; margin-right: 12px; border-radius: 999px; border: 1.5px solid var(--wine); background: #fff; color: var(--wine); cursor: pointer; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--wine); flex: none; }
.form-error { background: var(--blush); color: var(--wine); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 14px; font-weight: 500; }
.form-error--pre { white-space: pre-wrap; font: 500 14px/1.5 var(--font); }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.inline input:not([type=checkbox]):not([type=hidden]) { width: auto; flex: 1 1 220px; min-width: 0; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.pwrow { display: flex; gap: 8px; }
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.checks--rows .check { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--ice); flex-wrap: wrap; }

/* --- вход: бордо, красная линия-путь, белая карточка --- */
.is-login { background: var(--wine); }
.is-login .foot { display: none; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 0; padding: 28px var(--gutter); position: relative; overflow: hidden; isolation: isolate; }
.login::before { content: ""; position: absolute; z-index: -1; pointer-events: none; background: url("../img/line-red.svg") no-repeat center / contain;
  width: min(1100px, 150vw); aspect-ratio: 840 / 535; left: 50%; top: 50%; transform: translate(-46%, -52%); }
.login__brand { color: var(--white); margin: 0 0 24px; width: min(360px, 86vw); }
.login__brand .logo { width: 100%; height: auto; }
.login__card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 18px; padding: 28px 24px 24px; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .55); }
.login__mark { font: 700 12.5px/1.3 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--wine); margin: 0 0 10px; }
.login__title { font: 400 30px/1.05 var(--display); text-transform: uppercase; margin: 0 0 10px; }
.login__lead { color: var(--muted); margin: 0 0 22px; }
.login__hint { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
@media (min-width: 900px) {
  .login__brand { width: 440px; margin-bottom: 32px; }
}

/* --- главная: курсы-билеты (как пины-билеты из брендбука) --- */
.hello { margin-bottom: 26px; position: relative; isolation: isolate; }
.hello p { margin: 0; max-width: 34em; }
@media (min-width: 720px) {
  .hello { padding-right: 200px; min-height: 120px; }
  .hello::after { content: ""; position: absolute; z-index: -1; right: -12px; top: -22px; width: 230px; aspect-ratio: 840 / 535; background: url("../img/line-red.svg") no-repeat center / contain; pointer-events: none; }
}
.tickets { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ticket { --notch: 11px; --stub: var(--aurora); display: grid; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .06)) drop-shadow(0 8px 14px rgba(0, 0, 0, .05)); }
.ticket:nth-child(3n+2) { --stub: var(--honey); }
.ticket:nth-child(3n) { --stub: var(--blush); }
.ticket__main { background: var(--surface); }
.ticket__stub { background-color: var(--stub); }
.ticket__main {
  display: grid; gap: 8px; align-content: start; padding: 22px 20px 20px; text-decoration: none; color: inherit; border-radius: var(--radius) var(--radius) 0 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) , radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000), radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000);
  mask-composite: intersect;
}
.ticket__stub {
  display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding: 18px 20px 20px; border-radius: 0 0 var(--radius) var(--radius);
  background-image: radial-gradient(circle 1.8px, rgba(0, 0, 0, .35) 98%, #0000); background-size: 10px 4px; background-repeat: repeat-x; background-position: var(--notch) 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000), radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000), radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000);
  mask-composite: intersect;
}
.ticket__main:hover .ticket__title { color: var(--wine); }
.ticket__main:hover .ticket__go { transform: translateX(4px); }
.ticket__route { font: 700 12px/1.3 var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--wine); }
.ticket__title { font: 700 clamp(19px, 4.6vw, 23px)/1.15 var(--display); text-transform: uppercase; letter-spacing: .01em; transition: color .15s; overflow-wrap: anywhere; }
.ticket__desc { color: var(--muted); font-size: 15px; }
.ticket__go { color: var(--sun); font: 400 24px/1 var(--display); transition: transform .2s var(--ease); justify-self: start; margin-top: 2px; }
.ticket__stub .btn { background: var(--black); border-color: var(--black); }
.ticket__stub .btn:hover { background: var(--wine); border-color: var(--wine); }
@media (min-width: 640px) {
  .ticket { grid-template-columns: 1fr 220px; }
  .ticket__main { border-radius: var(--radius) 0 0 var(--radius); padding: 26px 28px;
    -webkit-mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000), radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000);
    -webkit-mask-composite: source-in;
    mask: radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000), radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000);
    mask-composite: intersect; }
  .ticket__stub { border-radius: 0 var(--radius) var(--radius) 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; padding: 22px 22px;
    background-size: 4px 10px; background-repeat: repeat-y; background-position: 0 var(--notch);
    -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000), radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000);
    -webkit-mask-composite: source-in;
    mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000), radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000);
    mask-composite: intersect; }
}

/* --- шкала прогресса --- */
@media (min-width: 640px) { .ticket__stub .meter { flex: none; } .ticket__stub { gap: 18px; } }
.meter { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num num" "bar bar" "cap cap"; gap: 4px 10px; min-width: 120px; flex: 1; }
.meter__num { grid-area: num; font: 700 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.meter__num small { font-size: 16px; margin-left: 3px; }
.meter__cap { grid-area: cap; font-size: 13.5px; color: var(--ink-2); }
.meter__bar { grid-area: bar; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 6px; background: var(--white); overflow: hidden; margin: 6px 0 2px; }
.meter__bar::-webkit-progress-bar { background: var(--white); border-radius: 6px; }
.meter__bar::-webkit-progress-value { background: var(--sun); border-radius: 6px; }
.meter__bar::-moz-progress-bar { background: var(--sun); border-radius: 6px; }
.meter--row { grid-template-columns: auto 1fr; grid-template-areas: "num cap" "bar bar"; align-items: baseline; max-width: 340px; }
.meter--row .meter__cap { text-align: right; white-space: nowrap; color: var(--muted); }
.meter--row .meter__bar { background: var(--blush); }
.meter--row .meter__bar::-webkit-progress-bar { background: var(--blush); }
.course-head__bar .meter { flex: 1 1 220px; }
@media (max-width: 480px) { .course-head__bar .meter { flex-basis: 100%; max-width: none; } }

/* --- курс --- */
.course-head { margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.course-head__bar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 20px; }
.course-head__bar .btn { flex: 1 1 200px; max-width: 300px; }
@media (max-width: 480px) { .course-head__bar .btn { max-width: none; } }
.prose--lead { color: var(--ink-2); }

.leg { margin-top: 30px; }
.leg__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: 700 17px/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 12px; }
.leg__num { font: 400 17px/1 var(--display); color: var(--black); white-space: nowrap; }
.leg__num::after { content: " →"; color: var(--sun); }
.leg__empty { margin: 4px 0 0; }
.stops { list-style: none; margin: 0; padding: 4px 0; position: relative; background: var(--surface); border-radius: var(--radius); }
/* маршрут между остановками — красная линия-путь */
.stops::before { content: ""; position: absolute; left: 30px; top: 34px; bottom: 34px; width: 0; border-left: 2px dashed var(--sun); opacity: .75; }
.stop a { position: relative; display: flex; align-items: center; gap: 14px; padding: 13px 16px 13px 20px; text-decoration: none; color: var(--ink); min-height: 62px; border-radius: var(--radius); }
.stop + .stop a::after { content: ""; position: absolute; left: 54px; right: 16px; top: 0; height: 1px; background: var(--line); }
.stop a:hover { background: var(--wash); }
.stop__dot { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--black); display: grid; place-items: center; color: var(--black); }
.stop__dot .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.stop.is-done .stop__dot { background: var(--aurora); border-color: var(--aurora); }
.stop.is-next .stop__dot { border-color: var(--sun); background: var(--sun); box-shadow: 0 0 0 5px var(--blush); }
.stop__body { display: grid; gap: 1px; flex: 1; min-width: 0; }
.stop__num { font: 700 11.5px/1.4 var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stop.is-next .stop__num { color: var(--wine); }
.stop.is-next .stop__num::after { content: " → вы здесь"; }
.stop__title { font-weight: 500; line-height: 1.35; }
.stop.is-done .stop__title { color: var(--ink-2); }
.stop__meta { color: var(--wine); display: flex; gap: 6px; }
.stop__meta .ico { width: 16px; height: 16px; }

/* --- урок --- */
.lesson-head { margin-bottom: 22px; }
.lesson-head__where { font: 700 12px/1.4 var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--wine); margin: 0 0 10px; }
.donemark { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 12px 5px 9px; border-radius: 999px; background: var(--aurora); color: var(--black); font: 700 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.donemark .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--black); border-radius: var(--radius); overflow: hidden; margin: 0 0 16px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 639px) { .player { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; } }
.videolink { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); text-decoration: none; font-weight: 600; margin-bottom: 12px; }
.videolink > .ico:first-child { color: var(--sun); }
.videolink:hover { background: var(--wash); }

.prose { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.2; margin: 1.4em 0 .5em; }
.prose h1 { font-size: 24px; font-weight: 400; }
.prose h2 { font-size: 20px; font-weight: 400; }
.prose h3 { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 .6em; }
.prose ul, .prose ol { padding-left: 1.7em; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose li { margin: .12em 0; padding-left: .2em; }
.prose ul > li::marker { content: "→  "; color: var(--sun); font-family: var(--display); }
.prose ol > li::marker { color: var(--wine); font-family: var(--display); font-weight: 700; }
.prose blockquote { padding: 14px 18px; background: var(--white); border-left: 3px solid var(--sun); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--sunk); padding: 1px 5px; border-radius: 5px; }
.prose pre { background: var(--white); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose hr { border: 0; height: 2px; border-radius: 2px; background: var(--sun); width: 64px; margin: 2em 0; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose th { background: var(--white); }
.lesson-head + .prose, .player + .prose, .videolink + .prose { margin-top: 24px; }

.block { margin-top: 34px; }
.block__title { font: 700 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--surface); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); min-height: 56px; }
.file > .ico:first-child { color: var(--sun); }
.file__name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.file__size { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.file__dl { color: var(--wine); transition: transform .2s var(--ease), color .15s; }
.file:hover { background: var(--blush); color: var(--black); }
.file:hover .file__dl { transform: translateY(2px); }

.homework { margin-top: 34px; padding: 22px 20px 24px; border-radius: var(--radius); background: var(--honey); color: var(--black); position: relative; }
.homework__title { display: flex; align-items: center; gap: 10px; font: 700 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; color: var(--black); }
.homework .prose { font-size: 16.5px; }
.homework .prose a { color: var(--black); text-decoration-color: var(--wine); }
.homework .prose ul > li::marker { color: var(--wine); }

.lesson-actions { margin-top: 34px; }
.lesson-actions form { margin: 0; }
@media (min-width: 640px) { .lesson-actions .btn--wide { width: auto; min-width: 280px; } }

.pager { display: grid; gap: 10px; margin-top: 26px; }
.pager__link { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); min-height: 68px; }
.pager__link span { display: grid; gap: 3px; min-width: 0; font-weight: 500; line-height: 1.3; }
.pager__link small { color: var(--wine); font: 700 11.5px/1.3 var(--display); text-transform: uppercase; letter-spacing: .07em; }
.pager__link .ico { color: var(--sun); transition: transform .2s var(--ease); }
.pager__link:hover { background: var(--blush); color: var(--black); }
.pager__link:hover .ico { transform: translateX(-3px); }
.pager__link--next { justify-content: space-between; text-align: left; }
.pager__link--next:hover .ico { transform: translateX(3px); }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } .pager__link--next { text-align: right; } .pager__link--next span { justify-items: end; } }

/* --- пустые состояния / ошибки --- */
.empty { text-align: center; padding: 48px 8px; display: grid; justify-items: center; gap: 8px; position: relative; isolation: isolate; }
.empty--soft { background: var(--surface); border-radius: var(--radius); padding: 40px 20px; }
.empty__code { font: 700 clamp(72px, 22vw, 120px)/1 var(--display); color: var(--sun); margin: 0; }
.empty .h1 { font-size: clamp(20px, 5.4vw, 28px); max-width: 22em; }
.empty__line { width: min(320px, 80%); height: auto; margin: 0 auto 8px; }

/* --- админка --- */
.subnav { display: flex; gap: 6px; overflow-x: auto; margin: -8px 0 24px; padding-bottom: 4px; }
.subnav a { padding: 10px 16px; border-radius: 999px; text-decoration: none; color: var(--black); font: 700 12.5px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; border: 1.5px solid var(--line); background: var(--white); }
.subnav a:hover { border-color: var(--wine); color: var(--wine); }
.subnav a.is-current { background: var(--black); border-color: var(--black); color: #fff; }
.titlerow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; margin-top: 20px; }
.panel--danger { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blush); }
.panel--danger .h2 { color: var(--wine); }
.h1 + .table, .h1 + .tablewrap { margin-top: 18px; }
.tablewrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.tablewrap .table { border-radius: 0; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font: 700 11.5px/1.3 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--black); background: var(--blush); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover > * { background: var(--ice); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table--matrix th[scope=row] { font-weight: 500; white-space: nowrap; }
.table--matrix thead th { min-width: 140px; }
.pct { font-weight: 700; display: inline-block; min-width: 3.4em; padding: 2px 8px; border-radius: 999px; text-align: center; }
.pct--full { background: var(--aurora); color: var(--black); }
.pct--zero { color: var(--muted); font-weight: 400; }
.mover { display: inline-flex; gap: 0; margin: 0; }
.amod { padding: 16px 0; border-top: 1px solid var(--line); }
.amod:first-of-type { border-top: 0; padding-top: 0; }
.amod__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.amod__head form { margin: 0; }
.amod__num { font: 400 20px/1 var(--display); color: var(--wine); min-width: 1.2em; }
.input--title { font-weight: 600; flex: 1 1 200px; min-width: 0; width: auto !important; }
.amod__head .inline { flex-wrap: nowrap; }
@media (max-width: 600px) { .amod__head .inline { flex-wrap: wrap; } }
.alessons { list-style: none; margin: 8px 0 10px 0; padding: 0; }
.alessons li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.alessons li:hover { background: var(--ice); }
.alessons li a { text-decoration: none; color: var(--ink); font-weight: 500; }
.alessons li a:hover { color: var(--wine); }
.alessons__n { color: var(--muted); font-size: 13px; min-width: 1.8em; text-align: right; font-variant-numeric: tabular-nums; }
.alessons__meta { display: flex; gap: 10px; color: var(--wine); font-size: 13px; }
.alessons__meta span { display: inline-flex; gap: 3px; align-items: center; }
.amod__empty { margin: 8px 0 8px 70px; }
.amod__add { margin-left: 60px; }
@media (max-width: 600px) { .amod__add, .amod__empty { margin-left: 0; } }
.addrow { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.afiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.afiles li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; background: var(--ice); }
.afiles form { margin: 0; }
.mdhead { display: flex; justify-content: space-between; align-items: center; }
.mdpreview { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--ice); }
.mdhelp summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.mdhelp pre { background: var(--ice); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; overflow-x: auto; }
.codeline { background: var(--white); padding: 8px 12px; border-radius: 8px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Возврат к программе курса со страницы урока */
.backlink { margin: -6px 0 18px; }
.backlink a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line, rgba(0,0,0,.12)); font: 700 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--wine); text-decoration: none; }
.backlink a:hover { background: var(--blush, #EED2D5); }
.backlink .arrow { color: var(--sun); font-size: 16px; }
.lesson-head__where a { color: inherit; text-decoration: none; }
.lesson-head__where a:hover { text-decoration: underline; }

/* Промты: выделенный блок с кнопкой «Скопировать» */
.prose .promptbox { margin: .4em 0 1em; border: 1px solid var(--line-strong); border-left: 4px solid var(--sun); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.prose .promptbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--ice); border-bottom: 1px solid var(--line); }
.prose .promptbox__label { font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--wine); }
.prose .promptbox__copy { font: 700 12px/1 var(--display); text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--wine); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.prose .promptbox__copy:hover { background: #000; }
.prose .promptbox pre { margin: 0; border: 0; border-radius: 0; background: var(--white); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose .promptbox pre code { font-family: "Onest", sans-serif; font-size: 15px; line-height: 1.5; }

/* --- домашнее задание: ответ сотрудника --- */
.hint { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.hwans { margin-top: 18px; display: grid; gap: 14px; }
.answer { background: var(--surface); border-radius: var(--radius); padding: 20px 20px 22px; border-left: 4px solid var(--honey); display: grid; gap: 10px; min-width: 0; }
.answer--accepted { border-left-color: var(--aurora); }
.answer--rework { border-left-color: var(--sun); }
.answer--old { border-left-color: var(--line-strong); background: var(--ice); padding: 14px 16px; }
.answer__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.answer__head .block__title { margin: 0; }
.answer__vtitle { margin: 0; font: 700 13px/1.3 var(--display); text-transform: uppercase; letter-spacing: .05em; }
.answer__meta { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.answer__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.answer__review { background: var(--ice); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 4px; }
.answer--rework .answer__review { background: var(--blush); }
.answer--accepted .answer__review { background: rgba(176, 216, 189, .45); }
.answer__who { margin: 0; font: 700 11.5px/1.4 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--wine); }
.answer--accepted .answer__who { color: var(--black); }
.files--answer .file { background: var(--ice); min-height: 50px; padding: 10px 14px; }
.answer--old .files--answer .file { background: var(--white); }
.hwstatus { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 12px; border-radius: 999px; font: 700 11.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; background: var(--honey); color: var(--black); }
.hwstatus--accepted { background: var(--aurora); }
.hwstatus--rework { background: var(--blush); color: var(--wine); }
.answer-history { background: var(--surface); border-radius: var(--radius); padding: 4px 16px; }
.answer-history > summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--wine); }
.answer-history[open] > summary { margin-bottom: 4px; }
.answer-history .answer { margin-bottom: 12px; }
.hwform { background: var(--surface); border-radius: var(--radius); padding: 20px 20px 22px; }
.hwform--again { padding: 4px 20px; }
.hwform--again details[open] { padding-bottom: 20px; }
.hwform__toggle { cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 0; font: 700 13px/1.3 var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--wine); list-style: none; }
.hwform__toggle::-webkit-details-marker { display: none; }
.hwform__toggle .ico { color: var(--sun); transition: transform .2s var(--ease); }
details[open] > .hwform__toggle .ico { transform: rotate(90deg); }
.hwform input[type=file] { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px; background: var(--ice); }
.hwform .form-error { margin: 0; }
.picked { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.picked li { display: flex; gap: 10px; justify-content: space-between; padding: 7px 12px; border-radius: 8px; background: var(--ice); font-size: 14.5px; }
.picked__name { min-width: 0; overflow-wrap: anywhere; }
.picked__size { color: var(--muted); white-space: nowrap; }
@media (min-width: 640px) { .hwform__send.btn--wide { width: auto; min-width: 280px; } }

/* --- админка: домашние задания --- */
.subnav { position: relative; }
.subnav .count { position: relative; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--sun); color: #fff; font: 700 11px/1 var(--font); letter-spacing: 0; vertical-align: 1px; }
.hwfilter { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin: 18px 0 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs__item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); text-decoration: none; color: var(--black); font-weight: 500; font-size: 14.5px; }
.tabs__item:hover { border-color: var(--wine); color: var(--wine); }
.tabs__item.is-current { background: var(--wine); border-color: var(--wine); color: #fff; }
.tabs__n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.tabs__item.is-current .tabs__n { color: rgba(255, 255, 255, .8); }
.hwfilter__course { flex: 0 1 320px; min-width: 0; }
.hwfilter__course select { min-height: 42px; padding: 8px 12px; }
.hwlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hwrow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who st" "what what" "when go"; gap: 4px 12px; align-items: center; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.hwrow:hover { background: var(--wash); color: var(--black); }
.hwrow__who { grid-area: who; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.hwrow__what { grid-area: what; display: grid; gap: 1px; min-width: 0; }
.hwrow__course { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.hwrow__lesson { font-weight: 500; overflow-wrap: anywhere; }
.hwrow__when { grid-area: when; color: var(--muted); font-size: 13.5px; }
.hwrow__st { grid-area: st; justify-self: end; }
.hwrow__go { grid-area: go; color: var(--sun); justify-self: end; transition: transform .2s var(--ease); }
.hwrow:hover .hwrow__go { transform: translateX(3px); }
@media (min-width: 860px) {
  .hwrow { grid-template-columns: minmax(150px, 1.1fr) 2.4fr 150px 150px 20px; grid-template-areas: "who what when st go"; }
}
.hwnote { margin-top: 16px; font-size: 14px; }
.hwcard__head { margin-bottom: 18px; }
.hwcard__who { margin: 0; }
.hwcard { display: grid; gap: 18px; align-items: start; }
.hwcard__main { display: grid; gap: 0; min-width: 0; }
.hwcard__main .panel { margin-top: 16px; }
.hwcard__task { margin-top: 0; }
.hwcard__open { margin: 14px 0 0; }
.hwcard__open a { color: var(--black); text-decoration-color: var(--wine); font-weight: 600; }
.hwreview__btns .btn { flex: 1 1 180px; }
.answer-history--admin { margin-bottom: 8px; }
@media (min-width: 960px) {
  .hwcard { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hwcard__task { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
}

/* Сворачиваемые модули на странице курса */
.legs-tools { display: flex; gap: 16px; justify-content: flex-end; margin-top: 22px; }
.linkbtn { background: none; border: 0; padding: 4px 0; font: 700 12px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--wine); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
details.leg { margin-top: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
details.leg[open] { padding-bottom: 12px; }
.leg__sum { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; }
.leg__sum::-webkit-details-marker { display: none; }
.leg__sum .leg__title { margin: 0; flex: 1; }
.leg__count { font: 700 12px/1 var(--display); color: var(--muted); white-space: nowrap; }
.leg__chev { width: 10px; height: 10px; border-right: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(45deg); transition: transform .15s; margin: -4px 4px 0 0; flex: none; }
details.leg[open] .leg__chev { transform: rotate(-135deg); margin-top: 4px; }
.leg__sum:hover .leg__title { color: var(--wine); }
.leg__sum .leg__num { display: none; }
.leg__sum .leg__title { display: block; flex-wrap: nowrap; }
.login__hint a { color: var(--wine); font-weight: 700; }
.subnav a { display: inline-flex; align-items: center; }
.subnav .count { height: 18px; margin-top: -4px; margin-bottom: -4px; }
/* на телефоне пять разделов админки переносятся на вторую строку — все видны без прокрутки */
@media (max-width: 640px) { .subnav { flex-wrap: wrap; overflow: visible; } }
.hwans, .hwreview { scroll-margin-top: 80px; }

/* --- покупка курса --- */
.buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 18px 0 0; }
.buy__sum { font: 700 clamp(26px, 6vw, 34px)/1.1 var(--display); color: var(--wine); }
.buy { max-width: 640px; }
.buy__consent { align-items: flex-start; line-height: 1.45; }
.buy__consent input { margin-top: 2px; }
.buy__note { font-size: 14px; margin: 0; }
.payres { max-width: 640px; }
.payres .h1 { margin-bottom: 12px; }
.forsale { margin-top: 34px; }
.forsale .h2 { margin-bottom: 12px; }
.forsale__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.forsale__item { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.forsale__title { font-weight: 600; font-size: 17px; }
.forsale__meta { color: var(--muted); font-size: 14.5px; }
.paychip { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 12px; border-radius: 999px; font: 700 11.5px/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; background: var(--honey); color: var(--black); }
.paychip--paid, .paychip--sent { background: var(--aurora); }
.paychip--declined, .paychip--error, .paychip--expired, .paychip--refunded, .paychip--off { background: var(--blush); color: var(--wine); }
.paytable td { vertical-align: top; }
.paytable small { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.paytabs { margin: 18px 0; }
.buy__methods { display: flex; flex-wrap: wrap; gap: 12px; }
.buy__methods .btn { flex: 1 1 260px; }

/* --- стажировка: закрытые дни и проверка знаний --- */
.leg--locked .leg__title { color: var(--muted); }
.leg__lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 13.5px; }
.leg__lock .ico { width: 15px; height: 15px; }
.empty__code .ico { width: 40px; height: 40px; }
.quiz { margin-top: 34px; padding: 22px 20px 24px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--black); }
.quiz__title { display: flex; align-items: center; gap: 10px; font: 700 15px/1.3 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.quiz__result { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.quiz__result.is-pass { background: var(--aurora); }
.quiz__result.is-fail { background: var(--blush); color: var(--wine); }
.quiz__result .muted { font-weight: 400; color: var(--ink-2); }
.quiz__form { display: grid; gap: 18px; }
.qq { margin: 0; padding: 14px 14px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); min-width: 0; }
.qq.is-ok { border-color: var(--aurora); background: rgba(176, 216, 189, .18); }
.qq.is-bad { border-color: var(--sun); background: var(--wash); }
.qq__q { padding: 0 4px; font-weight: 600; line-height: 1.4; }
.qq__n { color: var(--wine); }
.qq__opt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; cursor: pointer; line-height: 1.4; }
.qq__opt input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--wine); }
.qq__opt.is-right span { font-weight: 600; text-decoration: underline; text-decoration-color: var(--aurora); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.qq__note { margin: 6px 4px 0; font-size: 14.5px; color: var(--ink-2); }
.input--day { flex: 0 0 76px; width: 76px !important; text-align: center; }
.audios { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.audio { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.audio__name { font-weight: 600; line-height: 1.35; }
.audio audio { width: 100%; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); display: block; }
.leg--locked .leg__sum { flex-wrap: wrap; }
.leg--locked .leg__lock { order: 3; flex-basis: 100%; white-space: normal; padding-left: 2px; }
.qq__opt input[type=radio], .qq__opt input[type=checkbox] { width: 18px !important; height: 18px; min-height: 0 !important; padding: 0 !important; margin: 3px 0 0; border: 0; flex: none; appearance: auto; -webkit-appearance: auto; }
.qq__opt span { flex: 1; min-width: 0; }
