/* Презентация сервиса (/presentation).
   Отдельный файл, а не часть bundle.css: страница одна, маркетинговая, меняется чаще
   продукта — так её правки не заставляют пересобирать бандл. Подключается <link>-ом
   только на своём роуте (index.tpl); базовые компоненты (.container, .button, .eyebrow,
   шрифт, фон) наследуются от .main-page. */

.presentation-page {
  --pres-gap: clamp(18px, 2.4vw, 30px);
}

/* Ленты-слайды. scroll-snap намеренно НЕ используем: на телефоне он даёт рывки,
   а дек и без него читается как обычная лента. */
.presentation-page .pres-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: 96px 0 72px;
}

.presentation-page .pres-slide > .container {
  position: relative; /* поверх декоративных кругов первого экрана */
  z-index: 1;
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

@media (max-width: 900px) {
  .presentation-page .pres-slide {
    min-height: 0;
    padding: 64px 0 48px;
  }
}

/* Чередование фона: чуть плотнее — «акцентный» экран. */
.presentation-page .pres-slide--tint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.07), rgba(124, 58, 237, 0.02));
  z-index: -1;
}

/* --- Шапка: прогресс чтения + постоянный CTA --- */
.presentation-page .pres-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(250, 248, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.presentation-page .pres-bar__brand {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.presentation-page .pres-bar__brand span {
  color: var(--purple);
}

.presentation-page .pres-bar .button {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.94rem;
}

.presentation-page .pres-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 61;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--purple-soft), var(--purple-deep));
  transition: width 120ms linear;
}

/* Точки-навигация. Только на широких экранах: на телефоне это лишний шум. */
.presentation-page .pres-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.presentation-page .pres-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.24);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.presentation-page .pres-dots button:hover {
  background: rgba(109, 40, 217, 0.5);
}

.presentation-page .pres-dots button[aria-current="true"] {
  background: var(--purple-deep);
  transform: scale(1.55);
}

@media (max-width: 1180px) {
  .presentation-page .pres-dots {
    display: none;
  }
}

/* --- Типографика дека --- */
.presentation-page .pres-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.presentation-page .pres-title--hero {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  max-width: 16em;
}

.presentation-page .pres-accent {
  background: linear-gradient(120deg, var(--purple), #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.presentation-page .pres-lead {
  max-width: 42em;
  font-size: clamp(1.04rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
}

.presentation-page .pres-kicker {
  margin-top: 26px;
  font-size: 1.02rem;
  font-weight: 600;
}

/* --- Сетки карточек --- */
.presentation-page .pres-grid {
  display: grid;
  gap: var(--pres-gap);
  margin-top: 40px;
}

.presentation-page .pres-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.presentation-page .pres-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.presentation-page .pres-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .presentation-page .pres-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .presentation-page .pres-grid--2,
  .presentation-page .pres-grid--3,
  .presentation-page .pres-grid--4 { grid-template-columns: 1fr; }
}

.presentation-page .pres-card {
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: 0 18px 46px rgba(67, 37, 117, 0.07);
}

.presentation-page .pres-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.presentation-page .pres-card p {
  color: var(--muted);
  line-height: 1.55;
}

.presentation-page .pres-card:not(.pres-pain) {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.presentation-page .pres-card:not(.pres-pain):hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(67, 37, 117, 0.12);
}

/* --- Боль: карточки «до» в приглушённой гамме --- */
.presentation-page .pres-pain {
  border-color: rgba(24, 19, 38, 0.09);
  background: #fbfaff;
  box-shadow: none;
}

.presentation-page .pres-pain h3 {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: #47405c;
}

.presentation-page .pres-pain h3::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbc4dd;
  transform: translateY(-2px);
}

/* --- Путь клиента: нумерованные шаги --- */
.presentation-page .pres-steps {
  counter-reset: pres-step;
  display: grid;
  gap: 14px;
  margin-top: 40px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .presentation-page .pres-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .presentation-page .pres-steps { grid-template-columns: 1fr; }
}

.presentation-page .pres-step {
  position: relative;
  padding: 24px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

.presentation-page .pres-step::before {
  counter-increment: pres-step;
  content: counter(pres-step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--purple-deep);
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
}

.presentation-page .pres-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.04rem;
}

.presentation-page .pres-step span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* --- Панель расчёта --- */
.presentation-page .pres-calc {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.presentation-page .pres-calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}

.presentation-page .pres-calc__row span {
  color: var(--muted);
}

.presentation-page .pres-calc__row b {
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
}

.presentation-page .pres-calc__row--total {
  border-bottom: 0;
  background: rgba(124, 58, 237, 0.07);
}

.presentation-page .pres-calc__row--total span {
  color: var(--text);
  font-weight: 600;
}

.presentation-page .pres-calc__row--total b {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--purple-deep);
}

.presentation-page .pres-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Цифры --- */
.presentation-page .pres-stats {
  display: grid;
  gap: var(--pres-gap);
  margin-top: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

@media (max-width: 820px) {
  .presentation-page .pres-stats { grid-template-columns: 1fr; }
}

.presentation-page .pres-stat b {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--purple-deep);
}

.presentation-page .pres-stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

/* --- Отзыв --- */
.presentation-page .pres-quote {
  margin-top: 40px;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(67, 37, 117, 0.07);
}

.presentation-page .pres-quote p {
  font-size: clamp(1.06rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}

.presentation-page .pres-quote footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* --- Тарифы --- */
.presentation-page .pres-plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
}

.presentation-page .pres-plan--featured {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 22px 60px rgba(109, 40, 217, 0.14);
}

.presentation-page .pres-plan h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 700;
}

.presentation-page .pres-plan__price {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.presentation-page .pres-plan__price small {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}

.presentation-page .pres-plan ul {
  display: grid;
  gap: 9px;
  margin: 4px 0 auto;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.presentation-page .pres-plan li {
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.presentation-page .pres-plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--purple-soft);
}

.presentation-page .pres-plan .button {
  margin-top: 20px;
}

/* --- Финальный экран --- */
.presentation-page .pres-final {
  text-align: center;
}

.presentation-page .pres-final .pres-lead {
  margin: 0 auto;
}

.presentation-page .pres-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.presentation-page .pres-final .pres-actions {
  justify-content: center;
}

/* --- Подсказка «листайте» --- */
.presentation-page .pres-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.presentation-page .pres-hint svg {
  width: 15px;
  height: 15px;
  animation: pres-bob 1.9s ease-in-out infinite;
}

@keyframes pres-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 900px) {
  .presentation-page .pres-hint { display: none; }
}

/* Появление блоков. По умолчанию всё ВИДНО: анимацию включает скрипт, добавляя
   .pres-anim на корень. Если JS не отработал — текст на месте, а не пустой экран. */
.presentation-page.pres-anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.presentation-page.pres-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .presentation-page.pres-anim .reveal,
  .presentation-page .pres-hint svg {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
