/* ============================================================
   ЦИК Республики Южная Осетия — дизайн-система редизайна
   Концепция: «Достоинство и ясность»
   Палитра — из государственного герба: чернила, киноварь, золото
   Шрифты: Piazzolla (заголовки) + Golos Text (интерфейс)
   ============================================================ */

:root {
  /* Палитра */
  --paper: #FAF7F1;
  --paper-deep: #F3EEE4;
  --surface: #FFFFFF;
  --ink: #17181C;
  --ink-soft: #3E4048;
  --muted: #686B75;
  --red: #BC3320;
  --red-deep: #9E2916;
  --red-bright: #DE4A2F;
  --gold: #E9A81E;
  --gold-deep: #6F4E00;
  --gold-soft: #F6E3B4;
  --night: #17181D;
  --night-2: #20222A;
  --line: #E5DFD2;
  --line-strong: #D5CDBB;
  --focus: #1A56DB;

  /* Текст на тёмных поверхностях */
  --dark-hi: #E7E8EC;
  --dark-mid: #B4B6C1;
  --dark-soft: #B9BBC6;
  --dark-muted: #A9ACB8;
  --dark-faint: #8F92A0;
  --dark-body: #D6D7DE;

  /* Цвета флага (декор) */
  --flag-red: #E0472E;
  --flag-gold: #F5C11E;

  /* Типографика */
  --font-display: "Piazzolla", "Times New Roman", serif;
  --font-body: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --fs-root: 100%;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;

  --container: 1240px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-soft: 0 1px 2px rgba(23, 24, 28, 0.05), 0 8px 28px -12px rgba(23, 24, 28, 0.14);
  --shadow-lift: 0 2px 4px rgba(23, 24, 28, 0.06), 0 18px 44px -16px rgba(23, 24, 28, 0.22);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Режим повышенной контрастности (переключается панелью доступности) */
html[data-contrast="high"] {
  --paper: #FFFFFF;
  --paper-deep: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #000000;
  --ink-soft: #000000;
  --muted: #1c1c1c;
  --red: #8B1500;
  --red-deep: #6E1000;
  --red-bright: #6E1000;
  --gold: #6E4A00;
  --gold-deep: #5A3C00;
  --gold-soft: #FFFFFF;
  --night: #000000;
  --night-2: #000000;
  --line: #000000;
  --line-strong: #000000;
  --dark-hi: #FFFFFF;
  --dark-mid: #FFFFFF;
  --dark-soft: #FFFFFF;
  --dark-muted: #FFFFFF;
  --dark-faint: #FFFFFF;
  --dark-body: #FFFFFF;
  --shadow-soft: none;
  --shadow-lift: none;
}
html[data-contrast="high"] .texture { display: none !important; }
/* Золото затемняется для белого фона; на тёмных поверхностях нужен яркий тон */
html[data-contrast="high"] .hero-kicker,
html[data-contrast="high"] .count-card .cc-date,
html[data-contrast="high"] .count-card .cc-foot .dot,
html[data-contrast="high"] .docs-section .eyebrow,
html[data-contrast="high"] .docs-section .all-link:hover,
html[data-contrast="high"] .doc-card .doc-ico,
html[data-contrast="high"] .doc-card .doc-num,
html[data-contrast="high"] .side-card.accent h3,
html[data-contrast="high"] .info-card h3 .n,
html[data-contrast="high"] .step::before,
html[data-contrast="high"] .news-feature time,
html[data-contrast="high"] .chairman-card .cc-role,
html[data-contrast="high"] .footer a:hover,
html[data-contrast="high"] .breadcrumbs a:hover { color: var(--flag-gold); }

/* Крупный шрифт (панель доступности): 112.5% и 125% */
html[data-fontsize="lg"] { --fs-root: 112.5%; }
html[data-fontsize="xl"] { --fs-root: 125%; }

/* ---------- Базовое ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  font-size: var(--fs-root);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 640;
}
h1 { font-size: calc(1.4rem + 3.2vw); } /* fallback */
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); }
h2 { font-size: calc(1.25rem + 1.8vw); } /* fallback */
h2 { font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.4rem); }
h3 { font-size: calc(1.05rem + 0.7vw); line-height: 1.25; } /* fallback */
h3 { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.125rem; line-height: 1.3; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1em; }
a { color: var(--red-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2.5px; }
html[data-contrast="high"] a { text-decoration-thickness: 2px; }

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

::selection { background: var(--gold-soft); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  /* белая прослойка обеспечивает ≥3:1 индикатора на тёмных фонах (WCAG 1.4.11) */
  box-shadow: 0 0 0 2px #FFFFFF;
  border-radius: 3px;
}

/* Якоря не должны прятаться под липкой навигацией */
[id] { scroll-margin-top: 5rem; }

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

.container {
  width: 92%; /* fallback */
  max-width: var(--container);
  width: min(var(--container), 100% - 2.5rem);
  margin-left: auto; margin-right: auto;
}
@media (max-width: 560px) {
  .container { width: calc(100% - 2rem); }
}

/* Ссылка «перейти к содержанию» */
.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--night);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 0; color: #fff; }

