/* Курс «Вайбкодинг на практике»: стили страниц. Подключается после /assets/styles.css.
   Mobile-first: 16px поля, без горизонтального скролла, картинки max-width 100%.
   Токены берём из styles.css (--paper, --sea, --sunset, --graphite, --line, --sand, --money, --critical). */

:root {
  --c-top: 88px;               /* высота липкой шапки + запас: scroll-margin для якорей */
  --c-cta: #A9561F;            /* тёмный закат: белый текст читается (контраст около 5:1) */
  --c-soft: rgba(31, 58, 74, 0.06);
  --c-radius: 16px;
}

html { scroll-padding-top: var(--c-top); }
.c-skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; color: var(--graphite); padding: 10px 14px; border-radius: 8px; }
.c-skip:focus { left: 16px; top: 8px; }

/* ---------- каркас ---------- */
.c-main { padding-bottom: 24px; overflow-x: clip; }
.c-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .c-wrap { padding: 0 24px; } }
.c-bc { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 16px 0 6px; font-family: var(--font-mono); font-size: 13px; line-height: 1.4; color: rgba(42, 42, 42, 0.62); }
.c-bc a { color: var(--graphite-soft); text-decoration: none; }
.c-bc a:hover { color: var(--sunset-deep); }
.c-layout { display: flex; flex-direction: column; gap: 24px; }
.c-article { min-width: 0; max-width: 820px; width: 100%; }
.c-side { order: 2; min-width: 0; }
@media (min-width: 1000px) {
  .c-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 48px; align-items: start; }
  .c-side { order: 0; position: sticky; top: var(--c-top); max-height: calc(100vh - 104px); overflow-y: auto; font-size: 14px; padding-bottom: 16px; }
}
.c-main [id] { scroll-margin-top: var(--c-top); }

/* ---------- боковая навигация ---------- */
.c-sd { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; }
.c-sd > summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.c-sd > summary::-webkit-details-marker { display: none; }
.c-sd > summary::after { content: "+"; font-family: var(--font-mono); color: var(--sunset-deep); font-size: 18px; }
.c-sd[open] > summary::after { content: "–"; }
.c-side-t { font-weight: 700; padding: 4px 14px 0; }
.c-side-t a { color: var(--graphite); text-decoration: none; }
.c-side-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); padding: 10px 14px 2px; }
.c-navlist { list-style: none; margin: 0; padding: 2px 8px 10px; }
.c-navlist li { margin: 0; }
.c-navlist a, .c-navlist li.is-soon { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; color: var(--graphite-soft); text-decoration: none; font-size: 14px; line-height: 1.35; }
.c-navlist a:hover { background: var(--sand); color: var(--graphite); }
.c-navlist li.is-current > a { background: var(--graphite); color: var(--paper); }
.c-navlist li.is-soon { opacity: 0.55; }
.c-navlist em { font-style: normal; font-size: 11px; font-family: var(--font-mono); }
.c-sn { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--sand); color: var(--graphite); display: inline-grid; place-items: center; font: 600 12px/1 var(--font-mono); }
.c-sn-dot { width: 10px; height: 10px; margin: 7px; background: var(--line-strong); }
.c-navlist li.is-current .c-sn { background: var(--sunset); color: #fff; }
.c-navlist li.is-done .c-sn {
  background: var(--money) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  color: transparent;
}
.c-sd-foot { margin: 0; padding: 0 14px 12px; font-size: 13px; color: var(--graphite-soft); }
.c-reset { background: none; border: 0; padding: 0; color: var(--sunset-deep); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- шапка страницы ---------- */
.c-head { margin-top: 8px; }
.c-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sunset-deep); margin: 0 0 10px; }
.c-head h1, .c-homehero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 6.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; color: var(--graphite); margin: 0 0 12px; overflow-wrap: break-word; }
.c-dates { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin: 0 0 14px; }
.c-progress { margin: 6px 0 14px; }
.c-bar { height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.c-bar > span { display: block; height: 100%; background: var(--sunset); border-radius: 99px; transition: width 0.4s ease; }
.c-progress-t { margin: 8px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--graphite-soft); }
.c-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.c-pill { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line-strong); background: #fff; color: var(--graphite); font: 600 13px/1 var(--font-mono); text-decoration: none; }
a.c-pill:hover { border-color: var(--sunset); }
.c-pill.is-current { background: var(--sea); border-color: var(--sea); color: var(--paper); }
.c-pill.is-part { border-color: var(--sunset); }
.c-pill.is-done { background: var(--money) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--money); color: transparent; }
.c-pill.is-soon { opacity: 0.45; }

