/* 
 * ACSO Prototype CSS
 * Modern, clean, responsive Vanilla CSS
 */

@font-face {
  font-family: 'e-Ukraine';
  src: url('fonts/e-Ukraine-UltraLight.woff2') format('woff2'), url('fonts/e-Ukraine-UltraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'e-Ukraine';
  src: url('fonts/e-Ukraine-Light.woff2') format('woff2'), url('fonts/e-Ukraine-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'e-Ukraine';
  src: url('fonts/e-Ukraine-Regular.woff2') format('woff2'), url('fonts/e-Ukraine-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'e-Ukraine';
  src: url('fonts/e-Ukraine-Medium.woff2') format('woff2'), url('fonts/e-Ukraine-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}

:root {
  /* Brandbook p.17 — основні кольори */
  --brand-accent: #e95029; /* Orange, Pantone 172 C */
  --brand-dark: #12162a;   /* Dark Slate Blue, Pantone 296 C */
  --brand-light: #e5e3e8;  /* фон сторінок брендбуку */
  --brand-gray: #d3d4d8;   /* Gray, Pantone 427 C */

  /* Neutrals */
  --gray-100: #f4f4f6;
  --gray-200: var(--brand-gray);
  --gray-500: #8a8d99;
  --gray-800: #2c3044;

  /* Typography — e-Ukraine (brandbook p.15) */
  --font-base: 'e-Ukraine', system-ui, -apple-system, sans-serif;
  
  /* Scale (based on 1.68 ratio approx) */
  --text-base: 0.9rem;
  --text-lg: 1.0125rem;
  --text-h3: 1.35rem;
  --text-h2: 2.25rem;
  --text-h1: 3.15rem;
  
  /* Layout */
  --header-logo-h: 42px;
  --nav-item-h: var(--header-logo-h);
  --nav-pad-top: 6px;
  --site-header-offset: calc(3.35rem + 1px + var(--nav-active-inset));
  --header-container-max: 1360px;
  --nav-font: 0.75rem;
  --nav-pad-x: 8px;
  --nav-radius: 6px;
  --nav-hover-bg: var(--brand-light);
  --nav-active-bg: #2e3652;
  --nav-active-fg: #fff;
  --nav-active-gradient: linear-gradient(
    180deg,
    #3d4663 0%,
    #323b56 38%,
    #2a3148 68%,
    #222836 100%
  );
  --nav-active-inset: 1px;
  --nav-active-radius: 4px;
  --container-max: var(--header-container-max);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset */
html {
  scrollbar-gutter: stable;
}

.is-lang-pending :is(.main-nav, .footer-sitemap, .breadcrumbs, .page-head h1, [data-hero-slide]:first-child) {
  visibility: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--brand-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-accent);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: var(--text-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.01em; margin-bottom: 1.2rem; }
h3 { font-size: var(--text-h3); }

.mt-4 { margin-top: 1.5rem; }

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.9rem 0;
}

.bg-light {
  background-color: var(--gray-100);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--brand-accent);
  color: #fff;
}

.btn-primary:hover {
  background-color: #d84b2a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}

.btn-outline:hover {
  background-color: var(--brand-dark);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  padding-top: var(--nav-active-inset);
  background-color: #fff;
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.35rem;
  padding-block: 0.35rem;
  position: relative;
}

.logo a,
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
}

@media (min-width: 1200px) {
  :root {
    --site-header-offset: calc(3.35rem + 1px + var(--nav-active-inset));
  }

  .header-inner {
    gap: 1.25rem;
    height: 3.35rem;
    min-height: 3.35rem;
    padding-block: 0;
    align-items: stretch;
  }

  .header-inner > .logo,
  .header-inner > .header-utils,
  .header-inner > .mobile-menu-toggle {
    align-self: center;
  }

  .main-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    justify-content: center;
    min-width: 0;
  }

  .header-utils {
    margin-left: 0;
    gap: 0.85rem;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

.logo-full {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-full--header {
  height: var(--header-logo-h);
  width: auto;
  flex-shrink: 0;
}

.logo-org-name {
  display: none;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-content: space-between;
  height: var(--header-logo-h);
  margin-left: 4px;
  font-weight: 200;
  text-transform: uppercase;
  color: var(--brand-dark);
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-org-name__line {
  display: flex;
  align-items: center;
  font-size: calc(var(--header-logo-h) / 4.3);
  white-space: nowrap;
  min-height: 0;
}

.logo-org-name__line:nth-child(1) {
  align-items: flex-start;
}

.logo-org-name__line:nth-child(3) {
  align-items: flex-end;
}

@media (min-width: 768px) {
  .logo-org-name {
    display: grid;
  }
}



.nav-label {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}


.nav-label__line {
  display: block;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
}

.mobile-menu-toggle {
  flex-shrink: 0;
}

@media (max-width: 1199px) {
  .header-utils .social-icon {
    display: none;
  }

}

.logo-full--footer {
  height: 42px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.main-nav {
  display: none;
}

.main-nav.is-open {
  display: block;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  width: auto;
  background-color: #fff;
  padding: 1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-200);
}

.main-nav.is-open ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
}

.main-nav.is-open a {
  display: block;
  padding: 0.65rem 0;
  font-weight: 500;
}

.main-nav.is-open .has-dropdown .dropdown {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  padding: 0 0 0.25rem 1rem;
  min-width: 0;
}

.main-nav.is-open .dropdown a {
  font-size: 15px;
  padding: 0.4rem 0;
}

@media (min-width: 1200px) {
  .main-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
  }

  .main-nav.is-open {
    position: static;
    width: auto;
    padding: 0;
    box-shadow: none;
    border: none;
  }

  .main-nav.is-open ul,
  .main-nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    height: 100%;
    list-style: none;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .main-nav__list > li {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
  }

  .main-nav.is-open a,
  .main-nav__list > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 100%;
    padding: 0 0.65rem;
    margin: 0;
    color: var(--brand-dark);
    font-family: var(--font-base);
    font-size: var(--nav-font);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
    white-space: nowrap;
    background-color: transparent;
    border-radius: 0;
    box-sizing: border-box;
    transition: color 0.15s ease, background-color 0.15s ease;
  }

  .main-nav__list > li > a:has(.nav-label) {
    white-space: normal;
  }

  .main-nav__list > li > a:hover,
  .main-nav__list > li.has-dropdown:is(:hover, :focus-within) > a {
    color: var(--brand-dark);
    background-color: var(--nav-hover-bg);
  }

  .main-nav__list > li > a[aria-current="page"],
  .main-nav__list > li > a[aria-current="page"]:hover {
    align-self: stretch;
    height: auto;
    margin: 0;
    border-top: var(--nav-active-inset) solid #fff;
    border-bottom: var(--nav-active-inset) solid #fff;
    border-radius: var(--nav-active-radius);
    color: var(--nav-active-fg);
    background-color: var(--nav-active-bg);
    background-image: var(--nav-active-gradient);
    background-clip: padding-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .main-nav a:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
  }

  .nav-caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0.3em 0 0 0.5rem;
    font-size: 0;
    border-right: 1.5px solid var(--brand-accent);
    border-bottom: 1.5px solid var(--brand-accent);
    transform: rotate(45deg);
    transition: transform 0.15s ease, margin 0.15s ease;
  }

  .has-dropdown:is(:hover, :focus-within) .nav-caret {
    margin-top: 0.55em;
    transform: rotate(-135deg);
  }

  .has-dropdown {
    position: relative;
  }

  .main-nav__list > li.has-dropdown:is(:hover, :focus-within) > a {
    border-radius: 0;
  }

  .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    padding: 0 0 4px;
    list-style: none;
    background-color: var(--nav-hover-bg);
    border-radius: 0 0 var(--nav-radius) var(--nav-radius);
    box-shadow: 0 12px 20px -14px rgba(18, 22, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
  }

  .has-dropdown:is(:hover, :focus-within) .dropdown {
    opacity: 1;
    visibility: visible;
  }

  .dropdown li {
    display: block;
    margin: 0;
  }

  .dropdown a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 2.5rem;
    padding: 0 var(--nav-pad-x);
    color: var(--brand-dark);
    font-size: var(--nav-font);
    font-weight: 400;
    white-space: nowrap;
    border-radius: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  .dropdown li:last-child a {
    border-radius: 0 0 var(--nav-radius) var(--nav-radius);
  }

  .dropdown a:hover {
    color: var(--brand-dark);
    background-color: var(--brand-gray);
  }

  .main-nav__list > li.is-current-parent > a,
  .main-nav__list > li.is-current-parent:is(:hover, :focus-within) > a,
  .main-nav__list > li.has-dropdown:is(:hover, :focus-within) > a[aria-current="page"] {
    align-self: stretch;
    height: auto;
    margin: 0;
    border-top: var(--nav-active-inset) solid #fff;
    border-bottom: var(--nav-active-inset) solid #fff;
    border-radius: var(--nav-active-radius);
    color: var(--nav-active-fg);
    background-color: var(--nav-active-bg);
    background-image: var(--nav-active-gradient);
    background-clip: padding-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .main-nav__list > li.has-dropdown:is(:hover, :focus-within) > a[aria-current="page"],
  .main-nav__list > li.is-current-parent:is(:hover, :focus-within) > a {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .dropdown a[aria-current="page"] {
    color: var(--nav-active-fg);
    background-color: var(--nav-active-bg);
  }
}

@media (min-width: 1360px) {
  :root {
    --nav-font: 0.875rem;
    --nav-pad-x: 12px;
  }
}

@media (max-width: 1199px) {
  .logo {
    max-width: calc(100% - 8rem);
  }
}

.mobile-menu-toggle {
  display: block;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switch--text {
  font-size: 1rem;
  font-weight: 400;
  gap: 0.65rem;
}

.lang-link {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-link.is-active,
.lang-link:hover {
  color: var(--brand-dark);
}

.lang-link.is-active {
  font-weight: 500;
}

.social-icon, .search-icon {
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.social-icon:hover, .search-icon:hover {
  color: var(--brand-accent);
}


.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 20px;
  position: relative;
}

@media (min-width: 1200px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--brand-dark);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) { top: 0; }
.mobile-menu-toggle span:nth-child(2) { top: 9px; }
.mobile-menu-toggle span:nth-child(3) { top: 18px; }

/* Hero slider */
.hero-slider {
  position: relative;
  background-color: var(--brand-dark);
  color: #fff;
}

.hero-slider__viewport {
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  display: flex;
  align-items: flex-start;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, rgba(18, 22, 42, 0.92) 0%, rgba(18, 22, 42, 0.55) 45%, rgba(18, 22, 42, 0.35) 100%),
    var(--slide-image);
  background-size: cover;
  background-position: center;
}

.hero-slide__bg--map {
  background-color: #050c1e;
  background-size: cover, cover;
  background-position: center, 70% center;
}

@media (min-width: 768px) {
  .hero-slide__bg--map {
    background-size: cover, auto 100%;
    background-repeat: no-repeat;
    background-position: center, right center;
  }
}

.hero-slide__inner {
  position: relative;
  z-index: 2;
  padding-block: 2.15rem 2.7rem;
  width: 100%;
}

.hero-slide__copy {
  max-width: 44rem;
}

.hero-slide__org {
  margin-bottom: 0.7rem;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero-slide__eyebrow {
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.85rem;
}

.hero-slide__title {
  max-width: 44rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  padding-bottom: 0.7rem;
  border-bottom: 3px solid var(--brand-accent);
}

.hero-slide__title span {
  color: rgba(255, 255, 255, 0.92);
}

.hero-slide__lead {
  margin-top: 1rem;
  padding-left: 1.25rem;
  border-left: 4px solid rgba(233, 80, 41, 0.55);
}

.hero-slide__lead p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 44rem;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.btn-outline--light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-outline--light:hover {
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (min-width: 992px) {
  .hero-slide.is-active {
    height: 18.9rem;
    min-height: 18.9rem;
  }

  .hero-slide.is-active .hero-slide__inner,
  .hero-slide.is-active .hero-slide__copy {
    height: 100%;
  }

  .hero-slide.is-active .hero-slide__inner {
    padding: 1.25rem 0 4rem;
  }

  .hero-slide.is-active .hero-slide__copy {
    display: flex;
    flex-direction: column;
  }

  .hero-slide.is-active .hero-slide__org {
    margin-bottom: 0.15rem;
  }

  .hero-slide.is-active .hero-slide__title {
    line-height: 1.08;
    padding-bottom: 0.2rem;
  }

  .hero-slide.is-active .hero-slide__lead {
    margin-top: 0.35rem;
  }

  .hero-slide.is-active .hero-slide__lead p {
    line-height: 1.4;
  }

  .hero-slide.is-active .hero-slide__actions {
    margin-top: auto;
  }

  .hero-slide.is-active .hero-slide__actions .btn {
    padding: 0.45rem 1.25rem;
  }
}

.hero-slider--news {
  background: #fff;
  color: var(--brand-dark);
  height: 15.3125rem;
  overflow: hidden;
}

.hero-slider--news .hero-slider__viewport,
.hero-slider--news .hero-slider__track,
.hero-slider--news .hero-slide.is-active {
  height: 100%;
}

.hero-slider--news .hero-slide,
.hero-slider--news .hero-slide.is-active {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: opacity 0.45s ease;
}

.hero-slider--news .hero-slide__bg {
  background: #fff;
}

.hero-slider--news .hero-slide__copy {
  padding-left: 0;
  border-left: 0;
}

.hero-slider--news .hero-slide__title,
.hero-slider--news .hero-slide__title span,
.hero-slider--news .hero-slide__lead p {
  color: var(--brand-dark);
  text-shadow: none;
}

.hero-slider--news .hero-slide__title {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  max-height: calc(1.35em * 2);
  padding-bottom: 0;
  border-bottom: 0;
  overflow: hidden;
}

.hero-slider--news .hero-slide__lead {
  margin-top: 0.65rem;
  padding-left: 0;
  border-left: 0;
}

.hero-slider--news .hero-slide__lead p {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--brand-dark);
  max-height: calc(1.45em * 2);
  overflow: hidden;
}

.hero-slider--news .btn-outline--light {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
  background-color: transparent;
}

.hero-slider--news .btn-outline--light:hover {
  background-color: var(--brand-dark);
  color: #fff;
}

.hero-slider--news .hero-slider__dot {
  background: rgba(18, 22, 42, 0.28);
}

.hero-slider--news .hero-slider__dot.is-active {
  background: var(--brand-accent);
}

@media (min-width: 992px) {
  .hero-slider--news .hero-slider__viewport,
  .hero-slider--news .hero-slider__track,
  .hero-slider--news .hero-slide.is-active,
  .hero-slider--news .hero-slide.is-active .hero-slide__inner,
  .hero-slider--news .hero-slide.is-active .hero-slide__copy {
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  .hero-slider--news .hero-slide.is-active .hero-slide__inner {
    padding: 1.35rem 1.5rem 4.5rem;
    overflow: hidden;
  }

  .hero-slider--news .hero-slide.is-active .hero-slide__actions {
    margin-top: auto;
    padding-top: 1.35rem;
  }

  .hero-slider--news .hero-slider__controls {
    bottom: 0.85rem;
  }
}

.hero-slider__controls {
  position: absolute;
  bottom: 0.7rem;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  pointer-events: none;
}

.hero-slider__arrow,
.hero-slider__dots {
  pointer-events: auto;
}

.hero-slider__arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(18, 22, 42, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  transition: var(--transition);
}

.hero-slider__arrow:hover {
  border-color: #fff;
  background: rgba(233, 80, 41, 0.25);
}

.hero-slider__dots {
  display: flex;
  gap: 0.5rem;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-slider__dot.is-active {
  width: 28px;
  background: var(--brand-accent);
}

/* Legacy hero utilities (inner pages) */
.hero {
  padding: 6rem 0;
  background-color: #fcfcfc;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(233, 80, 41, 0.1);
  color: var(--brand-accent);
  font-weight: 500;
  font-size: 0.7875rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: var(--text-lg);
  color: var(--gray-800);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero h1 {
  font-size: var(--text-h2);
  letter-spacing: -0.01em;
}

.hero-mission {
  margin-bottom: 2rem;
}

.hero-mission strong {
  display: block;
  font-size: 1.0125rem;
  color: var(--brand-dark);
  margin-bottom: 0.75rem;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.5;
}

.hero-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-accent);
  font-weight: bold;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.abstract-shape {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-200) 0%, #e2e2e2 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.abstract-shape::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background-color: var(--brand-accent);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(40px);
}

/* Sections Header */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 2.35rem;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .section-header h2 {
    margin-bottom: 0;
  }
}

.link-arrow {
  font-weight: 500;
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
}

.link-arrow:hover {
  transform: translateX(4px);
}

/* Cards */
.card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.direction-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: var(--brand-dark);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.direction-card__title {
  display: flex;
  align-items: center;
  min-height: 6.25rem;
  margin: 0;
  padding: 1.5rem 2rem;
  color: var(--brand-dark);
  background-color: #fff;
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.direction-card__text {
  padding: 1.5rem 2rem 2rem;
  color: var(--gray-800);
  font-size: 0.845rem;
  line-height: 1.55;
}

.direction-card:hover,
.direction-card:focus-visible,
.dir-slider:not(:has(.direction-card:hover)) .direction-card.is-edge {
  color: var(--brand-dark);
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 1px var(--brand-accent), 0 18px 32px -18px rgba(18, 22, 42, 0.45);
  transform: translateY(-6px);
  outline: none;
}

.direction-card:hover .direction-card__title,
.direction-card:focus-visible .direction-card__title,
.dir-slider:not(:has(.direction-card:hover)) .direction-card.is-edge .direction-card__title {
  color: #fff;
  background-color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
}

.direction-card:active {
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

/* News Cards */
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.news-image {
  height: 240px;
  background-color: var(--gray-200);
  width: 100%;
}

.placeholder-img-1 {
  background: linear-gradient(45deg, #e4e1e8, #c9c5d1);
}

.placeholder-img-2 {
  background: linear-gradient(45deg, #fcece8, #f5d4cc);
}

.news-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-content .category {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--brand-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.news-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.news-title a {
  color: inherit;
}

.news-title a:hover {
  color: var(--brand-accent);
}

.news-excerpt {
  color: var(--gray-800);
  font-size: 0.845rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-content .date {
  font-size: 0.7875rem;
  color: var(--gray-500);
}

/* Network Section */
.network-inner {
  background-color: var(--brand-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .network-inner {
    padding: 5rem;
    grid-template-columns: 1fr 1fr;
  }
}

.network-inner h2 {
  color: #fff;
}

.network-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.0125rem;
}

.network-map-placeholder {
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-dots {
  width: 120px;
  height: 80px;
  background-image: radial-gradient(circle, var(--brand-accent) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background-color: var(--brand-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4.7rem 0 1.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.8rem;
  margin-bottom: 3.75rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  color: #fff;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: #fff;
  font-size: 1.0125rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.7875rem;
}

@media (min-width: 992px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .disclaimer {
    max-width: 60%;
  }
}

/* ==========================================================================
   Inner pages — shared components
   ========================================================================== */

/* Button states */
.btn {
  gap: 0.5rem;
  font-family: var(--font-base);
  font-size: 0.875rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary.is-hover {
  background-color: #d84b2a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active,
.btn-primary.is-active {
  background-color: #c4441f;
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline.is-hover {
  background-color: var(--brand-dark);
  color: #fff;
}

.btn-outline:active,
.btn-outline.is-active {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

.btn-dark {
  background-color: var(--brand-dark);
  color: #fff;
}

.btn-dark:hover,
.btn-dark.is-hover {
  background-color: var(--gray-800);
  color: #fff;
}

.btn-dark:active,
.btn-dark.is-active {
  background-color: #000;
}

.btn:focus-visible,
.btn.is-focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

.btn:disabled,
.btn.is-disabled {
  background-color: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-500);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* Links */
.text-link {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover,
.text-link.is-hover {
  color: var(--brand-accent);
  text-decoration-thickness: 2px;
}

.text-link:focus-visible,
.text-link.is-focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.text-link.is-visited {
  color: var(--gray-800);
  text-decoration-color: var(--gray-500);
}

.link-arrow:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

/* Page head — same visual language as the home hero */
.page-head {
  padding: 1.85rem 0 2.1rem;
  color: #fff;
  background-color: var(--brand-dark);
  background-image:
    linear-gradient(115deg, rgba(18, 22, 42, 1) 0%, rgba(18, 22, 42, 0.96) 55%, rgba(18, 22, 42, 0.8) 100%),
    radial-gradient(rgba(211, 212, 216, 0.35) 1.5px, transparent 1.6px);
  background-size: auto, 14px 14px;
}

.page-head h1 {
  max-width: 44rem;
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: #fff;
  border-bottom: 0;
}

.page-head__lead {
  max-width: 44rem;
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  border-left: 4px solid rgba(233, 80, 41, 0.55);
}

.breadcrumbs {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a:hover {
  color: var(--brand-accent);
}

.page-head .article-head__meta {
  color: rgba(255, 255, 255, 0.8);
}

.page-head a.topic:hover {
  color: #fff;
}

.page-head .search-field--lg {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.section--tight {
  padding: 2.55rem 0;
}

/* Archive toolbar: search + topic filters */
.archive-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 992px) {
  .archive-toolbar {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    align-items: start;
  }
}

.search-field {
  position: relative;
  display: flex;
}

.search-field__icon {
  position: absolute;
  top: 50%;
  left: 0.95rem;
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  padding-left: 2.75rem;
}

.search-field--lg input {
  height: 3.5rem;
  font-size: 1rem;
}

.search-field--lg .btn {
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips__label {
  display: block;
  width: 100%;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.95rem;
  font-family: var(--font-base);
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--brand-dark);
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover,
.chip.is-hover {
  border-color: var(--brand-dark);
}

.chip:focus-visible,
.chip.is-focus {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.chip[aria-pressed="true"],
.chip.is-active {
  color: #fff;
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.chip:disabled,
.chip.is-disabled {
  color: var(--gray-500);
  background-color: var(--gray-100);
  border-color: var(--gray-100);
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -1.5rem;
    padding: 0 1.5rem 0.25rem;
    scrollbar-width: none;
  }

  .chips--scroll .chips__label {
    display: none;
  }
}

.archive-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* Topic label */
.topic {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.topic::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--brand-accent);
  border-radius: 2px;
}

a.topic:hover {
  color: var(--brand-dark);
}

/* Unified post card */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1.65rem; }
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover,
.post-card:focus-within,
.post-card.is-hover {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 1px var(--brand-accent), 0 18px 32px -18px rgba(18, 22, 42, 0.45);
  transform: translateY(-4px);
}

.post-card[hidden] {
  display: none;
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--gray-200);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.65rem;
  padding: 1.35rem 1.4rem 1.55rem;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.post-card__date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.post-card__title {
  margin: 0;
  font-size: 1.0125rem;
  line-height: 1.35;
}

.post-card__title a {
  color: var(--brand-dark);
}

.post-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.post-card__title a:focus-visible {
  outline: none;
}

.post-card__excerpt {
  flex-grow: 1;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-800);
}

.post-card__author {
  font-size: 0.75rem;
  color: var(--gray-800);
}

.post-card__author strong {
  font-weight: 500;
}

.post-card--row {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .post-card--row {
    grid-template-columns: 16rem 1fr;
  }

  .post-card--row .post-card__media {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* Generated cover (no photo) */
.cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  color: #fff;
  background-color: var(--brand-dark);
  background-image: radial-gradient(rgba(211, 212, 216, 0.22) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
}

.cover::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 2.5rem;
  height: 4px;
  background-color: var(--brand-accent);
}

.cover__label {
  position: relative;
  max-width: 85%;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.cover--light {
  color: var(--brand-dark);
  background-color: var(--brand-light);
  background-image: radial-gradient(rgba(18, 22, 42, 0.14) 1.5px, transparent 1.6px);
}

.cover--accent {
  background-color: var(--brand-accent);
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.5px, transparent 1.6px);
}

.cover--accent::before {
  background-color: var(--brand-dark);
}

.cover--gray {
  color: var(--brand-dark);
  background-color: var(--brand-gray);
  background-image: radial-gradient(rgba(18, 22, 42, 0.16) 1.5px, transparent 1.6px);
}

/* Library publication card */
.pub-card .post-card__media {
  aspect-ratio: 3 / 4;
}

.pub-card .cover {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.5rem;
}

.pub-card .cover__title {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: none;
}

.pub-card .cover__year {
  position: relative;
  font-size: 0.75rem;
  opacity: 0.75;
}

.pub-card .post-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* Pagination / load more */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2.8rem;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--brand-dark);
  border: 1px solid var(--gray-200);
  border-radius: var(--nav-radius);
  background-color: #fff;
}

.pagination a:hover,
.pagination a.is-hover {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}

.pagination a:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.pagination [aria-current="page"] {
  color: #fff;
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.pagination .is-disabled {
  color: var(--gray-500);
  background-color: var(--gray-100);
  border-color: var(--gray-100);
}

.pagination .is-gap {
  border-color: transparent;
  background: none;
}

.load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.8rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--gray-800);
  background-color: var(--gray-100);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.empty-state p {
  font-size: 0.875rem;
}

.empty-state[hidden] {
  display: none;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-dark);
}

.form-label .req {
  color: var(--brand-accent);
}

.input,
.select,
.textarea,
.search-field input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-family: var(--font-base);
  font-size: 0.875rem;
  color: var(--brand-dark);
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.search-field input {
  padding-left: 2.75rem;
}

.textarea {
  height: auto;
  min-height: 8rem;
  padding: 0.85rem 1rem;
  line-height: 1.5;
  resize: vertical;
}

.select {
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand-accent) 50%), linear-gradient(135deg, var(--brand-accent) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.input::placeholder,
.textarea::placeholder,
.search-field input::placeholder {
  color: var(--gray-500);
}

.input:hover,
.select:hover,
.textarea:hover,
.search-field input:hover,
.input.is-hover {
  border-color: var(--gray-500);
}

.input:focus,
.select:focus,
.textarea:focus,
.search-field input:focus,
.input.is-focus {
  outline: none;
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(18, 22, 42, 0.12);
}

.form-field.is-invalid .input,
.form-field.is-invalid .textarea,
.form-field.is-invalid .select {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(233, 80, 41, 0.14);
}

.form-field.is-valid .input {
  border-color: #7f8c72;
}

.input:disabled,
.input.is-disabled {
  color: var(--gray-500);
  background-color: var(--gray-100);
  border-color: var(--gray-100);
  cursor: not-allowed;
}

.form-hint,
.form-error {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.form-error {
  display: none;
  color: var(--brand-accent);
}

.form-field.is-invalid .form-error {
  display: block;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gray-800);
  cursor: pointer;
}

.checkbox input {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--brand-dark);
}

.checkbox input:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

.form-field.is-invalid .checkbox {
  color: var(--brand-accent);
}

.form-hp {
  position: absolute;
  left: -9999px;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: var(--radius);
  border-left: 4px solid;
}

.alert[hidden] {
  display: none;
}

.alert--success {
  color: var(--brand-dark);
  background-color: #eef0ea;
  border-color: #7f8c72;
}

.alert--error {
  color: var(--brand-dark);
  background-color: #fdece7;
  border-color: var(--brand-accent);
}

/* Article (single) */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 4rem;
  }
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-800);
}

.article-head__meta time,
.article-head__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-cover {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background-color: var(--gray-200);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray-800);
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose .lead {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--brand-dark);
}

.prose h2 {
  margin: 2.75rem 0 0;
  font-size: 1.45rem;
  color: var(--brand-dark);
}

.prose h3 {
  margin: 2rem 0 0;
  font-size: 1.125rem;
  color: var(--brand-dark);
}

.prose a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--brand-accent);
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose ul li::marker {
  color: var(--brand-accent);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--brand-dark);
  border-left: 4px solid var(--brand-accent);
}

.prose blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-style: normal;
  color: var(--gray-500);
}

.prose figure {
  margin: 2rem 0;
}

.prose figcaption {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.prose thead th {
  font-weight: 500;
  color: #fff;
  background-color: var(--brand-dark);
}

.prose tbody tr:nth-child(even) {
  background-color: var(--gray-100);
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.bar-chart {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: var(--gray-100);
  border-radius: var(--radius);
}

.bar-chart__row {
  display: grid;
  grid-template-columns: 9rem 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--brand-dark);
}

.bar-chart__bar {
  height: 0.75rem;
  background-color: var(--brand-gray);
  border-radius: 999px;
  overflow: hidden;
}

.bar-chart__bar span {
  display: block;
  height: 100%;
  background-color: var(--brand-accent);
  border-radius: inherit;
}

.bar-chart__row:nth-child(even) .bar-chart__bar span {
  background-color: var(--brand-dark);
}

.bar-chart__value {
  text-align: right;
  font-weight: 500;
}

@media (max-width: 539px) {
  .bar-chart__row {
    grid-template-columns: 1fr 3rem;
  }

  .bar-chart__row > :first-child {
    grid-column: 1 / -1;
  }
}

/* Aside */
.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .article-aside__sticky {
    position: sticky;
    top: 7rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

.aside-box {
  padding: 1.5rem;
  background-color: var(--gray-100);
  border-radius: var(--radius-lg);
}

.aside-box h3,
.aside-box__title {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.aside-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  font-size: 0.8125rem;
}

.aside-list dt {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.aside-list dd {
  color: var(--brand-dark);
}

.person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--brand-dark);
  border-radius: 999px;
}

.person__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-dark);
}

.person__role {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* File download */
.file-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--brand-dark);
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.file-card:hover,
.file-card:focus-visible {
  color: var(--brand-dark);
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 1px var(--brand-accent);
  outline: none;
}

.file-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 3.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #fff;
  background-color: var(--brand-accent);
  border-radius: 4px;
}

.file-card__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.file-card__size {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.file-card__action {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--brand-accent);
}

.files-list {
  display: grid;
  gap: 0.75rem;
}

/* Share */
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0 0.75rem;
  font-family: var(--font-base);
  font-size: 0.75rem;
  color: var(--brand-dark);
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share__btn svg {
  width: 16px;
  height: 16px;
}

.share__btn:hover {
  color: #fff;
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

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

.share__btn.is-done {
  color: #fff;
  background-color: #7f8c72;
  border-color: #7f8c72;
}

.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Gallery & video */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--gray-200);
  border: 0;
  padding: 0;
  cursor: zoom-in;
}

.gallery__item img,
.gallery__item .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__item:hover img,
.gallery__item:hover .cover {
  transform: scale(1.04);
}

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

.video-embed {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(rgba(18, 22, 42, 0.55), rgba(18, 22, 42, 0.75)), url('hero_bg.png') center / cover;
  border-radius: var(--radius-lg);
}

.video-embed__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  color: #fff;
  background-color: var(--brand-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video-embed__play:hover {
  transform: scale(1.06);
  background-color: #d84b2a;
}

.video-embed__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: rgba(18, 22, 42, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  color: #fff;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
}

.related {
  background-color: var(--gray-100);
}

/* Network map */
.network-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1100px) {
  .network-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 1fr);
    align-items: start;
  }
}

.ua-map {
  position: relative;
  padding: 1.5rem;
  background-color: var(--brand-dark);
  border-radius: var(--radius-lg);
}

.ua-map__canvas {
  position: relative;
  aspect-ratio: 1000 / 666;
}

.ua-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ua-map__shape {
  fill: url(#ua-dots);
  stroke: rgba(211, 212, 216, 0.7);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.map-marker {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: none;
  border: 0;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-marker::before {
  content: '';
  position: absolute;
  inset: 0.3rem;
  background-color: var(--brand-accent);
  border: 2px solid #fff;
  border-radius: 999px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.map-marker:hover::before,
.map-marker:focus-visible::before,
.map-marker.is-active::before {
  transform: scale(1.5);
}

.map-marker.is-active::before {
  background-color: #fff;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 6px rgba(233, 80, 41, 0.35);
}

.map-marker:focus-visible {
  outline: none;
}

.map-marker__label {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  white-space: nowrap;
  color: var(--brand-dark);
  background-color: #fff;
  border-radius: 4px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.map-marker:hover .map-marker__label,
.map-marker:focus-visible .map-marker__label,
.map-marker.is-active .map-marker__label {
  opacity: 1;
}

.ua-map__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.ua-map__legend::before {
  content: '';
  width: 0.7rem;
  height: 0.7rem;
  background-color: var(--brand-accent);
  border: 2px solid #fff;
  border-radius: 999px;
}

.center-panel {
  padding: 1.75rem;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.center-panel h3 {
  margin-bottom: 0.35rem;
  font-size: 1.125rem;
}

.center-panel__region {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.center-panel p {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-800);
}

.center-list {
  display: grid;
  gap: 0.25rem;
  max-height: 26rem;
  margin-top: 1.25rem;
  overflow-y: auto;
  list-style: none;
}

.center-list button,
.center-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-base);
  font-size: 0.8125rem;
  text-align: left;
  color: var(--brand-dark);
  background: none;
  border: 0;
  border-radius: var(--nav-radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.center-list button:hover {
  background-color: var(--brand-light);
}

.center-list button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
}

.center-list button.is-active {
  color: #fff;
  background-color: var(--brand-dark);
}

.center-list small {
  font-size: 0.7rem;
  color: inherit;
  opacity: 0.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  padding: 0.8rem 1rem;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--brand-accent);
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--gray-800);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toolbar-row .form-field {
  min-width: 16rem;
}

/* Center page */
.contact-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  font-size: 0.8125rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
}

.contact-list span {
  color: var(--gray-500);
}

.contact-list a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-underline-offset: 3px;
}

/* About */
.subnav {
  position: sticky;
  top: var(--site-header-offset);
  z-index: 50;
  background-color: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.subnav ul {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.subnav a {
  display: block;
  padding: 1rem 0.85rem;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--gray-800);
  border-bottom: 2px solid transparent;
}

.subnav a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-gray);
}

.subnav a.is-active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-accent);
}

@media (max-width: 1199px) {
  .subnav {
    top: var(--site-header-offset);
  }
}

[id] {
  scroll-margin-top: 9rem;
}

.mission {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .mission {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }
}

.mission__quote {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--brand-dark);
  border-left: 4px solid var(--brand-accent);
  padding-left: 1.5rem;
}

.history {
  max-width: 40rem;
  margin-inline: auto;
}

.history h2,
.history .form-hint {
  text-align: center;
}

.timeline {
  --tl-marker-size: 0.85rem;
  --tl-marker-border: 3px;
  --tl-line-width: 2px;
  /* Вісь таймлайну — центр кружечка від лівого краю (кружечок стоїть на left: -2rem при padding-left: 2rem) */
  --tl-axis: calc((var(--tl-marker-size) + 2 * var(--tl-marker-border)) / 2);
  position: relative;
  display: grid;
  gap: 2rem;
  list-style: none;
  max-width: 34rem;
  margin: 2rem auto 0;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  /* Лінія центрується по осі кружечка */
  left: calc(var(--tl-axis) - var(--tl-line-width) / 2);
  width: var(--tl-line-width);
  background-color: var(--brand-gray);
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  top: 0.35rem;
  left: -2rem;
  width: var(--tl-marker-size);
  height: var(--tl-marker-size);
  background-color: #fff;
  border: var(--tl-marker-border) solid var(--brand-accent);
  border-radius: 999px;
}

.timeline__year {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-accent);
}

.timeline h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1rem;
}

.timeline p {
  max-width: 40rem;
  font-size: 0.8125rem;
  color: var(--gray-800);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1.5rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 1px var(--brand-accent);
}

.team-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  font-size: 2.25rem;
  font-weight: 200;
  color: var(--brand-dark);
  background-color: var(--brand-light);
  background-image: radial-gradient(rgba(18, 22, 42, 0.1) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
}

.team-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.team-card__name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.team-card__role {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--brand-accent);
}

