/* =========================================================================
   dahaka — стиль «Пепел и уголь» (Dark Ember / Investigative Noir)
   Каталог статей. Токены дизайна вынесены в :root — меняйте здесь.
   ========================================================================= */

:root {
  /* Поверхности (по умолчанию — светлая «бумажная» тема) */
  --bg:        #F5F0E7;   /* бумага — основной фон */
  --bg-2:      #EBE4D6;   /* панели */
  --bg-card:   #EFE9DC;   /* карточки */

  /* Текст */
  --ash:       #1C1B18;   /* основной текст */
  --ash-dim:   #57524A;   /* вторичный */
  --ash-faint: #8B857A;   /* приглушённый / мета */

  /* Уголёк — «горячий» акцент (притемнён для контраста на светлом) */
  --ember-1:   #E23E17;
  --ember-2:   #C86A15;

  /* Институциональный синий — «первый уровень» (ЦБ / расчёты) */
  --blue:      #3D5C78;

  --line:      rgba(28, 27, 24, 0.12);
  --line-2:    rgba(28, 27, 24, 0.18);

  /* Тема (по умолчанию светлая); тёмная — в блоке :root[data-theme="dark"] */
  --read:        #2C2924;   /* текст тела статьи */
  --link:        #BC4417;
  --link-line:   rgba(188, 68, 23, 0.38);
  --header-bg:   rgba(245, 240, 231, 0.82);
  --cover-2:     #E2DAC8;
  --shadow-soft: rgba(90, 70, 40, 0.16);
  color-scheme:  light;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-serif:   "Spectral", Georgia, serif;
  --font-sans:    "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
}

/* Тёмная тема («уголь») — включается data-theme="dark" на <html> */
:root[data-theme="dark"] {
  --bg:        #0E0E10;
  --bg-2:      #17181C;
  --bg-card:   #141519;
  --ash:       #E7E3DA;
  --ash-dim:   #A7A29A;
  --ash-faint: #6E6A63;
  --ember-1:   #FF4D2E;
  --ember-2:   #FF9A3C;
  --blue:      #5B7C99;
  --line:      rgba(231, 227, 218, 0.10);
  --line-2:    rgba(231, 227, 218, 0.16);
  --read:        #D8D3C9;
  --link:        #FF9A3C;
  --link-line:   rgba(255, 154, 60, 0.35);
  --header-bg:   rgba(14, 14, 16, 0.72);
  --cover-2:     #0C0D10;
  --shadow-soft: rgba(0, 0, 0, 0.9);
  color-scheme:  dark;
}
:root[data-theme="dark"] .grain { mix-blend-mode: overlay; opacity: 0.04; }

/* --- База ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ash);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

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

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

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

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

:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 4px; }

/* Пепельное зерно поверх всего */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Общие элементы --------------------------------------------------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin: 0 0 1rem;
}

.dot { color: var(--ash-faint); margin-inline: 0.35em; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-2);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash-faint);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.28em 0.75em 0.24em;
  display: inline-flex; align-items: center; gap: 0.5em;
}
.badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ember-1); box-shadow: 0 0 6px 1px rgba(255, 77, 46, 0.6);
}

/* Обугленный разделитель */
.ember-rule {
  height: 1px; border: 0; margin-block: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(90deg, transparent, rgba(255, 90, 40, 0.55) 30%, rgba(255, 154, 60, 0.55) 55%, transparent);
  box-shadow: 0 0 18px -2px rgba(255, 90, 40, 0.35);
  max-width: var(--wrap);
}
.ember-rule--faint { opacity: 0.4; box-shadow: none; }

/* Кнопки */
.btn {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.92rem;
  border-radius: 999px; padding: 0.7em 1.4em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ash); }
.btn--ghost:hover { border-color: var(--ember-2); color: var(--ember-2); }
.btn--ember {
  background: linear-gradient(180deg, var(--ember-2), var(--ember-1));
  color: #180a05; border: none;
}
.btn--ember:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -10px rgba(255, 90, 40, 0.7); }