.c-brief { margin: 18px 0; padding: 16px 18px; background: var(--c-soft); border-left: 5px solid var(--sea); border-radius: 0 var(--c-radius) var(--c-radius) 0; }
.c-brief-l { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sunset-deep); font-weight: 600; }
.c-brief-t { margin: 0; font-size: 17px; line-height: 1.55; color: var(--graphite); }
.c-qlist { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.c-qlist > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 15px; min-height: 48px; display: flex; align-items: center; gap: 8px; }
.c-qn { font: 600 12px var(--font-mono); background: var(--sand); border-radius: 99px; padding: 2px 8px; }
.c-qlist ul { margin: 0; padding: 0 16px 14px 36px; }
.c-qlist li { margin: 6px 0; line-height: 1.45; font-size: 15px; }
.c-qlist a { color: var(--sunset-deep); }

/* ---------- мастер: один шаг на экран ---------- */
.c-wizard { margin-top: 22px; }
.c-wstep { padding-bottom: 8px; }
.c-wstep + .c-wstep { margin-top: 44px; padding-top: 32px; border-top: 2px dashed var(--line-strong); }
.has-wizard .c-wstep:not(.is-active) { display: none; }
.has-wizard .c-wstep + .c-wstep { margin-top: 0; padding-top: 0; border-top: 0; }
.has-wizard .c-wstep.is-active { animation: c-in 0.28s ease; }
@keyframes c-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.c-wstep:focus { outline: none; }
.c-wstep-n { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sunset-deep); font-weight: 600; }
.c-wstep-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5vw, 30px); line-height: 1.2; letter-spacing: -0.01em; color: var(--graphite); margin: 6px 0 16px; position: relative; }
.c-wbody > * + * { margin-top: 14px; }
.c-wbody p, .c-flat p, .c-faq-a p, .c-sec p { font-size: 17px; line-height: 1.65; margin: 0; }
.c-flat > * + * { margin-top: 14px; }
.c-flat h2, .c-sec h2, .c-faq h2, .c-related h2, .c-deeper h2, .c-end h2, .c-mit h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 5vw, 28px); line-height: 1.2; margin: 36px 0 14px; position: relative; letter-spacing: -0.01em; }
.c-wbody h3, .c-flat h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.25; margin-top: 22px; position: relative; }
.c-wbody ul, .c-wbody ol, .c-flat ul, .c-flat ol { margin: 0 0 0 22px; }
.c-wbody li, .c-flat li { margin-bottom: 8px; line-height: 1.6; font-size: 17px; }
.c-wbody a, .c-flat a, .c-faq-a a, .c-sec a, .c-related a { color: var(--sunset-deep); text-decoration: none; border-bottom: 1px solid rgba(184, 95, 37, 0.35); overflow-wrap: anywhere; }
.c-wbody a:hover, .c-flat a:hover { border-bottom-color: var(--sunset-deep); }
.c-main code:not(pre code) { font-family: var(--font-mono); font-size: 0.88em; background: var(--sand); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.c-main kbd { font-family: var(--font-mono); font-size: 0.85em; background: #fff; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.c-wbody blockquote, .c-flat blockquote { border-left: 4px solid var(--line-strong); padding: 4px 0 4px 14px; color: var(--graphite-soft); }

.c-wfoot { display: none; }
.has-wizard .c-wfoot { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 28px; }
@media (min-width: 600px) { .has-wizard .c-wfoot { flex-direction: row; justify-content: space-between; align-items: center; } }
.c-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px; border-radius: 14px; border: 2px solid transparent; font: 700 17px/1.2 var(--font-text); cursor: pointer; text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent; }
.c-btn-primary { background: var(--c-cta); color: #fff; }
.c-btn-primary:hover { background: var(--graphite); }
.c-btn-ghost { background: transparent; color: var(--graphite); border-color: var(--line-strong); }
.c-btn-ghost:hover { border-color: var(--graphite); }
.c-btn:focus-visible, .c-opt:focus-visible, .c-copy:focus-visible, .c-anchor:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; }
.has-wizard .c-wfoot .c-btn { width: 100%; }
@media (min-width: 600px) { .has-wizard .c-wfoot .c-btn { width: auto; min-width: 190px; } }
.c-done { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; cursor: pointer; min-height: 48px; }
.c-done input { width: 24px; height: 24px; accent-color: var(--money); flex: none; }

/* ---------- значок «скопировать ссылку» ---------- */
.c-ico { width: 16px; height: 16px; display: block; }
.c-anchor { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink-muted); border-bottom: 0 !important; vertical-align: middle; margin-left: 6px; opacity: 0.55; transition: opacity 0.15s, background 0.15s; text-decoration: none; }
.c-anchor:hover { background: var(--sand); color: var(--sunset-deep); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .c-anchor { opacity: 0; }
  h2:hover > .c-anchor, h3:hover > .c-anchor, .c-fig:hover > .c-anchor, .c-term:hover > .c-anchor, .c-quiz:hover > .c-anchor, .c-fail-head:hover > .c-anchor,
  .c-code-bar:hover > .c-anchor, .c-faq-a:hover > .c-anchor, .c-block-title:hover > .c-anchor, .c-anchor:focus-visible { opacity: 1; }
}
@media (min-width: 1000px) {
  h2 > .c-anchor, h3 > .c-anchor { position: absolute; left: -38px; top: 0.05em; margin: 0; }
}
.c-fig > .c-anchor, .c-term > .c-anchor, .c-quiz > .c-anchor, .c-faq-a > .c-anchor { position: absolute; top: 8px; right: 8px; margin: 0; background: rgba(255, 255, 255, 0.9); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.c-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: var(--graphite); color: #fff; padding: 12px 20px; border-radius: 99px; font-size: 15px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); max-width: calc(100vw - 32px); }
.c-toast[hidden] { display: none; }

/* подсветка раздела при переходе по ссылке */
@keyframes c-flash { 0% { box-shadow: 0 0 0 6px rgba(217, 122, 60, 0.5); background-color: rgba(217, 122, 60, 0.16); } 100% { box-shadow: 0 0 0 6px rgba(217, 122, 60, 0); background-color: transparent; } }
.c-main :target:not(.c-wstep), .c-main .is-flash { animation: c-flash 2.6s ease-out; border-radius: 10px; }

/* ---------- иллюстрации ---------- */
.c-fig { position: relative; margin: 20px 0; }
.c-fig img { display: block; width: 100%; height: auto; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: zoom-in; }
.c-fig figcaption { margin-top: 8px; font-size: 14px; line-height: 1.45; font-style: italic; color: var(--graphite-soft); }
.c-hero-fig { margin: 16px 0 8px; }
.c-hero img { border: 0; border-radius: 18px; box-shadow: 0 6px 24px rgba(31, 58, 74, 0.14); }
.c-learn { margin: 12px 0 0 !important; padding: 14px 16px; background: var(--sea); color: var(--paper); border-radius: 14px; font-size: 17px; line-height: 1.5; }
.c-learn-l { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #F2B183; margin-bottom: 4px; }
.c-plate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 180px; padding: 24px 16px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 14px; color: var(--graphite-soft);
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.025) 0 12px, transparent 12px 24px), var(--sand); }
.c-plate-ico { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--graphite-soft); position: relative; opacity: 0.7; }
.c-plate-ico::after { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 2px; background: var(--graphite-soft); box-shadow: 0 8px 0 var(--graphite-soft), 0 16px 0 var(--graphite-soft); }
.c-plate-t { font-weight: 700; font-size: 16px; }
.c-plate-sub { font-size: 14px; line-height: 1.4; max-width: 46ch; }
/* карусель кадров: scroll-snap, листается пальцем, стрелками и вкладками */
.c-car-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.c-car-tab { font: 600 14px/1 var(--font-mono); letter-spacing: 0.04em; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 99px; background: #fff; color: var(--graphite); cursor: pointer; }
.c-car-tab[aria-selected="true"] { background: var(--sea); border-color: var(--sea); color: var(--paper); }
.c-car-tab:focus-visible, .c-car-nav button:focus-visible, .c-car-track:focus-visible { outline: 3px solid var(--sunset-deep); outline-offset: 2px; }
.c-car-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; align-items: flex-start; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .c-car-track { scroll-behavior: auto; } }
.c-car-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.c-car .c-car-slide img { width: auto; max-width: 100%; max-height: min(70vh, 640px); margin: 0 auto; object-fit: contain; }
.c-car .c-car-slide .c-plate { min-height: 220px; }
.c-car-text { margin: 10px 0 0 !important; font-size: 16px; line-height: 1.5; color: var(--graphite); }
.c-car-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.c-car-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--graphite); font-size: 20px; cursor: pointer; }
.c-car-nav button:disabled { opacity: 0.35; cursor: default; }
.c-car-count { font: 600 14px/1 var(--font-mono); color: var(--graphite-soft); min-width: 5em; text-align: center; }
.c-car:not(.is-js) .c-car-tabs, .c-car:not(.is-js) .c-car-nav { display: none; }
.c-herosvg { width: 100%; height: auto; display: block; border-radius: 22px; }

