:root {
  --bg: #1A1411;
  --card: #241A14;
  --card-2: #2D211A;
  --accent: #D2613C;
  --accent-2: #E84D0E;
  --text: #F5F1EC;
  --muted: #A89A8E;
  --line: #3A2C23;
  --radius: 14px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.screen { display: flex; flex-direction: column; gap: 20px; }

.hero { font-size: 28px; line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.hook { font-size: 24px; line-height: 1.25; margin: 0; font-weight: 700; }
.sub { font-size: 17px; color: var(--muted); margin: 0; }
.why {
  font-size: 16px; margin: 0; padding: 12px 14px;
  background: var(--card); border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.meta { font-size: 13px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.06em; }

.label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

.guide {
  background: var(--card); border-radius: var(--radius);
  padding: 16px 18px; font-size: 16px; line-height: 1.6;
}
.guide p { margin: 0 0 12px; }
.guide p:last-child { margin-bottom: 0; }
.guide ul, .guide ol { margin: 8px 0 12px 18px; padding: 0; }
.guide li { margin-bottom: 6px; }
.guide strong, .guide b { color: var(--accent); font-weight: 600; }
.guide code { background: var(--card-2); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

.task {
  background: var(--card-2); border-radius: var(--radius-sm);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 6px;
}
.task p { margin: 0; }

.field { display: flex; flex-direction: column; gap: 8px; }
textarea {
  width: 100%; font-family: var(--font); font-size: 16px; line-height: 1.5;
  background: var(--card); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; resize: vertical; min-height: 140px;
}
textarea:focus { outline: none; border-color: var(--accent); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 16px; font-weight: 600;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 20px; cursor: pointer; text-decoration: none;
  transition: transform 0.05s, opacity 0.15s, background 0.15s;
  min-height: 48px; flex: 1 1 auto;
}
.btn.big { padding: 18px 24px; font-size: 18px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.primary:disabled { background: var(--card-2); color: var(--muted); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--card); }
.btn:active { transform: scale(0.98); }

.progress {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg); padding: 8px 0 12px; margin: -8px 0 0;
}
.progress-text {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px; font-weight: 600;
}
.points-chip { color: var(--accent); white-space: nowrap; }
.progress-bar { height: 4px; background: var(--card); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.3s ease; }

.intro { padding-top: 40px; gap: 20px; }
.intro .hero { font-size: 32px; line-height: 1.15; }
.intro-body { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.55; color: var(--text); }
.intro-body p { margin: 0; }
.intro-body p.lead {
  padding: 12px 14px; background: var(--card);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1.6; color: var(--text);
}
.intro-body strong { color: var(--text); font-weight: 700; }
.guide-list { margin: 0; padding: 0; list-style: none; counter-reset: gl; display: flex; flex-direction: column; gap: 8px; }
.guide-list li { counter-increment: gl; display: flex; gap: 10px; font-size: 15px; line-height: 1.5; align-items: baseline; }
.guide-list li::before { content: counter(gl); flex-shrink: 0; color: var(--accent); font-weight: 700; font-size: 13px; }
.cta-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }

.guide h3 {
  margin: 20px 0 10px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--text);
}
.guide h3:first-child { margin-top: 0; }
.guide h4 {
  margin: 16px 0 8px; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--accent);
}
.guide a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.guide a:hover { color: var(--accent-2); }
.guide figure { margin: 16px 0; }
.guide figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 160px; background: var(--card-2);
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 14px; text-align: center; padding: 20px;
}
.img-placeholder span { display: block; }

.video-block {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #000; margin: 0;
}
.video-block iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-block.placeholder {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--card-2); border: 1px dashed var(--line);
  color: var(--muted); font-size: 14px;
}
.video-block.placeholder .ph-icon { font-size: 24px; color: var(--accent); }

/* Hero-фото сверху страницы */
.hero-img { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card-2); }
.hero-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.hero-img.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 180px; border: 1px dashed var(--line);
  color: var(--muted); font-size: 14px; text-align: center;
}
.hero-img.placeholder .ph-icon { font-size: 26px; }

/* Кнопка «Назад» на шаг */
.btn-back {
  align-self: flex-start;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; min-height: 40px; transition: background 0.15s, color 0.15s;
}
.btn-back:hover { background: var(--card); color: var(--text); }
.btn-back:active { transform: scale(0.98); }

/* Название гайда (между кнопкой назад и первым фото) */
.step-title {
  font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--accent);
  margin: 2px 0 4px;
}

/* Аудио-плеер вверху страницы */
.audio-player {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--card);
  border: 1px solid var(--accent); border-radius: var(--radius);
}
.audio-player .ap-icon { font-size: 24px; flex: 0 0 auto; }
.audio-player .ap-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.audio-player .ap-title {
  font-size: 12px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600;
}
.audio-player audio { width: 100%; height: 40px; }
.audio-player.placeholder {
  border-style: dashed; border-color: var(--line);
}
.audio-player.placeholder .ap-sub { font-size: 13px; color: var(--muted); }

