/* #region HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #fff;
  transition: transform 0.3s;

  &.header--hidden {
    transform: translateY(-100%);
  }
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px 14px;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;

  a {
    position: relative;
    display: flex;
    color: #4f4f4f;
    font-size: 16px;
    line-height: 1.3;
    transition: transform 0.3s, color 0.3s;

    &:hover {
      color: #252432;
      transform: translateY(-3px);
    }

    &::before {
      content: "";
      position: absolute;
      z-index: -1;
      bottom: -3px;
      left: 0;
      right: 0;
      height: 5px;
      border-radius: 2px;
      background-color: #0074ff;
      transform: scaleY(0);
      transform-origin: bottom;
      transition: transform 0.3s;
    }

    &:hover::before {
      transform: scaleY(1);
    }
  }
}

.header__btn {
  background: #0074ff;

  &:hover {
    box-shadow: rgb(0, 116, 255, 0.3) 0px 5px 15px;
  }
}

.burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #252432;
  transition: transform 0.3s, opacity 0.3s;
}

.burger span:nth-child(1) {
  top: 0;
}
.burger span:nth-child(2) {
  top: 9px;
}
.burger span:nth-child(3) {
  bottom: 0;
}

/* active */
.burger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (width <= 992px) {
  .header__inner {
    padding-block: 14px 18px;
  }
  .header__logo {
    margin-right: auto;
  }
  .burger {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-basis: 100%;
    order: 3;
    flex-wrap: wrap;
    gap: 10px 26px;
    padding: 24px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;

    &.is-open {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
    }
  }
}

@media (width <= 744px) {
  .header__inner {
    padding-block: 26px;
  }
  .header__logo {
    max-width: 124px;
  }
  .header__btn {
    padding: 10px;
  }
}
/* #endregion HEADER */

/* #region HERO SECTION */
.hero {
  padding-block: 90px 62px;
}

.hero__wrapper {
  padding: 119px 85px;
  border-radius: 15px;
  background: linear-gradient(45deg, #8bcbfe, #c494fe, #8bcbfe, #c494fe);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero__video {
  opacity: 0;
  height: 0;
  width: 0;
  visibility: hidden;
  transform: scale(0);
  transition: all 0.5s ease;

  &.hero__video--visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    height: auto;
    width: 100%;
    margin-bottom: 36px;
  }
}

.hero__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 34px;
  justify-content: space-between;
}

.hero__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-basis: 622px;
}
.hero__text {
  font-size: 14px;
  line-height: 1.5;
}

.hero__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__btn {
  max-width: 211px;
  width: 100%;

  &.hero__btn--black {
    background: #000;
  }

  &.hero__btn--white {
    background: #ffffff;
    color: #252432;
    opacity: 1;
  }

  &.hero__btn--hidden {
    opacity: 0;
    scale: 0.9;
    pointer-events: none;
  }
}

.hero__stats {
  flex-basis: 291px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.hero__stats-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.counter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 32px;
  border-radius: 15px;
  border: 8px solid #fff;
  background: #000;
  box-shadow: 0 4px 13.5px 0 rgba(0, 0, 0, 0.3);

  span {
    color: #fff;
    text-align: center;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.5;
  }
}

.counter__separator {
  color: white;
  font-size: 3rem;
  font-weight: 100;
}

@media (width <= 1200px) {
  .hero__wrapper {
    padding: 80px 40px;
  }
}

@media (width <= 744px) {
  .hero {
    padding-block: 100px 90px;

    .container {
      padding-inline: 0;
    }
  }

  .hero__wrapper {
    padding: 50px 16px;
  }
}
/* #endregion HERO SECTION */

/* #region CHOOSE SECTION */
.choose {
  padding-bottom: 150px;
}
.choose__wrapper {
  display: flex;
  flex-direction: column;
  padding: 100px 92px;
  border-radius: 15px;
  background: rgba(93, 93, 255, 0.25);
}

.choose__title {
  text-align: center;
  margin-bottom: 70px;
}

.choose__content {
  display: grid;
  gap: 24px;
}

