/* Программа курса для клиента (Мастерская → «Программа в PDF»). Печатается в A4 через браузер. */
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic.fe2bd26ae82a.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin.3db826ed1c5d.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #17151f;
  --muted: #625e70;
  --line: #e7e4ef;
  --soft: #f6f3ff;
  --accent: #7324ff;
  --accent-text: #5b14d6;
}
* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* Якоря (#module-N из лид-магнитов): модуль встаёт с отступом сверху, а не впритык к краю экрана. */
html { scroll-padding-top: 140px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #ecebf1; color: var(--ink); font: 15px/1.5 "Onest", system-ui, sans-serif; }

.bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 10px 16px;
  background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; }
.bar a { color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--accent-text); }
.bar-hint { margin-left: auto; color: var(--muted); }
.bar button { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px;
  padding: 9px 16px; cursor: pointer; }
.bar button:hover { background: #6418ec; }

/* публичная страница /program/<slug>/: шапка с кнопками и форма оплаты внизу */
.bar-brand { font-weight: 700; }
.is-public .bar button.bar-ghost { margin-left: auto; color: var(--accent-text); background: var(--soft); }
.is-public .bar button.bar-ghost:hover { background: #ebe3ff; }
.bar-cta { font-weight: 600; color: #fff !important; background: var(--accent); border-radius: 10px; padding: 9px 16px; }
.bar-cta:hover { background: #6418ec; }

.pay { margin-top: 36px; padding: 24px; border-radius: 18px; background: var(--soft); scroll-margin-top: 70px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
.pay-price strong { display: block; font-size: 34px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.pay-price s { font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pay-price .price-label { color: var(--muted); }
.pay-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.pay-note + .pay-note { margin-top: 6px; }
.pay-price s + .pay-note { display: inline; margin-left: 6px; }
.pay-pill { display: inline-block; margin: 8px 6px 0 0; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--accent-text); font-size: 12.5px; font-weight: 600; }
.pay-flash { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff1f0; color: #b42318; font-size: 14px; }
.pay-form { padding: 20px; border-radius: 16px; background: #fff; }
.pay-form .field { display: grid; gap: 5px; margin-bottom: 12px; }
.pay-form label, .pay-form .label, .pay-form legend { font-size: 13px; font-weight: 600; }
.pay-form input[type=text], .pay-form input[type=email], .pay-form input[type=tel] { width: 100%; font: inherit; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.pay-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.pay-form .phone-field { display: flex; gap: 8px; align-items: stretch; }
.pay-form .phone-field input { flex: 1; min-width: 0; }
.pay-form .phone-cc { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; }
.pay-form .phone-cc:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.pay-form .phone-cc::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.pay-form .phone-cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.pay-form .phone-field input.is-incomplete:not(:focus) { border-color: rgb(200 36 58 / 0.45); }
.pay-form .help { font-size: 12px; color: var(--muted); }
.pay-form .errorlist { list-style: none; margin: 2px 0 8px; padding: 0; color: #b42318; font-size: 12.5px; }
.pay-form .add-line { display: flex; gap: 8px; }
.pay-form .btn-ghost { font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-text); background: var(--soft); border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer; }
.pay-form .check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; font-size: 13px; font-weight: 400; line-height: 1.4; }
.pay-form .check input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.pay-form .req { color: #b42318; margin-left: 2px; }
.pay-form a { color: var(--accent-text); }
.pay-mode { border: 0; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; }
.pay-mode .option { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; font-size: 14px; }
.pay-mode .option span { flex: 1; }
.pay-mode input { accent-color: var(--accent); }
.pay-btn { width: 100%; margin-top: 16px; font: inherit; font-weight: 600; font-size: 16px; color: #fff; background: var(--accent);
  border: 0; border-radius: 12px; padding: 14px; cursor: pointer; }
.pay-btn:hover { background: #6418ec; }
.pay-btn-alt { margin-top: 8px; color: var(--accent-text); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pay-btn-alt:hover { background: var(--line); }

.doc { width: 210mm; max-width: 100%; margin: 24px auto; padding: 18mm 16mm; background: #fff;
  box-shadow: 0 10px 40px -16px rgb(23 21 31 / 0.25); }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.cover { padding: 26px 26px 24px; border-radius: 18px; color: #fff;
  background: linear-gradient(140deg, #8d4dff, var(--accent) 55%, #4a0fc0); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.cover h1 { margin-top: 10px; font-size: 32px; font-weight: 700; }
.lead { margin-top: 12px; font-size: 16px; line-height: 1.45; opacity: 0.95; max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 20px 0 0; }
.facts dt { font-size: 12px; opacity: 0.75; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.price { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.25); }
.price-label { display: block; font-size: 12px; opacity: 0.8; }
.price-main strong { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-old s { font-size: 18px; opacity: 0.85; font-variant-numeric: tabular-nums; }

section { margin-top: 30px; }
section > h2 { font-size: 21px; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 16px; font-weight: 650; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; break-inside: avoid; }
.card p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.card .card-b { color: var(--ink); }
.card-list { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
.card-list li + li { margin-top: 3px; }
.card-list li::marker { color: var(--accent); }

.anti ul { margin: 0; padding: 14px 18px 14px 34px; background: var(--soft); border-radius: 14px; font-size: 13.5px; }
.anti li + li { margin-top: 6px; }

.modules { list-style: none; margin: 0; padding: 0; }
.module { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.module:first-child { border-top: 0; padding-top: 0; }
.module-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--soft);
  color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.module p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.module .effect { color: var(--ink); }
.effect b { color: var(--accent-text); font-weight: 650; }
.lessons { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.lessons li + li { margin-top: 3px; }
.lessons li::marker { color: var(--accent); }

.bonuses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bonuses li { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; break-inside: avoid; }
.bonuses p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.bonus-value s { text-decoration-thickness: 1.5px; }
.bonus-value span { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: var(--muted); }
.bonus-value { flex: none; padding: 5px 12px; border-radius: 12px; text-align: center; background: var(--soft); color: var(--accent-text);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.author { break-inside: avoid; }
.author-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.author-photo { width: 150px; height: 150px; border-radius: 18px; object-fit: cover; }
.author-head h3 { font-size: 19px; }
.author-line { margin-top: 4px; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.author-head p + p { margin-top: 8px; }
.author-head p:not(.author-line) { font-size: 14px; }
.author-line + p { margin-top: 10px; }
.author-stats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.author-stats li { padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 12.5px; line-height: 1.35; }
.author-stats b { display: block; font-size: 22px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.author-stats span { display: block; }
.author-stats .muted { color: var(--muted); margin-top: 2px; }
.author-facts { margin: 16px 0 0; padding-left: 18px; font-size: 13.5px; }
.author-facts li + li { margin-top: 5px; }
.author-facts li::marker { color: var(--accent); }
.foot { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

@media screen and (max-width: 760px) {
  .doc { margin: 0; padding: 16px; box-shadow: none; }
  .cards, .author-stats { grid-template-columns: 1fr; }
  .author-head { grid-template-columns: 1fr; }
  .bar-hint { display: none; }
  .bar button { margin-left: auto; }
  .is-public .bar-brand { display: none; }
  .cover { padding: 20px 18px; }
  .cover h1 { font-size: 26px; }
  .pay { padding: 16px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .pay-grid { grid-template-columns: 1fr; gap: 16px; }
}

@page { size: A4; margin: 12mm 12mm 14mm; }
@media print {
  body { background: #fff; }
  .bar, .pay { display: none; }
  .doc { width: auto; margin: 0; padding: 0; box-shadow: none; }
  section > h2 { break-after: avoid; }
}
