/* ============================================================
   CLUB 28 — всё, что появилось в осеннем потоке.
   Подключается ПОСЛЕДНИМ, поэтому здесь же живут переопределения
   старых секций. Порядок блоков:
     0. осенние акценты и «зебра» подложек
     1. экран 2 — бенто-сетка
     2. экран 3 — липкая стопка месяцев
     3. экран 4 — интерактив про время
     4. экран 5 — сетка на 8 карточек + две новые визуализации
     5. экран 10 — сноска про отсчёт с 1 сентября
   Мобильный первичен: базовые правила — под телефон, @media
   (min-width) наращивают десктоп.
   ============================================================ */

/* ============================================================
   0 · ОСЕННИЕ АКЦЕНТЫ
   Фирменный градиент (--g1/--g2/--g3) и шрифты не трогаем —
   двигаем только бумагу и подложки секций в тёплую гамму.
   ============================================================ */
:root {
  --paper:      #fdf0e2;   /* было #fdf2e8 — чуть больше янтаря */
  --paper-warm: #f9e2cb;
  --tint:       #fbe5cd;   /* подложка «зебры», было #fbe9d6 */

  /* палитра месяцев осеннего сезона */
  --m09: #f0a86a;
  --m10: #d97ba6;
  --m11: #8e6ba8;
}

/* «Зебра» под новый порядок секций 28-го потока:
   hero · bento(T) · seasons · prog3(T) · personal · audience(T) ·
   experts · testify(T) · community · pricing(T) · payment */
.bento::before,
.prog3::before,
.audience::before,
.testify::before,
.pricing::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
  background: var(--tint);
  pointer-events: none;
}
/* experts в 27-м потоке был тонирован — в новом порядке он «белый» */
.experts::before { display: none !important; }

/* Два чипа в hero: «Осенний сезон» + имя сезона. Второй — тот же
   лавандовый пилюль, но акцентный, чтобы пара читалась как один блок. */
.hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }

/* Hero на мобильном: текст не должен заходить под фигуру Алины.
   Две причины, лечим обе:
   1) колонка под текст ~160px, а «пространство» в 28px туда не влезает —
      одно слово шире колонки и вылезает за неё (перенос по словам тут
      бессилен, нужен перенос ПО СЛОГАМ);
   2) .hero__right идёт в разметке позже и имеет z-index:0, а у текста был
      auto — при любом касании фото оказывалось сверху. */
@media (max-width: 1000px) {
  /* Текст всегда выше фигуры: .hero__right идёт в разметке позже и имеет
     z-index:0, а у текста был auto — при любом касании фото оказывалось
     сверху и заголовок пропадал под волосами. */
  .hero__left {
    position: relative;
    z-index: 2;
  }
  /* Кегль заголовка подобран так, чтобы самое длинное слово («пространство»)
     влезало в колонку целиком. Базовые 7.5vw давали на 375px слово в 194px
     при колонке 181px — и оно рвалось посреди себя: «пространств / о вашего».
     6.4vw держат запас на всех айфонах от 320 до 430.
     overflow-wrap оставлен страховкой, срабатывать не должен. */
  .hero__title {
    font-size: clamp(23px, 6.4vw, 34px);
    overflow-wrap: break-word;
  }

  /* Фигура ужата и сдвинута вправо так, чтобы её ВИДИМЫЙ край (у PNG слева
     ~25% прозрачного поля) начинался ровно за текстовой колонкой. Проверено
     на 320/375/430: левый край фигуры идёт впритык к границе колонки и не
     заходит на текст. Значения в vw — иначе на другой ширине всё поедет. */
  .hero__alina {
    width: 80vw;
    left: -14.6vw;
    transform: none;
    top: 40px;
  }
  .hero__chips,
  .hero__title,
  .hero__lead { padding-right: 46%; }
}
.chip--season-name {
  background: rgba(233, 74, 161, 0.10);
  -webkit-text-fill-color: var(--g2);
  color: var(--g2);
  font-weight: 700;
  padding-left: 15px;
}

/* ============================================================
   1 · ЭКРАН 2 — БЕНТО-СЕТКА
   Четыре карточки: 1-я и 4-я широкие, 2-я и 3-я обычные.
   Мобильный — один столбец.
   ============================================================ */
