.single-service {
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    contain: paint;
  }

  .top-section {
    padding: 0px 128px 0;
    display: flex;
    justify-content: center;
    gap: 32px;
    position: relative;
    width: 100%;
  }

  .top-section__info-container {
    padding-top: 80px;
    position: sticky;
    width: 50%;
    display: flex;
    flex-direction: column;
    z-index: 1;
    max-width: 748px;
    top: 80px;
    height: 100%;
    margin-bottom: 64px;
  }

  .top-section__info-title {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--blue-gray);

    h1 {
      font-family: "Poppins", serif;
      font-weight: 600;
      font-size: 38px;
      color: var(--dark-80);
    }
  }

  .img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1.5px solid var(--blue-gray);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    flex-grow: 0;
    transition: background-color 300ms;

    img {
      filter: none;
      transition: filter 300ms;
    }
  }

  .top-section__info-description {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 25.6px;
    margin-top: 24px;
    color: var(--dark-100);

    ul {
      padding-left: 20px;
    }
  }

  .top-section__nav {
    margin-top: 24px;
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: space-between;
  }

  .top-section__nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    color: var(--dark-100);
    overflow: hidden;

    &:hover {
      .btn-round {
        &::before {
          content: url(../../../images/icons/big-arrow-icon-green.svg);
          left: 50%;
        }

        &::after {
          left: 125%;
        }
      }

      .btn-text {
        transform: translateY(-175%);

        &::after {
          transform: translateY(0);
        }
      }
    }
  }

  .top-section__nav-btn.prev {
    .btn-round {
      transform: scaleX(-1);
    }

    .btn-text {
      text-align: left;
    }
  }

  .top-section__nav-btn.next {
    .btn-text {
      text-align: right;
    }
  }

  .top-section__card {
    margin-block: 80px 64px;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 40px;
    background-color: var(--white-primary);
    box-shadow: 0px 12px 100px 0px #c7c7c740;
    font-family: "Inter", sans-serif;
    z-index: 1;
    max-width: 580px;
  }

  .card__item {
    line-height: 24px;

    h2 {
      font-weight: 600;
      font-size: 18px;
      line-height: 24px;
      color: var(--dark-80);
    }

    h3 {
      font-weight: 600;
      font-size: 16px;
      line-height: 24px;
      color: var(--dark-50);
    }

    p {
      margin-top: 8px;
      font-weight: 400;
      font-size: 16px;
      line-height: 24px;
      color: var(--dark-80);
    }
  }

  .card__item-techs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .card__item-techs {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .card__item-techs-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .tech-icon-wrapper {
    position: relative;
    width: 32px;
    height: 32px;

    &:after {
      content: attr(data-tooltip);
      position: absolute;
      bottom: 39px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 14px;
      line-height: 16px;
      white-space: nowrap;
      color: var(--white-primary);
      background-color: var(--dark-50);
      border-radius: 8px;
      padding: 4px 8px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 300ms;
      z-index: 1;
    }

    &::before {
      content: "";
      position: absolute;
      bottom: 31px;
      left: 50%;
      transform: translateX(-50%);
      border: 4px solid transparent;
      border-top-color: var(--dark-50);
      opacity: 0;
      z-index: 1;
      transition: opacity 300ms;
      pointer-events: none;
    }

    &:hover {
      &::after,
      &::before {
        opacity: 1;
      }
    }
  }

  .questions-form {
    margin-top: 0;
  }
}

@media (max-width: 1280px) {
  .single-service {
    .top-section {
      padding: 56px 48px;
    }

    .top-section__card {
      margin-top: 0;
    }
  }
}

@media (max-width: 1024px) {
  .single-service {
    .top-section {
      padding: 56px 48px 0;
    }

    .top-section__info-title {
      h1 {
        font-size: 32px;
      }
    }

    .top-section__card {
      margin-top: 0;
      padding: 16px;
    }
  }
}

@media (max-width: 768px) {
  .single-service {
    .top-section {
      flex-direction: column;
    }

    .top-section__info-container {
      width: 100%;
      position: static;
      padding-top: 0;
      margin-bottom: 0;
    }

    .top-section__nav-btn {
      &:hover {
        .btn-round {
          &::before {
            display: none;
          }

          &::after {
            left: 50%;
          }
        }

        .btn-text {
          transform: none;

          &::after {
            transform: none;
          }
        }
      }
    }

    .top-section__card {
      width: 100%;
      margin-inline: auto;
    }
  }
}

@media (max-width: 560px) {
  .single-service {
    .top-section {
      padding: 35px 16px 0;
    }
  }
}