.team-card__bio {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--gray-800);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 8rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--brand-dark);
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-tile:hover,
.partner-tile:focus-visible {
  color: var(--brand-dark);
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 1px var(--brand-accent);
  outline: none;
}

.partner-tile__logo {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.partner-tile__url {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.contact-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
  }
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

/* Democracy landing */
.topic-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .topic-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .topic-tiles { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
}

.topic-tile {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  color: var(--brand-dark);
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.topic-tile__num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand-accent);
}

.topic-tile h3 {
  margin: 0;
  font-size: 1.0625rem;
}

.topic-tile p {
  flex-grow: 1;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-800);
}

.topic-tile__more {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-accent);
}

.topic-tile:hover,
.topic-tile:focus-visible {
  color: #fff;
  background-color: var(--brand-dark);
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 1px var(--brand-accent), 0 18px 32px -18px rgba(18, 22, 42, 0.45);
  transform: translateY(-4px);
  outline: none;
}

.topic-tile:hover p,
.topic-tile:focus-visible p {
  color: rgba(255, 255, 255, 0.8);
}

.accordion {
  display: grid;
  gap: 0.75rem;
  max-width: 52rem;
}

.accordion details {
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.accordion details[open] {
  border-color: var(--brand-dark);
}

.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--brand-dark);
  cursor: pointer;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--brand-accent);
  border-bottom: 1.5px solid var(--brand-accent);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.accordion details[open] summary::after {
  transform: rotate(-135deg);
}

