/* RediskaPROD · Noir — страницы документов (соглашение, политика) и 404.
   Подключается поверх noir.css: переменные, шапка, туман, частицы и кнопки берутся оттуда. */

/* ---------- Шапка документа ---------- */

.doc-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(130px, 17vh, 180px) clamp(20px, 4vw, 56px) clamp(56px, 8vw, 96px);
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 70% at 50% 35%, rgba(109, 60, 255, 0.22), rgba(10, 10, 11, 0) 72%),
    radial-gradient(70% 60% at 50% 0%, #1f1b28 0%, rgba(10, 10, 11, 0) 70%),
    var(--ink);
}
.doc-hero .fog { bottom: -20%; height: 80%; }

.doc-title {
  margin: clamp(18px, 3vw, 28px) auto 0; max-width: 1200px;
  /* Минимум подобран под «КОНФИДЕНЦИАЛЬНОСТИ» на 375px: слово целиком в одну строку. */
  font: 400 clamp(32px, 8.5vw, 128px)/0.9 var(--condensed);
  text-transform: uppercase; letter-spacing: 0.01em;
  -webkit-hyphens: auto; hyphens: auto;
  background: linear-gradient(100deg, #8d8a98 0%, #e9e6f2 25%, #ffffff 32%, #d9cdf8 45%, #9d93b8 70%, #eeeaf6 90%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 10s ease-in-out infinite;
}

.doc-meta {
  margin: clamp(18px, 2.4vw, 26px) auto 0; max-width: 780px;
  font: 400 12px/1.9 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}

/* ---------- Раскладка ---------- */

.doc-layout {
  display: grid; gap: clamp(40px, 6vw, 110px); align-items: start;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1400px; margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 4vw, 56px) clamp(80px, 11vw, 140px);
}

.toc {
  position: sticky; top: 100px;
  padding-left: 22px; border-left: 1px solid var(--line);
}
.toc::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 64px;
  background: linear-gradient(180deg, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(164, 123, 255, 0.7);
}
.toc p {
  margin: 0 0 16px;
  font: 500 12px/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent-bright);
}
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 12px; padding: 7px 0;
  font: 400 14px/1.35 var(--sans); color: var(--dim); text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: none; width: 22px; font-size: 12px; letter-spacing: 0.08em; color: var(--accent); padding-top: 1px;
}
.toc a:hover { color: #fff; padding-left: 6px; }

/* ---------- Текст ---------- */

.doc { max-width: 820px; }
.doc h2 {
  margin: 64px 0 20px; padding-top: 26px; border-top: 1px solid var(--line);
  font: 400 clamp(28px, 3.1vw, 42px)/1.02 var(--condensed);
  text-transform: uppercase; letter-spacing: 0.02em; color: #f3f2f7;
  scroll-margin-top: 96px;
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc p, .doc li { color: #cfccd8; font-size: 17px; line-height: 1.75; }
.doc p { margin: 0 0 14px; }
.doc strong { color: #fff; font-weight: 600; }
.doc a { color: var(--accent-bright); text-decoration-color: rgba(164, 123, 255, 0.5); text-underline-offset: 3px; }
.doc a:hover { color: #fff; }
.doc .num { color: var(--accent); font-weight: 500; margin-right: 6px; font-variant-numeric: tabular-nums; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--accent); }

.doc .note {
  margin: 24px 0; padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(164, 123, 255, 0.12), rgba(164, 123, 255, 0) 80%);
  color: #e8e0ff;
}

.doc .requisites {
  position: relative; margin-top: 72px; padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(109, 60, 255, 0.14), rgba(10, 10, 11, 0) 65%);
}
.doc .requisites::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 90px; height: 1px;
  background: var(--accent); box-shadow: 0 0 12px rgba(164, 123, 255, 0.8);
}
.doc .requisites h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.doc .requisites p { margin-bottom: 6px; }

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: relative; top: auto; padding: 22px; border: 1px solid var(--line); }
  .toc::before { left: -1px; top: -1px; width: 64px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
}

/* ---------- 404 ---------- */

.lost {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; display: grid; place-items: center; text-align: center;
  padding: 120px 20px 60px;
  background:
    radial-gradient(45% 50% at 50% 50%, rgba(109, 60, 255, 0.24), rgba(10, 10, 11, 0) 70%),
    var(--ink);
}
.lost h1 {
  margin: 18px 0 0;
  font: 400 clamp(130px, 30vw, 340px)/0.8 var(--condensed);
  background: linear-gradient(180deg, #f5f4f8 0%, #b9b2cc 60%, #6b6380 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lost-text { margin: 22px 0 34px; font: 400 13px/1.6 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
