@charset "UTF-8";
/* ============================================================================
   СМЕНА КОНТЕНТА — единый файл стилей
   ----------------------------------------------------------------------------
   Структура файла:
     01. Шрифты
     02. Переменные и сброс
     03. Типографика
     04. Сетка и контейнеры
     05. Шапка, меню, поиск
     06. Бегущая строка
     07. Главный материал (hero)
     08. Карта регионов
     09. Карточки материалов
     10. Фильтры и кнопки
     11. Блоки главной
     12. Страница материала
     13. Страница региона
     14. Внутренние страницы (о проекте, школа, партнёры, присоединиться)
     15. Подвал
     16. Служебное (утилиты, адаптив, доступность)
   Меняете цвета — смотрите блок 02.
   ========================================================================== */

/* 01. Шрифты ================================================================ */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/unbounded-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-400-normal.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-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/golos-text-latin-400-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-500-normal.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-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/golos-text-latin-500-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-600-normal.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-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/golos-text-latin-600-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-700-normal.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-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/golos-text-latin-700-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-400-normal.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;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-500-normal.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: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.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+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 02. Переменные и сброс ==================================================== */
:root {
  --paper: #f7f5ef;
  --paper-2: #efebe1;
  --paper-3: #e4dfd1;
  --ink: #14130f;
  --ink-soft: #403d34;
  --muted: #797464;
  --line: #d8d3c5;
  --line-strong: #b9b3a2;
  --accent: #ff3d14;
  --accent-dark: #cf2a06;
  --dark: #121110;
  --dark-2: #1c1a17;
  --dark-3: #2a2722;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-text: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1360px;
  --pad: clamp(16px, 3.2vw, 44px);
  --header-h: 72px;
  --radius: 999px;
  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 03. Типографика =========================================================== */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.05em;
}

p:last-child {
  margin-bottom: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker--muted {
  color: var(--muted);
}

.kicker--paper {
  color: rgba(247, 245, 239, 0.62);
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
}

.meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* 04. Сетка ================================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(34px, 5vw, 72px);
}

.section--tight {
  padding-block: clamp(26px, 3.4vw, 48px);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  margin-bottom: clamp(20px, 2.6vw, 34px);
}

.sec-head__left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.sec-head h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
}

.sec-head__text {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}

.sec-head--paper {
  border-color: rgba(247, 245, 239, 0.28);
}

.sec-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.sec-link:hover {
  color: var(--accent);
  gap: 0.85em;
}

/* 05. Шапка ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 34px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.topbar__right a:hover {
  color: var(--accent);
}

.masthead {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.logo__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.logo__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.logo__sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 500;
  padding-block: 6px;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.24s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.burger {
  display: none;
}

/* мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding: 22px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}

.mobile-menu.is-open {
  transform: none;
  visibility: visible;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mobile-menu__link span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* поиск */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(18, 17, 16, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(14px, 8vh, 90px) var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--ease), visibility 0.24s;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: min(720px, 100%);
  background: var(--paper);
  border: 1px solid var(--ink);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 12px 12px 0 rgba(255, 61, 20, 0.9);
}

.search-box__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.search-box__field input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1.05rem;
  min-width: 0;
}

.search-box__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 2px 6px;
}

.search-results {
  overflow-y: auto;
  padding: 8px;
}

.search-results__group {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 10px 6px;
}

.search-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
}

.search-hit:hover,
.search-hit.is-active {
  background: var(--paper-2);
}

.search-hit__t {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
}

