.service-detail-page {
  overflow-x: hidden;
}

.service-detail-top-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 120px 0;
  overflow-x: clip;
  background-image: url("../../img/serivce-detail-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.service-detail-top-hero .container {
  position: relative;
  z-index: 1;
}

.service-detail-top-hero__content {
  max-width: 700px;
}

.service-detail-top-hero__content[data-aos] {
  transform-origin: center bottom;
}

.service-detail-solution {
  overflow-x: clip;

  .service-detail-solution__media {
    position: relative;
    padding: clamp(14px, 2vw, 24px);
  }

  .service-detail-solution__shape {
    position: absolute;
    inset: 8px 8% 6px 0;
    border-radius: 44px;
    background:
      radial-gradient(
        circle at 10% 14%,
        rgba(15, 107, 77, 0.08) 0 2px,
        transparent 3px
      ),
      radial-gradient(
        circle at 17% 52%,
        rgba(15, 107, 77, 0.07) 0 2px,
        transparent 3px
      ),
      linear-gradient(135deg, rgba(15, 107, 77, 0.03), rgba(215, 241, 92, 0.03));
    background-size:
      18px 18px,
      24px 24px,
      auto;
    pointer-events: none;
  }

  .service-detail-solution__collage {
    position: relative;
    z-index: 1;
  }

  .service-detail-solution__image-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(38, 48, 56, 0.1);
  }

  .service-detail-solution__image-card--large {
    height: 250px;
  }

  .service-detail-solution__image-card--small {
    height: 200px;
  }

  .service-detail-solution__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .service-detail-solution__content {
    max-width: 560px;
  }

  .service-detail-solution__title {
    max-width: 540px;
  }

  .service-detail-solution__text {
    line-height: 1.75;
  }

  .service-detail-solution__list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
  }

  .service-detail-solution__item {
    gap: 12px;
    align-items: flex-start;
    color: var(--dark-blue-gray);
    font-size: var(--fs-base);
    line-height: 1.65;

    .bi {
      color: #60d940;
      font-size: 1.2rem;
      flex-shrink: 0;
      margin-top: 1px;
    }
  }

  .service-detail-solution__clients {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .service-detail-solution__avatars {
    display: flex;
    align-items: center;
  }

  .service-detail-solution__avatar {
    width: 48px;
    height: 48px;
    margin-left: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(38, 48, 56, 0.12);

    &:first-child {
      margin-left: 0;
    }

    &:nth-child(1) {
      background: linear-gradient(135deg, #0f6b4d, #163239);
    }

    &:nth-child(2) {
      background: linear-gradient(135deg, #d7f15c, #7ba21f);
      color: #163239;
    }

    &:nth-child(3) {
      background: linear-gradient(135deg, #5c8bf1, #27439a);
    }

    &:nth-child(4) {
      background: linear-gradient(135deg, #f1a45c, #c0611b);
    }
  }

  .service-detail-solution__clients-text {
    color: var(--medium-gray);
    font-size: var(--fs-base);

    strong {
      color: var(--darkest-blue-gray);
    }
  }

  .custom-icon-btn {
    width: fit-content;
    display: inline-flex;
  }

  @media (max-width: 991px) {
    .service-detail-solution__content {
      max-width: none;
    }
  }

  @media (max-width: 767px) {
    .service-detail-solution__shape {
      inset: 8px 6% 8px 0;
      border-radius: 28px;
    }

    .service-detail-solution__image-card--large {
      height: 185px;
    }

    .service-detail-solution__image-card--small {
      height: 140px;
    }

    .service-detail-solution__avatar {
      width: 42px;
      height: 42px;
      font-size: 0.72rem;
    }
  }
}

.service-detail-consult {
  overflow-x: clip;

  .service-detail-consult__content {
    max-width: 760px;
  }

  .service-detail-consult__lead-image,
  .service-detail-consult__support-image {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(38, 48, 56, 0.08);
  }

  .service-detail-consult__lead-image {
    height: 320px;
  }

  .service-detail-consult__support-image {
    height: 150px;
  }

  .service-detail-consult__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .service-detail-consult__title,
  .service-detail-consult__subtitle,
  .service-detail-consult__form-title {
    color: var(--darkest-blue-gray);
    font-family: "Satoshi", "Poppins", sans-serif;
    font-weight: 700;
  }

  .service-detail-consult__title {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  }

  .service-detail-consult__subtitle {
    margin: 0 0 14px;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.3;
  }

  .service-detail-consult__text {
    line-height: 1.8;
  }

  .service-detail-consult__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
  }

  .service-detail-consult__item {
    gap: 12px;
    align-items: flex-start;
    color: var(--dark-blue-gray);
    font-size: var(--fs-base);
    line-height: 1.65;

    .bi {
      color: #60d940;
      flex-shrink: 0;
      margin-top: 2px;
      font-size: 0.95rem;
    }
  }

  .service-detail-consult__aside {
    position: sticky;
    top: 92px;
    width: 100%;
    padding: 30px 24px;
    border: 1px solid rgba(15, 107, 77, 0.09);
    border-radius: 32px;
    background:
      radial-gradient(
        circle at top right,
        rgba(215, 241, 92, 0.14),
        transparent 28%
      ),
      linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
    box-shadow:
      0 22px 52px rgba(38, 48, 56, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .service-detail-consult__service-tags {
    display: grid;
    gap: 10px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(15, 107, 77, 0.08);
  }

  .service-detail-consult__tag {
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #f2f5f2;
    color: #62756c;
    font-size: 0.84rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(15, 107, 77, 0.05);
  }

  .service-detail-consult__tag--active {
    background: linear-gradient(135deg, #23a84d 0%, #35ba5f 100%);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(35, 168, 77, 0.18);
  }

  .service-detail-consult__form-title {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
  }

  .service-detail-consult__form-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #edf5ee;
    color: #0f6b4d;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .service-detail-consult__form-text {
    line-height: 1.75;
  }

  .service-detail-consult__form {
    display: grid;
    gap: 16px;

    .custom_form_field {
      display: block;
      margin: 0;
    }

    .custom_form_label {
      margin-bottom: 8px;
      color: #6b7f76;
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    .custom_form_input {
      min-height: 54px;
      border: 1px solid rgba(15, 107, 77, 0.1);
      border-radius: 16px;
      background: #ffffff;
      box-shadow: inset 0 1px 2px rgba(38, 48, 56, 0.02);
      transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

      &:focus {
        border-color: rgba(15, 107, 77, 0.28);
        box-shadow: 0 0 0 4px rgba(15, 107, 77, 0.08);
        background: #ffffff;
      }
    }
  }

  .service-detail-consult__select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #66767d 50%),
      linear-gradient(135deg, #66767d 50%, transparent 50%);
    background-position:
      calc(100% - 22px) calc(50% - 3px),
      calc(100% - 16px) calc(50% - 3px);
    background-size:
      6px 6px,
      6px 6px;
    background-repeat: no-repeat;
    padding-right: 48px;
  }

  .service-detail-consult__submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    min-height: 56px;
    padding-inline: 22px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  @media (max-width: 991px) {
    .service-detail-consult__aside {
      position: static;
      top: auto;
    }
  }

  @media (max-width: 767px) {
    .service-detail-consult__lead-image {
      height: 240px;
      border-radius: 22px;
    }

    .service-detail-consult__support-image {
      height: 130px;
      border-radius: 20px;
    }

    .service-detail-consult__aside {
      padding: 22px 18px;
      border-radius: 24px;
    }
  }
}

.service-detail-advantages {
  .service-detail-advantages__badge {
    border-color: rgba(15, 107, 77, 0.14);
    background: #ffffff;
    color: #0f6b4d;
    font-weight: 700;
  }

  .service-detail-advantages__title {
    max-width: 880px;

    span {
      color: #35ba5f;
    }
  }

  .service-detail-advantages__text {
    max-width: 860px;
    line-height: 1.75;
  }

  .service-detail-advantages__item {
    min-height: 58px;
    padding: 14px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f2f4f2 0%, #ecefed 100%);
    border: 1px solid rgba(15, 107, 77, 0.06);
    box-shadow: 0 10px 24px rgba(38, 48, 56, 0.05);
    justify-content: flex-start;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      border-color 0.25s ease;

    &:hover {
      transform: translateY(-2px);
      border-color: rgba(15, 107, 77, 0.12);
      box-shadow: 0 14px 28px rgba(38, 48, 56, 0.07);
    }

    span {
      color: var(--darkest-blue-gray);
      font-family: "Satoshi", "Poppins", sans-serif;
      font-size: clamp(1rem, 1.4vw, 1.15rem);
      font-weight: 700;
      line-height: 1.35;
    }
  }

  @media (max-width: 767px) {
    .service-detail-advantages__item {
      min-height: 54px;
      padding: 14px 18px;
      border-radius: 22px;
    }
  }
}

.service-detail-solutions {
  .service-detail-solutions__media {
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(38, 48, 56, 0.08);
  }

  .service-detail-solutions__image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
  }

  .service-detail-solutions__title {
    max-width: 620px;

    span {
      color: #35ba5f;
    }
  }

  .service-detail-solutions__text {
    max-width: 620px;
    line-height: 1.8;
  }

  .custom-icon-btn {
    width: fit-content;
    display: inline-flex;
  }

  @media (max-width: 767px) {
    .service-detail-solutions__media {
      border-radius: 22px;
    }

    .service-detail-solutions__image {
      min-height: 280px;
    }
  }
}

.service-detail-start {
  .contact-cta__panel {
    border-radius: 28px;
  }

  .section-intro-title {
    max-width: 620px;
  }

  .section-intro-text {
    max-width: 760px;
  }

  .service-detail-start__btn {
    width: fit-content;
    display: inline-flex;
    background: #ffffff;
    color: var(--darkest-blue-gray);
    box-shadow: 0 16px 32px rgba(12, 37, 27, 0.16);

    .icon-box {
      background: var(--dark-gray);
    }

    &:hover {
      background: #f4f8f5;
      color: var(--darkest-blue-gray);
    }
  }
}
