@import url("index.css");

/* Benefits */

.benefits {
  text-align: center;
  margin-bottom: 160px;
}

.benefits__title {
  margin-bottom: 40px;
}

.benefits__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  grid-template-areas: "benefit1 benefit2" "benefit3 benefit3";
}

.benefits__item:nth-child(1) {
  grid-area: benefit1;
}

.benefits__item:nth-child(2) {
  grid-area: benefit2;
}

.benefits__item:nth-child(3) {
  grid-area: benefit3;
}

.benefits__item {
  background: #221632;
  padding: 50px;
  box-sizing: border-box;
  border-bottom: 4px solid #9660db;
  overflow: hidden;
  align-content: center;
}

.benefits__item-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 25px;
  display: inline-block;
}

.benefits__item-title {
  margin-bottom: 5px;
}

.benefits__logos-list {
  height: auto;
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  column-gap: 20px;
  justify-content: center;
  position: relative;
  margin-top: 30px;
  margin-bottom: 10px;
  grid-auto-columns: calc((100% - 20px * 3) / 4);
}

.benefits__logos-list::before,
.benefits__logos-list::after {
  content: "";
  opacity: 0.3;
}

.benefits__logo-item,
.benefits__logos-list::before,
.benefits__logos-list::after {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid #9660db;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 14px rgba(149, 96, 219, 0.3);
  background: linear-gradient(192.54deg, rgba(175, 165, 189, 0.1) 39.67%, rgba(27, 16, 41, 0) 39.67%), #1b1029;
}

.benefits__logo-img {
  width: auto;
  height: auto;
  display: block;
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
}

.benefits__item--expanded {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
  position: relative;
}

.benefits__item--expanded::before {
  content: "";
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  background: radial-gradient(55% 135% at 100% 145%, #9660db 0%, rgba(150, 96, 219, 0) 100%);
  pointer-events: none;
}

.benefits__item--expanded {
  display: grid;
  grid-template-areas:
    "icon features"
    "title features"
    "description features"
    "button features";
}

.benefits__item--expanded .benefits__item-icon,
.benefits__item--expanded .benefits__item-title,
.benefits__item--expanded .benefits__item-description,
.benefits__item--expanded .benefits__item-button {
  margin-left: 40px;
}

.benefits__item--expanded .benefits__item-icon {
  grid-area: icon;
}

.benefits__item--expanded .benefits__item-title {
  grid-area: title;
}

.benefits__item--expanded .benefits__item-description {
  grid-area: description;
}

.benefits__item--expanded .benefits__feature-list-wrap {
  grid-area: features;
}

.benefits__item--expanded .benefits__item-button {
  grid-area: button;
}

.benefits__item--expanded > *:first-child {
  margin-top: 50px;
}

.benefits__item--expanded .benefits__item-button {
  margin-bottom: 70px;
}

.benefits__item--expanded .benefits__item-title {
  font-size: 34px;
}

.benefits__item--expanded .benefits__item-icon {
  width: 72px;
  height: 72px;
  position: relative;
  left: -10px;
}

.benefits__feature-list-wrap {
  border-left: 40px solid transparent;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 7.5%,
    rgba(0, 0, 0, 0.7) 92.5%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 7.5%, rgba(0, 0, 0, 0.7) 92.5%, rgba(0, 0, 0, 0) 100%);
}

.benefits__feature-list {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 100%;
  align-content: space-between;
  row-gap: 30px;
}

.benefits__feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-content: flex-start;
  align-items: center;
  column-gap: 16px;
}

.benefits__feature-item::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9660db;
}

.benefits__feature-title {
  font-weight: 500;
}

.benefits__item-button {
  margin-top: 25px;
}

/* Blocks */

.wrapped-sections {
  width: auto;
  height: 100%;
  position: relative;
  z-index: 0;
  background: linear-gradient(0deg, rgba(68, 51, 136, 0) 0%, #1b1029 100.08%), #443388;
  margin-bottom: 160px;
}

.blocks {
  position: absolute;
  width: auto;
  height: 700px;
  z-index: 0;
}

.blocks--1 {
  top: -350px;
  right: -800px;
}

.blocks--2 {
  bottom: -260px;
  left: -320px;
  clip-path: polygon(0 0, 0 calc(100% - 260px), 100% calc(100% - 260px), 100% 0);
}

/* Steps */
.steps {
  padding: 80px 0;
  width: 100%;
  height: auto;
}

.steps__inner {
  display: grid;
  grid-template-columns: 1fr 42%;
  column-gap: 70px;
  align-items: flex-start;
  margin-top: 40px;
  grid-template-areas: "steps video";
}

.steps__list {
  display: grid;
  grid-template-columns: 100%;
  row-gap: 24px;
  counter-reset: step-counter;
  grid-area: steps;
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
}

.steps__item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #9660db;
  background: #443388;
  font-weight: 600;
}

.steps__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 10px;
  grid-area: video;
}

/* Reviews */

.reviews {
  padding-top: 80px;
  padding-bottom: 160px;
}

.reviews__title {
  margin-bottom: 40px;
}

.reviews__slider {
  width: 100%;
  height: auto;
}

