/* Trim only the facing edges where consecutive sections accumulate padding. */
main > .collections:has(+ .materials),
main > .overview-hero:has(+ .overview-group),
main > .overview-group:has(+ .overview-group),
main > .floor-section:has(+ :is(.floor-calculator, .stair-structure)),
main > .floor-calculator:has(+ .floor-technical),
main > .floor-technical:has(+ .collection-warranty),
main > .collection-warranty:has(+ :is(.seo-copy, .floor-project)),
main > .seo-copy--standalone:has(+ :is(.collections, .floor-project)),
main > :is(.stair-structure, .stair-planning, .stair-application, .stair-care, .stair-documents):has(+ section),
main > :is(.about-hero, .about-identity, .about-production, .about-natural, .about-process, .about-vision):has(+ section) {
  padding-block-end: clamp(22px, 3vw, 42px);
}

main > .collections:is(.seo-copy--standalone + *),
main > .materials:is(.collections + *),
main > .overview-group:is(.overview-hero + *, .overview-group + *),
main > .floor-calculator:is(.floor-section + *),
main > .floor-technical:is(.floor-calculator + *),
main > .collection-warranty:is(.floor-technical + *),
main > .seo-copy--standalone:is(.collection-warranty + *),
main > .floor-project:is(.collection-warranty + *, .seo-copy--standalone + *, .stair-documents + *),
main > :is(.stair-structure, .stair-planning, .stair-application, .stair-care, .stair-documents):is(section + *),
main > :is(.about-identity, .about-production, .about-natural, .about-process, .about-vision, .about-final):is(section + *) {
  padding-block-start: clamp(22px, 3vw, 42px);
}

/* Preserve the tighter spacing already chosen for the Turkish home and floor guide. */
main > .seo-copy--home,
main > .floor-selection-guide {
  padding-block-end: clamp(14px, 2vw, 26px);
}
main > .floor-selection-guide + .floor-project {
  padding-block-start: clamp(18px, 2.5vw, 32px);
}

/* Homepages where the hero leads directly into the collection cards. */
main > .hero + .collections {
  padding-block-start: clamp(26px, 4vw, 50px);
}
