.home-kv {
  --hero-crossfade-duration: 900ms;
  --hero-crossfade-ease: cubic-bezier(.22, 1, .36, 1);

  position: relative;
  width: 100%;
  height: calc(100vh - var(--site-header-height));
  height: calc(100svh - var(--site-header-height));
  overflow: hidden;
}

.home-kv__media {
  position: absolute;
  inset: 0;
}

.home-kv__picture,
.home-kv__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-kv__picture {
  display: block;
}

.home-kv__picture.is-crossfading {
  z-index: 1;
}

.home-kv__image {
  max-width: none;
  opacity: 1;
  object-fit: cover;
  object-position: top center;
  transition: opacity var(--hero-crossfade-duration) var(--hero-crossfade-ease);
}

.home-kv__image.is-entering {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-kv__image {
    transition: none;
  }
}

.home-business {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: calc(100svh - var(--site-header-height));
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--color-text-inverse);
  background: linear-gradient(
    79.9259deg,
    rgb(9 42 82 / 80%) 0%,
    rgb(0 54 121 / 80%) 81.959%,
    rgb(0 73 165 / 80%) 100%
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.home-business__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  justify-content: center;
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-block: var(--space-20) var(--space-24);
}

.home-business__heading {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex: 0 0 auto;
}

.home-business__heading::before,
.home-business__heading::after {
  flex: 1 1 0;
  height: 1px;
  content: "";
}

.home-business__heading::before {
  background: linear-gradient(90deg, transparent, var(--olive-300));
}

.home-business__heading::after {
  background: linear-gradient(90deg, var(--olive-300), transparent);
}

@keyframes home-business-line-enter {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (min-width: 768px) {
  .home-business__heading::before,
  .home-business__heading::after {
    animation: home-business-line-enter 900ms cubic-bezier(.22, 1, .36, 1) 900ms both;
    will-change: opacity, transform;
  }

  .home-business__heading::before {
    transform-origin: right center;
  }

  .home-business__heading::after {
    transform-origin: left center;
  }
}

.home-business__heading h2 {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  line-height: 33px;
  white-space: nowrap;
}

.home-business__groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
  width: 100%;
  padding-inline: 32px;
}

.home-business__group {
  min-width: 0;
}

.home-business__group-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  font-size: var(--font-size-18);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-27);
}

.home-business__group-title::before {
  width: 8px;
  height: 8px;
  margin: 2px;
  flex: 0 0 8px;
  background: var(--color-decoration-accent);
  border-radius: 1px;
  content: "";
  transform: rotate(45deg);
}

.home-business__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-left: var(--space-24);
}

.home-business__list li {
  position: relative;
  min-height: var(--line-height-24);
  padding-left: var(--space-12);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-24);
}

.home-business__list li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 24px;
  background: url("../../images/home/business-item-line.svg") center / 4px 24px no-repeat;
  content: "";
}

@media (max-width: 1279px) {
  .home-business__inner {
    padding-inline: var(--space-32);
  }

  .home-business__groups {
    padding-inline: var(--space-24);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-kv {
    display: flex;
    flex-direction: column;
  }

  .home-business {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    height: auto;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 767px) {
  body[data-page="home"] {
    padding-bottom: var(--home-mobile-actions-height);
  }

  .home-kv {
    display: grid;
    grid-template-rows:
      calc(100vh - var(--site-header-height) - var(--home-mobile-actions-height))
      auto;
    height: auto;
    overflow: visible;
    background: var(--color-home-background);
  }

  .home-kv__media {
    position: relative;
    inset: auto;
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
  }

  .home-kv__image {
    object-position: bottom center;
  }

  .home-kv__picture {
    height: calc(100vh - var(--site-header-height) - var(--home-mobile-actions-height));
  }

  .home-business {
    position: relative;
    z-index: auto;
    inset: auto;
    grid-row: 2;
    grid-column: 1;
    max-height: none;
    overflow: visible;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-business__inner {
    gap: var(--space-20);
    padding: var(--space-40) var(--space-16);
  }

  .home-business__groups {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding: var(--space-24) var(--space-16);
    background: var(--color-home-card-surface);
    border-radius: var(--radius-md);
  }

  .home-business__group {
    flex: none;
    width: 100%;
  }

  .home-business__group + .home-business__group {
    margin-top: var(--space-16);
    padding-top: var(--space-16);
    border-top: 1px solid var(--color-home-card-divider);
  }
}