/* ---------- слова, шаги, сравнение ---------- */
.c-block-title { margin: 0 0 10px !important; font-family: var(--font-mono); font-size: 12px !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sunset-deep); font-weight: 600; line-height: 1.4 !important; }
.c-terms { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
@media (min-width: 640px) { .c-terms { grid-template-columns: 1fr 1fr; } }
.c-term { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 44px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.c-term-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sea); color: var(--paper); display: grid; place-items: center; font: 700 17px/1 var(--font-mono); }
.c-term dt { font-weight: 700; font-size: 16px; line-height: 1.3; }
.c-term dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; color: var(--graphite-soft); }
.c-see { padding: 12px 14px; background: rgba(31, 58, 74, 0.07); border-left: 4px solid var(--sunset); border-radius: 0 12px 12px 0; font-size: 16px !important; line-height: 1.5 !important; }
.c-see-l { font-weight: 800; }
.c-steps { list-style: none; margin: 0 !important; padding: 0; display: grid; gap: 14px; }
.c-steps-flat .c-step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.c-step h3 { margin: 0 0 8px !important; font-size: 19px !important; }
.c-cmp-title { font-family: var(--font-display); font-size: 19px !important; margin: 0 0 10px !important; position: relative; }
.c-cmp-grid { list-style: none; margin: 0 !important; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.c-cmp-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 !important; min-width: 0; }
.c-cmp-card.is-no { background: #EFECE6; border-style: dashed; }
.c-cmp-tool { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.c-cmp-val { margin-top: 6px; font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--sea); overflow-wrap: anywhere; line-height: 1.4; }
.c-cmp-val code { background: transparent !important; padding: 0 !important; font-size: 1em !important; }
.c-chip-no { display: inline-block; background: #D9D5CC; color: #555; border-radius: 99px; padding: 2px 12px; font: 600 13px var(--font-text); }
.c-cmp-note { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--graphite-soft); }

/* ---------- если не получилось, врезки ---------- */
.c-fail { border: 1px solid rgba(201, 42, 42, 0.3); border-left: 5px solid var(--critical); border-radius: 0 14px 14px 0; background: rgba(201, 42, 42, 0.045); padding: 14px 16px; }
.c-fail-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-bottom: 10px; }
.c-fail-l { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--critical); font-weight: 700; }
.c-fail-t { font-size: 17px; }
.c-fail-row { display: grid; gap: 4px; margin-top: 10px; }
.c-fail-row > div > * + * { margin-top: 8px; }
.c-lbl { font: 700 12px var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--graphite-soft); }
.c-fail-row.is-fix .c-lbl { color: var(--money); }
.c-call { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 0 14px 14px 0; border-left: 5px solid var(--sea); background: var(--c-soft); }
.c-call-main { min-width: 0; flex: 1; }
.c-call-h { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--sea); margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.c-call-by { font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--graphite-soft); }
.c-call-b > * + * { margin-top: 8px; }
.c-call-b p { font-size: 16px !important; line-height: 1.55 !important; }
.c-warn { border-left-color: var(--critical); background: rgba(201, 42, 42, 0.06); }
.c-warn .c-call-h { color: var(--critical); }
.c-practice { border-left-color: var(--sunset); background: rgba(217, 122, 60, 0.11); }
.c-practice .c-call-h { color: var(--sunset-deep); }
.c-ava { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid #fff; }
.c-subhead { margin-top: 6px; }

/* ---------- код, таблицы, чек-листы ---------- */
.c-code { border-radius: 12px; overflow: hidden; background: var(--sea-deep); position: relative; }
.c-code-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 14px; background: rgba(255, 255, 255, 0.07); }
.c-code-lang { font: 600 12px var(--font-mono); color: rgba(245, 239, 227, 0.7); text-transform: uppercase; letter-spacing: 0.05em; }
.c-code-title { font-size: 14px; color: var(--paper); margin-right: auto; }
.c-code-lang + .c-copy { margin-left: auto; }
.c-code .c-anchor { color: rgba(245, 239, 227, 0.8); }
.c-copy { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(245, 239, 227, 0.35); background: transparent; color: var(--paper); font: 600 13px var(--font-text); cursor: pointer; }
.c-copy:hover { background: rgba(255, 255, 255, 0.12); }
.c-copy.is-copied { background: var(--money); border-color: var(--money); }
.c-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.c-code code { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; color: var(--paper); white-space: pre; background: transparent !important; padding: 0 !important; }
.c-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.c-table table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }
.c-table th, .c-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.c-table th { font: 600 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); background: var(--sand); }
.c-table tr:last-child td { border-bottom: 0; }
.c-tasks { list-style: none; margin-left: 0 !important; }
.c-task label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-height: 36px; }
.c-task input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--money); flex: none; }