.bento { position: relative; }

.bento__head { max-width: 680px; margin: 0 0 clamp(24px, 4vw, 38px); }
.bento__title { margin-bottom: 14px; }
.bento__lead { max-width: 60ch; }

/* Бенто и на телефоне остаётся бенто: 1-я и 4-я во всю ширину, 2-я и 3-я —
   маленькие в один ряд. Столбиком из четырёх одинаковых карточек это уже не
   бенто, а просто список. */
.bento__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bento-card--wide { grid-column: 1 / -1; }

.bento-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.bento-card__viz {
  margin: 0 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-warm);
  aspect-ratio: 16 / 9;
}
.bento-card__viz--wide { aspect-ratio: 2.6 / 1; }
.bento-card__viz img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 7px;
}
.bento-card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Акцентная карточка — фирменный градиент, картинка в белой рамке,
   чтобы акварель не тонула в насыщенной заливке. */
.bento-card--accent {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 44px -20px rgba(233, 74, 161, 0.55);
}
.bento-card--accent .bento-card__title { color: #fff; }
.bento-card--accent .bento-card__text  { color: rgba(255, 255, 255, 0.92); }
.bento-card--accent .bento-card__viz {
  background: rgba(255, 255, 255, 0.9);
  padding: 5px;
}
.bento-card--accent .bento-card__viz img { border-radius: 12px; }

/* Маленькие карточки на телефоне — это половина ширины экрана, поэтому
   у них своя, более тесная типографика. Широкие остаются как были. */
@media (max-width: 899px) {
  .bento-card:not(.bento-card--wide) {
    padding: 12px 12px 16px;
  }
  .bento-card:not(.bento-card--wide) .bento-card__viz { margin-bottom: 12px; }
  .bento-card:not(.bento-card--wide) .bento-card__title {
    font-size: 15px;
    line-height: 1.15;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .bento-card:not(.bento-card--wide) .bento-card__text {
    font-size: 12.5px;
    line-height: 1.45;
  }
}

@media (min-width: 900px) {
  .bento__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .bento-card { padding: 20px 20px 24px; }
  .bento-card--wide { grid-column: span 2; }
  .bento-card__title { font-size: 20px; }
  .bento-card__text { font-size: 14px; }
}

/* ============================================================
   2 · ЭКРАН 3 — ЛИПКАЯ СТОПКА МЕСЯЦЕВ
   Каждая следующая плашка наезжает на предыдущую при прокрутке
   и фиксируется. Чистый CSS: position: sticky + ступенька по top.
   Работает благодаря overflow-x: clip (а не hidden) в shared.css —
   clip не создаёт scroll-контейнер и не ломает sticky.
   ============================================================ */
/* Шапка экрана 3 — по левому краю, как в макете: центрированный текст
   рядом с левой врезкой «Встречайте» смотрелся бы разнобоем. */
.seasons--stack { text-align: left; }
.seasons--stack .seasons__head { max-width: 760px; margin-left: 0; }
.seasons--stack .seasons__chips { justify-content: flex-start; }
.seasons--stack .seasons__lead { margin-left: 0; margin-right: 0; max-width: 62ch; }

/* «Встречайте осенний сезон» — отдельной карточкой на тёплой подложке,
   по левому краю: анонс сезона должен читаться как врезка, а не как
   ещё одна строка-разделитель посреди центрированного текста. */
.season-intro {
  text-align: left;
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 26px 0 34px;
}
.season-intro__eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--g1);
  margin-bottom: 10px;
}
.season-intro__title {
  font-size: clamp(20px, 3.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}
.season-intro__text {
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Таймлайн месяцев над стопкой. Активная точка следует за прокруткой,
   по клику — переход к своей карточке. */
/* Высота липкого таймлайна. Карточки липнут ровно под ним (см. --stack-top),
   поэтому значение задано здесь один раз: раньше линия липла на 6px, а
   карточки — на 9vh, и между ними просвечивал фон. Причём зазор ещё и плавал
   от высоты экрана: на 812px он был 13px, на низком экране схлопывался. */
.seasons--stack {
  --months-line-h: 55px;
  --stack-top: calc(6px + var(--months-line-h));
}

.months-line {
  /* Липнет выше карточек, поэтому остаётся на экране, пока идёт стопка:
     только так видно, что активная точка едет за прокруткой. Подложка
     нужна, чтобы карточки уходили ПОД линию, а не сквозь неё. */
  position: sticky;
  top: 6px;
  height: var(--months-line-h);
  box-sizing: border-box;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  margin: 0 0 18px;
  padding: 8px 0 12px;
  background: var(--paper);
  border-radius: var(--radius-pill);
}
.months-line__rail,
.months-line__fill {
  position: absolute;
  top: 13px;   /* 8px паддинга сверху + половина точки */
  height: 2px;
  border-radius: 2px;
}
.months-line__rail {
  left: 16.6%;
  right: 16.6%;
  background: rgba(28, 34, 54, 0.12);
}
.months-line__fill {
  left: 16.6%;
  width: 0;
  max-width: 66.8%;
  background: var(--grad);
  transition: width .35s ease;
}
.months-line__pt {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.months-line__pt i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-warm);
  box-shadow: 0 0 0 2px rgba(28, 34, 54, 0.12) inset;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.months-line__pt.is-on { color: var(--ink); }
.months-line__pt.is-on i {
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(233, 74, 161, 0.14);
  transform: scale(1.15);
}

.stack28 {
  position: relative;
  text-align: left;
  margin-bottom: 40px;
}

.stack28__card {
  position: sticky;
  /* Ступенька маленькая: из-под верхней карточки выглядывает только
     тонкая цветная кромка предыдущей. Крупный шаг читался не как стопка,
     а как «карточки не доехали друг до друга». */
  top: calc(var(--stack-top) + var(--i, 0) * 6px);
  /* Отступ снизу и есть ход прокрутки: без него карточки одинаковой
     высоты залипали бы одновременно и не наезжали друг на друга. */
  margin-bottom: 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: 0 22px 54px -26px rgba(28, 34, 54, 0.34);
  display: grid;
  grid-template-columns: 1fr;
  min-height: 300px;
}

.stack28__art {
  position: relative;
  margin: 0;
  min-height: 168px;
  overflow: hidden;
  background: var(--paper-warm);
}
.stack28__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack28__body { padding: 20px 20px 24px; }
.stack28__month {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 7px;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stack28__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 6px;
}
.stack28__sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--g2);
  margin-bottom: 10px;
}
.stack28__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Цветная кромка — маркер месяца. Рисуем поверх картинки: inset-тень
   на .stack28__art уходила бы под <img>. */