.accordion summary:hover {
  color: var(--brand-accent);
}

.accordion summary:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.accordion__body {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gray-800);
}

/* Search results */
.search-summary {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-800);
}

.search-summary strong {
  font-weight: 500;
  color: var(--brand-dark);
}

.results {
  display: grid;
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--gray-200);
}

.result {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.result[hidden] {
  display: none;
}

.result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.result__type {
  padding: 0.15rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--brand-dark);
  background-color: var(--brand-light);
  border-radius: 4px;
}

.result__title {
  margin-bottom: 0.4rem;
  font-size: 1.0625rem;
}

.result__title a {
  color: var(--brand-dark);
}

.result__title a:hover {
  color: var(--brand-accent);
}

.result__excerpt {
  max-width: 48rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--gray-800);
}

mark {
  padding: 0 0.1em;
  color: inherit;
  background-color: rgba(233, 80, 41, 0.18);
  border-radius: 2px;
}

/* UI states page */
.states-section + .states-section {
  margin-top: 4rem;
}

.states-section > h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.states-section > p {
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--gray-800);
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1.5rem 1rem;
  padding: 1.75rem;
  background-color: var(--gray-100);
  border-radius: var(--radius-lg);
}

.states-grid--dark {
  background-color: var(--brand-dark);
}

