/* Design system — Общественная палата г.о. Пушкинский
   Ported from design/prototype.html. Self-hosted fonts only. */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golos-text-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --c-bg: #FFFFFF;
  --c-bg-soft: #F2F7F3;
  --c-bg-tint: #EAF3EC;
  --c-border: #E3E7EC;
  --c-border-soft: #A9B2BC;
  --c-text: #1D1D1F;
  --c-muted: #66727F;
  --c-accent: #166534;
  --c-accent-hover: #0F4C28;
  --c-dark: #123D24;
  --c-gold: #C9A227;
  --c-gold-hover: #E0BC49;
  --c-plate: #4E6356;

  --font: 'Golos Text', system-ui, 'Segoe UI', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 3vw, 40px);
  --section-y: clamp(52px, 7vw, 84px);
  --r-card: 12px;
  --r-ctl: 8px;
  --r-sm: 6px;
  --btn-h: 48px;

  --pattern-tint: repeating-linear-gradient(45deg, rgba(22, 101, 52, .045) 0 10px, transparent 10px 20px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; cursor: pointer; border: none; background: transparent; padding: 0; color: inherit; }
a { color: var(--c-accent); }
a:hover { color: var(--c-accent-hover); }
::selection { background: var(--c-bg-tint); }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--c-accent); color: #FFFFFF; padding: 10px 16px;
  border-radius: var(--r-ctl); text-decoration: none; font-weight: 500;
  transition: top .15s;
}
.skip-link:focus { top: 8px; color: #FFFFFF; }

/* ---------- layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section--top { border-top: 1px solid var(--c-border); }
.section--soft { background: var(--c-bg-soft); }
.stack > * + * { margin-top: 16px; }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--c-accent);
}
.eyebrow--muted { color: var(--c-muted); font-size: 12.5px; letter-spacing: .06em; }

.h1, h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 600;
  line-height: 1.15; letter-spacing: -0.01em;
}
.h1--hero { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; letter-spacing: -0.015em; max-width: 840px; text-wrap: pretty; }
.h2, h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.h3, h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--c-muted); line-height: 1.55; max-width: 620px; }
.muted { color: var(--c-muted); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 13px; }

.breadcrumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--c-muted); list-style: none;
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs .sep { color: var(--c-border-soft); }

/* diamond motif */
.diamond {
  width: 6px; height: 6px; background: var(--c-gold);
  transform: rotate(45deg); flex: none;
}
.rule-diamonds {
  display: flex; justify-content: center; gap: 14px;
  padding: clamp(36px, 5vw, 52px) 0;
}

/* ---------- header ---------- */
.site-header { position: relative; background: #FFFFFF; border-bottom: 1px solid var(--c-border); }
.header-top {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 12px 28px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--c-text);
}
.brand__gerb { width: 46px; height: auto; flex: none; }
.brand__name { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; }
.brand__sub { display: block; font-size: 12.5px; color: var(--c-muted); line-height: 1.35; max-width: 320px; }

.header-tools {
  margin-left: auto; display: flex; align-items: center;
  gap: 10px 20px; flex-wrap: wrap;
}
.header-phone {
  text-decoration: none; color: var(--c-text);
  font-weight: 600; font-size: 16px; white-space: nowrap;
}
.header-phone:hover { color: var(--c-accent); }

.a11y-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--c-border); border-radius: var(--r-ctl);
  padding: 9px 14px; font-size: 13.5px; font-weight: 500;
  color: var(--c-text); background: #FFFFFF;
}
.a11y-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* burger */
.nav-toggle {
  position: absolute; width: 1px; height: 1px; opacity: 0;
  margin: 0; pointer-events: none;
}
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-border);
  border-radius: var(--r-ctl); align-items: center; justify-content: center;
  cursor: pointer; color: var(--c-text); background: #FFFFFF;
}
.burger:hover { border-color: var(--c-accent); color: var(--c-accent); }
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
}
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ''; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.site-header:has(.nav-toggle:focus-visible) .burger {
  outline: 2px solid var(--c-accent); outline-offset: 2px;
}

/* ---------- nav ---------- */
.site-nav { border-top: 1px solid var(--c-border); }
.nav-list {
  display: flex; gap: 30px; list-style: none;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative; display: block; flex: none;
  padding: 14px 2px 17px; text-decoration: none;
  font-size: 15px; font-weight: 500; color: var(--c-text);
}
.nav-link:hover { color: var(--c-accent-hover); }
.nav-link:focus-visible { outline-offset: -2px; }
.nav-link--active { color: var(--c-accent); }
.nav-link--active::after {
  content: ''; position: absolute; left: 50%; bottom: 8px;
  width: 6px; height: 6px; margin-left: -3px;
  background: var(--c-gold); transform: rotate(45deg);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-h); padding: 0 30px; border-radius: var(--r-ctl);
  font-size: 16px; font-weight: 500; text-decoration: none;
  background: var(--c-accent); color: #FFFFFF; border: 1px solid var(--c-accent);
}
.btn:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: #FFFFFF; }
.btn--ghost { background: #FFFFFF; color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent); color: #FFFFFF; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.link-arrow {
  display: inline-block; font-size: 15px; font-weight: 500;
  color: var(--c-accent); text-decoration: none;
}

