/* ─────────────────────────────────────────────────────────────
   Дизайн-система: «редакция в прямом эфире».
   Газетная бумага, типографская краска, один сигнальный красный.
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: "Spectral"; font-weight: 300; font-style: normal; font-display: swap;
  src: url(/static/fonts/spectral-cyrillic-300-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Spectral"; font-weight: 300; font-style: normal; font-display: swap;
  src: url(/static/fonts/spectral-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }
@font-face { font-family: "Spectral"; font-weight: 300; font-style: italic; font-display: swap;
  src: url(/static/fonts/spectral-cyrillic-300-italic.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Spectral"; font-weight: 300; font-style: italic; font-display: swap;
  src: url(/static/fonts/spectral-latin-300-italic.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116; }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(/static/fonts/spectral-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(/static/fonts/spectral-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116; }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap;
  src: url(/static/fonts/spectral-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap;
  src: url(/static/fonts/spectral-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116; }
@font-face { font-family: "Spectral"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(/static/fonts/spectral-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Spectral"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(/static/fonts/spectral-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116; }

@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }

@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }

:root {
  --paper: #f2eee4;
  --paper-2: #e9e3d6;
  --paper-3: #ddd5c3;
  --sheet: #f8f5ee;
  --ink: #16140f;
  --ink-2: #3d3930;
  --muted: #7a7466;
  --rule: #cdc4b0;
  --signal: #d7261e;
  --signal-deep: #a3160f;
  --good: #2f6f46;
  --warn: #a8701a;

  /* источники — палитра проверена валидатором на фоне --paper */
  --src-telegram: #2a78d6;
  --src-vk: #eb6834;
  --src-instagram: #1baf7a;
  --src-tv: #8a5cd6;
  --src-radio: #b08a1e;
  --src-media: #c2477f;
  --src-soon: #b9b2a2;

  --tone-neg: #c8372d;
  --tone-neu: #b9b2a2;
  --tone-pos: #2a78d6;
  --tone-off: #e2dccd;

  --serif: "Spectral", "Georgia", serif;
  --sans: "Golos Text", "Helvetica Neue", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16.5px/1.55 var(--sans); font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
/* бумажное зерно поверх всего: еле заметное, но убирает «цифровую» плоскость */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .3  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--signal-deep); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

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

/* типографика */
.display, h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 96px); line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.022em; }
h3 { font-size: 24px; line-height: 1.15; font-weight: 400; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.kicker {
  font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--signal); }
.kicker.plain::before { display: none; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }

/* линейки — главный «газетный» приём */
.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; }
.rule.thin { border-top-color: var(--rule); }
.rule.double { border-top: 3px double var(--ink); }

/* кнопки */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--b); background: var(--b); color: var(--paper);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.danger { --b: var(--signal-deep); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline;
  text-underline-offset: .18em; cursor: pointer; }

/* «в эфире» */
.onair { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal-deep); }
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(215,38,30,.5);
  animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215,38,30,.45); } 70% { box-shadow: 0 0 0 9px rgba(215,38,30,0); } 100% { box-shadow: 0 0 0 0 rgba(215,38,30,0); } }

/* формы */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span, .label { font: 500 11.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number],
input[type=search], select, textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-bottom-color: var(--ink); border-radius: 0; padding: 12px 14px;
  transition: border-color .15s, background .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
input[aria-invalid=true] { border-color: var(--signal); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.errors { border-left: 3px solid var(--signal); background: rgba(215,38,30,.06); padding: 12px 16px; margin-bottom: 20px; font-size: 15px; }
.notice { border-left: 3px solid var(--ink); background: var(--sheet); padding: 12px 16px; margin-bottom: 20px; font-size: 15px; }
.notice.good { border-left-color: var(--good); }

/* точки источников */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--src-soon); flex: none; }
.dot.telegram { background: var(--src-telegram); } .dot.vk { background: var(--src-vk); }
.dot.instagram { background: var(--src-instagram); } .dot.tv { background: var(--src-tv); border-radius: 1px; }
.dot.radio { background: var(--src-radio); border-radius: 1px; transform: rotate(45deg) scale(.85); }
.dot.media { background: var(--src-media); border-radius: 1px; height: 6px; width: 11px; }

/* появление при загрузке: один выверенный каскад */
.rise { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  .onair i { animation: none; }
  html { scroll-behavior: auto; }
}

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