/* A shorter decision path on small screens, without removing content. */
#sa-fungerar-det,
#varfor,
#giacinto,
#historien,
#ursprung,
#faq {
  scroll-margin-top: 88px;
}

/* Keep the opening message closer to the header without crowding it. */
.hero-copy {
  padding-top: 48px;
}

/* Preserve the editorial desktop layout while keeping the form first in the
   reading order after the introduction. */
.cta-grid {
  grid-template-areas:
    "intro form"
    "details form";
  grid-template-rows: max-content 1fr;
  column-gap: 9%;
  row-gap: 0;
}

.cta-intro {
  grid-area: intro;
}

.interest-form-anchor {
  grid-area: form;
  min-width: 0;
  align-self: start;
}

#intresse {
  scroll-margin-top: 104px;
}

.cta-details {
  grid-area: details;
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-copy {
    padding-top: 52px;
  }

  .calculator-tool {
    margin: 0;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "form"
      "details";
    grid-template-rows: auto;
    gap: 28px;
  }

  .cta-details ul {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .hero-copy {
    padding-top: 38px;
  }

  #intresse {
    scroll-margin-top: 86px;
  }

  .cta-grid {
    gap: 22px;
  }

  .section:not(.product),
  .story,
  .cta-section,
  .location-section {
    padding: 50px 0;
  }

  .product {
    padding: 52px 0 56px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head > p {
    margin-top: 14px;
  }

  .calculator + .steps-title {
    margin-top: 24px;
  }

  .step,
  .step + .step {
    padding: 15px 0;
  }

  .sales-system {
    margin-top: 26px;
    padding: 24px 18px;
  }

  .sales-system-head h3 {
    font-size: 32px;
  }

  .sales-system-flow {
    grid-template-columns: 1fr 1fr;
  }

  .sales-system-flow li,
  .sales-system-flow li + li,
  .sales-system-flow li:nth-child(3),
  .sales-system-flow li:nth-child(4) {
    display: block;
    min-width: 0;
    padding: 15px 10px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }

  .sales-system-flow li:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid rgba(255,255,255,.16);
  }

  .sales-system-flow li:nth-child(even) {
    padding-right: 0;
    padding-left: 13px;
  }

  .sales-system-flow li > span {
    display: block;
    margin-bottom: 8px;
  }

  .sales-system-flow h4 {
    font-size: 16px;
  }

  .sales-system-flow p {
    font-size: 11.25px;
    line-height: 1.55;
  }

  .sales-system-foot {
    margin-top: 8px;
  }

  .product-grid {
    gap: 28px;
  }

  .product-copy h2 {
    margin-bottom: 22px;
  }

  .product-facts {
    grid-template-columns: 1fr 1fr;
    margin: 24px 0;
  }

  .product-facts div {
    min-width: 0;
    padding: 13px 0;
  }

  .product-facts div:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 12px;
  }

  .product-facts div:nth-child(even) {
    padding-left: 13px;
  }

  .product-facts dd {
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.25;
  }

  .reasons-image {
    width: 100%;
    height: 235px;
  }

  .reasons-image .stamp {
    right: -8px;
  }

  .offer-points {
    grid-template-columns: 1fr 1fr;
  }

  .offer-points > div + div {
    padding-left: 12px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .offer-points > div:nth-child(3) {
    grid-column: 1 / -1;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .story-collage {
    height: 300px;
  }

  .story-photo.small {
    border-width: 6px;
  }

  .map-wrap {
    height: 260px;
  }

  .field-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 180px);
    gap: 10px;
  }

  .field-gallery figure,
  .field-gallery .gallery-wide,
  .field-gallery .gallery-tall,
  .field-gallery .gallery-product {
    grid-column: auto;
    grid-row: auto;
    height: 180px;
  }

  .field-gallery figcaption {
    right: 10px;
    bottom: 11px;
    left: 12px;
    font-size: 13px;
    line-height: 1.15;
  }

  .field-gallery figcaption span {
    display: block;
    margin: 0 0 4px;
  }
}

@media (max-width: 359px) {
  .sales-system-flow,
  .product-facts,
  .offer-points {
    grid-template-columns: 1fr;
  }

  .sales-system-flow li,
  .sales-system-flow li + li,
  .sales-system-flow li:nth-child(odd),
  .sales-system-flow li:nth-child(even) {
    padding: 14px 0;
    border-right: 0;
  }

  .product-facts div:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }

  .product-facts div:nth-child(even) {
    padding-left: 0;
  }

  .offer-points > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
