/* ============================================================
   Ментальный щит — дизайн-система в стиле cisa.gov
   Светлый лист, тёмно-синяя шапка и подвал, синие кнопки,
   Public Sans (кириллица — Source Sans 3). Палитра взята из
   таблицы стилей CISA: #162e51, #005ea2, #005288, #1b1b1b, #f0f0f0.
   Mobile first: базовые правила — телефон, медиазапросы — вверх.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-2: #f0f0f0;      /* светлая подложка секций */
  --paper-3: #e6f3ff;      /* голубая подложка акцентных блоков */
  --navy: #162e51;         /* шапка, подвал, заголовки */
  --navy-deep: #0b1b32;
  --blue: #005ea2;         /* кнопки, ссылки */
  --blue-dark: #1a4480;    /* hover */
  --blue-brand: #005288;   /* фирменный синий CISA */
  --blue-light: #d9e8f6;
  --cyan: #0078ae;
  --ink: #1b1b1b;
  --ink-2: #3d4551;
  --muted: #565c65;
  --line: #dfe1e2;
  --line-strong: #a9aeb1;
  --visited: #54278f;
  --danger: #b50909;
  --ok: #00a91c;

  --sans: 'Public Sans', 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 75rem;
  --gap: 1.25rem;
  --pad: 1.25rem;
  --radius: 4px;
  --radius-lg: 8px;
  --t: 150ms ease-in-out;
}

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

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; color: var(--navy); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
a:visited { color: var(--visited); }

:focus-visible {
  outline: .25rem solid var(--cyan);
  outline-offset: 0;
  border-radius: 0;
}

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; z-index: 100; top: 0; left: 0;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
  font-weight: 700; text-decoration: underline;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