.stack28__art::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--month, var(--g1));
}
.stack28__card--sep { --month: var(--m09); }
.stack28__card--okt { --month: var(--m10); }
.stack28__card--noy { --month: var(--m11); }

@media (min-width: 900px) {
  /* на десктопе арт слева — полоску ставим вертикально */
  .stack28__art::after { inset: 0 auto 0 0; height: auto; width: 4px; }
}

@media (min-width: 900px) {
  .stack28__card {
    grid-template-columns: 38% 1fr;
    min-height: 320px;
  }
  .stack28__art { min-height: auto; }
  .stack28__body { padding: 34px; align-self: center; }
  .stack28__title { font-size: 27px; }
  .stack28__text { font-size: 15px; }
}

/* Если пользователь просил не анимировать — стопка становится
   обычным списком, без залипания. */
@media (prefers-reduced-motion: reduce) {
  .stack28__card { position: static; }
}

/* ============================================================
   3 · ЭКРАН 4 — ИНТЕРАКТИВ ПРО ВРЕМЯ
   Открыт сразу: три кнопки переключают заголовок, список и часы.
   ============================================================ */
.pace28 {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 22px;
  margin: clamp(28px, 5vw, 44px) auto 0;
  max-width: 880px;
  text-align: left;
}

.pace28__q {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 15px;
}

.pace28__modes {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--paper-warm);
}
.pace28__mode {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 11px 6px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.pace28__mode.is-on { color: #fff; }
.pace28__thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--grad);
  box-shadow: 0 8px 18px -8px rgba(233, 74, 161, 0.6);
  transition: transform .38s cubic-bezier(.3,.8,.3,1), width .38s ease;
  pointer-events: none;
}