.states-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
}

.state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.state__caption {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.states-grid--dark .state__caption {
  color: rgba(255, 255, 255, 0.6);
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}

.swatch {
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.75rem;
}

.swatch__color {
  height: 5rem;
}

.swatch__info {
  padding: 0.65rem 0.85rem;
  line-height: 1.4;
}

.swatch__info strong {
  display: block;
  font-weight: 500;
}

/* Footer additions */
.footer-sitemap {
  columns: 2;
  column-gap: 2rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  color: #fff;
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.footer-links p {
  margin-bottom: 0.75rem;
}

.footer-links p a {
  color: rgba(255, 255, 255, 0.85);
}

/* Mobile nav current item */
.main-nav.is-open a[aria-current="page"] {
  color: var(--brand-accent);
}

@media (max-width: 767px) {
  .section {
    padding: 2.7rem 0;
  }

  .page-head {
    padding: 1.3rem 0 1.5rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .search-field--lg {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-field--lg .search-field__icon {
    top: 1.75rem;
  }

  .search-field--lg .btn {
    margin-left: 0;
  }
}

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

.load-more[hidden] {
  display: none;
}
.state .pagination { margin-top: 0; justify-content: flex-start; }

.prose .file-card {
  text-decoration: none;
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .topic-tiles {
    grid-template-columns: repeat(5, 1fr);
  }
}

.network-inner .ua-map {
  padding: 0;
  background: none;
}

.page-head--image {
  padding-bottom: 2.1rem;
  min-height: 10.25rem;
  background-image:
    linear-gradient(90deg, rgba(18, 22, 42, 1) 0%, rgba(18, 22, 42, 0.94) 38%, rgba(18, 22, 42, 0.45) 72%, rgba(18, 22, 42, 0.2) 100%),
    var(--head-image);
  background-size: cover;
  background-position: center, right center;
}

/* Home — dot-map from legacy hero: full Ukraine visible on the right, not stretched */
.page-head--image.page-head--home {
  background-color: #050c1e;
  background-image:
    linear-gradient(115deg, rgba(18, 22, 42, 0.92) 0%, rgba(18, 22, 42, 0.55) 45%, rgba(18, 22, 42, 0.35) 100%),
    var(--head-image);
  background-size: cover, cover;
  background-repeat: no-repeat;
  background-position: center, 70% center;
}

@media (min-width: 768px) {
  .page-head--image.page-head--home {
    background-size: cover, auto 100%;
    background-position: center, right center;
  }
}

@media (max-width: 767px) {
  .page-head--image {
    background-image:
      linear-gradient(180deg, rgba(18, 22, 42, 0.82) 0%, rgba(18, 22, 42, 0.94) 100%),
      var(--head-image);
    background-position: center, 70% center;
  }

  .page-head--image.page-head--home {
    background-image:
      linear-gradient(115deg, rgba(18, 22, 42, 0.92) 0%, rgba(18, 22, 42, 0.55) 45%, rgba(18, 22, 42, 0.35) 100%),
      var(--head-image);
    background-size: cover, cover;
    background-position: center, 70% center;
  }
}


/* Direction carousel (homepage, IRF-style) */
.dir-slider__viewport {
  overflow: hidden;
  padding: 0.5rem 0.15rem 1.25rem;
  margin: -0.5rem -0.15rem -1.25rem;
}

.dir-slider__track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  transition: transform 0.45s ease;
}

.dir-slider__track > .direction-card {
  flex: 0 0 100%;
  height: auto;
}

@media (min-width: 700px) {
  .dir-slider__track > .direction-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 1024px) {
  .dir-slider__track > .direction-card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

.dir-slider__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.dir-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.dir-slider__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.dir-slider__rail {
  flex: 1;
  height: 3px;
  background: var(--brand-gray);
  border-radius: 999px;
  overflow: hidden;
}

.dir-slider__rail > span {
  display: block;
  height: 100%;
  background: var(--brand-dark);
}

/* News archive — 5-up mosaic (clockwise: bl → tl → center → tr → br) */
.news-mosaic-section {
  padding-top: 2.5rem;
}

.news-mosaic__grid {
  --news-mosaic-row: 12.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: var(--news-mosaic-row) var(--news-mosaic-row);
  grid-template-areas:
    "tl feat tr"
    "bl feat br";
  gap: 0.35rem;
  height: calc(var(--news-mosaic-row) * 2 + 0.35rem);
  min-height: calc(var(--news-mosaic-row) * 2 + 0.35rem);
  max-height: calc(var(--news-mosaic-row) * 2 + 0.35rem);
}

.news-mosaic__cell[data-mosaic-slot="tl"] { grid-area: tl; }
.news-mosaic__cell[data-mosaic-slot="bl"] { grid-area: bl; }
.news-mosaic__cell[data-mosaic-slot="feat"] { grid-area: feat; }
.news-mosaic__cell[data-mosaic-slot="tr"] { grid-area: tr; }
.news-mosaic__cell[data-mosaic-slot="br"] { grid-area: br; }

.news-mosaic__cell {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.news-mosaic__tile {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background-color: var(--brand-dark);
  border-radius: var(--radius);
}

.news-mosaic__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.news-mosaic__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-mosaic__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #2a3050 100%);
}

.news-mosaic__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
  height: 5.65rem;
  min-height: 5.65rem;
  max-height: 5.65rem;
  padding: 0.65rem 1rem 0.9rem;
  box-sizing: border-box;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 22, 42, 0.35) 35%, rgba(18, 22, 42, 0.92) 100%);
}

.news-mosaic__tags {
  margin: 0;
  flex-shrink: 0;
  min-height: 0.9rem;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.75);
}