.search-hit__s {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.search-empty {
  padding: 26px 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 06. Бегущая строка ======================================================== */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
}

.ticker__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.ticker__label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.ticker__label::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.ticker__viewport {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 52s linear infinite;
}

.ticker:hover .ticker__track,
.ticker__track:focus-within {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 26px 9px 0;
  font-size: 0.85rem;
  white-space: nowrap;
  color: var(--ink-soft);
}

.ticker__item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.ticker__item time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* 07. Главный материал ====================================================== */
.hero {
  padding-top: clamp(18px, 2.4vw, 30px);
  padding-bottom: clamp(26px, 3.6vw, 52px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
}

.hero__lead {
  display: block;
  min-width: 0;
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 9;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.hero__lead:hover .hero__media img {
  transform: scale(1.035);
}

.hero__flag {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 12px;
}

.hero__text {
  padding-top: clamp(16px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.hero__title {
  font-size: clamp(1.9rem, 4.4vw, 3.9rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero__excerpt {
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  margin: 0;
}

.hero__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.side-head h2 {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.live-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.live-list li {
  border-bottom: 1px solid var(--line);
}

.live-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
}

.live-list h3 {
  font-family: var(--font-text);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0;
  transition: color 0.2s var(--ease);
}

.live-list a:hover h3 {
  color: var(--accent);
}

.live-list time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 3px;
}

.side-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.side-card h3 {
  font-family: var(--font-text);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.side-note {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.side-note b {
  color: var(--ink);
}

/* 08. Карта регионов ======================================================== */
.map-section {
  background: var(--dark);
  color: var(--paper);
  padding-block: clamp(28px, 4vw, 58px);
  position: relative;
  overflow: hidden;
}

.map-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(247, 245, 239, 0.055) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  pointer-events: none;
}

.map-section > .wrap {
  position: relative;
  z-index: 1;
}

.map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 34px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.map-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.map-head h2 em {
  font-style: normal;
  color: var(--accent);
}

.map-head__sub {
  max-width: 40ch;
  color: rgba(247, 245, 239, 0.68);
  font-size: 0.95rem;
  margin: 0;
}

.map-counter {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 245, 239, 0.18);
  margin-top: 6px;
}

.map-counter div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-counter b {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.map-counter span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.55);
}

.map-layout > * {
  min-width: 0;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: clamp(18px, 2.4vw, 38px);
  align-items: start;
}

.map-stage {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(247, 245, 239, 0.14);
  background: linear-gradient(160deg, #171614 0%, #100f0e 60%, #141210 100%);
  padding: clamp(6px, 1.4vw, 18px);
}

.map-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: grab;
  overflow: visible;
}

.map-svg.is-panning {
  cursor: grabbing;
}

.map-region {
  fill: #322e26;
  stroke: #12110f;
  stroke-width: 0.7;
  stroke-linejoin: round;
  transition: fill 0.22s var(--ease);
  vector-effect: non-scaling-stroke;
}

.map-region.has-content {
  fill: #514a3b;
}

.map-region:hover,
.map-region.is-active {
  fill: var(--paper);
}

.map-region.is-selected {
  fill: var(--accent);
}

.map-region.is-dim {
  fill: #232019;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  pointer-events: none;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 11px;
  font-size: 0.8rem;
  line-height: 1.25;
  max-width: 240px;
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.14s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.map-tooltip.is-on {
  opacity: 1;
}

.map-tooltip b {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
}

.map-tooltip span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.map-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 4;
}

.map-zoom button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(247, 245, 239, 0.08);
  border: 1px solid rgba(247, 245, 239, 0.22);
  color: var(--paper);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background 0.2s var(--ease);
}

.map-zoom button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.map-hint {
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.45);
  margin-top: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.map-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.map-search {
  position: relative;
}

.map-search input {
  width: 100%;
  background: rgba(247, 245, 239, 0.06);
  border: 1px solid rgba(247, 245, 239, 0.22);
  color: var(--paper);
  padding: 11px 13px 11px 36px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.map-search input::placeholder {
  color: rgba(247, 245, 239, 0.45);
}

.map-search input:focus {
  border-color: var(--accent);
  background: rgba(247, 245, 239, 0.1);
}

.map-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(247, 245, 239, 0.5);
  pointer-events: none;
}

.map-suggest {
  position: absolute;
  z-index: 8;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--paper);
  color: var(--ink);
  max-height: 258px;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: none;
}

.map-suggest.is-open {
  display: block;
}

.map-suggest button {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
}

.map-suggest button:hover,
.map-suggest button.is-active {
  background: var(--paper-2);
}

.map-suggest small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.district-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-sm {
  border: 1px solid rgba(247, 245, 239, 0.24);
  background: transparent;
  color: rgba(247, 245, 239, 0.8);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.chip-sm:hover {
  border-color: var(--paper);
  color: var(--paper);
}

.chip-sm.is-on {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.6);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sw {
  width: 11px;
  height: 11px;
  display: inline-block;
  border: 1px solid rgba(247, 245, 239, 0.22);
  flex: none;
}

.sw--has {
  background: #514a3b;
}

.sw--none {
  background: #322e26;
}

.map-pick {
  border: 1px solid rgba(247, 245, 239, 0.18);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 172px;
  background: rgba(247, 245, 239, 0.03);
}

.map-pick__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.map-pick__meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.55);
}

.map-pick__status {
  font-size: 0.85rem;
  color: rgba(247, 245, 239, 0.72);
  line-height: 1.4;
}

.map-pick .btn {
  align-self: flex-start;
  margin-top: auto;
}

.map-regions-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.4);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0 3px;
  cursor: pointer;
  align-self: flex-start;
}

.map-regions-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.region-list {
  display: none;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 245, 239, 0.16);
  gap: 26px;
}

.region-list.is-open {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.region-list__group h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.region-list__group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.region-list__group a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  color: rgba(247, 245, 239, 0.78);
  padding: 3px 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.07);
}

.region-list__group a:hover {
  color: var(--accent);
}

.region-list__group a span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(247, 245, 239, 0.4);
}

/* 09. Карточки ============================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 34px) clamp(18px, 2vw, 28px);
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  position: relative;
}

.card__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 10;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.card__title {
  font-family: var(--font-text);
  font-size: clamp(1.02rem, 1.25vw, 1.17rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.005em;
  text-wrap: pretty;
  transition: color 0.2s var(--ease);
}

.card:hover .card__title {
  color: var(--accent);
}

.card__excerpt {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.card__foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card--text {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  gap: 10px;
}

.card--text .card__title {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

.card--row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.card--row .card__media {
  aspect-ratio: 4 / 3;
}

.card--row .card__title {
  font-size: 1.02rem;
}

/* большая карточка-обложка */
.card--feature .card__media {
  aspect-ratio: 3 / 2;
}

.card--feature .card__title {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
}

