/* ============================================================================
   tehnoreview.ru — дизайн-система «ARGENTUM»
   Анодированный алюминий, стекло, холодный студийный свет.
   Ванильный CSS. Без сборки, без зависимостей. Токены → материалы → компоненты.
   Спецификация: docs/03-design-system.md
   ========================================================================== */

/* ============ 0. Шрифты ==================================================== */

@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrainsmono-cyrillic.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrainsmono-latin.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ 1. Токены ==================================================== */

:root {
  /* — Шрифтовые стеки — */
  --f-sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* — Типографическая шкала (флюидная) — */
  --t-mega:  clamp(2.6rem, 1.35rem + 5.6vw, 6.75rem);
  --t-h1:    clamp(2.05rem, 1.35rem + 3.1vw, 4.05rem);
  --t-h2:    clamp(1.5rem, 1.14rem + 1.6vw, 2.4rem);
  --t-h3:    clamp(1.12rem, 1.02rem + .45vw, 1.4rem);
  --t-lead:  clamp(1.06rem, 1rem + .38vw, 1.3rem);
  --t-body:  clamp(1rem, .97rem + .16vw, 1.075rem);
  --t-sm:    .875rem;
  --t-xs:    .8125rem;
  --t-label: .6875rem;

  /* — Ритм (шаг 4px) — */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* — Геометрия — */
  --container: 1280px;
  --container-wide: 1480px;
  --measure: 68ch;
  --gutter: clamp(16px, 1.2vw + 12px, 28px);
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --header-h: 68px;
  --hair: 1px;

  /* — Движение — */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-io:  cubic-bezier(.65, 0, .35, 1);
  --d-micro: 130ms;
  --d-base: 260ms;
  --d-enter: 620ms;
  --d-hero: 900ms;
}

/* — СВЕТЛОЕ СЕРЕБРО (основная тема) ————————————————————————————————————
   Не «белый блог», а анодированный алюминий: холодная светлая база,
   белое стекло панелей, графитовые волосяные линии, полированный хром
   в крупной типографике. Тёмная тема — по переключателю, не по умолчанию. */
:root, :root[data-theme="light"] {
  color-scheme: light;

  --bg:        #e7eaf0;   /* базовая плоскость — алюминий */
  --bg-raise:  #ffffff;   /* поднятые поверхности — стекло */
  --bg-sunk:   #dcdfe6;   /* утопленные — тень в металле */

  --ink-100:   #0b0e14;   /* основной текст   — 16.9:1 к --bg */
  --ink-200:   #262c36;   /* вторичный текст  — 12.1:1 */
  --ink-300:   #545d6d;   /* приглушённый     —  5.5:1 */
  --ink-400:   #656d7b;   /* служебный        —  4.6:1 (мелкие моно-метки) */

  --line:        rgba(11, 14, 20, .10);
  --line-strong: rgba(11, 14, 20, .21);
  --line-bright: rgba(11, 14, 20, .40);

  --accent:      #0a6d8e;   /* холодная сталь — 5.5:1 к --bg */
  --accent-deep: #05516c;
  --accent-ink:  #ffffff;
  --accent-glow: rgba(10, 109, 142, .22);

  --good: #0d7a4c;   /* 5.1:1 */
  --bad:  #b3213a;   /* 5.9:1 */
  --warn: #8a5605;   /* 5.4:1 */

  /* Стекло */
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,255,255,.60));
  --glass-bg-hi: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.82));
  --glass-blur: blur(18px) saturate(128%);
  --glass-shadow: 0 1px 0 0 rgba(255,255,255,.95) inset,
                  0 22px 52px -30px rgba(14, 20, 32, .34);
  --glass-fallback: #fafbfc;

  /* Полированный хром для крупной типографики.
     Угол строго вертикальный: на широких строках наклон превращает
     градиент в диагональ и слово «выцветает» к правому краю. */
  --chrome: linear-gradient(180deg,
              #4c5663 0%, #10151d 22%, #57616f 44%,
              #0c1118 57%, #454f5d 78%, #0f141c 100%);
  --chrome-fallback: #0f141c;

  /* Кинематографический слой — свет ПАДАЕТ на металл, а не пачкает его:
     светлые пятна кладутся поверх базы, тень даёт только виньетка. */
  --cin-1: 255, 255, 255;   /* ключевой свет */
  --cin-2: 226, 237, 252;   /* холодная заливка */
  --cin-3: 198, 216, 244;   /* серебряный контровой */
  --cin-alpha: .46;         /* множитель яркости источников */
  --cin-opacity: .95;
  --cin-blend: normal;
  --grain-opacity: .04;
  --grain-blend: multiply;
  /* Постоянная светотень: свет сверху, металл тяжелеет книзу */
  --vignette:
    radial-gradient(96% 58% at 50% -10%, rgba(255, 255, 255, .78), transparent 62%),
    linear-gradient(180deg, transparent 44%, rgba(104, 122, 152, .20) 100%),
    radial-gradient(134% 100% at 50% 0%, transparent 40%, rgba(16, 24, 40, .15) 100%);
}