/* --- Шапка ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 46px; height: 46px; flex: none; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 120, 40, 0.4)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: 0.02em; color: var(--ash);
}
.brand__dot {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.5em;
  letter-spacing: 0.02em; color: var(--ember-2); vertical-align: baseline;
  margin-left: 1px;
}
.brand__tag {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash-faint);
  margin-top: 2px;
}

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.btn--apk { display: inline-flex; align-items: center; gap: 0.5em; }
.btn__icon { width: 1.05em; height: 1.05em; flex: none; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.5em; flex: none;
  padding: 0.6em 1.05em; border-radius: 999px; white-space: nowrap;
  background: transparent; border: 1px solid var(--line-2); color: var(--ash-dim);
  font-family: var(--font-sans); font-size: 0.9rem; line-height: 1; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { color: var(--ember-2); border-color: var(--ember-2); }
.theme-toggle:active { transform: scale(0.97); }
.theme-toggle svg { width: 16px; height: 16px; flex: none; }
.theme-toggle__sun { display: none; }
.theme-toggle__label--to-light { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: inline; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__label--to-light { display: inline; }
:root[data-theme="dark"] .theme-toggle__label--to-dark { display: none; }

/* --- Манифест --------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem) 0; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__text { max-width: 46ch; }
.hero__emblem { position: relative; justify-self: center; }
.hero__emblem img {
  position: relative; z-index: 1; width: min(100%, 420px); height: auto;
  filter: drop-shadow(0 0 45px rgba(255, 90, 40, 0.28));
}
.hero__emblem::before {
  content: ""; position: absolute; inset: -12%; z-index: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 90, 40, 0.22), transparent 62%);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02;
  letter-spacing: -0.01em; margin: 0 0 1.5rem;
  /* лёгкое «прогорание» заголовка снизу в уголёк */
  background: linear-gradient(178deg, var(--ash) 62%, #d98a5a 88%, var(--ember-1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.55; color: var(--ash-dim); max-width: 40ch; margin: 0;
}

/* --- Рубрики ---------------------------------------------------------- */
.rubrics { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--ash-dim); background: transparent;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0.5em 1.1em; cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.chip:hover { color: var(--ash); border-color: var(--ash-faint); }
.chip--active {
  color: #180a05; background: linear-gradient(180deg, var(--ember-2), var(--ember-1));
  border-color: transparent;
}

/* --- Флагманская статья ---------------------------------------------- */
.featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; margin-bottom: clamp(3rem, 7vw, 5rem);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(255, 90, 40, 0.04), transparent 40%), var(--bg-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.featured:hover { border-color: rgba(255, 120, 60, 0.35); box-shadow: 0 24px 70px -40px rgba(255, 90, 40, 0.5); }

.cover {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(120% 110% at 72% 18%, rgba(255, 90, 40, 0.22), transparent 58%),
    linear-gradient(180deg, var(--bg-2), var(--cover-2));
  display: grid; place-items: center;
}
.cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { /* тлеющая полоса у нижней кромки */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255, 77, 46, 0.14));
}
.cover__surface {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--ash) 52%, #e0955f 78%, var(--ember-1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative; z-index: 1;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.cover__under {
  position: absolute; z-index: 1; bottom: 14%;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--blue);
  opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease;
}
/* Жест «сорвать маску»: поверхность прогорает вверх, обнажая нижний слой */
.featured:hover .cover__surface { transform: translateY(-8%); filter: brightness(1.05); }
.featured:hover .cover__under { opacity: 0.75; transform: translateY(0); }

.featured__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.05;
  margin: 0.8rem 0 1rem; color: var(--ash);
}
.featured__dek {
  font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.6;
  color: var(--ash-dim); margin: 0 0 1.5rem;
}

.card__meta { display: flex; align-items: center; flex-wrap: wrap; margin: 0 0 0.4rem; color: var(--ash-faint); font-size: 0.82rem; }

.byline { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ash-faint); margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.1rem; }
.read-more { color: var(--ember-2); margin-left: auto; padding-left: 1rem; transition: transform 0.25s ease; }
.featured:hover .read-more { transform: translateX(4px); }

/* --- Сетка карточек --------------------------------------------------- */
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; min-height: 240px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before { /* уголёк прогорает по верхней кромке слева направо */
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--ember-1), var(--ember-2));
  transition: width 0.5s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 120, 60, 0.32);
  box-shadow: 0 18px 50px -30px rgba(255, 90, 40, 0.55);
}
.card:hover::before { width: 100%; }

