/* Тавоно — дизайн-система (светлый современный стиль).
   Один шрифт (Golos Text, поддерживает ҳ ҷ ӣ ӯ қ ғ), холодная светлая основа,
   гранатовый цвет для действий, абрикосовый для отметок прогресса.
   Единственный декоративный элемент — лента-атлас (икат) в шапке и на главной. */

@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-cyrillic-ext-400-normal.f583a1337dcd.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-cyrillic-400-normal.9b78e1498e9f.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("../fonts/golos-text-latin-400-normal.78111508d0b4.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-cyrillic-ext-600-normal.13db4948ce3c.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-cyrillic-600-normal.0a81ec743240.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("../fonts/golos-text-latin-600-normal.77a3b984e700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 800; font-display: swap; src: url("../fonts/golos-text-cyrillic-ext-800-normal.476c50ffdffd.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Golos Text"; font-weight: 800; font-display: swap; src: url("../fonts/golos-text-cyrillic-800-normal.86f48829274a.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 800; font-display: swap; src: url("../fonts/golos-text-latin-800-normal.90e1b9c5d726.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Цвета: светлая чистая основа, один зелёный акцент */
  --soft: #f4f7f4;            /* фон секций */
  --surface: #ffffff;
  --ink: #14231a;             /* текст, 16.3:1 */
  --muted: #4f5b53;           /* второстепенный текст, 7.1:1 */
  --line: #e1e7e2;
  --line-strong: #8a948d;     /* границы полей, ≥ 3:1 */
  --brand: #4a7a0b;           /* действия и ссылки, 5.2:1 на белом (тон логотипа) */
  --brand-deep: #2f5006;
  --brand-wash: #eff6e4;
  --brand-bright: #5c950e;    /* цвет логотипа: заливки, прогресс, отметки */
  --hero: #1d3a0b;            /* тёмно-оливковый баннер */
  --ok: #4a7a0b;
  --ok-wash: #eff6e4;
  --warn: #7a4b00;
  --warn-wash: #fff6e0;
  --danger: #b3261e;
  --danger-wash: #fdecea;

  /* Форма */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --page: 76rem;
  --tap: 3rem;
  --font: "Golos Text", "Segoe UI", "Noto Sans", "DejaVu Sans", Roboto, Arial, sans-serif;
  --nav-h: 4.25rem;
  --lift: 0 2px 4px rgba(20, 35, 26, .04), 0 10px 30px rgba(20, 35, 26, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + .5rem); scroll-padding-top: 1rem; }
@media (min-width: 48em) { html { scroll-padding-bottom: 0; } }
body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;        /* 18 px */
  line-height: 1.55;
  overflow-wrap: break-word;
  font-feature-settings: "kern";
}
img, video { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.012em; }
h1 { font-size: 1.95rem; }
h2 { font-size: 1.45rem; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 6px var(--brand-bright); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: 1rem; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; vertical-align: -.2em; }

.skip-link { position: absolute; left: 1rem; top: -10rem; z-index: 100; background: var(--surface); padding: .75rem 1rem; border: 2px solid var(--ink); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: .75rem; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48em) { .wrap { padding: 0 1.5rem; } }
main { padding-bottom: 2.5rem; }
main:focus { outline: none; }
.page-head { padding: 1.5rem 0 .5rem; }
.page-head h1 { margin: 0 0 .35rem; }
.page-head .lead { color: var(--muted); max-width: 40rem; margin: 0; }
.lead { font-size: 1.2rem; }

/* --- Лента-атлас --- */
.atlas { height: 10px; background: var(--none-atlas) repeat-x 0 0 / auto 10px; }
.atlas-wide { height: 36px; background: var(--none-atlas) repeat-x 0 0 / auto 36px; }

/* --- Шапка --- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: .75rem 1.25rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin-right: auto; padding: .5rem 0; }
.brand-mark { width: 1.9rem; height: 1.9rem; border-radius: 7px; background: var(--none-atlas) center / auto 100%; flex: none; box-shadow: inset 0 0 0 1px rgba(23, 32, 51, .08); }
.brand:hover { color: var(--brand); }
.top-nav { display: none; }
.top-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.top-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 .9rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.top-nav a:hover { background: var(--soft); }
.top-nav a[aria-current="page"] { background: var(--brand-wash); color: var(--brand-deep); }
.lang-switch { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface); }
.lang-switch svg { width: 1.15rem; height: 1.15rem; color: var(--brand); }
.lang-switch:hover { border-color: var(--brand); color: var(--brand-deep); }

/* --- Нижняя навигация (телефон) --- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); box-shadow: 0 -4px 16px rgba(23, 32, 51, .06); }
.bottom-nav ul { display: flex; list-style: none; margin: 0; padding: 0 .25rem; }
.bottom-nav li { flex: 1 1 0; min-width: 0; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: var(--nav-h); padding: .4rem .25rem; color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; text-align: center; line-height: 1.15; }
.bottom-nav svg { width: 1.6rem; height: 1.6rem; flex: none; padding: .15rem .9rem; box-sizing: content-box; border-radius: 999px; }
.bottom-nav a[aria-current="page"] { color: var(--brand-deep); }
.bottom-nav a[aria-current="page"] svg { background: var(--brand-wash); }
body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + .5rem); }
body.keyboard-open .bottom-nav { display: none; }
body.keyboard-open { padding-bottom: 0; }
@media (max-width: 22em) {
  .bottom-nav svg { display: none; }
  .bottom-nav a { min-height: var(--tap); font-size: .95rem; }
  body { padding-bottom: calc(var(--tap) + env(safe-area-inset-bottom, 0px) + .5rem); }
}
@media (min-width: 48em) {
  .top-nav { display: block; }
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.65rem; }
}

/* --- Кнопки и поля --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: var(--tap); min-width: var(--tap); padding: .65rem 1.3rem; border: 2px solid var(--brand); border-radius: var(--r-sm); background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.25; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--brand-deep); }
.btn-secondary:hover { background: var(--brand-wash); color: var(--brand-deep); }
.btn-quiet { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--soft); color: var(--ink); border-color: var(--ink); }
.btn-big { min-height: 3.5rem; font-size: 1.15rem; padding: .75rem 1.6rem; }
.btn[disabled], .btn[aria-disabled="true"] { background: #e6e9ee; border-color: #c4cad3; color: var(--muted); cursor: not-allowed; transform: none; }
.btn[aria-pressed="true"][data-save-toggle] { background: var(--brand-wash); border-color: var(--brand-bright); color: var(--ink); }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-block { width: 100%; }

label, .label { display: block; font-weight: 600; margin-bottom: .4rem; }
input[type="text"], input[type="search"], input[type="email"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  min-height: var(--tap); padding: .65rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.field { margin-bottom: 1.35rem; }
.field-error { color: var(--danger); font-weight: 600; margin: .4rem 0 0; }
.field-error::before { content: "⚠ "; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); border-width: 2px; }
.hint { color: var(--muted); font-size: 1rem; margin-top: .25rem; }

/* --- Поиск --- */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-field { position: relative; flex: 1 1 14rem; min-width: 0; }
.search-field svg { position: absolute; left: .9rem; top: 50%; width: 1.3rem; height: 1.3rem; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-form input[type="search"] { padding-left: 2.8rem; font-size: 1.15rem; min-height: 3.5rem; border-radius: var(--r-md); }
.search-form .btn { flex: 0 0 auto; min-height: 3.5rem; border-radius: var(--r-md); padding-inline: 1.5rem; }

/* --- Сообщения и метки --- */
.notice { border: 1px solid var(--line); border-left: 5px solid var(--ink); background: var(--surface); border-radius: var(--r-sm); padding: .9rem 1rem; margin: 1rem 0; }
.notice > :last-child { margin-bottom: 0; }
.notice-warn { border-color: #e9cf96; border-left-color: var(--warn); background: var(--warn-wash); }
.notice-success { border-color: #a9d6bb; border-left-color: var(--ok); background: var(--ok-wash); }
.notice-error { border-color: #ecb4b6; border-left-color: var(--danger); background: var(--danger-wash); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .6rem; border-radius: 999px; font-size: .95rem; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); line-height: 1.5; }
.badge-accent { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-wash); }
.badge-demo { border-color: var(--warn); background: var(--warn-wash); color: var(--warn); }
.badge-closed { border-color: var(--danger); background: var(--danger-wash); color: var(--danger); }
.badge-done { border-color: var(--ok); background: var(--ok-wash); color: var(--ok); }
.badge-done::before { content: "✓"; }
.pills { display: flex; flex-wrap: wrap; gap: .4rem .5rem; list-style: none; margin: 0; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 1rem; font-weight: 600; }
.pill svg { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.device-note { font-size: 1rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }

/* --- Карточки --- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--lift); }
.card h3 { margin: 0; font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.card h3 a:hover { color: var(--brand-deep); text-decoration: underline; }
.card h3 a:focus-visible { outline: none; box-shadow: none; }
.card:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--brand-bright); }
.card .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: 1rem; color: var(--muted); margin: auto 0 0; padding: .35rem 0 0; list-style: none; }
.card .meta li { display: inline-flex; align-items: center; gap: .35rem; }
.card .meta svg { width: 1.1rem; height: 1.1rem; }
.card .goal { margin: 0; color: var(--ink); }
.card-type { align-self: flex-start; }
.card .card-action { position: relative; z-index: 1; align-self: flex-start; }
/* Курс в выдаче — крупнее и с лентой */
.card-course { border-color: var(--brand); padding-top: 1.6rem; overflow: hidden; }
.card-course::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--none-atlas) repeat-x 0 0 / auto 8px; }
@media (min-width: 40em) { .cards > .card-course { grid-column: 1 / -1; } .card-course h3 { font-size: 1.45rem; } }

/* --- Главная --- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 1.75rem; padding-top: 1.75rem; padding-bottom: 2rem; }
.hero h1 { font-size: 2.15rem; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 1rem; max-width: 16ch; }
.examples { margin: 1rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; }
.examples .muted { margin-right: .25rem; }
.examples a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .25rem .9rem; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.examples a:hover { background: var(--brand-wash); color: var(--brand-deep); }
@media (min-width: 48em) { .hero h1 { font-size: 3.3rem; } .hero-inner { padding-top: 3rem; padding-bottom: 3.25rem; } }
@media (min-width: 64em) { .hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 3rem; } }

/* Маршрут курса — вертикальная лента шагов (используется на главной и в курсе) */
.route { background: var(--soft); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1.4rem; position: relative; overflow: hidden; }
.route::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--none-atlas) repeat-x 0 0 / auto 10px; }
.route-head { margin: .5rem 0 1rem; }
.route-head h2 { font-size: 1.3rem; margin: 0 0 .2rem; }
.route-head p { margin: 0; color: var(--muted); }
.route .btn-row { margin-top: 1.1rem; }

.course-plan { list-style: none; padding: 0; margin: 0; position: relative; }
.course-plan li { position: relative; display: grid; grid-template-columns: 2.5rem 1fr; gap: .1rem .9rem; align-items: start; padding: 0 0 1rem; }
.course-plan li:last-child { padding-bottom: 0; }
.course-plan li:not(:last-child)::before { content: ""; position: absolute; left: calc(1.25rem - 1.5px); top: 2.5rem; bottom: 0; width: 3px; background: var(--line); border-radius: 2px; }
.course-plan .num { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; position: relative; z-index: 1; }
.course-plan li.is-done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.course-plan li.is-done:not(:last-child)::before { background: var(--ok); }
.course-plan a { font-weight: 600; font-size: 1.1rem; color: var(--ink); text-decoration-color: var(--line-strong); display: inline-block; padding-top: .3rem; }
.course-plan a:hover { color: var(--brand-deep); text-decoration-color: currentColor; }
.course-plan .plan-meta { margin: .15rem 0 0; font-size: 1rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.progress { height: .7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); overflow: hidden; margin: .4rem 0 .35rem; max-width: 28rem; }
.progress > span { display: block; height: 100%; background: var(--brand-bright); width: 0; border-right: 2px solid var(--ink); }
.progress > span[style*="width: 0"] { border-right: 0; }

.continue-card { display: grid; gap: .25rem; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 1.1rem 1.25rem; margin: 1.5rem 0 0; }
.continue-card h2 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0; opacity: .85; letter-spacing: 0; }
.continue-card p { margin: 0; }
.continue-card #continue-link { background: var(--brand-bright); border-color: var(--brand-bright); color: var(--ink); margin: .5rem 0 .25rem; justify-content: flex-start; text-align: left; }
.continue-card #continue-link:hover { background: #ffc85c; border-color: #ffc85c; }
.continue-card .muted { color: #c7cdda; }
.continue-card :focus-visible { outline-color: #fff; }

.section { margin-top: 2.25rem; }
.section > h2 { margin: 0 0 1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; }

.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.topics a { display: flex; align-items: center; gap: .9rem; min-height: 4.5rem; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 600; }
.topics a:hover { border-color: var(--brand); }
.topics .topic-icon { display: flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; border-radius: var(--r-sm); background: var(--brand-wash); color: var(--brand); flex: none; }
.topics svg { width: 1.6rem; height: 1.6rem; }
.topics .muted { display: block; font-weight: 400; font-size: 1rem; }

.job-teaser { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.job-teaser ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.job-teaser li a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; padding: .75rem .9rem; border-radius: var(--r-sm); background: var(--soft); color: var(--ink); text-decoration: none; }
.job-teaser li a:hover { background: var(--brand-wash); }
.job-teaser li strong { font-weight: 600; }
.job-teaser li span { color: var(--muted); font-size: 1rem; }
@media (min-width: 56em) { .job-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; padding: 1.5rem 1.75rem; } }
.job-teaser h2 { margin: 0 0 .35rem; }
.job-teaser p { margin: 0 0 1rem; color: var(--muted); }

/* --- Каталог --- */
.catalog-layout { display: grid; gap: 1.25rem; }
@media (min-width: 60em) { .catalog-layout { grid-template-columns: 16.5rem minmax(0, 1fr); align-items: start; gap: 2rem; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0; }
.filters summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; font-weight: 600; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ""; margin-left: auto; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.filters[open] summary::after { transform: rotate(-135deg); }
.filters .filters-body { padding: 0 1rem 1rem; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.filters legend { font-weight: 600; margin-bottom: .4rem; padding: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 60em) { .filters { position: sticky; top: 1rem; } }
.radio { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; font-weight: 400; margin: 0; cursor: pointer; }
.radio input { width: 1.3rem; height: 1.3rem; accent-color: var(--brand); flex: none; }
.results-count { color: var(--muted); margin: 0 0 .75rem; font-size: 1rem; }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 1.25rem 1.25rem .5rem; }

/* --- Урок --- */
.breadcrumbs { font-size: 1rem; margin: 1.1rem 0 .6rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-deep); }
.lesson-layout { display: grid; gap: 1.75rem; }
.lesson-main { min-width: 0; }
.lesson-main .prose { max-width: 40rem; }
@media (min-width: 64em) { .lesson-layout { grid-template-columns: minmax(0, 1fr) 18.5rem; gap: 2.5rem; } }
.lesson-head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1.1rem; }
.lesson-head h1 { margin: .25rem 0 .75rem; }
.lesson-head .course-link { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 600; margin: 0; }
.lesson-head .goal { font-size: 1.15rem; margin: .9rem 0 0; }
.lesson-head .goal strong { display: block; font-size: 1rem; color: var(--muted); font-weight: 600; }
.device-choice { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.device-choice h2 { font-size: 1rem; color: var(--muted); font-weight: 600; margin: 0 0 .5rem; letter-spacing: 0; }
.device-options { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.device-options a { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: .45rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.device-options a:hover { border-color: var(--ink); }
.device-options a[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.device-options a[aria-current="true"]::before { content: "✓"; }
.config-line { font-size: 1rem; color: var(--muted); }
.lesson-tools { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: 1rem 0; }

.video-section h2, #steps-title, #dl-title, #jobs-title { margin-top: 2rem; }
.player { background: #0e1424; border-radius: var(--r-lg); overflow: hidden; position: relative; aspect-ratio: 16 / 9; }
.player img.poster, .player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #0e1424; }
.player .play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); min-width: 5rem; min-height: 4rem; padding: .9rem 1.5rem .9rem 1.2rem; border-radius: 999px; background: var(--brand-bright); border: 0; color: var(--ink); font: inherit; font-weight: 800; font-size: 1.15rem; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); white-space: nowrap; }
@media (max-width: 30em) { .player .play-big { font-size: 1rem; min-height: 3.25rem; padding: .6rem 1.1rem .6rem .9rem; } }
.player .play-big svg { width: 1.6rem; height: 1.6rem; }
.player .play-big:hover { background: #ffc85c; }
.player .play-big:focus-visible { outline-color: #fff; }
.player-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0; }
.player-controls .btn { padding: .4rem .9rem; font-size: 1rem; }
.player-status { margin: .5rem 0; }
.chapters { list-style: none; padding: 0; margin: .5rem 0 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.chapters li + li { border-top: 1px solid var(--line); }
.chapters button { width: 100%; display: flex; gap: .9rem; align-items: center; min-height: var(--tap); padding: .55rem 1rem; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.chapters button:hover { background: var(--soft); }
.chapters button[aria-current="true"] { font-weight: 600; background: var(--brand-wash); box-shadow: inset 4px 0 0 var(--brand-bright); }
.chapters .tc { font-variant-numeric: tabular-nums; color: var(--brand-deep); font-weight: 600; min-width: 3.2rem; }
details.disclosure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 1rem 0; }
details.disclosure > summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; padding: .5rem 1rem; font-weight: 600; }
details.disclosure > div { padding: 0 1rem 1rem; }

/* Шаги — нумерованная тропа */
.step-meter { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; margin: 0 -1rem 1rem; padding: .55rem 1rem; background: rgba(238, 241, 245, .96); border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1rem; }
.step-meter .progress { flex: 1; margin: 0; max-width: none; }
@media (min-width: 48em) { .step-meter { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--r-md); } }
@supports not (position: sticky) { .step-meter { position: static; } }
.steps { list-style: none; padding: 0; margin: 0; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.2rem 1.2rem 4.1rem; margin-bottom: 1rem; scroll-margin-top: 4rem; }
.step:focus { outline: none; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 1.95rem; top: 3.6rem; bottom: -1rem; width: 3px; background: var(--line); }
.step-num { position: absolute; left: .85rem; top: 1rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; color: var(--ink); z-index: 1; }
.step-num .visually-hidden + span { line-height: 1; }
.step.is-passed .step-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-passed:not(:last-child)::after { background: var(--ok); }
.step.is-current { border: 2px solid var(--ink); padding: calc(1.1rem - 1px) calc(1.2rem - 1px) calc(1.2rem - 1px) calc(4.1rem - 1px); box-shadow: 0 0 0 4px var(--brand-bright); }
.step.is-current .step-num { background: var(--brand-bright); border-color: var(--ink); left: calc(.85rem - 1px); top: calc(1rem - 1px); }
.step h3 { margin: .2rem 0 .6rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.ui-label { display: inline-block; background: #eef1f5; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 6px; padding: .05rem .5rem; font-weight: 600; }
.on-screen { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem; }
.step-figure { margin: .9rem 0 0; }
.step-figure button { display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: zoom-in; width: 100%; overflow: hidden; }
.step-figure img { display: block; width: 100%; }
.step-figure figcaption { font-size: 1rem; color: var(--muted); margin-top: .4rem; }
.step-actions { margin-top: 1rem; }
@media (max-width: 26em) {
  .step { padding-left: 1.1rem; padding-top: 3.9rem; }
  .step.is-current { padding-left: calc(1.1rem - 1px); padding-top: calc(3.9rem - 1px); }
  .step:not(:last-child)::after { display: none; }
}

.image-dialog { border: 0; padding: 0; max-width: min(96vw, 80rem); width: 100%; background: var(--surface); border-radius: var(--r-md); }
.image-dialog::backdrop { background: rgba(14, 20, 36, .8); }
.image-dialog .dlg-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.image-dialog img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }

.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.downloads a { display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 600; text-decoration: none; color: var(--ink); }
.downloads a:hover { border-color: var(--brand); color: var(--brand-deep); }
.downloads .file-icon { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm); background: var(--brand-wash); color: var(--brand); flex: none; }
.downloads svg { width: 1.4rem; height: 1.4rem; }

.practice { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.2rem 1.25rem; margin: 2rem 0 1.5rem; position: relative; overflow: hidden; }
.practice::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--none-atlas) repeat-x 0 0 / auto 8px; }
.practice h2 { margin: .4rem 0 .6rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist label { display: flex; gap: .8rem; align-items: flex-start; font-weight: 400; min-height: var(--tap); padding: .45rem .5rem; margin: 0 -.5rem; border-radius: var(--r-sm); cursor: pointer; }
.checklist label:hover { background: var(--soft); }
.checklist input { width: 1.45rem; height: 1.45rem; margin-top: .1rem; accent-color: var(--ok); flex: none; }
.checklist input:checked + span { color: var(--muted); }
.success-box { background: var(--ok-wash); border: 1px solid #a9d6bb; border-radius: var(--r-md); padding: .85rem 1rem; }
.finish { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; margin-top: 1.5rem; }
.finish .help-links { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.help-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.related-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.related-jobs a { font-weight: 600; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem 1.1rem; }
.toc h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin: 0; padding: .3rem 0; counter-increment: toc; }
.toc a { display: flex; gap: .55rem; color: var(--ink); text-decoration: none; padding: .2rem .35rem; border-radius: 6px; }
.toc a:hover { background: var(--soft); text-decoration: underline; }
.toc a[aria-current="step"] { font-weight: 600; background: var(--brand-wash); box-shadow: inset 3px 0 0 var(--brand-bright); }
.toc .toc-help { margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); font-size: 1rem; }
@media (min-width: 64em) and (min-height: 40em) { .toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; } }