/* — ТЁМНАЯ КАМЕРА (по переключателю) — */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:        #0b0d13;
  --bg-raise:  #12151d;
  --bg-sunk:   #07090d;

  --ink-100:   #f4f6fa;   /* 17.4:1 */
  --ink-200:   #cdd4e0;   /* 12.1:1 */
  --ink-300:   #a3adbc;   /*  7.6:1 (и 6.4:1 к самой светлой точке фона) */
  --ink-400:   #8b94a3;   /*  5.5:1 (и 4.6:1 к самой светлой точке фона) */

  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --line-bright: rgba(255, 255, 255, .36);

  --accent:      #6ee7ff;   /* 10.6:1 */
  --accent-deep: #2ea8d8;
  --accent-ink:  #04252f;
  --accent-glow: rgba(110, 231, 255, .30);

  --good: #63e3a4;
  --bad:  #ff7b8f;
  --warn: #ffcf7a;

  --glass-bg: linear-gradient(180deg, rgba(255,255,255,.058), rgba(255,255,255,.016));
  --glass-bg-hi: linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.03));
  --glass-blur: blur(20px) saturate(135%);
  --glass-shadow: 0 1px 0 0 rgba(255,255,255,.07) inset,
                  0 28px 70px -34px rgba(0,0,0,.9);
  --glass-fallback: #12151d;

  --chrome: linear-gradient(180deg,
              #ffffff 0%, #e6ecf6 24%, #aeb9c9 46%,
              #808b9c 57%, #d8e2ef 78%, #ffffff 100%);
  --chrome-fallback: #eef2f8;

  --cin-1: 128, 198, 255;
  --cin-2: 96, 120, 190;
  --cin-3: 200, 214, 240;
  --cin-alpha: 1;
  --cin-opacity: .50;
  --cin-blend: normal;
  --grain-opacity: .055;
  --grain-blend: overlay;
  --vignette:
    radial-gradient(96% 58% at 50% -12%, rgba(150, 190, 235, .10), transparent 62%),
    radial-gradient(125% 95% at 50% 6%, transparent 36%, rgba(0, 0, 0, .62) 100%);
}

/* ============ 2. База ====================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s5));
}

body {
  font-family: var(--f-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-200);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
  min-height: 100vh;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-sans);
  color: var(--ink-100);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); font-weight: 650; line-height: 1.1;  letter-spacing: -.026em; }
h3 { font-size: var(--t-h3); font-weight: 620; line-height: 1.28; letter-spacing: -.014em; }
h4 { font-size: var(--t-body); font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }

a { color: inherit; text-decoration: none; }
/* Подчёркивание — только у текстовых ссылок. Кнопки и карточки исключены:
   иначе внутри .prose подчёркиваются подписи на кнопках. */
p a:not(.btn), li a:not(.btn), .prose a:not(.btn):not(.card):not(.cat-row) {
  color: var(--ink-100);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color var(--d-micro) var(--e-out), text-decoration-color var(--d-micro) var(--e-out);
}
p a:not(.btn):hover, li a:not(.btn):hover, .prose a:not(.btn):not(.card):not(.cat-row):hover {
  color: var(--accent); text-decoration-color: currentColor;
}

strong, b { font-weight: 650; color: var(--ink-100); }
code, kbd { font-family: var(--f-mono); font-size: .92em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
::selection { background: var(--accent); color: var(--accent-ink); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-sunk); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 3px solid var(--bg-sunk); }
::-webkit-scrollbar-thumb:hover { background: var(--line-bright); }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 200;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink); font-weight: 650;
  transition: top var(--d-base) var(--e-out);
}
.skip-link:focus { top: var(--s4); }

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

/* ============ 3. Кинематографический фоновый слой ========================== */
/* Стек снизу вверх: холст → анаморфный блик → приборная сетка → зерно → виньетка */

.cinema {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: layout paint style;
  overflow: hidden;
}
.cinema > * { position: absolute; inset: 0; }

/* 3.1 Световое поле — canvas в низком разрешении, растянутый и размытый */
.cinema__field {
  width: 100%; height: 100%;
  opacity: var(--cin-opacity);
  mix-blend-mode: var(--cin-blend);
  filter: blur(42px);
  transform: scale(1.14);          /* прячем края размытия */
  transform-origin: center;
}

/* 3.2 Анаморфный горизонтальный блик */
.cinema__flare {
  height: 42vh; top: 6vh; bottom: auto;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(var(--cin-3), .00) 12%,
      rgba(var(--cin-3), .13) 38%,
      rgba(var(--cin-1), .20) 50%,
      rgba(var(--cin-3), .13) 62%,
      rgba(var(--cin-3), .00) 88%,
      transparent 100%);
  filter: blur(46px);
  opacity: .55;
  mix-blend-mode: var(--cin-blend);
  animation: flare-drift 34s var(--e-io) infinite alternate;
}
@keyframes flare-drift {
  from { transform: translate3d(-6%, 0, 0) scaleY(.82); opacity: .38; }
  to   { transform: translate3d(6%, 3vh, 0) scaleY(1.12); opacity: .62; }
}

