/* =========================================
   SERVICES ADVICE
========================================= */

.services-advice {
  position: relative;

  width: 100%;

  margin-top: 70px;

  background: radial-gradient(
      circle at 85% 50%,
      rgba(78, 159, 112, 0.16),
      transparent 28%
    ),
    #0b2745;

  overflow: hidden;
}

/* =========================================
     CONTAINER
  ========================================= */

.services-advice-container {
  position: relative;
  z-index: 2;

  width: min(1380px, calc(100% - 80px));
  min-height: 330px;

  margin: 0 auto;
  padding: 55px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 80px;
}

/* =========================================
     CONTENT
  ========================================= */

.services-advice-content {
  max-width: 720px;
  min-width: 0;
}

.services-advice-label {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 18px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: #4e9f70;
}

.services-advice h2 {
  margin: 0 0 14px;

  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 400;

  color: #ffffff;
}

.services-advice p {
  max-width: 570px;

  margin: 0;

  font-size: 14px;
  line-height: 1.65;

  color: rgba(255, 255, 255, 0.68);
}

/* =========================================
     BUTTON
  ========================================= */

.services-advice-button {
  position: relative;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  flex-shrink: 0;

  width: 245px;
  min-height: 58px;

  padding: 0 20px 0 24px;

  background: #4e9f70;
  color: #ffffff;

  text-decoration: none;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;

  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.services-advice-button:hover {
  background: #ffffff;
  color: #0b2745;

  transform: translateY(-3px);
}

.services-advice-button > span:first-child {
  white-space: nowrap;
}

/* =========================================
     CHEVRON
  ========================================= */

.services-advice-chevron {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 32px;
  height: 32px;

  border: 1px solid rgba(255, 255, 255, 0.35);

  transition: border-color 0.3s ease, transform 0.3s ease;
}

.services-advice-chevron::after {
  content: "";

  width: 7px;
  height: 7px;

  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;

  transform: rotate(45deg);
}

.services-advice-button:hover .services-advice-chevron {
  border-color: rgba(11, 39, 69, 0.25);

  transform: translateX(3px);
}

/* =========================================
     DECORATION
  ========================================= */

.services-advice-decoration {
  position: absolute;
  z-index: 1;

  width: 520px;
  height: 520px;

  right: 110px;
  top: 50%;

  transform: translateY(-50%) rotate(45deg);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.015),
    0 0 0 160px rgba(255, 255, 255, 0.01);

  pointer-events: none;
}

/* =========================================
     TABLET
  ========================================= */

@media (max-width: 1050px) {
  .services-advice-container {
    gap: 50px;
  }

  .services-advice-button {
    width: 225px;
  }
}

/* =========================================
     MOBILE
  ========================================= */

@media (max-width: 700px) {
  .services-advice {
    margin-top: 50px;
  }

  .services-advice-container {
    width: calc(100%);

    min-height: auto;

    padding: 30px 20px 30px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 30px;
  }

  .services-advice-content {
    max-width: 100%;
  }

  .services-advice-label {
    margin-bottom: 16px;

    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .services-advice-label::before {
    width: 22px;
  }

  .services-advice h2 {
    font-size: 36px;
    line-height: 1;
  }

  .services-advice p {
    max-width: 100%;

    font-size: 14px;
    line-height: 1.6;
  }

  .services-advice-button {
    width: 100%;
    min-width: 0;

    min-height: 58px;
  }

  .services-advice-button > span:first-child {
    white-space: normal;
  }

  .services-advice-decoration {
    width: 260px;
    height: 260px;

    right: -170px;
    top: 72%;

    transform: translateY(-50%) rotate(45deg);

    opacity: 0.8;
  }
}

/* =========================================
     SMALL MOBILE
  ========================================= */

@media (max-width: 400px) {
  .services-advice-container {
    width: calc(100%);
  }

  .services-advice h2 {
    font-size: 32px;
  }

  .services-advice-decoration {
    right: -190px;
  }
}

/* =========================================
     REDUCED MOTION
  ========================================= */

@media (prefers-reduced-motion: reduce) {
  .services-advice-button,
  .services-advice-chevron {
    transition: none;
  }
}
