:root {
  --paper: #efeee9;
  --paper-2: #e6e5df;
  --card: #ffffff;
  --ink: #13171a;
  --ink-2: #4a5257;
  --ink-3: #5c6367;
  --line: #d3d2ca;

  --accent: #1d34d8;
  --accent-ink: #ffffff;

  --tone-strange: #f2e6da;
  --tone-home: #f4ebd8;
  --tone-money: #e4ede2;
  --tone-life: #e4e7ef;

  --mark-strange: #c02d12;
  --mark-home: #82590a;
  --mark-money: #086b4d;
  --mark-life: #1d34d8;

  --maxw: 1280px;

  /* Мера текстовой колонки: 64ch ≈ 72 знака в строке при 18px Golos Text.
     Норма читаемости — 60–75; на 68ch строка уходила за 77. */
  --measure: 64ch;

  /* Тёмная полоса тестов: бумага и чернила там меняются местами,
     поэтому линии и второстепенный текст нужны свои. */
  --line-invert: rgb(235 237 232 / 0.28);
  --ink-3-invert: #a8b0c9;

  /* Штриховка пустого рекламного места */
  --hatch: rgb(19 23 26 / 0.035);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
}

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

.mark {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-3);
}

.mark-strange {
  color: var(--mark-strange);
}
.mark-home {
  color: var(--mark-home);
}
.mark-money {
  color: var(--mark-money);
}
.mark-life {
  color: var(--mark-life);
}

/* ── Шапка и полоса прочитанного ────────────────────── */

.topbar {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-in {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  padding: 7px 12px 6px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

/* Обёртка ради градиента-подсказки: сам .nav прокручивается, и псевдоэлемент
   на нём уезжал бы вместе с пунктами. min-width нужен, чтобы флекс разрешил
   обёртке стать уже содержимого — иначе шапка распирает страницу. */
.nav-wrap {
  position: relative;
  min-width: 0;
}

.nav-wrap::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 36px;
  background: linear-gradient(to left, var(--paper), transparent);
  pointer-events: none;
  opacity: 0;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  text-decoration: none;
}

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

/* Полоса прочитанного: считается прокруткой, без обработчиков событий.
   Без scroll-timeline анимация нулевой длительности с fill both сразу встаёт
   в конечный кадр: полоса была бы залита целиком и врала бы о прогрессе. */
.progress {
  display: none;
}

@supports (animation-timeline: scroll(root block)) {
  .progress {
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    background: var(--accent);
    scale: 0 1;
    animation: grow linear both;
    animation-timeline: scroll(root block);
  }

  @keyframes grow {
    to {
      scale: 1 1;
    }
  }
}

/* ── Каркас статьи ─────────────────────────────────── */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  padding-top: 26px;
}

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.crumbs a {
  text-decoration: none;
  color: var(--ink-3);
}

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

.crumbs span {
  color: var(--line);
}

.article-head h1 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 10px 0 16px;
  max-width: 19ch;
}

.article-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 22px;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.byline b {
  font-size: 14px;
  font-weight: 600;
}

.article-figure {
  position: relative;
  margin: 28px 0 10px;
}

.article-figure .plate {
  position: absolute;
  left: -14px;
  top: 16px;
  right: 34px;
  bottom: -14px;
  background: var(--accent);
}

.article-figure img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.04);
}

figcaption {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
  max-width: 60ch;
}

/* ── Тело текста ───────────────────────────────────── */

.body {
  max-width: var(--measure);
  font-size: 18px;
  line-height: 1.68;
  margin-top: 34px;
}

.body p {
  margin: 0 0 22px;
}

.body h2 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 44px 0 16px;
  scroll-margin-top: 84px;
}

.body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 30px 0 10px;
}

.body ul,
.body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.body li {
  margin-bottom: 10px;
}

.body li::marker {
  color: var(--accent);
}

.body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.body a:hover {
  text-decoration-color: currentColor;
}

.body strong {
  font-weight: 700;
}

/* ── Оглавление ────────────────────────────────────── */

.toc {
  border: 1px solid var(--line);
  padding: 20px 22px 18px;
  margin: 30px 0 8px;
  max-width: var(--measure);
}

.toc h2 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 9px;
}

.toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  font-size: 16px;
}

.toc li::before {
  content: counter(toc);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 3px;
}

.toc a {
  text-decoration: none;
  font-weight: 500;
}

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

/* ── Врезки в теле ─────────────────────────────────── */

.callout {
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  padding: 20px 22px;
  margin: 30px 0;
  max-width: var(--measure);
}