/* 3.3 Приборная координатная сетка */
.cinema__grid {
  background-image:
    linear-gradient(to right,  var(--line) 0 var(--hair), transparent var(--hair)),
    linear-gradient(to bottom, var(--line) 0 var(--hair), transparent var(--hair));
  background-size: 92px 92px;
  opacity: .55;
  -webkit-mask-image: radial-gradient(115% 85% at 50% 0%, #000 12%, transparent 78%);
          mask-image: radial-gradient(115% 85% at 50% 0%, #000 12%, transparent 78%);
  transform: translate3d(0, calc(var(--scroll-y, 0) * -.035px), 0);
}

/* 3.4 Плёночное зерно (SVG feTurbulence, запечённый в data-URI) */
.cinema__grain {
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-shift 1s steps(1) infinite;   /* «24 кадра» — дискретный сдвиг */
}
@keyframes grain-shift {
  0%   { background-position: 0 0; }
  12%  { background-position: -22px 14px; }
  25%  { background-position: 17px -9px; }
  37%  { background-position: -9px -21px; }
  50%  { background-position: 24px 11px; }
  62%  { background-position: -17px 22px; }
  75%  { background-position: 11px -16px; }
  87%  { background-position: -24px -6px; }
  100% { background-position: 0 0; }
}

/* 3.5 Виньетка */
.cinema__vignette { background: var(--vignette); }

/* Всё содержимое живёт над кинослоем */
.site-header, main, .site-footer, .reading-bar { position: relative; z-index: 1; }

/* ============ 4. Раскладка ================================================= */

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(var(--s7), 6vw, var(--s10)); }
.section--tight { padding-block: clamp(var(--s6), 4vw, var(--s8)); }

/* Заголовок секции с приборной меткой и линейкой до края */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: var(--s4);
  margin-bottom: clamp(var(--s5), 3vw, var(--s7));
  padding-bottom: var(--s4);
  border-bottom: var(--hair) solid var(--line);
}
.section-head__index {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: .45em;
  white-space: nowrap;
}
.section-head__title { grid-column: 1 / -1; grid-row: 2; }
.section-head h2 { margin: 0; }
.section-head__link {
  font-family: var(--f-mono);
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-300);
  white-space: nowrap;
  padding-bottom: .45em;
  transition: color var(--d-micro) var(--e-out);
}
.section-head__link:hover { color: var(--accent); }
@media (max-width: 640px) {
  .section-head { grid-template-columns: 1fr auto; }
}

/* Метка-надстрочник */
.label {
  display: inline-flex; align-items: center; gap: .65em;
  font-family: var(--f-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.label::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent-glow);
  flex: none;
}
.label--plain::before { display: none; }

/* Хромированный текст */
.chrome {
  background-image: var(--chrome);
  -webkit-background-clip: text;
          background-clip: text;
  color: var(--chrome-fallback);
  background-size: 100% 220%;
  background-position: 0 var(--chrome-pos, 30%);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome { color: transparent; -webkit-text-fill-color: transparent; }
}

.rule { height: var(--hair); background: var(--line); border: 0; }

/* ============ 5. Шапка ===================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: var(--hair) solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  transition: background var(--d-base) var(--e-out), border-color var(--d-base) var(--e-out);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--glass-fallback); }
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom-color: var(--line-strong);
}

.header-row {
  display: flex; align-items: center; gap: var(--s5);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; padding-block: 7px; }
.brand__mark {
  position: relative;
  display: grid; place-items: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 7px;
  border: var(--hair) solid var(--line-strong);
  background: var(--glass-bg-hi);
  overflow: hidden;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,.42), transparent 46%);
}
.brand__mark svg { width: 15px; height: 15px; color: var(--ink-100); position: relative; z-index: 1; }
.brand__name {
  font-size: 1.02rem; font-weight: 680; letter-spacing: -.028em;
  color: var(--ink-100); white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--ink-300); font-weight: 450; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: var(--s3); }
.nav a {
  position: relative;
  padding: 9px 13px;
  font-size: var(--t-sm); font-weight: 500;
  color: var(--ink-300);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--d-micro) var(--e-out), background var(--d-micro) var(--e-out);
}
.nav a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px;
  height: var(--hair); background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-base) var(--e-out);
}
.nav a:hover { color: var(--ink-100); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink-100); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: var(--s2); }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border-radius: var(--r-sm);
  border: var(--hair) solid var(--line);
  background: var(--glass-bg);
  color: var(--ink-200);
  cursor: pointer;
  transition: border-color var(--d-micro) var(--e-out), color var(--d-micro) var(--e-out),
              background var(--d-micro) var(--e-out);
}
.icon-btn:hover { border-color: var(--line-bright); color: var(--ink-100); background: var(--glass-bg-hi); }
.icon-btn svg { width: 17px; height: 17px; }
/* На тач-экранах доводим до рекомендованных 44px */
@media (pointer: coarse) {
  .icon-btn { width: 44px; height: 44px; }
}
.icon-btn .ico-sun { display: none; }
:root[data-theme="light"] .icon-btn .ico-sun { display: block; }
:root[data-theme="light"] .icon-btn .ico-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .icon-btn .ico-sun { display: block; }
  :root:not([data-theme]) .icon-btn .ico-moon { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    display: none; flex-direction: column; align-items: stretch;
    gap: 0; margin: 0; padding: var(--s3) var(--gutter) var(--s5);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border-bottom: var(--hair) solid var(--line-strong);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .nav { -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 15px 4px; font-size: 1.05rem; font-weight: 550;
    border-bottom: var(--hair) solid var(--line);
    border-radius: 0;
  }
  .nav a::after { left: 4px; right: auto; width: 22px; bottom: 10px; }
  .nav-toggle { display: grid; }
}

