@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/fonts/montserrat-cyrillic.woff2?v=0b00fbd6ed") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/fonts/montserrat-latin.woff2?v=6438d7b8ea") 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: "Montserrat"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("/assets/fonts/montserrat-extra.woff?v=4de02dccd8") format("woff"); unicode-range: U+20BD, U+2190, U+2192, U+2713; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-cyrillic.woff2?v=aebf2ab4a4") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-latin.woff2?v=c940764593") 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: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-extra.woff?v=ae0e5c8d2c") format("woff"); unicode-range: U+20BD, U+2190, U+2192, U+2713; }

:root {
  --bg: #F1EFE7;
  --bg-alt: #EAE7DC;
  --surface: #F8F6F0;
  --field: #FBFAF6;
  --text: #141311;
  --muted: #6B6A63;
  --dark: #161512;
  --dark-alt: #1F1E1A;
  --on-dark: #F1EFE7;
  --muted-on-dark: #A8A599;
  --accent: #C6E81A;
  --accent-ink: #141311;
  --line: #DEDBCF;
  --line-strong: #C9C5B6;
  --line-dark: #2A2925;
  --good: #3F5F0B;
  --good-soft: #E3EDB5;
  --warn: #7A5200;
  --warn-soft: #F2E5C2;
  --bad: #A12A1E;
  --bad-soft: #F3DDD6;
  --radius: 16px;
  --radius-s: 10px;
  --pill: 999px;
  --font-head: "Montserrat", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sidebar: 320px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }
code { font-size: .92em; background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; }

