/* ===================== HEADER ===================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(251, 248, 244, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.header__logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.header__logo span { color: var(--accent); }
.header__cta { min-height: 40px; padding: 8px 20px; font-size: 15px; }

/* ===================== HERO / JOURNEY ===================== */
.hero { position: relative; }
.hero__sticky {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 132px 1fr;   /* строка подписей / оффер — не пересекаются */
  padding-top: 64px;
  overflow: hidden;
}
.journey {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.journey__guide { opacity: .22; }
.journey__route { stroke-dashoffset: 0; filter: drop-shadow(0 2px 7px rgba(226, 59, 46, .28)); }
.wp { fill: var(--accent); opacity: .22; transform-box: fill-box; transform-origin: center; transition: opacity .3s; }
.wp.is-active { opacity: 1; filter: drop-shadow(0 0 7px rgba(226, 59, 46, .65)); animation: wpPulse 1.8s var(--ease) infinite; }
@keyframes wpPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
.journey__parcel { offset-path: none; filter: drop-shadow(0 4px 10px rgba(40, 30, 20, .18)); }
@media (prefers-reduced-motion: reduce) { .wp.is-active { animation: none; } }

/* подписи-смыслы */
.hero__labels {
  position: relative;
  z-index: 2;
  padding-inline: 24px;
  pointer-events: none;
}
.jlabel {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(90%, 560px);
  text-align: center;
  font-size: clamp(18px, 3.4vw, 26px);
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
}

/* оффер поверх сцены */
.hero__offer {
  position: relative; z-index: 3;
  align-self: center;
  padding-bottom: clamp(24px, 5vh, 64px);
  text-align: center;
}
.hero__title {
  font-size: clamp(32px, 6.4vw, 60px);
  font-weight: 800;
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: var(--space-3);
}
.hero__sub {
  font-size: clamp(16px, 2.3vw, 20px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.hero__note { margin-top: var(--space-2); font-size: 15px; color: var(--ink-soft); }
.hero__hint {
  position: absolute; bottom: 14px; left: 0; right: 0;
  text-align: center; font-size: 14px; color: var(--ink-soft);
  z-index: 3; animation: bob 1.8s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* мобильная деградация: без pin, статичная сцена. H1+CTA сразу, подписи ниже */
.hero.is-static .hero__sticky {
  display: flex;
  flex-direction: column;
  min-height: auto;
  justify-content: flex-start;
  padding-top: 84px;
  padding-bottom: var(--space-5);
}
.hero.is-static .journey { opacity: .55; }     /* маршрут — мягкий фон под текстом */
.hero.is-static .hero__offer { order: 0; padding-top: 0; padding-bottom: 0; }
.hero.is-static .hero__hint { display: none; }
.hero.is-static .hero__labels {
  order: 2; position: static;
  display: grid; gap: var(--space-2);
  margin: var(--space-4) auto 0;
}
.hero.is-static .jlabel { position: static; transform: none; width: 100%; opacity: 1; margin: 0; }

/* ===================== TRUST ===================== */
.trust { padding-block: clamp(48px, 8vw, 90px); background: var(--surface); border-block: 1px solid var(--line); }
.trust__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, 1fr); }
.trust__item {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--e1);
  padding: clamp(22px, 3vw, 30px);
}
.trust__num {
  display: block;
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
}
.trust__label { color: var(--ink-soft); font-size: 16px; }
.trust__label b { color: var(--ink); }

/* ===================== FIT ===================== */
.fit__list { display: grid; gap: var(--space-3); max-width: 760px; margin-inline: auto; }
.fit__row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--r-card);
  padding: var(--space-3) var(--space-4);
  font-size: 18px;
  box-shadow: var(--e1);
}
.fit__ic { width: 26px; height: 26px; color: var(--accent-2); margin-top: 3px; }
.fit__row p { margin: 0; }