/* --- Курс --- */
.course-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.25rem 1.25rem; position: relative; overflow: hidden; margin-top: .5rem; }
.course-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--none-atlas) repeat-x 0 0 / auto 10px; }
.course-hero h1 { margin: .6rem 0 .75rem; }
.course-hero .goal { font-size: 1.2rem; max-width: 40rem; }
.course-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 60em) { .course-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 2.5rem; } }
.course-grid .route { background: var(--surface); border: 1px solid var(--line); }
.course-grid .route::before { display: none; }
.course-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; }
.course-side h2 { margin-top: 0; font-size: 1.2rem; }
.course-side ul { padding-left: 1.2rem; margin: 0; }

/* --- Вакансии --- */
.job-card .job-company { margin: 0; color: var(--muted); }
.job-facts { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: 1rem; }
.job-facts li { display: flex; gap: .5rem; align-items: flex-start; }
.job-facts svg { width: 1.15rem; height: 1.15rem; color: var(--muted); flex: none; margin-top: .2rem; }
.job-facts strong { font-weight: 600; }
.job-card .checked { margin: auto 0 0; padding-top: .5rem; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.jobs-filter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; margin: 1.25rem 0 1.5rem; }
.job-layout { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 60em) { .job-layout { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; gap: 2.5rem; } .job-aside { position: sticky; top: 1rem; } }
.job-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .25rem 1.25rem 1.25rem; }
.job-body h2 { font-size: 1.25rem; margin-top: 1.25rem; }
.facts { display: grid; grid-template-columns: minmax(5.5rem, 40%) minmax(0, 1fr); gap: .45rem 1rem; margin: 0; }
.facts dt { color: var(--muted); font-size: 1rem; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 24em) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .45rem; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.1rem 1.25rem; }
.panel h2 { margin-top: 0; font-size: 1.25rem; }
.email-box { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.email-box code { font: inherit; font-weight: 600; font-size: 1.05rem; padding: .4rem .6rem; background: var(--soft); border-radius: 6px; word-break: break-all; }

/* --- Помощь --- */
.faq { display: grid; gap: .75rem; margin: 1.25rem 0 0; }
.faq section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.faq h2 { font-size: 1.15rem; margin: 0 0 .4rem; }
.faq p { margin: 0; }

/* --- Подвал --- */
.site-footer { background: var(--ink); color: #d5dae4; margin-top: 3rem; font-size: 1rem; }
.site-footer .atlas { opacity: 1; }
.site-footer .wrap { display: grid; gap: 1rem 2rem; padding-top: 1.5rem; padding-bottom: 1.75rem; }
@media (min-width: 48em) { .site-footer .wrap { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.site-footer p { margin: 0 0 .5rem; max-width: 34rem; }
.site-footer strong { color: #fff; font-size: 1.15rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer :focus-visible { outline-color: #fff; }

/* --- Выбор языка --- */
.lang-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.lang-page .atlas-wide { flex: none; }
.lang-choice { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1rem; padding: 2.5rem 1rem; }
.lang-choice h1 { display: inline-flex; align-items: center; gap: .75rem; font-size: 2.6rem; margin: 0; }
.lang-choice h1 .brand-mark { width: 2.6rem; height: 2.6rem; border-radius: 10px; }
.lang-options { display: grid; gap: .9rem; width: 100%; max-width: 34rem; margin: .75rem 0; }
@media (min-width: 36em) { .lang-options { grid-template-columns: 1fr 1fr; } }
.lang-options a { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: 1.1rem 1.25rem; border: 2px solid var(--ink); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); text-align: left; min-height: 6rem; justify-content: center; }
.lang-options a strong { font-size: 1.6rem; font-weight: 800; }
.lang-options a span { color: var(--muted); font-size: 1rem; }
.lang-options a:hover { background: var(--brand-wash); border-color: var(--brand); }

.offline-banner { position: sticky; top: 0; z-index: 60; }

/* ===== Современный слой: белый фон, зелёный акцент, круглые кнопки ===== */
body { background: var(--surface); }
h1, h2 { font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: 2.1rem; line-height: 1.1; }
h3 { font-weight: 600; }
@media (min-width: 48em) { h1 { font-size: 2.9rem; } h2 { font-size: 1.85rem; } }
:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 3px; box-shadow: none; }
.card:focus-within { outline: 3px solid var(--brand-deep); outline-offset: 3px; box-shadow: none; }
.atlas, .atlas-wide { display: none; }
.route::before, .card-course::before, .practice::before, .course-hero::before { display: none; }

/* Шапка */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 4.5rem; }
.brand { font-weight: 700; font-size: 1.4rem; letter-spacing: -.03em; }
.brand-mark { width: 2rem; height: 2rem; border-radius: 10px; background: var(--brand); box-shadow: none; position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: .95rem; height: .95rem; border-radius: 50% 50% 50% 4px; background: #fff; transform: rotate(-45deg); }
.top-nav a { border-radius: 999px; }
.top-nav a:hover { background: var(--soft); }
.top-nav a[aria-current="page"] { background: transparent; color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.lang-switch { border-color: var(--line-strong); }
.lang-switch svg { color: var(--brand); }
.bottom-nav { box-shadow: 0 -6px 20px rgba(20, 35, 26, .06); }
.bottom-nav a[aria-current="page"] { color: var(--brand); }
.bottom-nav a[aria-current="page"] svg { background: var(--brand-wash); }

/* Кнопки, поля, поиск */
.btn { border-radius: 999px; padding-inline: 1.5rem; }
.btn-quiet { border: 1.5px solid var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); background: var(--surface); }
.btn-secondary { border-color: var(--brand); color: var(--brand); }
.btn-secondary:hover { background: var(--brand-wash); color: var(--brand-deep); }
.btn[aria-pressed="true"][data-save-toggle] { background: var(--brand-wash); border-color: var(--brand); color: var(--brand-deep); }
input[type="text"], input[type="search"], input[type="email"], select, textarea { border-radius: var(--r-sm); }
.search-form { flex-wrap: nowrap; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; padding: .3rem; gap: .25rem; }
.search-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-wash); }
.search-form input[type="search"] { border: 0; border-radius: 999px; min-height: 3.1rem; background: transparent; }
.search-form input[type="search"]:focus { outline: none; }
.search-form .btn { min-height: 3.1rem; border-radius: 999px; }
.search-field { flex: 1 1 auto; }

/* Метки и сообщения */
.badge { border-color: var(--line); background: var(--soft); }
.badge-accent { border-color: transparent; background: var(--brand-wash); color: var(--brand-deep); }
.notice { border-radius: var(--r-md); border-left-width: 1px; }
.notice-warn { border-color: #f0d9a8; }
.notice-success { border-color: #b7dfc3; }
.notice-error { border-color: #f1bcb8; }
.pill { background: var(--soft); border: 1px solid var(--line); }
.pill svg { color: var(--brand); }

/* Карточки */
.cards { gap: 1.25rem; }
.card { border-radius: var(--r-lg); padding: 1.35rem 1.4rem 1.4rem; border-color: var(--line); transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--lift); border-color: var(--line); }
.card h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -.01em; }
.card h3 a:hover { color: var(--brand); }
.card .meta svg { color: var(--brand); }
.card-course { border: 1.5px solid var(--brand); padding-top: 1.35rem; background: linear-gradient(180deg, var(--brand-wash), var(--surface) 55%); }

/* Главная: тёмно-зелёный баннер */
.hero { background: var(--surface); border-bottom: 0; padding: 1rem 0 0; }
.hero-panel { background: var(--hero); color: #fff; border-radius: var(--r-xl); overflow: hidden; position: relative; }
.hero-panel::after { content: ""; position: absolute; right: -10rem; top: -12rem; width: 30rem; height: 30rem; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 149, 14, .45), rgba(92, 149, 14, 0)); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 2rem 1.25rem 1.5rem; }
.hero h1 { color: #fff; font-weight: 600; letter-spacing: -.035em; max-width: 15ch; }
.hero .examples .muted { color: #dbe9c6; }
.hero .examples a { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.hero .examples a:hover { background: #fff; color: var(--hero); }
.hero :focus-visible { outline-color: #fff; }
.hero .search-form { border-color: transparent; }
.hero .search-form:focus-within { box-shadow: 0 0 0 4px rgba(190, 228, 140, .55); }
.hero .search-form :focus-visible { outline-color: var(--brand-deep); }
@media (min-width: 48em) { .hero-inner { padding: 3.25rem 2.75rem 3rem; } .hero h1 { font-size: 3.6rem; } }
@media (max-width: 47.99em) { .hero > .wrap { padding: 0 .5rem; } }
.continue-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 1rem 1.2rem; }
.continue-card h2 { color: var(--muted); opacity: 1; }
.continue-card #continue-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.continue-card #continue-link:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.continue-card .muted { color: var(--muted); }
.continue-card :focus-visible { outline-color: var(--brand-deep); }
.hero .route { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.hero .route :focus-visible { outline-color: var(--brand-deep); }
.route-head { margin-top: 0; }
.route-head h2 { font-weight: 600; }
.course-plan .num { border-color: var(--line-strong); color: var(--ink); font-weight: 600; }
.course-plan li.is-done .num { background: var(--brand); border-color: var(--brand); }
.course-plan li.is-done:not(:last-child)::before { background: var(--brand); }
.course-plan a { text-decoration: none; }
.course-plan a:hover { text-decoration: underline; color: var(--brand); }
.progress { border: 0; background: #e3e9e4; height: .55rem; }
.progress > span { background: var(--brand-bright); border-right: 0; border-radius: 999px; }

.section { margin-top: 3rem; }
.section-head h2 { font-weight: 600; }
.topics { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.topics a { border-radius: var(--r-lg); min-height: 5rem; padding: 1rem 1.1rem; transition: box-shadow .15s; }
.topics a:hover { border-color: var(--line); box-shadow: var(--lift); color: var(--ink); }
.topics .topic-icon { border-radius: 50%; background: var(--brand-wash); color: var(--brand); }
.job-teaser { background: var(--soft); border: 0; border-radius: var(--r-xl); }
.job-teaser li a { background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); }
.job-teaser li a:hover { background: var(--surface); box-shadow: var(--lift); }
.job-teaser .btn-secondary { background: var(--surface); }

/* Каталог */
.filters { border-radius: var(--r-lg); }
.radio input { accent-color: var(--brand); }
.empty { border-radius: var(--r-lg); }

/* Урок */
.lesson-head { border-radius: var(--r-xl); padding: 1.5rem 1.4rem 1.25rem; }
.device-options a { border-color: var(--line-strong); }
.device-options a[aria-current="true"] { background: var(--brand); border-color: var(--brand); }
.player { border-radius: var(--r-lg); background: #0b1a11; }
.player .play-big { background: var(--brand); color: #fff; }
.player .play-big:hover { background: var(--brand-deep); }
.chapters { border-radius: var(--r-lg); }
.chapters button[aria-current="true"] { background: var(--brand-wash); box-shadow: inset 4px 0 0 var(--brand); }
.chapters .tc { color: var(--brand); }
.step-meter { background: rgba(255, 255, 255, .97); }
.step { border-radius: var(--r-lg); }
.step-num { border: 2px solid var(--line-strong); font-weight: 600; }
.step.is-passed .step-num { background: var(--brand); border-color: var(--brand); }
.step.is-passed:not(:last-child)::after { background: var(--brand); }
.step.is-current { border: 2px solid var(--brand); box-shadow: 0 0 0 5px var(--brand-wash); }
.step.is-current .step-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.step h3 { font-weight: 600; }
.ui-label { background: var(--soft); border-radius: 8px; }
.downloads a { border-radius: var(--r-md); }
.downloads a:hover { border-color: var(--brand); color: var(--brand-deep); }
.downloads .file-icon { background: var(--brand-wash); color: var(--brand); border-radius: 50%; }
.practice { border: 1.5px solid var(--brand); border-radius: var(--r-xl); background: linear-gradient(180deg, var(--brand-wash), var(--surface) 40%); }
.practice h2 { margin-top: 0; }
.checklist input { accent-color: var(--brand); }
.finish { border-radius: var(--r-xl); background: var(--soft); border: 0; }
.toc { border-radius: var(--r-lg); }
.toc a[aria-current="step"] { background: var(--brand-wash); box-shadow: inset 3px 0 0 var(--brand); }

/* Курс, вакансии, помощь */
.course-hero { border-radius: var(--r-xl); background: var(--soft); border: 0; padding: 1.75rem 1.4rem 1.5rem; }
.course-grid .route { background: var(--surface); }
.course-side { border-radius: var(--r-lg); }
.job-facts svg { color: var(--brand); }
.jobs-filter { border-radius: var(--r-lg); background: var(--soft); border: 0; }
.job-body, .panel { border-radius: var(--r-lg); }
.faq section { border-radius: var(--r-lg); }

/* Подвал */
.site-footer { background: var(--hero); color: #dde9cf; margin-top: 4rem; }
.site-footer .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* Выбор языка */
.lang-page { background: var(--soft); }
.lang-choice h1 { font-weight: 600; letter-spacing: -.03em; }
.lang-options a { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); }
.lang-options a:hover { border-color: var(--brand); background: var(--surface); box-shadow: var(--lift); }
.lang-options a strong { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .bottom-nav, .site-footer, .player, .player-controls, .step-meter, .atlas { display: none !important; }
  body { padding: 0; background: #fff; }
}

/* ===== Логотип «узел» ===== */
.brand { gap: .55rem; }
.brand-knot { display: block; height: 1.8rem; width: auto; flex: none; }
.brand .brand-knot { transition: transform .25s ease; }
.brand:hover .brand-knot { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .brand .brand-knot { transition: none; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.footer-brand .brand-knot { height: 1.7rem; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::after { content: ""; position: absolute; right: -4rem; bottom: -2.5rem; width: 26rem; height: 11rem; background: url("../brand/knot-white.ef5b7d041c55.svg") center / contain no-repeat; opacity: .06; pointer-events: none; }
.site-footer .wrap { position: relative; z-index: 1; }
.hero-panel::before { content: ""; position: absolute; right: -3.5rem; bottom: -2rem; width: 34rem; height: 15rem; background: url("../brand/knot-white.ef5b7d041c55.svg") center / contain no-repeat; opacity: .07; pointer-events: none; }
@media (max-width: 47.99em) { .hero-panel::before { display: none; } }
.lang-page { background: linear-gradient(180deg, var(--brand-wash), var(--surface) 60%); }
.lang-knot { width: min(13rem, 60vw); height: auto; margin-bottom: -.25rem; }
.lang-choice h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -.035em; }
.lang-options a { background: var(--surface); border-width: 1.5px; border-color: var(--line-strong); transition: border-color .15s, box-shadow .15s, transform .15s; }
.lang-options a:hover { border-color: var(--brand); box-shadow: 0 10px 30px rgba(29, 58, 11, .12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .lang-options a, .lang-options a:hover { transition: none; transform: none; } }

/* ===== Аккаунт: вход, регистрация, кабинет ===== */
.account-link { display: inline-flex; align-items: center; gap: .45rem; min-height: var(--tap); padding: 0 .9rem; border-radius: 999px; font-weight: 600; color: var(--ink); text-decoration: none; }
.account-link svg { width: 1.25rem; height: 1.25rem; color: var(--brand); flex: none; }
.account-link:hover, .account-link[aria-current="page"] { background: var(--brand-wash); color: var(--brand-deep); }
.account-login { background: var(--brand); color: #fff; }
.account-login svg { color: #fff; }
.account-login:hover { background: var(--brand-deep); color: #fff; }
.account-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 30em) { .account-link { padding: 0 .7rem; } .account-name { display: none; } .account-login span { display: none; } }
.flash { margin-top: 1rem; }
.notice-info { border-color: var(--line); background: var(--soft); }

.auth-wrap { display: flex; justify-content: center; padding-top: 1.5rem; padding-bottom: 2rem; }
.auth-card { width: 100%; max-width: 30rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.75rem 1.25rem; box-shadow: 0 12px 40px rgba(29, 58, 11, .06); }
.auth-card-wide { max-width: 44rem; }
@media (min-width: 36em) { .auth-card { padding: 2.25rem 2.25rem 2rem; } }
.auth-card h1 { font-size: 2rem; margin: 0 0 .4rem; }
.auth-card .lead { margin-top: 0; }
.btn-block { width: 100%; }
.auth-links { margin: 1rem 0 0; text-align: center; }
.auth-alt { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); text-align: center; }
.auth-alt p { margin: 0 0 .6rem; color: var(--muted); }
.hint { color: var(--muted); font-size: .95rem; margin: -.15rem 0 .45rem; }
input[type="password"], input[type="tel"], input[type="number"] {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  min-height: var(--tap); padding: .65rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
}
.password-field { position: relative; }
.password-field input { padding-right: 3.4rem; }
.pw-toggle { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; background: transparent; border-radius: 50%; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pw-toggle svg { width: 1.3rem; height: 1.3rem; }
.pw-toggle[aria-pressed="true"] { color: var(--brand); background: var(--brand-wash); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; cursor: pointer; margin-bottom: 1rem; }
.check input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--brand); flex: none; }
.check-field { margin-top: .5rem; }

.reg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .4rem; }
.reg-steps span { height: .4rem; border-radius: 999px; background: var(--line); }
.reg-steps .is-done, .reg-steps .is-current { background: var(--brand-bright); }
.reg-step-text { margin: 0 0 1rem; }

.choice-group, .interest-group { border: 0; padding: 0; margin: 0 0 1.35rem; min-width: 0; }
.choice-group legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.choice-tiles { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice-tile { margin: 0; font-weight: 600; cursor: pointer; }
.choice-tile input, .interest-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-tile span { display: inline-flex; align-items: center; min-height: var(--tap); padding: .5rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.choice-tile input:checked + span { background: var(--brand-wash); border-color: var(--brand); color: var(--brand-deep); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-tile input:focus-visible + span, .interest-tile input:focus-visible + .interest-icon { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.choice-tile input:checked + span::before { content: "✓"; margin-right: .4rem; }
.interest-tiles { display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 30em) { .interest-tiles { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem; } }
.interest-tile { position: relative; display: flex; align-items: center; gap: .65rem; margin: 0; padding: .7rem .8rem; min-height: 3.6rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md); font-weight: 600; cursor: pointer; background: var(--surface); line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.interest-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--soft); color: var(--brand); flex: none; }
.interest-icon svg { width: 1.2rem; height: 1.2rem; }
.interest-tile:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand-deep); }
.interest-tile:has(input:checked) .interest-icon { background: var(--brand); color: #fff; }
.interest-tile:has(input:focus-visible) { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

.account-head { display: flex; align-items: center; gap: 1rem; }
.avatar { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--hero); color: #fff; font-weight: 700; font-size: 1.5rem; flex: none; }
.account-grid { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 60em) { .account-grid { grid-template-columns: 18rem 1fr; align-items: start; } .account-side { position: sticky; top: 1rem; } }
.account-side { background: var(--soft); border-radius: var(--r-lg); padding: 1.25rem; display: grid; gap: .9rem; }
.account-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.account-facts li { display: flex; gap: .6rem; align-items: center; overflow-wrap: anywhere; }
.account-facts svg { width: 1.15rem; height: 1.15rem; color: var(--brand); flex: none; }
.account-nav { display: none; }
@media (min-width: 60em) { .account-nav { display: grid; gap: .1rem; } .account-nav a { padding: .45rem .6rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; } .account-nav a:hover { background: var(--surface); color: var(--brand-deep); } }
.account-main { display: grid; gap: 1.25rem; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; background: var(--surface); scroll-margin-top: 1rem; }
@media (min-width: 36em) { .panel { padding: 1.5rem 1.75rem; } }
.panel h2 { margin-top: 0; font-size: 1.4rem; }
.form-grid { display: grid; gap: 0 1rem; }
@media (min-width: 40em) { .form-grid { grid-template-columns: 1fr 1fr; } }
.btn svg { width: 1.15rem; height: 1.15rem; }
.btn-danger { color: var(--danger); border-color: transparent; }
.btn-danger:hover { background: var(--danger-wash); color: var(--danger); border-color: var(--danger); }
.btn-danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-solid:hover { background: #8f1e18; border-color: #8f1e18; }
.prose-page ul { max-width: 46rem; display: grid; gap: .6rem; padding-left: 1.2rem; }

/* Крупный шрифт по выбору ученика */
html.large-text { font-size: 118%; }

/* Объёмные значки тем (static/img/topics/) */
.topics .topic-icon { width: 3.75rem; height: 3.75rem; border-radius: 0; background: none; }
.topics .topic-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgb(29 58 11 / .12)); transition: transform .2s ease; }
.topics a { gap: 1rem; min-height: 5.5rem; padding: .9rem 1.1rem .9rem .9rem; }
.topics a:hover .topic-img { transform: translateY(-2px) scale(1.04); }
.topics .muted { font-size: .95rem; line-height: 1.35; margin-top: .15rem; }
@media (prefers-reduced-motion: reduce) { .topics .topic-img { transition: none; } .topics a:hover .topic-img { transform: none; } }
.topics { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.topics li { display: flex; }
.topics a { flex: 1; }
