/* DocLite PDF — оформление страниц продукта.
   Палитра взята из иконки расширения: графит и красный акцент.
   Шрифты: Bitter (плотный брусковый — характер деловой бумаги)
   и PT Sans (спроектирован под кириллицу, спокойно читается в тексте). */

:root {
  --ink: #171b24;
  --ink-soft: #2a3140;
  --paper: #f7f7f5;
  --card: #ffffff;
  --red: #e23e3e;
  --red-dark: #c33131;
  --muted: #5c6270;
  --line: #e2e2de;
  --green: #2c6e2c;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PT Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Bitter, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 0; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* ---------- шапка ---------- */

.top {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
}
.top .wrap { display: flex; align-items: center; gap: 14px; }
.top img { width: 30px; height: 30px; border-radius: 7px; }
.top b { font-family: Bitter, Georgia, serif; font-size: 1.05rem; font-weight: 600; }
.top .spacer { flex: 1; }
.top a { color: #fff; font-size: 0.95rem; text-decoration: none; opacity: 0.85; }
.top a:hover { opacity: 1; color: #fff; }

/* ---------- первый экран ---------- */

.hero { padding: 64px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 56px;
  align-items: center;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 30em; }

.shot {
  background: var(--ink);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(23, 27, 36, 0.18);
}
.shot img { width: 100%; display: block; border-radius: 8px; }

.buy-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }

.buy-note { color: var(--muted); font-size: 0.95rem; }

/* ---------- список инструментов ---------- */

.section { padding: 56px 0; border-top: 1px solid var(--line); }

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
}
.tools div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.tools dt { font-weight: 700; }
.tools dd { margin: 0; color: var(--muted); }

/* ---------- как это работает: настоящая последовательность ---------- */

.steps { counter-reset: step; display: grid; gap: 22px; max-width: 640px; }
.steps li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: Bitter, Georgia, serif;
  font-size: 1.15rem;
  color: var(--red);
  border-top: 2px solid var(--red);
  padding-top: 4px;
}
.steps p { margin: 0; }
.steps strong { display: block; }

/* ---------- приватность: главный акцент страницы ---------- */

.privacy {
  background: var(--ink);
  color: #fff;
  padding: 68px 0;
}
.privacy h2 { color: #fff; max-width: 16em; }
.privacy p { color: #c7cbd4; max-width: 34em; }
.privacy .mark {
  display: inline-block;
  border-bottom: 3px solid var(--red);
  padding-bottom: 2px;
}

/* ---------- тарифы ---------- */

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.plan.pro { border: 2px solid var(--ink); }
.plan h3 { margin-bottom: 4px; }
.price { font-family: Bitter, Georgia, serif; font-size: 2rem; font-weight: 600; margin: 6px 0 14px; }
.plan ul { margin: 0 0 20px; padding-left: 20px; color: var(--muted); }
.plan li { margin-bottom: 5px; }

/* ---------- подвал ---------- */

.foot { background: #edede9; padding: 40px 0; font-size: 0.92rem; color: var(--muted); }
.foot a { color: var(--muted); }
.foot .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

/* ---------- текстовые страницы ---------- */

.doc { padding: 48px 0 72px; }
.doc h2 { margin-top: 34px; font-size: 1.25rem; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 860px) {
  .hero-grid, .tools, .plans, .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 36px; }
  .tools div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hero { padding: 40px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* переключатель языка */
.top .lang {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 0.88rem;
}
.top .lang:hover { border-color: #fff; }