/* Видео-аутро в конце гайда */
.video-outro { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.video-outro h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--text); }
.video-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Блок-цитата внутри гайда (примеры «было/стало», шаблоны) */
.guide blockquote {
  margin: 12px 0; padding: 12px 14px;
  background: var(--card-2); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.guide blockquote p { margin: 0 0 8px; }
.guide blockquote p:last-child { margin-bottom: 0; }

/* Схема формулы промпта */
.formula-schema {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 16px 0; padding: 16px 14px;
  background: var(--card-2); border-radius: var(--radius); border: 1px solid var(--line);
}
.fs-parts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.fs-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fs-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 72px; box-sizing: border-box;
  background: var(--card); color: var(--text);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 8px 14px; font-size: 15px; font-weight: 600; text-align: center;
}
.fs-op { color: var(--muted); font-size: 16px; font-weight: 700; }
.fs-note { color: var(--muted); font-size: 13px; text-align: center; }
.fs-arrow { color: var(--accent); font-size: 22px; line-height: 1; }
.fs-result {
  background: var(--accent); color: #fff;
  border-radius: var(--radius-sm); padding: 10px 22px;
  font-size: 16px; font-weight: 700;
}

.task p { white-space: pre-wrap; }

.points-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 7, 5, 0.75);
  opacity: 0; transition: opacity 0.2s;
  padding: 24px;
}
.points-overlay.show { opacity: 1; }
.points-card {
  background: var(--card); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 24px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 240px; text-align: center;
  transform: scale(0.9); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.points-overlay.show .points-card { transform: scale(1); }
.points-plus { font-size: 56px; font-weight: 800; color: var(--accent); line-height: 1; }
.points-label {
  font-size: 14px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.points-total { font-size: 15px; color: var(--text); margin-top: 8px; }
.points-bar {
  width: 100%; height: 4px; background: var(--card-2);
  border-radius: 2px; overflow: hidden; margin-top: 6px;
}
.points-bar-fill { height: 100%; background: var(--accent); transition: width 0.3s; }

.finale .hero { font-size: 28px; }
.kit {
  background: var(--card); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.kit h3 { margin: 0; font-size: 18px; }
.kit-item { border-top: 1px solid var(--line); padding-top: 10px; }
.kit-item:first-of-type { border-top: none; padding-top: 0; }
.kit-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 600; margin-bottom: 4px;
}
.kit-value {
  margin: 0; white-space: pre-wrap;
  font-family: var(--font); font-size: 15px; line-height: 1.5;
}
.muted { color: var(--muted); }

.kit-lead, .kit-note { font-size: 14px; color: var(--muted); margin: 0; }
.summary-list { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 8px; }
.summary-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.4; }
.summary-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* Лид-магнит для тех, кто не купил */
.lead-magnet {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; background: var(--card);
  border: 1px dashed var(--accent); border-radius: var(--radius);
}
.lead-magnet h3 { margin: 0; font-size: 18px; }
.lead-magnet p { margin: 0; font-size: 15px; color: var(--muted); }

.kit-praise { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }

/* Блок «пиши мне» — карточка продукта с кликабельными логотипами */
.contacts {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line);
}
.contacts-text { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link {
  flex: 1 1 90px; min-width: 90px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border-radius: var(--radius-sm);
  background: var(--card-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, color .15s ease;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-icon { width: 30px; height: 30px; display: block; }
.social-icon svg { width: 100%; height: 100%; display: block; }
.social-label { font-size: 13px; font-weight: 600; }

.home-btn { text-align: center; }

.offer {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--accent);
}
.offer-lead { font-size: 17px; margin: 0; font-weight: 600; }
.urgency { font-size: 14px; color: var(--accent); margin: 0; font-weight: 500; }

.products { display: flex; flex-direction: column; gap: 14px; }
.product {
  background: var(--card-2); border-radius: var(--radius-sm);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.product h4 { margin: 0; font-size: 18px; }
.benefit { margin: 0; color: var(--muted); font-size: 14px; }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge {
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
}
.old { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.new { font-size: 22px; font-weight: 700; color: var(--text); }
.price-sub { font-size: 13px; color: var(--muted); }
.product-bonus { margin: 0; font-size: 14px; line-height: 1.5; color: var(--accent); font-weight: 500; }

.todo { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.todo li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 14px; background: var(--card); border-radius: var(--radius-sm);
}
.todo li span { font-size: 14px; }
.todo .btn { flex: 0 0 auto; min-height: 36px; padding: 8px 14px; font-size: 14px; }

.share {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; background: var(--card); border-radius: var(--radius); text-align: center;
}
.share p { margin: 0; font-size: 15px; }

#flash {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 100;
}
#flash.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 480px) {
  #app { padding: 32px 24px 80px; }
  .hero { font-size: 32px; }
  .intro .hero { font-size: 36px; }
  .todo li span { font-size: 15px; }
}