/* chips (rubric filter) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: var(--r-ctl); border: 1px solid var(--c-border);
  background: #FFFFFF; color: var(--c-text);
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
.chip--active {
  background: var(--c-accent); border-color: var(--c-accent); color: #FFFFFF;
}
.chip--active:hover { background: var(--c-accent-hover); color: #FFFFFF; }

.tag {
  display: inline-flex; align-items: center; padding: 4px 9px;
  border-radius: var(--r-sm); background: var(--c-bg-tint); color: var(--c-accent);
  font-size: 12px; font-weight: 500; line-height: 1.3;
}

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--news { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid--members { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: 20px; }
.grid--thirds { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }

.card {
  display: flex; flex-direction: column;
  background: #FFFFFF; border: 1px solid var(--c-border);
  border-radius: var(--r-card); overflow: hidden;
  text-decoration: none; color: var(--c-text);
}
.card:hover { border-color: var(--c-accent); color: var(--c-text); }
.card--row { flex-direction: row; flex-wrap: wrap; }
.card__body { display: block; padding: 16px 18px 20px; }
.card__meta { display: flex; gap: 6px 12px; align-items: baseline; flex-wrap: wrap; }
.card__rubric { font-size: 13px; font-weight: 600; color: var(--c-accent); }
.card__date { font-size: 13px; color: var(--c-muted); }
.card__title {
  margin-top: 10px; font-size: 17px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__name { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.card__role { display: block; margin-top: 4px; font-size: 12.5px; color: var(--c-muted); line-height: 1.45; }

.thumb {
  display: flex; align-items: center; justify-content: center;
  background-color: var(--c-bg-tint); background-image: var(--pattern-tint);
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--3x2 { aspect-ratio: 3 / 2; }
.thumb--3x4 { aspect-ratio: 3 / 4; }
.thumb__placeholder {
  font-family: var(--font-mono); font-size: 11px; color: var(--c-plate);
  letter-spacing: .04em; padding: 0 14px; text-align: center;
}

.tile {
  background: var(--c-bg-tint); border-radius: var(--r-card);
  padding: 26px 26px 30px;
}
.tile__num { font-size: 38px; font-weight: 600; color: var(--c-accent); line-height: 1; }
.tile__text { margin-top: 14px; font-size: 16px; font-weight: 500; line-height: 1.5; max-width: 280px; }

.panel-dark {
  background: var(--c-dark); border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 52px); color: #FFFFFF;
}
.panel-dark .h2, .panel-dark h2 { color: #FFFFFF; }
.panel-dark a { color: var(--c-gold); }
.panel-dark a:hover { color: var(--c-gold-hover); }

.panel-tint { background: var(--c-bg-tint); border-radius: var(--r-card); padding: 28px; }

/* social pills */
.soc-list { display: flex; gap: 6px; flex-wrap: wrap; }
.soc {
  font-size: 11px; font-weight: 600; color: var(--c-muted);
  border: 1px solid var(--c-border); border-radius: var(--r-sm);
  padding: 5px 9px; text-decoration: none; letter-spacing: .02em;
}
.soc:hover { color: var(--c-accent); border-color: var(--c-accent); }

/* ---------- lists (documents, commissions) ---------- */
.rowlist { border-bottom: 1px solid var(--c-border); }
.rowlist__item {
  border-top: 1px solid var(--c-border); padding: 18px 0;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.doc-icon {
  flex: none; width: 46px; height: 46px; border: 1px solid var(--c-border);
  border-radius: var(--r-ctl); display: inline-flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 600;
  color: var(--c-accent); letter-spacing: .04em;
}
.doc-title { display: block; font-size: 16px; font-weight: 500; line-height: 1.4; }
.doc-meta { display: block; margin-top: 4px; font-size: 13px; color: var(--c-muted); }

.bullet-item { position: relative; padding-left: 20px; }
.bullet-item::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; background: var(--c-gold); transform: rotate(45deg);
}

/* ---------- pagination ---------- */
.pagination { margin-top: 40px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  width: 44px; height: 44px; border-radius: var(--r-ctl);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--c-border); color: var(--c-text);
}
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .is-current {
  background: var(--c-accent); border-color: var(--c-accent); color: #FFFFFF;
}

