/* НЕ ФИЗРУК — стили лендинга.
   Дизайн-система: тёмный фон, один акцент (оранжевый), карточки с тонкой рамкой, чередование фонов секций. */
:root {
  --bg: #0b0c0f;
  --bg-2: #111318;
  --card: #16191f;
  --card-2: #1c2027;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f2f2f3;
  --muted: rgba(255, 255, 255, .66);
  --accent: #ff5a1f;
  --accent-2: #ffb020;
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 20px;
  --max: 1100px;
  --sec-y: clamp(56px, 9vw, 104px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.s { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.s--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 12, 15, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: 0.04em; }
.logo__mark { color: var(--accent); margin-right: 2px; }
.top__nav { display: none; gap: 28px; color: var(--muted); font-weight: 500; font-size: 15px; }
.top__nav a:hover { color: var(--text); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px;
  border-radius: 12px; border: 1px solid transparent;
  background: var(--text); color: #0b0c0f;
  font-weight: 800; font-size: 16px; line-height: 1;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 56px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #140a05; }
.btn--accent:hover { background: #ff6d38; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--accent); }
.link { background: none; border: 0; padding: 0; font-weight: 700; color: var(--accent-2); cursor: pointer; text-align: left; }
.link:hover { text-decoration: underline; }

/* ---------- Иконки ---------- */
.icon-badge {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 16px;
  color: var(--accent);
  background: rgba(255, 90, 31, .12);
  border: 1px solid rgba(255, 176, 32, .22);
}
.icon-badge svg { width: 28px; height: 28px; display: block; }
.icon-badge--sm { width: 36px; height: 36px; border-radius: 11px; }
.icon-badge--sm svg { width: 20px; height: 20px; }
.icon-badge--lg { width: 60px; height: 60px; border-radius: 18px; }
.icon-badge--lg svg { width: 34px; height: 34px; }

/* ---------- Первый экран ---------- */
.hero {
  padding-top: clamp(40px, 8vw, 88px); padding-bottom: clamp(40px, 7vw, 72px);
  background: radial-gradient(70% 60% at 50% 0%, rgba(255, 90, 31, .16), transparent 70%);
}
.eyebrow { color: var(--accent-2); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 7.5vw + .5rem, 3.9rem); font-weight: 800; line-height: 1.08; max-width: 860px; }
.hero h1 span { color: var(--accent-2); }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw + .8rem, 1.25rem); line-height: 1.5; max-width: 640px; margin-top: 20px; }
.hero__actions { display: grid; gap: 12px; margin-top: 28px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; color: var(--muted); font-size: 14px; }
.hero__facts strong { display: block; color: var(--text); font-size: 26px; font-weight: 800; line-height: 1.2; }

/* ---------- Заголовки секций ---------- */
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.625rem, 4.5vw + .5rem, 2.75rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 600px; }
.subhead { font-size: 1.25rem; font-weight: 800; margin: 44px 0 16px; }