/* ===================== LEARN ===================== */
.learn__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, 1fr); }
.learn__pain { color: var(--ink-soft); }
.learn__gain {
  color: var(--ink); font-weight: 500;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

/* ===================== ACCORDION (программа + FAQ) ===================== */
.accordion { max-width: 820px; margin-inline: auto; display: grid; gap: var(--space-2); }
.acc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.acc__head {
  width: 100%;
  display: flex; align-items: center; gap: var(--space-2);
  text-align: left;
  background: none; border: none;
  padding: var(--space-3) var(--space-4);
  font-size: 18px; font-weight: 600; color: var(--ink);
  transition: background .2s var(--ease);
}
.acc__head:hover { background: var(--surface-2); }
.acc.is-open { box-shadow: var(--e2); }
.acc__num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #FBE7E5; color: var(--accent);
  border-radius: 9px; font-weight: 700; font-size: 15px;
}
.acc__q { flex: 1; }
.acc__icon { flex: 0 0 auto; transition: transform .3s var(--ease); color: var(--ink-soft); }
.acc.is-open .acc__icon { transform: rotate(45deg); color: var(--accent); }
.acc__body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.acc__inner { padding: 0 var(--space-4) var(--space-3); color: var(--ink-soft); }
.acc__lessons-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent-ink);
  margin-bottom: 14px;
}
.acc__lessons { list-style: none; display: grid; gap: 11px; margin-bottom: 18px; }
.acc__lessons li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 16px; line-height: 1.45; }
.acc__lessons .ic { width: 18px; height: 18px; color: var(--accent-2); margin-top: 3px; flex: 0 0 auto; }
.acc__result {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--tint-ok); border-radius: 12px;
  padding: 13px 15px; color: var(--ink); font-weight: 500;
}
.acc__result .ic { width: 19px; height: 19px; color: var(--ok); margin-top: 2px; flex: 0 0 auto; }
.acc__result b { font-weight: 700; }
.acc__inner .badge-prem {
  display: inline-block; margin-left: 6px;
  font-size: 12px; font-weight: 700; color: var(--accent-2);
}

/* ===================== AUTHOR ===================== */
.author { display: grid; grid-template-columns: 320px 1fr; gap: var(--space-5); align-items: start; }
.author__photo { position: sticky; top: 90px; }
.author__ph {
  position: relative; overflow: hidden;
  aspect-ratio: 3/4; border-radius: var(--r-card);
  background: linear-gradient(150deg, #F7E9D6, #FBE7E5);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-soft); font-weight: 600; text-align: center; line-height: 1.4;
  box-shadow: var(--e2);
}
.author__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author__lead { font-size: 20px; margin-bottom: var(--space-4); }
.author__points { list-style: none; display: grid; gap: var(--space-3); }
.author__points li {
  padding-left: var(--space-4); position: relative; color: var(--ink-soft);
}
.author__points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ok); font-weight: 800;
}
.author__points b { color: var(--ink); }

/* ===================== REVIEWS ===================== */
.reviews__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, 1fr); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-3); }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--tint-amber); color: var(--accent-2);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  flex: 0 0 auto;
}
.review__meta { flex: 1; min-width: 0; }
.review__author { color: var(--ink); font-size: 15px; font-weight: 600; }
.review__stars { color: #F5B301; letter-spacing: 1px; font-size: 15px; }
.review__verified {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ok); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.review__verified .ic { width: 15px; height: 15px; }
.review__text { color: var(--ink-soft); }

/* ----- карусель отзывов-скринов ----- */
.rc { position: relative; max-width: 440px; margin-inline: auto; }
.rc__viewport { overflow: hidden; border-radius: var(--r-card); touch-action: pan-y; }
.rc__track { display: flex; will-change: transform; }
.rc__slide { min-width: 100%; box-sizing: border-box; }
.rc__card {
  height: clamp(440px, 66vh, 580px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--e2);
  display: grid; place-items: center;
  overflow: hidden; padding: 12px;
}
.rc__card img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 10px;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.rc__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--e2);
  display: none; place-items: center; cursor: pointer; /* на мобайле скрыты — свайп + точки */
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.rc__arrow:hover { background: var(--bg); }
.rc__arrow:active { transform: translateY(-50%) scale(.92); }
.rc__arrow--prev { left: 6px; }
.rc__arrow--next { right: 6px; }
.rc__dots { display: flex; gap: 8px; justify-content: center; margin-top: var(--space-3); }
.rc__dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: var(--line); cursor: pointer;
  transition: background .2s, transform .2s;
}
.rc__dot.is-active { background: var(--accent); transform: scale(1.25); }
@media (min-width: 600px) {
  .rc__arrow { display: grid; }
  .rc__arrow--prev { left: -10px; }
  .rc__arrow--next { right: -10px; }
}