/* Полоса прогресса чтения */
.reading-bar {
  position: fixed; top: 0; left: 0; z-index: 70;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 90ms linear;
}

/* ============ 6. Материалы: стекло и металл ================================ */

.glass {
  position: relative;
  background: var(--glass-bg);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .glass { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-fallback); }
}

/* Световая кромка: блик, будто свет цепляет обработанный край */
.glass::before {
  content: ""; position: absolute; inset-inline: 12%; top: 0; height: var(--hair);
  background: linear-gradient(90deg, transparent, var(--line-bright), transparent);
  opacity: .9;
  transition: inset-inline var(--d-base) var(--e-out), opacity var(--d-base) var(--e-out);
  pointer-events: none;
}
.glass:hover::before { inset-inline: 2%; opacity: 1; }

/* Блик, следящий за курсором (координаты ставит JS) */
.sheen { position: relative; overflow: hidden; isolation: isolate; }
.sheen::after {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255,255,255,.10), transparent 62%);
  opacity: 0;
  transition: opacity var(--d-base) var(--e-out);
  pointer-events: none;
}
.sheen:hover::after, .sheen:focus-within::after { opacity: 1; }
:root[data-theme="light"] .sheen::after {
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
              rgba(11,111,150,.10), transparent 62%);
}

/* ============ 7. Кнопки, плашки, чипы ====================================== */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: var(--hair) solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-sans); font-size: var(--t-sm); font-weight: 600;
  letter-spacing: -.005em;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform var(--d-micro) var(--e-out), border-color var(--d-base) var(--e-out),
              background var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px) scale(.995); }

.btn--primary {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 100%, white 8%), var(--accent) 55%, var(--accent-deep));
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.34) inset, 0 12px 34px -14px var(--accent-glow);
}
/* Световой прогон по кнопке */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.55) 50%, transparent 68%);
  transform: translateX(-115%);
  transition: transform 720ms var(--e-out);
}
.btn--primary:hover::after { transform: translateX(115%); }

.btn--ghost {
  background: var(--glass-bg);
  border-color: var(--line-strong);
  color: var(--ink-100);
}
.btn--ghost:hover { border-color: var(--line-bright); background: var(--glass-bg-hi); }

.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: var(--t-body); }

/* Плашка типа материала — приборная метка, не эмодзи */
.tag {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill);
  border: var(--hair) solid var(--line-strong);
  background: var(--glass-bg);
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-200);
  white-space: nowrap;
}
.tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: currentColor; flex: none;
}
.tag--test     { color: var(--good); border-color: color-mix(in srgb, var(--good) 34%, transparent); }
.tag--analytic { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 34%, transparent); }
.tag--guide    { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 34%, transparent); }

/* Чип-оценка */
.score-chip {
  display: inline-flex; align-items: baseline; gap: 3px;
  font-family: var(--f-mono); font-weight: 600;
  font-size: var(--t-sm); color: var(--ink-100);
  font-variant-numeric: tabular-nums;
}
.score-chip small { font-size: .72em; color: var(--ink-400); font-weight: 400; }

/* ============ 8. Hero ====================================================== */

.hero {
  position: relative;
  padding-block: clamp(var(--s7), 8vh, 120px) clamp(var(--s6), 5vh, var(--s8));
  min-height: min(82vh, 820px);
  display: flex; align-items: center;
}
.hero__inner { width: 100%; }

.hero__eyebrow { margin-bottom: var(--s5); }

.hero h1 {
  font-size: var(--t-mega);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.045em;
  max-width: 15ch;
  margin-bottom: var(--s5);
}
.hero h1 .ln { display: block; }
.hero h1 .dim { color: var(--ink-400); -webkit-text-fill-color: var(--ink-400); }

.hero__dek {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-300);
  max-width: 46ch;
  margin-bottom: var(--s6);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Приборная лента показателей под hero */
/* Ячейки прозрачные: световое поле должно проходить насквозь, иначе
   лента читается как чужеродная плашка поверх фона. */
.readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(var(--s6), 5vh, var(--s8));
  border-block: var(--hair) solid var(--line);
}
.readout__cell {
  padding: var(--s5) var(--s4);
  border-inline-start: var(--hair) solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.readout__cell:first-child { border-inline-start: 0; padding-inline-start: 0; }
.readout__num {
  font-family: var(--f-mono); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem);
  font-weight: 300; color: var(--ink-100); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.readout__num sup { font-size: .5em; color: var(--accent); vertical-align: super; font-weight: 500; }
.readout__cap {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400);
  line-height: 1.4;
}
@media (max-width: 760px) {
  .readout { grid-template-columns: repeat(2, 1fr); }
  .readout__cell:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .readout__cell:nth-child(n+3) { border-top: var(--hair) solid var(--line); }
}

/* Декоративная колонная сетка в hero (швейцарский маркер) */
.hero__rules {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  display: grid; grid-template-columns: repeat(6, 1fr);
  max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 8%, #000 55%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 8%, #000 55%, transparent 92%);
}
.hero__rules span { border-left: var(--hair) solid var(--line); }
.hero__rules span:last-child { border-right: var(--hair) solid var(--line); }
@media (max-width: 760px) { .hero__rules { grid-template-columns: repeat(3, 1fr); } }

/* ============ 9. Карточки материалов ======================================= */