/* 10. Фильтры и кнопки ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
  text-align: center;
  line-height: 1.2;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--accent:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--paper {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--paper:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--outline-paper {
  background: transparent;
  border-color: rgba(247, 245, 239, 0.4);
  color: var(--paper);
}

.btn--outline-paper:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  transition: transform 0.24s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip--accent.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: flex-start;
  justify-content: space-between;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-group__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 10px 12px;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.search-inline {
  position: relative;
  min-width: min(280px, 100%);
}

.search-inline input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 9px 12px 9px 34px;
  font-size: 0.9rem;
  outline: none;
}

.search-inline svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.result-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 14px;
}

/* 11. Блоки главной ========================================================= */
.formats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.format {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: background 0.24s var(--ease), color 0.24s var(--ease);
}

.format:hover {
  background: var(--ink);
  color: var(--paper);
}

.format__n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.format__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.format__desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.format:hover .format__desc {
  color: rgba(247, 245, 239, 0.62);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 56px);
  align-items: center;
}

.school-media {
  position: relative;
}

.school-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.school-media__badge {
  position: absolute;
  right: -12px;
  bottom: -12px;
  background: var(--accent);
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.school-media__badge b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.program-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.program-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.program-list b {
  font-weight: 600;
}

.program-list span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.program-list small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.dark-block {
  background: var(--dark);
  color: var(--paper);
}

.dark-block .lead,
.dark-block p {
  color: rgba(247, 245, 239, 0.72);
}

.dark-block h2,
.dark-block h3 {
  color: var(--paper);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(247, 245, 239, 0.2);
}

.roadmap__item {
  padding: 18px 18px 22px 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap__item span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

.roadmap__item h3 {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.roadmap__item p {
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(247, 245, 239, 0.6);
  margin: 0;
}

.cta {
  background: var(--accent);
  color: #fff;
  padding-block: clamp(30px, 4.4vw, 62px);
}

.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.cta h2 {
  font-size: clamp(1.7rem, 3.8vw, 3.1rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 52ch;
  margin-top: 14px;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.cta .btn {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.cta .btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cta .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.cta .btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.role {
  background: var(--paper);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.22s var(--ease);
}

.role:hover {
  background: var(--paper-2);
}

.role h3 {
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.role p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

.role__n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.empty {
  border: 1px dashed var(--line-strong);
  padding: clamp(26px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: var(--paper-2);
}

.empty h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

.empty p {
  max-width: 54ch;
  color: var(--ink-soft);
  margin: 0;
}

.empty__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 12. Страница материала ==================================================== */
.article-head {
  padding-block: clamp(22px, 3vw, 40px) 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  opacity: 0.45;
}

.article-title {
  font-size: clamp(1.75rem, 4.2vw, 3.4rem);
  letter-spacing: -0.035em;
  max-width: 20ch;
  margin-bottom: 16px;
}

.article-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 22px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}

.author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author__ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex: none;
}

.author__name {
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
}

.author__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  margin-bottom: 10px;
}

.article-cover-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(24px, 3.4vw, 44px);
}

.prose {
  max-width: 68ch;
  font-size: clamp(1.02rem, 1.15vw, 1.1rem);
  line-height: 1.72;
}

.prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  font-size: 3.1em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
}

.prose h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin: 1.8em 0 0.6em;
}

.prose h3 {
  font-size: 1.12rem;
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.6em 0 0.5em;
}

.prose blockquote {
  margin: 1.7em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  font-size: 1.12em;
  line-height: 1.5;
  font-weight: 500;
}

.prose ul {
  padding-left: 1.1em;
  margin: 0 0 1.1em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose a {
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
}

.prose a:hover {
  color: var(--accent);
}

.prose .note {
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  padding: 14px 16px;
  font-size: 0.92em;
  line-height: 1.5;
  margin: 1.6em 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tag {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.aside-box {
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

.aside-box h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.aside-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.aside-box li {
  border-bottom: 1px solid var(--line);
}

.aside-box li a {
  display: block;
  padding: 9px 0;
  font-size: 0.88rem;
  line-height: 1.35;
  font-weight: 500;
}

.aside-box li a:hover {
  color: var(--accent);
}

.share {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share button {
  border: 1px solid var(--line-strong);
  background: none;
  border-radius: var(--radius);
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.share button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* 13. Страница региона ====================================================== */
.region-hero {
  background: var(--dark);
  color: var(--paper);
  padding-block: clamp(26px, 3.6vw, 52px);
  position: relative;
  overflow: hidden;
}

.region-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
}

.region-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.035em;
  margin-block: 10px 16px;
}

.region-hero__sub {
  color: rgba(247, 245, 239, 0.7);
  max-width: 46ch;
  margin: 0;
}

.region-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(247, 245, 239, 0.18);
}

.region-stats div {
  display: flex;
  flex-direction: column;
}

.region-stats b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.region-stats span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.55);
}

.region-map-mini {
  border: 1px solid rgba(247, 245, 239, 0.16);
  padding: 8px;
  background: rgba(247, 245, 239, 0.03);
}

.region-map-mini svg {
  display: block;
  width: 100%;
  height: auto;
}

.region-map-mini .map-region {
  fill: #2c2921;
  stroke: #12110f;
}

.region-map-mini .map-region.is-selected {
  fill: var(--accent);
}

.region-body {
  padding-block: clamp(26px, 3.4vw, 52px);
}

.region-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 3.4vw, 54px);
  align-items: start;
}

.region-empty {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.region-empty h2 {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.region-empty p {
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0;
}

/* 14. Внутренние страницы =================================================== */
.page-hero {
  padding-block: clamp(30px, 4.4vw, 64px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 52px);
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-top: 12px;
}

.page-hero p {
  margin: 0;
}

.page-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: end;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.kpi__item {
  background: var(--paper);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi__item b {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.kpi__item span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
}

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel--dark {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--paper);
}

.panel--dark p {
  color: rgba(247, 245, 239, 0.7);
}

.panel h3 {
  font-size: 1.15rem;
  font-family: var(--font-text);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.panel p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-soft);
}

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 4px;
}

.step h3 {
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  padding: 0 0 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  max-width: 70ch;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form__full {
  grid-column: 1 / -1;
}

.form__note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* 15. Подвал ================================================================ */
.site-footer {
  background: var(--dark);
  color: var(--paper);
  padding-top: clamp(34px, 4.4vw, 62px);
  margin-top: clamp(30px, 4vw, 60px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 0.75fr));
  gap: clamp(22px, 3vw, 44px);
  padding-bottom: clamp(28px, 3.4vw, 48px);
  border-bottom: 1px solid rgba(247, 245, 239, 0.16);
}

.footer-brand .logo__name {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  color: var(--paper);
}

.footer-brand p {
  color: rgba(247, 245, 239, 0.6);
  font-size: 0.9rem;
  max-width: 34ch;
  margin-top: 14px;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.5);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(247, 245, 239, 0.82);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 20px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.42);
}

