.page-template-services,
.page-template-industries {
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .top-section {
    padding: 80px 128px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .top-section__info-container {
    display: flex;
    gap: 128px;
    z-index: 1;
    max-width: 1184px;
  }

  .top-section__info-title {
    display: flex;
    gap: 24px;
    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);
    }
  }

  .top-section__info-descrition {
    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__image {
    object-fit: contain;
    height: 300px;
  }

  .services-section {
    margin-block: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
    gap: 44px 24px;
    padding-inline: 128px;
    max-width: 1440px;
    position: relative;
  }

  .service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    font-family: "Inter", sans-serif;

    &:hover {
      .img-wrapper {
        border-color: var(--green-primary);
        background-color: var(--green-primary);

        img {
          filter: grayscale(1) brightness(3);
        }
      }

      h2 {
        border-color: var(--green-primary);
      }
    }
  }

  .service__item-title {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;

    h2 {
      width: 100%;
      font-weight: 600;
      font-size: 24px;
      line-height: 24px;
      color: var(--dark-100);
      padding-block: 12px;
      border-bottom: 1px solid var(--blue-gray);
      transition: border-color 300ms;
    }
  }

  .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;
    transition: background-color 300ms;

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

  .service__item-description {
    margin: 12px 0 0 60px;
    font-size: 14px;
    line-height: 19.6px;
    color: var(--dark-80);
  }

  .tech-section {
    display: flex;
    justify-content: center;
    padding-inline: 65px;
    position: relative;
    overflow: hidden;
    width: 100%;

    img {
      z-index: 1;
      width: 55%;
      max-width: 671px;
    }
  }

  .tech-section__info-container {
    max-width: 1184px;
    display: flex;
    gap: 78px;
    align-items: center;
  }

  .tech-section__info {
    z-index: 1;
    padding-block: 32px;

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

    p {
      margin-top: 18px;
      font-family: "Inter", sans-serif;
      font-weight: 400;
      font-size: 16px;
      line-height: 22.4px;
      color: var(--dark-50);
      position: relative;

      &::after {
        content: "";
        width: 64px;
        height: 1px;
        background-color: var(--green-primary);
        position: absolute;
        top: calc(100% + 24px);
        left: 0;
      }
    }
  }
}

@media (max-width: 1280px) {
  .page-template-services,
  .page-template-industries {
    .top-section {
      padding: 56px 48px;
    }

    .top-section__info-container {
      gap: 64px;
      align-items: center;
    }

    .services-section {
      padding-inline: 48px;
    }
  }
}

@media (max-width: 768px) {
  .page-template-services,
  .page-template-industries {
    .top-section {
      padding: 56px 48px 32px;
    }

    .top-section__info-container {
      flex-direction: column-reverse;
      gap: 32px;
    }

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

    .top-section__image {
      width: 100%;
      height: 200px;
    }

    .services-section {
      margin-top: 32px;
      grid-template-columns: 1fr;
      padding-inline: 48px;
      gap: 32px;
    }

    .service {
      &:hover {
        .img-wrapper {
          border-color: var(--blue-gray);
          background-color: transparent;

          img {
            filter: none;
          }
        }

        h2 {
          border-color: var(--blue-gray);
        }
      }
    }

    .service__item-description {
      margin: 12px 0 0 0;
    }

    .tech-section {
      flex-direction: column;
      gap: 16px;
      padding-inline: 48px;

      img {
        width: 95vw;
      }
    }

    .tech-section__info {
      padding-top: 0;

      h2 {
        font-size: 32px;
        line-height: 32px;
      }
    }
  }
}

@media (max-width: 560px) {
  .page-template-services,
  .page-template-industries {
    .top-section {
      padding: 35px 16px 24px;
    }

    .services-section {
      padding-inline: 16px;
    }

    .tech-section {
      padding-inline: 16px;
    }
  }
}
