/* Страница стоимости SEO (page-templates/page-pricing.php).
   Перенесено 1:1 из прототипа zlatamikhaylova03-lab/prots → pricing/pricing-local.css,
   грузится после global.css и general-page.css. */

/* Воздух после первого экрана — как padding-top у philosophy (120px) */
.prots-page-shell {
  width: 100%;
  margin: 0 auto;
  padding-top: var(--padding, 120px);
  /* Не из прототипа: до 900px декор калькулятора и #factors стоит на right: -10px и даёт
     горизонтальный скролл страницы на 10px (видно на 651–900px). clip, а не hidden — sticky цены работает. */
  overflow-x: clip;
}

.prots-page-content {
  min-width: 0;
}

.prots-page-content > .section.dop {
  padding-top: var(--padding, 120px);
  padding-bottom: var(--padding, 120px);
}

/* Калькулятор — второй экран сразу после hero, светлый фон */
.prots-page-content > .prots-calc-section:first-child {
  margin-top: 0;
  margin-bottom: 40px;
  padding-top: 0;
  padding-bottom: var(--padding, 120px);
  border-radius: 0;
}

/* Тарифы — фон на всю ширину (тема .dop ограничивает 1440px) */
#tariffs.dop.on-main-page {
  max-width: none;
  width: 100%;
  background: var(--light-purple, #f4f0f7);
  border-radius: var(--section-border-radius, 50px);
  margin-bottom: 40px;
  box-sizing: border-box;
}

#tariffs .prots-tariff-outro {
  background: #fff;
}

.prots-page-content .container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

.prots-anchor {
  height: 0;
  scroll-margin-top: 120px;
}

#tariffs,
#value,
#factors,
#included,
#calculator,
#cases,
#geo-proof,
#final {
  scroll-margin-top: 110px;
}

/* Факторы цены — start-list как на B2B, 5-й пункт на всю ширину (стиль 3-го, оранжевый) */
.prots-page-content #factors.start {
  padding-top: 48px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  overflow: visible;
}

.prots-page-content #factors .start__container {
  overflow: visible;
}

.prots-page-content #factors .start__title {
  max-width: 62% !important;
  padding-top: 40px;
  position: relative;
  z-index: 1;
}

.prots-page-content #factors .start__text {
  max-width: 62%;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.prots-page-content #factors .start-bg-image {
  top: 24px;
  right: 0;
  z-index: 0;
  pointer-events: none;
  width: min(368px, 34%);
  height: auto;
  max-width: 368px;
}

.prots-factors-list {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.prots-factors-list .start-list__item:nth-child(5) .start-list__item-number span {
  background-color: var(--orange, #ff6914);
}

.prots-factors-list__item--wide {
  grid-column: 1 / -1;
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 16px 40px;
  align-items: start;
  padding-top: 50px;
}

.prots-factors-list__item--wide .start-list__name {
  margin: 0;
}

.prots-factors-list__item--wide .start-list__text {
  padding-top: 0;
  max-width: 720px;
}

@media (max-width: 900px) {
  .prots-page-content #factors .start__title,
  .prots-page-content #factors .start__text {
    max-width: 100% !important;
  }

  .prots-page-content #factors .start-bg-image {
    width: 220px;
    right: -10px;
  }

  .prots-factors-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .prots-factors-list .start-list__item:nth-child(2),
  .prots-factors-list .start-list__item:nth-child(4) {
    margin-top: 0;
  }
}

