/* Pulse — общий слой сайта: шрифты, база, остров навигации, кнопки, тема, появление, подвал.
   Цвета — только роли из tokens.css (копия брендбука, правка там). Свои переменные сайта
   заводятся по той же схеме тем: без атрибута — как в системе, data-theme на <html> — выбор человека. */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Geologica"; src: url("../fonts/geologica.woff2") format("woff2");
  font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/martian-mono.woff2") format("woff2");
  font-weight: 400 600; font-stretch: 100% 112.5%; font-display: swap; }

:root {
  --w: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --sec: clamp(88px, 10vw, 140px);
  --grad-fill: linear-gradient(100deg, #2F49FF 0%, #5A6BFF 45%, #8F8CFF 100%);
  --noise: 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='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Свои роли сайта — тёмная тема (по умолчанию и по выбору) */
:root, [data-theme="dark"] {
  --show-dark: block; --show-light: none;
  --nav-bg: rgba(9, 11, 24, .62);
  --nav-ring: rgba(125, 149, 255, .22);
  --grain: .055;
  --btn-shadow: 0 14px 44px -14px rgba(47, 73, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .28);
  --tile: linear-gradient(180deg, rgba(23, 28, 54, .72), rgba(10, 13, 28, .72));
  --tile-ring: inset 0 1px 0 rgba(234, 240, 255, .06), inset 0 0 0 1px rgba(125, 149, 255, .13);
  --soft-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  --scrim: rgba(3, 4, 10, .72);
}
[data-theme="light"] {
  --show-dark: none; --show-light: block;
  --nav-bg: rgba(255, 255, 255, .74);
  --nav-ring: rgba(10, 15, 36, .12);
  --grain: .035;
  --btn-shadow: 0 14px 34px -16px rgba(47, 73, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
  --tile: #FFFFFF;
  --tile-ring: inset 0 0 0 1px rgba(10, 15, 36, .08), 0 24px 48px -36px rgba(16, 26, 77, .3);
  --soft-shadow: 0 40px 80px -48px rgba(16, 26, 77, .35);
  --scrim: rgba(10, 15, 36, .38);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --show-dark: none; --show-light: block;
    --nav-bg: rgba(255, 255, 255, .74);
    --nav-ring: rgba(10, 15, 36, .12);
    --grain: .035;
    --btn-shadow: 0 14px 34px -16px rgba(47, 73, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .3);
    --tile: #FFFFFF;
    --tile-ring: inset 0 0 0 1px rgba(10, 15, 36, .08), 0 24px 48px -36px rgba(16, 26, 77, .3);
    --soft-shadow: 0 40px 80px -48px rgba(16, 26, 77, .35);
    --scrim: rgba(10, 15, 36, .38);
  }
}

/* ---- база ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text-2);
  font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--noise); opacity: var(--grain); mix-blend-mode: overlay; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text); }
::selection { background: color-mix(in srgb, var(--accent) 36%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.wrap { width: 100%; max-width: calc(var(--w) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 12px; font-weight: 600;
  color: var(--on-accent); background: var(--accent); transition: top .2s var(--ease-ui); }
.skip:focus { top: 16px; color: var(--on-accent); }
.only-dark { display: var(--show-dark) !important; }
.only-light { display: var(--show-light) !important; }

/* ---- типографика ---------------------------------------------------------- */
.label { font: 500 12px/1.2 var(--font-mono); font-stretch: 112.5%; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent-text); }
.h2 { font: 800 clamp(34px, 5vw, 72px)/1.02 var(--font-display); letter-spacing: -.045em; color: var(--text); text-wrap: balance; }
.h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.12 var(--font-display); letter-spacing: -.03em; color: var(--text); }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 640px; text-wrap: pretty; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- кнопки --------------------------------------------------------------- */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 24px;
  border: 0; border-radius: var(--radius-button); cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 600 16px/1 var(--font-text); letter-spacing: -.005em; color: var(--on-accent); background: var(--grad-fill);
  box-shadow: var(--btn-shadow); transition: transform .2s var(--ease-ui), box-shadow .3s var(--ease-ui), filter .2s var(--ease-ui), background-color .2s var(--ease-ui); }
.btn:hover { color: var(--on-accent); filter: brightness(1.08) saturate(1.05); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn .ic { transition: transform .35s var(--ease-out); }
.btn:hover .ic-go { transform: translateX(3px); }
.btn.ghost { color: var(--text); background: var(--ghost-bg); box-shadow: inset 0 0 0 1.5px var(--ghost-ring); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
.btn.danger { color: var(--down); background: color-mix(in srgb, var(--down) 9%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--down) 40%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--down) 15%, transparent); filter: none; }
.btn.sm { --h: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); transform: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent-text); background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { color: var(--text); }