/* ---------- article body (sanitized HTML) ---------- */
.prose { max-width: 720px; font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 18px; text-wrap: pretty; }
.prose h2 { margin: 30px 0 14px; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.prose h3 { margin: 24px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.prose ul, .prose ol { list-style: none; margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.prose ul > li { position: relative; padding-left: 20px; line-height: 1.55; }
.prose ul > li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; background: var(--c-gold); transform: rotate(45deg);
}
.prose ol { counter-reset: pl; }
.prose ol > li { position: relative; padding-left: 26px; line-height: 1.55; counter-increment: pl; }
.prose ol > li::before {
  content: counter(pl) '.'; position: absolute; left: 0; top: 0;
  color: var(--c-accent); font-weight: 600;
}
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--c-gold); color: var(--c-muted);
}
.prose img { margin: 24px 0; border-radius: var(--r-card); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- video ---------- */
.video-facade {
  position: relative; margin: 24px 0; max-width: 840px;
  aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden;
  background-color: var(--c-bg-tint); background-image: var(--pattern-tint);
}
.video-facade__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border: 0;
}
.video-facade__btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: rgba(18, 61, 36, .34); color: #FFFFFF;
}
.video-facade__btn:hover { background: rgba(18, 61, 36, .48); }
.video-facade__play {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}
.video-facade__btn:hover .video-facade__play { background: #FFFFFF; }
.video-facade__play svg { width: 30px; height: 30px; }
.video-facade__label {
  font-size: 14px; font-weight: 500; color: #FFFFFF;
  padding: 0 16px; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.video-facade > .video-facade__play {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
}
.video-facade__hint {
  position: absolute; left: 0; right: 0; bottom: 16px;
  padding: 0 16px; text-align: center;
  font-size: 13.5px; color: var(--c-plate);
}
.video-facade iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-native {
  margin: 24px 0; max-width: 840px; width: 100%;
  aspect-ratio: 16 / 9; background: #000000;
  border-radius: var(--r-card); overflow: hidden;
}
.video-native video { width: 100%; height: 100%; object-fit: contain; background: #000000; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--c-dark); color: #FFFFFF; }
.site-footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(201, 162, 39, .055) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(201, 162, 39, .055) 0 1px, transparent 1px 22px);
}
.footer-inner { position: relative; padding-top: 52px; padding-bottom: 24px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 36px 40px;
}
.footer-org { font-size: 16px; font-weight: 600; line-height: 1.45; max-width: 280px; }
.footer-note { margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .62); line-height: 1.55; max-width: 260px; }
.footer-head {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-gold);
}
.footer-text { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); line-height: 1.65; max-width: 260px; }
.footer-phone { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.footer-phone a { color: #FFFFFF; text-decoration: none; }
.footer-phone a:hover { color: var(--c-gold); }
.footer-mail { margin-top: 4px; font-size: 14px; line-height: 1.6; }
.footer-mail a { color: rgba(255, 255, 255, .85); }
.footer-mail a:hover { color: var(--c-gold); }
.footer-soc { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.footer-soc a {
  width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--r-ctl); display: inline-flex; align-items: center;
  justify-content: center; color: #FFFFFF; text-decoration: none;
  font-weight: 600; font-size: 13.5px; letter-spacing: .02em;
}
.footer-soc a:hover { border-color: var(--c-gold); color: var(--c-gold); }
.footer-links { list-style: none; margin-top: 10px; }
.footer-links li + li { margin-top: 6px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: var(--c-gold); }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .62); line-height: 1.6;
}
.site-footer :focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.error-code {
  font-size: clamp(64px, 14vw, 120px); font-weight: 600;
  line-height: 1; color: var(--c-accent); letter-spacing: -0.02em;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .site-nav { display: none; }
  .nav-toggle:checked ~ .site-nav,
  .site-header:has(.nav-toggle:checked) .site-nav { display: block; }
  .nav-list {
    flex-direction: column; gap: 0; overflow: visible; white-space: normal;
    padding-top: 6px; padding-bottom: 10px;
  }
  .nav-list li + li { border-top: 1px solid var(--c-border); }
  .nav-link { padding: 14px 0; font-size: 16px; }
  .nav-link--active::after { left: auto; right: 2px; bottom: auto; top: 20px; margin-left: 0; }
}

@media (max-width: 700px) {
  .a11y-btn__label { display: none; }
  .a11y-btn { padding: 9px 11px; }
  .grid--members { grid-template-columns: repeat(2, 1fr); }
  .brand__gerb { width: 40px; }
  .brand__sub { max-width: 220px; }
}

