/* Homepage sections share the parent theme's container and the Firend palette. */
#index #wrapper-page {
  padding-top: 0;
}

#index #wrapper-page > .row {
  margin-right: 0;
  margin-left: 0;
}

#index #content-wrapper {
  padding-right: 0;
  padding-left: 0;
}

.f24-home {
  --f24-home-space: 72px;
  padding: 24px 0 var(--f24-home-space);
  color: var(--f24-text);
  font-size: 16px;
  line-height: 1.6;
}

.f24-home .container {
  overflow: visible;
}

.f24-home-section {
  margin-top: var(--f24-home-space);
}

.f24-home h1,
.f24-home h2,
.f24-home h3 {
  margin: 0;
  color: var(--f24-dark);
  font-weight: 700;
  text-transform: none;
  text-wrap: balance;
}

.f24-home h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.f24-home p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.f24-home svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f24-home a:focus-visible {
  outline: 2px solid var(--f24-primary);
  outline-offset: 4px;
}

.f24-home .f24-home-eyebrow {
  margin: 0 0 16px;
  color: var(--f24-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.f24-home-link,
.f24-home-category-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 160ms ease, background-color 160ms ease;
}

.f24-home .f24-home-link {
  color: var(--f24-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.f24-home .f24-home-link:hover {
  color: var(--f24-primary);
}

.f24-home-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 32px 0;
  border-bottom: 1px solid var(--f24-border);
  list-style: none;
}

.f24-home-benefits li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.f24-home-benefits svg {
  width: 32px;
  height: 32px;
  color: var(--f24-primary);
}

.f24-home-benefits strong,
.f24-home-benefits span {
  display: block;
}

.f24-home-benefits strong {
  color: var(--f24-dark);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.f24-home-benefits span {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.f24-home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.f24-home-section-heading > p {
  max-width: 36ch;
  margin: 0;
}

.f24-home-section[aria-labelledby="f24-home-categories-title"] {
  position: relative;
  isolation: isolate;
  padding-top: 40px;
  padding-bottom: 40px;
}

.f24-home-section[aria-labelledby="f24-home-categories-title"]::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: #ededed;
  pointer-events: none;
}

.f24-home-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.f24-home-category {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 24px 24px;
  border-top: 3px solid transparent;
  background: var(--f24-white);
  transition: border-color 160ms ease;
}

.f24-home-category:hover,
.f24-home-category:focus-within {
  border-top-color: var(--f24-primary);
}

.f24-home-category-number {
  margin-bottom: 20px;
  color: var(--f24-primary);
  font-size: 48px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.04em;
}

.f24-home-category h3 {
  min-height: 58px;
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.f24-home-category h3 a {
  display: block;
  min-height: 44px;
  color: var(--f24-dark);
}

.f24-home-category ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.f24-home-category li + li {
  border-top: 1px solid var(--f24-border);
}

.f24-home-category li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--f24-text);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.f24-home-category a {
  transition: color 160ms ease;
}

.f24-home-category a:hover,
.f24-home-category a:focus-visible {
  color: var(--f24-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.f24-home .f24-home-category-all {
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 4px 0 0;
  border-top: 1px solid var(--f24-border);
  color: var(--f24-primary);
  font-weight: 700;
}

.f24-home .f24-home-category-all:hover,
.f24-home .f24-home-category-all:focus-visible {
  color: var(--f24-primary-dark);
}

.f24-home-category-all svg {
  transition: transform 160ms ease;
}

.f24-home-category-all:hover svg,
.f24-home-category-all:focus-visible svg {
  transform: translateX(4px);
}

.f24-home .products.f24-home-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  margin: 0;
}

.f24-home .products.f24-home-products::before,
.f24-home .products.f24-home-products::after,
.f24-home-categories::before,
.f24-home-categories::after,
.f24-home-benefits::before,
.f24-home-benefits::after { display: none; content: none; }

/* Slider arrows of the empty gallery module (custombanners) */
.f24-home #konfigurator_wrapper > a.module_refresh { display: none; }
.f24-home-section:has(#konfigurator_wrapper):not(:has(.slide_gallery_gallery > *)) { display: none; }

.f24-home .f24-home-products > .js-product {
  float: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.f24-home-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  padding: 48px;
  background: var(--f24-bg-soft);
}

.f24-home-about-date {
  display: block;
  margin-top: 24px;
  color: var(--f24-text);
  font-size: 14px;
}

.f24-home-about-copy {
  max-width: 65ch;
}

.f24-home-about-copy p {
  margin: 0 0 16px;
}

.f24-home-banners img,
.f24-home-extras img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1199px) {
  .f24-home {
    --f24-home-space: 56px;
  }

  .f24-home-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f24-home .products.f24-home-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .f24-home .products.f24-home-products > :nth-child(n+7) {
    display: none;
  }

  .f24-home-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f24-home-about {
    gap: 32px;
    padding: 32px;
  }
}

@media (max-width: 767px) {
  .f24-home {
    --f24-home-space: 40px;
    padding-top: 16px;
  }

  .f24-home .container {
    width: 100%;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .f24-home-benefits {
    gap: 24px 16px;
    padding: 24px 0;
  }

  .f24-home-benefits li {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .f24-home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .f24-home-section-heading .f24-home-link {
    justify-content: flex-start;
  }

  .f24-home-categories {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .f24-home .products.f24-home-products > :nth-child(n+7) {
    display: block;
  }

  .f24-home-category h3 {
    min-height: 0;
    margin-bottom: 8px;
  }

  .f24-home-category-number {
    margin-bottom: 16px;
  }

  .f24-home .products.f24-home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
  }

  .f24-home-about {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .f24-home-about-date {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .f24-home-link,
  .f24-home-category,
  .f24-home-category a,
  .f24-home-category-all svg {
    transition: none;
  }

  .f24-home-category-all:hover svg,
  .f24-home-category-all:focus-visible svg {
    transform: none;
  }
}

/* Home slider (ps_imageslider override). */
.f24-home .f24-slider {
  position: relative;
  float: none;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--f24-dark-2);
}

.f24-home .f24-slider-list {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f24-home .f24-slide {
  position: relative;
  width: 100%;
}

.f24-home .f24-slide-link {
  position: relative;
  display: block;
  color: #fff;
  text-decoration: none;
}

.f24-home .f24-slide-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}

.f24-home .f24-slide-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(44, 44, 43, 0.82) 0%, rgba(44, 44, 43, 0.55) 40%, rgba(44, 44, 43, 0) 70%);
  pointer-events: none;
}

.f24-home .f24-slide-caption {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: min(50%, 560px);
  padding: 0 48px;
  transform: translateY(-50%);
}

.f24-home .f24-slide-caption .f24-home-eyebrow {
  color: #fff;
}

.f24-home .f24-slide-title {
  color: #fff;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.f24-home .f24-slide-text,
.f24-home .f24-slide-text p {
  margin: 20px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
}

.f24-home .f24-slide-text p + p {
  margin-top: 8px;
}

.f24-home .f24-slide-text .f24-slide-systems {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f24-home .f24-slide-systems li {
  position: relative;
  top: auto;
  left: auto;
  width: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--f24-white);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px var(--f24-dark-2);
}

.f24-home .f24-slide-systems li::before {
  content: "";
  flex: 0 0 20px;
  height: 3px;
  background: var(--f24-primary-light);
}

.f24-home .f24-slider .homeslider_nav {
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  background: var(--f24-primary) none;
  opacity: 0.9;
  transition: background-color 160ms ease;
}

.f24-home .f24-slider .homeslider_nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translate(-30%, -50%) rotate(45deg);
  text-indent: 0;
}

.f24-home .f24-slider .homeslider_nav.next {
  right: 16px;
}

.f24-home .f24-slider .homeslider_nav.prev {
  left: 16px;
}

.f24-home .f24-slider .homeslider_nav.next::before {
  transform: translate(-70%, -50%) rotate(-135deg);
}

.f24-home .f24-slider .homeslider_nav:hover {
  background-color: var(--f24-primary-dark);
  opacity: 1;
}

@media (max-width: 767px) {
  .f24-home .f24-slide-link::after {
    display: none;
  }

  .f24-home .f24-slide-image {
    max-height: 70vh;
  }

  .f24-home .f24-slide-caption {
    position: static;
    width: 100%;
    padding: 24px 20px;
    transform: none;
    background: var(--f24-dark-2);
  }

  .f24-home .f24-slide-title {
    font-size: clamp(26px, 7.2vw, 38px);
  }

  .f24-home .f24-slide-text,
  .f24-home .f24-slide-text p {
    margin-top: 12px;
    font-size: 16px;
  }
}

/* Steps band */
.f24-home { overflow-x: clip; }

.f24-steps,
.f24-hotline-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.f24-steps {
  background: url("../img/home/bg-lamb.jpg") repeat;
  padding: 32px 0;
}

.f24-steps-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.f24-steps-col {
  position: relative;
  line-height: 0;
  max-width: 100%;
}

.f24-steps-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.f24-steps-btn {
  position: absolute;
  display: inline-block;
  padding: 12px 22px;
  color: var(--f24-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgb(0 0 0 / 30%);
}

.f24-steps-btn:hover,
.f24-steps-btn:focus { color: var(--f24-white); text-decoration: none; }

.f24-steps-btn-red { background: var(--f24-primary); }
.f24-steps-btn-red:hover { background: var(--f24-primary-dark); }
.f24-steps-btn-black { background: #000; }
.f24-steps-btn-black:hover { background: var(--f24-dark); }

.f24-steps-btn-config { right: 4%; top: 50%; transform: translateY(-50%); }
.f24-steps-btn-catalog { left: 50%; bottom: 8%; transform: translateX(-50%); }

/* Hotline band */
.f24-hotline-band {
  background: url("../img/home/bg-lamb-black.jpg") repeat;
  padding: 36px 0;
  color: var(--f24-white);
}

.f24-hotline-inner {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.f24-hotline-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.f24-hotline-label {
  color: #bbb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.f24-hotline-value {
  color: var(--f24-white);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.f24-hotline-value a,
.f24-hotline-value a:hover { color: var(--f24-white); text-decoration: none; }

@media (max-width: 767px) {
  .f24-steps-inner,
  .f24-hotline-inner { flex-direction: column; }
  .f24-steps-btn { font-size: 14px; padding: 9px 14px; }
  .f24-hotline-item { width: 100%; }
}

.f24-steps { margin-top: var(--f24-home-space); }

.f24-hotline-item img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

body#index .f24-home { padding-bottom: 0; margin-bottom: 0; }
body#index #wrapper-page { padding-bottom: 0; }
body#index #main > .page-footer { margin-bottom: 0; }
body#index .f24-footer { margin-top: 0; }

@media (max-width: 767px) {
  .f24-steps-col { width: 100%; max-width: 300px; margin: 0 auto; }
  body#index .f24-footer { margin-top: 0; }
}
