/*
 * D152 – vertical spacing between the page sections (hand-maintained, loaded last; the Webflow stylesheets stay byte for byte).
 *
 * 1. Group-menu block → gallery. The live gallery is positioned by stacking offsets: .slider margin-top 220px, then `transform: translateY(-50%)` of its OWN
 *    height (which changes with the viewport width), plus .mask 100px / .slide 60px / .img 100px top margins, inside a section fixed at height 50vh. The visible
 *    gap was 358px at 1440 and 478px at 768. From 480px up the slider is now in normal flow (no offset, no transform, no fixed section height): the gap is the
 *    100px section margin + the button's own 40px = 140px at every width. The arrow boxes lose the matching 100px offset (so the chevrons sit on the image
 *    centre instead of 80px above it); the gap below the gallery to the testimonials heading is kept at the 1440 value (125px) at every width.
 * 2. Testimonials → "Kontaktandmed": the heading had margin-top 300px (≥ 480px; 40px on phones, unchanged) → 100px. Everything after it (form, map, footer) moves
 *    up by the same 200px: it hangs below that heading inside the same fixed-height section, so nothing else is touched.
 */
@media screen and (min-width: 480px) {
  .section-7 {
    height: auto;
  }
  .slider {
    margin-top: 0;
    top: auto;
    transform: none;
  }
  .mask,
  .slide,
  .img,
  .right-arrow {
    margin-top: 0;
  }
  .section-10 {
    margin-top: 38px;
  }
  .paragraph-2._2titre {
    margin-top: 100px;
  }
}

/* phones (< 480px): same idea. The slider's `top: 50%` + `translateY(-50%)` and the mask / arrow 100px offsets go; the section's own top padding (70px →
   115px, inside its -115px overlap) sets the gap above the gallery to 140px (was 237px); its 50vh height loses 97px so the gap below the gallery to the
   testimonials stays as it was. The 40px contact heading margin on phones is already small and stays. */
@media screen and (max-width: 479px) {
  .section-7 {
    padding-top: 115px;
    height: calc(50vh - 97px);
  }
  /* FI / RU only: their two empty .section-2 spacers (margin-top -152px on phones) sit between the menu and the gallery and pulled it up by another 37px */
  .section-8 + .section-2,
  .section-8 + .section-2 + .section-2 {
    margin-top: 0;
  }
  .slider {
    top: auto;
    transform: none;
  }
  .mask,
  .left-arrow,
  .right-arrow {
    margin-top: 0;
  }
}

/*
 * Hero on low desktop viewports. The hero is `height: 100vh` (section and its overlay), but its content (logo, heading, paragraph, buttons) needs about 720-820px
 * whatever the window height is. On laptops with a short viewport (browser bars: ~560-700px) the content ran out of the hero and the "Meist" section started
 * on top of the buttons. From 768px up (tablets in landscape included) and below 900px of height the hero may now grow: `min-height: 100vh` instead of a fixed height, so it is exactly as before
 * whenever the content fits (nothing changes at 1920x1080, 1536x864, 1366x768, 1280x720) and taller only when it does not. The background belongs to the same
 * section, so it keeps covering the whole hero; 40px of bottom padding keeps the buttons the same distance from the next section as at 1280x720.
 */
@media screen and (min-width: 768px) and (max-height: 900px) {
  #Hero-section.section {
    height: auto;
    min-height: 100vh;
  }
  #Hero-section .div-block-3 {
    height: auto;
    min-height: 100vh;
    padding-bottom: 40px;
  }
}