/* ---------- Автор ---------- */
.author { display: grid; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.author__photo { aspect-ratio: 4 / 4.6; max-height: 440px; overflow: hidden; background: #171a21; }
.author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.author__text { padding: 24px 20px 28px; display: grid; gap: 12px; align-content: center; }
.author__text h2 { font-size: clamp(1.5rem, 3.5vw + .5rem, 2.1rem); font-weight: 800; }
.author__text p { color: var(--muted); }
.author__text .eyebrow { margin-bottom: 0; }
.author__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.author__facts strong { display: block; color: var(--text); font-size: 20px; font-weight: 800; }

/* ---------- Боль / решение ---------- */
.pains { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.pains__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pain h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.pain p { color: var(--muted); }
.pain--accent { border-color: rgba(255, 90, 31, .55); background: linear-gradient(160deg, rgba(255, 90, 31, .16), var(--card) 70%); }
.pain--accent h3 { color: var(--accent-2); }

/* ---------- Сборник ---------- */
.bundle {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding: 28px 20px 24px;
  border: 1.5px solid var(--accent); border-radius: var(--radius-lg);
  background: radial-gradient(90% 80% at 100% 0%, rgba(255, 90, 31, .18), transparent 60%), var(--card);
}
.bundle__badge {
  position: absolute; top: -13px; left: 20px;
  background: var(--accent); color: #140a05;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.bundle__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bundle__head h3 { font-size: clamp(1.5rem, 3vw + .5rem, 2rem); font-weight: 800; }
.bundle__head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.bundle__list { display: grid; gap: 8px; }
.bundle__row {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 52px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.bundle__row:hover { border-color: rgba(255, 138, 60, .5); background: rgba(255, 255, 255, .05); }
.bundle__name { flex: 1; font-weight: 800; }
.bundle__old { color: var(--muted); font-size: 14px; }
.bundle__chev { color: var(--accent-2); font-size: 22px; line-height: 1; }
.bundle__buy { display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.bundle__was { color: var(--muted); font-size: 15px; }
.bundle__price { font-size: clamp(2.75rem, 9vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.bundle__save { display: inline-block; justify-self: start; background: rgba(255, 176, 32, .14); color: var(--accent-2); font-weight: 800; font-size: 14px; padding: 5px 12px; border-radius: 999px; margin-bottom: 8px; }
.bundle__fine { color: var(--muted); font-size: 13px; text-align: center; margin-top: 4px; }

/* ---------- Каналы ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: rgba(255, 138, 60, .45); }
.card__open { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; text-align: left; padding: 22px 22px 8px; background: none; border: 0; cursor: pointer; }
.card__open h3 { font-size: 1.25rem; font-weight: 800; margin-top: 4px; }
.card__open p { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.card__more { color: var(--accent-2); font-weight: 800; font-size: 14px; }
.card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px 20px; }
.card__price { font-weight: 800; font-size: 1.25rem; }
.card__badge { position: absolute; top: 14px; right: 14px; background: var(--accent-2); color: #140a05; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Что внутри ---------- */
.inside__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.inside__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.inside__item .icon-badge { margin-bottom: 14px; }
.inside__item h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: 6px; }
.inside__item p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- Как получить ---------- */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; }
.steps li span { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #140a05; font-weight: 800; }
.steps h3 { font-size: 1.125rem; font-weight: 800; align-self: center; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---------- Финальный призыв ---------- */
.final__in { display: grid; gap: 16px; justify-items: center; text-align: center; }
.final h2 { font-size: clamp(1.75rem, 5vw + .5rem, 3rem); font-weight: 800; max-width: 720px; }
.final__note { color: var(--muted); max-width: 520px; }
.final__in .btn { width: 100%; max-width: 420px; }
.final__demo { color: var(--muted); font-size: 15px; max-width: 460px; }
.final__demo a { color: var(--accent-2); font-weight: 800; }
.final__demo a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq .wrap { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.0625rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; flex-direction: column; gap: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a:hover { color: var(--text); }

/* ---------- Липкая кнопка на телефоне ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(17, 19, 24, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-2);
}
.sticky-cta__text { display: grid; line-height: 1.25; }
.sticky-cta__text strong { font-size: 15px; font-weight: 800; }
.sticky-cta__text span { font-size: 12px; color: var(--muted); }
.sticky-cta .btn { min-height: 44px; padding: 0 20px; }

/* ---------- Превью канала ---------- */
.preview {
  border: 0; padding: 0; color: var(--text);
  width: 100%; max-width: 100%; margin: auto 0 0;
  max-height: 90vh; max-height: 90dvh;
  background: var(--bg-2);
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--line-2);
  flex-direction: column; overflow: hidden;
}
.preview[open] { display: flex; animation: sheet .25s ease-out; }
.preview::backdrop { background: rgba(0, 0, 0, .68); }
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.preview__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 14px; border-bottom: 1px solid var(--line); }
.preview__title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.preview__title h3 { font-size: 1.5rem; font-weight: 800; }
.preview__title p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.preview__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); font-size: 26px; line-height: 1; cursor: pointer; }
.preview__body { flex: 1; overflow-y: auto; padding: 18px 20px 8px; overscroll-behavior: contain; }
.preview__intro { color: var(--muted); }
.preview__label { margin: 20px 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.preview__list { display: grid; gap: 8px; }
.preview__list li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.preview__num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(255, 90, 31, .16); color: var(--accent-2); }
.preview__txt { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.preview__txt b { font-weight: 800; }
.preview__txt small { color: var(--muted); font-size: 13px; }
.preview__state { flex: none; color: var(--muted); display: grid; place-items: center; }
.preview__state svg { width: 22px; height: 22px; }
.preview__list li.is-locked { opacity: .72; }
.preview__list li.is-locked .preview__num { background: rgba(255, 255, 255, .08); color: var(--muted); }
.preview__list li.preview__more { display: block; text-align: center; background: none; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.preview__post { margin: 22px 0 14px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.preview__post figcaption { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.preview__post blockquote { margin: 0; white-space: pre-line; color: var(--text); font-size: 15px; line-height: 1.55; }
.preview__foot {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2); background: var(--bg-2);
}
.preview__price { display: grid; line-height: 1.15; }
.preview__price strong { font-size: 1.5rem; font-weight: 800; }
.preview__price span { font-size: 12px; color: var(--muted); }
.preview__bundle { grid-column: 1 / -1; font-size: 14px; text-align: center; }

/* ---------- Окно оформления ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .66); }
.modal__card {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px 22px 0 0;
  padding: 24px 20px 28px; display: grid; gap: 16px;
}
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); font-size: 22px; cursor: pointer; }
.modal h3 { font-size: 1.375rem; font-weight: 800; padding-right: 44px; }
.modal__summary { color: var(--muted); margin-top: -8px; }
#checkout-form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.field legend { padding: 0; margin-bottom: 8px; }
.field input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; min-height: 52px; }
.field input:focus { outline: 2px solid var(--accent-2); outline-offset: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font-weight: 800; cursor: pointer; }
.chip input:checked + span { border-color: var(--accent); background: rgba(255, 90, 31, .18); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-2); }
.modal__hint { color: var(--muted); font-size: 12px; text-align: center; }
.modal__hint a { color: var(--accent-2); }
.modal__stub { display: grid; gap: 10px; }
.modal__stub h4 { font-size: 1.125rem; }
.modal__stub p { color: var(--muted); font-size: 15px; }
.modal__stub pre { background: var(--card); border-radius: 12px; padding: 12px; font-size: 12px; overflow: auto; color: var(--muted); }

/* ---------- Появление блоков (контент виден и без JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .preview[open] { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- Телефон: место под липкую кнопку ---------- */
@media (max-width: 899px) { body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* ---------- Планшет и шире ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero__actions { grid-template-columns: auto auto; justify-content: start; }
  .pains__grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
  .inside__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .author { grid-template-columns: 240px 1fr; }
  .author__photo { aspect-ratio: auto; max-height: none; min-height: 100%; }
  .author__text { padding: 28px 28px 28px 32px; }
  .preview { margin: auto; max-width: 560px; max-height: 86vh; max-height: 86dvh; border-radius: 22px; border: 1px solid var(--line-2); }
  .modal { place-items: center; }
  .modal__card { border-radius: 22px; padding: 28px; }
}
@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .top__nav { display: flex; }
  .hero { text-align: center; }
  .hero__text { max-width: 860px; margin: 0 auto; }
  .hero h1, .lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__facts { justify-content: center; }
  .inside__grid { grid-template-columns: repeat(4, 1fr); }
  .author { grid-template-columns: 320px 1fr; }
  .author__text { padding: 40px 48px 40px 44px; }
  .bundle { grid-template-columns: 1.25fr 1fr; gap: 40px; padding: 40px 36px 36px; }
  .bundle__buy { padding-top: 0; border-top: 0; padding-left: 36px; border-left: 1px solid var(--line); align-content: center; }
  .steps li { grid-template-columns: 1fr; }
  .steps li span { grid-row: auto; margin-bottom: 8px; }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
