/* ─────────────────────────────────────────────────────────────
   Тема «Связи»: тёмный холст, северное сияние, неоновые акценты и стекло.
   Общая для сайта (body.site + site.css) и кабинета (body.cab + app.css).
   ───────────────────────────────────────────────────────────── */

@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/unbounded-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: "Unbounded"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap;
  src: url(/static/fonts/unbounded-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: "Unbounded"; font-weight: 700; font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap;
  src: url(/static/fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0400-04FF; }
@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap;
  src: url(/static/fonts/unbounded-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-03FF, U+2000-206F, U+20AC, U+2116, U+2190-21FF; }

:is(body.site, body.cab) {
  --bg: #0b0a12;
  --bg-2: #121020;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f4f2ff;
  --text-2: #c9c5dd;
  --muted: #8d88a6;

  --violet: #7b61ff;
  --pink: #ff3d8b;
  --orange: #ff8a3d;
  --lime: #d4ff3a;
  --cyan: #3ee6d6;
  --grad: linear-gradient(100deg, #7b61ff 0%, #c64bff 30%, #ff3d8b 60%, #ff8a3d 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 97, 255, .35), rgba(255, 61, 139, .25) 50%, rgba(255, 138, 61, .2));

  /* источники на тёмном: порядок TG, VK, IG, ТВ, радио, СМИ проверен валидатором (CVD ΔE ≥ 9,4) */
  --src-telegram: #3987e5;
  --src-vk: #d95926;
  --src-instagram: #199e70;
  --src-tv: #9085e9;
  --src-radio: #c98500;
  --src-media: #d55181;
  --src-soon: #4a4660;
  --tone-neg: #e66767;
  --tone-neu: #5b5672;
  --tone-pos: #3987e5;

  --display: "Unbounded", "Golos Text", sans-serif;
  --r: 22px;
  --r-s: 14px;
  --ease: cubic-bezier(.2, .8, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --good: #3ee68a;
  --warn: #ffb547;
  background: var(--bg); color: var(--text);
  font: 400 16.5px/1.6 var(--sans);
}
:is(body.site, body.cab)::before { display: none; }  /* бумажное зерно из base.css здесь не нужно */
:is(body.site, body.cab) ::selection { background: var(--pink); color: #fff; }
:is(body.site, body.cab) a:hover { color: var(--text); }
:is(body.site, body.cab) :focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* ── фон: северное сияние + сетка + курсорный свет ── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; left: -12vw; top: -18vw; background: #5b3dff; animation: blob1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; right: -10vw; top: 6vh; background: #ff2d7a; opacity: .38; animation: blob2 31s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -22vw; background: #ff7a2d; opacity: .28; animation: blob3 23s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { width: 26vw; height: 26vw; left: 8vw; bottom: 6vh; background: #1fd6c4; opacity: .16; animation: blob2 37s ease-in-out infinite alternate-reverse; }
@keyframes blob1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes blob2 { to { transform: translate(-16vw, 22vh) scale(.85); } }
@keyframes blob3 { to { transform: translate(-12vw, -18vh) scale(1.2); } }
.aurora::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%); }
.aurora::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.spot { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(123, 97, 255, .13), transparent 60%); }

/* ── типографика ── */
:is(body.site, body.cab) h1, :is(body.site, body.cab) h2, :is(body.site, body.cab) h3, :is(body.site, body.cab) .display { font-family: var(--display); color: var(--text); }
:is(body.site, body.cab) h1 { font-weight: 700; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; }
:is(body.site, body.cab) h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 50px); line-height: 1.06; letter-spacing: -.03em; }
:is(body.site, body.cab) h3 { font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
:is(body.site, body.cab) h1 em, :is(body.site, body.cab) h2 em, :is(body.site, body.cab) h3 em, .grad-text {
  font-style: normal; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: gradshift 8s ease-in-out infinite alternate; }
@keyframes gradshift { to { background-position: 100% 0; } }
:is(body.site, body.cab) .lead { color: var(--text-2); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; }
:is(body.site, body.cab) .muted { color: var(--muted); }
:is(body.site, body.cab) .kicker { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--line-2); border-radius: 99px;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
:is(body.site, body.cab) .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--pink); }
:is(body.site, body.cab) .kicker.plain::before { display: none; }
:is(body.site, body.cab) code { font: 400 13px/1.6 var(--mono); background: rgba(255, 255, 255, .08); color: var(--text); padding: 2px 7px; border-radius: 6px; }
:is(body.site, body.cab) .rule { border-top-color: var(--line-2); }
:is(body.site, body.cab) .rule.thin { border-top-color: var(--line); }

