/* Страницы документов (оферта, политика): спокойная типографика для длинного чтения */
:root {
  --bg: #f5f5f0; --ink: #0e0f0d; --line: #dad9d5; --muted: #7b7a74; --accent: #f0dc50;
  --serif: 'Playfair Display', Georgia, serif; --sans: 'Inter', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

.header { padding: 18px 0; border-bottom: 1px solid var(--line); }
.header .wrap, .footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1040px; }
.logo { font-weight: 600; font-size: 13px; text-decoration: none; }
.header__link { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }

.doc { padding-top: 48px; padding-bottom: 72px; }
.eyebrow { font-weight: 500; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.doc__title { margin-top: 14px; font: 400 clamp(32px, 6vw, 48px)/1.05 var(--serif); letter-spacing: -0.03em; }
.doc__sub { margin-top: 12px; color: var(--muted); }
.doc__pdf {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 16px;
  background: rgba(240, 220, 80, .8); font-size: 14px; text-decoration: none; transition: background-color .2s;
}
.doc__pdf::before { content: '↓'; }
.doc__intro { margin-top: 32px; }

.doc__toc { margin-top: 32px; padding: 20px 22px; border: 1px solid var(--line); }
.doc__toc-title { font: 500 18px/1.2 var(--serif); }
.doc__toc ol { list-style: none; margin-top: 10px; columns: 2; column-gap: 28px; }
.doc__toc li { break-inside: avoid; padding: 3px 0; font-size: 14px; line-height: 1.35; }
.doc__toc a { text-decoration: none; color: var(--ink); transition: opacity .2s; }
.doc__toc span { color: var(--muted); }

.doc__section { margin-top: 44px; scroll-margin-top: 20px; }
.doc__section h2 { font: 400 24px/1.15 var(--serif); letter-spacing: -0.02em; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.doc__section h2 span { color: var(--muted); }
.doc__section p { margin-top: 12px; }
.doc__section p.sub { padding-left: 20px; }
.doc__section p b { font-weight: 600; }
.doc__section .label { color: var(--muted); }

.footer { padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer a { text-decoration: none; }

@media (hover: hover) {
  .header__link:hover, .footer a:hover { color: var(--ink); }
  .doc__toc a:hover { opacity: .6; }
  .doc__pdf:hover { background: var(--accent); }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .doc { padding-top: 32px; }
  .doc__toc ol { columns: 1; }
  .doc__section { margin-top: 36px; }
  .doc__section h2 { font-size: 21px; }
  .doc__section p.sub { padding-left: 12px; }
}

/* печать / PDF: только документ */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; font-size: 11pt; line-height: 1.5; }
  .header, .footer, .doc__pdf, .doc__toc, .eyebrow { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .doc { padding: 0; }
  .doc__title { font-size: 22pt; }
  .doc__section { margin-top: 18pt; break-inside: auto; }
  .doc__section h2 { font-size: 13pt; break-after: avoid; }
  .doc__section p { margin-top: 6pt; orphans: 3; widows: 3; }
}
