/* ──────────────────────────────────────────────────────
   Claude to Cash — styles.css
   Mobile-first, дизайн-токены из SPEC (1).md Приложение А.
   Логика (таймер/карусель/cookie) не хранится в CSS —
   поведение описано в assets/js/main.js.
   ────────────────────────────────────────────────────── */

:root{
  --bg:#FFFFFF;--text:#333;--text-muted:#6B7280;--accent:#2563EB;
  --accent-strong:#1D4ED8;--highlight:#FEF08A;--border:#E5E7EB;
  --frame:#F9FAFB;--radius:14px;--maxw:640px;
}

*{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:17px;
  line-height:1.6;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}

.container{max-width:var(--maxw);margin:0 auto;padding:0 18px}

/* ── Общие секции ───────────────────────────────────── */
.screen{padding:32px 0;border-bottom:1px solid transparent}
.screen + .screen{border-top:1px solid var(--border)}

.screen h2{font-size:22px;line-height:1.3;margin:0 0 16px}
@media(min-width:768px){.screen h2{font-size:26px}}

.screen p{margin:0 0 14px}
.screen p:last-child{margin-bottom:0}

/* ── Hero ───────────────────────────────────────────── */
.pre-headline{
  background:var(--frame);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 18px;
  margin:20px 0;
  color:var(--text-muted);
  font-size:15px;
  line-height:1.5;
}

h1{
  font-size:26px;
  line-height:1.25;
  text-transform:none; /* текст уже в КАПСе в HTML */
  margin:20px 0 16px;
  font-weight:800;
  word-wrap:break-word;
  overflow-wrap:break-word;
}
@media(min-width:768px){h1{font-size:38px}}
@media(min-width:431px) and (max-width:767px){h1{font-size:30px}}

.subheadline{
  color:var(--text-muted);
  font-style:italic;
  font-size:16px;
  margin:0 0 8px;
}

.mark{background:var(--highlight);padding:0 .15em;border-radius:3px}

/* ── Экран 2: боль ─────────────────────────────────── */
.pain h2{font-size:24px}

/* ── Экран 3: шаги ─────────────────────────────────── */
.steps h2{margin-bottom:20px}
.step{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:20px;
}
.step:last-child{margin-bottom:0}
.step-num{
  flex:0 0 auto;
  width:34px;height:34px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  font-size:16px;
  display:flex;align-items:center;justify-content:center;
}
.step p{margin:0;padding-top:4px}

/* ── Экран 4: состав курса (без рамок) ─────────────── */
.course-content h2{margin-bottom:18px}
.check-item{margin-bottom:18px}
.result-block{margin-top:24px}
.result-block p{margin-bottom:10px}

/* ── Экран 5: бонусы (без рамок) ───────────────────── */
.bonuses h2{font-size:20px;margin-top:0}
.bonus{margin-bottom:28px}
.bonus p{margin-bottom:8px;font-size:16px}
.bonus p:last-child{margin-bottom:0}
.super-bonuses{
  text-align:center;
  color:var(--accent-strong);
  letter-spacing:1px;
  font-size:18px;
  margin:28px 0 18px;
}

/* ── Экран 6: value-stack — выделенная карточка ────── */
.valuestack-section{padding:24px 0}
.valuestack{
  background:var(--frame);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
}
.valuestack p{margin:0 0 12px}
.valuestack p:last-child{margin-bottom:0}
.valuestack-total{
  font-size:19px;
  font-weight:700;
  margin-top:16px !important;
  padding-top:16px;
  border-top:1px dashed var(--border);
}
.price-accent{
  color:var(--accent-strong);
  font-size:24px;
  font-weight:800;
}

