/* Homepage-only spacing and offer layout. */
.home-slides {
  scroll-snap-type: none;
}

.home-slides > .section,
.home-slides > .client-logos {
  padding-block: 48px;
  scroll-margin-top: 88px;
}

.home-slides .home-start-slide {
  min-height: calc(100svh - 176px);
  padding: 0;
  scroll-snap-align: none;
}

.home-slides .home-start-slide .hero-content {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-slides .home-start-slide h1 {
  max-width: 900px;
  font-size: 56px;
  letter-spacing: 0;
}

.home-slides .home-minimal-heading,
.home-slides .home-preview-heading {
  margin-bottom: 24px;
}

.home-slides .home-minimal-heading h2,
.home-slides .home-preview-heading h2 {
  font-size: 32px;
  letter-spacing: 0;
}

body:not(.admin-page) .home-slides .home-offer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.admin-page) .home-slides .home-offer-grid article {
  min-width: 0;
  min-height: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(237, 248, 251, 0.24);
  background: transparent;
  box-shadow: none;
}

.home-slides .home-offer-grid h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.home-slides .home-offer-grid h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(237, 248, 251, 0.35);
  text-underline-offset: 5px;
}

.home-slides .home-offer-grid h3 a:hover {
  color: var(--cyan);
}

.home-slides .home-offer-grid h3 a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.home-slides .home-offer-grid p {
  max-width: none;
}

@media (max-width: 1100px) {
  body:not(.admin-page) .home-slides .home-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-slides > .section,
  .home-slides > .client-logos {
    padding-block: 32px;
  }

  .home-slides .home-start-slide .hero-content {
    padding-block: 40px;
  }

  .home-slides .home-start-slide h1 {
    font-size: 36px;
  }

  .home-slides .home-minimal-heading h2,
  .home-slides .home-preview-heading h2 {
    font-size: 26px;
  }

  .home-slides .home-offer-grid h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  body:not(.admin-page) .home-slides .home-offer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .home-slides .home-start-slide h1 {
    font-size: 32px;
  }
}