.pace28__res { margin-top: 20px; }
.pace28__res-title {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}
.pace28__res-cap {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 13px;
}
.pace28__list { margin: 0; padding: 0; list-style: none; }
.pace28__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.pace28__list li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.pace28__hours {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
}
.pace28__hours b {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 900px) {
  .pace28 {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: start;
    padding: 30px;
  }
  .pace28__q { font-size: 18px; }
  .pace28__res { margin-top: 0; }
}

/* ============================================================
   4 · ЭКРАН 5 — ЛИЧНОЕ ПРОСТРАНСТВО
   Карточек стало 8. На десктопе — 3 + 3 + 2 широкие, чтобы
   последний ряд не оставлял дыру.
   ============================================================ */

/* В 27-м потоке сетку глушили: инструменты были «доступны с 1 июня».
   Сейчас они работают — приглушение снимаем. */
.personal__grid { opacity: 1; }

@media (min-width: 961px) {
  .personal__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .personal__grid > .pcard { grid-column: span 2; }
  .personal__grid > .pcard:nth-child(7),
  .personal__grid > .pcard:nth-child(8) { grid-column: span 3; }
}

/* 7 · Ресурсная привычка — нить дней недели */
.pcard__viz--habit {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
.pcard__thread {
  display: flex;
  gap: 6px;
  width: 100%;
}
.pcard__day {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-mute);
  background: var(--paper-warm);
  border: 1px solid transparent;
}
.pcard__day.is-done {
  background: var(--grad);
  color: #fff;
}
.pcard__day.is-today {
  background: #fff;
  border-color: var(--g2);
  color: var(--g2);
}
.pcard__streak {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(233, 74, 161, 0.10);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--g2);
}

/* 8 · Чаты — три реплики */
.pcard__viz--chats {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.pcard__msg {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 92%;
}
.pcard__msg--out { align-self: flex-end; flex-direction: row-reverse; }
.pcard__msg-ava {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.pcard__msg-body {
  padding: 7px 11px;
  border-radius: 13px;
  background: var(--paper-warm);
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.pcard__msg--out .pcard__msg-body {
  background: var(--grad);
  color: #fff;
}

@media (max-width: 600px) {
  /* Колонка узкая — реплики переносятся на 3 строки и вылезают из
     виджета. Оставляем две, как это уже сделано для «Дневника эфиров». */
  .pcard__viz--chats { gap: 6px; }
  .pcard__msg { max-width: 100%; }
  .pcard__msg:nth-child(3) { display: none; }
  .pcard__msg-ava { width: 18px; height: 18px; }
  .pcard__msg-body { font-size: 10px; padding: 5px 8px; border-radius: 11px; }

  .pcard__viz--habit { gap: 10px; }
  .pcard__thread { gap: 4px; }
  .pcard__day { font-size: 8px; }
  .pcard__streak { font-size: 10px; padding: 5px 10px; }
}

/* ============================================================
   6 · МИНИ-ЛЕНДИНГ РЕГИСТРАЦИИ — короткая шапка
   По ТЗ тут «короткая шапка и виджет»: человек приходит по ссылке
   из рекламы, ему нужен виджет, а не пересказ лендинга.
   ============================================================ */
.reg-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 0;
  text-align: center;
}
.reg-top__seal { width: 74px; height: auto; }
.reg-top__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.reg-top__deadline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(155, 95, 223, 0.10);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.reg-top__deadline b {
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@media (min-width: 900px) {
  .reg-top { padding-top: 26px; gap: 16px; }
  .reg-top__seal { width: 86px; }
}

/* ============================================================
   5 · ЭКРАН 10 — СНОСКА ПРО ОТСЧЁТ ПОДПИСКИ
   ============================================================ */
.pricing__startnote {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 660px;
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: left;
}
.pricing__startnote-ico {
  flex-shrink: 0;
  color: var(--g2);
  margin-top: 1px;
}
.pricing__startnote b { color: var(--ink); font-weight: 700; }