.card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.4rem; line-height: 1.12; margin: 0.5rem 0 0.7rem;
  color: var(--ash); transition: color 0.25s ease;
}
.card:hover .card__title { color: var(--ember-2); }
.card__dek { font-family: var(--font-serif); font-size: 0.98rem; line-height: 1.55; color: var(--ash-dim); margin: 0 0 1.25rem; }
.card__foot { margin: auto 0 0; }

/* --- Подписка --------------------------------------------------------- */
.subscribe {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-block: 1px solid var(--line);
  background: radial-gradient(90% 140% at 15% 0%, rgba(255, 90, 40, 0.08), transparent 55%);
}
.subscribe__inner {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  align-items: center; justify-content: space-between;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.subscribe__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 0.6rem; }
.subscribe__text { color: var(--ash-dim); font-family: var(--font-serif); margin: 0; max-width: 46ch; }
.subscribe__form { display: flex; gap: 0.6rem; flex: 1 1 320px; max-width: 460px; }
.input {
  flex: 1; font-family: var(--font-sans); font-size: 0.95rem;
  color: var(--ash); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.75em 1.2em;
}
.input::placeholder { color: var(--ash-faint); }
.input:focus { outline: none; border-color: var(--ember-2); }

/* --- Подвал ----------------------------------------------------------- */
.site-footer { padding-block: 3.5rem 4rem; color: var(--ash-faint); }
.site-footer__motto {
  text-align: center; margin: 0;
  font-family: "Noto Serif Devanagari", var(--font-serif), serif;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem); line-height: 1.4;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #e7b24d, #d9982e 60%, var(--ember-1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-footer__gloss {
  display: block; margin-top: 0.9rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--ash-faint); -webkit-text-fill-color: var(--ash-faint);
}
.site-footer__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem;
  margin-top: 2.75rem; padding-top: 2.25rem; border-top: 1px solid var(--line);
}
.site-footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.site-footer__mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 8px rgba(255, 120, 40, 0.3)); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer__nav a { font-size: 0.9rem; color: var(--ash-dim); transition: color 0.2s ease; }
.site-footer__nav a:hover { color: var(--ember-2); }
.site-footer__note { margin: 0 0 0 auto; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; }

/* --- Адаптив ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__emblem { display: none; }
  .featured { grid-template-columns: 1fr; }
  .cover { aspect-ratio: 16 / 9; order: -1; }
}
@media (max-width: 900px) {
  .theme-toggle__label { display: none !important; }
  .theme-toggle { padding: 0.5em; }
}
@media (max-width: 720px) {
  .brand__tag { display: none; }
}
@media (max-width: 560px) {
  .btn--apk { padding: 0.55em 0.95em; font-size: 0.82rem; white-space: normal; }
  .site-footer__note { margin-left: 0; width: 100%; }
}

/* =========================================================================
   Страница статьи (article.html)
   ========================================================================= */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--ember-1), var(--ember-2));
  box-shadow: 0 0 12px rgba(255, 90, 40, 0.5);
}

.article__wrap { max-width: 64rem; margin-inline: auto; padding-inline: var(--pad); }

.article__head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; }
.back-link {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.05em;
  color: var(--ash-dim); display: inline-flex; align-items: center; gap: 0.4em;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--ember-2); }
