/* Типографика по образцу статей Teletype: Inter, текст 17px / 1.5, колонка 700px */
:root {
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #1A1919;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --accent: #1A1919;
  --accent-ink: #FFFFFF;
  --accent-soft: #F4F4F4;
  --accent-deep: #1A1919;
  --hover: #3A3A3A;
  --max: 700px;
  --wide: 900px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--ink); text-decoration-color: rgba(26, 25, 25, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

/* полоска прогресса чтения */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* текст */
.article { max-width: var(--max); margin: 0 auto; padding: 48px 16px 24px; }
.article > * { margin-top: 0; }
p { margin: 0 0 15px; }
strong { font-weight: 700; }
.nw { white-space: nowrap; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1 { font-size: 52px; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 30px; }
h2 { font-size: 28px; line-height: 1.3; font-weight: 700; margin: 48px 0 12px; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 700; margin: 32px 0 8px; }
h2 + h3 { margin-top: 12px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); margin: -12px 0 28px; }

ul, ol { margin: -5px 0 15px; padding-left: 1.4em; }
li { margin: 0 0 10px; padding-left: .15em; }
li:last-child { margin-bottom: 0; }
ol > li::marker { font-weight: 700; font-variant-numeric: tabular-nums; }

/* шесть звеньев круга */
ol.chain { margin: 4px 0 20px; padding: 0; list-style: none; counter-reset: z; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
ol.chain li { counter-increment: z; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
ol.chain li::before { content: counter(z); display: inline-block; min-width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* картинки: шире текста на компьютере */
.sketch { margin: 28px 0; }
.sketch img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--accent-soft); }
.sketch figcaption { font-size: 14px; line-height: 1.4; color: var(--muted); padding: 8px 0 0; text-align: center; }
@media (min-width: 740px) {
  .sketch { margin: 36px calc((var(--max) - var(--wide)) / 2); }
  .sketch img { border-radius: 20px; }
}

/* плашка */
.plashka { background: var(--accent-soft); border-radius: 12px; padding: 18px 20px; margin: 28px 0; }
.plashka p { font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.plashka p:last-child { margin-bottom: 0; }

/* итог части предложения: как цитата в Teletype, с полоской слева */
.result { position: relative; padding-left: 14px; }
.result::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--accent); }
.note { font-style: italic; color: var(--muted); }

/* вопросы в FAQ */
.q { font-weight: 700; margin: 24px 0 4px; }

/* черта перед историей клиентки */
.article hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0 0; }
.article hr + h3 { margin-top: 24px; }

/* факты о Марине */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 0; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact b { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; color: var(--accent-deep); }
.fact span { font-size: 15px; color: var(--muted); }

/* 22 аркана */
.arcana { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; margin: 0 0 20px; }
.arcana details + details { border-top: 1px solid var(--line); }
.arcana summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; font-weight: 600;
}
.arcana summary::-webkit-details-marker { display: none; }
.arcana summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--muted); }
.arcana details[open] summary::after { content: "−"; }
.arcana summary:hover { background: #FAFAFA; }
.arc-num { flex: none; min-width: 26px; font-weight: 700; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.arcana details p { padding: 0 16px 14px 54px; margin: 0; }

/* цены */
.price { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.price td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; font-variant-numeric: tabular-nums; }
.price tr.total td { font-weight: 700; border-bottom: 0; padding-top: 14px; }

.tariffs { display: grid; gap: 12px; margin: 16px 0 20px; }
@media (min-width: 640px) { .tariffs { grid-template-columns: 1fr 1fr; } }
.tariff { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.tariff-main { border: 2px solid var(--ink); }
.tariff-name { font-size: 18px; font-weight: 700; }
.tariff-price { font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--accent-deep); margin: 6px 0 8px; }
.tariff p { font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0; }

/* кнопки */
.cta { margin: 32px 0; }
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  font-size: 17px; line-height: 1.35; font-weight: 600; padding: 16px 20px; border-radius: 12px;
  transition: background .15s ease;
}
.btn:hover { background: var(--hover); color: var(--accent-ink); }
.btn:focus-visible, .arcana summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.foot { max-width: var(--max); margin: 0 auto; padding: 24px 16px 48px; border-top: 1px solid var(--line); }
.foot p { font-size: 14px; color: var(--muted); margin: 0; }

/* телефон: размеры как у Teletype на узком экране */
@media (max-width: 720px) {
  .article { padding-top: 32px; }
  h1 { font-size: 36px; line-height: 1.12; margin-bottom: 22px; }
  h2 { font-size: 24px; margin-top: 40px; }
  .lead { font-size: 17px; margin-top: -6px; }
  .plashka p { font-size: 17px; }
  .arcana details p { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
