@media (max-width: 1199px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .main-nav {
    position: absolute;
    z-index: 500;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(5, 43, 92, 0.12);
  }

  .site-header {
    position: relative;
  }

  .site-header.menu-open .main-nav {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0;
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
    padding-block: 12px;
  }

  .main-nav a {
    width: 100%;
    min-height: 52px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a::after {
    right: auto;
    width: 54px;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .header-search-button {
    margin-left: 8px;
  }

  .quick-access__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .challenges__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .challenge-card {
    min-height: 300px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

  .footer__identity,
  .footer__column {
    padding-inline: 28px;
  }

  .footer__identity,
  .footer__column:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 991px) {
  .section {
    padding-block: 56px;
  }

  .institutional-header__inner {
    min-height: 96px;
  }

  .iee-brand {
    width: 134px;
    height: 80px;
  }

  .iee-brand img {
    width: auto;
    height: 80px;
  }

  .brand-divider {
    height: 64px;
    margin-inline: 12px 22px;
  }

  .procam-brand {
    min-width: 230px;
  }

  .procam-brand strong {
    font-size: 32px;
  }

  .procam-brand span {
    font-size: 14px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__content {
    padding: 48px 0 40px;
  }

  .hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 6vw, 50px);
  }

  .hero__image {
    min-height: 330px;
    height: 330px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about__content p {
    max-width: 820px;
  }

  .about__image,
  .about__image img {
    min-height: 330px;
  }

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

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

  .news-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 16px;
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .section {
    padding-block: 44px;
  }

  .utility-bar__left {
    gap: 8px;
  }

  .utility-separator {
    display: none;
  }

  .utility-link span {
    display: none;
  }

  .utility-link,
  .language-select {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }

  .utility-bar,
  .utility-bar__inner {
    min-height: 44px;
  }

  .language-select select {
    min-height: 44px;
  }

  .institutional-header__inner {
    min-height: 88px;
  }

  .iee-brand {
    width: 88px;
    height: 66px;
  }

  .iee-brand img {
    width: auto;
    height: 66px;
  }

  .brand-divider {
    height: 56px;
    margin-inline: 10px 14px;
  }

  .procam-brand {
    min-width: 0;
    flex: 1;
  }

  .procam-brand strong {
    font-size: 27px;
  }

  .procam-brand span {
    font-size: 12px;
  }

  .header-search-button {
    display: none;
  }

  .main-nav ul {
    width: min(calc(100% - 40px), var(--container));
  }

  .hero__content {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__image {
    height: 250px;
    min-height: 250px;
  }

  .quick-access {
    padding-block: 24px 40px;
  }

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

  .quick-card {
    min-height: 124px;
    font-size: 15px;
  }

  .about__content p {
    font-size: 16px;
  }

  .about__image,
  .about__image img {
    min-height: 250px;
  }

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

  .challenge-card {
    min-height: 0;
  }

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

  .news-card:last-child {
    grid-column: auto;
  }

  .news__all {
    justify-content: flex-start;
  }

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

  .footer__identity,
  .footer__column,
  .footer__column:nth-child(3) {
    padding: 0 0 26px;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  }

  .footer__top {
    border-bottom: 0;
  }

  .footer__legal {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }

  .search-modal {
    padding-top: 20px;
  }

  .search-form > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .iee-brand {
    width: 72px;
  }

  .iee-brand img {
    width: auto;
    height: 60px;
  }

  .brand-divider {
    margin-inline: 8px 10px;
  }

  .procam-brand strong {
    font-size: 24px;
  }

  .procam-brand span {
    font-size: 11px;
  }

  .mobile-menu-button {
    width: 44px;
    height: 44px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-title,
  .section-title--compact {
    font-size: 26px;
  }

  .quick-card svg {
    width: 44px;
    height: 44px;
  }

  .news-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .utility-bar,
  .main-nav,
  .mobile-menu-button,
  .header-search-button,
  .search-modal,
  .back-to-top {
    display: none !important;
  }

  .section {
    padding-block: 24px;
  }

  body {
    color: #000;
    background: #fff;
  }
}