.choose__items-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.choose__items-bottom {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 20px;
}

.choose__item {
  display: flex;
  padding: 54px 40px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;

  p {
    color: #4f4f4f;
    font-size: 14px;
  }
}
.choose__btn {
  margin-top: 50px;
  background-color: #000;
  max-width: 211px;
  width: 100%;
  margin-inline: auto;
}

@media (width <= 1200px) {
  .choose {
    padding-bottom: 120px;
  }
  .choose__wrapper {
    padding: 80px 40px;
  }
  .choose__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
  }

  .choose__items-top,
  .choose__items-bottom {
    display: contents;
  }

  .choose__item--last {
    grid-column: span 2;
  }
  .choose__item {
    padding: 54px 25px;
  }
}

@media (width <= 744px) {
  .choose {
    padding-bottom: 90px;

    .container {
      padding-inline: 0;
    }
  }
  .choose__wrapper {
    padding: 50px 16px;
  }
  .choose__content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .choose__item--last {
    grid-column: auto;
  }
}
/* #endregion CHOOSE SECTION */

/* #region METRICS SECTION */
.metrics {
  padding-bottom: 150px;
}
.metrics__title {
  text-align: center;
  margin-bottom: 38px;
}

.metrics__item {
  display: flex;
  padding: 40px 42px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  align-self: stretch;
  border-radius: 15px;
  background: #000;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.3);
  max-width: 652px;
  margin-inline: auto;
  margin-bottom: 70px;
}
.metrics__item-title {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.metrics__btn {
  background-color: #5d5dff;
  width: 100%;

  &:hover {
    box-shadow: rgb(93, 93, 255, 0.6) 0px 5px 15px;
  }
}

.metrics__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(410px, 1fr));
  justify-items: center;
  gap: 24px;
}
.metrics__stat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  max-width: 411px;
  width: 100%;
  text-align: center;
}

.metrics__stat-number {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.3;
}
.metrics__stat-text {
  color: #202124;
}

@media (width <= 1200px) {
  .metrics {
    padding-bottom: 120px;
  }
  .metrics__stats {
    gap: 40px 16px;
  }
}

@media (width <= 744px) {
  .metrics {
    padding-bottom: 90px;
  }
  .metrics__item {
    padding: 40px 20px;
  }
  .metrics__stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
/* #endregion METRICS SECTION */

/* #region HOW IT WORKS SECTION */
.how-it-works {
  padding-bottom: 150px;
}

.how-it-works__title {
  text-align: center;
  margin-bottom: 70px;
}

.how-it-works__content {
  display: flex;
  gap: 60px;
  justify-content: space-between;
}

.how-it-works__list {
  flex-basis: 728px;
  display: flex;
  flex-direction: column;
  gap: 40px;

  h3 {
    margin-bottom: 18px;
  }

  p {
    color: #4f4f4f;
    font-size: 18px;
  }
}

.how-it-works__images {
  max-width: 400px;
  width: 100%;
  display: flex;
  align-items: flex-start;

  img {
    &:first-child {
      margin-top: 30px;
    }

    &:last-child {
      transform: rotate(32deg);
      align-self: center;
    }
  }
}

@media (width <= 1200px) {
  .how-it-works {
    padding-bottom: 120px;
  }
  .how-it-works__images {
    display: none;
  }
  .how-it-works__list {
    flex-basis: 100%;
  }
}

@media (width <= 744px) {
  .how-it-works {
    padding-bottom: 90px;
  }
  .how-it-works__title {
    margin-bottom: 50px;
  }
}
/* #endregion HOW IT WORKS SECTION */

/* #region LIMITED SPOTS SECTION */
.limited-spots {
  padding-bottom: 150px;
}

.limited-spots__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: #000;
  padding: 80px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.limited-spots__content {
  flex-basis: 570px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  line-height: 1.5;

  h2 {
    color: #f5f8fe;
    font-size: 50px;
  }
}

.limited-spots__action {
  flex-basis: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.limited-spots__text {
  display: inline-block;
  color: #fff;
  text-align: center;
  font-size: 28px;
  line-height: normal;
  text-transform: uppercase;
  margin-block: 24px 36px;
}

.limited-spots__btn {
  background-color: #5d5dff;
  width: 100%;

  &:hover {
    box-shadow: rgb(93, 93, 255, 0.6) 0px 5px 15px;
  }
}

@media (width <= 1200px) {
  .limited-spots {
    padding-bottom: 120px;
  }
  .limited-spots__wrapper {
    flex-direction: column;
    text-align: center;
    gap: 110px;
    padding: 80px 40px;
  }
  .limited-spots__content {
    flex-basis: 100%;
  }
  .limited-spots__action {
    flex-basis: 100%;
  }
}

@media (width <= 992px) {
  .limited-spots__wrapper {
    text-align: start;
  }
}

@media (width <= 744px) {
  .limited-spots {
    padding-bottom: 90px;
  }
  .limited-spots__wrapper {
    padding: 50px 20px;
    gap: 50px;
  }
  .limited-spots__content {
    h2 {
      font-size: 40px;
    }
  }
  .limited-spots__text {
    font-size: 25px;
  }
}
/* #endregion LIMITED SPOTS SECTION */

/* #region FEEDBACK SECTION */
.feedback {
  padding-bottom: 150px;
}
.feedback__title {
  text-align: center;
  margin-bottom: 70px;
}

.feedback__wrapper {
  width: 100%;
}

.feedback__content {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-bottom: 50px;
  overflow: visible;
}

.feedback__item {
  display: flex;
  padding: 40px 30px;
  flex-direction: column;
  gap: 30px;
  height: stretch;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 28px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  }
}

.feedback__item-header {
  display: flex;
  align-items: center;
  gap: 10px;

  img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
  }
}