/* ===================== TARIFFS ===================== */
.tariffs__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.tariff { position: relative; display: flex; flex-direction: column; }
.tariff--featured {
  border-color: var(--accent);
  box-shadow: var(--e3), 0 0 0 4px rgba(226, 59, 46, .08);
}
.tariff--featured::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(226,59,46,.04), transparent 30%);
}
.tariff__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px;
}
.tariff__name { font-size: 24px; margin-bottom: var(--space-2); }
.tariff__price { font-size: 16px; color: var(--ink-soft); margin-bottom: 4px; }
.tariff__price b { font-size: 34px; color: var(--accent); margin-right: 8px; }
.tariff__price s { color: var(--ink-soft); }
.tariff__save { color: var(--ok); font-weight: 600; margin-bottom: var(--space-3); }
.tariff__feat { list-style: none; display: grid; gap: 10px; margin-bottom: var(--space-4); flex: 1; }
.tariff__feat li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.tariff__feat li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.tariff__feat b { color: var(--ink); }
.tariff__btn { width: 100%; }
.tariffs__tip { text-align: center; color: var(--ink-soft); margin-top: var(--space-4); max-width: 50ch; margin-inline: auto; }

/* ===================== FINAL FORM ===================== */
.final { background: linear-gradient(180deg, #FFFDFA, #FBF1E2); }
.final__inner { max-width: 620px; margin-inline: auto; text-align: center; }
.final__text { color: var(--ink-soft); margin-bottom: var(--space-5); }
.form { display: grid; gap: var(--space-3); text-align: left; }
.form__field { display: grid; gap: 6px; }
.form__field label { font-weight: 600; font-size: 15px; }
.form__field input {
  height: 52px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: var(--r-btn);
  background: var(--surface); font: inherit; color: var(--ink);
  transition: border-color .2s;
}
.form__field input:focus { outline: none; border-color: var(--accent); }
.form__field.is-invalid input { border-color: var(--accent); }
.form__err { color: var(--accent); font-size: 13px; min-height: 16px; }
.form__submit { width: 100%; margin-top: var(--space-1); }
.form__note { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: var(--space-1); }
.form__consent { text-align: center; color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; }
.form__consent a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.form__consent a:hover { color: var(--accent-ink); }
.form__done { text-align: center; display: grid; gap: var(--space-3); justify-items: center; }
.form__done-title { font-size: 24px; font-weight: 800; }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: #C9C2B8; padding-block: var(--space-5); }
.footer__inner { display: grid; gap: var(--space-2); text-align: center; }
.footer__legal { color: #fff; font-weight: 600; }
.footer__contacts, .footer__links { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; font-size: 15px; }
.footer__contacts a { display: inline-flex; align-items: center; gap: 8px; }
.footer__contacts .ic { width: 18px; height: 18px; color: var(--accent-2); }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }

/* ===================== STICKY MOBILE CTA ===================== */
.sticky-cta {
  position: fixed; z-index: 40;
  left: 16px; right: 16px; bottom: 16px;
  display: none;
  min-height: 54px; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700;
  border-radius: var(--r-btn);
  box-shadow: 0 10px 30px rgba(226, 59, 46, .38);
  transform: translateY(120%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .trust__grid, .learn__grid, .reviews__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .author { grid-template-columns: 1fr; gap: var(--space-4); justify-items: center; text-align: center; }
  .author__photo { position: static; max-width: 280px; margin-inline: auto; width: 100%; }
  .author__points li { text-align: left; }
  .section__title--left { text-align: center; }
  .tariffs__grid { grid-template-columns: 1fr; }
  .tariff--featured { order: -1; }
}
@media (max-width: 768px) {
  body { font-size: 17px; }
  .header__cta { display: none; }
  .sticky-cta { display: flex; }

  /* герой-скролл на телефоне: оффер сверху, подпись-смысл снизу */
  .hero__sticky {
    grid-template-rows: 1fr auto;
    padding-top: 72px;
    padding-bottom: 80px;
  }
  .hero__offer { order: 0; align-self: center; }
  .hero__sub { font-size: 16px; }
  .hero__labels { order: 1; min-height: 88px; }
  .jlabel { font-size: 17px; padding: 12px 18px; }
  .hero__hint { display: none; }
}
