/* Довіряй ділам: site styles */

@font-face { font-family: Oswald; font-weight: 500; font-display: swap; src: url(../fonts/oswald-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Oswald; font-weight: 600; font-display: swap; src: url(../fonts/oswald-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Oswald; font-weight: 700; font-display: swap; src: url(../fonts/oswald-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Oswald; font-weight: 500; font-display: swap; src: url(../fonts/oswald-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Oswald; font-weight: 600; font-display: swap; src: url(../fonts/oswald-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Oswald; font-weight: 700; font-display: swap; src: url(../fonts/oswald-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --red: #E31E25;       /* logo */
  --red-dark: #BE141B;  /* small red text on light backgrounds */
  --yellow: #FDBE01;    /* logo */
  --yellow-soft: #FFF0C2;
  --ink: #1F2E3D;       /* added: deep "sea at night" blue */
  --ink-2: #2B3D4F;
  --text: #2A3440;
  --muted: #5D6875;
  --paper: #FBF7EF;     /* added: warm sketchbook paper */
  --line: #E8E0D1;
  --white: #fff;
  --head: Oswald, "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 24px;
  --slant: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 17px/1.65 var(--body); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-family: var(--head); font-weight: 600; line-height: 1.2; letter-spacing: .01em; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 23px; }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--ink); }
.skip:focus { left: 8px; top: 8px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Top bar and header */
.topbar { background: var(--ink); color: #D6DEE6; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--yellow); }
.topbar .icon { width: 16px; height: 16px; }
.topbar-social { display: flex; gap: 20px; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(31, 46, 61, .06); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo { flex: none; }
.logo img { width: 218px; height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav a, .nav button { display: flex; align-items: center; gap: 5px; padding: 10px 13px; border: 0; background: none; color: var(--ink); font: 500 17px/1.2 var(--head); letter-spacing: .03em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav .is-active > a, .nav .is-active > button { color: var(--red-dark); }
.nav > ul > .is-active > a, .nav > ul > .is-active > button { box-shadow: inset 0 -3px 0 var(--yellow); }
.nav .caret { width: 8px; height: 8px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sub { position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px !important; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 14px 30px rgba(31, 46, 61, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 10px 12px; text-transform: none; font-size: 17px; }
.sub a:hover { background: var(--paper); }
.burger { display: none; width: 46px; height: 46px; padding: 12px 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 4px 0; background: var(--ink); transition: .18s; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons and shared bits */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 10px 28px; border: 0; background: var(--red); color: #fff; clip-path: var(--slant); font: 500 18px/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: var(--ink); color: #fff; }
.btn-ghost:hover { background: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 16px; text-decoration: none; }
.more .icon { width: 17px; height: 17px; transition: transform .15s; }
.more:hover .icon { transform: translateX(4px); }
.sec { padding: 88px 0; }
.sec-paper { background: var(--paper); }
.sec-dark { position: relative; overflow: hidden; background: var(--ink); color: #D9E0E7; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.title { margin-bottom: 44px; }
.title.center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.title h2 { margin-bottom: 14px; }
.title h2::after { content: ""; display: block; width: 76px; height: 7px; margin-top: 14px; background: linear-gradient(90deg, var(--red) 0 58%, var(--yellow) 58%); transform: skewX(-24deg); transform-origin: left; }
.title.center h2::after { margin-left: auto; margin-right: auto; }
.title p { margin: 0; color: var(--muted); }
.sec-dark .title p { color: #C4CED8; }
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.title-row .title { margin-bottom: 0; }
.grid { display: grid; gap: 28px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-inner { position: relative; z-index: 2; padding-top: 68px; text-align: center; }
.hero-kicker { display: inline-block; margin-bottom: 18px; padding: 5px 20px; background: var(--ink); color: #fff; clip-path: var(--slant); font: 500 16px/1.4 var(--head); letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin-bottom: 16px; font-size: clamp(46px, 7.4vw, 92px); font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.hero h1 span { display: inline-block; padding: .13em .22em .07em; background: var(--red); color: #fff; clip-path: polygon(.16em 0, 100% 0, calc(100% - .16em) 100%, 0 100%); }
.hero h1 b { display: inline-block; padding: .13em .22em .07em; background: var(--yellow); color: var(--ink); font-weight: 700; clip-path: polygon(.16em 0, 100% 0, calc(100% - .16em) 100%, 0 100%); }
.hero-lead { max-width: 680px; margin: 0 auto 26px; color: var(--muted); font-size: 19px; }
.hero .btn-row { justify-content: center; }
.hero-art { position: relative; margin-top: 4px; height: clamp(230px, 25vw, 400px); }
.hero-sun { position: absolute; left: 57%; bottom: 7%; width: clamp(180px, 21vw, 330px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--yellow) 0 56%, rgba(253, 190, 1, .32) 57% 69%, rgba(253, 190, 1, .12) 70%); opacity: .62; transform: translateX(-50%); }
.hero-art img { position: absolute; left: 50%; bottom: 0; width: max(100%, 1180px); max-width: none; transform: translateX(-50%); }

/* Leaders */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.leader { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: box-shadow .18s, transform .18s; }
.leader:hover, .person-card:hover, .news-card:hover { box-shadow: 0 14px 30px rgba(31, 46, 61, .13); transform: translateY(-3px); }
.leader-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper); }
.leader-photo img, .person-photo img, .news-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-photo img { object-position: 50% 18%; }
.leader-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; border-top: 5px solid var(--yellow); }
.leader:first-child .leader-body { border-top-color: var(--red); }
.role { display: block; margin-bottom: 8px; color: var(--red-dark); font-size: 15px; font-weight: 600; }
.leader h3 { margin-bottom: 4px; font-size: 27px; }
.leader p { flex: 1; color: var(--muted); font-size: 16px; }

/* About */
.split { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
.split-art { position: relative; display: flex; justify-content: center; }
.split-art::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(78%, 360px); aspect-ratio: 1; border-radius: 50%; background: var(--yellow-soft); transform: translate(-50%, -50%); }
.split-art img { position: relative; width: auto; height: 500px; max-height: 80vh; }
.checks { list-style: none; margin: 0 0 26px; padding: 0; }
.checks li { position: relative; margin-bottom: 9px; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 15px; height: 8px; border: solid var(--red); border-width: 0 0 3px 3px; transform: rotate(-45deg); }

/* Program cards */
.pillar { padding: 30px 26px; background: var(--paper); border-bottom: 4px solid transparent; transition: .18s; }
.pillar:hover { border-color: var(--red); background: #fff; box-shadow: 0 12px 26px rgba(31, 46, 61, .1); }
.pillar-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 40px; margin-bottom: 16px; background: var(--yellow); color: var(--ink); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); font: 600 19px/1 var(--head); }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

/* Council cards */
.council { display: flex; flex-direction: column; min-height: 390px; padding: 26px; border: 1px solid rgba(255, 255, 255, .2); color: inherit; text-decoration: none; transition: .18s; }
.council:hover { background: var(--ink-2); border-color: var(--yellow); color: inherit; }
.council-art { display: flex; flex: 1; align-items: flex-end; justify-content: center; min-height: 196px; margin-bottom: 22px; }
.council-art img { max-height: 200px; width: auto; }
.council h3 { margin-bottom: 5px; }
.council p { margin-bottom: 12px; font-size: 16px; color: #C4CED8; }
.council .more { color: var(--yellow); }

/* People */
.person-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: box-shadow .18s, transform .18s; }
.person-card:hover { color: inherit; }
.person-photo { aspect-ratio: 4 / 4.5; overflow: hidden; background: var(--paper); }
.person-photo img { object-position: 50% 20%; }
.person-info { flex: 1; padding: 16px 18px 18px; border-top: 4px solid var(--yellow); }
.person-info h3 { margin-bottom: 3px; font-size: 21px; }
.person-info span { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; }
.person-card:hover .person-info { border-top-color: var(--red); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter button { min-height: 44px; padding: 8px 22px; border: 0; background: var(--paper); color: var(--ink); clip-path: var(--slant); font: 500 17px/1.2 var(--head); letter-spacing: .03em; cursor: pointer; }
.filter button:hover { background: var(--yellow-soft); }
.filter button.is-active { background: var(--red); color: #fff; }
.person-card[hidden] { display: none; }
.group-title { margin: 8px 0 24px; }

/* Stats */
.stats { position: relative; overflow: hidden; background: var(--yellow); }
.stats .grid { position: relative; padding: 46px 0; }
.stat { text-align: center; color: var(--ink); }
.stat b { display: block; font: 700 54px/1.1 var(--head); }
.stat span { font-weight: 500; font-size: 16px; }

/* News */
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: box-shadow .18s, transform .18s; }
.news-card:hover { color: inherit; }
.news-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.news-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.date { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 14px; }
.date .icon { width: 15px; height: 15px; color: var(--red); }
.news-card h3 { font-size: 22px; }
.news-card p { flex: 1; color: var(--muted); font-size: 16px; }
.news-card .more { color: var(--red-dark); }
.news-lead { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 28px; }
.news-lead .news-photo { aspect-ratio: auto; min-height: 340px; }
.news-lead .news-body { justify-content: center; padding: 36px; }
.news-lead h2 { font-size: 32px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; background: var(--paper); color: var(--ink); font: 500 18px/1 var(--head); text-decoration: none; }
.pager a:hover { background: var(--yellow); }
.pager .is-active { background: var(--red); color: #fff; }

/* Social band */
.social-band { padding: 72px 0 0; text-align: center; }
.social-band .btn-row { justify-content: center; }

/* Inner page head */
.page-head { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; min-height: 250px; }
.page-head-text { align-self: center; padding: 40px 0; max-width: 680px; }
.page-head h1 { margin-bottom: 6px; }
.page-head p { margin: 0; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #A9A294; }
.crumbs a { color: var(--muted); }
.page-head-art { position: relative; flex: none; align-self: flex-end; width: 400px; }
.page-head-art::before { content: ""; position: absolute; left: 50%; bottom: 6px; width: 200px; height: 200px; border-radius: 50%; background: var(--yellow); opacity: .45; transform: translateX(-50%); }
.page-head-art img { position: relative; margin: 14px auto 0; max-height: 226px; width: auto; }

/* Article text */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.5em; font-size: 32px; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--red); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--paper); border-left: 5px solid var(--yellow); color: var(--ink); font: 500 22px/1.45 var(--head); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 16px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--ink); color: #fff; font: 500 16px/1.3 var(--head); letter-spacing: .03em; }
.with-side { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.with-side.right { grid-template-columns: minmax(0, 1fr) 320px; }
.side { position: sticky; top: 112px; }
.toc { padding: 22px; background: var(--paper); }
.toc h4 { margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: flex; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.35; text-decoration: none; }
.toc a::before { content: counter(t) "."; color: var(--red-dark); font-weight: 600; }
.toc a:hover, .toc a.is-active { color: var(--red-dark); }

/* Reports */
.reports { display: grid; gap: 10px; }
.reports details { background: var(--paper); border-left: 4px solid var(--line); }
.reports details[open] { border-left-color: var(--red); }
.reports summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 10px 20px; color: var(--ink); font: 500 20px/1.25 var(--head); list-style: none; cursor: pointer; }
.reports summary::-webkit-details-marker { display: none; }
.reports summary::after { content: "+"; color: var(--red); font-size: 26px; line-height: 1; }
.reports details[open] summary::after { content: "–"; }
.reports-body { padding: 0 20px 18px; font-size: 16px; }
.doc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.doc-list li { margin: 0; border-top: 1px solid var(--line); }
.doc-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--text); text-decoration: none; }
.doc-list a:hover { color: var(--red-dark); }
.doc-list .icon { color: var(--red); }
.doc-list small { margin-left: auto; color: var(--muted); white-space: nowrap; }

/* Person page */
.profile { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile-card { position: sticky; top: 112px; background: var(--paper); }
.profile-photo { aspect-ratio: 4 / 4.6; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.facts { margin: 0; padding: 18px 22px 22px; border-top: 5px solid var(--red); }
.facts div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Contacts */
.contact-card { padding: 28px; background: var(--paper); border-top: 4px solid var(--yellow); }
.contact-card .icon { width: 28px; height: 28px; margin-bottom: 12px; color: var(--red); }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0; }

/* 404 */
.error { padding: 72px 0 0; text-align: center; background: var(--paper); }
.error b { display: block; color: var(--red); font: 700 clamp(90px, 16vw, 170px)/1 var(--head); }
.error .btn-row { justify-content: center; margin-bottom: 20px; }
.error img { width: min(520px, 90%); margin: 0 auto; }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--ink); color: #C4CED8; font-size: 16px; }
.footer-art { display: flex; align-items: flex-end; justify-content: center; height: clamp(130px, 17vw, 270px); margin-top: 18px; overflow: hidden; opacity: .5; }
.footer-art img { flex: none; width: max(100%, 980px); max-width: none; }
.footer-top { padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-block; width: 220px; margin-bottom: 16px; }
.footer h4 { margin-bottom: 12px; color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer a { color: #E5EAEF; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.footer-bottom { position: relative; padding: 15px 0; background: #17232F; color: #A8B4C0; font-size: 14px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; }

@media (max-width: 1160px) {
  .logo img { width: 180px; }
  .nav a, .nav button { padding: 10px 8px; font-size: 16px; }
}

@media (max-width: 1020px) {
  html { scroll-padding-top: 90px; }
  .burger { display: block; }
  .header .wrap { min-height: 72px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; max-height: calc(100vh - 72px); overflow-y: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 28px rgba(31, 46, 61, .18); }
  .nav-open .nav { display: block; }
  .nav > ul { display: block; padding: 8px var(--gutter) 16px; }
  .nav a, .nav button { width: 100%; min-height: 46px; padding: 10px 4px; font-size: 19px; }
  .nav button { justify-content: space-between; }
  .nav > ul > .is-active > a, .nav > ul > .is-active > button { box-shadow: none; }
  .sub { position: static; display: none; min-width: 0; padding: 0 0 6px 14px !important; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .has-sub.is-open .sub { display: block; }
  .g4, .leaders.g4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .with-side, .with-side.right, .profile { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .side, .profile-card { position: static; }
  .profile-card { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
  .facts { border-top: 0; border-left: 5px solid var(--red); }
  .page-head-art { width: 280px; }
  .split { gap: 36px; }
}

@media (max-width: 820px) {
  .sec { padding: 62px 0; }
  .g3, .leaders { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .split, .news-lead { grid-template-columns: minmax(0, 1fr); }
  .news-lead .news-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .page-head-art { display: none; }
  .page-head .wrap { min-height: 0; }
  .councils { grid-template-columns: minmax(0, 1fr); }
  .council { min-height: 0; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .topbar-text { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .logo img { width: 158px; }
  .grid { gap: 16px; }
  .leaders, .g3.news, .g3.pillars, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .g3.stat-grid, .g4.stat-grid { grid-template-columns: repeat(2, 1fr); }
  .person-info { padding: 12px; }
  .person-info h3 { font-size: 18px; }
  .person-info span { font-size: 14px; }
  .title-row { display: block; }
  .title-row .more { margin-top: 12px; }
  .hero-inner { padding-top: 40px; }
  .hero .btn { flex: 1 1 100%; }
  .stat b { font-size: 42px; }
  .news-lead .news-body { padding: 22px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .profile-card { display: block; }
  .facts { border-left: 0; border-top: 5px solid var(--red); }
  .doc-list a { flex-wrap: wrap; }
  .prose blockquote { font-size: 19px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
