
@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 165px 1fr auto;
    gap: 20px;
  }

  .desktop-nav {
    gap: 18px;
  }

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

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-layout {
    width: var(--container);
    min-height: 0;
    grid-template-columns: 1fr;
    padding-block: 72px 62px;
  }

  .engineering-panel {
    max-width: 920px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100% - 32px, 1180px);
  }

  html {
    scroll-padding-top: 76px;
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-link img,
  .footer-brand img {
    width: 120px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-layout {
    padding-block: 54px 46px;
    gap: 40px;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: clamp(2.55rem, 11vw, 3.65rem);
    line-height: 1.01;
  }

  .split-heading h2,
  .section-heading h2,
  .governance-layout h2,
  .insight-layout h2,
  .contact-layout h2 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-hero-layout {
    padding-top: 0;
  }

  .breadcrumb {
    padding-top: 20px;
  }

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

  .authority-strip div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .authority-strip div:nth-child(4) {
    border-top: 1px solid var(--line-light);
  }

  .service-index-grid,
  .services-grid,
  .project-form .form-grid {
    grid-template-columns: 1fr;
  }

  .experience-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-filters button:first-child {
    grid-column: 1 / -1;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .cookie-actions,
  .cookie-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-actions button,
  .cookie-dialog-actions button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  :root {
    --container: min(100% - 24px, 1180px);
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.05rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .inner-cta-actions,
  .confirmation-card > div {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .authority-strip {
    grid-template-columns: 1fr;
  }

  .authority-strip div + div,
  .authority-strip div:nth-child(3),
  .authority-strip div:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .experience-filters {
    grid-template-columns: 1fr;
  }

  .experience-filters button:first-child {
    grid-column: auto;
  }

  .cookie-dialog {
    padding: 20px;
  }
}

@media (min-width: 1600px) {
  :root {
    --container: min(1320px, calc(100vw - 96px));
  }

  .hero-layout {
    width: min(1520px, calc(100vw - 96px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