/* ---- остров навигации ------------------------------------------------------ */
.island { position: fixed; top: 14px; left: 50%; z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 2px;
  padding: 6px; border-radius: var(--radius-pill); background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--nav-ring), var(--shadow); max-width: calc(100vw - 24px);
  transition: transform .5s var(--ease-out), opacity .4s var(--ease-out); }
.island > * { flex: none; }
.island .brand { display: flex; align-items: center; padding: 0 14px 0 12px; height: 38px; border-radius: var(--radius-pill); }
.island .brand svg { width: 96px; max-width: none; height: auto; }
.island .nav-links { display: flex; align-items: center; gap: 2px; margin: 0 6px; padding: 0; list-style: none; }
.island .nav-links a { display: block; font: 500 14px/1 var(--font-text); color: var(--text-2); padding: 12px 14px; border-radius: var(--radius-pill);
  transition: background .2s var(--ease-ui), color .2s var(--ease-ui); white-space: nowrap; }
.island .nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.island .nav-links a.on { color: var(--text); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.island .btn.sm { --h: 38px; border-radius: var(--radius-pill); margin-left: 4px; }
.theme-btn { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 38px; height: 38px; margin-left: 4px;
  border-radius: 50%; color: var(--text-2); background: var(--surface); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .2s var(--ease-ui), color .2s var(--ease-ui), transform .2s var(--ease-ui); }
.theme-btn:hover { color: var(--text); background: var(--accent-soft); }
.theme-btn:active { transform: scale(.94); }
.theme-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-btn .ic { width: 18px; height: 18px; display: none; }
.theme-btn[data-mode="auto"] .t-auto, .theme-btn[data-mode="light"] .t-light, .theme-btn[data-mode="dark"] .t-dark { display: block; }
@media (max-width: 960px) { .island .nav-links a { padding: 12px 9px; } }   /* семь пунктов (с «Руководством») в 861 px */
@media (max-width: 420px) { .island .brand { padding: 0 8px 0 10px; } .island .brand svg { width: 80px; } }

/* ---- меню острова на узком экране (site.js) ------------------------------------- */
/* До 860 px пункты не помещаются в остров: тот же список .nav-links становится панелью под островом, открывает её кнопка
   с двумя чертами (site.js добавляет её, главное действие в панели .nav-cta и затемнение .nav-scrim). Без JS пункты
   скрыты, как раньше. Цели касания в острове — 44 px. */
.island .nav-links .nav-cta, .nav-btn, .nav-scrim { display: none; }
@media (max-width: 860px) {
  .island .nav-links { display: none; }
  .island .brand { height: 44px; }
  .island .theme-btn { width: 44px; height: 44px; }
  .island .btn.sm { --h: 44px; padding: 0 18px; }
  /* место под кнопку до site.js (он подключён с defer): остров не прыгает, когда кнопка появится */
  .js .island:not(.has-menu):has(> .nav-links)::after { content: ""; flex: none; width: 44px; height: 44px; margin-left: 4px; }

  .nav-btn { all: unset; box-sizing: border-box; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px;
    border-radius: 50%; color: var(--text); background: var(--surface); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong);
    -webkit-tap-highlight-color: transparent; transition: background .2s var(--ease-ui), transform .2s var(--ease-ui); }
  .nav-btn:hover { background: var(--accent-soft); }
  .nav-btn:active { transform: scale(.94); }
  .nav-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  .nav-btn span { position: relative; width: 18px; height: 2px; }
  .nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform .35s var(--ease-out); }
  .nav-btn span::before { transform: translateY(-4px); }
  .nav-btn span::after { transform: translateY(4px); }
  .island.nav-open .nav-btn { background: var(--accent-soft); }
  .island.nav-open .nav-btn span::before { transform: rotate(45deg); }
  .island.nav-open .nav-btn span::after { transform: rotate(-45deg); }

  .island.has-menu .nav-links { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; display: flex;
    flex-direction: column; align-items: stretch; gap: 2px; width: min(calc(100vw - 24px), 440px);
    max-height: calc(100vh - 104px); max-height: calc(100dvh - 104px); overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 8px; border-radius: var(--radius-card); background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--nav-ring), var(--shadow);
    visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 50% 0;
    transition: opacity .16s var(--ease-ui), transform .2s var(--ease-ui), visibility 0s linear .2s; }
  .island.nav-open .nav-links { visibility: visible; opacity: 1; transform: none;
    transition: opacity .22s var(--ease-out), transform .4s var(--ease-out), visibility 0s; }
  .island.has-menu .nav-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px;
    padding: 0 18px; border-radius: 14px; font: 500 17px/1.3 var(--font-text); color: var(--text); white-space: normal; }
  .island.has-menu .nav-links li:not(.nav-cta) a::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 3px;
    border: solid var(--text-3); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
  .island.has-menu .nav-links a.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
  .island.has-menu .nav-links .nav-cta { display: block; margin-top: 6px; }
  .island.has-menu .nav-links .nav-cta a { justify-content: center; min-height: 0; padding: 0 24px; border-radius: var(--radius-button);
    --h: 52px; font: 600 16px/1 var(--font-text); color: var(--on-accent); }
  .island.has-menu .nav-links .nav-cta a:hover { color: var(--on-accent); background: var(--grad-fill); }

  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 80; background: var(--scrim); visibility: hidden; opacity: 0;
    -webkit-tap-highlight-color: transparent; transition: opacity .2s var(--ease-ui), visibility 0s linear .2s; }
  .nav-lock .nav-scrim { visibility: visible; opacity: 1; transition: opacity .3s var(--ease-out), visibility 0s; }
  .island.nav-open { z-index: 81; }            /* над затемнением, окном cookie (60) и док-панелью руководства */
  html.nav-lock { overflow: hidden; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .island.has-menu .nav-links, .island.nav-open .nav-links { transform: none; }
  .nav-btn span::before, .nav-btn span::after { transition: none; }
}