.grid { display: grid; gap: var(--s5); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--feature { grid-template-columns: 1.35fr 1fr; }
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--feature { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r-md);
  border: var(--hair) solid var(--line);
  background: var(--glass-bg);
  overflow: hidden;
  transition: border-color var(--d-base) var(--e-out), transform var(--d-base) var(--e-out);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:focus-within { border-color: var(--accent); }
.card > a { display: flex; flex-direction: column; height: 100%; }

.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 100% at 30% 0%, rgba(var(--cin-3), .10), transparent 62%),
    linear-gradient(158deg, var(--bg-raise), var(--bg-sunk));
  display: grid; place-items: center;
  overflow: hidden;
  border-bottom: var(--hair) solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media::after {          /* засечки шкалы по нижней кромке кадра */
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 var(--hair), transparent var(--hair) 16px);
  opacity: .8;
}
/* Пока фотографий нет, кадр — не пустая заливка, а техническое поле:
   координатная сетка с растворяющимися краями и подпись в рамке. */
.card__media:has(.card__ph)::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  var(--line) 0 var(--hair), transparent var(--hair)),
    linear-gradient(to bottom, var(--line) 0 var(--hair), transparent var(--hair));
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(74% 74% at 50% 50%, #000 8%, transparent 76%);
          mask-image: radial-gradient(74% 74% at 50% 50%, #000 8%, transparent 76%);
}
.card__ph {
  position: relative; z-index: 1;
  padding: 6px 13px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg-raise) 62%, transparent);
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400);
}
.card__badge { position: absolute; top: var(--s3); left: var(--s3); z-index: 2; }
.card__score {
  position: absolute; top: var(--s3); right: var(--s3); z-index: 2;
  display: grid; place-items: center;
  min-width: 46px; height: 32px; padding-inline: 9px;
  border-radius: var(--r-sm);
  border: var(--hair) solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  font-family: var(--f-mono); font-size: var(--t-sm); font-weight: 600;
  color: var(--ink-100); font-variant-numeric: tabular-nums;
}
@supports (backdrop-filter: blur(1px)) { .card__score { backdrop-filter: blur(10px); } }

.card__body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; min-width: 0; }
/* Флекс-колонка растягивает детей по ширине — пилюли должны остаться по контенту */
.card__body > .tag, .card__body > .label { align-self: flex-start; }
.card__title {
  font-size: var(--t-h3); font-weight: 600; line-height: 1.26; letter-spacing: -.018em;
  color: var(--ink-100);
  transition: color var(--d-micro) var(--e-out);
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt { font-size: var(--t-sm); color: var(--ink-300); line-height: 1.55; }
.card__meta {
  margin-top: auto; padding-top: var(--s3);
  border-top: var(--hair) solid var(--line);
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400);
}

/* Крупная карточка-фича: на десктопе кадр и текст стоят рядом, а не
   друг под другом — иначе пустой кадр занимает пол-экрана. */
.card--feature .card__title { font-size: clamp(1.35rem, 1rem + 1.5vw, 1.95rem); letter-spacing: -.03em; line-height: 1.14; }
.card--feature .card__body { padding: clamp(var(--s5), 2.4vw, var(--s6)); gap: var(--s4); }

@media (min-width: 981px) {
  .card--feature > a { display: grid; grid-template-columns: 1.04fr .96fr; }
  .card--feature .card__media {
    aspect-ratio: auto; height: 100%; min-height: 320px;
    border-bottom: 0; border-inline-end: var(--hair) solid var(--line);
  }
  .card--feature .card__body { justify-content: center; }
}

/* Компактная карточка-строка: миниатюра слева, текст справа.
   Держит колонку-компаньон низкой, чтобы блок не разъезжался по высоте. */
.card--row > a { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
/* Ширину задаёт колонка сетки, высоту — строка. aspect-ratio здесь
   вреден: он пересчитывал ширину из высоты и наезжал на текст. */
.card--row .card__media {
  aspect-ratio: auto; width: 100%; height: 100%; min-height: 116px;
  border-bottom: 0; border-inline-end: var(--hair) solid var(--line);
}
.card--row .card__media::after { display: none; }
.card--row .card__ph { font-size: 9px; letter-spacing: .12em; padding: 4px 9px; }
.card--row .card__body { padding: var(--s4); gap: var(--s2); }
.card--row .card__title { font-size: var(--t-body); line-height: 1.32; }
.card--row .card__meta { padding-top: var(--s2); }
@media (max-width: 460px) {
  .card--row > a { grid-template-columns: 96px minmax(0, 1fr); }
  .card--row .card__ph { display: none; }
}

/* ============ 10. Строки категорий (швейцарский список) ==================== */

.cat-list { border-top: var(--hair) solid var(--line); }
.cat-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto 26px;
  align-items: center;
  gap: var(--s4);
  padding: clamp(15px, 1.6vw, 21px) var(--s3) clamp(15px, 1.6vw, 21px) 0;
  border-bottom: var(--hair) solid var(--line);
  color: var(--ink-200);
  overflow: hidden;
  transition: color var(--d-base) var(--e-out), padding-left var(--d-base) var(--e-out);
}
.cat-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-enter) var(--e-out);
}
.cat-row:hover, .cat-row:focus-visible { color: var(--ink-100); padding-left: var(--s4); }
.cat-row:hover::before { transform: scaleX(1); }
.cat-row__idx {
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .1em; color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.cat-row:hover .cat-row__idx { color: var(--accent); }
.cat-row__name {
  font-size: clamp(1.1rem, .9rem + 1vw, 1.7rem);
  font-weight: 550; letter-spacing: -.025em; color: inherit;
}
.cat-row__note {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400);
  text-align: right;
}
.cat-row__arrow {
  display: grid; place-items: center; width: 26px; height: 26px;
  color: var(--ink-400);
  transform: translateX(-6px); opacity: 0;
  transition: transform var(--d-base) var(--e-out), opacity var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
}
.cat-row__arrow svg { width: 17px; height: 17px; }
.cat-row:hover .cat-row__arrow, .cat-row:focus-visible .cat-row__arrow {
  transform: translateX(0); opacity: 1; color: var(--accent);
}
@media (max-width: 620px) {
  .cat-row { grid-template-columns: 40px 1fr 22px; gap: var(--s3); }
  .cat-row__note { display: none; }
  .cat-row__arrow { opacity: .5; transform: none; }
}