@media (max-width: 650px) {
  .prots-page-content #factors .start-bg-image {
    display: none;
  }

  .prots-factors-list {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  .prots-factors-list__item--wide {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .prots-factors-list__item--wide .start-list__text {
    padding-top: 10px;
  }
}

/* Блок «Что получает бизнес» — как .reasons на главной */
.prots-page-content #value.reasons {
  margin-top: 0;
  margin-bottom: 40px;
  background: var(--black, #2e2544);
  border-radius: var(--section-border-radius, 50px);
  overflow: hidden;
}

/* Что входит / оплачивается отдельно — светлый фон как у #factors */
.prots-included {
  background: #fff;
  padding-top: 48px;
  padding-bottom: var(--padding, 120px);
  margin-bottom: 40px;
}

.prots-included__title {
  margin: 0;
  max-width: 920px;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: var(--font-size-title, clamp(28px, 4vw, 48px));
  line-height: 1.1;
  color: var(--black, #2e2544);
}

.prots-included__lead {
  max-width: 760px;
  margin: 20px 0 48px;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-included__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.prots-included__col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px 32px;
  border-radius: var(--cart-border-radius, 20px);
  background: var(--light-purple, #f4f0f7);
  box-sizing: border-box;
  overflow: hidden;
  z-index: 0;
}

.prots-included__col--in .prots-included__head,
.prots-included__col--in .prots-included__list,
.prots-included__col--in .prots-included__note {
  position: relative;
  z-index: 1;
}

.prots-included__decor {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: min(280px, 70%);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.prots-included__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prots-included__mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.prots-included__mark--in {
  background: var(--green, #8af735);
  color: var(--black, #2e2544);
}

.prots-included__col-title {
  margin: 0;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  line-height: 1.2;
  color: var(--black, #2e2544);
}

.prots-included__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prots-included__list li {
  position: relative;
  padding-left: 28px;
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.05rem);
  line-height: 1.35;
  color: var(--black, #2e2544);
}

.prots-included__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-purple, #694eb5);
}

.prots-included__note {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(46, 37, 68, 0.12);
  color: var(--black-70, rgba(46, 37, 68, 0.7));
  font-size: 14px;
}

.prots-included__extras {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prots-included__extra-title {
  margin: 0 0 8px;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--black, #2e2544);
}

.prots-included__extra .text {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--black-70, rgba(46, 37, 68, 0.75));
}

.prots-included__col--out {
  background: var(--dark-purple, #694eb5);
  border: none;
  color: #fff;
}

.prots-included__col--out .prots-included__col-title {
  color: #fff;
}

.prots-included__mark--out {
  background: var(--orange, #ff6914);
  color: #fff;
}

.prots-included__extra {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.prots-included__col--out .prots-included__extra-title {
  color: #fff;
}

.prots-included__col--out .prots-included__extra .text {
  color: rgba(255, 255, 255, 0.82);
}

.prots-included__geo {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
  padding: 32px;
  border-radius: var(--cart-border-radius, 20px);
  background: var(--green, #8af735);
  color: var(--black, #2e2544);
}

.prots-included__geo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.prots-included__geo-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--black, #2e2544);
  color: #fff;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.prots-included__geo-title {
  margin: 0;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.4rem);
  line-height: 1.2;
  color: var(--black, #2e2544);
}

.prots-included__geo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.prots-included__geo-part {
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(46, 37, 68, 0.08);
}

.prots-included__geo-part-title {
  margin: 0 0 8px;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--black, #2e2544);
}

.prots-included__geo-part .text {
  margin: 0;
  color: var(--black, #2e2544);
  opacity: 0.85;
  font-size: 14px;
  line-height: 1.4;
}

.prots-included__footer {
  margin: 28px 0 0;
  max-width: 720px;
  font-weight: 600;
  color: var(--black, #2e2544);
}

@media (max-width: 900px) {
  .prots-included__grid {
    grid-template-columns: 1fr;
  }

  .prots-included__geo-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .prots-included {
    padding-top: 32px;
    padding-bottom: 60px;
  }

  .prots-included__col {
    padding: 28px 22px 24px;
  }

  .prots-included__decor {
    width: 180px;
    right: -30px;
    bottom: -40px;
    opacity: 0.7;
  }

  .prots-included__geo {
    padding: 22px;
  }
}

.prots-page-content #value .reasons__title_right {
  display: block;
}

.prots-page-content #value .reasons__text.text {
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 400;
  font-size: clamp(1rem, 0.273rem + 1.14vw, 1.125rem);
  line-height: 1.3;
  color: var(--light-purple, #f4f0f7);
  opacity: 0.85;
  max-width: 800px;
}

.prots-page-content #value .reasons-list__btn {
  text-decoration: none;
}

.prots-page-content #value .reasons-list__btn:hover {
  text-decoration: underline;
  color: var(--orange, #ff6914);
}

.prots-value-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 30px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(46, 37, 68, 0.1);
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--black, #2e2544);
}

.prots-value-num--light {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.prots-page-content #value .reasons-list__item_white .reasons-list__title,
.prots-page-content #value .reasons-list__item_green .reasons-list__title {
  margin-top: 0;
}

.prots-page-content #value .item-big-white__title {
  margin-top: 0;
}

.prots-value-purpur-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.prots-value-purpur-head .item-purpur__tag {
  margin: 0;
}

.prots-value-purpur-head .item-purpur__number {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.prots-value-purpur-head .item-purpur__text {
  margin: 0;
  max-width: 260px;
}

/* Слайдер тарифов — как на /uslugi/s-oplatoj-za-rezultat */
.prots-tariffs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.prots-tariffs-head__text {
  min-width: 0;
  flex: 1;
}

.prots-tariffs-head .dop__price {
  margin-bottom: 20px;
}

.prots-tariffs-nav {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.prots-tariffs-nav .btn-prev,
.prots-tariffs-nav .btn-next {
  border: none;
  padding: 0;
}

.prots-tariffs-slider {
  margin-top: 40px;
  overflow: hidden;
}

.prots-tariffs-slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.prots-tariffs-slider .list-card__item {
  height: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .prots-tariffs-head {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .prots-tariffs-nav {
    align-self: flex-end;
    margin-bottom: 0;
  }

  .prots-tariffs-slider {
    margin-top: 24px;
  }
}

/* Тарифы */
.on-main-page#tariffs .list-card__item_bg,
.prots-page-content .on-main-page .list-card__item_bg {
  background: url("../image/front/decor.png") no-repeat top right;
  background-position: top 0 right 25px;
  background-size: clamp(5rem, 3.636rem + 6.82vw, 8.75rem);
  background-color: var(--dark-purple, #694eb5);
}

.prots-page-content .on-main-page .list-card__item_bg--geo {
  background-image: url("../image/geo/glassy-decor.png");
  background-position: top 10px right 10px;
  background-size: clamp(6rem, 4rem + 8vw, 10rem);
}

.list-card__item .list-card__text {
  margin-top: 16px;
  color: var(--light-purple, #f4f0f7);
  opacity: 0.95;
}

.prots-tariff-outro {
  margin-top: 28px;
  padding: 28px 30px;
  background: var(--light-purple, #f4f0f7);
  border-radius: var(--cart-border-radius, 20px);
  box-sizing: border-box;
}

.prots-tariff-outro__text {
  margin: 0 0 20px;
  max-width: 820px;
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 400;
  font-size: clamp(0.813rem, 0.699rem + 0.57vw, 1.125rem);
  line-height: 1.35;
  color: var(--gray, #4c4658);
}

.prots-tariff-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 0;
}

.prots-tariff-actions .btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding-left: 24px;
  padding-right: 24px;
  color: #fff !important;
}

.dop .prots-tariff-actions a.btn,
.dop .prots-tariff-actions a.btn:hover {
  color: #fff !important;
}

.prots-tariff-actions .btn-with-arrow {
  padding-right: calc(50px + 10px + 5px);
  padding-left: 10px;
}

.prots-tariff-outro__link {
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 600;
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  line-height: 1.3;
  color: var(--black, #2e2544);
  text-decoration: none;
  white-space: nowrap;
}

.prots-tariff-outro__link:hover {
  color: var(--purple, #8860dc);
}

.previe__btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.previe__btn .btn {
  max-width: none;
  width: auto;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: 60px;
  padding-left: 24px;
  padding-right: 24px;
}

.previe__btn .btn-with-arrow {
  padding-right: calc(50px + 10px + 5px);
  padding-left: 10px;
}

/* Не из прототипа: первый экран не помещался в экран ноутбука — подзаголовок и пункты на ступень
   мельче (на десктопе 16px вместо 18px, на телефоне ~13px вместо 13.3px; line-height в теме относительный). */
.previe__text {
  font-size: clamp(0.8125rem, 0.62rem + 0.6vw, 1rem);
}

/* В global.css размер пунктов и ссылок в них задан с !important — перебиваем так же (файл грузится позже). */
.previe-list__item,
.previe-list__item a {
  font-size: clamp(0.8125rem, 0.62rem + 0.6vw, 1rem) !important;
}

/* Не из прототипа: на 770–1025px картинка первого экрана стоит absolute в правом нижнем углу
   (general-page.css: 352px, right 13px) и наезжала на пункты списка (видно на 770–945px).
   Список заканчивается левее картинки; на 1024+ он и так уже (max-width 540px). */
@media (min-width: 770px) and (max-width: 1025px) {
  .previe-list {
    max-width: min(540px, calc(100% - 380px));
  }
}

@media (max-width: 768px) {
  .previe__btn,
  .prots-tariff-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .previe__btn .btn,
  .prots-tariff-actions .btn {
    width: 100%;
    max-width: 350px;
  }

  .prots-page-shell {
    padding-top: 60px;
  }

  .prots-page-content .container {
    padding: 0 20px;
  }
}

/* Калькулятор — светлый блок */
.prots-calc-section {
  position: relative;
  background: #fff;
  color: var(--black, #2e2544);
  border-radius: 0;
  margin: 0 0 40px;
  padding: var(--padding, 120px) 0;
  overflow: visible;
}

.prots-calc-section__container {
  position: relative;
  z-index: 1;
}

.prots-calc-section__decor {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 34%);
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.prots-calc-section__title {
  margin: 0;
  max-width: 62%;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: var(--font-size-title, clamp(28px, 4vw, 48px));
  line-height: 1.1;
  color: var(--black, #2e2544);
  position: relative;
  z-index: 1;
}

.prots-calc-section__lead {
  max-width: 62%;
  margin: 20px 0 0;
  color: var(--gray, #4c4658);
  position: relative;
  z-index: 1;
}

.prots-calc {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 40px;
  align-items: start;
}

.prots-calc__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.prots-calc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prots-calc__field--full {
  grid-column: 1 / -1;
}

.prots-calc__field[hidden] {
  display: none;
}

.prots-calc__field label {
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--black, #2e2544);
}

.prots-calc__field input,
.prots-calc__field select {
  min-height: 56px;
  width: 100%;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--font-family, "Inter", sans-serif);
  font-size: 15px;
  line-height: 1.3;
  background: var(--light-purple, #f4f0f7);
  color: var(--black, #2e2544);
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.prots-calc__field select {
  padding-right: 48px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%232e2544' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.prots-calc__field input:focus,
.prots-calc__field select:focus {
  border-color: var(--orange, #ff6914);
  box-shadow: 0 0 0 2px rgba(255, 105, 20, 0.25);
}

.prots-calc__result {
  background: var(--light-purple, #f4f0f7);
  color: var(--black, #2e2544);
  border-radius: var(--cart-border-radius, 20px);
  padding: 32px 28px;
  height: max-content;
  position: sticky;
  /* Не из прототипа (там top: 24px): шапка сайта fixed — top 5px + 70px, и панель уходила под неё.
     Липнем на 20px ниже шапки. Липкость — только шире 900px, высота шапки там постоянная. */
  top: 95px;
  box-sizing: border-box;
}

/* С админ-баром шапка стоит на top: 45px (global.css). */
body.admin-bar .prots-calc__result {
  top: 135px;
}

.prots-calc__result-label {
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-calc__price {
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 6px;
  line-height: 1.15;
  color: var(--black, #2e2544);
}

.prots-calc__price--dual {
  font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.35rem);
}

.prots-calc__period {
  font-size: 14px;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-calc__note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--gray, #4c4658);
  margin: 18px 0 0;
}

.prots-calc__warning {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 105, 20, 0.12);
  color: var(--black, #2e2544);
  font-size: 13px;
  line-height: 1.4;
}

.prots-calc__warning[hidden] {
  display: none;
}

.prots-calc__geo-hint {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-calc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(46, 37, 68, 0.12);
}

.prots-calc-cta__text {
  margin: 0;
  max-width: 560px;
  color: var(--gray, #4c4658);
}

.prots-calc-cta .btn {
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

@media (max-width: 900px) {
  .prots-calc-section {
    padding: 60px 0;
  }

  .prots-calc-section__title,
  .prots-calc-section__lead {
    max-width: 100%;
  }

  .prots-calc-section__decor {
    width: 180px;
    top: 0;
    right: -10px;
    opacity: 0.7;
  }

  .prots-calc {
    grid-template-columns: 1fr;
  }

  .prots-calc__result {
    position: static;
  }

  .prots-calc__form {
    grid-template-columns: 1fr;
  }

  .prots-calc-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .prots-calc-cta .btn {
    width: 100%;
    max-width: 420px;
  }
}

/* Реальные сметы и результаты */
.prots-cases {
  background: #fff;
  padding: var(--padding, 120px) 0 60px;
  margin-bottom: 0;
}

.prots-cases__title {
  margin: 0;
  max-width: 920px;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: var(--font-size-title, clamp(28px, 4vw, 48px));
  line-height: 1.1;
  color: var(--black, #2e2544);
}

.prots-cases__lead {
  max-width: 820px;
  margin: 20px 0 48px;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-cases__item {
  padding: 36px;
  border-radius: var(--cart-border-radius, 20px);
  background: var(--light-purple, #f4f0f7);
  margin-bottom: 24px;
}

.prots-cases__item--accent {
  background: #fff;
  border: 1.5px solid rgba(46, 37, 68, 0.1);
}

.prots-cases__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--dark-purple, #694eb5);
  color: #fff;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.prots-cases__badge--orange {
  background: var(--orange, #ff6914);
}

.prots-cases__badge--dark {
  background: var(--black, #2e2544);
}

.prots-cases__item-title {
  margin: 14px 0 12px;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.2;
  color: var(--black, #2e2544);
  max-width: 900px;
}

.prots-cases__item-text {
  margin: 0 0 12px;
  max-width: 860px;
  color: var(--black-70, rgba(46, 37, 68, 0.75));
}

.prots-cases__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.prots-cases__highlight {
  padding: 20px 18px;
  border-radius: 16px;
  background: #fff;
}

.prots-cases__highlight-value {
  display: block;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.15;
  color: var(--black, #2e2544);
}

.prots-cases__highlight-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-cases__table-box {
  position: relative;
  margin-top: 24px;
}

.prots-cases__table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: #fff;
}

/* Не из прототипа: на узких экранах таблица листается вбок — над её правым углом палец
   «свайпает» влево-вправо. Класс is-scrollable ставит js/pricing-page.js, когда таблица шире
   обёртки; после первой прокрутки (is-scrolled) подсказка гаснет. */
.prots-cases__scroll-hint {
  display: none;
  position: absolute;
  right: 6px;
  bottom: calc(100% + 6px);
  width: 56px;
  height: 30px;
  color: var(--dark-purple, #694eb5);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.prots-cases__scroll-hint::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.25;
}

.prots-cases__scroll-hand {
  position: absolute;
  top: 0;
  left: 16px;
  width: 24px;
  height: 24px;
  animation: prots-cases-swipe 1.8s ease-in-out infinite;
}

.prots-cases__table-box.is-scrollable {
  margin-top: 48px; /* место под подсказку */
}

.prots-cases__table-box.is-scrollable .prots-cases__scroll-hint {
  display: block;
}

.prots-cases__table-box.is-scrolled .prots-cases__scroll-hint {
  opacity: 0;
}

@keyframes prots-cases-swipe {
  0%,
  100% {
    transform: translateX(12px) rotate(10deg);
  }

  50% {
    transform: translateX(-12px) rotate(-10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prots-cases__scroll-hand {
    animation: none;
  }
}

.prots-cases__item--accent .prots-cases__table-wrap {
  background: var(--light-purple, #f4f0f7);
}

.prots-cases__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14px;
  line-height: 1.35;
}

.prots-cases__table th,
.prots-cases__table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(46, 37, 68, 0.08);
  color: var(--black, #2e2544);
  vertical-align: top;
}

/* Не из прототипа: колонки с суммами («Месяц 1…», «Итого») — без переноса и по ширине
   содержимого (width: 1% сжимает колонку до него); остаток ширины забирает «Позиция». */
.prots-cases__table th:not(:first-child),
.prots-cases__table td:not(:first-child) {
  white-space: nowrap;
  width: 1%;
}

/* Не из прототипа (там шапка и «Итого» почти сливались с белым фоном): шапка тёмная,
   «Итого» фирменный фиолетовый, текст белый. Фон — на строке (tr, ниже в блоке про плагин),
   а не на ячейках: так между ячейками нет светлых швов. */
.prots-cases__table thead th {
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border-bottom: none;
}

.prots-cases__table tfoot th {
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  background: none;
  border-bottom: none;
  color: #fff;
}

.prots-cases__table-group td {
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dark-purple, #694eb5);
  background: rgba(105, 78, 181, 0.06);
  border-bottom-color: transparent;
  padding-top: 14px;
  padding-bottom: 8px;
}

/* Плагин «Result Table» (result-table) печатает в <head> стили для всех table: рамки, фон строк,
   оранжевая шапка, а до 600px — строки-карточки без thead. В прототипе этого плагина нет:
   таблицы смет остаются обычными таблицами с горизонтальным скроллом в .prots-cases__table-wrap. */
.prots-cases__table {
  border: 0;
  table-layout: auto;
  margin: 0; /* без нижнего отступа style.css (0 0 1.5em) — таблица вплотную к низу обёртки */
}

.prots-cases__table tr,
.prots-cases__table thead tr {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.prots-cases__table thead tr {
  background: var(--black, #2e2544);
}

.prots-cases__table tfoot tr {
  background: var(--dark-purple, #694eb5);
}

@media screen and (max-width: 600px) {
  .prots-cases__table thead {
    display: table-header-group;
  }

  .prots-cases__table tr {
    display: table-row;
    margin-bottom: 0;
    border-radius: 0;
  }

  .prots-cases__table td {
    display: table-cell;
  }

  .prots-cases__table td::before {
    content: none;
  }

  .prots-cases__table td:last-child {
    border-bottom: 1px solid rgba(46, 37, 68, 0.08);
  }
}

.prots-cases__outcome {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 24px;
}

.prots-cases__stat-label {
  display: block;
  font-size: 13px;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-cases__stat-value {
  display: block;
  margin-top: 4px;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--black, #2e2544);
}

.prots-cases__outcome-note {
  margin: 12px 0 0;
  font-size: 14px;
}

.prots-cases__figure {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

.prots-cases__img-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 200px;
  padding: 12px;
  background: #fff;
  cursor: zoom-in;
  text-decoration: none;
  box-sizing: border-box;
}

.prots-cases__img-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background 0.2s;
  pointer-events: none;
}

.prots-cases__img-link:hover::after {
  background: rgba(46, 37, 68, 0.28);
}

.prots-cases__img-link::before {
  content: "⌕";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #2e2544;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(46, 37, 68, 0.2);
}

.prots-cases__img-link:hover::before {
  opacity: 1;
}

.prots-cases__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.prots-cases__figure figcaption {
  flex-shrink: 0;
  padding: 10px 14px 12px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--black-70, rgba(46, 37, 68, 0.7));
  background: rgba(46, 37, 68, 0.04);
  min-height: 3.2em;
}

.prots-cases__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  align-items: stretch;
}

.prots-cases__outro {
  margin-top: 20px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--cart-border-radius, 20px);
  box-sizing: border-box;
}

.prots-cases__outro-text {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 500;
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem);
  line-height: 1.4;
  color: var(--black, #2e2544);
}

/* lightbox как на /uslugi/geo-llm */
.geo-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.geo-lightbox.is-open {
  display: flex;
}

.geo-lightbox img {
  max-width: min(1100px, 100%);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* GEO-подтверждение: intro + кейсы как на geo-llm */
.our-cases.prots-geo-proof {
  background: var(--light-purple, #f4f0f7);
  border-radius: var(--section-border-radius, 50px);
  padding: 80px 0 var(--padding, 120px);
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.prots-geo-proof .section__title {
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: var(--font-size-title, clamp(28px, 4vw, 48px));
  line-height: 1.1;
  color: var(--black, #2e2544);
  margin: 0 0 clamp(1.25rem, 0.366rem + 3.14vw, 1.875rem);
  max-width: 920px;
  position: relative;
  z-index: 1;
  opacity: 1;
}

.prots-geo-proof .section__title span {
  color: var(--black-70, rgba(46, 37, 68, 0.7));
}

.prots-geo-proof .cexample-case__content {
  max-width: 820px;
  margin: 0 0 40px;
  position: relative;
  z-index: 1;
}

.prots-geo-proof .cexample-case__content p {
  margin: 0;
  color: var(--gray, #4c4658);
  font-family: var(--font-family, "Inter", sans-serif);
  font-size: clamp(0.813rem, 0.699rem + 0.57vw, 1.125rem);
  line-height: 1.3;
}

.prots-geo-proof__stats.list-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.prots-geo-proof__stats .list-numbers__item {
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 24px 22px;
  background: var(--white, #fff);
  background-image: none;
  border: 1px solid #e4e0ec;
  border-radius: var(--cart-border-radius, 20px);
  box-sizing: border-box;
}

.prots-geo-proof__stats .list-numbers__item-number {
  display: block;
  width: 100%;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 0.85rem + 1.2vw, 1.875rem);
  letter-spacing: -0.04em;
  color: var(--black, #2e2544);
  line-height: 1.05;
  white-space: nowrap;
}

.prots-geo-proof__stats .list-numbers__item-text {
  display: block;
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 600;
  font-size: var(--fz-medium, 1.125rem);
  line-height: 1.3;
  color: var(--black, #2e2544);
  text-align: left;
}

.prots-geo-proof__cases.case-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 0;
  grid-template-columns: none;
}

.prots-geo-proof__cases .case {
  margin-bottom: 0;
  width: 100%;
  background: var(--white, #fff);
  border-radius: var(--cart-border-radius, 20px);
  padding: 30px;
  box-sizing: border-box;
}

.prots-geo-proof__cases .case__image {
  border-radius: 20px;
  overflow: hidden;
  height: 440px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.prots-geo-proof__cases .case__header .btn {
  width: auto;
  min-width: 0;
  max-width: max-content;
  height: 50px;
  padding: 14px 20px;
  flex-shrink: 0;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}

.prots-geo-proof__cases .case__title {
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: clamp(1rem, 0.111rem + 1.85vw, 1.5rem);
  line-height: 1.2;
  color: var(--black, #2e2544);
  max-width: 540px;
  width: 100%;
  margin: 0;
}

.prots-geo-proof__cases .case__body > a:not(.btn) {
  text-decoration: none;
  color: inherit;
  flex: 1;
  height: fit-content;
}

.prots-geo-proof__cases .link-site {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding-left: 48px;
  font-family: var(--font-family, "Inter", sans-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--black, #2e2544);
  max-width: max-content;
  background: none;
  border-radius: 0;
}

.prots-geo-proof__cases .link-site::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  top: 0;
  left: 0;
  background: url("../image/link-site.svg") no-repeat center center;
  background-size: cover;
}

.prots-geo-proof .btn-all-cases {
  margin-top: 40px;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .prots-cases {
    padding: 60px 0;
  }

  .prots-cases__item {
    padding: 24px 20px;
  }

  .prots-cases__highlights,
  .prots-cases__gallery,
  .prots-cases__outcome {
    grid-template-columns: 1fr;
  }

  .our-cases.prots-geo-proof {
    padding: 60px 0;
    border-radius: 40px;
  }

  .prots-geo-proof__stats.list-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prots-geo-proof__cases .case__image {
    height: 240px;
  }
}

@media (max-width: 550px) {
  .prots-geo-proof__stats.list-numbers {
    grid-template-columns: 1fr;
  }
}

/* Контроль результата — 3 карточки в стиле блока «Гарантии» */
.prots-control.garant {
  padding-top: var(--padding, 120px);
  padding-bottom: var(--padding, 120px);
}

.prots-control .dop__info {
  display: block;
  max-width: 820px;
  color: var(--gray, #4c4658);
  font-family: var(--font-family, "Inter", sans-serif);
  font-size: clamp(0.813rem, 0.699rem + 0.57vw, 1.125rem);
  line-height: 1.3;
}

.prots-control__grid.garant__gird {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(3.125rem, 2.898rem + 1.14vw, 3.75rem) 20px;
}

.prots-control__card-title {
  margin: 0 0 12px;
  font-family: var(--second-family, "Unbounded", sans-serif);
  font-weight: 700;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.25rem);
  line-height: 1.2;
  color: var(--black, #2e2544);
}

.prots-control .garant__text {
  margin: 0;
  color: var(--gray, #4c4658);
  font-family: var(--font-family, "Inter", sans-serif);
  line-height: 1.35;
}

.prots-control .garant__icon {
  display: block;
  width: 26px;
  height: 26px;
}

.prots-control__note {
  margin: 32px 0 0;
  max-width: 920px;
  color: var(--gray, #4c4658);
  font-family: var(--font-family, "Inter", sans-serif);
  font-size: clamp(0.813rem, 0.699rem + 0.57vw, 1.125rem);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .prots-control.garant {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .prots-control__grid.garant__gird {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
}

/* Блок консультации перед футером — как на страницах услуг */
.prots-page-content .tender {
  margin-top: 0;
  margin-bottom: -50px;
  border-radius: var(--section-border-radius, 50px) var(--section-border-radius, 50px) 0 0;
  position: relative;
  z-index: 0;
}

.prots-page-content .tender__title {
  max-width: 100%;
}

.prots-page-content .tender__bg {
  padding-bottom: clamp(3.75rem, 2.5rem + 3vw, 5rem);
}