.footer-bottom a:hover {
  color: var(--paper);
}

.footer-note {
  max-width: 60ch;
  line-height: 1.6;
}

/* 16. Утилиты и адаптив ===================================================== */
[id] {
  scroll-margin-top: calc(var(--header-h) + 46px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack--lg {
  gap: clamp(20px, 2.6vw, 34px);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 26px;
}

.mb-0 {
  margin-bottom: 0;
}

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: clamp(20px, 3vw, 36px);
}

.no-data {
  padding: 40px 0;
  color: var(--muted);
}

.loading-skeleton {
  background: var(--paper-2);
  min-height: 220px;
}

@media (max-width: 1180px) {
  .nav {
    gap: 14px;
  }
  .nav__link {
    font-size: 0.88rem;
  }
  .formats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 1000px) {
  .nav,
  .header-actions .btn {
    display: none;
  }
  .burger {
    display: inline-grid;
  }
  .hero__grid,
  .region-hero__grid,
  .page-hero__grid,
  .split,
  .cta__grid,
  .article-layout,
  .region-layout,
  .cols-2,
  .cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .cards,
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-panel {
    order: -1;
  }
  .article-aside {
    position: static;
  }
  .region-hero__grid .region-map-mini {
    max-width: 420px;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar__right {
    display: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }
  :root {
    --header-h: 62px;
  }
  .hero__media {
    aspect-ratio: 4 / 3;
  }
  .cards,
  .cards--2,
  .cards--4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .card--row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }
  .formats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roadmap {
    grid-template-columns: minmax(0, 1fr);
  }
  .form {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-cover {
    aspect-ratio: 4 / 3;
  }
  .prose {
    font-size: 1rem;
  }
  .school-media__badge {
    right: 0;
    bottom: 0;
    padding: 10px 14px;
  }
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .logo__mark {
    width: 26px;
    height: 26px;
  }
  .logo__name {
    font-size: 0.95rem;
  }
  .ticker__label span {
    display: none;
  }
  .chip {
    padding: 6px 11px;
    font-size: 0.78rem;
  }
  .search-box {
    box-shadow: 6px 6px 0 rgba(255, 61, 20, 0.9);
  }
}

@media (max-width: 720px) {
  .map-svg {
    touch-action: auto;
  }
  .map-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track {
    animation: none;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .map-section,
  .cta,
  .ticker {
    display: none;
  }
  body {
    background: #fff;
  }
}

/* ============================================================================
   17. Аккаунты, пресс-карта, документы, редактор, анимации
   ========================================================================== */

/* --- плашки статуса в шапке ------------------------------------------------ */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.badge-live:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.badge-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s infinite;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.user-chip:hover {
  background: var(--ink);
  color: var(--paper);
}

.user-chip__ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex: none;
}

.user-chip__name {
  font-size: 0.86rem;
  font-weight: 600;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- пресс-карта проекта -------------------------------------------------- */
.presscard-wrap {
  padding-block: clamp(20px, 3vw, 38px);
}

.presscard {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}

.presscard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20, 19, 15, 0.045) 1px, transparent 1px);
  background-size: 100% 28px;
  pointer-events: none;
}

.presscard__main {
  padding: clamp(18px, 2.6vw, 34px);
  position: relative;
  z-index: 1;
  border-right: 1px dashed var(--line-strong);
}

.presscard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 2vw, 26px);
}

.presscard__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.presscard__code {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
}

.presscard__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.presscard__desc {
  margin-top: 10px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.presscard__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: clamp(16px, 2.4vw, 28px);
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.presscard__row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  font-weight: 600;
}