/* ============ 11. Приборная панель доверия ================================= */

.panel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--hair); background: var(--line);
  border: var(--hair) solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
}
@media (max-width: 860px) { .panel-grid { grid-template-columns: 1fr; } }
.panel {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  padding: clamp(var(--s5), 2.6vw, var(--s6));
  display: flex; flex-direction: column; gap: var(--s3);
}
@supports (backdrop-filter: blur(1px)) { .panel { backdrop-filter: var(--glass-blur); } }
.panel__idx {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .18em; color: var(--accent);
}
.panel h3 { margin-bottom: 2px; }
.panel p { font-size: var(--t-sm); color: var(--ink-300); line-height: 1.58; }

/* ============ 12. Полоса-манифест ========================================== */

.manifest {
  border-block: var(--hair) solid var(--line);
  padding-block: clamp(var(--s7), 8vw, var(--s9));
  text-align: center;
}
.manifest__quote {
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem);
  font-weight: 350; line-height: 1.22; letter-spacing: -.03em;
  color: var(--ink-100);
  max-width: 22ch; margin-inline: auto; text-wrap: balance;
}
.manifest__quote b { font-weight: 650; }
.manifest__sig { margin-top: var(--s5); }

/* ============ 13. Страница материала ======================================= */

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400);
  padding-block: var(--s5) 0;
}
.breadcrumbs a { color: var(--ink-300); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-hidden] { color: var(--line-bright); }

.article-head { padding-block: var(--s5) var(--s6); }
.article-head h1 { margin-block: var(--s4) var(--s4); max-width: 20ch; }
.article-head .dek {
  font-size: var(--t-lead); color: var(--ink-300); line-height: 1.5;
  max-width: 58ch;
}
.byline {
  margin-top: var(--s5); padding-top: var(--s4);
  border-top: var(--hair) solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5);
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-400);
}
.byline b { color: var(--ink-200); font-weight: 500; }

.layout-article {
  display: grid; grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(var(--s6), 5vw, var(--s9));
  align-items: start;
  padding-bottom: var(--s9);
}
@media (max-width: 1000px) { .layout-article { grid-template-columns: 1fr; } .toc { display: none; } }

.toc { position: sticky; top: calc(var(--header-h) + var(--s5)); }
.toc__title {
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-400);
  padding-bottom: var(--s3); margin-bottom: var(--s3);
  border-bottom: var(--hair) solid var(--line);
}
.toc a {
  position: relative; display: block;
  padding: 7px 0 7px 16px;
  font-size: var(--t-sm); color: var(--ink-400);
  transition: color var(--d-micro) var(--e-out);
}
.toc a::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 7px; height: var(--hair); background: var(--line-bright);
  transition: width var(--d-base) var(--e-out), background var(--d-base) var(--e-out);
}
.toc a:hover { color: var(--ink-100); }
.toc a.is-active { color: var(--accent); }
.toc a.is-active::before { width: 11px; background: var(--accent); }

/* Проза */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s4); }
.prose h2 {
  margin-top: clamp(var(--s7), 5vw, var(--s8));
  padding-top: var(--s4);
  border-top: var(--hair) solid var(--line);
}
.prose h3 { margin-top: var(--s6); }
.prose p { color: var(--ink-200); }
.prose ul, .prose ol { padding-left: 1.3em; color: var(--ink-200); }
.prose li + li { margin-top: 8px; }
.prose ::marker { color: var(--ink-400); }
.muted { color: var(--ink-300); }
.mono { font-family: var(--f-mono); }
.mark-check { color: var(--ink-400); font-family: var(--f-mono); font-size: .88em; }

/* Вердикт-бокс — центральный элемент страницы */
.verdict {
  position: relative;
  margin-block: var(--s6);
  border-radius: var(--r-lg);
  border: var(--hair) solid var(--line-strong);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
@supports (backdrop-filter: blur(1px)) { .verdict { backdrop-filter: var(--glass-blur); } }
@supports not (backdrop-filter: blur(1px)) { .verdict { background: var(--glass-fallback); } }
.verdict::before {
  content: ""; position: absolute; inset-inline: 6%; top: 0; height: var(--hair);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6;
}
.verdict__head {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s5);
  align-items: center;
  padding: clamp(var(--s5), 2.6vw, var(--s6));
  border-bottom: var(--hair) solid var(--line);
}
@media (max-width: 560px) { .verdict__head { grid-template-columns: 1fr; } }
.verdict__label { margin-bottom: var(--s3); }
.verdict__for { font-size: var(--t-body); color: var(--ink-200); line-height: 1.5; }
.verdict__for b { color: var(--ink-100); }
.verdict__body { padding: clamp(var(--s5), 2.6vw, var(--s6)); }

