/* mbelov.ru — концепция «график проекта» */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/JetBrainsMono-latin.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: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/Onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/Onest-latin.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 {
  --bg: #F3F3EF;
  --surface: #FFFFFF;
  --ink: #16181C;
  --ink-2: #3A3E45;
  --muted: #4A4F57;
  --faint: #5A5F66;
  --line: #D9D9D2;
  --line-2: #ECECE6;
  --accent: #C8401A;
  --accent-text: #A8361A;
  --blue: #2F5BD3;
  --dark: #16181C;
  --dark-line: #3A3E45;
  --dark-muted: #B9BDC3;
  --dark-faint: #A3A7AD;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки и ссылки-действия */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink);
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn--strong { border-color: var(--ink); }
.btn svg { flex: none; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

/* ---------- шапка */
.header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 44px; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.nav a { line-height: 44px; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .js .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .js .nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 8px; }
  .js .nav.is-open { display: flex; }
  .nav a { border-top: 1px solid var(--line-2); }
}

/* ---------- секции */
.section { padding-top: 88px; padding-bottom: 8px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: 32px; }
.section__head > div { display: flex; flex-direction: column; gap: 12px; }
.section__head p { margin: 0; max-width: 460px; color: var(--muted); }
.h2 { font-size: clamp(30px, 3.6vw, 48px); }
.page-head { padding-top: 72px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.page-head > div { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 800; line-height: 1.03; }
.page-head p { margin: 0; max-width: 680px; font-size: 19px; color: var(--muted); }

/* ---------- первый экран */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 64px; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero__label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
.hero h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
.hero__intro { margin: 0; max-width: 600px; font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.hero__links { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__photo { flex: 1 1 320px; min-width: 0; max-width: 420px; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* ---------- достижения */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__value { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.fact__value--accent { color: var(--accent); }
.fact__text { font-size: 15px; color: var(--muted); }
@media (max-width: 760px) {
  .facts__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact, .fact:first-child { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--line-2); }
  .fact:nth-child(odd) { border-right: 1px solid var(--line-2); padding-left: 0; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact__value { font-size: 32px; }
  .fact__text { font-size: 13px; }
}

/* ---------- чем занимаюсь */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--ink); }
.about__item { padding: 28px 32px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.about__item:first-child { border-left: 0; padding-left: 0; }
.about__kind { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.about__item p { margin: 0; font-size: 18px; line-height: 1.5; }
@media (max-width: 900px) {
  .about__item, .about__item:first-child { border-left: 0; padding: 20px 0; border-top: 1px solid var(--line); }
  .about__item:first-child { border-top: 0; }
}

/* ---------- карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 0; }
.card:hover { border-color: var(--ink); color: var(--ink); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.card__text { font-size: 16px; line-height: 1.5; flex-grow: 1; overflow-wrap: anywhere; white-space: pre-line; }
.card__go { font-size: 14px; font-weight: 600; color: var(--accent-text); }

/* ---------- путь (диаграмма Ганта) */
.gantt { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.gantt__in { min-width: 760px; padding: 24px 28px 20px; }
.gantt__row { display: flex; gap: 24px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-2); }
.gantt__row--head { min-height: 0; padding-bottom: 10px; border-bottom-color: var(--line); }
.gantt__label { flex: 0 0 300px; display: flex; flex-direction: column; gap: 2px; padding: 8px 0; }
.gantt__label b { font-size: 15px; font-weight: 500; line-height: 1.3; }
.gantt__label span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.gantt__track { flex: 1 1 auto; position: relative; height: 20px; background-image: linear-gradient(to right, var(--line-2) 1px, transparent 1px); background-size: 6.25% 100%; }
.gantt__track--ticks { height: 18px; background: none; }
.gantt__tick { position: absolute; top: 0; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.gantt__bar { position: absolute; top: 5px; height: 10px; border-radius: 5px; background: var(--ink); }
.gantt__bar--now { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 20px; height: 8px; border-radius: 4px; background: var(--ink); }
.legend i.now { background: var(--accent); }

/* мобильная лента вместо диаграммы */
.timeline { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px) {
  .gantt { display: none; }
  .timeline { display: flex; flex-direction: column; }
  .timeline li { display: flex; gap: 16px; }
  .timeline__dot { display: flex; flex-direction: column; align-items: center; }
  .timeline__dot::before { content: ''; width: 12px; height: 12px; margin-top: 5px; border-radius: 999px; background: var(--ink); }
  .timeline li.now .timeline__dot::before { background: var(--accent); }
  .timeline__dot::after { content: ''; flex-grow: 1; width: 2px; background: var(--line); }
  .timeline__body { display: flex; flex-direction: column; gap: 2px; padding-bottom: 20px; }
  .timeline__body span { font-family: var(--mono); font-size: 12px; color: var(--faint); }
}

/* ---------- сертификаты */
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cert { display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.cert:hover { border-color: var(--ink); color: var(--ink); }
.cert b { font-family: var(--mono); font-size: 14px; font-weight: 600; }
.cert span { font-size: 12px; color: var(--faint); }
.cert em { font-style: normal; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--accent-text); }
.cert--nofile em { color: #DADCDF; }
.note { font-size: 14px; color: var(--faint); margin: 16px 0 0; }

/* ---------- графики */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 44px); }
.teaser { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.teaser__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.teaser__text h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.teaser__text p { margin: 0; color: var(--muted); }
.teaser figure { flex: 1 1 440px; min-width: 0; margin: 0; }
figcaption.cap { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cap b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.01em; }
.chart-pair { display: flex; gap: clamp(16px, 3vw, 40px); align-items: flex-end; }
.chart { flex: 4 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.chart + .chart { flex-grow: 2; border-left: 1px dashed var(--line); padding-left: clamp(12px, 3vw, 40px); }
.chart__bars { display: flex; align-items: flex-end; gap: 10px; height: var(--h, 240px); border-bottom: 1px solid var(--ink); }
.chart__col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart__col b { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.chart__col i { display: block; width: 100%; max-width: 72px; border-radius: 3px 3px 0 0; background: var(--accent); }
.chart--blue .chart__col i { background: var(--blue); }
.chart__labels { display: flex; gap: 10px; }
.chart__labels span { flex: 1 1 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chart__title { font-size: 14px; font-weight: 600; }
@media (max-width: 520px) {
  .chart__col b, .chart__labels span { font-size: 9px; }
  .chart__bars { gap: 5px; }
  .chart__labels { gap: 5px; }
}
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar { display: flex; align-items: center; gap: 12px; }
.hbar span { flex: 0 0 76px; font-family: var(--mono); font-size: 13px; }
.hbar i { flex: 1 1 auto; position: relative; height: 18px; background: var(--bg); border-radius: 3px; }
.hbar i::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); min-width: 4px; border-radius: 3px; background: var(--blue); }
.hbar--main i::after { background: var(--accent); }
.hbar b { flex: 0 0 36px; text-align: right; font-family: var(--mono); font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi { padding: 24px 28px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.kpi:first-child { border-left: 0; }
.kpi b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.kpi span { font-size: 15px; color: var(--muted); }
.kpi small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--ink); font: 500 12px var(--mono); color: var(--faint); }
td { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.num { text-align: right; }

/* ---------- видео */
.video { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.video__img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #23262B; }
.video__img img { width: 100%; height: 100%; object-fit: cover; }
.video__img::after { content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 999px; background: rgba(243, 243, 239, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6v12l10-6z' fill='%2316181C'/%3E%3C/svg%3E") center / 22px no-repeat; }
.video b { font-size: 15px; font-weight: 500; line-height: 1.35; }

/* ---------- списки статей */
.list { border-top: 1px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row__date { flex: 0 0 130px; font-family: var(--mono); font-size: 13px; color: var(--faint); display: flex; flex-direction: column; gap: 4px; }
.row__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.row__title { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.row__excerpt { font-size: 16px; color: var(--muted); }
.row__tag { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }

/* ---------- фильтры */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters .btn small { font-family: var(--mono); font-size: 12px; opacity: 0.7; }
.no-js .filters { display: none; }
[hidden] { display: none !important; }

/* ---------- курсы */
.courses { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.course { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 20px 28px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.course:last-child { border-bottom: 0; }
.course__uni { flex: 0 0 110px; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.course__main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.course__main b { font-size: 18px; font-weight: 600; line-height: 1.3; }
.course__main span, .course__meta { font-family: var(--mono); font-size: 12px; color: var(--faint); }
@media (max-width: 640px) { .course { padding: 16px; } }
.lessons { list-style: none; margin: 0; padding: 0; }
.lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.lesson__n { flex: 0 0 110px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.lesson__topic { flex: 1 1 260px; min-width: 0; font-size: 16px; line-height: 1.4; }
.pdf { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font: 600 12px var(--mono); text-decoration: none; }
.pdf:hover { border-color: var(--ink); }
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 16px; border-top: 2px solid var(--ink); }
.story li { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; position: relative; }
.story li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 999px; background: var(--ink); }
.story li:last-child::before { background: var(--accent); }
.story span { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.story b { font-size: 15px; line-height: 1.3; }
.story p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ---------- статья */
.article-layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 56px; padding-bottom: 88px; }
.toc { flex: 1 1 220px; max-width: 260px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; }
.toc a { text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { border-color: var(--accent); color: var(--ink); }
.toc-mobile { display: none; }
@media (max-width: 900px) {
  .toc { display: none; }
  .toc-mobile { display: block; margin: 16px 0 8px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
  .toc-mobile summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
  .toc-mobile nav { display: flex; flex-direction: column; padding-top: 6px; }
  .toc-mobile a { padding: 8px 0; border-top: 1px solid var(--line-2); text-decoration: none; }
}
.article { flex: 999 1 560px; min-width: 0; max-width: 720px; font-size: 18px; line-height: 1.7; }
.article h1 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; margin: 12px 0 18px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--mono); font-size: 13px; color: var(--faint); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.prose h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 40px 0 12px; scroll-margin-top: 16px; }
.prose h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 32px 0 10px; }
.prose h4 { font-size: 18px; margin: 24px 0 8px; letter-spacing: 0; }
.prose p, .prose ul, .prose ol { margin: 16px 0; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent); font-size: 20px; line-height: 1.5; }
.prose figure { margin: 28px 0; }
.prose figure img, .prose img { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.prose figcaption { font-size: 14px; color: var(--faint); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .note { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.author { margin-top: 48px; padding: 24px; background: var(--dark); color: var(--bg); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: 15px; line-height: 1.5; }
.author img { width: 72px; height: 72px; object-fit: cover; object-position: top; border-radius: 999px; }
.author div { flex: 1 1 260px; color: var(--dark-muted); }
.author b { display: block; color: var(--bg); font-size: 18px; }
.author a.btn { color: var(--bg); border-color: var(--bg); }
.also { margin-top: 32px; }
.also a { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 18px; line-height: 1.35; }
.also a:last-child { border-bottom: 1px solid var(--line); }

/* ---------- подвал */
.footer { margin-top: 96px; background: var(--dark); color: var(--bg); }
.footer a { color: var(--bg); }
.footer__in { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.footer .label { color: var(--dark-faint); }
.footer h2 { color: var(--bg); }
.footer p { margin: 0; max-width: 440px; color: var(--dark-muted); }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--dark-line); }
.contact { display: flex; flex-direction: column; gap: 4px; padding: 24px 24px 24px 0; text-decoration: none; }
.contact + .contact { border-left: 1px solid var(--dark-line); padding-left: 24px; }
.contact span { font-family: var(--mono); font-size: 12px; color: var(--dark-faint); }
.contact b { font-size: 22px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .contact, .contact + .contact { border-left: 0; padding: 14px 0; border-top: 1px solid var(--dark-line); }
  .contact:first-child { border-top: 0; }
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--dark-faint); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a { color: #D4D7DB; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .header, .footer, .toc, .filters, .author { display: none; }
  body { background: #fff; }
}

/* ---------- карта регионов */
.rmap { margin: 8px 0 0; }
.rmap svg { width: 100%; height: auto; display: block; }
.rmap path { stroke: #B9BDC3; stroke-width: 0.5; stroke-linejoin: round; cursor: pointer; transition: opacity .15s; }
.rmap path:hover, .rmap path.is-active { stroke: var(--ink); stroke-width: 1.2; }
.rmap__info { min-height: 1.5em; margin: 12px 0 8px; font-size: 15px; }
.rmap__info b { font-weight: 600; }
.rmap__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.rmap__legend span { display: inline-flex; align-items: center; gap: 6px; }
.rmap__legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #B9BDC3; }
.rmap__legend-title { color: var(--ink); font-weight: 500; }
.rmap figcaption, .prose .rmap figcaption { font-size: 13px; color: var(--faint); margin-top: 10px; }
.rmap__list { margin-top: 14px; font-size: 14px; }
.rmap__list summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.rmap__list th { width: 130px; vertical-align: top; font: 600 13px var(--mono); color: var(--ink); border-bottom: 1px solid var(--line-2); padding-right: 12px; }
.rmap__list td { color: var(--muted); }
.prose .rmap svg { border: 0; }