/* ── CTA ────────────────────────────────────────────── */
.btn-cta{
  display:block;width:100%;text-align:center;text-decoration:none;
  background:var(--accent);color:#fff;font-weight:700;font-size:18px;
  padding:18px 20px;border-radius:var(--radius);margin:18px 0;
  box-shadow:0 4px 14px rgba(37,99,235,.35);
  animation:ctc-pulse 1.6s ease-in-out infinite;
  border:none;cursor:pointer;
}
.btn-cta:hover{background:var(--accent-strong)}
@keyframes ctc-pulse{
  0%,100%{transform:scale(1);box-shadow:0 4px 14px rgba(37,99,235,.35)}
  50%{transform:scale(1.03);box-shadow:0 6px 22px rgba(37,99,235,.55)}
}
@media(prefers-reduced-motion:reduce){
  .btn-cta{animation:none}
  *{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}

/* ── Таймер ─────────────────────────────────────────── */
.cta-timer{text-align:center}
#timer{font-size:40px;font-weight:800;text-align:center;letter-spacing:2px;margin:10px 0}
.cta-subheadline{color:var(--text-muted);font-size:15px;margin:0 0 6px}

.price-plate{
  margin-top:20px;
  padding:16px;
  background:var(--frame);
  border-radius:var(--radius);
  text-align:left;
  font-size:15px;
  color:var(--text-muted);
}
.price-plate p{margin:0 0 8px}
.price-plate p:last-child{margin-bottom:0}

/* ── Экран 8: почему так дёшево (без рамки) ────────── */
.why-cheap h2{font-size:22px}

/* ── Экран 9: гарантия ─────────────────────────────── */
.guarantee h2{
  font-size:24px;
  font-weight:800;
}
@media(min-width:768px){.guarantee h2{font-size:28px}}
.guarantee a{color:var(--accent);text-decoration:underline}

/* ── Экран 10: кейсы / карусель ────────────────────── */
.cases-carousel{position:relative;overflow:hidden;margin-top:8px}
.cases-track{display:flex;transition:transform .3s ease}
.cases-slide{flex:0 0 100%;width:100%;min-width:100%;max-width:100%;padding:8px;box-sizing:border-box}

.case-card{
  background:var(--frame);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
}
.case-name{font-size:17px;font-weight:700;margin:0 0 6px}
.case-status{color:var(--text-muted);font-style:italic;margin:0 0 10px;font-size:15px}
.case-result{margin:0 0 14px}
.case-img-wrap{
  background:var(--frame);
  border:1px dashed var(--border);
  border-radius:10px;
  min-height:160px;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.case-img-wrap img{width:100%;border-radius:10px}

.cases-prev,.cases-next{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border:none;border-radius:50%;background:var(--accent);
  color:#fff;font-size:22px;cursor:pointer;line-height:1;
}
.cases-prev{left:6px}.cases-next{right:6px}
@media(max-width:767px){.cases-prev,.cases-next{display:none}}

.cases-hint{
  text-align:center;
  color:var(--text-muted);
  font-size:14px;
  margin-top:10px;
}
@media(min-width:768px){.cases-hint{display:none}}

/* ── Экран 11: финал ───────────────────────────────── */
.final h2{font-size:22px}
.after-payment{
  text-align:center;
  color:var(--text-muted);
  font-size:15px;
  line-height:1.7;
}

/* ── Footer ─────────────────────────────────────────── */
footer{color:var(--text-muted);font-size:14px;text-align:center;padding:32px 18px 90px}
footer a{color:var(--text-muted)}
footer p{margin:0 0 8px}
footer p:last-child{margin-bottom:0}

/* ── Cookie banner ──────────────────────────────────── */
#cookie-banner{
  position:fixed;left:0;right:0;bottom:0;background:#111;color:#fff;
  padding:12px 16px;font-size:14px;display:flex;gap:12px;align-items:center;
  justify-content:center;flex-wrap:wrap;z-index:50;
}
#cookie-banner a{color:#93C5FD}
#cookie-accept{
  background:var(--accent);color:#fff;border:none;border-radius:8px;
  padding:8px 16px;cursor:pointer;font-size:14px;flex-shrink:0;
}

/* ── Юр-страницы (privacy/cookie/offer) ────────────── */
.legal-page{padding:32px 0 60px}
.legal-page h1{font-size:24px;margin:0 0 8px}
@media(min-width:768px){.legal-page h1{font-size:30px}}
.legal-page h2{font-size:19px;margin:28px 0 12px}
.legal-page h3{font-size:16px;margin:18px 0 8px}
.legal-page p{margin:0 0 12px}
.legal-page ul{margin:0 0 12px;padding-left:20px}
.legal-page li{margin-bottom:6px}
.legal-page .table-wrap{width:100%;overflow-x:auto;margin:0 0 16px;-webkit-overflow-scrolling:touch}
.legal-page table{width:100%;min-width:480px;border-collapse:collapse;margin:0;font-size:13px}
.legal-page th,.legal-page td{border:1px solid var(--border);padding:8px 10px;text-align:left;word-break:break-word}
.legal-page .meta{color:var(--text-muted);font-size:14px;margin-bottom:24px}
.legal-page .back-link{display:inline-block;margin-bottom:20px;color:var(--accent)}

/* ── Общий брейкпоинт под десктоп ──────────────────── */
@media(min-width:768px){
  body{font-size:18px}
  .screen{padding:44px 0}
}