/* ---------------------------------------------------------------- шапка */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--blue-brand);
}
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; color: #fff; }
.brand:visited, .brand:hover { color: #fff; }
.brand-logo {
  width: 44px; height: 44px; flex: none; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .25);
}
.brand-name {
  font-weight: 700; font-size: 1.0625rem; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .04em;
}
.brand-sub { display: block; font-size: .75rem; font-weight: 400; letter-spacing: .08em; color: #c9d3e0; text-transform: none; }
.nav-toggle {
  appearance: none; background: var(--blue); border: 0;
  border-radius: var(--radius); width: 44px; height: 40px; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; content: '';
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: 68px 0 auto 0; display: none;
  background: var(--navy-deep); border-bottom: 4px solid var(--blue-brand);
  padding: .5rem var(--pad) 1.5rem; max-height: calc(100dvh - 68px); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a {
  display: block; padding: .85rem 0; text-decoration: none; font-size: 1.0625rem; font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .18); color: #fff;
}
.site-nav a:visited { color: #fff; }
.site-nav a.is-current { color: #fff; box-shadow: inset 4px 0 0 var(--cyan); padding-left: .75rem; }
.lang-switch { display: flex; gap: .35rem; margin: 1.25rem 0; }
.lang-switch a {
  border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--radius); padding: .35rem .75rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: #fff;
}
.lang-switch a:visited { color: #fff; }
.lang-switch a.is-current { background: #fff; color: var(--navy); border-color: #fff; }
.head-cta { width: 100%; justify-content: center; }

@media (min-width: 64rem) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 1.5rem;
    background: none; border: 0; padding: 0; max-height: none; overflow: visible;
  }
  .site-nav ul { flex-direction: row; gap: 1.25rem; }
  .site-nav a { border: 0; padding: .35rem 0; font-size: .9375rem; font-weight: 600; }
  .site-nav a:hover { text-decoration: underline; }
  .site-nav a.is-current { box-shadow: inset 0 -3px 0 var(--cyan); padding-left: 0; }
  .lang-switch { margin: 0; }
  .head-cta { width: auto; }
}

/* --------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent:hover, .btn-accent:visited { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { border-color: var(--blue-dark); color: var(--blue-dark); background: var(--blue-light); }
.btn-ghost:visited { color: var(--blue); }
/* Кнопка в тёмной шапке: белая плашка заметнее синей на синем. */
.site-head .btn-accent { background: #fff; color: var(--navy); }
.site-head .btn-accent:hover, .site-head .btn-accent:visited { background: var(--blue-light); color: var(--navy); }
.btn-sm { padding: .5rem 1rem; font-size: .9375rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

/* --------------------------------------------------------------- секции */
.sec { padding: 3rem 0; border-top: 1px solid var(--line); }
.sec-quiet { background: var(--paper-2); border-top: 0; }
.kicker {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-brand); font-weight: 700; margin: 0 0 .6rem;
}
.sec-h {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem); color: var(--navy); margin-bottom: .75rem;
}
.sec-h::after { content: ''; display: block; width: 5rem; height: 4px; background: var(--blue-brand); margin-top: .85rem; }
.sec-sub { color: var(--ink-2); max-width: 48ch; font-size: 1.125rem; margin-bottom: 2rem; }
.page-head { padding: 2.5rem 0 1rem; }
.page-head h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 1rem; }
.lead-p { font-size: clamp(1.0625rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 56ch; }

/* ----------------------------------------------------------------- герой */
.hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, var(--paper), #f6f9fc);
  border-bottom: 1px solid var(--line);
}
.hero-in { display: grid; gap: 2rem; align-items: center; }
.hero-h {
  font-size: clamp(2.2rem, 9vw, 4.25rem); text-transform: uppercase;
  letter-spacing: -.02em; line-height: 1.02; color: var(--navy); margin-bottom: 1.1rem;
}
.hero-h::after { content: ''; display: block; width: 6rem; height: 5px; background: var(--blue-brand); margin-top: 1.1rem; }
.hero-lead { font-size: clamp(1.15rem, 3.2vw, 1.75rem); color: var(--blue-brand); max-width: 26ch; font-weight: 700; }
.hero-sub { color: var(--ink-2); max-width: 52ch; font-size: 1.125rem; }
.hero-note { margin-top: 1.1rem; }
.hero-logo { justify-self: center; max-width: 320px; width: 100%; }
.hero-logo img {
  width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
@media (min-width: 62rem) {
  .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 3rem; }
  .hero-logo { max-width: 420px; justify-self: end; }
}

/* ------------------------------------------------------------------ сетки */
.grid { display: grid; gap: var(--gap); }
@media (min-width: 40rem) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 4px solid var(--blue-brand);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem;
  transition: border-color var(--t), background var(--t);
}
a.card { text-decoration: none; color: inherit; }
a.card:visited { color: inherit; }
a.card:hover { background: #f6f9fc; border-color: var(--blue); }
a.card:hover .card-h { text-decoration: underline; }
.card-h { font-size: 1.1875rem; color: var(--navy); }
.card-num { color: var(--blue-brand); font-size: .8125rem; font-weight: 700; letter-spacing: .12em; margin: 0; }
.card p { margin: 0; }
.role-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; }
.link-arrow { color: var(--blue); font-size: .9375rem; font-weight: 700; margin-top: auto; }
.link-arrow::after { content: ' →'; }
.price { color: var(--blue-brand); font-size: 1.5rem; font-weight: 700; margin: 0; }

/* --------------------------------------------------------------- списки */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .45rem .9rem; font-size: 1rem; color: var(--ink-2);
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .8125rem; color: var(--ink-2); background: var(--paper-2); border-radius: var(--radius); padding: .25rem .55rem; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .55rem; color: var(--ink-2); }
.ticks li::before {
  content: ''; position: absolute; left: .1rem; top: .5em; width: .75rem; height: .375rem;
  border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg);
}
.ticks-plain li::before { border-color: var(--muted); }
.flow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; counter-reset: flow; }
.flow li {
  counter-increment: flow; background: var(--paper-2); border-left: 4px solid var(--blue-brand);
  padding: .45rem .9rem; font-size: .9375rem; color: var(--ink-2);
}
.flow li::before { content: counter(flow) ' · '; color: var(--blue-brand); font-weight: 700; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; } }
.split-text .lead-q { font-size: clamp(1.35rem, 3.5vw, 1.9rem); color: var(--navy); font-weight: 700; }

