/* Лендинг по воронке бота (сообщения до 15-го включительно): поверх landing.css платформы.
   Порядок и тексты — как в боте; уроки открываются по очереди, как бот их присылает. */

/* ---------- Текст сообщений ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 17.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: var(--ink); }
.dark .prose p { color: var(--on-dark-muted); }
.dark .prose p strong { color: var(--on-dark); }
.msg-title { margin: 14px 0 18px; }
.msg-sub { font-size: clamp(21px, 3vw, 26px); line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; margin: 26px 0 14px; }

/* Секции без медиа сбоку — одной колонкой по центру, как статья. */
.sec > .wrap:not(.split):not(.wide) { max-width: 824px; }

/* ---------- Первый экран ---------- */
.hero .prose p { font-size: clamp(17px, 2vw, 19px); }
.hero .prose p.first { font-size: clamp(19px, 2.4vw, 23px); font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.hero-photo { max-width: 440px; margin: 0 auto; width: 100%; }
.hero-photo img { width: 100%; aspect-ratio: 1100 / 1264; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero .cta-row { margin-top: 26px; }

/* ---------- Медиа ---------- */
.frame { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); margin: 22px 0; }
.frame img { width: 100%; }
.phone video { width: 100%; border-radius: 26px; background: #000; display: block; }
.split { display: grid; gap: 26px; align-items: center; }
.split .phone { width: min(300px, 78%); }
@media (min-width: 860px) {
  .split { grid-template-columns: 360px minmax(0, 1fr); gap: 56px; }
  .split .phone { width: 100%; max-width: 330px; }
  .split.flip { grid-template-columns: minmax(0, 1fr) 360px; }
  .split.flip > :first-child { order: 2; }
}

/* ---------- Подарок: три урока ---------- */
.gift-cards { display: grid; gap: 12px; margin: 22px 0; }
.gift-card { background: var(--surface); border-radius: var(--radius-sm); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.sec.white .gift-card { background: var(--bg); box-shadow: none; }
.gift-card b { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
@media (min-width: 720px) { .gift-cards { grid-template-columns: repeat(3, 1fr); } }
.sub-block { display: grid; gap: 14px; margin-top: 8px; }
.sub-block > p { font-size: 19px; font-weight: 700; color: var(--ink); }
.sub-check { margin-top: 6px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--red-bg); color: var(--ink); font-size: 16px; }

/* ---------- Урок ---------- */
.lesson .eyebrow { margin-bottom: 4px; }
.cover { position: relative; display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); background: #0b1733; margin: 22px 0 26px; aspect-ratio: 1400 / 788; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; }
.cover:hover img { transform: scale(1.02); }
.cover .play {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.95); color: var(--ink); border-radius: 999px; padding: 8px 14px 8px 8px;
  font-size: 14px; font-weight: 700; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.cover .play i { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.cover .play i::before { content: ""; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.gate.locked .cover img { filter: grayscale(0.4) brightness(0.55); }
.gate.locked .cover .play { background: rgba(255, 255, 255, 0.85); }
.gate.locked .cover .play i { background: #8c8c94; }

/* Кнопка урока и замок: пока предыдущий шаг не пройден, кнопка серая и объясняет, что сделать. */
.gate-cta { margin-top: 24px; display: grid; gap: 12px; justify-items: start; }
.gate-cta .btn { min-width: 240px; }
.gate .lock-note { display: none; }
.gate.locked .gate-cta > .btn {
  background: #dcdce1; color: var(--muted); box-shadow: none; pointer-events: none; cursor: default;
}
.gate.locked .lock-note { display: grid; gap: 10px; justify-items: start; }
.lock-note p { font-size: 15px; color: var(--muted); margin: 0; }
.lock-note .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lock-note .btn-ghost { height: 48px; font-size: 15.5px; padding: 0 20px; }
.lock-note .skip { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn .ico-lock { display: none; }
.gate.locked .btn .ico-lock { display: block; }
.gate.locked .btn .ico-out { display: none; }
.dark .gate.locked .gate-cta > .btn { background: #2a2f2b; color: var(--on-dark-muted); }
.dark .lock-note p { color: var(--on-dark-muted); }
.dark .lock-note .skip { color: var(--on-dark-muted); }

/* ---------- Отзывы (фото-группа сообщения 6) ---------- */
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 76%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 14px; margin: 0 -20px 18px; scrollbar-width: thin; }
.reviews a { display: block; scroll-snap-align: center; background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 10px; }
.reviews img { width: 100%; height: 380px; object-fit: contain; object-position: top; border-radius: 10px; background: var(--bg); }
.swipe-hint { font-size: 12.5px; color: var(--faint); margin: -8px 0 18px; }
@media (min-width: 720px) {
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0 0 26px; padding: 0; }
  .swipe-hint { display: none; }
}

/* ---------- Мем в тёмном блоке ---------- */
.meme { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--dark-line); }
.meme img, .meme video { width: 100%; display: block; }

/* ---------- Подсказка «слово скопировано» ---------- */
.copied {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--dark); color: var(--on-dark); border-radius: 999px; padding: 12px 18px; font-size: 14.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.copied.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 720px) { .copied { bottom: 32px; } }

@media (max-width: 719px) {
  .gate-cta, .gate-cta .btn { width: 100%; }
  .gate-cta .btn { min-width: 0; }
  .lock-note, .lock-note .row, .lock-note .btn-ghost { width: 100%; }
}

/* ---------- «Что дальше» (сообщение 12): блоками, а не простынёй ---------- */
.h2.sm { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; }
.ask { max-width: 660px; margin-top: 6px; background: var(--bg); border-radius: 24px 24px 24px 6px; padding: 22px 24px; }
.ask p { margin: 0; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--ink-2); }
.ask p b { color: var(--accent-text); font-size: 1.2em; }

.get i, .nc i {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-bg); color: var(--accent-text);
  display: grid; place-items: center; flex: none;
}
.get i svg, .nc i svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gets { display: grid; gap: 14px; }
.get { background: var(--surface); border-radius: var(--radius); padding: 26px 24px 28px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.get i { margin-bottom: 8px; }
.get b { font-size: 19px; line-height: 1.28; letter-spacing: -0.015em; color: var(--ink); }
.get p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
@media (min-width: 720px) { .gets { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .gets { grid-template-columns: repeat(3, 1fr); } }

.result { padding: 64px 0; }
.result-grid { display: grid; gap: 8px; }
.result-text { margin: 0; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.28; font-weight: 700; letter-spacing: -0.02em; color: var(--on-dark); max-width: 560px; }
.result-num { margin: 0; font-size: clamp(64px, 13vw, 140px); line-height: 0.95; font-weight: 900; letter-spacing: -0.055em; color: var(--accent); white-space: nowrap; }
.result-tail { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .result { padding: 88px 0; }
  .result-grid { grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: center; }
  .result-text { grid-row: 1 / 3; }
  .result-num, .result-tail { text-align: right; }
}

.tiles3 { display: grid; gap: 14px; }
.tile { border-radius: var(--radius); padding: 28px 24px; background: var(--bg); display: grid; gap: 14px; align-content: start; }
.tile .big { font-size: clamp(36px, 4.4vw, 48px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: var(--accent-text); }
.tile p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.tile p b { color: var(--ink); }
@media (min-width: 900px) { .tiles3 { grid-template-columns: repeat(3, 1fr); } }

.nc-head { border-radius: var(--radius); background: var(--dark); color: var(--on-dark); padding: 30px 26px; display: grid; gap: 14px; }
.nc-head b { font-size: clamp(34px, 5.4vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.nc-head p { margin: 0; color: var(--on-dark-muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; max-width: 780px; }
.nc-grid { display: grid; gap: 14px; margin-top: 14px; }
.nc { background: var(--surface); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start; }
.nc p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.nc p b { display: block; color: var(--ink); font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 6px; }
@media (min-width: 800px) { .nc-grid { grid-template-columns: 1fr 1fr; } .nc-head { padding: 44px 48px; } }

.final .final-cta { display: grid; gap: 30px; max-width: 920px; }
.final .final-cta .big { margin: 0; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -0.04em; }
#next .h2 { max-width: 860px; }

/* Плеер урока на месте обложки */
.cover.player { background: #000; }
.cover.player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
