/* Лендинг марафонов поста (marathon/index.php). Палитра и шрифт — как у приложения: белый, глубокий синий, Manrope со своего сервера. */
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url('/assets/fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

/* Заголовки — Playfair Display (OFL, assets/fonts/OFL-LICENSE-PlayfairDisplay.txt), со своего сервера, как и Manrope */
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('/assets/fonts/playfair-cyrillic-600.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url('/assets/fonts/playfair-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('/assets/fonts/playfair-cyrillic-700.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('/assets/fonts/playfair-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }

/* Палитра — как у приложения, по картинке пути (design/marathon/path/advent.png): днём тёплая бумага и снег, кнопки цвета
   ночного неба, золото дороги; ночью — тёмно-бирюзовое небо, кремовый текст, золотые кнопки. Те же цвета — в marathon.css */
:root {
  --bg: #F6EEDF; --surface: #FFFAF0; --surface-2: #F0E4CF; --line: #E3D3B8; --text: #2A2118; --muted: #6E5C48;
  --accent: #1E4450; --accent-ink: #FFF6E3; --accent-soft: #E2EAE4; --gold: #BB812D; --road: #E8D8BC;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E2226; --surface: #16313A; --surface-2: #1E3D46; --line: #2A4A52; --text: #F5EAD5; --muted: #BBA98E;
    --accent: #D9A84A; --accent-ink: #1F1606; --accent-soft: #33301F; --gold: #D9A84A; --road: #23424A; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
/* Крупные заголовки — Playfair Display; мелкие (h3) и текст — Manrope */
h1, h2, .lp-sub { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; letter-spacing: 0; }
h1 { font-size: clamp(42px, 9vw, 68px); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 600; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }

.lp-wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.lp-section { padding: 64px 0; }
.lp-section + .lp-section { border-top: 1px solid var(--line); }
.lp-kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-small { color: var(--muted); font-size: 15px; margin-top: 20px; }

.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 14px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; font-size: 17px;
  text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
.lp-btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.lp-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Первый экран */
.lp-hero { padding: 72px 0 56px; text-align: center; background: var(--surface); border-bottom: 1px solid var(--line); }
.lp-lead { font-size: clamp(18px, 3.2vw, 22px); max-width: 640px; margin: 0 auto 28px; color: var(--muted); }
.lp-clock-cap { color: var(--muted); font-weight: 600; margin: 8px 0 28px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Мини-курс */
.lp-mini { background: var(--accent-soft); }
.lp-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.lp-steps li { counter-increment: s; background: var(--surface); border-radius: 16px; padding: 16px 18px 16px 58px; position: relative; }
.lp-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }


/* Возможности */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 28px; }
/* Подарков четыре — ровно 2×2, иначе на широком экране три в ряд и четвёртый висит один слева */
.lp-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .lp-grid.two { grid-template-columns: 1fr; } }
.lp-feature { background: var(--surface); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; }
.lp-feature p { color: var(--muted); font-size: 16px; flex: 1; }
.lp-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.lp-tag { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }
.lp-tag.free { background: #E4F0DF; color: #2F5523; }
.lp-tag.paid { background: var(--accent-soft); color: var(--accent); }
@media (prefers-color-scheme: dark) { .lp-tag.free { background: #1F3320; color: #B9DBAE; } }

/* Вечерняя проверка — образец */
.lp-demo { background: var(--surface); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.lp-demo-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.lp-demo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.lp-yn { font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 16px; border: 1px solid var(--line); }
.lp-yn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lp-demo-line { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); }

/* Цена */
.lp-price-card { background: var(--surface); border-radius: 24px; padding: 28px; max-width: 620px; margin-top: 24px; }
.lp-price-big { font-size: 52px; font-weight: 800; color: var(--accent); line-height: 1.1; margin-bottom: 8px; }
.lp-price-card ul { padding-left: 20px; margin: 0 0 22px; color: var(--muted); }

/* Автор, отзывы, вопросы */
.lp-author { display: flex; gap: 24px; align-items: flex-start; }
.lp-author img { border-radius: 50%; flex-shrink: 0; }
.lp-review { margin: 0; background: var(--surface); border-radius: 20px; padding: 22px; }
.lp-review blockquote { margin: 0 0 12px; }
.lp-review figcaption { color: var(--muted); font-weight: 600; font-size: 15px; }
.lp-faq { max-width: 760px; }
.lp-faq details { background: var(--surface); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.lp-faq details p { color: var(--muted); }
.lp-final { text-align: center; background: var(--accent-soft); }
.lp-footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .lp-section { padding: 48px 0; }
  .lp-split { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero { padding: 48px 0 40px; }
  .lp-cta .lp-btn { width: 100%; }
  .lp-author { flex-direction: column; }
}

/* Лендинг 2: один продукт, одна кнопка */
.lp-hero .lp-btn { min-width: min(320px, 100%); }
.lp-trust { color: var(--muted); font-size: 15px; margin-top: 6px; }
.lp-soft { background: var(--surface); }
.lp-narrow { max-width: 720px; }
.lp-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-card-block, .lp-gift { background: var(--surface); border-radius: 20px; padding: 22px; }
.lp-soft .lp-card-block, .lp-soft .lp-gift, .lp-soft .lp-feature, .lp-soft .lp-review { background: var(--bg); }
.lp-card-block p, .lp-gift p { color: var(--muted); margin: 0; }
.lp-gift { display: flex; gap: 16px; align-items: flex-start; }
.lp-num { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.lp-day { margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.lp-day li { padding-left: 18px; border-left: 3px solid var(--gold); }
.lp-free { background: var(--accent-soft); text-align: center; }
.lp-free .lp-narrow { margin: 0 auto; }
.lp-more { margin-top: 24px; text-align: center; }
.lp-review { display: flex; flex-direction: column; }
.lp-review-title { font-weight: 800; margin-bottom: 8px; }
.lp-shot { width: 100%; height: auto; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--line); }
.lp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin-bottom: 12px; }
.lp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-masonry { columns: 3 300px; column-gap: 16px; }
.lp-masonry .lp-review { break-inside: avoid; margin-bottom: 16px; }
.lp-hero-small { padding: 40px 0 36px; }
.lp-back { margin: 0 0 12px; }
.lp-reviews-home { display: block; width: min(260px, 60vw); margin: 0 auto 24px; line-height: 0; }
.lp-reviews-home img { display: block; width: 100%; height: auto; }
.lp-price-now { font-size: 56px; font-weight: 800; color: var(--accent); line-height: 1.05; }
.lp-price-next { font-weight: 700; margin: 6px 0 12px; }
.lp-muted { color: var(--muted); }

/* Наверху — три предложения в ряд: приложение и интенсив (бесплатно), марафон (платно) */
.lp-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 28px; text-align: left; }
.lp-offer { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; }
.lp-offer.main { border: 2px solid var(--accent); }
.lp-offer h2 { font-size: 21px; margin: 10px 0 4px; }
.lp-when { color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.lp-offer ul { margin: 0 0 14px; padding-left: 18px; font-size: 15.5px; flex: 1; }
.lp-offer li { margin-bottom: 4px; }
.lp-more-link { font-weight: 700; text-decoration: none; }
.lp-badge { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 12px; letter-spacing: .02em; }
.lp-badge.free { background: #E4F0DF; color: #2F5523; }
.lp-badge.paid { background: var(--accent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .lp-badge.free { background: #1F3320; color: #B9DBAE; } }
.lp-section > .lp-wrap > .lp-badge, .lp-split .lp-badge { margin-bottom: 12px; }
.lp-grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 32px; }
.lp-center { text-align: center; margin-top: 28px; }
.lp-sub { font-size: 24px; font-weight: 600; margin: 44px 0 0; }
.lp-lead-left { font-size: 19px; color: var(--muted); max-width: 720px; }
.lp-split .lp-clock { margin-top: 8px; }
.lp-split .lp-clock-cap { margin-bottom: 0; }
@media (max-width: 860px) { .lp-offers { grid-template-columns: 1fr; } }

/* Перекидные часы — винтажные карточки-картинки, как в приложении (assets/marathon/flip) */
.lp-clock { display: inline-flex; align-items: flex-start; gap: 6px; }
.lp-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-unit-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.lp-pair { display: flex; gap: 3px; filter: drop-shadow(0 4px 6px rgba(20, 14, 8, .28)); }
.lp-digit { display: block; width: 64px; height: 72px; }
.lp-sep { font-size: 40px; font-weight: 800; line-height: 72px; color: var(--muted); }
@media (max-width: 380px) { .lp-digit { width: 56px; height: 64px; } .lp-sep { line-height: 64px; } }
@media (max-width: 340px) { .lp-clock { gap: 3px; } .lp-pair { gap: 2px; } .lp-digit { width: 46px; height: 52px; } .lp-sep { font-size: 30px; line-height: 52px; } }

/* Картинки (стиль старой открытки): первый экран с логотипом в небе, карточки, подарки, финал */
.lp-hero { padding-top: 0; }
.lp-hero-art { position: relative; margin: 0 0 28px; }
.lp-hero-img { display: block; width: 100%; height: clamp(360px, 52vw, 640px); object-fit: cover; object-position: 50% 70%; }
.lp-logo { position: absolute; left: 50%; top: 5%; transform: translateX(-50%); width: min(640px, 86%); margin: 0; line-height: 0;
  filter: drop-shadow(0 4px 10px rgba(10, 20, 25, .35)); }
.lp-logo img { width: 100%; height: auto; }
.lp-offer-img { display: block; width: calc(100% + 40px); margin: -20px -20px 14px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 19px 19px 0 0; }
.lp-offer.main .lp-offer-img { width: calc(100% + 40px); }
.lp-art { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 12px 30px rgba(60, 40, 15, .18); }
.lp-gift { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.lp-gift-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.lp-gift-body { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.lp-day-split { margin-top: 8px; }
.lp-final-img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 12px 30px rgba(60, 40, 15, .18); }
@media (max-width: 700px) {
  .lp-hero-img { height: auto; aspect-ratio: 4 / 5; object-position: 50% 50%; }
  .lp-logo { top: 4%; }
}

/* Подпись «до Рождества Христова» — по центру под часами */
.lp-clock-box { display: inline-flex; flex-direction: column; align-items: center; }
.lp-clock-box .lp-clock-cap { text-align: center; }

/* Телефон с настоящим экраном приложения: тёмная рамка, «островок» камеры сверху, мягкая тень */
.lp-phone { position: relative; width: min(300px, 78vw); margin: 0 auto; padding: 11px; border-radius: 46px; background: #15171B;
  box-shadow: 0 30px 60px rgba(60, 40, 15, .28), 0 0 0 2px #2C3036, inset 0 0 0 1px #3A3F47; }
.lp-phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 12px; background: #050607; z-index: 1; }
/* Экран: сверху строка состояния, как у настоящего телефона, — чтобы «островок» камеры не наезжал на заголовок приложения */
.lp-phone-screen { position: relative; overflow: hidden; border-radius: 36px; background: #F6EEDF; padding-top: 40px; }   /* фон приложения (палитра пути) */
.lp-phone-time { position: absolute; top: 15px; left: 30px; font-size: 13px; font-weight: 700; color: #2A2118; }
.lp-phone img { display: block; width: 100%; height: auto; }

/* Кнопка под шагами интенсива — с отступом, а не вплотную к карточкам */
.lp-steps { margin-bottom: 24px; }
/* Интенсив теперь в две колонки с картинкой — текст и шаги по левому краю, как в соседних разделах */
.lp-free .lp-split { text-align: left; }

/* «Что внутри марафона»: картинка в кружке (или крупный значок, пока картинки нет), текст по центру */
.lp-inside { background: var(--bg); border-radius: 20px; padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-inside p { color: var(--muted); font-size: 16px; margin: 0; }
.lp-round { width: 136px; height: 136px; border-radius: 50%; overflow: hidden; margin-bottom: 16px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px #D9C9A3, 0 10px 22px rgba(60, 40, 15, .16); }
.lp-round img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-round svg { width: 52px; height: 52px; stroke-width: 1.4; }

/* Автор — круглый портрет (иллюстрация «Илья с фонарём») */
.lp-author { align-items: center; }
.lp-author-photo { width: 180px; height: 180px; margin-bottom: 0; }
.lp-author-photo img { object-position: 35% 30%; }
/* Святитель на картинке в полный рост — в кружке приближаем лицо и плечи */
.lp-author-photo .lp-tikhon-img { transform: scale(1.45); transform-origin: 49% 6%; }

/* Цена — тем же шрифтом, что заголовки */
.lp-price-now { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: 0; }

/* «Как проходит каждый день»: список — с отступом от заголовка */
.lp-sub + .lp-day { margin-top: 18px; }

/* На телефоне кнопки в разделах — во всю ширину, как на первом экране: не висят у левого края */
@media (max-width: 760px) { .lp-section .lp-btn:not(.ghost) { display: flex; width: 100%; } }

/* Картинки в кружках «Что внутри» нарисованы кругом с каёмкой — чуть увеличиваем, чтобы каёмка ушла за край */
.lp-inside .lp-round img { transform: scale(1.07); }
/* На телефоне колонка во всю ширину — перекидные часы с подписью ставим по центру (на компьютере — под текстом слева) */
@media (max-width: 760px) { .lp-clock-box { display: flex; width: fit-content; margin: 0 auto; } }

/* «Установить на телефон» (assets/js/marathon/landing-install.js): кнопка рядом с «Открыть приложение» и окно с подсказкой */
button.lp-btn { font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; }
.lp-install { margin-left: 10px; }
.lp-btn[hidden], .lp-dialog [hidden] { display: none !important; }
@media (max-width: 760px) { .lp-install { display: flex; width: 100%; margin: 12px 0 0; } }
.lp-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 22px 20px; border: 1px solid var(--line);
  border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.lp-dialog::backdrop { background: rgba(14, 34, 38, .55); }
.lp-dialog h2 { margin: 0 0 12px; font-size: 24px; }
.lp-dialog p { margin: 0 0 14px; }
.lp-dialog .lp-btn { display: flex; width: 100%; }
.lp-dialog form { margin-top: 18px; }
.lp-steps { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