/* ---------- мини-тест ---------- */
.c-quiz { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--c-radius); padding: 18px 16px; }
.c-q + .c-q { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.c-q-text { display: flex; gap: 10px; align-items: flex-start; font-weight: 700 !important; font-size: 17px !important; line-height: 1.4 !important; margin: 0 0 10px !important; padding-right: 36px; }
.c-q-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sea); color: var(--paper); display: grid; place-items: center; font: 700 14px var(--font-mono); }
.c-q-opts { display: grid; gap: 8px; }
.c-opt { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--paper); font: 500 16px/1.4 var(--font-text); color: var(--graphite); cursor: pointer; }
.c-opt:hover:not(:disabled) { border-color: var(--sea); }
.c-opt-mark { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line-strong); }
.c-opt:disabled { cursor: default; }
.c-opt.is-right { border-color: var(--money); background: rgba(47, 158, 68, 0.12); }
.c-opt.is-right .c-opt-mark { background: var(--money); border-color: var(--money); }
.c-opt.is-wrong { border-color: var(--critical); background: rgba(201, 42, 42, 0.08); }
.c-opt.is-wrong .c-opt-mark { background: var(--critical); border-color: var(--critical); }
.c-q-expl { margin-top: 10px; padding: 12px 14px; background: var(--sand); border-radius: 12px; font-size: 15px; line-height: 1.5; }
.c-q-expl[hidden], .c-q-score[hidden], .c-q-reset[hidden] { display: none; }
.c-q-score { margin-top: 16px; font-weight: 700; font-size: 17px; }
.c-q-reset { margin-top: 10px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: transparent; font: 600 15px var(--font-text); cursor: pointer; }

