.hero {
  padding: 0;
}

.hero__inner {
  --hero-purple: #a04bff;
  --hero-teal: #22c7bb;
  --hero-white: #ffffff;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 52px;

  margin: 0 -40px;
  padding: 66px 70px;
  overflow: hidden;

  color: var(--hero-white);
  border-radius: 50px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22) 0 12%, transparent 34%),
    linear-gradient(124.88deg, #a04bff -2.46%, #22c7bb 130.01%), #a04bff;
}

.hero__inner::before {
  content: '';
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  z-index: -1;
}

.hero__right {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 22px;
  padding: 10px 18px;

  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;

  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.hero__header {
  max-width: 680px;
  margin: 0 0 26px;

  font-size: 51px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero__subheader {
  display: inline-block;
  max-width: 640px;
  margin: 0;
  padding: 18px 24px;

  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;

  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.hero__content {
  margin-top: 30px;
}

.hero__content-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
}

.hero__content p {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  min-height: 84px;
  margin: 0;
  padding: 18px;

  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;

  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
}

.hero__content p span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  color: var(--hero-purple);
  background: #ffffff;

  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.hero__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.hero__footer .button--white {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  min-height: 58px;
  padding: 15px 40px !important;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;

  color: var(--hero-purple);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(67, 21, 130, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero__footer .button--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(67, 21, 130, 0.28);
}

.hero__note {
  max-width: 300px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.hero__image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image::before {
  content: '';
  position: absolute;
  inset: 26px -18px -26px 18px;
  z-index: -1;

  border-radius: 42px;
  background: rgba(255, 255, 255, 0.14);
}

.hero__image img {
  display: block;
  width: 100%;
  height: clamp(480px, 52vw, 660px);

  object-fit: cover;
  object-position: center;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 70px rgba(42, 14, 89, 0.3);
}

@media screen and (max-width: 1180px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 36px;
    padding: 52px;
  }

  .hero__header {
    font-size: 44px;
  }

  .hero__content-item {
    grid-template-columns: 1fr;
  }

  .hero__content p {
    min-height: auto;
  }
}

@media screen and (max-width: 767px) {
  .hero {
    margin: 0 10px;
    overflow: hidden;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 18px 18px 30px;
    gap: 26px;
    border-radius: 30px;
  }

  .hero__image {
    order: -1;
  }

  .hero__image::before {
    inset: 18px -10px -16px 10px;
    border-radius: 28px;
  }

  .hero__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
  }

  .hero__eyebrow {
    margin-bottom: 16px;
    padding: 8px 14px;
    font-size: 14px;
  }

  .hero__header {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .hero__subheader {
    max-width: none;
    padding: 15px 16px;
    font-size: 16px;
    line-height: 1.45;
    border-radius: 20px;
  }

  .hero__meta {
    margin-top: 20px;
    gap: 8px;
  }

  .hero__meta-item {
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
  }

  .hero__content {
    margin-top: 22px;
  }

  .hero__content-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero__content p {
    gap: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 400;
    border-radius: 18px;
  }

  .hero__content p span {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .hero__footer {
    margin-top: 24px;
    gap: 12px;
  }

  .hero__footer .button--white {
    width: 100%;
    min-height: 54px;
    padding: 15px 22px !important;
  }

  .hero__note {
    max-width: none;
    font-size: 12px;
    text-align: center;
  }
}

.hero__author {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  padding: 18px;
  background: var(--color-accent-alt);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero__author-name {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
}

.hero__author-text {
  font-size: 19px;
}

@media screen and (max-width: 767px) {
  .hero {
    margin: 0 -15px;
  }
  .hero__image {
  }
  .hero__author {
    bottom: 0;
  }
  .hero__author-name {
    font-size: 20px;
    bottom: -15px;
  }
  .hero__author-text {
    font-size: 16px;
  }
}

.author-rating-stars {
  font-size: 22px;
  line-height: 1em;
  display: inline-block;
  letter-spacing: 1px;
  background: linear-gradient(
    to right,
    rgb(255, 169, 40) var(--percent),
    rgba(255, 169, 40, 0.2) var(--percent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.author-rating-number {
  font-size: 20px;
  line-height: 1;
  font-weight: bold;
  color: var(--color-accent);
}

.service__detail .section--form {
  padding: 0 !important;
}

.service__detail .block-form {
  --offset-form: 23px;
}

.service__detail .block-form--reverse .form {
  transform: translateY(-50%) !important;
  margin-inline: auto !important;
  left: 0 !important;
  right: 0 !important;
}

@media (max-width: 767px) {
  .service__detail .block-form--reverse .form {
    transform: translate(0, 0) !important;
  }
}

.service__detail .block-form__image-wrapper {
  padding: 0 !important;
}

.service__detail .block-form__image {
  display: none !important;
}

.service__detail-sticky {
  position: sticky;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service__detail-table-contents {
  position: relative !important;
  inset: unset !important;
  padding-bottom: 40px !important;
}

.service__detail-table-contents_more {
  position: absolute;
  bottom: 0;
  left: 0;
  cursor: pointer;
  display: flex;
  width: 100%;
  height: 30px;
  border-top: 1px solid var(--color-accent-alt);
  align-items: center;
  justify-content: center;
}

.service__detail-table-contents-item {
  display: none;
}
.service__detail-table-contents-item:nth-child(n + 1):nth-child(-n + 5) {
  display: block;
}

.service__detail-table-contents.open .service__detail-table-contents-item {
  display: block !important;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: rgba(149, 157, 165, 0.4) 0px 8px 24px;
}

.styled-table thead th {
  background: var(--color-accent);
  color: #fff;
}

.styled-table thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}
.styled-table thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.styled-table th,
.styled-table td {
  padding: 15px;
  text-align: left;
  background: var(--color-accent-alt);
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--color-accent);
}
.styled-table tbody tr:last-child {
  border-bottom: none;
}

.styled-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}
.styled-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}
