/* Страница курса и «Моё пространство». Общая система — style.css; здесь
   только то, чего в ней нет. Розовый пунктир — «дорожка» с обложки курса:
   на странице продажи это украшение, в пространстве — настоящий прогресс. */

:root { --trail: #D77F9C; --trail-soft: #EBC3D1; }

.btn-light { background: #fff; color: var(--wine); }
.btn-light:hover { background: var(--wine-pale); }
.btn.is-done { background: var(--wheat); color: var(--wine-deep); box-shadow: none; border-color: transparent; }
.link-soft { color: var(--wine); text-decoration: none; border-bottom: 1px solid currentColor; }

/* --- первый экран --- */
.cx-hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.cx-path { position: absolute; right: 0; bottom: 0; width: 62%; height: 100%; opacity: .55; pointer-events: none; }
.cx-path path { fill: none; stroke: var(--trail); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; }
.cx-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: end; }
.cx-hero-text { padding-bottom: 56px; }
.cx-who { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.cx-who b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--ink); }
.cx-hero h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; margin: 0 0 18px; }
.cx-hero h1 .it { color: var(--wine); display: block; }
.cx-hero .lead { font-size: 18px; color: var(--ink-soft); max-width: 40ch; }
.cx-perks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.cx-perks li { display: flex; align-items: center; gap: 12px; }
.cx-perks-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 0 0 30px; }
.cx-perks i {
  font-style: normal; font-size: 12px; width: 26px; height: 26px; border-radius: 50%;
  display: inline-grid; place-items: center; background: #fff; color: var(--wine); border: 1px solid var(--trail-soft);
}
.cx-hero-photo { align-self: stretch; min-height: 380px; position: relative; }
.cx-hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  border-radius: 26px 26px 0 0; display: block;
}

/* --- стикеры на первом экране --- */
.who-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.who-row .who { margin: 0 0 6px; }
.stickers { position: absolute; top: 8px; right: 30px; display: flex; pointer-events: none; z-index: 2; }
.sticker { width: 96px; height: auto; display: block; filter: drop-shadow(0 4px 8px rgba(40, 28, 20, .22)); }
.sticker-think { transform: rotate(-6deg); }

/* Остальные стикеры — по одному в разных блоках, всегда СБОКУ от заголовка, а не
   отдельной строкой: на компьютере в углу блока, на телефоне — маленькие, справа.
   Над заголовком по центру они давали пустой зазор и смотрелись нелепо (заказчица,
   iPhone). Часть из них на телефоне не показываем: страница и так длинная. */
.has-deco { position: relative; }
.deco { position: absolute; width: 112px; height: auto; display: block; pointer-events: none; z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(40, 28, 20, .18)); }
.deco-r { right: 6px; top: -2px; }
.deco-l { left: 6px; top: -2px; }
/* В блоках с заголовком по центру стикер уходит в верхнее поле секции — к списку и карточкам под заголовком не подходит. */
.deco-up { top: -40px; }
.tilt-l { transform: rotate(-6deg); }
.tilt-r { transform: rotate(6deg); }
.deco-heading { padding-right: 124px; }
.deco-inline { position: static; width: 112px; margin: 0 auto 16px; }
@media (max-width: 860px) {
  .stickers { position: static; flex: none; }
  .sticker { width: 60px; filter: drop-shadow(0 2px 4px rgba(40, 28, 20, .2)); }
  /* Рядом с заголовком, справа. У блоков с заголовком слева (видео, бесплатное) под
     стикер оставлено место в заголовке; у блоков с заголовком по центру (.deco-up)
     стикер сидит в верхнем поле секции, рядом со строкой-подписью, не доходя до заголовка. */
  .deco { width: 62px; right: 12px; top: 2px; left: auto; }
  .deco-up { top: -56px; width: 52px; }
  .deco-hide-sm { display: none; }
  .deco-heading { padding-right: 74px; }
}

/* --- продажа на главной: первый экран, полоса тарифов, закреплённая цена --- */
.hero-offer { margin: 18px 0 0; font-size: 15px; color: var(--ink-soft); max-width: 46ch; }
.hero-offer b { color: var(--wine); font-weight: 600; }

