/* =========================================================
   Портал администрации городского округа Березнегорск (демо)
   Фирменный стиль: глубокий синий + гражданский красный,
   строгая сетка, шрифт Onest (локально).
   ========================================================= */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/onest-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;
}

/* ============ Токены ============ */
:root {
  --navy-950: #071528;
  --navy-900: #0b1f3a;
  --navy-800: #12294a;
  --navy-700: #1b3a66;
  --navy-600: #2a4d80;
  --ink: #13213a;
  --text: #2c3a52;
  --muted: #56657c;
  --line: #d9e0ea;
  --line-2: #e8edf4;
  --bg: #ffffff;
  --tint: #f3f6fa;
  --tint-2: #e9eef6;
  --red: #c4262e;
  --red-700: #a11d24;
  --red-soft: #fbeaeb;
  --gold: #d9b45a;
  --green: #1d7348;
  --green-soft: #e3f3ea;
  --amber: #8a5200;
  --amber-soft: #fbf0dc;
  --grey-soft: #eceff3;
  --gu: #0d4cd3;
  --gu-soft: #eef3fe;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 2px 8px rgba(11, 31, 58, .05);
  --shadow-md: 0 2px 6px rgba(11, 31, 58, .06), 0 16px 36px -14px rgba(11, 31, 58, .22);

  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 3.4vw, 32px);
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ============ Основа ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -.025em; }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 19px; line-height: 1.3; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
:focus-visible { outline: 3px solid #2f6fdf; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 300; padding: 10px 16px; background: var(--red); color: #fff; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-700); color: #fff; }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-950); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14.5px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 16.5px; }

.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--navy-700); white-space: nowrap; }
.link-more .ico { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-more:hover .ico { transform: translateX(3px); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.eyebrow--light { color: #ffd2d4; }

/* ============ Демо-плашка ============ */
.demo-bar { background: var(--navy-950); color: #c9d4e6; font-size: 13.5px; }
.demo-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding-block: 6px; }
.demo-bar p { display: flex; align-items: center; gap: 8px; }
.demo-bar .ico { width: 16px; height: 16px; color: var(--gold); }
.demo-bar a { color: #fff; white-space: nowrap; }

/* ============ Шапка ============ */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
html.a11y-on .header { position: static; }
.header__top { display: flex; align-items: center; gap: 24px; min-height: 84px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand__emblem { width: 44px; height: 50px; flex: none; }
.brand__text { display: flex; flex-direction: column; font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.brand__text small { font-size: 12.5px; font-weight: 500; letter-spacing: .01em; color: var(--muted); margin-bottom: 3px; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__text small { color: #a9b8cf; }

.hsearch { flex: 1; max-width: 420px; display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--tint); transition: border-color .2s, background-color .2s; }
.hsearch:focus-within { border-color: var(--navy-700); background: #fff; }
.hsearch input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 14px; font-size: 15px; outline: none; }
.hsearch button { display: grid; place-items: center; width: 44px; height: 42px; color: var(--navy-700); }
.header__tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hotline { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.25; }
.hotline span { font-size: 12.5px; color: var(--muted); }
.hotline b { font-size: 15.5px; white-space: nowrap; }
.btn-a11y { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--navy-800); border-radius: var(--r-sm); font-weight: 600; font-size: 14.5px; color: var(--navy-900); line-height: 1.2; text-align: left; }
.btn-a11y:hover { background: var(--navy-900); color: #fff; }
.btn-a11y .ico { width: 22px; height: 22px; }
.icon-btn { display: none; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line); color: var(--ink); }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span + span { margin-top: 4px; }
.burger { flex-direction: column; justify-content: center; align-items: center; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mainnav { background: var(--navy-900); }
.mainnav ul { display: flex; flex-wrap: wrap; }
.mainnav a { display: flex; align-items: center; min-height: 50px; padding: 0 16px; color: #e4eaf4; text-decoration: none; font-weight: 500; font-size: 15.5px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.mainnav li:first-child a { padding-left: 0; }
.mainnav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .4); }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }

@media (max-width: 1180px) {
  .hotline { display: none; }
}
@media (max-width: 980px) {
  .header__top { min-height: 72px; gap: 12px; }
  .hsearch { display: none; }
  .icon-btn { display: inline-grid; }
  .burger { display: inline-flex; }
  .btn-a11y span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .btn-a11y { padding: 0; width: 44px; justify-content: center; }
  .mainnav { position: fixed; inset: var(--nav-top, 120px) 0 0 0; background: var(--navy-900); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; z-index: 49; }
  .mainnav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .mainnav ul { flex-direction: column; padding-block: 12px; }
  .mainnav li:first-child a { padding-left: 0; }
  .mainnav a { padding: 0; min-height: 56px; font-size: 18px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .mainnav a[aria-current="page"] { color: #fff; box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
}
@media (min-width: 981px) {
  .burger { display: none; }
}
@media (max-width: 520px) {
  .brand__text { font-size: 18px; }
  .brand__text small { font-size: 11px; }
  .brand__emblem { width: 36px; height: 42px; }
  .header__tools { gap: 8px; }
  .demo-bar a { display: none; }
}

/* ============ Хлебные крошки и заголовок страницы ============ */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #9aa7ba; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.phead { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: 28px 36px; }
.phead h1 { max-width: 920px; }
.phead__lead { margin-top: 12px; max-width: 760px; font-size: 18px; color: var(--muted); }
.phead__kicker { font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 8px; letter-spacing: .02em; }
.phead__meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; align-items: center; }
.phead--doc h1 { font-size: clamp(24px, 3vw, 36px); }
.phead--article { background: #fff; border-bottom: 0; padding-bottom: 20px; }
.phead--article h1 { font-size: clamp(28px, 3.6vw, 42px); }

/* ============ Секции ============ */
.section { padding-block: clamp(44px, 6vw, 72px); }
.section--tight { padding-block: clamp(28px, 4vw, 44px); }
.section--tint { background: var(--tint); }
.section--line { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.sec-head__note { color: var(--muted); font-size: 15px; max-width: 640px; }

/* ============ Hero ============ */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 21, 40, .93) 0%, rgba(11, 31, 58, .82) 46%, rgba(11, 31, 58, .45) 100%), linear-gradient(0deg, rgba(7, 21, 40, .7), transparent 40%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-block: clamp(48px, 7vw, 92px) 36px; }
.hero h1 { color: #fff; max-width: 680px; }
.hero__lead { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); color: #d6deeb; max-width: 560px; }
.hero-search { display: flex; align-items: center; margin-top: 28px; max-width: 620px; background: #fff; border-radius: var(--r-md); padding: 6px 6px 6px 16px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); color: var(--ink); }
.hero-search > .ico { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; padding: 12px; font-size: 16.5px; background: none; }
.hero-search:focus-within { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.hero__hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 14px; }
.hero__hints a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #e6ecf6; text-decoration: none; }
.hero__hints a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero__panel { background: rgba(255, 255, 255, .97); color: var(--text); border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: var(--shadow-md); border-top: 4px solid var(--red); }
.hero__panel-h { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 10px; }
.hero__panel-h .ico { color: var(--red); }
.alerts { margin-bottom: 12px; }
.alerts li { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.alerts li:first-child { padding-top: 4px; }
.alerts b { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.35; font-weight: 600; }
.alerts span { display: block; font-size: 14px; color: var(--muted); margin-top: 3px; }
.alerts .is-urgent b::before { content: "Срочно"; display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em; vertical-align: 2px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .2); }
.hero__facts div { padding: 18px 0 26px; }
.hero__facts div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero__facts dt { font-size: 13.5px; color: #b4c2d8; }
.hero__facts dd { font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: #fff; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__facts div { padding: 14px 0 16px; }
}
@media (max-width: 520px) {
  .hero-search { padding-left: 12px; }
  .hero-search > .ico { display: none; }
  .hero-search .btn { padding-inline: 16px; }
}

/* ============ Быстрые сервисы ============ */
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.qtile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; height: 100%; padding: 18px 44px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.qtile:hover { border-color: var(--navy-600); box-shadow: var(--shadow-md); color: var(--ink); transform: translateY(-2px); }
.qtile__ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tint-2); color: var(--navy-700); }
.qtile__ico .ico { width: 24px; height: 24px; }
.qtile__t { font-weight: 600; line-height: 1.3; font-size: 16px; }
.qtile__s { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.qtile__go { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: #94a3b8; transition: color .2s, transform .2s var(--ease); }
.qtile:hover .qtile__go { color: var(--red); transform: translateX(3px); }
.qtile--gu { border-color: #c9d8fa; background: var(--gu-soft); }
.qtile--gu .qtile__ico { background: var(--gu); color: #fff; }
.qtile--gu:hover { border-color: var(--gu); }
@media (max-width: 1080px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr; gap: 10px; } .qtile { padding-block: 14px; } }

/* ============ Новости на главной ============ */
.home-news { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px; }
.news-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.ncard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; height: 100%; transition: box-shadow .2s, border-color .2s; }
.ncard:hover { box-shadow: var(--shadow-md); border-color: #c4cfdd; }
.ncard__img { aspect-ratio: 3 / 2; background: var(--tint-2); overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ncard:hover .ncard__img img { transform: scale(1.03); }
.ncard__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.ncard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--muted); }
.ncard h3 a { color: var(--ink); text-decoration: none; }
.ncard h3 a::after { content: ""; position: absolute; inset: 0; }
.ncard { position: relative; }
.ncard h3 a:hover { color: var(--red); }
.ncard h3 a:focus-visible { outline: none; }
.ncard:focus-within { outline: 3px solid #2f6fdf; outline-offset: 2px; }
.ncard__lead { font-size: 15px; color: var(--text); }
.ncard--big h3 { font-size: 22px; }
.nlist { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.nlist li { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nlist a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.35; }
.nlist a::after { content: ""; position: absolute; inset: 0; }
.nlist a:hover { color: var(--red); }
.nlist .ncard__meta { margin-bottom: 4px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 12.5px; font-weight: 600; background: var(--tint-2); color: var(--navy-700); line-height: 1.5; }
.tag--red { background: var(--red-soft); color: var(--red-700); }

.home-news__side { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel__head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.panel__head h2 .ico { color: var(--red); }
.panel--navy { background: var(--navy-900); border-color: var(--navy-900); color: #d6deeb; }
.panel--navy h2 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.panel--navy p + p { margin-top: 8px; }
.panel--navy a { color: #fff; font-weight: 600; }
.ann-list li { padding: 12px 0; border-top: 1px solid var(--line-2); }
.ann-list li:first-child { border-top: 0; padding-top: 0; }
.ann-list time { font-size: 13px; color: var(--muted); }
.ann-list b { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; font-size: 15px; }
.ann-list span { display: block; font-size: 14px; color: var(--muted); }
.mini-docs li { position: relative; padding: 12px 0; border-top: 1px solid var(--line-2); }
.mini-docs li:first-child { border-top: 0; padding-top: 0; }
.mini-docs .mini-docs__req { font-size: 13px; color: var(--muted); }
.mini-docs a { display: block; color: var(--ink); font-weight: 500; text-decoration: none; font-size: 15px; line-height: 1.4; }
.mini-docs a::after { content: ""; position: absolute; inset: 0; }
.mini-docs a:hover { color: var(--red); }
@media (max-width: 1080px) {
  .home-news { grid-template-columns: 1fr; }
  .home-news__side { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .news-feature { grid-template-columns: 1fr; }
  .home-news__side { grid-template-columns: 1fr; }
}

/* ============ Глава округа ============ */
.leader { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.leader__figure { position: relative; }
.leader__art { width: 100%; height: auto; border-radius: var(--r-lg); display: block; }
.leader__figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.leader h2 { font-size: clamp(28px, 3.2vw, 40px); }
.leader__quote { margin-top: 18px; padding-left: 20px; border-left: 4px solid var(--red); font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); line-height: 1.5; max-width: 680px; }
.leader__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; padding-block: 18px; border-block: 1px solid var(--line); }
.leader__facts dt { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.leader__facts dt .ico { width: 16px; height: 16px; color: var(--red); }
.leader__facts dd { font-weight: 600; color: var(--ink); margin-top: 2px; }
.leader__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 860px) {
  .leader { grid-template-columns: 1fr; }
  .leader__figure { max-width: 300px; }
  .leader__facts { grid-template-columns: 1fr; }
}

/* ============ Мероприятия ============ */
.events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); height: 100%; }
.event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--r-sm); background: var(--navy-900); color: #fff; padding: 10px 4px; text-align: center; line-height: 1.1; align-self: start; }
.event__date b { font-size: 28px; font-weight: 700; }
.event__date span { font-size: 13px; text-transform: lowercase; color: #c3cee0; margin-top: 3px; }
.event h3 { font-size: 16.5px; margin: 6px 0 6px; }
.event__meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.event__meta span { display: flex; align-items: center; gap: 6px; }
.event__meta .ico { width: 15px; height: 15px; }
@media (max-width: 1000px) { .events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .events { grid-template-columns: 1fr; } }

/* ============ Заглушка ПОС ============ */
.pos__card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 24px; align-items: center; padding: 26px 28px; border-radius: var(--r-lg); background: var(--gu-soft); border: 1px solid #c9d8fa; }
.pos__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--gu); color: #fff; }
.pos__icon .ico { width: 32px; height: 32px; }
.pos__title { font-size: clamp(20px, 2.2vw, 26px); color: #0b1f4f; }
.pos__text { margin-top: 6px; color: #33415e; max-width: 640px; }
.pos__note { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: #4a5875; }
.pos__note .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--gu); }
.pos__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 32px; border-radius: 12px; background: var(--gu); color: #fff; font-weight: 600; text-decoration: none; font-size: 16.5px; }
.pos__btn:hover { background: #0a3ca8; color: #fff; }
@media (max-width: 760px) {
  .pos__card { grid-template-columns: 1fr; padding: 22px; }
  .pos__icon { width: 52px; height: 52px; }
  .pos__btn { width: 100%; }
}

/* ============ Внешние ресурсы ============ */
.extlinks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.extlinks a { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 16px 40px 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.extlinks a:hover { border-color: var(--navy-600); }
.extlinks b { font-weight: 600; }
.extlinks span { font-size: 14px; color: var(--muted); }
.extlinks .ico { position: absolute; right: 14px; top: 16px; width: 17px; height: 17px; color: var(--muted); }
@media (max-width: 1000px) { .extlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .extlinks { grid-template-columns: 1fr; } }

/* ============ Поля форм ============ */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend, .field .label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid #c6d0dd; border-radius: var(--r-sm); background: #fff; color: var(--ink);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313213a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input:hover, select:hover, textarea:hover { border-color: #9fb0c6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(42, 77, 128, .22); }
.is-invalid input, .is-invalid select, .is-invalid textarea, input.is-invalid { border-color: var(--red); }
.input-ico { position: relative; }
.input-ico .ico { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.input-ico input { padding-left: 42px; }
.field__hint { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.field__err { font-size: 13.5px; color: var(--red-700); font-weight: 500; }
.field__err:empty { display: none; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.counter { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ============ Реестр документов ============ */
.registry { display: grid; gap: 18px; }
.registry__toggle { display: none; justify-self: start; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--tint); align-items: end; }
.filters .field--wide { grid-column: span 2; }
.field--dates { grid-column: span 2; }
.field--dates legend { margin-bottom: 6px; }
.dates { display: flex; align-items: center; gap: 8px; }
.dates input { min-width: 0; }
.filters__actions { display: flex; align-items: flex-end; justify-content: flex-end; grid-column: 1 / -1; }
.registry__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.registry__count { font-weight: 600; color: var(--ink); }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.field--inline select { width: auto; min-width: 200px; }
.registry__note { display: flex; gap: 8px; align-items: flex-start; }
.registry__note .ico { width: 17px; height: 17px; margin-top: 2px; }
@media (min-width: 1101px) {
  .filters { grid-template-columns: 2fr 1fr 1.3fr 1.3fr 1fr; }
  .filters .field--wide { grid-column: auto; }
  .field--dates { grid-column: span 2; }
  .filters__actions { grid-column: span 3; }
}
@media (max-width: 760px) {
  .registry__toggle { display: inline-flex; }
  .js .filters:not(.is-open) { display: none; }
  .filters { grid-template-columns: 1fr; }
  .filters .field--wide, .field--dates, .filters__actions { grid-column: auto; }
  .filters__actions { justify-content: flex-start; }
  .field--inline select { min-width: 0; }
}

.doc-table { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.dtable th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--line); }
.dtable td { padding: 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr { position: relative; transition: background-color .15s; }
.dtable tbody tr:hover { background: #f8fafd; }
.dtable td:nth-child(1) { width: 210px; }
.dtable td:nth-child(3) { width: 170px; font-size: 14.5px; color: var(--muted); }
.dtable td:nth-child(4) { width: 130px; }
.dreq { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.dreq b { color: var(--ink); font-weight: 600; }
.dtitle { color: var(--ink); font-weight: 500; text-decoration: none; line-height: 1.45; }
.dtitle:hover { color: var(--red); text-decoration: underline; }
.dissuer { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
mark { background: #ffe9a8; color: inherit; border-radius: 2px; padding: 0 1px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--ok { background: var(--green-soft); color: var(--green); }
.status--mod { background: var(--amber-soft); color: var(--amber); }
.status--off { background: var(--grey-soft); color: #4f5b6b; }
.status--draft { background: var(--red-soft); color: var(--red-700); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
@media (max-width: 860px) {
  .dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: auto !important; }
  .dtable tr { padding: 16px; border-bottom: 1px solid var(--line-2); }
  .dtable td { padding: 0; border: 0; }
  .dtable td + td { margin-top: 8px; }
  .dtable td:nth-child(3), .dtable td:nth-child(4) { display: inline-block; margin-right: 10px; }
  .dreq { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
}

/* ============ Пагинация и чипсы ============ */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager:empty { display: none; }
.pager a, .pager span, .pager button { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.pager button:hover { border-color: var(--navy-700); }
.pager [aria-current="page"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .ico { width: 18px; height: 18px; }
.pager .gap { border: 0; background: none; min-width: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: 15px; }
.chip:hover { border-color: var(--navy-700); }
.chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip small { font-size: 13px; opacity: .7; margin-left: 4px; }

/* ============ Список новостей ============ */
.news-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.news-search { width: min(100%, 340px); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-block: 16px 28px; }
.news-grid--3 { margin: 0; }
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* ============ Статья / типографика ============ */
.article__fig { margin: 8px 0 28px; border-radius: var(--r-lg); overflow: hidden; }
.article__fig img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose { font-size: 17.5px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose .lead { font-size: 20px; color: var(--ink); font-weight: 500; }
.article__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 32px 56px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ============ Карточка документа ============ */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.doc-paper { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.doc-paper__head { text-align: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.doc-paper__head svg { width: 46px; height: 52px; margin: 0 auto 10px; }
.doc-paper__org { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); font-size: 15px; }
.doc-paper__kind { font-weight: 700; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-top: 10px; }
.doc-paper__req { display: flex; justify-content: space-between; margin-top: 12px; font-size: 15px; }
.doc-paper__title { text-align: center; font-weight: 700; color: var(--ink); font-size: 18px; max-width: 560px; margin: 0 auto 22px; line-height: 1.4; }
.doc-paper ol { list-style: none; counter-reset: p; }
.doc-paper ol li { counter-increment: p; position: relative; padding-left: 28px; margin-top: 10px; }
.doc-paper ol li::before { content: counter(p) "."; position: absolute; left: 0; font-weight: 600; }
.doc-paper__sign { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; font-weight: 600; color: var(--ink); }
.doc-paper .stamp { display: inline-block; margin-top: 24px; padding: 8px 12px; border: 1.5px dashed #9aa7ba; border-radius: 6px; font-size: 13.5px; color: var(--muted); }
.doc-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 150px; }
html.a11y-on .doc-side { position: static; }
.dl { display: grid; gap: 10px; font-size: 14.5px; }
.dl div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.dl dt { color: var(--muted); }
.dl dd { color: var(--ink); font-weight: 500; }
.doc-actions { display: grid; gap: 8px; }
.doc-actions .btn { justify-content: flex-start; }
.rel-list li { padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.rel-list li:first-child { border-top: 0; padding-top: 0; }
.rel-list span { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-side { position: static; }
}

/* ============ Обращения ============ */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.terms li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; background: #fff; }
.terms li + li { border-left: 1px solid var(--line); }
.terms__n { font-size: 28px; font-weight: 700; color: var(--red); line-height: 1.1; letter-spacing: -.02em; }
.terms b { color: var(--ink); }
.terms li > span:last-child { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) {
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms li:nth-child(3) { border-left: 0; }
  .terms li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .terms { grid-template-columns: 1fr; }
  .terms li + li { border-left: 0; border-top: 1px solid var(--line); }
}
.appeal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.appeal__main > p { margin-top: 8px; }
.appeal__side { display: flex; flex-direction: column; gap: 16px; }
.form { margin-top: 24px; display: grid; gap: 20px; }
.form__group { display: grid; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.form__group > legend { float: left; width: 100%; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.form__group > legend + * { clear: both; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.radios { gap: 8px; }
.radio, .check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400 !important; font-size: 15.5px !important; color: var(--text) !important; }
.radio input, .check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-800); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed #b8c4d4; border-radius: var(--r-md); text-align: center; cursor: pointer; background: var(--tint); font-weight: 400 !important; color: var(--text) !important; transition: border-color .2s, background-color .2s; }
.drop .ico { width: 28px; height: 28px; color: var(--navy-700); }
.drop b { color: var(--navy-700); }
.drop small { font-size: 13px; color: var(--muted); }
.drop.is-over, .drop:hover { border-color: var(--navy-700); background: #eef3fa; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__input:focus-visible + .files, .drop__input:focus-visible ~ .files { outline: none; }
.field:has(.drop__input:focus-visible) .drop { outline: 3px solid #2f6fdf; outline-offset: 2px; }
.files { display: grid; gap: 6px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14.5px; }
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files small { color: var(--muted); white-space: nowrap; }
.files button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--muted); flex: none; }
.files button:hover { background: var(--red-soft); color: var(--red); }
.consent { padding: 4px 2px; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-success { margin-top: 24px; padding: 32px; border: 1px solid #bfe2cd; background: var(--green-soft); border-radius: var(--r-lg); }
.form-success:focus { outline: none; }
.form-success__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: 14px; }
.form-success__ico .ico { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-size: 24px; margin-bottom: 8px; }
.form-success p + p { margin-top: 8px; }
.form-success .btn { margin-top: 18px; }
.ticks li { position: relative; padding-left: 24px; font-size: 14.5px; }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 9px; border-radius: 2px; background: var(--red); }
.mini-links li { font-size: 14.5px; }
.mini-links li + li { margin-top: 10px; }
@media (max-width: 1000px) {
  .appeal { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form__group { padding: 18px 16px; }
}

/* ============ Таблицы ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.table { font-size: 15px; }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.table thead th { background: var(--tint); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { color: var(--ink); font-weight: 600; }
.table td small { display: block; color: var(--muted); font-size: 13.5px; }
.table--num td { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .table:not(.table--num) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table:not(.table--num), .table:not(.table--num) tbody, .table:not(.table--num) tr, .table:not(.table--num) td, .table:not(.table--num) tbody th { display: block; }
  .table:not(.table--num) tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .table:not(.table--num) tr:last-child { border-bottom: 0; }
  .table:not(.table--num) td, .table:not(.table--num) tbody th { padding: 2px 0; border: 0; }
  .table:not(.table--num) td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13.5px; }
  .table--num { min-width: 720px; }
}

/* ============ Структура (оргсхема) ============ */
.org { --c: var(--line); }
.org__top { display: flex; justify-content: center; position: relative; padding-bottom: 28px; }
.org__top::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 28px; border-left: 2px solid #b9c5d6; }
.onode { display: block; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.onode:hover { border-color: var(--navy-600); box-shadow: var(--shadow-sm); color: var(--ink); }
.onode b { display: block; font-weight: 600; line-height: 1.3; font-size: 15px; }
.onode span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.onode--head { max-width: 360px; background: var(--navy-900); border-color: var(--navy-900); color: #fff; text-align: center; padding: 18px 22px; }
.onode--head:hover { color: #fff; border-color: var(--red); }
.onode--head b { font-size: 17px; }
.onode--head span { color: #b9c6da; }
.onode--dep { background: var(--tint-2); border-color: #c9d4e3; }
.org__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; padding-top: 26px; }
.org__cols::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; border-top: 2px solid #b9c5d6; }
.org__col { position: relative; display: flex; flex-direction: column; gap: 10px; }
.org__col::before { content: ""; position: absolute; top: -26px; left: 50%; height: 26px; border-left: 2px solid #b9c5d6; }
.org__subs { display: flex; flex-direction: column; gap: 8px; padding-left: 14px; border-left: 2px solid #d3dbe6; margin-left: 10px; }
.org__subs .onode { padding: 10px 12px; }
.org__subs .onode b { font-size: 14px; font-weight: 500; }
.onode.is-target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
@media (max-width: 1100px) {
  .org__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org__cols::before, .org__col::before { display: none; }
  .org__top::after { display: none; }
  .org__top { padding-bottom: 16px; }
  .org__cols { padding-top: 0; }
}
@media (max-width: 640px) {
  .org__cols { grid-template-columns: 1fr; }
  .onode--head { max-width: none; }
}

.contacts-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 14px; }
@media (max-width: 640px) { .contacts-tools { grid-template-columns: 1fr; } }
.contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ccard { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; scroll-margin-top: 160px; }
.ccard.is-target { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.ccard h3 { font-size: 17.5px; }
.ccard__head { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.ccard__ava { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint-2); color: var(--navy-700); font-weight: 700; font-size: 15px; }
.ccard__who b { display: block; color: var(--ink); font-weight: 600; }
.ccard__who span { font-size: 14px; color: var(--muted); }
.ccard__fn { margin-top: 10px; font-size: 14.5px; }
.ccard__list { display: grid; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 15px; }
.ccard__list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ccard__list .ico { width: 17px; height: 17px; color: var(--muted); }
.ccard__list a { overflow-wrap: anywhere; }
@media (max-width: 760px) { .contacts { grid-template-columns: 1fr; } }

/* ============ Поиск ============ */
.big-search { display: flex; align-items: center; gap: 0; margin-top: 18px; max-width: 760px; border: 1.5px solid #c6d0dd; border-radius: var(--r-md); padding: 6px 6px 6px 16px; background: #fff; }
.big-search:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(42, 77, 128, .2); }
.big-search > .ico { color: var(--muted); }
.big-search input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; min-height: 44px; padding: 8px 12px; }
.sresults { display: grid; gap: 28px; margin-top: 18px; }
.sgroup h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sgroup h2 .tag { font-size: 13px; }
.sitem { position: relative; padding: 14px 0; border-top: 1px solid var(--line); }
.sitem a { font-weight: 600; font-size: 16.5px; color: var(--navy-700); }
.sitem p { font-size: 15px; color: var(--text); margin-top: 3px; }
.sitem small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ============ Открытые данные ============ */
.od { display: grid; gap: 20px; }
.od__intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--tint); }
.od__facts { display: flex; flex-wrap: wrap; gap: 12px 36px; }
.od__facts dt { font-size: 13.5px; color: var(--muted); }
.od__facts dd { font-weight: 600; color: var(--ink); }
.od__list { display: grid; gap: 14px; }
.ds { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; scroll-margin-top: 160px; }
.ds__head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; }
.ds__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--tint-2); color: var(--navy-700); }
.ds__head h2 { font-size: 18.5px; }
.ds__head p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.ds__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ds__toggle .ico { transition: transform .2s; }
.ds__toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.ds__body { padding: 0 20px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.ds__body h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.ds__body .table th, .ds__body .table td { padding: 9px 12px; font-size: 14px; }
.ds__preview { grid-column: 1 / -1; }
.ds__preview .table { min-width: 640px; }
.ds__preview .table thead th { text-transform: none; letter-spacing: 0; font-size: 13px; }
@media (max-width: 860px) {
  .ds__head { grid-template-columns: auto 1fr; }
  .ds__btns { grid-column: 1 / -1; justify-content: flex-start; }
  .ds__body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ds__preview .table, .ds__preview .table thead, .ds__preview .table tbody, .ds__preview .table tr, .ds__preview .table td { display: revert; }
  .ds__preview .table thead { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .ds__preview .table td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
}

/* ============ Соответствие ============ */
.comp { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.comp__toc { position: sticky; top: 150px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--tint); }
html.a11y-on .comp__toc { position: static; }
.comp__toc-h { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.comp__toc li + li { margin-top: 6px; }
.comp__toc a { font-size: 15px; }
.comp__body { display: grid; gap: 40px; }
.comp__sec > p { margin: 10px 0 18px; max-width: 820px; }
.comp__sec h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: clamp(22px, 2.4vw, 28px); scroll-margin-top: 150px; }
.lawtag { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--navy-900); color: #fff; font-size: 14px; letter-spacing: .03em; }
.ctable th[scope="row"] { width: 38%; font-weight: 500; font-size: 14.5px; }
.ctable td { font-size: 14.5px; }
.ctable td.ok { width: 92px; white-space: nowrap; color: var(--green); font-weight: 600; }
.ctable td.ok .ico { width: 18px; height: 18px; stroke-width: 2.4; margin-right: 4px; }
.note { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--r-md); background: var(--amber-soft); color: #5a3a00; font-size: 15px; }
.note .ico { color: var(--amber); margin-top: 2px; }
@media (max-width: 960px) {
  .comp { grid-template-columns: 1fr; }
  .comp__toc { position: static; }
}

/* ============ Подвал ============ */
.footer { background: var(--navy-950); color: #b7c4d8; font-size: 15px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 36px; }
.footer address { margin-top: 18px; line-height: 1.7; }
.footer a { color: #e2e9f4; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__h { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer__social span { display: inline-flex; align-items: center; gap: 8px; color: #e2e9f4; }
.footer__small { font-size: 13px; color: #8d9db5; margin-top: 10px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 18px 22px; }
.footer__bottom strong { color: #fff; font-weight: 600; }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__bottom li + li { margin-top: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ============ Тост ============ */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 200; padding: 12px 20px; border-radius: var(--r-sm); background: var(--navy-900); color: #fff; font-weight: 500; box-shadow: var(--shadow-md); max-width: calc(100% - 32px); }

/* ============ Печать ============ */
@media print {
  .demo-bar, .header, .footer, .article__tools, .doc-side, .registry__toggle, .pos, .crumbs { display: none !important; }
  .phead { background: none; border: 0; }
  body { font-size: 12pt; }
}

/* Уменьшенная анимация */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Элементы сетки не должны раздвигаться широкими таблицами */
.od > *, .ds__body > *, .registry > *, .comp > *, .comp__body > *, .appeal > *, .doc-layout > * { min-width: 0; }
.hero-search input[type="search"], .hsearch input[type="search"] { border: 0; box-shadow: none; min-height: 0; background: none; }
/* Версия для слабовидящих: поиск в шапке заменяем кнопкой-ссылкой */
html.a11y-on .hsearch { display: none; }
html.a11y-on .icon-btn--search { display: inline-grid; }