.article__meta {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--ash-dim); margin: 1.75rem 0 0.75rem; text-transform: uppercase;
}
.article__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); line-height: 1.03;
  letter-spacing: -0.01em; margin: 0 0 1.1rem;
  background: linear-gradient(178deg, var(--ash) 68%, #d98a5a 90%, var(--ember-1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article__dek {
  font-family: var(--font-serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.5; color: var(--ash-dim); margin: 0 0 1.75rem;
}
.article__byline {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em;
  color: var(--ash-faint); margin: 0; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Обложка-иллюстрация */
.article__cover {
  margin: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.article__cover img { display: block; width: 100%; height: auto; }

/* Иллюстрация внутри тезиса */
.fig {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 clamp(2rem, 4.5vw, 2.75rem);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.fig img { display: block; width: 100%; height: auto; }

/* Тело */
.article__body {
  font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.78;
  color: var(--read);
}
.article__body p { margin: 0 0 1.5rem; }
.article__body a {
  color: var(--link); text-decoration: none;
  border-bottom: 1px solid var(--link-line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.article__body a:hover { color: var(--ember-1); border-color: var(--ember-1); }
.article__body strong { color: var(--ash); font-weight: 600; }

.article__lead { font-size: 1.5rem; line-height: 1.58; color: var(--ash); }
.article__lead::first-letter {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3.6em; line-height: 0.8; float: left; margin: 0.04em 0.1em 0 0;
  background: linear-gradient(180deg, var(--ember-2), var(--ember-1));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Тезис */
.thesis {
  display: flex; gap: 1.1rem; align-items: baseline;
  margin: clamp(3rem, 7vw, 4.5rem) 0 1.6rem; padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.thesis__num {
  font-family: var(--font-mono); font-weight: 500; font-size: 1rem;
  letter-spacing: 0.04em; color: var(--ember-2); flex: none;
}
.thesis__text { min-width: 0; }
.thesis__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.15;
  color: var(--ash); margin: 0;
}
.thesis__sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.14rem; line-height: 1.42; color: var(--ash-dim);
  margin: 0.6rem 0 0;
}
.thesis__sub--loose { margin: 1rem 0 1.35rem; }

/* Уведомление-интро */
.notification {
  display: grid; gap: 0.35rem; margin: 2rem 0; padding: 1.15rem 1.35rem;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--bg-2);
  box-shadow: 0 14px 45px -28px var(--shadow-soft);
}
.notification__app {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ash-faint);
}
.notification__body { font-family: var(--font-sans); font-size: 1.12rem; font-weight: 500; color: var(--ash); }

/* Пуллкот */
blockquote.pull {
  margin: clamp(2rem, 5vw, 2.75rem) 0; padding-left: 1.5rem;
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, var(--ember-1), var(--ember-2)) 1;
}
blockquote.pull p {
  font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.32; color: var(--ash); margin: 0;
}
blockquote.pull strong { font-weight: 500; color: var(--ash); }

/* Списки */
.list { margin: 0 0 1.5rem; padding-left: 1.25rem; }
.list li { margin-bottom: 0.6rem; padding-left: 0.4rem; }
.list li::marker { color: var(--ember-2); }

/* Финальная секция вопросов */
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ash);
  margin: clamp(3rem, 7vw, 4.5rem) 0 1.75rem; padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.qlist { counter-reset: q; list-style: none; margin: 0 0 2rem; padding: 0; }
.qlist li {
  counter-increment: q; position: relative; padding-left: 3rem;
  margin-bottom: 1.15rem; font-size: 1.2rem; color: var(--ash);
}
.qlist li::before {
  content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 1rem; font-weight: 500; padding-top: 0.15em;
  color: var(--ember-2);
}

.article-end {
  margin-top: clamp(3rem, 7vw, 4.5rem); padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
}
.article__colophon {
  margin: 1.75rem 0 0;
  font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.6;
  letter-spacing: 0.02em; color: var(--ash-faint); max-width: 64ch;
}

/* P.S. — приложение о том, кто стоит над банками */
.postscript {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--ember-1), var(--ember-2)) 1;
}
.ps__label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ember-2); margin: 0 0 0.75rem;
}
.ps__heading {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.06;
  color: var(--ash); margin: 0 0 0.5rem;
}
.ps__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem); line-height: 1.2;
  color: var(--ash); margin: clamp(2rem, 4vw, 2.75rem) 0 0.9rem;
}
.postscript p { font-size: 1.15rem; line-height: 1.7; color: var(--read); margin: 0 0 1.2rem; }

/* Таблица с данными */
.table-wrap {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.table-wrap table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 0.95rem; }
.table-wrap th, .table-wrap td { padding: 0.7em 0.9em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ember-2); background: var(--bg-2); white-space: nowrap;
}
.table-wrap tbody td { color: var(--read); }
.table-wrap tbody td:first-child { color: var(--ash); font-weight: 500; white-space: nowrap; }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap tbody tr:hover td { background: rgba(255, 120, 60, 0.045); }

@media (max-width: 560px) {
  .thesis { gap: 0.8rem; }
  .article__body { font-size: 1.14rem; }
  .article-end { flex-direction: column; align-items: flex-start; }
}

/* --- Уважение к настройкам движения ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .cover__under { opacity: 0.55; transform: none; }
}