.presscard__row b {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.presscard__side {
  padding: clamp(18px, 2.6vw, 34px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.presscard__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.presscard__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.presscard__stats span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.presscard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.presscard__stamp {
  align-self: flex-end;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
  transform: rotate(-9deg);
  opacity: 0.9;
}

.presscard__stamp span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.presscard--personal {
  grid-template-columns: minmax(0, 1fr) 200px;
}

.presscard--personal .presscard__side {
  align-items: center;
  justify-content: space-between;
  border-left: 1px dashed var(--line-strong);
}

/* --- документы ------------------------------------------------------------ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.doc-card {
  background: var(--paper);
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.22s var(--ease);
}

.doc-card:hover {
  background: var(--paper-2);
}

.doc-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  align-self: flex-start;
  padding: 3px 8px;
}

.doc-card__type--pdf {
  background: var(--accent);
}

.doc-card h3 {
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.doc-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.doc-card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-list {
  border-top: 1px solid var(--line);
}

.doc-list__row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.doc-list__row span:first-child {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.doc-list__row b {
  font-weight: 600;
  font-size: 0.95rem;
}

.doc-list__row small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}

/* --- страница регистрации -------------------------------------------------- */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.auth-card {
  border: 1px solid var(--ink);
  background: var(--paper);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.auth-tab {
  flex: 1;
  padding: 14px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.auth-tab.is-on {
  background: var(--ink);
  color: var(--paper);
}

.auth-body {
  padding: clamp(18px, 2.6vw, 30px);
}

.auth-body .field + .field {
  margin-top: 14px;
}

.auth-error {
  margin-top: 14px;
  background: rgba(255, 61, 20, 0.1);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--accent-dark);
}

.auth-body .btn {
  margin-top: 18px;
}

.auth-hero h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.auth-benefits li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  line-height: 1.45;
}

.auth-benefits span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.auth-benefits b {
  display: block;
  margin-bottom: 2px;
}

/* --- личный кабинет -------------------------------------------------------- */
.profile-hero {
  background: var(--dark);
  color: var(--paper);
  padding-block: clamp(24px, 3.4vw, 46px);
}

.profile-hero__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.profile-id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.profile-id__ava {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.04em;
  flex: none;
}

.profile-hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.profile-id__role {
  color: rgba(247, 245, 239, 0.75);
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.profile-id__since {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.45);
  margin: 6px 0 0;
}

.profile-hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-hero .btn--ghost {
  color: var(--paper);
  border-color: rgba(247, 245, 239, 0.4);
}

.profile-hero .btn--ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: start;
}

.profile-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kpi--stack {
  grid-template-columns: minmax(0, 1fr);
}

.kpi--stack .kpi__item b {
  font-size: 1.5rem;
}

.welcome {
  background: var(--accent);
  color: #fff;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  line-height: 1.45;
}

.welcome b {
  font-weight: 700;
}

.profile-posts {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.post-row__main {
  min-width: 0;
  flex: 1 1 320px;
}

.post-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.post-row__title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}

.post-row__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.status {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.status--draft {
  background: var(--paper-3);
  color: var(--ink-soft);
}

.status--pub {
  background: var(--ink);
  color: var(--paper);
}

.storage-note {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  border-left: 3px solid var(--line-strong);
  padding-left: 12px;
}

/* --- редактор -------------------------------------------------------------- */
.write-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 26px;
}

.write-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  margin: 8px 0 10px;
}

.write-head .lead {
  margin: 0;
  max-width: 46ch;
}

.write-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.write-main .field + .field {
  margin-top: 16px;
}

.write-main textarea {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
}

#w-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  padding: 14px;
}

.field__hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.45;
}

.write-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.write-side__box {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.write-side__box--muted {
  background: transparent;
}

.write-side__box h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.write-side__box .field + .field {
  margin-top: 4px;
}

.write-side .btn + .btn {
  margin-top: 2px;
}

.check-list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.check-list a {
  border-bottom: 1px solid var(--accent);
}

.write-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-height: 14px;
}

.write-status.is-ok {
  color: #1f7a4c;
}

.write-status.is-error {
  color: var(--accent-dark);
}

.cover-picker {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 6px;
}

.cover-picker__preview {
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
}

.cover-picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-picker__ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.cover-picker__ui input[type="text"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 9px 11px;
  font-size: 0.88rem;
  outline: none;
}

.cover-picker__ui label.btn {
  cursor: pointer;
}

/* --- дополнения к карточкам ------------------------------------------------ */
.card__author-flag {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
}

.card__media--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--paper-3);
}

