@import url('./blocks/categories-list.css');
@import url('./blocks/products-list.css');

.section-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.31429;
  color: #ffffff;
}

.banners__list img {
  height: auto;
  object-fit: cover;
}

.brands__list img {
  width: 165px;
  height: 44px;
  object-fit: contain;
}

.section__hero_bg {
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.2) 36%, rgba(18, 69, 40, 0.18) 62%, rgba(18, 69, 40, 0.38) 100%),
    url('../img/granevo-hero-1200x440-blurred.webp') no-repeat center / cover;
}

.title-section__hero {
  min-height: 260px;
  justify-content: center;
}

.title-section__hero > h1 {
  background: none;
  color: #ffffff;
  font-weight: 700;
  -webkit-text-fill-color: #ffffff;
}

.title-section__hero > p {
  width: 100% !important;
  max-width: none;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(10, 32, 20, 0.45);
}

.blog {
  min-height: 1060px;
  padding: 120px 105px;
  background: var(--bg-color-primary-dark) url('../picts/index/blog_bg.png') no-repeat center / cover;
  position: relative;
}

.blog__content {
  width: min(680px, 50vw);
  anchor-name: --blog-content;
}

.blog__title {
  margin-bottom: 12px;
}

.blog__caption {
  color: #ffffff !important;
  width: calc(100% - 70px);
}

.blog__img {
  width: 100%;
  height: auto;
  margin-block: 54px 32px;
  border-radius: 8px;
}

.blog__desc {
  font-size: 16px;
  line-height: 1.4;
  color: #ffffff;
  width: calc(100% - 70px);
  display: -webkit-box;
  -webkit-line-clamp: 5; /* 4 rows only */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-list__wrap {
  width: min(550px, 40vw);
  padding-block: 76px 32px;
  margin-left: -45px;
  background-color: #ffffff;
  border-radius: 8px;
  position: absolute;
  top: anchor(top --blog-content);
  left: anchor(right --blog-content);
  z-index: 5;
}

.blog-list__icon {
  width: 100px;
  height: 100px;
  background-color: var(--bg-color-primary-dark);
  border: 4px solid #fff;
  border-radius: 100vw;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  display: grid;
  place-content: center;
  position: absolute;
  top: -56px;
  left: 50%;
  transform: translateX(-50%);
}

.blog-list__title {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text-gray);
  margin-bottom: 32px;
}

.blog-list__list a {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text-gray);
  border-bottom: 1px solid #efefef;
}
.blog-list__list a:first-child {
  border-top: 1px solid #efefef;
}

.blog-list__list a.active {
  color: #ffffff;
  background-color: var(--bg-color-primary-dark);
  border: none;
  position: relative;
}

.blog-list__list a.active::before {
  content: '';
  width: 28px;
  height: 28px;
  background-color: var(--bg-color-primary-dark);
  border-radius: 4px;
  transform-origin: center;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-40%, -50%) rotate(45deg);
}

.blog-list__list a.active + a {
  border-top: none;
}

.blog-list__list a:has(+ a.active) {
  border-bottom: none;
}

