/* Прайс /price — фон и ритм как у карьеры / блога Serenity */

html:has(.sa-price-root):not(:has(.blog-article-page-top)) {
  min-height: 100%;
  position: relative;
  z-index: 0;
  background-color: #121212;
}

html:has(.sa-price-root):not(:has(.blog-article-page-top))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      ellipse 44vw min(105vh, 920px) at 100% 100%,
      rgba(140, 95, 210, 0.48) 0%,
      rgba(78, 52, 118, 0.32) 34%,
      rgba(28, 24, 36, 0.14) 58%,
      transparent 72%
    ),
    linear-gradient(
      to left,
      rgba(72, 48, 108, 0.34) 0%,
      rgba(22, 20, 30, 0.06) 26%,
      rgba(18, 18, 22, 0) min(38vw, 40%)
    );
  background-repeat: no-repeat;
}

@media screen and (max-width: 1100px) {
  html:has(.sa-price-root):not(:has(.blog-article-page-top))::before {
    background-image:
      radial-gradient(
        ellipse 52vw min(100vh, 880px) at 100% 100%,
        rgba(130, 90, 200, 0.42) 0%,
        rgba(72, 48, 110, 0.28) 36%,
        rgba(28, 24, 36, 0.12) 56%,
        transparent 74%
      ),
      linear-gradient(
        to left,
        rgba(68, 46, 102, 0.3) 0%,
        rgba(22, 20, 30, 0.05) 24%,
        rgba(18, 18, 22, 0) min(44vw, 46%)
      );
  }
}

@media screen and (max-width: 600px) {
  html:has(.sa-price-root):not(:has(.blog-article-page-top))::before {
    background-image:
      radial-gradient(
        ellipse 58vw min(96vh, 820px) at 100% 100%,
        rgba(120, 82, 185, 0.38) 0%,
        rgba(65, 44, 98, 0.26) 38%,
        transparent 76%
      ),
      linear-gradient(
        to left,
        rgba(62, 42, 95, 0.28) 0%,
        rgba(18, 18, 22, 0) min(48vw, 52%)
      );
  }
}

.sa-price-page {
  background: transparent !important;
  color: #fff;
  min-height: 100svh;
  position: relative;
  z-index: 1;
}

.sa-price-page .sa-price-root,
.sa-price-page .case-all-root,
.sa-price-page footer.footer-modern {
  background: transparent !important;
}

/* На карточках свои CTA — плавающую пилюлю не показываем. */
.sa-price-page #body.body-application {
  display: none !important;
}

.sa-price-root {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.sa-price-main {
  flex: 1 1 auto;
  padding: clamp(188px, calc(16vh + 72px), 248px) var(--page-gutter-x, 78px) 40px;
  box-sizing: border-box;
}

.sa-price-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: clamp(48px, 6vh, 80px);
  max-width: 46rem;
}

.sa-price-hero__title {
  margin: 0;
  font-family: HeroNewMedium, "Hero New", Arial, sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.26;
  color: #fff;
}

.sa-price-hero__lead {
  margin: 0;
  font-family: MuseoSansCyrl, "Museo Sans", Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: #bcbcbc;
}

.sa-price-loading,
.sa-price-error {
  margin: 0;
  color: #777;
  font-size: 16px;
}

.sa-price-error a {
  color: #9cc9ff;
  text-decoration: none;
}

.sa-price-error a:hover {
  text-decoration: underline;
}

.sa-price-category {
  margin: 0 0 clamp(40px, 5vh, 64px);
}

.sa-price-category:last-child {
  margin-bottom: 0;
}

.sa-price-category__title {
  margin: 0 0 20px;
  font-family: HeroNewMedium, "Hero New", Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.sa-price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sa-price-card {
  background: rgba(28, 28, 31, 0.72);
  border-radius: 24px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 24px;
  align-items: center;
  backdrop-filter: blur(8px);
}

.sa-price-card__body {
  min-width: 0;
}

@media screen and (max-width: 1100px) {
  .sa-price-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sa-price-card__cta {
    justify-self: start;
  }
}

.sa-price-card__title {
  margin: 0 0 10px;
  font-family: HeroNewMedium, "Hero New", Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
}

.sa-price-card__title-link {
  color: inherit;
  text-decoration: none;
}

.sa-price-card__title-link:hover,
.sa-price-card__title-link:focus-visible {
  text-decoration: underline;
}

.sa-price-card__amount {
  margin: 0;
  font-family: HeroNewMedium, "Hero New", Arial, sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.sa-price-card__unit {
  margin-left: 0.35em;
  font-family: HeroNewRegular, "Hero New", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #bcbcbc;
}

.sa-price-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 51px;
  padding: 14px 25px;
  border: 1px solid #fff;
  border-radius: 30px;
  background-color: #fff;
  box-shadow: 0 0 0 1px #fff;
  color: #151516;
  text-decoration: none;
  font-family: MuseoSansCyrl, "Museo Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  align-self: center;
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
  transition: transform 0.35s ease, box-shadow 0.5s ease;
}

.sa-price-card__cta:visited,
.sa-price-card__cta:hover,
.sa-price-card__cta:focus-visible {
  background-color: #fff;
  color: #151516;
  text-decoration: none;
}

@media screen and (min-width: 1201px) and (hover: hover) {
  .sa-price-card__cta:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 1px #fff, 0 10px 56px rgba(97, 0, 255, 0.58);
  }
}

@media screen and (max-width: 900px) {
  .sa-price-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sa-price-card {
    padding: 22px 20px;
  }
}