.reviews__list {
  width: 100%;
  display: grid;
  grid-auto-columns: 550px;
  grid-auto-flow: column;
  grid-template-rows: 100%;
  column-gap: 20px;
  cursor: grab;
  user-select: none;
}

.reviews__slider:not(.reviews__slider--dragging) .reviews__list,
.reviews__item,
.reviews__author-position,
.reviews__author {
  transition: all 0.25s ease-in-out;
}

.reviews__item {
  width: 100%;
  height: auto;
  background: #221632;
  border-radius: 8px;
  padding: 64px;
  box-sizing: border-box;
  opacity: 1;
}

.reviews__item--active {
  background: #f0eee4;
}

.reviews__item--active .reviews__text,
.reviews__item--active .reviews__author {
  color: #1b1029;
}

.reviews__item--active .reviews__author-position {
  color: #7d738b;
}

.reviews__item:not(.reviews__item--active):not(.reviews__item--next) {
  opacity: 0.5;
}

.reviews__stars {
  display: grid;
  justify-content: flex-start;
  column-gap: 4px;
  grid-auto-flow: column;
}

.reviews__star {
  width: 20px;
  height: 20px;
  display: block;
}

.reviews__text {
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-top: 16px;
  margin-bottom: 32px;
}

.reviews__author {
  color: #fff;
}

.reviews__author-position {
  color: #afa5bd;
  font-weight: 400;
}

@media screen and (max-width: 992px) {
  /* Benefits */

  .benefits__feature-title {
    font-size: 27px;
  }
}

@media screen and (max-width: 768px) {
  /* Benefits */

  .benefits__logos-list {
    grid-auto-columns: calc(100% / 6);
  }

  .benefits__list {
    grid-template-columns: 100%;
    grid-template-areas: "benefit1" "benefit2" "benefit3";
  }

  .benefits__item,
  .benefits__item--expanded {
    padding: 40px 15px 55px 15px;
    grid-template-columns: 100%;
    text-align: center;
  }

  .benefits__item--expanded {
    display: grid;
    grid-template-columns: 100%;
    grid-template-areas:
      "icon"
      "title"
      "description"
      "features"
      "button";
  }

  .benefits__item--expanded .benefits__item-icon,
  .benefits__item--expanded .benefits__item-title,
  .benefits__item--expanded .benefits__item-description,
  .benefits__item--expanded .benefits__item-button {
    margin: auto;
  }

  .benefits__item--expanded::before {
    display: none;
  }

  .benefits__item--expanded .benefits__item-title {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .benefits__item-icon,
  .benefits__item--expanded .benefits__item-icon {
    width: 48px;
    height: 48px;
    left: 0;
  }

  .benefits__feature-list-wrap {
    border-left: none;
    bottom: 0;
    left: 50%;
    transform: none;
    width: 100%;
    height: auto;
    -webkit-mask-image: none;
    mask-image: none;
    margin-top: 15px;
  }

  .benefits__feature-list {
    row-gap: 10px;
  }

  .benefits__feature-item {
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 8px;
  }

  .benefits__feature-item::before {
    width: 4px;
    height: 4px;
  }

  .benefits__feature-title {
    font-size: 15px;
  }

  .benefits__item--expanded .benefits__item-button {
    margin-top: 25px;
  }

  .benefits {
    margin-bottom: 0;
  }

  /* Blocks */

  .wrapped-sections {
    margin-bottom: 0;
  }

  .blocks {
    height: 600px;
  }

  .blocks--1 {
    top: 50px;
    right: -750px;
  }

  .blocks--2 {
    bottom: -300px;
    left: -450px;
    clip-path: polygon(0 0, 0 calc(100% - 300px), 100% calc(100% - 300px), 100% 0);
  }

  /* Steps */

  .steps__title,
  .steps__description {
    text-align: center;
  }

  .steps {
    padding: 80px 0;
    width: 100%;
    height: auto;
  }

  .steps__inner {
    grid-template-columns: 100%;
    margin-top: 40px;
    row-gap: 40px;
    grid-template-areas: "video" "steps";
  }

  .steps__video {
    width: 100%;
    height: auto;
  }

  /* Reviews */

  .reviews {
    padding-top: 0;
    padding-bottom: 100px;
  }

  .reviews__title {
    text-align: center;
  }

  .reviews__list {
    grid-auto-columns: 320px;
  }

  .reviews__item {
    padding: 20px;
  }

  .reviews__text {
    font-size: 20px;
  }

  .reviews__author {
    font-size: 14px;
  }

  .reviews__author-position {
    font-size: 12px;
  }
}

@media screen and (max-width: 567px) {
  .benefits__logos-list {
    column-gap: 10px;
    grid-auto-columns: calc(100% / 5);
  }

  /* Blocks */

  .wrapped-sections {
    margin-bottom: 0;
  }

  .blocks {
    height: 350px;
  }

  .blocks--1 {
    top: 185px;
    right: -465px;
  }

  .blocks--2 {
    bottom: -170px;
    left: -265px;
    clip-path: polygon(0 0, 0 calc(100% - 170px), 100% calc(100% - 170px), 100% 0);
  }
}

@media screen and (max-width: 420px) {
  .reviews__list {
    grid-auto-columns: 90%;
  }
}