/* Круговая шкала оценки */
.dial { position: relative; width: 118px; height: 118px; flex: none; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial__track { fill: none; stroke: var(--line); stroke-width: 2; }
.dial__val {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  filter: drop-shadow(0 0 5px var(--accent-glow));
  stroke-dasharray: var(--dash-len, 314);
  stroke-dashoffset: var(--dash-off, 314);
  transition: stroke-dashoffset 1.3s var(--e-out);
}
.dial__ticks { stroke: var(--line-strong); stroke-width: 1; }
.dial__num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-variant-numeric: tabular-nums;
}
.dial__num b {
  font-size: 2.1rem; font-weight: 500; color: var(--ink-100);
  letter-spacing: -.04em; line-height: 1;
}
.dial__num span {
  font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-400); margin-top: 5px;
}

/* Плюсы / минусы */
.proscons {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s5); margin-top: var(--s2);
}
@media (max-width: 560px) { .proscons { grid-template-columns: 1fr; gap: var(--s5); } }
.proscons__col > .label { margin-bottom: var(--s3); }
.proscons ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.proscons li {
  display: grid; grid-template-columns: 15px 1fr; gap: 10px;
  font-size: var(--t-sm); line-height: 1.5; color: var(--ink-200);
}
.proscons li::before { font-family: var(--f-mono); font-weight: 600; line-height: 1.5; }
.pros .label::before { background: var(--good); box-shadow: 0 0 10px color-mix(in srgb, var(--good) 45%, transparent); }
.cons .label::before { background: var(--bad);  box-shadow: 0 0 10px color-mix(in srgb, var(--bad) 45%, transparent); }
.pros li::before { content: "+"; color: var(--good); }
.cons li::before { content: "−"; color: var(--bad); }

/* Шкалы по критериям — «измерительные» метры */
.meters { display: grid; gap: var(--s4); margin-block: var(--s5); }
.meter {
  display: grid; grid-template-columns: minmax(88px, 158px) 1fr 46px;
  align-items: center; gap: var(--s4);
}
@media (max-width: 560px) { .meter { grid-template-columns: 96px 1fr 40px; gap: var(--s3); } }
.meter__name { font-size: var(--t-sm); color: var(--ink-200); }
.meter__track {
  position: relative; height: 26px;
  border-block: var(--hair) solid var(--line);
}
.meter__track::before {            /* засечки шкалы 0–10 */
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 var(--hair), transparent var(--hair) 10%);
}
.meter__fill {
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 1.1s var(--e-out);
}
.meter__fill::after {
  content: ""; position: absolute; right: -1px; top: 50%; translate: 0 -50%;
  width: 2px; height: 15px; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.meter__val {
  font-family: var(--f-mono); font-size: var(--t-sm); font-weight: 500;
  color: var(--ink-100); text-align: right; font-variant-numeric: tabular-nums;
}

/* ============ 14. Таблицы ================================================== */

.table-wrap {
  position: relative;
  margin-block: var(--s5);
  overflow-x: auto;
  border-block: var(--hair) solid var(--line-strong);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); }
caption {
  caption-side: top; text-align: left; padding-bottom: var(--s3);
  font-family: var(--f-mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400);
}
th, td {
  padding: 13px var(--s4); text-align: left; vertical-align: top;
  border-bottom: var(--hair) solid var(--line);
}
thead th {
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400);
  white-space: nowrap;
  border-bottom-color: var(--line-strong);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}
tbody th { font-weight: 500; color: var(--ink-300); white-space: nowrap; }
tbody td { color: var(--ink-200); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background var(--d-micro) var(--e-out); }
tbody tr:hover { background: color-mix(in srgb, var(--ink-100) 3.5%, transparent); }

/* Победитель строки — без заливки, приборной меткой */
td.win { color: var(--ink-100); font-weight: 550; position: relative; }
td.win::after {
  content: "▲"; margin-left: 7px;
  font-family: var(--f-mono); font-size: .62em; color: var(--good);
  vertical-align: middle;
}
td.win::before {
  content: ""; position: absolute; left: var(--s4); right: var(--s4); bottom: 8px;
  height: var(--hair); background: color-mix(in srgb, var(--good) 55%, transparent);
}

/* ============ 15. Врезки, раскрытие, FAQ =================================== */

.callout {
  position: relative;
  margin-block: var(--s5);
  padding: var(--s5) var(--s5) var(--s5) calc(var(--s5) + 3px);
  border: var(--hair) solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  font-size: var(--t-sm); line-height: 1.58; color: var(--ink-200);
}
.callout b, .callout strong { color: var(--ink-100); }
.callout--warn { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 6%, transparent); }

.disclosure {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: var(--hair) dashed var(--line-strong);
  font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.5;
  color: var(--ink-400);
}
.disclosure svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.disclosure a { color: var(--ink-300); text-decoration: underline; text-underline-offset: .2em; }
.disclosure a:hover { color: var(--accent); }