.feedback__item-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
  }

  span {
    color: #5d5dff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    flex-shrink: 0;
  }
}
.feedback__item-country {
  color: #929292;
}

.feedback__item-rating {
  width: 100%;
  height: 28px;
  background: url("/img/stars.webp") no-repeat;
  background-size: contain;
}

.feedback__item-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feedback__item-text {
  color: #4f4f4f;
  line-height: 1.5;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #0074ff;
  opacity: 0.5;
  transition: all 0.3s ease;

  &.swiper-pagination-bullet-active {
    opacity: 1;
    background: #0074ff;
  }
}

.swiper-button-prev,
.swiper-button-next {
  top: 97%;
  background: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

  &:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  &::after {
    font-size: 20px;
    color: #0074ff;
    font-weight: bold;
  }
}

@media (width <= 1200px) {
  .feedback {
    padding-bottom: 120px;
  }
}

@media (width <= 744px) {
  .feedback__content {
    overflow: hidden;
  }
  .feedback__title {
    margin-bottom: 50px;
  }
  .feedback__item {
    padding: 40px 20px;
  }
  .feedback__item-header {
    align-items: start;
  }
}

/* #endregion FEEDBACK SECTION */

/* #region GRAPHS SECTION */
.graphs {
  padding-bottom: 150px;
}

.graphs__title {
  text-align: center;
  margin-bottom: 70px;
}

.graphs__content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: center;
}

.graphs__item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 8px;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 4px 28px 0 rgba(0, 0, 0, 0.1);
  max-width: 262px;
  width: 100%;
  min-height: 274px;
}

.graphs__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #fff;
  font-weight: 600;
}

.graphs__item-label {
  color: #8987a1;
  text-transform: capitalize;
}
.graphs__item-name {
  display: flex;
  align-self: center;
  padding: 4px 6px;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-size: 10px;
  line-height: normal;
}
.graphs__item-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0074ff;
}

.graphs__item-body {
  display: flex;
}

.graphs__item-graph {
  display: flex;
  flex-direction: column;
}

.graphs__item-cost {
  display: inline-block;
  color: #0074ff;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 8px;
}

.graphs__item-profit {
  color: #b6b6b6;
  line-height: 1.6;
}

@media (width <= 1200px) {
  .graphs {
    padding-bottom: 120px;
  }
  .graphs__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 24px;
    max-width: fit-content;
    margin-inline: auto;
  }
}