/* ---- знак: тема внутри одного SVG (градиенты — по ролям) ---------------------- */
:root, [data-theme="dark"] { --mk-1: #FFFFFF; --mk-2: #F2F4F8; --mk-3: #DCDFE6; --mk-4: #C2C7D0;
  --tr-a: #3A58FF; --tr-b: #7D95FF; --tr-c: #5F7BFF; --core-a: #B9C8FF; --core-b: #EAF0FF; --mk-desc: #7E8BA1; --mk-glow: block; }
[data-theme="light"] { --mk-1: #1E2748; --mk-2: #182040; --mk-3: #121933; --mk-4: #0B0F21;
  --tr-a: #2F49FF; --tr-b: #2F49FF; --tr-c: #2F49FF; --core-a: #2F49FF; --core-b: #2F49FF; --mk-desc: #4A5670; --mk-glow: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --mk-1: #1E2748; --mk-2: #182040; --mk-3: #121933; --mk-4: #0B0F21;
  --tr-a: #2F49FF; --tr-b: #2F49FF; --tr-c: #2F49FF; --core-a: #2F49FF; --core-b: #2F49FF; --mk-desc: #4A5670; --mk-glow: none; } }
.mk-glow { display: var(--mk-glow); }

/* ---- поле калибровки (сетка ЭКГ-бумаги) ------------------------------------- */
.field { position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--field-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--field-major) 1px, transparent 1px),
    linear-gradient(var(--field-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--field-minor) 1px, transparent 1px);
  background-size: calc(var(--cell, 24px) * 5) calc(var(--cell, 24px) * 5), calc(var(--cell, 24px) * 5) calc(var(--cell, 24px) * 5),
    var(--cell, 24px) var(--cell, 24px), var(--cell, 24px) var(--cell, 24px);
  background-position: var(--field-pos, 50% 50%);
  -webkit-mask-image: radial-gradient(var(--field-r, 60% 70%) at var(--field-at, 50% 50%), #000 0%, transparent 78%);
          mask-image: radial-gradient(var(--field-r, 60% 70%) at var(--field-at, 50% 50%), #000 0%, transparent 78%); }

/* ---- плашки ---------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill);
  font: 500 11.5px/1 var(--font-mono); font-stretch: 112.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--text-tint);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--pill-bg), var(--pill-bg)) padding-box, linear-gradient(100deg, #2F49FF, #9FB4FF) border-box; }
.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: var(--radius-pill);
  font: 600 12.5px/1 var(--font-text); letter-spacing: .01em; color: var(--text-2); background: var(--ghost-bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--up); background: color-mix(in srgb, var(--up) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 30%, transparent); }
.badge.warn { color: var(--demo); background: color-mix(in srgb, var(--demo) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--demo) 34%, transparent); }
.badge.bad { color: var(--down); background: color-mix(in srgb, var(--down) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--down) 32%, transparent); }
.badge.wait { color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---- появление ------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity .4s linear; }
}

/* ---- подвал ---------------------------------------------------------------- */
.footer { position: relative; padding: 72px 0 40px; color: var(--text-3); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.footer .f-brand > svg { width: 132px; height: auto; margin-bottom: 18px; }
.footer .f-brand p { max-width: 300px; line-height: 1.55; }
.footer h4 { font: 500 11px/1 var(--font-mono); font-stretch: 112.5%; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--text-2); font-size: 15px; }
.footer ul a:hover { color: var(--text); }
.footer .f-social { display: flex; gap: 10px; margin-top: 22px; }
.footer .f-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--text-2);
  background: var(--ghost-bg); box-shadow: inset 0 0 0 1px var(--line-strong); transition: color .2s var(--ease-ui), background .2s var(--ease-ui); }
.footer .f-social a:hover { color: var(--text); background: var(--accent-soft); }
.footer .f-social .ic { width: 20px; height: 20px; }
.footer .f-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.footer .f-base p { max-width: 620px; }
@media (max-width: 860px) {
  .footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer .f-brand { grid-column: 1 / -1; }
  /* «Документы» — во всю ширину: в половине экрана названия документов ломались на три-четыре строки */
  .footer .wrap > div:has(a[href*="legal/"]):not(.f-brand):not(.f-base) { grid-column: 1 / -1; }
  .footer .f-social a { width: 44px; height: 44px; }
}

/* ---- окно о cookie (AN.1, site.js) ------------------------------------------- */
/* Полоска внизу до выбора — низкая и широкая (AN.12, вариант v13): на компьютере текст в 3 строки, первый экран
   главной поднимается над ней (home.css, site.js). Два вида (AN.15): уведомление (.consent-note) — основная кнопка
   «Понятно» и ссылка «Настроить» рядом; настройки (.consent-set, класс settings) — «Принять» и «Отклонить»
   равноценны: один вид, размер и вес, равные колонки сетки. Фон плотнее острова навигации: длинный текст читается
   поверх любой картинки. Над док-панелью руководства (docs.css, z-index 60, до 1199 px): иначе она закрывает кнопки. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 12px; z-index: 65; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 32px; padding: 14px 22px;
  border-radius: var(--radius-card); color: var(--text-2); background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--nav-ring), var(--shadow); }
.consent[hidden] { display: none; }
.consent:focus-visible { outline-offset: 2px; border-radius: var(--radius-card); }
.consent-text { font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.consent-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; font-size: 13.5px;
  color: var(--text-3); }
.consent-act { display: grid; gap: 10px; }
.consent-now { font: 500 12.5px/1.4 var(--font-mono); color: var(--text); text-align: center; }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btns .btn { --h: 42px; min-width: 124px; padding: 0 18px; font-size: 14.5px; }
.consent:not(.settings) .consent-set, .consent.settings .consent-note { display: none; }
.consent-btns.consent-note { grid-template-columns: 1fr auto; align-items: center; gap: 10px 20px; }
.consent-btns .link { min-height: 42px; font-size: 14px; }   /* мелкая, но цель касания — во всю высоту кнопки */
/* Телефон (до 480 px): первое предложение и «Подробнее» — остальное по нажатию (site.js режет текст сам, разметка
   страниц та же; текст и редакция согласия не меняются). Шире — текст целиком, кнопки нет. */
.consent-toggle { display: none; min-height: 24px; font-size: inherit; }
@media (max-width: 480px) {
  .consent:not(.full) .consent-more { display: none; }
  .consent:not(.full) .consent-toggle { display: inline-flex; }
}
@media (prefers-reduced-motion: no-preference) {
  .consent:not([hidden]) { animation: consent-in .6s var(--ease-out) both; }
}
@keyframes consent-in { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 700px) {
  .consent { left: 6px; right: 6px; bottom: 6px; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px;
    border-radius: 18px; }
  .consent:focus-visible { border-radius: 18px; }
  .consent-text, .consent-links { font-size: 13px; line-height: 1.42; }
  .consent-links { gap: 2px 14px; margin-top: 6px; }   /* ссылки — в строку, если помещаются */
  .consent-links .link { min-height: 24px; }   /* цель касания не меньше 24 px (WCAG 2.5.8) */
  .consent-sep { display: none; }
  .consent-btns .btn { --h: 42px; min-width: 0; font-size: 14.5px; }
}
/* «Готово: …» — уведомление брендбука: плашка внизу по центру, сама гаснет. */
.consent-done { position: fixed; left: 50%; bottom: 26px; z-index: 70; width: max-content; max-width: calc(100vw - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; text-align: center;
  font: 500 13px/1.45 var(--font-mono); color: var(--text); background: var(--surface-2); padding: 12px 18px;
  border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow);
  transition: opacity .25s var(--ease-ui), transform .25s var(--ease-ui); }
.consent-done.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 700px) { .consent-done { border-radius: 18px; } }
