/*
 * Desktop layout containment.
 *
 * Keep section backgrounds full-bleed while constraining their actual content
 * to the 1024px reference composition. This prevents wide screens from
 * stretching cards, values, stories and footer content independently.
 */

@media screen and (min-width: 1024px) {
  .header {
    padding-left: max(28px, calc((100vw - 1024px) / 2 + 28px)) !important;
    padding-right: max(28px, calc((100vw - 1024px) / 2 + 28px)) !important;
  }

  .header .logo-space {
    display: block !important;
    width: 220px !important;
    min-width: 220px !important;
    flex: 0 0 220px !important;
  }

  .header .nav {
    margin-left: auto !important;
    gap: 24px !important;
  }

  .values {
    padding-left: max(39px, calc((100vw - 1024px) / 2 + 39px)) !important;
    padding-right: max(39px, calc((100vw - 1024px) / 2 + 39px)) !important;
  }

  .events {
    padding-left: max(38px, calc((100vw - 1024px) / 2 + 38px)) !important;
    padding-right: max(38px, calc((100vw - 1024px) / 2 + 38px)) !important;
  }

  .way {
    padding-left: max(42px, calc((100vw - 1024px) / 2 + 42px)) !important;
    padding-right: max(42px, calc((100vw - 1024px) / 2 + 42px)) !important;
  }

  .stories {
    padding-left: max(41px, calc((100vw - 1024px) / 2 + 41px)) !important;
    padding-right: max(41px, calc((100vw - 1024px) / 2 + 41px)) !important;
  }

  .footer {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding-left: max(32px, calc((100vw - 1024px) / 2 + 32px)) !important;
    padding-right: max(32px, calc((100vw - 1024px) / 2 + 32px)) !important;
    column-gap: 48px !important;
  }

  .footer-grind {
    width: min(420px, 44vw) !important;
    max-width: 420px !important;
    justify-self: start !important;
    margin-top: 22px !important;
  }

  .footer-desc {
    margin-top: 12px !important;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1120px) {
  .header .logo-space {
    width: 180px !important;
    min-width: 180px !important;
    flex-basis: 180px !important;
  }

  .header .nav {
    gap: 20px !important;
  }
}