/* --------------------------------------------------- отдельные секции */
.signal { font-size: .9375rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: .75rem; margin-top: auto; }
.signal-label { color: var(--blue-brand); text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .1em; display: block; }

.deficit { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .deficit { grid-template-columns: auto 1fr; gap: 3rem; } }
.big-zero {
  font-size: clamp(6rem, 20vw, 12rem); line-height: .85; color: var(--blue-brand);
  margin: 0; font-weight: 700; letter-spacing: -.04em;
}
.level .role { color: var(--blue-brand); font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.pillar-q { color: var(--blue-brand); font-size: 1.0625rem; font-weight: 600; margin: 0; }

.steps { counter-reset: step; display: grid; gap: .75rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: .75rem;
}
.step-n { color: var(--blue-brand); font-size: .875rem; font-weight: 700; letter-spacing: .06em; }
.step-name { font-weight: 700; color: var(--navy); }
.step-text { grid-column: 2; font-size: 1rem; }

.final { padding: 4rem 0; background: var(--navy); color: #fff; }
.final h2, .final .sec-h { color: #fff; }
.final .sec-sub { color: #d3dce8; }
.final-h { font-size: clamp(1.9rem, 7vw, 3.25rem); text-transform: uppercase; color: #fff; }
.final-h::after { content: ''; display: block; width: 6rem; height: 5px; background: var(--cyan); margin-top: 1rem; }
.final .btn-ghost { border-color: #fff; color: #fff; }
.final .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: .5rem; max-width: 62rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.faq-item summary {
  cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; color: var(--navy);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--blue); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { border-left: 4px solid var(--blue-brand); }
.faq-a { padding: 0 1.25rem 1.1rem; color: var(--ink-2); }
.faq-a p { margin: 0; }

/* ------------------------------------------------------------- хлебные */
.crumbs { padding: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: '/'; margin-right: .35rem; color: var(--line-strong); }

/* ---------------------------------------------------------------- статья */
.article { padding: 0 0 2rem; }
.art-head { padding-top: 1.5rem; }
.art-head h1 { font-size: clamp(1.8rem, 5.5vw, 2.75rem); margin-bottom: .75rem; }
.art-body { max-width: 44rem; font-size: 1.125rem; line-height: 1.65; color: var(--ink); }
.art-body h2 {
  font-size: 1.375rem; color: var(--navy); margin: 2.5rem 0 .9rem;
  padding-bottom: .35rem; border-bottom: 2px solid var(--line);
}
.answer-box {
  border-left: 6px solid var(--blue-brand); background: var(--paper-3);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0 0;
}
.answer-box .box-h {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue-brand); margin: 0 0 .5rem; font-weight: 700;
}
.answer-box p { margin: 0; color: var(--ink); }
.scenario-box { background: var(--paper-2); border-left: 6px solid var(--line-strong); padding: 1.25rem 1.5rem; }
.scenario-box h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.scenario-box p { margin: 0; }
.signs li, .steps-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.signs li::before {
  content: ''; position: absolute; left: .35rem; top: .6em; width: .5rem; height: .5rem;
  background: var(--blue-brand); border-radius: 50%;
}
.steps-list { counter-reset: st; }
.steps-list li { counter-increment: st; }
.steps-list li::before {
  content: counter(st); position: absolute; left: 0; top: .05em; color: #fff;
  background: var(--blue-brand); width: 1.4rem; height: 1.4rem; border-radius: 50%;
  font-size: .8125rem; font-weight: 700; display: grid; place-items: center;
}
.expert {
  margin: 0; border-left: 6px solid var(--blue-light); padding: .25rem 0 .25rem 1.5rem;
  color: var(--ink); font-size: 1.125rem;
}
.expert footer { font-size: .9375rem; color: var(--muted); margin-top: .5rem; }
.expert.big { font-size: 1.25rem; border-color: var(--blue-brand); font-weight: 600; color: var(--navy); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.375rem; margin: 2rem 0 .75rem; }
.prose p { color: var(--ink-2); }

.facts { display: grid; gap: 1rem; }
.fact { border-top: 2px solid var(--line); padding-top: .75rem; }
.fact dt { font-weight: 700; color: var(--navy); }
.fact dd { margin: .25rem 0 0; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; } }

/* --------------------------------------------------------- блок автора */
.author-block { display: grid; gap: 1.75rem; align-items: start; }
.author-photo { max-width: 320px; width: 100%; justify-self: center; }
.author-photo img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper-2); }
.author-photo figcaption { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
@media (min-width: 62rem) {
  .author-block { grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 3rem; }
  .author-photo { justify-self: end; max-width: 380px; }
}
.author-links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-weight: 600; }

/* ------------------------------------------------------- интерактивы */
.options { display: grid; gap: .6rem; margin: 1.25rem 0 0; }
.opt {
  width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--paper); border: 2px solid var(--line-strong); border-radius: var(--radius);
  padding: 1rem 1.15rem; transition: border-color var(--t), background var(--t);
}
.opt:hover { border-color: var(--blue); background: #f6f9fc; }
.opt.is-picked { border-color: var(--blue); background: var(--blue-light); }
.opt.is-ok { border-color: var(--ok); background: #ecf3ec; }
.opt.is-no { border-color: var(--line-strong); background: var(--paper-2); }
.opt[disabled] { cursor: default; }
.verdict { margin: 1rem 0 0; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--paper-2); border-left: 6px solid var(--ok); }
.verdict-label { font-weight: 700; color: #2a6b2f; display: block; margin-bottom: .25rem; }
.verdict.is-no { border-left-color: var(--line-strong); }
.verdict.is-no .verdict-label { color: var(--navy); }

.scen-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.scen-tab {
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; color: var(--blue);
  background: var(--paper); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: .45rem .95rem;
}
.scen-tab:hover { border-color: var(--blue); }
.scen-tab[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.scen-body .scen-title { font-size: 1.25rem; margin-bottom: .5rem; }
.scen-body .scen-text { color: var(--ink-2); max-width: 56ch; }

.trainer { margin-top: 2.5rem; border: 1px solid var(--line); border-top: 4px solid var(--blue-brand); border-radius: var(--radius); padding: 1.5rem; background: var(--paper); }
.trainer-step { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.trainer-label { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-brand); font-weight: 700; margin: 0 0 .35rem; }

/* тест */
.test-progress { margin-bottom: 1.5rem; }
.test-bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.test-bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width var(--t); }
.test-count { font-size: .875rem; color: var(--muted); margin: .5rem 0 0; font-weight: 600; }
.test-q { font-size: clamp(1.25rem, 4vw, 1.75rem); margin: 1rem 0 0; max-width: 42ch; }
.test-note { margin-top: 2rem; }
.options-route { max-width: 36rem; }

/* результат */
.profile-card { border: 1px solid var(--line); border-top: 6px solid var(--blue-brand); border-radius: var(--radius); padding: 1.75rem; background: var(--paper-3); }
.profile-name { font-size: clamp(2rem, 6vw, 3rem); color: var(--navy); margin-bottom: .5rem; }
.bars { display: grid; gap: 1rem; margin: 1.5rem 0 0; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: baseline; }
.bar-name { font-weight: 700; font-size: 1rem; color: var(--navy); }
.bar-level { font-size: .875rem; color: var(--muted); font-weight: 600; }
.bar-track { grid-column: 1 / -1; height: 10px; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--blue); }
.bar-fill.is-watch { background: var(--line-strong); }
.bar-note { grid-column: 1 / -1; font-size: .9375rem; color: var(--ink-2); margin: 0; }

/* детектив */
.case-text { font-size: 1.1875rem; line-height: 1.7; max-width: 44rem; }
.case-text p { margin-bottom: 1rem; }
.frag {
  font: inherit; color: inherit; background: #fbf7d8; cursor: pointer; padding: .05em .2em;
  border: 0; border-bottom: 2px dashed var(--line-strong); text-align: left;
}
.frag:hover { border-bottom-color: var(--blue); }
.frag.is-marked { background: var(--blue-light); border-bottom: 2px solid var(--blue); }
.frag.is-hit { background: #ecf3ec; border-bottom: 3px solid var(--ok); }
.frag.is-missed { background: var(--paper-2); border-bottom: 3px dotted var(--muted); }
.case-counter { font-size: .9375rem; color: var(--muted); font-weight: 600; margin-top: 1rem; }
.flag-list { display: grid; gap: .75rem; margin: 1.5rem 0 0; }
.flag-item { border-left: 6px solid var(--ok); padding-left: 1rem; }
.flag-item.is-missed { border-color: var(--line-strong); }
.flag-q { font-weight: 700; margin: 0 0 .25rem; color: var(--navy); }

/* формы */
.forms-pair { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 62rem) { .forms-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-card { max-width: 38rem; }
.field { display: grid; gap: .35rem; margin: 0 0 1rem; }
.field label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: .7rem .8rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: .25rem solid var(--cyan); outline-offset: 0; border-color: var(--ink); }
.field-check label { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; font-weight: 400; color: var(--ink-2); }
.field-check input { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .15rem; accent-color: var(--blue); }
.req { color: var(--danger); }
.form-error { color: var(--danger); font-size: .9375rem; font-weight: 600; margin: 0 0 .5rem; }
.channels li { border-top: 1px solid var(--line); padding: .85rem 0; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- подвал */
.site-foot { background: var(--navy); color: #fff; padding: 3rem 0 1.5rem; margin-top: 3rem; border-top: 4px solid var(--blue-brand); }
.site-foot a { color: #fff; }
.site-foot a:visited { color: #fff; }
.site-foot a:hover { color: #fff; text-decoration-thickness: 2px; }
.site-foot .muted { color: #c3ceda; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; } }
.foot-h { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb2c9; margin: 0 0 .75rem; font-weight: 700; }
.foot-list li { margin-bottom: .55rem; }
.foot-list a { font-size: 1rem; }
.foot-brand p { margin: .75rem 0 0; font-size: .9375rem; max-width: 36ch; }
.foot-brand .brand-name { color: #fff; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 2rem; padding-top: 1.25rem; }
.foot-note p { max-width: 90ch; margin: 0; }

/* --------------------------------------------------------- языковой шлюз */
.page-gate { display: grid; place-items: center; min-height: 100dvh; text-align: center; background: var(--paper-2); }
.gate { padding: 2rem; }
.gate-logo { width: 120px; margin: 0 auto 1.5rem; border-radius: var(--radius-lg); }
.gate h1 { font-size: clamp(2rem, 8vw, 3.5rem); text-transform: uppercase; margin: .5rem 0 1rem; }
.gate .muted { max-width: 48ch; margin: 0 auto 2rem; }
.gate-langs { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.gate-langs a {
  background: var(--blue); color: #fff; border-radius: var(--radius); padding: .8rem 1.6rem;
  text-decoration: none; font-weight: 700;
}
.gate-langs a:visited { color: #fff; }
.gate-langs a:hover { background: var(--blue-dark); }

/* ------------------------------------------- спокойный режим (60+ / calm) */
body.calm { font-size: 1.25rem; line-height: 1.7; }
body.calm .sec-sub, body.calm .lead-p { font-size: 1.3rem; }
body.calm .card { padding: 1.75rem; }
body.calm .btn { padding: 1rem 1.75rem; font-size: 1.125rem; }
body.calm .small { font-size: 1.0625rem; }
body.calm .muted { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .site-nav, .site-foot, .cta-row, .sec-form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .profile-card { border-color: #999; background: #fff; }
}