/* Заголовки */
h1, h2, h3, .display { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: 1.05; margin: 0; }
h1.hero-title { font-size: clamp(32px, 6.6vw, 68px); line-height: 1; max-width: 980px; margin: 22px 0 22px; }
h1.page { font-size: clamp(26px, 4.6vw, 44px); margin: 14px 0 14px; }
h2 { font-size: clamp(22px, 3.4vw, 34px); margin: 14px 0 26px; }
h3 { font-size: 16px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; margin: 0 0 10px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* Мелкая подпись с лаймовым квадратом */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--accent); }
.eyebrow.plain::before { display: none; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { color: var(--text); }
.meta-line { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

/* Сетка */
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
main.page-main { padding-top: 28px; padding-bottom: 72px; min-height: 55vh; }
.section { padding: 52px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section.dark { background: var(--dark); color: var(--on-dark); }
.section.dark .muted, .section.dark .eyebrow { color: var(--muted-on-dark); }
section.block { padding: 40px 0 0; }
.grid { display: grid; gap: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.spacer { height: 16px; }
@media (min-width: 760px) {
  .wrap { padding-inline: 32px; }
  .section { padding: 84px 0; }
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
}

/* Знак */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: var(--font-head); font-weight: 900; font-size: 16px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; display: block; flex: none; }
.brand:hover { text-decoration: none; }

/* Шапка сайта и админки */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; flex-wrap: wrap; padding-block: 10px; }
.nav { display: flex; gap: 6px 22px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav .btn { color: #fff; border: 0; padding: 10px 18px; }
.nav .btn:hover { color: #fff; }
@media (max-width: 759px) { .nav .hide-s { display: none; } }

/* Кнопки-пилюли */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--pill); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink);
}
.btn:hover { background: #B7D80F; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--dark); color: #fff; }
.btn.secondary:hover { background: #2B2924; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: transparent; border-color: var(--text); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { background: #EDCDC3; }
.btn.small { padding: 9px 16px; font-size: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.section.dark .btn.ghost, .card.dark .btn.ghost { color: var(--on-dark); border-color: #45433C; }
.section.dark .btn.ghost:hover, .card.dark .btn.ghost:hover { border-color: var(--on-dark); }

/* Карточки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.card.dark .muted, .card.dark .eyebrow { color: var(--muted-on-dark); }
.card .card-title { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.1; margin: 12px 0 10px; }
.card > .actions { margin-top: 18px; }
.dev { border-style: dashed; border-color: var(--line-strong); }

/* Блоки с номером: 01, 02, 03 */
.feature { border-top: 1px solid var(--line); padding-top: 22px; }
.feature-num { font-family: var(--font-head); font-weight: 900; font-size: 44px; line-height: 1; color: var(--text); opacity: .22; }
.feature-num::after { content: ""; display: block; width: 28px; height: 3px; margin: 14px 0 18px; background: var(--accent); }
.feature .feature-num { opacity: 1; color: #B9B5A6; }

/* Метки состояния */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill); background: var(--bg-alt); color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.muted { background: var(--bg-alt); color: var(--muted); }
.pill svg { width: 13px; height: 13px; }

/* Программа: темы и уроки */
.program { display: grid; gap: 30px; max-width: 860px; }
.topic-title { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: inherit; }
a.lesson-row:hover { border-color: var(--text); text-decoration: none; }
.lesson-row .num { font-family: var(--font-head); font-weight: 900; font-size: 20px; line-height: 1; width: 34px; flex: none; color: #B4B0A1; }
.lesson-row .body { min-width: 0; display: grid; gap: 3px; }
.lesson-row .title { font-weight: 600; line-height: 1.3; }
.lesson-row .meta { color: var(--muted); font-size: 14px; line-height: 1.4; }
.lesson-row .end { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.lesson-row.locked { background: transparent; }
.lesson-row.locked .title { color: var(--muted); }
.lesson-row.done .num { color: var(--text); }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; line-height: 1; flex: none; }
@media (max-width: 520px) { .lesson-row { padding: 14px; gap: 12px; } .lesson-row .end .pill-text { display: none; } }

/* Полоса прогресса */
.progress { height: 8px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.card.dark .progress { background: #34322C; }

/* Видео */
.video-frame { background: var(--dark); border-radius: var(--radius); padding: 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0E0D0B; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.placeholder { display: grid; place-items: center; color: var(--muted-on-dark); text-align: center; padding: 20px; font-size: 15px; }
@media (max-width: 520px) { .video-frame { padding: 6px; border-radius: 12px; } .video { border-radius: 7px; } }
.prose { font-size: 17px; line-height: 1.65; max-width: 720px; }
.prose p { margin: 0 0 16px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 36px 0 28px; }

/* Цена */
.price { font-family: var(--font-head); font-weight: 900; font-size: clamp(42px, 8vw, 72px); line-height: 1; letter-spacing: -.01em; }
.price s { color: var(--muted); font-size: .4em; font-weight: 700; margin-right: 12px; }
ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
ul.ticks li { display: flex; gap: 12px; align-items: baseline; }
ul.ticks li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--accent); transform: translateY(-1px); }

/* Таблицы */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-top: 8px; padding-bottom: 8px; }
tr.group td { padding-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-strong); }

/* Формы */
form.stack { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
label .hint { font-weight: 400; color: var(--muted); }
input, textarea, select {
  font: inherit; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--field); color: var(--text); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--text); }
textarea { min-height: 150px; resize: vertical; }
.row-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row-form label { flex: 1 1 160px; }
label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.45; }
label.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--dark); }
form.inline { display: inline; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.qa { max-width: 720px; }
.qa-list { display: grid; gap: 14px; margin: 16px 0 24px; }
.qa-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.qa-item.mine { background: transparent; }
.qa-q { margin: 0 0 10px; font-weight: 600; }
.qa-who { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.qa-a p { margin: 0 0 10px; }
.qa-a p:last-child { margin-bottom: 0; }
.qa-form textarea { min-height: 110px; }

/* Сообщения */
.notice { padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); margin: 16px 0; }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.info { background: var(--bg-alt); color: var(--text); }
.stat { font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1.1; }

/* Вопросы */
.faq { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font-weight: 600; font-size: 17px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); font-size: 26px; font-weight: 400; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; color: var(--text); }
.faq details > p { color: var(--muted); margin: 0 0 22px; max-width: 680px; }
details summary { cursor: pointer; font-weight: 600; }

/* Подвал сайта */
.site-footer { background: var(--dark); color: var(--muted-on-dark); padding: 44px 0 52px; font-size: 14px; }
.site-footer .brand { color: var(--on-dark); margin-bottom: 22px; }
.site-footer .brand img { border-radius: 50%; box-shadow: 0 0 0 1px #45433C; }
.site-footer .links { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-bottom: 18px; }
.site-footer a { color: var(--on-dark); }
.site-footer .req { max-width: 760px; line-height: 1.6; }

/* Главная */
.hero { padding: 56px 0 60px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); max-width: 620px; }
@media (min-width: 760px) { .hero { padding: 96px 0 104px; } }
.price-grid { display: grid; gap: 32px; }
.price-side { display: grid; gap: 14px; align-content: end; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; } }

/* Документы */
.doc { line-height: 1.65; }
.doc h2, .doc h3, .prose h2, .prose h3 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; line-height: 1.3; font-weight: 700; }
.doc h2 { font-size: 20px; margin: 34px 0 10px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { margin: 0 0 8px; }
.doc ul { padding-left: 22px; }
.doc .meta, .doc .subtitle { color: var(--muted); }
.doc .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.doc .appendix { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc .apx-title { font-weight: 700; font-size: 20px; margin-bottom: 4px; }
.doc .req p { margin: 0 0 4px; }

/* Кабинет: боковая панель с программой */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); flex: none; background: var(--bg-alt); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 24px 22px; }
.sidebar-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 24px; }
.side-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 10px 22px; }
.side-program { display: flex; flex-direction: column; gap: 22px; }
.side-topic { display: flex; flex-direction: column; gap: 4px; }
.side-topic-title { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 10px 6px; }
.lesson-link { display: flex; align-items: baseline; gap: 12px; padding: 11px 10px; border-radius: var(--radius-s); border: 1px solid transparent; text-decoration: none; color: var(--text); }
.lesson-link:hover { background: rgba(20, 19, 17, .05); text-decoration: none; }
.lesson-link__num { font-family: var(--font-head); font-weight: 900; font-size: 20px; line-height: 1; width: 30px; flex: none; color: #B0AC9C; }
.lesson-link__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.lesson-link__title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.lesson-link__line { width: 22px; height: 2px; background: transparent; }
.lesson-link__mark { flex: none; align-self: center; display: inline-flex; color: var(--muted); }
.lesson-link__mark svg { width: 15px; height: 15px; }
.lesson-link__mark .tick { width: 16px; height: 16px; font-size: 11px; }
.lesson-link.is-done .lesson-link__line { background: var(--line-strong); }
.lesson-link.is-locked .lesson-link__title { color: var(--muted); }
.lesson-link.is-active { background: var(--dark); border-color: var(--dark); }
.lesson-link.is-active .lesson-link__num { color: var(--accent); }
.lesson-link.is-active .lesson-link__title { color: #fff; }
.lesson-link.is-active .lesson-link__line { background: var(--accent); }
.lesson-link.is-active .lesson-link__mark { color: var(--muted-on-dark); }
.side-empty { color: var(--muted); font-size: 14px; margin: 0 10px; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 16px 24px 20px; display: grid; gap: 12px; }
.side-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.side-nav a, .side-nav button { font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 3px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; }
.side-nav a:hover, .side-nav button:hover { color: var(--text); }
.side-nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.side-nav.minor a, .side-nav.minor button { letter-spacing: .08em; font-weight: 500; }
.topbar { display: none; }
.scrim { display: none; }
.content { flex: 1; min-width: 0; }
.content-inner { max-width: 880px; padding: 44px 56px 88px; }
.menu-btn, .menu-close { display: none; align-items: center; gap: 8px; cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); }
.menu-btn svg { width: 14px; height: 14px; }
.only-s { display: none; }
@media (max-width: 979px) {
  .shell { display: block; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 10; min-height: 60px; padding: 8px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .menu-btn, .menu-close { display: inline-flex; }
  .menu-toggle:focus-visible ~ .shell .menu-btn { outline: 2px solid var(--text); outline-offset: 2px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(88vw, 340px); height: 100dvh; transform: translateX(-102%); transition: transform .18s ease-out; }
  .sidebar-head { padding: 16px 20px 16px; }
  .menu-toggle:checked ~ .shell .sidebar { transform: none; }
  .menu-toggle:checked ~ .shell .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(20, 19, 17, .5); }
  body:has(.menu-toggle:checked) { overflow: hidden; }
  .content-inner { padding: 26px 20px 72px; }
  .only-s { display: inline; }
  .hide-s-cab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