.callout-warn {
  border-left-color: var(--mark-strange);
}

.callout h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout p,
.callout li {
  font-size: 16px;
  line-height: 1.55;
}

blockquote {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 3px solid var(--line);
  max-width: var(--measure);
}

blockquote p {
  font-family: Prata, Georgia, serif;
  font-size: 22px;
  line-height: 1.38;
  margin: 0 0 12px;
}

blockquote footer {
  font-size: 14px;
  color: var(--ink-3);
}

/* Таблица не обязана помещаться в телефон. Прокручиваем её саму, иначе
   на 320px она распирала документ и включала горизонтальную прокрутку
   всей странице. */
.table-scroll {
  max-width: var(--measure);
  margin: 26px 0 30px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-3);
  padding-bottom: 10px;
}

th,
td {
  text-align: left;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--ink);
}

td:last-child,
th:last-child {
  padding-right: 0;
}

/* ── Счётчик: собственный интерактив статьи ────────── */

.calc {
  border: 1px solid var(--ink);
  padding: 24px 24px 22px;
  margin: 34px 0;
  max-width: var(--measure);
}

.calc h2 {
  margin: 0 0 6px;
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: 26px;
}

.calc-note {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 20px;
}

.calc-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.calc-row > span {
  font-size: 14px;
  font-weight: 600;
}

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

.opts label {
  position: relative;
}

.opts input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.opts span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  cursor: pointer;
}

.opts input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.opts input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-total {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.calc-total b {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
}

/* ── Реклама ───────────────────────────────────────── */

.adslot {
  border: 1px dashed var(--ink-3);
  background: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 9px,
    var(--hatch) 9px,
    var(--hatch) 18px
  );
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-3);
  padding: 20px;
}

.adslot-inarticle {
  height: 280px;
  margin: 36px 0;
  max-width: var(--measure);
}

.adslot-side {
  height: 600px;
}

/* ── Правая колонка ────────────────────────────────── */

.aside-sticky {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 26px;
}

.aside h2 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}

.aside ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.aside li:first-child {
  border-top: 0;
  padding-top: 0;
}

.aside a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.34;
  display: block;
}

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

/* ── Подпись автора и проверка фактов ──────────────── */

.method {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  margin: 44px 0 0;
  max-width: var(--measure);
}

.method h2 {
  font-size: 15px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.method p {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 10px;
}

.author {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  padding: 18px;
  margin: 26px 0 0;
  max-width: var(--measure);
}

.author img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.author-initials {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-family: Prata, Georgia, serif;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.author b {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.author p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* ── Вопросы и ответы ──────────────────────────────── */

.faq {
  max-width: var(--measure);
  margin-top: 44px;
}

.faq h2 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(23px, 2.3vw, 30px);
  margin: 0 0 18px;
}

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

details summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
  min-height: 44px;
}

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

details summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

details p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ── Читайте также ─────────────────────────────────── */

.also {
  margin-top: 56px;
}

.also-head {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 24px;
}

.also-head h2 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0;
}

.also-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 24px;
}

.also-grid .card,
.tail .card {
  box-shadow: none;
}

.card a {
  text-decoration: none;
}

.duo {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
}

.duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.t-strange {
  background: var(--tone-strange);
}
.t-home {
  background: var(--tone-home);
}
.t-money {
  background: var(--tone-money);
}
.t-life {
  background: var(--tone-life);
}