/* Трёхцветная лента флага — сквозной мотив */
.flag-ribbon {
  height: 5px;
  background: linear-gradient(to right,
    #FFFFFF 0 33.4%, var(--flag-red) 33.4% 66.7%, var(--flag-gold) 66.7% 100%);
}
html[data-contrast="high"] .flag-ribbon { background: #000; }

/* ============================================================
   Шапка
   ============================================================ */

.topbar {
  background: var(--night);
  color: #C9CBD3;
  font-size: 0.8125rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-gap: 1rem;
  gap: 1rem;
  min-height: 42px;
  flex-wrap: wrap;
  padding-top: 4px; padding-bottom: 4px;
}
.topbar .official {
  display: inline-flex;
  align-items: center;
  grid-gap: 0.55rem;
  gap: 0.55rem;
  letter-spacing: 0.02em;
}
.topbar .official::before {
  content: "";
  width: 14px; height: 10px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff 0 33%, var(--flag-red) 33% 66%, var(--flag-gold) 66% 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}
.topbar-tools {
  display: flex;
  align-items: center;
  grid-gap: 0.25rem;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.topbar-tools a, .topbar-tools button {
  color: var(--dark-hi);
  background: transparent;
  border: 0;
  font: inherit;
  padding: 0.35rem 0.6rem;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  grid-gap: 0.45rem;
  gap: 0.45rem;
  transition: background 0.15s var(--ease-out);
}
.topbar-tools a:hover, .topbar-tools button:hover { background: rgba(255,255,255,0.12); color: #fff; }
.topbar-tools .sep { width: 1px; height: 18px; background: rgba(255,255,255,0.22); margin-left: 0.35rem; margin-right: 0.35rem; }
@media (max-width: 760px) {
  .topbar-tools [lang="os"], .topbar-tools .sep { display: none; }
  .topbar .official { font-size: 0.75rem; }
}

/* Панель доступности */
.a11y-panel {
  background: var(--night-2);
  color: var(--dark-hi);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel-inner {
  display: flex;
  align-items: center;
  grid-gap: 1.4rem;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
  font-size: 0.875rem;
}
.a11y-group { display: flex; align-items: center; gap: 0.5rem; }
.a11y-group .label { color: var(--dark-muted); margin-right: 0.2rem; }
.a11y-panel button {
  font: inherit;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] {
  background: #fff;
  color: var(--night);
  border-color: #fff;
  font-weight: 600;
}
.a11y-panel .fs-a { font-size: 0.8rem; }
.a11y-panel .fs-b { font-size: 0.95rem; }
.a11y-panel .fs-c { font-size: 1.1rem; }

.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.masthead-inner {
  display: flex;
  align-items: center;
  grid-gap: 1.1rem;
  gap: 1.1rem;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand {
  display: flex;
  align-items: center;
  grid-gap: 1.1rem;
  gap: 1.1rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-emblem {
  width: 64px; height: 64px;
  flex: none;
  filter: drop-shadow(0 2px 6px rgba(23,24,28,0.18));
}
.brand-text .brand-org {
  font-family: var(--font-display);
  font-weight: 680;
  font-size: calc(0.9rem + 0.9vw); /* fallback */
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.45rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.brand-text .brand-sub {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.3rem;
  letter-spacing: 0.015em;
}
.masthead-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  grid-gap: 0.7rem;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-gap: 0.55rem;
  gap: 0.55rem;
  font: 600 0.95rem/1.2 var(--font-body);
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(188, 51, 32, 0.55);
}
.btn-primary:hover { background: var(--red-deep); color: #fff; box-shadow: 0 12px 28px -10px rgba(158, 41, 22, 0.6); }
.btn-ghost-dark {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-gold {
  background: var(--gold);
  color: #241A02;
  box-shadow: 0 10px 24px -10px rgba(233, 168, 30, 0.6);
}
.btn-gold:hover { background: #F0B335; color: #241A02; }
html[data-contrast="high"] .btn-gold { background: #000; color: #fff; }
html[data-contrast="high"] .btn-primary { background: #000; }

/* Навигация */
.mainnav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--line);
}
.mainnav-inner {
  display: flex;
  align-items: stretch;
  grid-gap: 0.2rem;
  gap: 0.2rem;
}
.mainnav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  grid-gap: 0.2rem;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.mainnav .nav-list > li { position: relative; }
.mainnav .nav-list > li > a,
.mainnav .nav-list > li > button {
  display: inline-flex;
  align-items: center;
  grid-gap: 0.4rem;
  gap: 0.4rem;
  font: 500 0.95rem/1 var(--font-body);
  color: var(--ink-soft);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 1.05rem 1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.mainnav .nav-list > li > a:hover,
.mainnav .nav-list > li > button:hover,
.mainnav .nav-list > li > a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--red);
}
.mainnav .nav-list > li > a[aria-current="page"] { font-weight: 600; }
.mainnav .caret {
  width: 9px; height: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s var(--ease-out);
}
.mainnav li.open > button .caret { transform: rotate(225deg) translateY(-1px); }

.dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.6rem;
  display: none;
  z-index: 110;
}
.mainnav li.open > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.12s, color 0.12s;
}
.dropdown a:hover { background: var(--paper-deep); color: var(--ink); }
.dropdown a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-deep);
  box-shadow: inset 3px 0 0 var(--red);
}
.mainnav .nav-list > li > button.is-section {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--red);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.nav-search form {
  display: flex;
  align-items: center;
  grid-gap: 0.4rem;
  gap: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.5rem 0.3rem 1rem;
  margin-top: 0.55rem; margin-bottom: 0.55rem;
}
.nav-search input {
  font: 0.9rem var(--font-body);
  border: 0;
  background: transparent;
  color: var(--ink);
  width: 150px;
  outline-offset: 4px;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search button {
  border: 0;
  background: var(--night);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Бургер и мобильная навигация */
.nav-burger {
  display: none;
  align-items: center;
  grid-gap: 0.6rem;
  gap: 0.6rem;
  background: none;
  border: 0;
  font: 600 0.95rem var(--font-body);
  color: var(--ink);
  padding: 1rem 0.4rem;
  cursor: pointer;
}
.nav-burger .lines {
  width: 22px;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}
.nav-burger .lines span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
body.nav-open .nav-burger .lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger .lines span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger .lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .mainnav-inner { justify-content: space-between; }
  .mainnav .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    grid-gap: 0;
    gap: 0;
    padding: 0.5rem 1rem 1.2rem;
    max-height: calc(100vh - 130px);
    overflow: auto;
  }
  body.nav-open .mainnav .nav-list { display: flex; }
  .mainnav .nav-list > li > a,
  .mainnav .nav-list > li > button {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.3rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .dropdown {
    position: static;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.4rem 0.8rem;
    min-width: 0;
    background: transparent;
  }
  .nav-search { display: none; }
  .masthead-actions .btn { display: none; }
}

/* ============================================================
   Герой — выборы
   ============================================================ */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(233, 168, 30, 0.16), transparent 60%),
    radial-gradient(900px 520px at -10% 110%, rgba(188, 51, 32, 0.12), transparent 55%),
    var(--night);
  color: #EDEDF0;
  overflow: hidden;
}
.hero .texture {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(closest-side at 70% 40%, black, transparent 130%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 5vw; /* fallback */
  grid-gap: 5vw;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: 7vw; padding-bottom: 7vw; /* fallback */
  padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  grid-gap: 0.7rem;
  gap: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.hero-kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--gold);
}
.hero h1 {
  color: #fff;
  font-size: calc(1.25rem + 2.1vw); /* fallback */
  font-size: clamp(1.8rem, 1.25rem + 2.1vw, 2.8rem);
  font-weight: 520;
  margin-bottom: 1rem;
  max-width: 24ch;
  text-wrap: balance;
}
.hero-lede {
  font-size: var(--text-lg);
  color: var(--dark-soft);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Карточка отсчёта */
.count-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.7rem 1.7rem 1.4rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.count-card .cc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.count-card .cc-title {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
  font-weight: 600;
}
.count-card .cc-date {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.05rem;
  white-space: nowrap;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0.7rem;
  gap: 0.7rem;
  text-align: center;
}
.countdown .unit {
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.9rem 0.4rem 0.7rem;
}
.countdown .num {
  font-family: var(--font-display);
  font-size: calc(1.4rem + 1.6vw); /* fallback */
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.countdown .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999CA8;
  margin-top: 0.45rem;
}
.count-card .cc-foot {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,0.18);
  font-size: 0.875rem;
  color: var(--dark-soft);
  display: flex;
  align-items: center;
  grid-gap: 0.6rem;
  gap: 0.6rem;
}
.count-card .cc-foot .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(233,168,30,0.2);
  flex: none;
}

/* Ключевые даты кампании */
.key-dates {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.key-dates-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 1.6rem; padding-bottom: 1.6rem;
  grid-gap: 1.5rem;
  gap: 1.5rem;
}
.kd-item {
  display: flex;
  grid-gap: 0.9rem;
  gap: 0.9rem;
  align-items: flex-start;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}
.kd-item:first-child { border-left-color: var(--red); }
.kd-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.05;
  white-space: nowrap;
}
.kd-date small { display: block; font: 500 0.72rem/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kd-text { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.45; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .key-dates-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .key-dates-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Сервисные карточки «Что вы хотите сделать?»
   ============================================================ */

.services { padding-top: 6vw; padding-bottom: 4vw; } /* fallback */
.services { padding-top: clamp(2.8rem, 6vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 3vw; /* fallback */
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}
.section-head .eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}
.section-head h2 { margin: 0; }
.section-head .all-link {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  grid-gap: 0.4rem;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.section-head .all-link:hover { color: var(--red-deep); border-bottom-color: var(--red); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1.1rem;
  gap: 1.1rem;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-gap: 0.7rem;
  gap: 0.7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), border-color 0.18s;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(to right, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
  color: var(--ink);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-deep);
  color: var(--red);
  flex: none;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0.2rem 0 0;
}
.service-card p { font-size: 0.875rem; color: var(--muted); margin: 0; line-height: 1.5; }
.service-card .go {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red-deep);
  display: inline-flex;
  align-items: center;
  grid-gap: 0.35rem;
  gap: 0.35rem;
}
.service-card .go::after { content: "→"; transition: transform 0.18s var(--ease-out); }
.service-card:hover .go::after { transform: translateX(4px); }

@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Новости
   ============================================================ */

.news-section {
  background: var(--paper);
  padding-top: 4vw; padding-bottom: 6vw; /* fallback */
  padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 3vw; /* fallback */
  grid-gap: 3vw;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.news-feature {
  position: relative;
  display: block;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--night);
  box-shadow: var(--shadow-lift);
  min-height: 420px;
}
.news-feature img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.news-feature:hover img { transform: scale(1.04); opacity: 0.45; }
.news-feature .nf-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 2rem;
  background: linear-gradient(to top, rgba(10,11,14,0.92) 15%, rgba(10,11,14,0.25) 60%, rgba(10,11,14,0.15));
}
.news-feature .badge {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.news-feature h3 {
  color: #fff;
  font-size: calc(1.1rem + 1.2vw); /* fallback */
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem);
  max-width: 24ch;
  margin-bottom: 0.6rem;
}
.news-feature .nf-excerpt { color: #C6C8D1; font-size: 0.95rem; max-width: 60ch; margin-bottom: 0.9rem; }
.news-feature time { color: var(--gold); font-size: 0.85rem; font-weight: 600; }

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: block;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s;
}
.news-item:first-child { padding-top: 0.2rem; }
.news-item:hover { background: linear-gradient(to right, transparent, rgba(233,168,30,0.07)); }
.news-item time {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
}
.news-item .ni-title {
  display: block;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-top: 0.3rem;
  transition: color 0.15s;
}
.news-item:hover .ni-title { color: var(--red-deep); }

@media (max-width: 980px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-feature, .news-feature .nf-body { min-height: 340px; }
}

/* ============================================================
   Документы
   ============================================================ */

.docs-section {
  background: var(--night);
  color: var(--dark-body);
  padding-top: 6vw; padding-bottom: 6vw; /* fallback */
  padding-top: clamp(3rem, 6vw, 4.8rem); padding-bottom: clamp(3rem, 6vw, 4.8rem);
  position: relative;
  overflow: hidden;
}
.docs-section .texture {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.5px);
  background-size: 26px 26px;
  pointer-events: none;
}
.docs-section .section-head { position: relative; }
.docs-section h2 { color: #fff; }
.docs-section .eyebrow { color: var(--gold); }
.docs-section .all-link { color: #fff; }
.docs-section .all-link:hover { color: var(--gold); }

.doc-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
}
.doc-card {
  display: flex;
  grid-gap: 1.1rem;
  gap: 1.1rem;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  color: var(--dark-body);
  transition: background 0.18s, border-color 0.18s, transform 0.18s var(--ease-out);
}
.doc-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(233,168,30,0.5);
  transform: translateY(-3px);
  color: #fff;
}
.doc-card .doc-ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(233,168,30,0.14);
  color: var(--gold);
}
.doc-card .doc-ico svg { width: 22px; height: 22px; }
.doc-card .doc-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.doc-card .doc-title {
  font-size: 0.95rem;
  line-height: 1.5;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doc-card time { display: block; margin-top: 0.55rem; font-size: 0.8rem; color: var(--dark-faint); }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Руководство / комиссия
   ============================================================ */

.leadership { padding-top: 6vw; padding-bottom: 6vw; } /* fallback */
.leadership { padding-top: clamp(3rem, 6vw, 4.8rem); padding-bottom: clamp(3rem, 6vw, 4.8rem); }
.lead-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.4fr);
  gap: 4vw; /* fallback */
  grid-gap: 4vw;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.chairman-card {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--night);
}
.chairman-card img { width: 100%; aspect-ratio: 0.92; object-fit: cover; object-position: top; }
.chairman-card .cc-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(10,11,14,0.94), rgba(10,11,14,0));
  color: #fff;
}
.chairman-card .cc-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 680;
  line-height: 1.15;
}
.chairman-card .cc-role {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.lead-body .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: calc(1rem + 0.8vw); /* fallback */
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 1.3rem;
  margin: 0 0 1.8rem;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.9rem;
  gap: 0.9rem;
}
.member-grid--cols3 { grid-template-columns: repeat(3, 1fr); margin-top: 1.4rem; margin-bottom: 2.6rem; }
@media (max-width: 860px) { .member-grid--cols3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .member-grid--cols3 { grid-template-columns: 1fr; } }
.member-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  grid-gap: 0.15rem;
  gap: 0.15rem;
}
.member-card .m-name { font-weight: 600; font-size: 1rem; }
.member-card .m-role { font-size: 0.85rem; color: var(--muted); }
.member-card .m-link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 980px) {
  .lead-layout { grid-template-columns: 1fr; }
  .chairman-card { max-width: 440px; }
}
@media (max-width: 560px) { .member-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Полоса «полезное» (наблюдатели, участки, обращения)
   ============================================================ */

.info-strip {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding-top: 5vw; padding-bottom: 5vw; /* fallback */
  padding-top: clamp(2.5rem, 5vw, 3.6rem); padding-bottom: clamp(2.5rem, 5vw, 3.6rem);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.1rem;
  gap: 1.1rem;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.info-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  grid-gap: 0.7rem;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.info-card h3 .n {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  font: 700 0.95rem var(--font-display);
  display: grid;
  place-items: center;
}
.info-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.info-card .tel {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.info-card .tel:hover { color: var(--red-deep); }
@media (max-width: 980px) { .info-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Медиа-галерея
   ============================================================ */

.media-section { padding-top: 6vw; padding-bottom: 6vw; } /* fallback */
.media-section { padding-top: clamp(3rem, 6vw, 4.6rem); padding-bottom: clamp(3rem, 6vw, 4.6rem); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 0.9rem;
  gap: 0.9rem;
}
.media-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  background: var(--night);
}
.media-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.media-tile:hover img { transform: scale(1.05); opacity: 0.85; }
.media-tile .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.1rem 0.85rem;
  background: linear-gradient(to top, rgba(10,11,14,0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}
.media-tile.t-a { grid-column: span 6; aspect-ratio: 16/9.4; }
.media-tile.t-b { grid-column: span 3; aspect-ratio: 3/3.1; }
.media-tile.t-c { grid-column: span 3; aspect-ratio: 3/3.1; }
@media (max-width: 860px) {
  .media-tile.t-a { grid-column: span 12; }
  .media-tile.t-b, .media-tile.t-c { grid-column: span 6; }
}

/* ============================================================
   Партнёры
   ============================================================ */

.partners {
  border-top: 1px solid var(--line);
  padding-top: 2.2rem; padding-bottom: 2.2rem;
}
.partners-inner {
  display: flex;
  align-items: center;
  grid-gap: 2.5rem;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.partners .p-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.partners a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  grid-gap: 0.5rem;
  gap: 0.5rem;
  transition: color 0.15s;
}
.partners a::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.partners a:hover { color: var(--red-deep); }

/* ============================================================
   Футер
   ============================================================ */

.footer {
  background: var(--night);
  color: var(--dark-mid);
  font-size: 0.92rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  grid-gap: 2.2rem;
  gap: 2.2rem;
  padding-top: 5vw; padding-bottom: 2.2rem; /* fallback */
  padding-top: clamp(2.6rem, 5vw, 3.8rem); padding-bottom: 2.2rem;
}
.footer .f-brand {
  display: flex;
  grid-gap: 1rem;
  gap: 1rem;
  align-items: flex-start;
}
.footer .f-brand img { width: 56px; height: 56px; flex: none; }
.footer .f-brand .name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.25;
}
.footer .f-brand .sub { font-size: 0.8rem; color: var(--dark-faint); margin-top: 0.4rem; }
.footer h4 {
  color: #fff;
  font: 600 0.8rem/1 var(--font-body);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer a { color: var(--dark-mid); text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: var(--gold); }
.footer address { font-style: normal; line-height: 1.7; }
.footer .f-tel { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.3rem; padding-bottom: 1.3rem;
  display: flex;
  justify-content: space-between;
  grid-gap: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--dark-faint);
}
.footer-bottom a { color: var(--dark-mid); }
@media (max-width: 980px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }

/* ============================================================
   Внутренние страницы
   ============================================================ */

.page-hero {
  background:
    radial-gradient(900px 320px at 90% -40%, rgba(233,168,30,0.14), transparent 60%),
    var(--night);
  color: #fff;
  padding-top: 5vw; padding-bottom: 5vw; /* fallback */
  padding-top: clamp(2.4rem, 5vw, 3.6rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
}
.breadcrumbs {
  font-size: 0.82rem;
  color: #9A9DA9;
  margin-bottom: 1rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; color: #565964; }
.breadcrumbs a { color: var(--dark-mid); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--dark-hi); }
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; font-weight: 600; }
.page-hero .page-lede { color: var(--dark-soft); font-size: var(--text-lg); max-width: 62ch; margin: 0.6rem 0 0; }

.page-body { padding-top: 5vw; padding-bottom: 5vw; } /* fallback */
.page-body { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 4vw; /* fallback */
  grid-gap: 4vw;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.page-grid > * { min-width: 0; }
@media (max-width: 980px) { .page-grid { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--red); font-weight: 700; }

/* Утилиты */
.section-gap { margin-top: 2.4rem; }
.tel--sm { font-size: 1.05rem; }

/* Поиск по сайту: результаты */
.sr-item {
  display: block;
  padding: 1.15rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.sr-item:hover { background: linear-gradient(to right, transparent, rgba(233,168,30,0.06)); }
.sr-item .sr-section {
  font: 700 0.72rem var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.sr-item .sr-title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-top: 0.3rem;
  transition: color 0.15s;
}
.sr-item:hover .sr-title { color: var(--red-deep); }
.sr-item .sr-snippet {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 0.3rem;
}
mark {
  background: var(--gold-soft);
  color: inherit;
  padding: 0 0.12em;
  border-radius: 3px;
}
html[data-contrast="high"] mark { background: #000; color: #fff; }
.search-status { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0 0.8rem; }

/* Ссылка «Поиск» в мобильной навигации */
.nav-search-link { display: none; }
@media (max-width: 980px) {
  .nav-search-link {
    display: inline-flex;
    align-items: center;
    grid-gap: 0.5rem;
    gap: 0.5rem;
    font: 600 0.95rem var(--font-body);
    color: var(--ink);
    text-decoration: none;
    padding: 1rem 0.4rem;
  }
}

/* Избирательные участки */
.district-section { margin-top: 2.2rem; }
.district-section > h2 {
  display: flex;
  align-items: baseline;
  grid-gap: 0.7rem;
  gap: 0.7rem;
  font-size: calc(1.1rem + 0.6vw); /* fallback */
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem);
}
.district-section > h2 .cnt {
  font: 600 0.8rem var(--font-body);
  color: var(--muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.station-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.9rem;
  gap: 0.9rem;
  margin: 1.1rem 0 0.4rem;
}
.station-card {
  display: flex;
  grid-gap: 1rem;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
.station-card .st-num {
  flex: none;
  min-width: 58px;
  text-align: center;
  font: 700 1.15rem var(--font-display);
  color: var(--red);
  background: var(--paper-deep);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.55rem;
  line-height: 1.1;
}
.station-card .st-num small {
  display: block;
  font: 600 0.62rem var(--font-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}
.station-card .st-addr { font-weight: 600; font-size: 0.98rem; line-height: 1.45; }
.station-card .st-borders { margin-top: 0.45rem; }
.station-card .st-borders summary {
  cursor: pointer;
  font: 600 0.85rem var(--font-body);
  color: var(--red-deep);
}
.station-card .st-borders summary:hover { color: var(--red); }
.station-card .st-borders p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0.45rem 0 0;
}
@media (max-width: 820px) { .station-grid { grid-template-columns: 1fr; } }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.1rem;
}
.side-card h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.side-card a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.side-card a:hover { color: var(--red-deep); }
.side-card.accent { background: var(--night); border-color: var(--night); color: var(--dark-body); }
.side-card.accent h3 { color: var(--gold); }
.side-card.accent .tel { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; display: block; margin: 0.2rem 0; }
.side-card.accent p { font-size: 0.875rem; color: var(--dark-muted); }

/* Поиск внутри страницы (не зависит от навигационного) */
.inline-search form {
  display: flex;
  align-items: center;
  grid-gap: 0.4rem;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.5rem 0.35rem 1.1rem;
}
.inline-search input {
  font: 0.95rem var(--font-body);
  border: 0;
  background: transparent;
  color: var(--ink);
  flex: 1;
  min-width: 0;
}
.inline-search input::placeholder { color: var(--muted); }
.inline-search button {
  border: 0;
  background: var(--night);
  color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}

/* Табы (документы) */
.tabs {
  display: flex;
  grid-gap: 0.4rem;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.6rem;
}
.tabs [role="tab"] {
  font: 600 0.95rem var(--font-body);
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.tabs [role="tab"]:hover { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* Строки документов */
.doc-row {
  display: flex;
  grid-gap: 1.2rem;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.25rem 0.3rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.doc-row:hover { background: linear-gradient(to right, transparent, rgba(233,168,30,0.06)); }
.doc-row .dr-meta {
  flex: none;
  width: 110px;
  text-align: left;
}
.doc-row .dr-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red);
  white-space: nowrap;
}
.doc-row .dr-date { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.doc-row .dr-title { font-size: 0.98rem; line-height: 1.55; font-weight: 500; transition: color 0.15s; }
.doc-row:hover .dr-title { color: var(--red-deep); }
.doc-row .dr-tag {
  flex: none;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .doc-row { flex-direction: column; gap: 0.5rem; }
  .doc-row .dr-tag { align-self: flex-start; }
}

/* Фильтры-чипсы (новости) */
.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.chip {
  font: 600 0.875rem var(--font-body);
  color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--night);
  color: #fff;
  border-color: var(--night);
}

/* Карточки новостей на странице новостей */
.news-grid-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.1rem;
  gap: 1.1rem;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  grid-gap: 0.55rem;
  gap: 0.55rem;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.news-card time {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--red);
}
.news-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  margin: 0;
}
.news-card p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.55; }
@media (max-width: 760px) { .news-grid-page { grid-template-columns: 1fr; } }

/* Люди (страница комиссии) */
.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1.1rem;
  gap: 1.1rem;
  margin-top: 1.6rem; margin-bottom: 2.4rem;
}
.person-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.person-card .ph {
  aspect-ratio: 1/0.95;
  background: linear-gradient(140deg, var(--paper-deep), #E9E2D2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.person-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-card .pc-body { padding: 1.15rem 1.25rem 1.3rem; }
.person-card .pc-bio { font-size: 0.875rem; color: var(--muted); margin: 0.6rem 0 0; }
.person-card .pc-name { font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.person-card .pc-role {
  font-size: 0.8rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}
@media (max-width: 860px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .person-grid { grid-template-columns: 1fr; } }

/* Шаги (аккредитация наблюдателей) */
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 1.6rem; margin-bottom: 1.6rem; }
.step {
  display: flex;
  grid-gap: 1.2rem;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  font: 700 1.1rem var(--font-display);
  display: grid;
  place-items: center;
}
.step h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* Контакты */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1.1rem;
  gap: 1.1rem;
  margin-top: 0.5rem; margin-bottom: 2rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.contact-card .cc-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.contact-card .cc-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1.3;
}
.contact-card .cc-value a { text-decoration: none; color: var(--ink); }
.contact-card .cc-value a:hover { color: var(--red-deep); }
.contact-card .cc-note { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* Таблицы */
.table-wrap { overflow-x: auto; margin-top: 1.4rem; margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 560px;
}
table.data th {
  text-align: left;
  font: 700 0.75rem var(--font-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-deep);
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(233,168,30,0.05); }

/* Уведомление (важное) */
.notice {
  display: flex;
  grid-gap: 1rem;
  gap: 1rem;
  background: linear-gradient(to right, rgba(188,51,32,0.06), rgba(233,168,30,0.07));
  border: 1px solid rgba(188,51,32,0.25);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-top: 1.4rem; margin-bottom: 1.4rem;
  font-size: 0.95rem;
}
.notice strong { color: var(--red-deep); }

/* ============================================================
   Анимации появления
   ============================================================ */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise 0.7s var(--ease-out) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }

/* Контент прячется для анимации только при работающем JS (класс js на html) */
html.js .io-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
html.js .io-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .io-reveal { opacity: 1; transform: none; }
}
@media print {
  .io-reveal { opacity: 1 !important; transform: none !important; }
}

/* Печать */
@media print {
  .topbar, .a11y-panel, .mainnav, .hero-cta, .footer, .nav-burger, .masthead-actions { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
}
