html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.menu-open::after {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 80px 390px 0 0;
  background: rgba(2, 10, 22, 0.5);
  backdrop-filter: blur(2px);
}

.site-header {
  z-index: 100;
}

.primary-navigation {
  z-index: 110;
}

.menu-button {
  z-index: 120;
}

@media (min-width: 1201px) {
  .primary-navigation {
    flex: 0 1 auto;
  }

  .primary-navigation ul {
    justify-content: flex-end;
  }
}

@media (max-width: 1200px) {
  .header-inner {
    justify-content: space-between;
  }

  .hero-grid,
  .split,
  .contact-grid {
    gap: clamp(32px, 6vw, 60px);
  }
}

@media (max-width: 680px) {
  body.menu-open::after {
    display: none;
  }

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

  .hero,
  .page-hero {
    padding-block: 56px;
  }

  .hero h1,
  .page-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .hero-card,
  .card,
  .dark-card,
  .case,
  .service-block,
  .contact-panel {
    border-radius: 16px;
  }

  .hero-card,
  .card,
  .dark-card,
  .case,
  .contact-panel {
    padding: 24px;
  }

  .actions,
  .actions .button,
  .cta .button,
  .contact-form .button {
    width: 100%;
  }

  .actions {
    display: grid;
  }

  .button,
  .primary-navigation a,
  input,
  textarea {
    min-height: 48px;
  }

  .phone-line {
    display: grid;
    gap: 4px;
  }

  .service-block,
  .step {
    gap: 14px;
  }

  .case dl,
  .footer-grid {
    gap: 24px;
  }
}

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

  .hero,
  .page-hero,
  .section {
    padding-block: 48px;
  }

  .brand {
    gap: 9px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
  }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover {
    filter: none;
    transform: none;
  }
}