/* ── кнопки: градиент с бликом, стекло, магнит ── */
:is(body.site, body.cab) .btn { --b: transparent; position: relative; overflow: hidden; isolation: isolate; min-height: 50px; padding: 0 26px;
  border: 0; border-radius: 99px; background: var(--grad); background-size: 160% 100%; color: #fff; font: 600 15px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 10px 34px -10px rgba(255, 61, 139, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: background-position .5s var(--ease), box-shadow .3s var(--ease), transform .35s var(--spring); }
:is(body.site, body.cab) .btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transition: transform .8s var(--ease); }
:is(body.site, body.cab) .btn:hover { background-position: 100% 0; color: #fff; box-shadow: 0 14px 44px -8px rgba(255, 61, 139, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
:is(body.site, body.cab) .btn:hover::after { transform: translateX(120%); }
:is(body.site, body.cab) .btn.ghost { background: var(--glass); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
:is(body.site, body.cab) .btn.ghost:hover { background: var(--glass-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
:is(body.site, body.cab) .btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
:is(body.site, body.cab) .btn.light { background: #fff; color: var(--bg); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .5); }
:is(body.site, body.cab) .btn.light:hover { color: var(--bg); }


/* ── «в эфире» и эквалайзер ── */
:is(body.site, body.cab) .onair i { background: var(--lime); animation: pulse-lime 1.8s infinite; }
@keyframes pulse-lime { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 58, .55); } 70% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq b { width: 2px; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: -.3s; } .eq b:nth-child(3) { animation-delay: -.6s; } .eq b:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }


/* формы */
:is(body.site, body.cab) .field > span { color: var(--muted); font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
:is(body.site, body.cab) .field small { color: var(--muted); }
:is(body.site, body.cab) input[type=text], :is(body.site, body.cab) input[type=email], :is(body.site, body.cab) input[type=password], :is(body.site, body.cab) input[type=tel],
:is(body.site, body.cab) input[type=date], :is(body.site, body.cab) input[type=number], :is(body.site, body.cab) input[type=search], :is(body.site, body.cab) select, :is(body.site, body.cab) textarea {
  background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 15px;
  transition: border-color .2s, box-shadow .2s, background .2s; }
:is(body.site, body.cab) input:focus, :is(body.site, body.cab) select:focus, :is(body.site, body.cab) textarea:focus { background: rgba(255, 255, 255, .08); border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(123, 97, 255, .25); }
:is(body.site, body.cab) select option { background: var(--bg-2); color: var(--text); }
:is(body.site, body.cab) input::placeholder, :is(body.site, body.cab) textarea::placeholder { color: var(--muted); }
:is(body.site, body.cab) .check { color: var(--text-2); }
:is(body.site, body.cab) .check input { accent-color: var(--pink); }
:is(body.site, body.cab) .check a { color: var(--text); }
:is(body.site, body.cab) .errors { border: 1px solid rgba(230, 103, 103, .5); border-radius: 12px; background: rgba(230, 103, 103, .12); color: var(--text); }
:is(body.site, body.cab) .notice { border: 1px solid var(--line-2); border-radius: 12px; background: var(--glass-2); color: var(--text); }
:is(body.site, body.cab) .notice.good { border-color: rgba(212, 255, 58, .5); background: rgba(212, 255, 58, .08); }
.formcard { background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(24px, 3vw, 40px);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 40px 100px -50px rgba(123, 97, 255, .6); }

/* ── появление: каскад с размытием ── */
:is(body.site, body.cab) .rise { animation-name: rise-blur; animation-duration: 1s; }
@keyframes rise-blur { from { opacity: 0; transform: translateY(22px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
:is(body.site, body.cab) .reveal { opacity: 0; transform: translateY(30px) scale(.98); filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
:is(body.site, body.cab) .reveal.in { opacity: 1; transform: none; filter: none; }


/* ── логотип и слоган ── */
.wordmark { font: 800 26px/1 var(--display); letter-spacing: -.04em; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 0; }
.wordmark i { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); margin-left: 5px; box-shadow: 0 0 14px var(--pink), 0 0 30px rgba(123, 97, 255, .6);
  animation: beacon 2.6s ease-in-out infinite; }
@keyframes beacon { 50% { transform: scale(1.35); box-shadow: 0 0 22px var(--pink), 0 0 44px rgba(123, 97, 255, .8); } }
.wordmark:hover { color: var(--text); }
.slogan { display: inline-flex; gap: .55em; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.slogan b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metanote { margin: 18px 0 0; font: 400 11px/1.45 var(--sans); color: var(--muted); opacity: .8; max-width: 760px; }