.kicker-flag {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.author-card__ava {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  flex: none;
}

.author-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.author-card__role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.author-box {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
}

.author-box__ava {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  flex: none;
}

.author-box__name {
  font-weight: 600;
}

.author-box__role {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.author-box__text {
  font-size: 0.87rem;
  color: var(--ink-soft);
  margin: 8px 0 0;
}

.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.85rem;
  transition: all 0.18s var(--ease);
}

.region-chip:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.region-chip span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.region-chip:hover span {
  color: rgba(247, 245, 239, 0.6);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem !important;
  color: rgba(247, 245, 239, 0.55) !important;
  margin-top: 10px !important;
}

.footer-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --- полоса прогресса чтения ---------------------------------------------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* --- анимации -------------------------------------------------------------- */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes mapIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.has-anim [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}

body.has-anim [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

body.has-anim [data-delay="1"].is-in {
  transition-delay: 0.07s;
}

body.has-anim [data-delay="2"].is-in {
  transition-delay: 0.14s;
}

body.has-anim [data-delay="3"].is-in {
  transition-delay: 0.21s;
}

body.has-anim [data-delay="4"].is-in {
  transition-delay: 0.28s;
}

body.has-anim main {
  animation: pageIn 0.45s var(--ease) both;
}

body.has-anim .map-region {
  animation: mapIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 4ms);
}

body.has-anim .presscard__stamp {
  animation: pageIn 1s var(--ease) 0.3s both;
}

/* живые акценты при наведении */
.card {
  transition: transform 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
}

.btn {
  position: relative;
  overflow: hidden;
}

@media (max-width: 1000px) {
  .presscard,
  .presscard--personal {
    grid-template-columns: minmax(0, 1fr);
  }
  .presscard__main {
    border-right: 0;
    border-bottom: 1px dashed var(--line-strong);
  }
  .presscard--personal .presscard__side {
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
    flex-direction: row;
    align-items: center;
  }
  .profile-grid,
  .auth-layout,
  .write-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .write-side {
    position: static;
  }
  .presscard__stamp {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 720px) {
  .cover-picker {
    grid-template-columns: minmax(0, 1fr);
  }
  .presscard__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-hero__actions .btn {
    flex: 1;
  }
  .post-row__actions .btn {
    font-size: 0.78rem;
    padding: 7px 11px;
  }
  .doc-list__row {
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .doc-list__row .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media print {
  .site-header,
  .site-footer,
  .profile-hero__actions,
  .profile-posts,
  .profile-settings,
  .presscard-wrap,
  .progress,
  .welcome,
  .kpi,
  .panel {
    display: none !important;
  }
  .presscard {
    border: 2px solid #000;
  }
  body {
    background: #fff;
  }
}

/* --- сетка форматов под любое число карточек ------------------------------ */
.formats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* --- мягкое появление изображений ---------------------------------------- */
@keyframes imgFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.has-anim .card__media img,
body.has-anim .article-cover {
  animation: imgFade 0.6s var(--ease) both;
}

/* --- аккуратный фокус на карте ------------------------------------------- */
.map-region:focus-visible {
  outline: none;
  fill: var(--paper);
  stroke: var(--accent);
  stroke-width: 2;
}

/* --- таблица «пресс-карты» на узких экранах ------------------------------ */
@media (max-width: 520px) {
  .presscard__row {
    gap: 10px 20px;
  }
  .presscard__stamp {
    display: none;
  }
  .user-chip__name {
    display: none;
  }
  .topbar__left span:not(.badge-live) {
    display: none;
  }
}

/* --- три шага в призыве --------------------------------------------------- */
.cta__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: clamp(24px, 3.4vw, 42px);
  padding-top: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.cta__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cta__step b {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.75;
  padding-top: 4px;
}

.cta__step h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  color: #fff;
}

.cta__step p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
}

@media (max-width: 720px) {
  .cta__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

/* ==========================================================================
   18. ЧЁРНАЯ ТЕМА И ЛОГОТИП
   Все поверхности и текст берут цвета из токенов выше — здесь они
   переопределяются один раз, поэтому тёмная тема не расползается по файлу.
   ========================================================================== */

:root {
  --paper: #0a0a0a;
  --paper-2: #151515;
  --paper-3: #1f1f1f;
  --ink: #f4f2ed;
  --ink-soft: #c9c5bc;
  --muted: #928d83;
  --line: #2a2826;
  --line-strong: #3f3c38;
  --accent: #ff4a17;
  --accent-dark: #d8370d;
  --dark: #050505;
  --dark-2: #0f0f0f;
  --dark-3: #1a1917;
  --on-dark: #f4f2ed;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

html {
  color-scheme: dark;
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* шапка и панели на чёрном ------------------------------------------------ */
.site-header {
  background: rgba(10, 10, 10, 0.88);
  border-bottom: 1px solid var(--line);
}

.mobile-menu,
.search-box {
  border: 1px solid var(--line);
}

/* поля ввода: чуть светлее фона, чтобы были видны -------------------------- */
.field input,
.field select,
.field textarea,
.search-inline input,
.search-box input,
.cover-picker__ui input[type="text"] {
  background: #121212;
  color: var(--ink);
  border-color: var(--line-strong);
}

.field input::placeholder,
.field textarea::placeholder,
.cover-picker__ui input::placeholder {
  color: #6f6b63;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-inline input:focus {
  border-color: var(--accent);
}

select option {
  background: #121212;
  color: var(--ink);
}

/* блоки, которые были «белыми листами» ------------------------------------- */
.presscard {
  background: var(--paper-2);
  border-color: var(--line-strong);
}

.presscard::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.auth-card,
.doc-card,
.role,
.kpi__item,
.map-tooltip,
.map-suggest {
  background: #101010;
}

.doc-card:hover,
.role:hover {
  background: var(--paper-2);
}

/* секции, которые и раньше были тёмными: текст на них остаётся светлым ----- */
.map-section,
.map-section h2,
.map-section h3,
.map-section p,
.dark-block,
.dark-block h2,
.dark-block h3,
.region-hero,
.region-hero h1,
.region-hero p,
.panel--dark,
.panel--dark h3,
.profile-hero,
.site-footer,
.map-zoom button,
.map-search input,
.chip-sm,
.map-regions-toggle,
.legend__label {
  color: var(--on-dark);
}

.panel--dark p,
.region-hero .lead,
.profile-hero p {
  color: rgba(244, 242, 237, 0.72);
}

.dark-block,
.panel--dark,
.region-hero,
.profile-hero,
.site-footer {
  background: var(--dark-2);
}

.map-section {
  background: var(--dark);
  border-block: 1px solid var(--line);
}

/* инверсные кнопки на тёмных блоках ---------------------------------------- */
.btn--paper {
  background: var(--on-dark);
  color: #0a0a0a;
  border-color: var(--on-dark);
}

.btn--paper:hover {
  background: #fff;
  border-color: #fff;
}

.btn--outline-paper {
  color: var(--on-dark);
  border-color: rgba(244, 242, 237, 0.42);
}

.btn--outline-paper:hover {
  background: var(--on-dark);
  color: #0a0a0a;
  border-color: var(--on-dark);
}

.profile-hero .btn--ghost {
  color: var(--on-dark);
  border-color: rgba(244, 242, 237, 0.32);
}

.profile-hero .btn--ghost:hover {
  background: var(--on-dark);
  color: #0a0a0a;
  border-color: var(--on-dark);
}

.chip-sm.is-on {
  background: var(--on-dark);
  color: #0a0a0a;
}

.map-tooltip {
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* логотип ------------------------------------------------------------------ */
.logo {
  display: inline-flex;
  align-items: center;
}

.logo__img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 100%;
}

.mobile-menu .logo__img {
  height: 28px;
}

.footer-brand .logo__img {
  height: 42px;
  margin-bottom: 14px;
}

.presscard__logo {
  display: block;
  height: 46px;
  width: auto;
  margin: 2px 0 14px;
}

/* печать: документы и пресс-карта остаются светлыми ------------------------ */
@media print {
  :root {
    --paper: #fff;
    --paper-2: #f6f5f2;
    --paper-3: #ecebe6;
    --ink: #111;
    --ink-soft: #333;
    --muted: #555;
    --line: #bbb;
    --line-strong: #888;
  }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .presscard {
    border-color: #111 !important;
    background: #fff !important;
  }

  .presscard::before {
    background-image: none !important;
  }
}

@media (max-width: 720px) {
  .logo__img {
    height: 27px;
  }
}

/* кнопки на цветном призыве: белый фон, тёмный текст ---------------------- */
.cta .btn {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.cta .btn:hover {
  background: var(--ink);
  color: #0a0a0a;
  border-color: var(--ink);
}

.cta .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.cta .btn--ghost:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

/* ярлык типа документа: светлая плашка с тёмным текстом -------------------- */
.doc-card__type {
  background: var(--ink);
  color: #0a0a0a;
}

/* карта на чёрном: подсветка региона светлая, а не «чёрная» ----------------- */
.map-region {
  fill: #35312a;
}

.map-region.is-dim {
  fill: #201d18;
}

.map-region:hover:not(.is-selected),
.map-region.is-active:not(.is-selected),
.map-region:focus-visible:not(.is-selected) {
  fill: #cfc9bd;
}

.map-region:focus-visible {
  outline: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.region-map-mini .map-region {
  fill: #35312a;
}

/* панели поверх страницы: чуть светлее фона, чтобы читалась граница -------- */
.search-box,
.mobile-menu {
  background: #0d0d0d;
}

.search-box {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.mobile-menu {
  border-color: var(--line);
}

.mobile-menu__head {
  border-bottom: 1px solid var(--line);
}

.mobile-menu__link {
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   19. ПРЕСС-КАРТА ПОСЛЕ ПУБЛИКАЦИЙ, ПАНЕЛЬ ПРОЕКТА, СОГЛАСИЕ
   ========================================================================== */

/* прогресс до пресс-карты */
.card-progress {
  margin-top: clamp(14px, 2vw, 22px);
}

.card-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.card-progress__head b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card-progress__head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.card-progress__bar {
  position: relative;
  height: 8px;
  margin: 10px 0 12px;
  background: var(--paper-3);
  overflow: hidden;
}

.card-progress__bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.8s var(--ease);
}

.card-progress__note {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.presscard__code {
  white-space: nowrap;
}

.presscard__stamp--muted {
  border-color: var(--line-strong);
  color: var(--muted);
  font-size: 10px;
}

/* согласие при регистрации */
.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 4px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.check-line input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.check-line a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}

.check-line a:hover {
  text-decoration-color: var(--accent);
}

/* панель проекта */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  align-items: start;
}

.admin-card {
  border: 1px solid var(--line);
  background: #101010;
  padding: clamp(18px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.admin-card__hint {
  margin: -6px 0 4px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.admin-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
  max-width: 40ch;
}

.admin-table {
  border-top: 1px solid var(--line);
}

.admin-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.admin-table__row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.admin-table__row b {
  font-weight: 600;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-table__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
  }

  .admin-table__row > div:nth-child(2),
  .admin-table__row > div:nth-child(3) {
    display: none;
  }
}

/* --- учредители в панели -------------------------------------------------- */
.admin-person {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-person__n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 4px;
}

.admin-person .field + .field {
  grid-column: 2;
}

/* --- честная заглушка вместо почты ---------------------------------------- */
.footer-pending,
.is-pending {
  color: var(--muted);
  font-size: 0.86rem;
}

.is-pending {
  text-decoration: none;
  cursor: default;
}

/* ==========================================================================
   20. СВЕТЛАЯ ТЕМА, ПАНЕЛЬ ФОРМАТИРОВАНИЯ, КРУПНЫЙ ТЕКСТ
   ========================================================================== */

/* кнопка переключения темы ------------------------------------------------ */
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.header-actions {
  gap: 10px;
}

/* на узких экранах в шапке остаётся одна понятная кнопка — меню ----------- */
@media (max-width: 1000px) {
  .header-actions {
    gap: 8px;
  }
  .header-actions [data-theme-toggle],
  .header-actions [data-search-open] {
    display: none;
  }
  .mobile-menu__theme {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 4px;
    color: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
  }
  .mobile-menu__theme span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

@media (min-width: 1001px) {
  .mobile-menu__theme {
    display: none;
  }
}

/* панель форматирования в редакторе --------------------------------------- */
.md-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.md-btn {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 6px 13px;
  font-family: var(--font-text);
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.md-btn:hover {
  background: var(--paper-3);
  border-color: var(--accent);
}

.md-btn b,
.md-btn i {
  font-size: 0.95rem;
}

.md-btn kbd {
  display: none;
}

/* подсказка под редактором */
.field__hint code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--ink-soft);
  background: var(--paper-3);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ==========================================================================
   21. СООБЩЕСТВА, ПРОВЕРКА МАТЕРИАЛОВ, ПУСТАЯ ЛЕНТА
   ========================================================================== */

/* первый экран, пока материалов нет --------------------------------------- */
.hero-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-block: clamp(28px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}

.hero-empty h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  max-width: 22ch;
}

.hero-empty .lead {
  max-width: 52ch;
  color: var(--ink-soft);
}

.hero-empty .row {
  margin-top: 22px;
}

.hero-empty__side {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-empty__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  font-size: 0.95rem;
}

.hero-empty__item b {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.ticker__text {
  padding: 12px 20px;
  font-size: 0.92rem;
  color: var(--on-dark);
  opacity: 0.8;
}

/* строка редакции на пресс-карте ------------------------------------------ */
.presscard__editorial {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: -6px 0 14px;
}

/* статусы материалов ------------------------------------------------------ */
.status--pending {
  background: rgba(255, 176, 32, 0.18);
  color: #ffb020;
}

.status--rejected {
  background: rgba(255, 74, 23, 0.18);
  color: var(--accent);
}

.post-row__note {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 2px solid var(--accent);
  background: var(--paper-2);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.post-row__wait {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* блок редакции в кабинете ------------------------------------------------ */
.panel--team {
  margin-top: 18px;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 12px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.team-stats b {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
}

.team-code {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.team-code code {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  background: var(--paper-3);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--ink);
}

.team-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.team-form--join {
  border-top: 0;
  padding-top: 0;
}

/* очередь проверки в панели ---------------------------------------------- */
.admin-review {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.admin-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-review__top b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.admin-review__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 10px;
}

.admin-review__excerpt {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 72ch;
}

.admin-review__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-review__note {
  flex: 1 1 240px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
}

.admin-access {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .hero-empty {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* основатели: две фотографии и раскрытие ---------------------------------- */
.founders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.founder {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.founder:hover,
.founder:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.founder__photos {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}

.founder__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__photo--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.founder__photo--alt {
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.founder:hover .founder__photo--alt {
  opacity: 1;
}

.founder__body {
  padding-top: 14px;
}

.founder__body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.founder__role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.founder__more {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), margin 0.35s var(--ease);
}

.founder.is-open .founder__more {
  max-height: 320px;
  margin-top: 12px;
}

.founder__more p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* партнёры ---------------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.partner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: border-color 0.2s var(--ease);
}

.partner:hover {
  border-color: var(--accent);
}

.partner__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}

.partner__body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.partner__body p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.partner__link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* страница основателей ---------------------------------------------------- */
.founders--page {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.founder--page {
  cursor: default;
  padding: 20px;
}

.founder--page:hover {
  transform: none;
  border-color: var(--line);
}

.founder--page .founder__photos {
  aspect-ratio: 1 / 1;
}

.founder--page h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 16px 0 6px;
}

.founder__photo--mono {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  color: var(--paper);
  background: linear-gradient(150deg, #1a1917 0%, #2a2722 55%, var(--accent-dark) 140%);
}

html[data-theme="light"] .founder__photo--mono {
  color: var(--on-dark);
  background: linear-gradient(150deg, #121110 0%, #2a2722 60%, var(--accent) 150%);
}

.founder__bio {
  margin: 12px 0 16px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.founder__facts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.founder__facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.founder__facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.founder__facts dd {
  margin: 0;
  font-size: 0.92rem;
}

.founder__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- подпись автора в карточке -------------------------------------------- */
.card__by {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 2px;
}

.card:hover .card__by {
  color: var(--ink-soft);
}
