.page-template-home {
  main {
    position: relative;
    overflow: hidden;
  }

  .home__btn-contact {
    background-color: var(--white-primary);
    position: fixed;
    top: 128px;
    right: 47px;
    padding: 10px 24px;
    border: 1px solid var(--blue-gray);
    border-radius: 60px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: var(--dark-100);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms, background-color 300ms, color 300ms;
    overflow: hidden;
    text-decoration: none;

    &.visible {
      opacity: 1;
      pointer-events: all;
    }

    & .btn-text {
      font-size: 18px;
    }

    &::before {
      content: url(../../../images/icons/envelope-icon.svg);
      height: 30px;
      filter: none;
      transition: filter 300ms;
    }

    &:hover {
      background-color: var(--green-primary);
      border-color: var(--white-primary);
      color: var(--white-primary);

      &::before {
        filter: grayscale(1) brightness(3);
      }

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

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

    @media (max-width: 1024px) {
      display: none;
    }
  }

  .top-section {
    background-color: var(--white-primary);
    padding: 130px 128px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .top-section__info-container {
    display: flex;
    gap: 128px;
    justify-content: space-between;
    z-index: 1;
    max-width: 1440px;
    width: 100%;
  }

  .top-section__info {
    width: 60%;
  }

  .top-section__info-descrition {
    color: var(--dark-80);

    h1 {
      white-space: nowrap;
      font-family: "Poppins", serif;
      font-weight: 600;
      font-size: 59px;
      letter-spacing: 0.04em;
      line-height: 1.3;
    }

    p {
      font-family: "Inter", sans-serif;
      font-weight: 500;
      font-size: 24px;
      line-height: 1.3;
      position: relative;

      &::before {
        content: "";
        height: 2px;
        width: 170px;
        background-color: var(--green-primary);
        position: absolute;
        bottom: calc(100% + 32px);
        left: 0;
      }
    }
  }

  .top-section__btn {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 32px 0 0 30px;
    transition: opacity 300ms;

    a {
      width: 96px;
      height: 96px;
      background-color: var(--green-primary);
      border: none;
      border-radius: 180px;
      cursor: pointer;
      color: var(--white-primary);
      position: absolute;
      transition: width 300ms, height 300ms;

      &::before,
      &::after {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 300ms;
      }

      &::before {
        content: url(../../../images/icons/envelope-icon.svg);
        filter: grayscale(1) brightness(3);
        opacity: 1;
      }

      &::after {
        content: "Contact us";
        font-family: "Inter", sans-serif;
        font-weight: 400;
        font-size: 16px;
        white-space: nowrap;
        opacity: 0;
      }
    }

    &:hover {
      a {
        padding: 16px 32px;
        width: 158px;
        height: 53px;
        border-radius: 50px;

        &::after {
          opacity: 1;
        }

        &::before {
          opacity: 0;
        }
      }

      .pulse-animation {
        .pulse-animation__1,
        .pulse-animation__2 {
          visibility: hidden;
          transition: visibility 0ms;
          animation: none;
        }
      }
    }
  }

  .top-section__btn.hidden {
    opacity: 0;
  }

  .pulse-animation {
    .pulse-animation__1,
    .pulse-animation__2 {
      visibility: visible;
      transition: visibility 0ms 300ms;
    }
  }

  @media (max-width: 1280px) {
    .top-section {
      padding: 112px 36px 0;
    }

    .top-section__info-container {
      gap: 0px;
    }

    .top-section__info-descrition {
      h1 {
        font-size: 48px;
      }

      p {
        font-size: 18px;
      }
    }
  }

  @media (max-width: 768px) {
    .top-section {
      padding: 56px 48px 64px;
    }

    .top-section__info {
      width: 100%;
    }

    .top-section__info-descrition {
      h1 {
        font-size: 34px;
      }

      p {
        font-size: 20px;
      }
    }

    .top-section__btn {
      margin-inline: auto;
      width: 158px;
      height: 53px;

      a {
        padding: 16px 32px;
        width: 100%;
        height: 100%;
        border-radius: 50px;

        &::after {
          opacity: 1;
        }

        &::before {
          opacity: 0;
        }
      }
    }
  }

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

  .our-services-section {
    margin-top: 72px;
    padding-inline: 128px;
    display: flex;
    justify-content: center;
    gap: 64px;

    img {
      object-fit: contain;
      width: 40%;
      max-width: 480px;
    }
  }

  .our-services-section__info {
    padding-block: 32px;
    max-width: 640px;

    h2 {
      font-family: "Poppins", serif;
      font-weight: 600;
      font-size: 38px;
      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;
      }
    }

    .btn-default {
      margin: 54px auto 0 0;
    }
  }

  @media (max-width: 1280px) {
    .our-services-section {
      padding: 64px 48px;
    }
  }

  @media (max-width: 768px) {
    .our-services-section {
      margin-top: 32px;
      flex-direction: column;
      padding: 56px 48px;
      gap: 32px;

      img {
        width: 100%;
        max-width: none;
      }
    }

    .our-services-section__info {
      display: flex;
      flex-direction: column;
      padding: 0;

      h2 {
        font-size: 32px;
      }

      p {
        font-size: 16px;
      }

      .btn-default {
        margin: 54px auto 0;
        padding-inline: 40px;
      }
    }
  }

  @media (max-width: 560px) {
    .our-services-section {
      padding: 16px;
    }
  }

  .industries-section {
    margin-top: 72px;
    padding-inline: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;

    .btn-default {
      margin: 32px auto 0;
    }
  }

  .industries-section__container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 360px));
    justify-content: center;
    gap: 32px;
    max-width: 1180px;
  }

  .industries-section__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: span 2;
    box-shadow: 0px 12px 100px 0px #c7c7c740;
    border-radius: 8px;
    padding: 40px 48px 62px;

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

    p {
      margin-top: 18px;
      font-family: "Inter", sans-serif;
      font-weight: 400;
      font-size: 18px;
      line-height: 25.2px;
      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;
      }
    }
  }

  .industries-section__industry {
    display: none;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    padding: 24px 40px;
    box-shadow: 0px 12px 100px 0px #c7c7c740;
    border: 1px solid #fff;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    transition: border 300ms;
    cursor: pointer;
    text-decoration: none;
    max-width: 360px;

    p {
      font-weight: 400;
      font-size: 16px;
      color: var(--dark-80);
      line-height: 24px;
      display: -webkit-box;
      line-clamp: 3;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .btn-borderless {
      margin-left: auto;
    }
  }

  .industries-section__industry-title {
    display: flex;
    align-items: center;
    gap: 16px;
    word-break: break-word;

    .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;
      flex-shrink: 0;
      flex-grow: 0;

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

    h3 {
      display: inline;
      font-weight: 600;
      font-size: 20px;
      color: var(--dark-100);
    }
  }

  .industries-section__industry:hover {
    border: 1px solid var(--blue-gray);

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

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

    .btn-borderless {
      &::after {
        filter: none;
      }

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

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

    .btn-round {
      border-color: var(--green-primary);
      background-color: var(--green-primary);

      &::before {
        filter: invert(1) brightness(2);
        left: 50%;
      }

      &::after {
        filter: invert(1) brightness(2);
        left: 125%;
      }
    }
  }

  .industries-section__industry.visible {
    display: flex;
  }

  .industries-section__industry:nth-child(-n + 5) {
    display: flex;
  }

  @media (max-width: 1280px) {
    .industries-section__container {
      gap: 20px;
    }

    .industries-section__info {
      padding: 20px 24px 48px;

      h2 {
        font-size: 36px;
      }
    }

    .industries-section__industry {
      padding: 24px 16px;
    }
  }

  @media (max-width: 768px) {
    .industries-section {
      margin-top: 32px;

      .btn-default {
        margin-top: 16px;
      }
    }

    .industries-section__container {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }

    .industries-section__industry {
      max-width: none;
    }

    .industries-section__industry:hover {
      .img-wrapper {
        border-color: var(--blue-gray);
        background-color: inherit;

        img {
          filter: none;
        }
      }
    }

    .industries-section__info {
      padding: 40px 16px 65px;
      grid-column: span 1;

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

  @media (max-width: 560px) {
    .industries-section {
      padding: 0;
    }
  }

  .projects-section {
    margin-top: 72px;

    h2 {
      text-align: center;
      font-family: "Poppins", serif;
      font-weight: 600;
      font-size: 38px;
      color: var(--dark-80);

      &::after {
        display: none;
      }
    }

    > p {
      margin-top: 24px;
      font-family: "Inter", sans-serif;
      color: var(--dark-50);
      text-align: center;
      font-weight: 400;
      font-size: 16px;
      position: relative;

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

  .projects-section__cards-container {
    margin-top: 74px;
  }

  @media (max-width: 768px) {
    .projects-section {
      margin-top: 48px;

      h2 {
        font-size: 32px;
      }
    }

    .projects-section__cards-container {
      margin-top: 56px;
    }
  }

  @media (max-width: 560px) {
    .projects-section {
      margin-top: 32px;
    }
  }

  /* .solution-services-section {
    margin-top: 64px;
    padding-inline: 128px;
  }

  .solution-services-section__info {
    width: calc(50% - 32px);

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

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

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

  .solution-services-section__solutions {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    font-family: "Inter", sans-serif;
  }

  .solution__element {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--dark-50);
    text-decoration: none;
    padding: 24px 10px;

    h3 {
      font-weight: 500;
      font-size: 32px;
      color: var(--dark-80);
      transition: padding-left 300ms;
    }

    button {
      border: none;
      background-color: transparent;
      width: 40px;
      height: 40px;
      transition: transform 300ms;
      cursor: pointer;

      &::after {
        content: url(../../../images/icons/solution-arrow-icon.svg);
        width: 40px;
        height: 40px;
        display: block;
      }
    }

    &:hover {
      border-color: var(--green-primary);

      h3 {
        color: var(--dark-100);
        padding-left: 20px;
      }

      button {
        transform: rotate(45deg);

        &::after {
          content: url(../../../images/icons/solution-arrow-icon-green.svg);
        }
      }
    }
  }

  @media (max-width: 1280px) {
    .solution-services-section {
      padding-inline: 48px;
    }

    .solution-services-section__info {
      width: 50%;
    }

    .solution-services-section__solutions {
      column-gap: 32px;
    }

    .solution__element {
      padding: 18px 10px;

      h3 {
        font-size: 24px;
      }
    }
  }

  @media (max-width: 768px) {
    .solution-services-section {
      margin-top: 64px;
      padding-inline: 48px;
    }

    .solution-services-section__info {
      width: 100%;

      h2 {
        font-size: 32px;
      }
    }

    .solution-services-section__solutions {
      margin-top: 24px;
      grid-template-columns: 1fr;
    }

    .solution__element {
      h3 {
        font-size: 20px;
      }
    }
  }

  @media (max-width: 560px) {
    .solution-services-section {
      padding-inline: 16px;
    }
  }

  .open-positions-section {
    display: flex;
    flex-direction: column;
    margin-top: 64px;
    padding-inline: 128px;

    .open-positions-section__info {
      width: calc(50% - 32px);

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

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

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

    .selection {
      font-family: "Inter", sans-serif;

      h3 {
        margin-top: 72px;
        font-weight: 600;
        font-size: 24px;
        color: var(--dark-50);
        text-align: center;
      }

      .selection__steps {
        margin-top: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;

        .step {
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: 10px;
          padding: 10px;

          .step__number {
            font-weight: 400;
            font-size: 16px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #cbd5e133;
            border-radius: 50%;
            aspect-ratio: 1;
            text-align: center;
          }

          p {
            font-weight: 500;
            color: var(--dark-50);
          }
        }

        .selection__line {
          display: block;
          width: 64px;
          height: 1px;
          background-color: var(--dark-50);
        }
      }
    }

    .open-positions {
      margin-top: 48px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;

      .open-positions__position {
        text-decoration: none;
        padding: 32px 48px;
        border-radius: 2px;
        box-shadow: 0px 13px 100px 0px #c7c7c740;
        cursor: pointer;

        .open-positions__position-title {
          display: flex;
          justify-content: space-between;
          padding-bottom: 16px;
          border-bottom: 1px solid var(--blue-gray);
          transition: border-color 300ms;
          color: var(--dark-100);

          h3 {
            font-family: "Poppins", serif;
            font-weight: 600;
            font-size: 22px;
          }
        }

        &:hover {
          .open-positions__position-title {
            border-color: var(--green-primary);

            .btn-round {
              border-color: var(--green-primary);
              background-color: var(--green-primary);

              &::before {
                filter: invert(1) brightness(2);
                left: 50%;
              }

              &::after {
                filter: invert(1) brightness(2);
                left: 125%;
              }
            }
          }
        }
      }
    }

    .open-positions-section__btn-container {
      margin-top: 48px;
      display: flex;
      gap: 64px;
      justify-content: center;
    }

    .btn-default {
      margin: 32px auto 0 auto;
    }
  } */

  .why-choose-us-section {
    margin-top: 72px;
    padding-inline: 135px;
    display: flex;
    gap: 130px;
    align-items: center;
    justify-content: center;
  }

  .why-choose-us-section__info {
    width: calc(50% - 32px);
    max-width: 470px;

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

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

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

    .btn-default {
      margin-top: 54px;
    }
  }

  .why-choose-us-section__images {
    display: flex;
    gap: 30px;

    div {
      display: flex;
      flex-direction: column;
      gap: 30px;
      width: 270px;
    }

    img {
      width: 270px;
      object-fit: contain;
    }
  }

  @media (max-width: 1280px) {
    .why-choose-us-section {
      padding-inline: 48px;
      gap: 48px;
    }

    .why-choose-us-section__images {
      gap: 16px;

      div {
        width: 200px;
        gap: 16px;
      }

      img {
        width: 200px;
      }
    }
  }

  @media (max-width: 768px) {
    .why-choose-us-section {
      margin-top: 64px;
      flex-direction: column;
      gap: 32px;
      padding-inline: 48px;
    }

    .why-choose-us-section__images {
      gap: 16px;

      div {
        width: 50%;
        gap: 16px;

        img {
          width: 100%;
          object-fit: contain;
        }
      }

      img {
        width: 48%;
        object-fit: contain;
      }
    }

    .why-choose-us-section__info {
      display: flex;
      flex-direction: column;
      width: 100%;

      h2 {
        font-size: 32px;
      }

      p {
        margin-top: 18px;
      }

      .btn-default {
        margin: 72px auto 0;
      }
    }
  }

  @media (max-width: 560px) {
    .why-choose-us-section {
      padding-inline: 16px;
    }

    .why-choose-us-section__info {
      .btn-default {
        margin: 56px auto 0;
      }
    }
  }

  .testimonials-section {
    padding-top: 64px;
    margin-top: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;

    .btn-default {
      margin: 32px auto 0 auto;
    }
  }

  .testimonials-section__info {
    z-index: 1;
  }

  .testimonials-section__container {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 0;
    z-index: 1;
  }

  .testimonial {
    .testimonial__body {
      display: -webkit-box;
      line-clamp: 5;
      -webkit-line-clamp: 5;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;

      ul,
      ol {
        margin: 0;
      }
    }
  }

  @media (max-width: 1024px) {
    .testimonials-section__container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 768px) {
    .testimonials-section {
      margin-top: 64px;
      padding-top: 56px;

      .btn-default {
        margin-top: 48px;
      }
    }

    .testimonials-section__container {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 560px) {
    .testimonials-section {
      padding-top: 40px;

      .btn-default {
        margin-top: 16px;
      }
    }
  }

  .blog-section {
    margin-top: 8px;
    display: flex;
    flex-direction: column;

    > h1 {
      &::after {
        background-color: var(--green-primary);
      }
    }

    .btn-default {
      margin: 32px auto 0 auto;
    }
  }

  @media (max-width: 768px) {
    .blog-section {
      .btn-default {
        margin-top: 48px;
      }
    }
  }

  @media (max-width: 560px) {
    .blog-section {
      .btn-default {
        margin-top: 16px;
      }
    }
  }

  .contact-section {
    padding: 64px 128px;
    display: flex;
    justify-content: center;
    gap: 64px;
    position: relative;
    overflow: hidden;

    .questions-form {
      margin: 0;
      width: 72%;
      background-color: transparent;
      padding: 0;
      max-width: 520px;

      form {
        grid-template-columns: 1fr;
      }

      .form-field {
        border-bottom: 1px solid var(--dark-80);

        label {
          color: #000000b2;
        }

        input,
        textarea {
          color: var(--dark-100);
        }

        &:hover {
          border-color: #00af4c;

          input,
          textarea {
            + label {
              color: var(--dark-100);
            }
          }
        }

        &:has(input:focus, textarea:focus) {
          border-color: #00af4c;
        }
      }

      .captcha {
        margin-top: 16px;
      }

      .form-bottom {
        grid-column: span 1;
      }

      .form-file {
        label {
          color: var(--dark-50);
        }
      }

      .form-file__delete-btn {
        &::after {
          filter: none;
        }
      }

      .form-privacy {
        p,
        label {
          color: var(--dark-50);
        }
      }
    }

    .questions-form.hidden {
      display: none;
    }
  }

  .questions-form__success {
    .questions-form__title {
      display: flex;
      flex-direction: column;
      gap: 16px;

      h1, h2 {
        width: 100%;
      }
    }

    p {
      width: 100%;
    }
  }

  .contact-section__info {
    display: flex;
    flex-direction: column;
    z-index: 1;
    max-width: 600px;

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

    p {
      margin-top: 32px;
      font-family: "Inter", sans-serif;
      font-weight: 400;
      font-size: 18px;
      line-height: 32px;
      color: var(--dark-80);
    }

    img {
      object-fit: contain;
      margin-top: 64px;
      height: 285px;
    }
  }

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

    .contact-section__info {
      h1,h2 {
        font-size: 36px;
      }

      p {
        margin-top: 16px;
        font-size: 16px;
      }

      img {
        margin-top: 64px;
        height: 285px;
      }
    }
  }

  @media (max-width: 1024px) {
    .contact-section {
      gap: 32px;
    }

    .contact-section__info {
      img {
        margin-top: 64px;
        height: 220px;
      }
    }
  }

  @media (max-width: 768px) {
    .contact-section {
      flex-direction: column;
      align-items: center;
      padding: 56px 48px;
      gap: 32px;

      .questions-form {
        width: 100%;

        .btn-default {
          margin: 8px auto 0;
        }
      }
    }

    .contact-section__info {
      display: flex;
      flex-direction: column;

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

      p {
        line-height: 19.2px;
      }

      img {
        margin: 32px auto 0;
        height: 280px;
      }
    }
  }

  @media (max-width: 560px) {
    .contact-section {
      padding: 32px 16px;
    }

    .contact-section__info {
      img {
        margin: 16px auto 0;
        height: 222px;
      }
    }
  }
}
