.home-collections {
  --bg-section: var(--bg-dark);
}

.home-collections__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4.375rem;
}

.home-collections__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.875rem;
}

.home-collections__head {
  max-width: 65.125rem;
  color: var(--text-light-primary);
}

.home-collections__title {
  margin: 0;
  color: var(--text-light-primary);
}

.home-collections__description {
  margin: 1.25rem 0 0;
  max-width: 65.125rem;
  color: var(--text-light-primary);
  font: var(--font-body-M-r);
}

.home-collections .swiper-navigation {
  display: flex;
  flex: 0 0 auto;
}

.home-collections__swiper {
  width: 100%;
  height: 42.25rem;
  overflow: hidden;
}

.home-collections__swiper .swiper-slide {
  height: calc((100% - 2.5rem) / 2);
}

.home-collection-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-height: 19.875rem;
  padding: 1.875rem;
  overflow: hidden;
  color: var(--text-light-primary);
  text-decoration: none;
  background-color: var(--bg-dark);
  border-radius: var(--radius-primary);
}

.home-collection-card__image,
.home-collection-card__image::before,
.home-collection-card__image img {
  position: absolute;
  inset: 0;
}

.home-collection-card__image::before {
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(27, 27, 27, 0) 50%, #1b1b1b 100%);
}

.home-collection-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform var(--animation-long);
  will-change: transform;
}

.home-collection-card__title {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--text-light-primary);
  text-decoration: none;
  -webkit-transition: color var(--animation-default);
  transition: color var(--animation-default);
}

.home-collection-card:hover .home-collection-card__title,
.home-collection-card:focus-visible .home-collection-card__title {
  color: var(--accent-primary-default);
}

@media (any-hover: hover) {
  .home-collection-card:hover .home-collection-card__image img,
  .home-collection-card:focus-visible .home-collection-card__image img {
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
  }
}

@media screen and (min-width: 1921px) {
  .home-collections__inner {
    gap: 3.64583vw;
  }

  .home-collections__header {
    gap: 1.5625vw;
  }

  .home-collections__head,
  .home-collections__description {
    max-width: 54.27083vw;
  }

  .home-collections__description {
    margin-top: 1.04167vw;
  }

  .home-collections__swiper {
    height: 35.20833vw;
  }

  .home-collections__swiper .swiper-slide {
    height: calc((100% - 2.08333vw) / 2);
  }

  .home-collection-card {
    min-height: 16.5625vw;
    padding: 1.5625vw;
  }
}

@media screen and (max-width: 1240px) {
  .home-collections__inner {
    gap: 2.8125rem;
  }

  .home-collections__header {
    display: block;
  }

  .home-collections .swiper-navigation {
    display: none;
  }

  .home-collections__swiper {
    height: auto;
    overflow: visible;
  }

  .home-collections__swiper .swiper-slide {
    width: 20.8125rem;
    height: auto;
  }

  .home-collection-card {
    height: 18.75rem;
    min-height: 18.75rem;
    padding: 1.5rem;
  }
}

@media screen and (max-width: 750px) {
  .home-collections__inner {
    gap: 1.875rem;
  }

  .home-collections__description {
    margin-top: 0.9375rem;
  }

  .home-collections__swiper .swiper-slide {
    width: 18.125rem;
  }

  .home-collection-card {
    height: 16.25rem;
    min-height: 16.25rem;
    padding: 1.25rem 0.9375rem;
  }
}