.news-mosaic__tags--empty {
  visibility: hidden;
}

.news-mosaic__title {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-mosaic__date {
  flex-shrink: 0;
  font-size: 0.75rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.78);
}

.news-mosaic__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.news-mosaic__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.news-mosaic__hint {
  margin: 0;
  min-width: 9rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--gray-500);
}

.news-mosaic__controls .hero-slider__arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 899px) {
  .news-mosaic__grid {
    --news-mosaic-row: 10.5rem;
    --news-mosaic-feat: 16rem;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: var(--news-mosaic-feat) var(--news-mosaic-row) var(--news-mosaic-row);
    grid-template-areas:
      "feat feat"
      "tl tr"
      "bl br";
    height: calc(var(--news-mosaic-feat) + var(--news-mosaic-row) * 2 + 0.35rem * 2);
    min-height: calc(var(--news-mosaic-feat) + var(--news-mosaic-row) * 2 + 0.35rem * 2);
    max-height: calc(var(--news-mosaic-feat) + var(--news-mosaic-row) * 2 + 0.35rem * 2);
  }
}

/* Homepage news photo tiles */
.post-card--tile {
  min-height: 22rem;
  color: #fff;
  border: 0;
  background-color: var(--brand-dark);
}

.post-card--tile .post-card__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.post-card--tile .post-card__media img,
.post-card--tile .cover {
  width: 100%;
  height: 100%;
}

.post-card--tile .post-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  gap: 0.4rem;
  padding: 5rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 22, 42, 0.15) 30%, rgba(18, 22, 42, 0.9) 100%);
}

.post-card--tile .post-card__title a,
.post-card--tile .post-card__excerpt,
.post-card--tile .post-card__date,
.post-card--tile .post-card__author,
.post-card--tile .post-card__author strong,
.post-card--tile .topic {
  color: #fff;
}

.post-card--tile .post-card__meta {
  align-items: flex-start;
}

.post-card--tile .topic {
  max-width: calc(100% - 6.5rem);
  line-height: 1.35;
}

.post-card--tile .post-card__date {
  margin-left: auto;
  white-space: nowrap;
}

.post-card--tile .post-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* About: documents and structure */
.doc-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.org-chart {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  margin: 0 auto;
  list-style: none;
}

.org-chart li {
  padding: 1.15rem 1.25rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.org-chart strong,
.org-chart span {
  display: block;
}

.org-chart strong {
  font-weight: 500;
}

.org-chart span {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--gray-800);
}

.org-chart li.org-chart__split {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.org-chart__split > div {
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

@media (min-width: 700px) {
  .org-chart li.org-chart__split {
    grid-template-columns: 1fr 1fr;
  }
}
