/* Юридические документы школы (docs/*): спокойная страница для чтения в цветах синей воронки.
   style.css воронки сюда не подключается (в нем zoom для широких экранов и тяжелые блоки), токены повторены. */

:root {
  --cloud: #edf3fc;
  --cloud-2: #e1ebfa;
  --paper: #fff;
  --ink: #0b1a4a;
  --ink-2: #34426e;
  --ink-3: #5d6b93;
  --blue: #1b56df;
  --amber: #ffb627;
  --hair: rgba(11, 26, 74, .1);
  --hair-2: rgba(11, 26, 74, .16);
  --f-d: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-t: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 780px;
  --pad: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; zoom: 1; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--cloud); color: var(--ink);
  font: 400 17px/1.6 var(--f-t); font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(27, 86, 223, .45); }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--amber); color: var(--ink); }
.wrap { width: min(var(--col), 100% - var(--pad) * 2); margin-inline: auto; }

/* ---------- Шапка ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(237, 243, 252, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { display: inline-flex; color: var(--ink); padding: 8px 0; }
.logo svg { display: block; height: 20px; width: auto; }
.logo .rp-mark { fill: #4e76fc; }
.back { font-size: 15px; font-weight: 550; color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.back:hover { color: var(--blue); }

/* ---------- Документ ---------- */
main { padding: clamp(20px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.doc {
  background: var(--paper); border-radius: clamp(18px, 2.4vw, 28px);
  padding: clamp(24px, 5vw, 64px) clamp(18px, 5vw, 64px);
  box-shadow: 0 0 0 1px rgba(27, 86, 223, .06), 0 24px 60px -36px rgba(10, 40, 130, .35);
}
.kicker { margin: 0 0 14px; font: 600 13px/1.3 var(--f-t); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
h1 { margin: 0 0 28px; font: 800 clamp(24px, 3.4vw, 34px)/1.15 var(--f-d); letter-spacing: -.02em; text-wrap: balance; }
h1 strong, h2 strong { font-weight: inherit; }
h2 { margin: 40px 0 14px; font: 750 clamp(18px, 2vw, 21px)/1.3 var(--f-d); letter-spacing: -.01em; }
.doc-body > :first-child { margin-top: 0; }
.doc-body p { margin: 0 0 .7em; }
.doc-body ol, .doc-body ul { margin: .2em 0 .9em; padding-left: 1.6em; }
.doc-body li { margin: .25em 0; padding-left: .2em; }
.doc-body li::marker { color: var(--ink-3); }

/* ---------- Оглавление оферты ---------- */
.toc { margin: 0 0 36px; padding: 20px 24px; border-radius: 18px; background: var(--cloud); }
.toc-h { margin: 0 0 10px; font: 700 15px/1.3 var(--f-d); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 280px; column-gap: 28px; }
.toc li { break-inside: avoid; margin: 0; padding: 4px 0; font-size: 15px; line-height: 1.4; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Таблицы (на телефоне листаются вбок внутри себя) ---------- */
.tbl { margin: 8px 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--hair-2); }
.tbl table { width: 100%; min-width: 300px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.tbl th + th, .tbl td + td { border-left: 1px solid var(--hair); width: 36%; }
.tbl thead th { background: var(--cloud); font-weight: 600; }
.tbl tbody tr:last-child td { border-bottom: 0; }

/* ---------- Сведения: аккордеон на <details> ---------- */
.acc-tools { display: flex; justify-content: flex-end; margin: -8px 0 12px; }
.btn-all {
  font: 600 15px/1 var(--f-t); color: var(--blue); background: var(--cloud); border: 0; border-radius: 999px;
  padding: 11px 18px; cursor: pointer; transition: background-color .15s;
}
.btn-all:hover { background: var(--cloud-2); }
.btn-all[hidden] { display: none; }
.acc { border-top: 1px solid var(--hair-2); }
.acc:last-child { border-bottom: 1px solid var(--hair-2); }
.acc summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none;
  font: 650 clamp(17px, 1.8vw, 19px)/1.35 var(--f-d); letter-spacing: -.01em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--blue); }
.acc-i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cloud); margin-top: -2px; }
.acc-i::before, .acc-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: currentColor; transition: transform .2s; }
.acc-i::after { transform: rotate(90deg); }
.acc[open] .acc-i::after { transform: rotate(0); }
.acc-body { padding: 0 0 18px; color: var(--ink-2); }
.acc-body p { margin: 0 0 1em; }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- Список документов и подвал ---------- */
.more { margin-top: clamp(24px, 4vw, 40px); padding: 0 clamp(4px, 1vw, 8px); }
.more-h { margin: 0 0 10px; font: 700 15px/1.3 var(--f-d); color: var(--ink-2); }
.more ul, .doc-list { margin: 0; padding: 0; list-style: none; }
.more li { padding: 4px 0; font-size: 15px; }
.more a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.doc-list li { border-top: 1px solid var(--hair); }
.doc-list li:last-child { border-bottom: 1px solid var(--hair); }
.doc-list a { display: block; padding: 14px 0; font: 600 18px/1.35 var(--f-d); text-decoration: none; }
.doc-list a:hover { text-decoration: underline; }
.foot { padding: 0 0 40px; font-size: 14px; color: var(--ink-3); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo svg { height: 17px; }
  .back { font-size: 14px; }
  h2 { margin-top: 32px; }
  .toc { padding: 16px 18px; }
  .acc-tools { margin-top: -12px; }
}

@media print {
  .bar, .more, .acc-tools, .foot { display: none; }
  body { background: #fff; font-size: 12pt; }
  .doc { box-shadow: none; padding: 0; }
  .tbl { overflow: visible; box-shadow: none; }
  .tbl table { min-width: 0; border: 1px solid #999; }
  a { color: inherit; }
}