@media (width <= 744px) {
  .graphs {
    padding-bottom: 90px;
  }
  .graphs__title {
    margin-bottom: 50px;
  }
  .graphs__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
/* #endregion GRAPHS SECTION */

/* #region FAQ SECTION */
.faq {
  padding-bottom: 100px;
}

.faq__title {
  text-align: center;
  margin-bottom: 70px;
}

.faq__inner {
  padding: 112px 132px;
  border-radius: 15px;
  background: #d5d7fe;
}

.faq__wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq__item {
  border-radius: 12px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  padding: 24px 30px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;

  &:hover {
    background-color: rgb(0, 116, 255, 0.6);
    color: #fff;

    .faq__icon {
      &::before,
      &::after {
        background-color: #fff;
      }
    }
  }
}

.faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;

  &::before,
  &::after {
    content: "";
    position: absolute;
    background-color: #000;
    transition: all 0.3s;
  }

  &::before {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  &::after {
    width: 2px;
    height: 20px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
}

.faq__item--active {
  .faq__question {
    background-color: rgb(0, 116, 255, 0.6);
    color: #fff;
  }

  .faq__icon {
    &::before,
    &::after {
      background-color: #fff;
    }

    &::after {
      transform: translateX(-50%) rotate(90deg);
      opacity: 0;
    }
  }

  .faq__answer-wrapper {
    max-height: 500px;
    margin-top: 8px;
    background: #fff;
    opacity: 1;
  }
}

.faq__answer-wrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-radius: 10px;
  background: transparent;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s,
    background-color 0.4s, opacity 0.4s;
}

.faq__answer {
  padding: 24px 30px;
  color: rgba(0, 0, 0, 0.8);
}

@media (width <= 1200px) {
  .faq {
    padding-bottom: 120px;
  }
  .faq__inner {
    padding: 48px 42px;
  }
}

@media (width <= 744px) {
  .faq {
    padding-bottom: 90px;
    .container {
      padding: 0;
    }
  }
  .faq__inner {
    padding: 50px 20px;
  }
  .faq__question {
    padding: 24px 20px;
    align-items: flex-start;
  }
  .faq__answer {
    padding: 24px 20px;
  }
}
/* #endregion FAQ SECTION */

/* #region FOOTER */
.footer {
  padding-bottom: 80px;
}
.footer__wrapper {
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.footer__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
}
.footer__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
  color: #4f4f4f;
  font-size: 16px;

  a {
    transition: color 0.3s;

    &:hover {
      color: #0074ff;
    }
  }
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 68px;
  color: #8987a1;
  text-align: center;
  font-size: 16px;

  a {
    transition: color 0.3s;

    &:hover {
      color: #0074ff;
    }
  }
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

@media (width <= 1200px) {
  .footer {
    padding-bottom: 46px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__nav {
    margin-inline: 0;
  }
}

@media (width <= 744px) {
  .footer__inner {
    gap: 20px;
  }
  .footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 18px;
  }
}
/* #endregion FOOTER */

/* #region MODAL */
.modal {
  position: fixed;
  display: flex;
  inset: 0;
  padding: 24px;
  background-color: rgba(0, 0, 0, 0.35);
  align-items: center;
  justify-content: center;
  z-index: -1;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;

  &.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 999;
    overflow: scroll;

    .modal-inner {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }
}
.modal__title {
  color: #0074ff;
  text-align: center;
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 64px;
}

.modal-inner {
  max-width: 700px;
  width: 100%;
  border-radius: 16px;
  padding: 20px;
  background-color: #fff;
  position: relative;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);

  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (width <= 1200px) {
  .modal-inner {
    padding: 16px;
  }
  .modal__title {
    font-size: 24px;
    margin-bottom: 42px;
  }
}

@media (width <= 744px) {
  .modal {
    padding-block: 250px 16px;
    padding-inline: 16px;
  }
  .modal-inner {
    padding-block: 50px 32px;
    padding-inline: 20px;
  }
}
/* #endregion MODAL */