/* ---------- FAQ, связанное, доступ ---------- */
.c-faq-i { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.c-faq-i > summary { cursor: pointer; padding: 12px 40px 12px 14px; font-weight: 700; font-size: 16px; line-height: 1.4; list-style: none; position: relative; min-height: 48px; }
.c-faq-i > summary::-webkit-details-marker { display: none; }
.c-faq-i > summary::after { content: "+"; position: absolute; right: 14px; top: 10px; font: 600 20px var(--font-mono); color: var(--sunset-deep); }
.c-faq-i[open] > summary::after { content: "–"; }
.c-faq-a { position: relative; padding: 0 14px 14px; padding-right: 48px; }
.c-faq-a > * + * { margin-top: 8px; }
.c-related ul { list-style: none; margin: 0 !important; padding: 0; }
.c-related li { margin: 8px 0 !important; font-size: 16px; line-height: 1.5; }
aside.c-related { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
aside.c-related .c-block-title { margin-bottom: 6px !important; }
.c-rel-why { color: var(--graphite-soft); }
.c-access { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--c-radius); }
.c-acc-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .c-acc-grid { grid-template-columns: repeat(3, 1fr); } }
.c-acc { background: var(--paper); border-radius: 12px; padding: 14px; min-width: 0; }
.c-acc h3 { font-size: 17px !important; margin: 0 0 6px !important; }
.c-acc p { font-size: 15px !important; line-height: 1.5 !important; margin: 0 0 8px !important; }
.c-ref-tag { font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); border: 1px solid var(--line-strong); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.c-disclaimer { margin: 12px 0 0 !important; font-size: 13px !important; color: var(--ink-muted); }
.c-offer { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--c-radius); margin-bottom: 12px; }
.c-offer p { margin: 0; font-size: 16px; line-height: 1.55; }
.c-offer .btn { align-self: flex-start; }
.c-offer-soft { background: var(--c-soft); border-style: dashed; }
.c-end { margin-top: 36px; }
.c-nav-btns { display: grid; gap: 10px; }
@media (min-width: 640px) { .c-nav-btns { grid-template-columns: 1fr 1fr; } }
.c-nav-btn { display: flex; flex-direction: column; gap: 4px; min-height: 76px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; text-decoration: none; color: var(--graphite); border-bottom: 1.5px solid var(--line-strong) !important; }
.c-nav-btn.is-next { background: var(--sea); border-color: var(--sea) !important; color: var(--paper); }
.c-nav-l { font: 600 12px var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.8; }
.c-nav-t { font-weight: 700; font-size: 17px; line-height: 1.3; }
.c-mit-text { white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font: 13px/1.5 var(--font-mono); }