.t-strange img {
  filter: url(#duo-strange);
}
.t-home img {
  filter: url(#duo-home);
}
.t-money img {
  filter: url(#duo-money);
}
.t-life img {
  filter: url(#duo-life);
}

.card:hover .duo img {
  transform: scale(1.03);
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
  margin: 8px 0 0;
}

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

/* ── Подвал ────────────────────────────────────────── */

footer {
  margin-top: 64px;
  border-top: 2px solid var(--ink);
  padding: 30px 0 52px;
}

.foot-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}

.foot-legal a {
  color: inherit;
}

/* ── Планшет и мобайл ──────────────────────────────── */

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

  .aside {
    margin-top: 44px;
    border-top: 1px solid var(--line);
    padding-top: 26px;
  }

  .aside-sticky {
    position: static;
  }

  .adslot-side {
    height: 280px;
  }

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

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .topbar-in {
    height: auto;
    flex-wrap: wrap;
    padding-top: 11px;
    gap: 14px;
  }

  .nav-wrap {
    order: 3;
    width: calc(100% + 32px);
    margin: 0 -16px;
  }

  .nav {
    padding: 0 16px 10px;
    gap: 18px;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .body {
    font-size: 17px;
  }

  .toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .toc li::before {
    padding-top: 14px;
  }

  .article-figure .plate {
    left: -8px;
    right: 14px;
  }

  .article-figure img {
    aspect-ratio: 4 / 3;
  }

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

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

  td:last-child,
  th:last-child {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .progress {
    display: none;
  }
}

/* ══ Главная ══════════════════════════════════════════ */

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

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  margin-bottom: 26px;
}

.section-head :is(h1, h2) {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0;
  letter-spacing: -0.01em;
}

.section-head a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.section-head a:hover {
  text-decoration: underline;
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  border-bottom: 1px solid var(--ink);
}

.lead-main {
  padding: 30px 40px 36px 0;
  border-right: 1px solid var(--ink);
}

.lead-figure {
  position: relative;
  margin: 26px 0 8px;
}

.lead-figure .plate {
  position: absolute;
  left: -14px;
  top: 16px;
  right: 34px;
  bottom: -14px;
  background: var(--accent);
}

.lead-figure img {
  filter: saturate(1.18) contrast(1.04);
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.lead-main h1 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  max-width: 17ch;
}

.lead-main h1 a:hover {
  color: var(--accent);
}

.lead-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 18px;
}

.chron {
  padding: 30px 0 30px 28px;
}

.chron h2 {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ink-3);
}

.chron ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chron li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.chron li:first-child {
  border-top: 0;
  padding-top: 0;
}

.chron time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-3);
  padding-top: 2px;
}

.chron p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.32;
}

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

.adslot-wide {
  height: 140px;
  margin: 34px 0;
}

