/* IMPERIYAKS — modern landing (v2) */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

:root {
  --blue: #1a6fa8;
  --blue-dark: #155a87;
  --blue-light: #e8f4fc;
  --dark: #1e2a33;
  --dark-soft: #3d4f5c;
  --accent: #d2262f;
  --white: #ffffff;
  --bg: #f4f7fa;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 35, 55, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 35, 55, 0.12);
  --container: min(1200px, 92vw);
  --header-h: 64px;
  --nav-desktop: 1200px;
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Футер внизу вікна на коротких сторінках */
body > main,
.page-main {
  flex: 1 0 auto;
  width: 100%;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--blue-dark);
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 0;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(15, 28, 38, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-header.is-scrolled {
  background: rgba(15, 28, 38, 0.98);
  box-shadow: var(--shadow);
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.site-header__logo {
  flex-shrink: 0;
  z-index: 102;
}

.site-header__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-header__brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__logo:hover .site-header__brand {
  color: rgba(255, 255, 255, 0.9);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  z-index: 102;
}

.site-header__contacts {
  display: none;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
}

.site-header__contact {
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.site-header__contact:hover {
  color: #fff;
}

.site-header__contact--email .site-header__contact-text {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__signin {
  display: none;
}

.lang-switch {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
}

.lang-switch a {
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.lang-switch a.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lang-switch__disabled {
  opacity: 0.45;
  padding: 0.25rem 0.5rem;
  cursor: default;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(210, 38, 47, 0.35);
}

.btn--primary:hover {
  background: #b81f27;
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--outline {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn--outline:hover {
  background: var(--blue-light);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 102;
  -webkit-appearance: none;
  appearance: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  flex: 0 0 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.site-nav-backdrop.is-visible {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

.site-nav-backdrop[hidden] {
  display: none !important;
}

/* Mobile drawer */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(320px, 88vw);
  max-width: 100%;
  background: #0f1c26;
  padding: calc(var(--header-h) + 0.75rem) 1.25rem 1.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  z-index: 101;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
  -webkit-overflow-scrolling: touch;
}

.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

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

.site-nav__list > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav__list > li > a,
.site-nav__row > a {
  display: block;
  padding: 0.85rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav__row > a:hover,
.site-nav__list > li > a:hover {
  color: #fff;
}

.site-nav__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__row > a {
  flex: 1;
  padding-right: 0;
}

.nav-subtoggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}

.nav-subtoggle span {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease;
}

.nav-subtoggle span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 2px;
  background: #fff;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.has-sub.is-expanded .nav-subtoggle span::after {
  transform: rotate(0);
}

.site-nav .sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem 0.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.has-sub.is-expanded .sub {
  max-height: 520px;
}

.site-nav .sub a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.35;
}

.site-nav .sub a:hover {
  color: #fff;
}

.site-nav__mobile-extra {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-nav__mobile-contact {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-switch--mobile {
  justify-content: flex-start;
  margin-bottom: 0.25rem;
}

.lang-notice {
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  background: rgba(26, 111, 168, 0.1);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

.btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 1199px) {
  .site-header__tools > .lang-switch:not(.lang-switch--mobile),
  .site-header__signin {
    display: none;
  }

  .site-header__brand {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .site-header__inner {
    min-height: 56px;
    padding: 0.5rem 0;
  }

  :root {
    --header-h: 56px;
  }

  .site-header__contacts {
    display: none !important;
  }

  main,
  .page-main {
    padding-top: 0;
  }

  .page-main {
    padding-top: var(--header-h);
  }

  .hero {
    min-height: 100svh;
  }
}

/* Desktop: two-row header, single-line nav */
@media (min-width: 1200px) {
  :root {
    --header-h: 118px;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav-backdrop {
    display: none !important;
  }

  .site-header__inner {
    padding: 0.75rem 0 0.65rem;
  }

  .site-header__logo img {
    height: 48px;
  }

  .site-header__brand {
    font-size: 1.5rem;
  }

  .site-header__contacts {
    display: flex;
  }

  .site-header__signin {
    display: inline-flex;
  }

  .lang-switch:not(.lang-switch--mobile) {
    display: flex;
    gap: 0.15rem;
  }

  .site-nav {
    position: static;
    width: 100%;
    max-width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    flex: none;
    order: unset;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent;
    padding: 0;
    overflow: visible;
    box-shadow: none;
  }

  .site-nav__mobile-extra {
    display: none;
  }

  .site-nav__list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.55rem;
    margin-top: 0.15rem;
  }

  .site-nav__list > li {
    border: none;
    position: relative;
    flex-shrink: 0;
  }

  .site-nav__list > li > a,
  .site-nav__row > a {
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .site-nav__row {
    display: contents;
  }

  .nav-subtoggle {
    display: none;
  }

  .site-nav .sub {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    max-width: 280px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    max-height: none;
    opacity: 0;
    visibility: hidden;
    overflow: visible;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
  }

  .has-sub:hover .sub,
  .has-sub:focus-within .sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .site-nav .sub a {
    color: var(--dark-soft);
    padding: 0.5rem 1rem;
    white-space: normal;
  }

  .site-nav .sub a:hover {
    background: var(--blue-light);
    color: var(--blue);
  }
}

@media (min-width: 1400px) {
  .site-nav__list > li > a,
  .site-nav__row > a {
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
  }

  .site-header__contact--email .site-header__contact-text {
    max-width: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 20, 30, 0.45) 0%,
    rgba(10, 20, 30, 0.65) 50%,
    rgba(10, 20, 30, 0.8) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 1.5rem) 1.5rem 4rem;
  max-width: 900px;
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  margin-top: 2rem;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Section common */
.section {
  padding: 4.5rem 0;
}

.section--white {
  background: var(--white);
}

.section--dark {
  background: linear-gradient(135deg, #1a4d72 0%, var(--blue) 100%);
  color: #fff;
}

.section__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.section--dark .section__eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.section__title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
}

.section--dark .section__title {
  color: #fff;
}

.section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Quick links grid */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.quick-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quick-card__icon {
  display: none !important;
}

.site-header__contact-icon {
  display: none !important;
}

.quick-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.quick-card__title a {
  color: inherit;
}

.quick-card__title a:hover {
  color: var(--blue);
}

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

.quick-card__links li {
  margin-top: 0.35rem;
}

.quick-card__links a {
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-card__links a::after {
  content: "→";
  opacity: 0.5;
}

/* Stats */
.stats-section {
  position: relative;
  background: var(--stats-bg, url("../site-assets/themes__default__skin__images__background.jpg")) center / cover no-repeat;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 32, 52, 0.88) 0%,
    rgba(18, 55, 88, 0.85) 100%
  );
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-section .section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

.stat-card {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 0;
}

.stat-card__value {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  max-width: 12em;
}

/* News */
.news-featured {
  background: linear-gradient(135deg, #0057b7 0%, #ffd700 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.news-featured__title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.news-featured img {
  margin: 0 auto;
  border-radius: var(--radius);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-card__img {
  aspect-ratio: 440 / 230;
  object-fit: cover;
  width: 100%;
}

.news-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.news-card__title a {
  color: inherit;
}

.news-card__text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  flex: 1;
}

.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-top: auto;
}

.news-card__date {
  color: #888;
  font-weight: 500;
}

.section__cta {
  text-align: center;
  margin-top: 2rem;
}

/* Recommended carousel */
.recommended {
  background: var(--dark);
  color: #fff;
  padding: 4rem 0;
  overflow: hidden;
}

.recommended .section__title {
  color: #fff;
}

.carousel {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

.carousel__viewport {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}

.carousel__track {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0.5rem 0 1rem;
  list-style: none;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 0 0.35rem;
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.carousel__slide:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .carousel__slide {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

@media (min-width: 1100px) {
  .carousel__slide {
    flex: 0 0 33.333%;
    min-width: 33.333%;
  }
}

.carousel__slide:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.carousel__slide img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
  pointer-events: none;
}

.carousel__caption {
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 12px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel__dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 28, 38, 0.85);
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.15s ease;
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.program-card__front {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  user-select: none;
}

.program-card__front img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.program-card__name {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.3;
}

.program-card__toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.2s ease;
}

.program-card.is-open .program-card__toggle {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

.program-card__body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.88rem;
  border-top: 1px solid var(--border);
}

.program-card.is-open .program-card__body {
  display: block;
  padding-top: 1rem;
}

.program-card__body p {
  margin: 0 0 0.75rem;
}

.program-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem;
  align-items: center;
}

.partner-logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover {
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.partner-logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.site-footer__logo img {
  height: 48px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.site-footer__brand {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}

.site-footer__docs strong,
.site-footer__contact strong {
  display: block;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
}

.site-footer__docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.site-footer__docs-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  aspect-ratio: 3 / 4;
  padding: 0.35rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.site-footer__docs-links a:hover {
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.site-footer__docs-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Utils */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero__title {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 0.65rem;
    max-width: 100%;
  }

  .stat-card {
    padding: 0.85rem 0.5rem;
  }

  .stat-card__value {
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
  }

  .stat-card__label {
    font-size: 0.72rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__contact {
    align-items: center;
  }

  .site-footer__docs {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer__docs-links {
    justify-content: center;
    gap: 1rem;
  }

  .site-footer__docs-links a {
    width: min(150px, 40vw);
  }

  .site-footer__logo img {
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 5.5rem 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .stats-grid {
    gap: 0.75rem;
    max-width: 640px;
  }
}