/* ---------- главная курса ---------- */
.c-homehero { display: grid; gap: 22px; padding: 18px 0 8px; }
@media (min-width: 900px) { .c-homehero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 28px 0 12px; } }
.c-sub { font-size: 19px; line-height: 1.45; color: var(--graphite); margin: 0 0 12px; font-weight: 600; }
.c-lead { font-size: 17px; line-height: 1.55; color: var(--graphite-soft); margin: 0 0 18px; }
.c-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.c-homehero-i img { width: 100%; height: auto; border-radius: 22px; display: block; }
.c-prog { margin: 22px 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--c-radius); }
.c-prog-t { margin: 0 0 8px; font-weight: 700; }
.c-prog-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-muted); }
.c-sec { margin-top: 40px; }
.c-sec h2 { margin-top: 0; }
.c-inside { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.c-inside li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.c-inside h3 { font-size: 17px; margin: 0 0 6px; }
.c-inside p { font-size: 15px !important; line-height: 1.5 !important; color: var(--graphite-soft); }
.c-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.c-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--c-radius); overflow: hidden; text-decoration: none; color: var(--graphite); min-width: 0; border-bottom: 1px solid var(--line) !important; transition: transform 0.15s, box-shadow 0.15s; }
a.c-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(31, 58, 74, 0.12); }
.c-card.is-soon { opacity: 0.6; }
.c-card.is-soon .c-card-img { aspect-ratio: 16 / 5; }
.c-card.is-soon .c-card-num { font-size: 36px; }
.c-card-img { aspect-ratio: 16 / 9; background: var(--sea); display: grid; place-items: center; overflow: hidden; }
.c-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-card-num { font: 700 56px/1 var(--font-display); color: var(--paper); opacity: 0.9; }
.c-card-b { padding: 14px 16px 16px; }
.c-card-m { margin: 0 0 6px !important; font: 600 12px var(--font-mono) !important; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.c-card h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.c-card-b p:last-child { font-size: 14px !important; line-height: 1.5 !important; color: var(--graphite-soft); }
.c-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.c-card.is-part .c-dot { border-color: var(--sunset); background: linear-gradient(90deg, var(--sunset) 50%, transparent 50%); }
.c-card.is-done .c-dot { background: var(--money); border-color: var(--money); }
.c-cards-s .c-card-img { aspect-ratio: 16 / 6; }
.c-cards-s .c-card-num { font-size: 36px; }
.c-refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.c-refs li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.c-refs a { color: var(--graphite); text-decoration: none; }
.c-refs em { font-style: normal; font-weight: 400; color: var(--ink-muted); font-size: 13px; }
.c-who ul { margin: 0 0 12px 22px; }
.c-who li { margin-bottom: 8px; font-size: 17px; line-height: 1.55; }

/* ---------- подвал ---------- */
.c-foot { background: var(--graphite); color: rgba(245, 239, 227, 0.75); padding: 32px 0 20px; margin-top: 56px; font-size: 13px; }
.c-foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 16px; }
.c-foot a { color: rgba(245, 239, 227, 0.9); text-decoration: none; margin-right: 16px; }
.c-foot a:hover { text-decoration: underline; }
.c-attrib { flex-basis: 100%; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(245, 239, 227, 0.18); }
.c-attrib a { margin-right: 0; text-decoration: underline; }

/* ---------- лайтбокс ---------- */
.c-lb { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 20, 32, 0.93); cursor: zoom-out; }
.c-lb[hidden] { display: none; }
.c-lb img { max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; background: #fff; }
.c-lb button { position: fixed; top: 12px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

@media (max-width: 480px) {
  .c-wbody p, .c-flat p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .c-side, .c-wfoot, header, .c-foot, .c-anchor, .c-pills, .c-progress, .nav-burger { display: none !important; }
  .has-wizard .c-wstep:not(.is-active) { display: block !important; }
}