.adslot-feed {
  min-height: 100%;
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.card {
  background: var(--paper);
  padding: 0 0 22px;
  display: flex;
  flex-direction: column;
  box-shadow:
    1px 0 0 var(--line),
    0 1px 0 var(--line);
}

.card .duo {
  aspect-ratio: 3 / 2;
  margin-bottom: 16px;
}

.card-body {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

.card .meta {
  margin-top: auto;
  padding-top: 6px;
}

.quizstrip {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0 44px;
  margin: 54px 0;
}

.quizstrip .section-head {
  border-top-color: var(--paper);
  color: var(--paper);
}

.quizstrip .section-head a {
  color: var(--paper);
}

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

.quiztile {
  border: 1px solid var(--line-invert);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 176px;
  transition:
  background 0.25s ease,
  color 0.25s ease;
}

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

.quiztile .mark {
  color: var(--ink-3-invert);
}

.quiztile:hover .mark {
  color: var(--accent);
}

.quiztile h3 {
  margin: auto 0 0;
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
}

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

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

.row:hover .row-title {
  color: var(--accent);
}

.row-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.34;
}

.rows-note {
  grid-column: 1 / -1;
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

.tail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 54px;
}

.tail .card {
  padding-bottom: 0;
}

.tail .card-body {
  padding: 0;
}

.tail .duo {
  aspect-ratio: 4 / 3;
}

.tail h3 {
  font-size: 17px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.foot-grid h3 {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}

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

.foot-about {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0;
}

/* С этой ширины пункты меню перестают помещаться. Градиент у правого края —
   единственный признак того, что список продолжается: скроллбар скрыт, а на
   телефоне его не рисует и система. */
@media (max-width: 1060px) {
  .nav {
    gap: 18px;
  }

  .nav-wrap::after {
    opacity: 1;
  }
}

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

  .lead-main {
    padding: 28px 0 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chron {
    padding: 26px 0;
  }


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

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

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

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

@media (max-width: 640px) {
  .chron a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .feed,
  .quiztiles,
  .tail {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-figure .plate {
    left: -8px;
    right: 14px;
  }

  .lead-figure img {
    aspect-ratio: 4 / 3;
  }

  .adslot-wide {
    height: 260px;
  }
}

/* ══ Слоган ══════════════════════════════════════════ */

.foot-slogan {
  font-family: Prata, Georgia, serif;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  min-height: 1.3em;
}

/* ══ Тест ════════════════════════════════════════════ */

.quiz {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  max-width: var(--measure);
}

.quiz-count {
  margin: 0 0 12px;
}

.quiz-question {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.25;
  margin: 0 0 22px;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 18px;
  text-align: left;
  font: inherit;
  line-height: normal;
  font-size: 17px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

/* Подпись разбора: цвет здесь только усиливает слово, а не заменяет его. */
.quiz-flag {
  flex: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.quiz-option.is-correct .quiz-flag {
  color: var(--mark-money);
}

.quiz-option.is-wrong .quiz-flag {
  color: var(--mark-strange);
}

/* Место под вердикт держится с самого начала, иначе ответ сдвигает пояснение. */
.quiz-status {
  min-height: 1.4em;
  margin: 0 0 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-status.is-correct {
  color: var(--mark-money);
}

.quiz-status.is-wrong {
  color: var(--mark-strange);
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--ink);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option.is-correct {
  border-color: var(--mark-money);
  background: var(--tone-money);
}

.quiz-option.is-wrong {
  border-color: var(--mark-strange);
  background: var(--tone-strange);
}

.quiz-explanation {
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

.quiz-next,
.quiz-restart {
  min-height: 52px;
  padding: 0 26px;
  font: inherit;
  line-height: normal;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  cursor: pointer;
}

.quiz-next:hover,
.quiz-restart:hover {
  opacity: 0.88;
}

.quiz-result {
  max-width: var(--measure);
  margin-top: 32px;
}

.quiz-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.quiz-score b {
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1.05;
}

.quiz-verdict h2 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(23px, 2.4vw, 32px);
  margin: 0 0 12px;
}

.quiz-verdict p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 26px;
  max-width: 62ch;
}

/* ══ Панель состояния ════════════════════════════════ */

.dash {
  padding-bottom: 40px;
}

.dash-head {
  border-bottom: 2px solid var(--ink);
  padding: 30px 0 16px;
  margin-bottom: 30px;
}

.dash-head h1 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0 0 6px;
}

.dash-nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}

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

.num b {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1;
}

.num b span {
  font-size: 0.5em;
  color: var(--ink-3);
}

.num-alert b {
  color: var(--mark-strange);
}

.dash-block {
  margin-bottom: 40px;
}

.dash-block h2 {
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.cluster {
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.cluster-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 150px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.cluster-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.pages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.page:first-child {
  border-top: 0;
}

.page-mark {
  width: 9px;
  height: 9px;
  justify-self: center;
  border: 1.5px solid var(--line);
}

.page-done .page-mark {
  background: var(--mark-money);
  border-color: var(--mark-money);
}

.page-done .page-title {
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-color: var(--line);
}

.pillar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 5px;
  margin-right: 6px;
}

.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 7px;
  margin-right: 4px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  white-space: nowrap;
}

.tag-blocker {
  color: var(--mark-strange);
  border-color: var(--mark-strange);
}

.tag-review {
  color: var(--mark-home);
  border-color: var(--mark-home);
}

.tag-ok {
  color: var(--mark-money);
  border-color: var(--mark-money);
}

.bar {
  display: block;
  position: relative;
  min-width: 140px;
  padding: 3px 0;
}

.bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--line);
}

.bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  background: var(--mark-money);
}

.bar-text {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 0 8px;
}

.issues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.issues > li > ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.issue {
  font-size: 14px;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.issue-rule {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.issue-blocker .issue-rule {
  color: var(--mark-strange);
}

.issue-review .issue-rule {
  color: var(--mark-home);
}

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

  .cluster-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .issue {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ══ Промо вместо рекламы ════════════════════════════ */

.promo {
  display: grid;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

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

.promo-figure {
  display: block;
  overflow: hidden;
}

.promo-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  align-self: center;
}

.promo-title {
  font-family: Prata, Georgia, serif;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.22;
}

.promo:hover .promo-title {
  color: var(--accent);
}

.promo-lead {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* Широкий блок на всю колонку: картинка слева, текст справа */
.promo-wide {
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  margin: 34px 0;
}

.promo-wide .promo-figure {
  aspect-ratio: 16 / 10;
}

/* В боковой колонке блок вертикальный */
.promo-side {
  grid-template-rows: auto minmax(0, 1fr);
}

.promo-side .promo-figure {
  aspect-ratio: 4 / 3;
}

.promo-side .promo-lead {
  display: none;
}

/* Внутри текста статьи — без картинки, только текст */
.promo-inarticle {
  max-width: var(--measure);
  margin: 36px 0;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.promo-inarticle .promo-figure {
  aspect-ratio: 4 / 3;
}

/* В ленте промо занимает ячейку карточки */
.promo-feed {
  grid-template-rows: auto minmax(0, 1fr);
}

.promo-feed .promo-figure {
  aspect-ratio: 4 / 3;
}

.promo-feed .promo-lead {
  display: none;
}

@media (max-width: 700px) {
  .promo-wide,
  .promo-inarticle {
    grid-template-columns: minmax(0, 1fr);
  }

  .promo-wide .promo-figure,
  .promo-inarticle .promo-figure {
    aspect-ratio: 16 / 9;
  }
}