.offer-strip { padding: 38px 0; }
.offer-strip-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; align-items: center; }
.offer-strip h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 10px 0 8px; }
.offer-strip h2 .it { color: var(--wine); }
.offer-strip-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offer-mini {
  background: #fff; border-radius: 20px; padding: 20px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.offer-mini > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--taupe); }
.offer-mini > b { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; }
.offer-mini small { font-size: 13px; line-height: 1.4; opacity: .9; }
.offer-mini .btn { margin-top: auto; align-self: flex-start; }
.offer-mini.featured { background: var(--wine); color: #fff; }
.offer-mini.featured > span { color: rgba(255, 235, 242, .85); }

.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, .96); border-top: 1px solid var(--trail-soft);
  box-shadow: 0 -6px 24px rgba(60, 30, 40, .08); font-size: 15px;
}
.buy-bar[hidden] { display: none; }
.buy-bar b { color: var(--wine); white-space: nowrap; }
.buy-bar .btn { white-space: nowrap; padding: 10px 18px; }
html.has-buybar body { padding-bottom: 72px; }

/* --- «для кого», «что получите» --- */
.cx-for { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cx-for .card { padding: 22px; }
.cx-for b { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.25; display: block; margin-bottom: 8px; }
.cx-for p { margin: 0; font-size: 14px; }

.cx-quote { padding: 64px 0; text-align: left; }
.cx-quote h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 18ch; color: #fff; }
.cx-quote h2 .it { color: var(--trail-soft); }
.cx-quote p { max-width: 46ch; color: rgba(255, 235, 242, .85); margin-top: 18px; }
.cx-quote .hand { color: var(--trail-soft); margin-top: 14px; }

.cx-gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cx-gets .card { padding: 24px; }
.cx-gets i { font-style: normal; font-size: 22px; color: var(--wine); display: block; margin-bottom: 12px; }
.cx-gets b { font-weight: 500; display: block; margin-bottom: 6px; }
.cx-gets p { margin: 0; font-size: 14px; }

/* --- программа --- */
.cx-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.cx-step { background: #fff; border-radius: 22px; padding: 28px; box-shadow: var(--shadow-soft); }
.cx-step.two { background: var(--wine-pale); }
.cx-step h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 8px 0 4px; color: var(--wine); }
.cx-modules { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.cx-modules li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 12px; align-items: baseline; font-size: 15px; }
.cx-modules .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; background: var(--wine-pale); color: var(--wine);
}
.cx-step.two .n { background: #fff; }
.cx-modules small { grid-column: 2; color: var(--taupe); font-size: 12px; }

.cx-bonus { padding: 56px 0; text-align: center; }
.cx-bonus h2 { font-size: clamp(30px, 4vw, 46px); }
.cx-bonus h2 .it { color: var(--wine); }
.cx-bonus p { max-width: 56ch; margin: 14px auto 0; }

/* --- цены --- */
.cx-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.cx-prices .card { display: flex; flex-direction: column; gap: 10px; padding: 30px; }
.cx-prices h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0; }
.cx-price { font-family: var(--display); font-size: 46px; line-height: 1; }
.cx-prices .btn { margin-top: auto; align-self: flex-start; }
.cx-note { text-align: center; margin-top: 18px; }

@media (max-width: 860px) {
  .offer-strip-in { grid-template-columns: 1fr; gap: 20px; }
  .cx-hero { padding-top: 32px; }
  .cx-hero-grid { grid-template-columns: 1fr; }
  .cx-hero-text { padding-bottom: 8px; }
  .cx-hero-photo { min-height: 320px; }
  .cx-path { width: 100%; opacity: .35; }
  .cx-for { grid-template-columns: repeat(2, 1fr); }
  .cx-gets { grid-template-columns: repeat(2, 1fr); }
  .cx-steps, .cx-prices { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .offer-mini { padding: 16px; }
  .offer-mini > b { font-size: 28px; }
  .buy-bar { font-size: 14px; }
  .cx-for, .cx-gets { grid-template-columns: 1fr; }
}

/* Телефон: фото ниже, чтобы заголовок и кнопка курса попали
   на первый экран (раньше фото съедало его целиком, и продажи не было видно). */
@media (max-width: 860px) {
  .hero-photo-fill { min-height: 230px; }
  .hero-frame.split .hero-text { padding: 22px 22px 24px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
}
