/* ==========================================================================
   ХМАО ВОИ — основные стили сайта
   ========================================================================== */

:root {
  --brand: #0b5cab;
  --brand-dark: #084584;
  --brand-light: #e8f1fb;
  --accent: #f2a20c;
  --text: #17202b;
  --muted: #5b6875;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-tint: #f5f8fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(15, 40, 70, .08);
  --shadow-lg: 0 18px 45px rgba(15, 40, 70, .14);
  --container: 1220px;
  --font: 'Segoe UI', 'PT Sans', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(23px, 3vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 92, 171, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn--lg { padding: 14px 28px; font-size: 17px; }
.btn--sm { padding: 7px 16px; font-size: 15px; }
.btn--danger { background: #c0392b; color: #fff; }
.btn--danger:hover { background: #96291d; color: #fff; }

/* --------------------------------------------------------------- шапка */

.topbar { background: var(--brand-dark); color: #fff; font-size: 15px; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding: 7px 0; }
.topbar__contacts, .topbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.topbar__link { color: #fff; display: inline-flex; align-items: center; gap: 7px; opacity: .95; }
.topbar__link:hover { opacity: 1; }
.a11y-toggle {
  background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 999px;
  padding: 6px 16px; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.a11y-toggle:hover { background: rgba(255, 255, 255, .26); }

.ico { width: 17px; height: 17px; display: inline-block; background: currentColor; }
.ico-phone { -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.2.4 2.4.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1l-2.3 2.2z'/%3E%3C/svg%3E"); }
.ico-mail { -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4l-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.ico-eye { -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c-5 0-9.3 3.1-11 7 1.7 3.9 6 7 11 7s9.3-3.1 11-7c-1.7-3.9-6-7-11-7zm0 12a5 5 0 110-10 5 5 0 010 10zm0-8a3 3 0 100 6 3 3 0 000-6z'/%3E%3C/svg%3E"); }
.ico-search { -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.8l-.3-.3a6.5 6.5 0 10-.7.7l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 110-9 4.5 4.5 0 010 9z'/%3E%3C/svg%3E"); }
.ico-pin { -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6a2.5 2.5 0 010 5.5z'/%3E%3C/svg%3E"); }
.ico-clock { -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 10.4V6h-2v7.4l5 3 1-1.7-4-2.3z'/%3E%3C/svg%3E"); }

.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(15, 40, 70, .07); }
.header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none !important; }
/* логотип ВОИ — широкий, поэтому фиксируем высоту, а ширину отдаём пропорциям */
.brand__logo { height: 56px; width: auto; max-width: 200px; object-fit: contain; flex: none; }
.brand--footer .brand__logo { height: 48px; max-width: 170px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }
.brand__desc { font-size: 13.5px; color: var(--muted); max-width: 34ch; line-height: 1.3; }

.search { display: flex; margin-left: auto; }
.search input {
  border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px;
  padding: 10px 18px; font: inherit; width: 230px; background: var(--bg-tint);
}
.search input:focus { outline: none; border-color: var(--brand); }
.search button {
  border: 2px solid var(--brand); background: var(--brand); color: #fff;
  border-radius: 0 999px 999px 0; padding: 0 18px; cursor: pointer;
}
.search--page { margin: 0 0 28px; }
.search--page input { width: min(100%, 460px); border-radius: 999px; border-right: 2px solid var(--line); }
.search--page .btn { margin-left: 10px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { width: 26px; height: 3px; background: var(--brand); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav { background: var(--brand); }
.nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a {
  display: block; color: #fff; padding: 13px 16px; font-weight: 600; font-size: 15.5px;
  text-decoration: none !important; transition: background .2s;
}
.nav__list a:hover, .nav__list a.is-active { background: rgba(255, 255, 255, .16); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; list-style: none;
  margin: 0; padding: 8px 0; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 20;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { color: var(--text); padding: 10px 18px; font-weight: 500; }
.sub a:hover { background: var(--brand-light); color: var(--brand); }

.announce { background: var(--accent); color: #2a1c00; padding: 10px 0; font-weight: 600; text-align: center; }
.announce a { color: #2a1c00; text-decoration: underline; }

/* --------------------------------------------------------------- главная */

.hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 55%, #1f7fd4);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, #fff 0, transparent 45%), radial-gradient(circle at 15% 95%, #fff 0, transparent 40%);
}
.hero--image::before {
  content: ''; position: absolute; inset: 0; background: var(--hero-image) center/cover no-repeat; opacity: .3;
}
.hero__inner { position: relative; z-index: 1; padding: 68px 0 76px; }
.hero__content { max-width: 760px; }
.hero__kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; opacity: .9; margin-bottom: 12px; }
.hero__title { font-size: clamp(32px, 5.5vw, 56px); margin-bottom: 18px; }
.hero__text { font-size: clamp(17px, 2vw, 20px); opacity: .95; max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn--primary { background: #fff; color: var(--brand-dark); }
.hero .btn--primary:hover { background: var(--accent); color: #2a1c00; }
.hero .btn--outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn--outline:hover { background: #fff; color: var(--brand-dark); }

.counters { background: #fff; margin-top: -34px; position: relative; z-index: 2; }
.counters__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2px;
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.counter { background: #fff; padding: 26px 22px; text-align: center; }
.counter__value { display: block; font-size: 38px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.counter__label { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }

.section { padding: 56px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section__title { margin: 0 0 28px; position: relative; padding-left: 18px; }
.section__title::before {
  content: ''; position: absolute; left: 0; top: .1em; bottom: .1em; width: 6px;
  background: var(--accent); border-radius: 3px;
}
.section__head .section__title { margin-bottom: 0; }
.section__link { font-weight: 600; white-space: nowrap; }

.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media {
  display: block; position: relative; aspect-ratio: 16 / 10; background: var(--brand-light);
  overflow: hidden; text-decoration: none !important;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 64px; font-weight: 800; color: rgba(11, 92, 171, .28);
}
.card__tag {
  position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .94); color: var(--brand-dark);
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__date { color: var(--muted); font-size: 14px; }
.card__title { font-size: 19px; margin: 8px 0 10px; }
.card__title a { color: var(--text); }
.card__title a:hover { color: var(--brand); text-decoration: none; }
.card__text { color: var(--muted); font-size: 15.5px; flex: 1; }
.card__more { font-weight: 600; margin-top: 6px; }

.features .feature {
  background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 1px solid var(--line);
}
.feature__icon { font-size: 34px; display: block; margin-bottom: 10px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }

.albums .album {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none !important; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.album:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.album__media { display: block; aspect-ratio: 4 / 3; background: var(--brand-light); position: relative; }
.album__media img { width: 100%; height: 100%; object-fit: cover; }
.album__placeholder { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; opacity: .5; }
.album__body { padding: 16px 20px 20px; display: block; }
.album__title { display: block; font-weight: 700; font-size: 17.5px; }
.album__meta { display: block; color: var(--muted); font-size: 14px; margin-top: 5px; }

.cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff;
  border-radius: var(--radius); padding: 38px 40px; display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta--compact { margin-top: 48px; padding: 28px 32px; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; opacity: .92; max-width: 60ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta .btn--primary { background: #fff; color: var(--brand-dark); }
.cta .btn--primary:hover { background: var(--accent); color: #2a1c00; }
.cta .btn--outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.cta .btn--outline:hover { background: #fff; color: var(--brand-dark); }

/* --------------------------------------------------------------- страницы */

.page-head { background: var(--bg-tint); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.page-head h1 { margin: 6px 0 10px; }
.page-head__meta { color: var(--muted); margin: 0; }
.page-head__lead { color: var(--muted); max-width: 75ch; margin: 8px 0 0; font-size: 17.5px; }
.crumbs { font-size: 14.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article { max-width: 100%; }
.article--wide { max-width: 900px; }
.article__cover { width: 100%; border-radius: var(--radius); margin-bottom: 26px; }

.prose { font-size: 17.5px; }
.prose h2 { margin-top: 1.6em; font-size: 26px; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose blockquote {
  margin: 1.4em 0; padding: 16px 22px; background: var(--brand-light);
  border-left: 5px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose .lead { font-size: 20px; font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

.aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 130px; }
.aside__box { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.aside__box--brand { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border: 0; }
.aside__box--brand .btn--primary { background: #fff; color: var(--brand-dark); }
.aside__title { font-size: 18px; margin-bottom: 14px; }
.aside__list { list-style: none; margin: 0; padding: 0; }
.aside__list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.aside__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.aside__list a { font-weight: 600; color: var(--text); }
.aside__list a:hover { color: var(--brand); }
.aside__list time { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.share { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.share span { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.gallery__item { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--brand-light); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 13.5px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); color: #fff;
}

.docs-group { margin-bottom: 38px; }
.docs-group__title { font-size: 22px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc__link {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit;
  text-decoration: none !important; transition: .2s;
}
.doc__link:hover { border-color: var(--brand); background: var(--brand-light); }
.doc__icon { font-size: 26px; flex: none; }
.doc__body { flex: 1; min-width: 0; }
.doc__title { display: block; font-weight: 600; }
.doc__meta { display: block; color: var(--muted); font-size: 14px; }
.doc__action { color: var(--brand); font-weight: 600; white-space: nowrap; }

.persons .person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; text-align: center; }
.person__photo { width: 118px; height: 118px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--brand-light); position: relative; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: var(--brand); }
.person__name { font-size: 19px; margin-bottom: 6px; }
.person__position { color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.person__note { color: var(--muted); font-size: 14.5px; }
.person__contacts { list-style: none; margin: 12px 0 0; padding: 0; font-size: 15px; }

.filter input { width: min(100%, 420px); padding: 12px 18px; border: 2px solid var(--line); border-radius: 999px; font: inherit; margin-bottom: 26px; }
.filter input:focus { outline: none; border-color: var(--brand); }
.branch { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius-sm); padding: 22px 24px; }
.branch__city { font-size: 20px; margin-bottom: 4px; }
.branch__name { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.branch__contacts { list-style: none; margin: 0; padding: 0; font-size: 15.5px; display: grid; gap: 4px; }

.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 26px; margin-bottom: 36px; }
.contacts-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.contacts-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.contacts-list li { display: flex; gap: 12px; align-items: flex-start; }
.contacts-list .ico { color: var(--brand); margin-top: 4px; flex: none; }
.contacts-social { display: flex; gap: 10px; flex-wrap: wrap; }

.form .field { margin-bottom: 16px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 11px 15px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; color: var(--text);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--brand); }
.field--hp { position: absolute; left: -9999px; }
.req { color: #c0392b; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 20px; font-size: 15.5px; }
.check input { width: auto; margin-top: 4px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.alert--ok { background: #e6f6ec; color: #1d6b3a; border: 1px solid #b6e2c6; }
.alert--err { background: #fdecea; color: #98261a; border: 1px solid #f5c4bf; }

.map { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15.5px; }
.table th, .table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; }
.table th { background: var(--bg-tint); }

.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; }
.result__type { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--brand-light); padding: 4px 12px; border-radius: 999px; }
.result__title { font-size: 19px; margin: 10px 0 6px; }
.result__text { color: var(--muted); margin: 0; }
.result__date { color: var(--muted); font-size: 14px; }

.pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.pager__link {
  min-width: 44px; padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  text-align: center; font-weight: 600; color: var(--text); text-decoration: none !important;
}
.pager__link:hover { border-color: var(--brand); color: var(--brand); }
.pager__link.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }

.empty { color: var(--muted); background: var(--bg-tint); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 26px; text-align: center; }

.error-page { text-align: center; padding: 80px 0; }
.error-page__code { font-size: 90px; font-weight: 800; color: var(--brand-light); margin: 0; line-height: 1; }

/* --------------------------------------------------------------- подвал */

.footer { background: #10202f; color: #cfd9e3; margin-top: 40px; }
.footer a { color: #cfd9e3; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 36px; padding: 48px 0 36px; }
.footer .brand__name { color: #fff; }
.footer .brand__desc { color: var(--accent); }
.footer__full { font-size: 14px; color: #93a3b3; margin-top: 16px; }
.footer__title { font-size: 17px; color: #fff; margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15.5px; }
.footer__list--plain { color: #cfd9e3; }
.footer__social { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px 0; }
.footer__bottom p { margin: 0; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%;
  border: 0; background: var(--brand); color: #fff; font-size: 22px; cursor: pointer;
  box-shadow: var(--shadow-lg); z-index: 40;
}
.to-top:hover { background: var(--brand-dark); }

/* --------------------------------------------------------------- лайтбокс */

.lightbox {
  position: fixed; inset: 0; background: rgba(6, 14, 22, .93); display: grid; place-items: center;
  z-index: 200; padding: 30px;
}
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; }
.lightbox__caption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255, 255, 255, .16); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer;
}
.lightbox__close { top: 22px; right: 22px; }
.lightbox__nav--prev { left: 22px; top: 50%; }
.lightbox__nav--next { right: 22px; top: 50%; }

/* --------------------------------------------------------------- панель доступности */

.a11y-panel { background: #10202f; color: #fff; border-bottom: 3px solid var(--accent); }
.a11y-panel__inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding: 14px 0; }
.a11y-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.a11y-label { font-size: 14.5px; opacity: .85; }
.a11y-panel button {
  background: rgba(255, 255, 255, .14); color: #fff; border: 2px solid transparent;
  border-radius: 8px; padding: 6px 14px; font: inherit; cursor: pointer;
}
.a11y-panel button:hover { background: rgba(255, 255, 255, .28); }
.a11y-panel button[aria-pressed="true"] { border-color: var(--accent); background: rgba(242, 162, 12, .25); }
.a11y-panel [data-a11y-size="m"] { font-size: 15px; }
.a11y-panel [data-a11y-size="l"] { font-size: 19px; }
.a11y-panel [data-a11y-size="xl"] { font-size: 23px; }
.th-white { background: #fff !important; color: #000 !important; }
.th-black { background: #000 !important; color: #fff !important; }
.th-blue { background: #9dd1ff !important; color: #063462 !important; }
.th-beige { background: #f7f3d6 !important; color: #4d4b43 !important; }
.a11y-check { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.a11y-off { margin-left: auto; }

html.a11y body { font-family: Georgia, 'Times New Roman', serif; }
html.a11y[data-a11y-size="l"] body { font-size: 21px; }
html.a11y[data-a11y-size="xl"] body { font-size: 25px; }
html.a11y.a11y-spacing body { letter-spacing: .06em; word-spacing: .16em; line-height: 2; }
html.a11y.a11y-noimg img:not(.brand__logo),
html.a11y.a11y-noimg .card__media,
html.a11y.a11y-noimg .album__media,
html.a11y.a11y-noimg .map,
html.a11y.a11y-noimg .gallery { display: none !important; }

html.a11y[data-a11y-theme="black"] { --bg: #000; --bg-tint: #000; --text: #fff; --muted: #dcdcdc; --line: #fff; --brand: #fff; --brand-dark: #000; --brand-light: #000; --accent: #ffd400; }
html.a11y[data-a11y-theme="blue"] { --bg: #9dd1ff; --bg-tint: #9dd1ff; --text: #063462; --muted: #063462; --line: #063462; --brand: #063462; --brand-dark: #063462; --brand-light: #9dd1ff; --accent: #063462; }
html.a11y[data-a11y-theme="beige"] { --bg: #f7f3d6; --bg-tint: #f7f3d6; --text: #4d4b43; --muted: #4d4b43; --line: #4d4b43; --brand: #4d4b43; --brand-dark: #4d4b43; --brand-light: #f7f3d6; --accent: #4d4b43; }
html.a11y[data-a11y-theme="black"] body, html.a11y[data-a11y-theme="blue"] body, html.a11y[data-a11y-theme="beige"] body { background: var(--bg); color: var(--text); }
html.a11y:not([data-a11y-theme="white"]) .header,
html.a11y:not([data-a11y-theme="white"]) .card,
html.a11y:not([data-a11y-theme="white"]) .contacts-card,
html.a11y:not([data-a11y-theme="white"]) .branch,
html.a11y:not([data-a11y-theme="white"]) .person,
html.a11y:not([data-a11y-theme="white"]) .doc__link,
html.a11y:not([data-a11y-theme="white"]) .feature,
html.a11y:not([data-a11y-theme="white"]) .album,
html.a11y:not([data-a11y-theme="white"]) .result,
html.a11y:not([data-a11y-theme="white"]) .footer,
html.a11y:not([data-a11y-theme="white"]) .hero,
html.a11y:not([data-a11y-theme="white"]) .cta,
html.a11y:not([data-a11y-theme="white"]) .nav,
html.a11y:not([data-a11y-theme="white"]) .aside__box { background: var(--bg) !important; color: var(--text) !important; border-color: var(--line); box-shadow: none; }
html.a11y:not([data-a11y-theme="white"]) .hero::after,
html.a11y:not([data-a11y-theme="white"]) .hero--image::before { display: none; }
html.a11y:not([data-a11y-theme="white"]) a,
html.a11y:not([data-a11y-theme="white"]) .nav__list a,
html.a11y:not([data-a11y-theme="white"]) .footer a,
html.a11y:not([data-a11y-theme="white"]) .brand__name,
html.a11y:not([data-a11y-theme="white"]) .counter__value { color: var(--text) !important; }
html.a11y:not([data-a11y-theme="white"]) .btn { border-color: var(--text) !important; color: var(--text) !important; background: var(--bg) !important; }
html.a11y:not([data-a11y-theme="white"]) .to-top { background: var(--bg); color: var(--text); border: 2px solid var(--text); }

/* --------------------------------------------------------------- адаптив */

@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header__inner { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; width: 100%; margin-left: 0; }
  .search input { flex: 1; width: auto; }
  .burger { display: flex; margin-left: auto; }
  .nav { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav.is-open { max-height: 900px; }
  .nav__list { flex-direction: column; padding: 6px 0; }
  .nav__list a { padding: 13px 20px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0, 0, 0, .16); border-radius: 0; padding: 0; }
  .sub a { color: #fff; padding-left: 40px; }
  .sub a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
  .counters { margin-top: 0; }
  .counters__grid { border-radius: 0; }
  .cta { padding: 28px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; }
}

@media print {
  .topbar, .a11y-panel, .nav, .search, .burger, .to-top, .footer__social, .cta { display: none !important; }
  body { font-size: 12pt; }
}