.blog-list__list a img {
  width: min(235px, 40%);
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.blog-list__wrap .btn {
  padding-block: 16px;
  margin-top: 32px;
}

.testimonials {
  padding-block: 125px 100px;
  background: #ffffff url('../picts/index/testimonials_bg.png') no-repeat center / cover;
}

.caption {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.04583;
  /* color: var(--color-text-black); */
}

.testimonials__slider-wrap {
  position: relative;
}

.testimonials__slider {
  /* min-width: 1px; */
  padding-inline: 10px !important;
}

/* .testimonials__slider .slick-track {
  display: flex;
} */

.testimonials__slider .swiper-slide {
  /* width: 402px; */
  min-width: 1px;
  height: auto;
  padding: 32px;
  /* margin-inline: 10px; */
  margin-block: 4px;
  background: rgba(255, 255, 255, 0.47);
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.testimonials__quote {
  font-size: 16px;
  color: #7c7c7e;
  quotes: '“' '”';
}

.testimonials__author {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-text-black);
}

.testimonials__prev,
.testimonials__next {
  width: 48px;
  height: 48px;
  background-color: #f3f3f3;
  border: none;
  border-radius: 100vw;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}

.about {
  padding-block: 76px 120px;
  background-color: var(--bg-color-primary-dark);
  background-image: url('../picts/index/about.png'), url('../picts/index/about_bg.svg');
  background-repeat: no-repeat, no-repeat;
  background-position:
    left center,
    right bottom;
  background-size:
    auto 100%,
    auto;
}

.about__content {
  max-width: 837px;
  padding: 56px 116px;
  background-color: #ffffff;
  border: 1px solid #efefef;
  border-radius: 4px;
}

.about__desc {
  font-size: 16px;
  color: var(--color-text-gray);
  margin-block: 24px 40px;
}

.about__btn {
  padding: 12px 71px;
}

.left-menu {
  width: 100%;
  border: none;
  max-width: max-content;
  border-radius: 10px;
}

.left-menu .categories-menu__list {
  border: 1px solid #f3f3f3;
}

.benefits {
  padding-block: 2rem 4rem;
  background:
    linear-gradient(to bottom, #ffffff 0%, transparent 100%) no-repeat center / cover,
    url('../picts/index/benefits_bg.png') no-repeat center / cover;
}

.benefits__list {
  /* padding-inline: 3rem; */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: min-content;
  gap: 32px;
}

.benefits__item,
.benefits__item .hover {
  text-align: center;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.benefits__item {
  background-color: #ffffff;
  border-radius: 5px;
  position: relative;
}

.benefits__item .hover {
  color: #ffffff;
  background-color: var(--color-primary);
  border-radius: 15px;
  position: absolute;
  inset: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.benefits__item svg {
  color: var(--bg-color-primary-dark);
  margin-inline: auto;
  transition: inherit;
}

.benefits__caption {
  font-weight: 700;
  color: var(--color-text-black);
  transition: inherit;
}

.benefits__text {
  transition: inherit;
}

.benefits__item:hover .hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.benefits__item .hover svg {
  color: inherit;
}

.benefits__item .hover .benefits__caption {
  color: inherit;
}

@media (max-width: 991.5px) {
  .title-section__hero {
    min-height: 500px;
  }

  .blog {
    min-height: 1060px;
    padding: 120px 105px;
    background: var(--bg-color-primary-dark) url('../picts/index/blog_bg.png') no-repeat center / cover;
    position: relative;
  }

  .blog__content {
    width: min(680px, 50vw);
    anchor-name: --blog-content;
  }

  .blog__title {
    margin-bottom: 12px;
  }

  .blog__caption {
    color: #ffffff !important;
    width: calc(100% - 70px);
  }

  .blog__img {
    width: 100%;
    height: auto;
    margin-block: 54px 32px;
    border-radius: 8px;
  }

  .blog__desc {
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff;
    width: calc(100% - 70px);
    display: -webkit-box;
    -webkit-line-clamp: 5; /* 4 rows only */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .blog-list__wrap {
    width: min(550px, 40vw);
    padding-block: 76px 32px;
    margin-left: -45px;
    background-color: #ffffff;
    border-radius: 8px;
    position: absolute;
    top: anchor(top --blog-content);
    left: anchor(right --blog-content);
    z-index: 5;
  }

  .blog-list__icon {
    width: 100px;
    height: 100px;
    background-color: var(--bg-color-primary-dark);
    border: 4px solid #fff;
    border-radius: 100vw;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    display: grid;
    place-content: center;
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%);
  }

  .blog-list__title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    color: var(--color-text-gray);
    margin-bottom: 32px;
  }

  .blog-list__list a {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text-gray);
    border-bottom: 1px solid #efefef;
  }
  .blog-list__list a:first-child {
    border-top: 1px solid #efefef;
  }

  .blog-list__list a.active {
    color: #ffffff;
    background-color: var(--bg-color-primary-dark);
    border: none;
    position: relative;
  }

  .blog-list__list a.active::before {
    content: '';
    width: 28px;
    height: 28px;
    background-color: var(--bg-color-primary-dark);
    border-radius: 4px;
    transform-origin: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-40%, -50%) rotate(45deg);
  }

  .blog-list__list a.active + a {
    border-top: none;
  }

  .blog-list__list a:has(+ a.active) {
    border-bottom: none;
  }

  .blog-list__list a img {
    width: min(235px, 40%);
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .blog-list__wrap .btn {
    padding-block: 16px;
    margin-top: 32px;
  }

  .caption {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.04583;
    /* color: var(--color-text-black); */
  }

  .testimonials {
    padding-block: 80px 60px;
  }

  .testimonials__slider .swiper-slide {
    padding: 24px;
  }

  .testimonials__author {
    font-size: 18px;
  }

  .about {
    padding-block: 60px 80px;
  }

  .about__content {
    padding: 32px;
  }

  .about__desc {
    font-size: 16px;
    color: var(--color-text-gray);
    margin-block: 24px 40px;
  }

  .about__btn {
    width: 100%;
    max-width: 220px;
    padding: 12px 24px;
  }

  .left-menu {
    width: 100%;
    border: none;
    max-width: max-content;
  }

  .left-menu .categories-menu__list {
    border: 1px solid #f3f3f3;
  }

  .benefits__list {
    grid-template-columns: 100%;
    gap: 24px;
  }

  .benefits__item {
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .title-section__hero {
    min-height: 460px;
  }

  .title-section__hero > h1 {
    padding-top: 5rem;
  }

  .title-section__hero > p {
    width: 100% !important;
  }

  .blog {
    min-height: 0;
    padding: 64px 0 48px;
  }

  .blog .container {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .blog__content {
    width: 100%;
  }

  .blog__caption,
  .blog__desc {
    width: 100%;
  }

  .blog__img {
    margin-block: 32px 24px;
  }

  .blog-list__wrap {
    width: 100%;
    padding: 56px 0 24px;
    margin-left: 0;
    position: static;
  }

  .blog-list__icon {
    width: 72px;
    height: 72px;
    top: -36px;
  }

  .blog-list__icon svg {
    width: 42px;
    height: 42px;
  }

  .blog-list__title {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .blog-list__list a {
    font-size: 18px;
  }

  .blog-list__list a img {
    width: 88px;
  }

  .blog-list__wrap .btn {
    margin-top: 24px;
    margin-inline: 16px !important;
  }
}

@media (max-width: 767.5px) {
}