details.faq {
  border-bottom: var(--hair) solid var(--line);
  padding-block: 2px;
}
details.faq:first-of-type { border-top: var(--hair) solid var(--line); }
details.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding-block: var(--s4);
  cursor: pointer; list-style: none;
  font-size: var(--t-body); font-weight: 550; color: var(--ink-100);
  transition: color var(--d-micro) var(--e-out);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: var(--accent); }
details.faq summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.25rem; font-weight: 300;
  color: var(--ink-400); flex: none; line-height: 1;
  transition: transform var(--d-base) var(--e-out), color var(--d-base) var(--e-out);
}
details.faq[open] summary::after { transform: rotate(45deg); color: var(--accent); }
details.faq > *:not(summary) { padding-bottom: var(--s5); font-size: var(--t-sm); color: var(--ink-300); max-width: 62ch; }

/* Демо-баннер */
.demo-banner {
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--s5);
  padding: 11px var(--s4);
  border: var(--hair) dashed color-mix(in srgb, var(--warn) 45%, transparent);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--warn) 7%, transparent);
  font-family: var(--f-mono); font-size: var(--t-xs); line-height: 1.5;
  letter-spacing: .04em; color: var(--ink-200);
}
.demo-banner svg { width: 15px; height: 15px; flex: none; color: var(--warn); }

/* ============ 16. Горизонтальная лента ===================================== */

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 33%);
  gap: var(--s5);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s4);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.rail > * { scroll-snap-align: start; }
@media (max-width: 700px) { .rail { grid-auto-columns: minmax(255px, 82%); } }

/* ============ 17. Подвал =================================================== */

.site-footer {
  position: relative;
  margin-top: var(--s9);
  border-top: var(--hair) solid var(--line);
  padding-block: clamp(var(--s7), 6vw, var(--s9)) var(--s6);
  background: color-mix(in srgb, var(--bg-sunk) 70%, transparent);
}
.footer-word {
  font-size: clamp(2.6rem, 1rem + 9vw, 8.5rem);
  font-weight: 700; letter-spacing: -.055em; line-height: .88;
  margin-bottom: clamp(var(--s6), 5vw, var(--s8));
  color: var(--ink-100);
  opacity: .95;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s6);
  padding-top: var(--s6);
  border-top: var(--hair) solid var(--line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s5); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400);
  margin-bottom: var(--s4);
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer-grid li a { font-size: var(--t-sm); color: var(--ink-300); transition: color var(--d-micro) var(--e-out); }
.footer-grid li a:hover { color: var(--accent); }
.footer-about { font-size: var(--t-sm); color: var(--ink-300); max-width: 34ch; line-height: 1.55; }
.footer-legal {
  margin-top: var(--s7); padding-top: var(--s4);
  border-top: var(--hair) solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between;
  font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-400); line-height: 1.5;
}

/* ============ 18. Появление при скролле ==================================== */
/* Скрываем только если JS доступен — без JS контент виден сразу. */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--d-enter) var(--e-out), transform var(--d-enter) var(--e-out);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-lines > * {
  opacity: 0; transform: translate3d(0, .5em, 0);
  transition: opacity var(--d-hero) var(--e-out), transform var(--d-hero) var(--e-out);
}
.js .reveal-lines.is-in > *          { opacity: 1; transform: none; }
.js .reveal-lines.is-in > *:nth-child(2) { transition-delay: 90ms; }
.js .reveal-lines.is-in > *:nth-child(3) { transition-delay: 180ms; }
.js .reveal-lines.is-in > *:nth-child(4) { transition-delay: 270ms; }

/* ============ 19. Утилиты ================================================== */

.stack-2 > * + * { margin-top: var(--s2); }
.stack-3 > * + * { margin-top: var(--s3); }
.stack-4 > * + * { margin-top: var(--s4); }
.stack-5 > * + * { margin-top: var(--s5); }
.stack-6 > * + * { margin-top: var(--s6); }
.flex { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ============ 20. Уважение к настройкам пользователя ======================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal, .js .reveal-lines > * { opacity: 1 !important; transform: none !important; }
  .cinema__flare, .cinema__grain { animation: none; }
}

@media (prefers-contrast: more) {
  :root, :root[data-theme="light"] {
    --line: rgba(11, 14, 20, .30);
    --line-strong: rgba(11, 14, 20, .50);
    --ink-300: #3a424e;
    --ink-400: #4c5462;
  }
  :root[data-theme="dark"] {
    --line: rgba(255, 255, 255, .24);
    --line-strong: rgba(255, 255, 255, .44);
    --ink-300: #bcc5d2;
    --ink-400: #9aa5b5;
  }
  :root { --cin-opacity: .18; --grain-opacity: 0; }
  .glass, .card, .verdict, .panel { background: var(--glass-fallback); }
}

/* ============ 21. Межстраничные переходы (View Transitions) ================ */
/* Многостраничный статический сайт получает плавные переходы нативно.
   Браузеры без поддержки просто игнорируют правило. */

@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-out 200ms var(--e-io) both; }
::view-transition-new(root) { animation: vt-in 400ms var(--e-out) both; }
@keyframes vt-out { to   { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(9px); } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@media print {
  .cinema, .site-header, .reading-bar, .toc, .btn, .demo-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