@media (max-width: 420px) {
  .header-phone { font-size: 15px; }
  .brand__name { font-size: 15.5px; }
  .brand__sub { font-size: 11.5px; }
  .grid--members { grid-template-columns: 1fr; }
  .btn { padding: 0 20px; width: 100%; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
}

/* ---------- accessibility (версия для слабовидящих) ---------- */
html { font-size: 100%; }
html.a11y-on body { font-size: 1rem; }
html.a11y-font-1 { font-size: 100%; }
html.a11y-font-2 { font-size: 118.75%; }
html.a11y-font-3 { font-size: 137.5%; }
html.a11y-font-2 body { zoom: 1.08; }
html.a11y-font-3 body { zoom: 1.18; }

html.a11y-spacing-2 body, html.a11y-spacing-2 body * { letter-spacing: .09em; word-spacing: .12em; }

.a11y-panel { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); }
.a11y-panel[hidden] { display: none; }
.a11y-panel__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding-top: 12px; padding-bottom: 12px;
}
.a11y-group { display: flex; align-items: center; gap: 10px; }
.a11y-group--reset { margin-left: auto; }
.a11y-group__label { font-size: 13.5px; color: var(--c-muted); }
.a11y-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.a11y-opt {
  border: 1px solid var(--c-border-soft); border-radius: var(--r-sm);
  background: #FFFFFF; color: var(--c-text);
  padding: 7px 12px; font-size: 14px; line-height: 1.2;
}
.a11y-opt:hover { border-color: var(--c-accent); }
.a11y-opt.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #FFFFFF; }
.a11y-opt--bw { background: #FFFFFF; color: #000000; }
.a11y-opt--wb { background: #000000; color: #FFFFFF; border-color: #000000; }
.a11y-reset {
  border: 1px solid var(--c-accent); border-radius: var(--r-sm);
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--c-accent); background: #FFFFFF;
}
.a11y-reset:hover { background: var(--c-accent); color: #FFFFFF; }

/* colour schemes */
html.a11y-scheme-bw body, html.a11y-scheme-bw body *,
html.a11y-scheme-bw .site-header, html.a11y-scheme-bw .site-footer,
html.a11y-scheme-bw .a11y-panel {
  background: #FFFFFF !important; background-image: none !important;
  color: #000000 !important; border-color: #000000 !important;
  box-shadow: none !important;
}
html.a11y-scheme-bw a, html.a11y-scheme-bw a * { color: #00007A !important; text-decoration: underline; }
html.a11y-scheme-bw .a11y-opt, html.a11y-scheme-bw .a11y-reset,
html.a11y-scheme-bw .btn, html.a11y-scheme-bw button { border: 1px solid #000000 !important; }
html.a11y-scheme-bw .a11y-opt.is-active { background: #000000 !important; color: #FFFFFF !important; }

html.a11y-scheme-wb body, html.a11y-scheme-wb body *,
html.a11y-scheme-wb .site-header, html.a11y-scheme-wb .site-footer,
html.a11y-scheme-wb .a11y-panel {
  background: #000000 !important; background-image: none !important;
  color: #FFFFFF !important; border-color: #FFFFFF !important;
  box-shadow: none !important;
}
html.a11y-scheme-wb a, html.a11y-scheme-wb a * { color: #FFE600 !important; text-decoration: underline; }
html.a11y-scheme-wb .a11y-opt, html.a11y-scheme-wb .a11y-reset,
html.a11y-scheme-wb .btn, html.a11y-scheme-wb button { border: 1px solid #FFFFFF !important; }
html.a11y-scheme-wb .a11y-opt.is-active { background: #FFFFFF !important; color: #000000 !important; }
html.a11y-scheme-wb img, html.a11y-scheme-bw img { filter: grayscale(1) contrast(1.2); }

/* images off — alt text stays visible */
html.a11y-noimg img {
  display: inline-block; width: auto !important; height: auto !important;
  min-height: 1.4em; padding: 4px 8px; filter: none !important;
  border: 1px dashed currentColor; border-radius: var(--r-sm);
  font-size: .95em; color: inherit; background: transparent !important;
}
html.a11y-noimg [style*="background-image"],
html.a11y-noimg .card__cover, html.a11y-noimg .hero,
html.a11y-noimg .video-facade, html.a11y-noimg .member__photo {
  background-image: none !important;
}

@media (max-width: 700px) {
  .a11y-panel__inner { gap: 10px 16px; }
  .a11y-group { flex-wrap: wrap; }
  .a11y-group--reset { margin-left: 0; }
}

/* Свой видеофайл в тексте новости (маркер [video:…] разворачивает сервер). */
.video-local { margin: 28px 0; }
.video-local video {
  display: block;
  width: 100%;
  max-width: 840px;
  height: auto;
  background: #123D24;
  border-radius: var(--r-card);
}
