/* ===========================================================
   ИУ НАВИГАТОР · LEGAL DOC STYLES
   Shared by oferta.html and disclaimer.html
   ----------------------------------------------------------- */

:root {
  --bg:           #0E1117;
  --bg-soft:      #161B26;
  --bg-card:      #1A2030;
  --bg-elevated:  #232B3D;
  --border:       #2A3247;
  --border-soft:  #1F2535;

  --gold:         #D4A52A;
  --gold-bright:  #E8B83A;
  --gold-dark:    #A88420;
  --gold-soft:    rgba(212, 165, 42, 0.14);

  --text:         #F5F1E8;
  --text-muted:   #8B8E96;
  --text-dim:     #5C6172;

  --serif:        'Fraunces', 'Iowan Old Style', 'Apple Garamond', 'Baskerville', Georgia, serif;
  --sans:         'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(at 12% 0%, rgba(212, 165, 42, 0.06) 0px, transparent 45%),
    radial-gradient(at 88% 25%, rgba(70, 90, 140, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/></svg>");
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

/* ====================== NAV ====================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(14, 17, 23, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--gold); }
.brand-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--gold); text-decoration: none; }
.nav-back::before { content: '←'; font-size: 16px; line-height: 1; }

/* ====================== LAYOUT ====================== */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ====================== DOC HEADER ====================== */
.doc-head {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 48px;
}
.doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.doc-eyebrow::before, .doc-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.doc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 20px;
}
.doc-meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.doc-meta span + span::before {
  content: '·';
  margin: 0 12px;
  color: var(--text-dim);
}

/* ====================== DOC BODY ====================== */
.doc-body {
  padding-bottom: 80px;
}
.doc-body p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.7;
}
.doc-body p.muted {
  color: var(--text-muted);
  font-size: 15px;
}

.doc-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 80;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}
.doc-body h2 .num {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  margin-right: 12px;
}

.doc-body h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--gold);
}

.doc-body ul, .doc-body ol {
  margin: 12px 0 18px 24px;
  color: var(--text);
}
.doc-body li {
  margin-bottom: 8px;
  line-height: 1.65;
  padding-left: 6px;
}
.doc-body ul li::marker { color: var(--gold); }
.doc-body ol li::marker { color: var(--gold); font-weight: 600; }

.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body em { color: var(--gold); font-style: italic; }

/* Placeholder highlight */
.placeholder {
  display: inline-block;
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  color: var(--gold);
  padding: 0 6px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Notice / disclaimer block */
.notice {
  border: 1px solid rgba(212, 165, 42, 0.3);
  background: linear-gradient(135deg, rgba(212, 165, 42, 0.05) 0%, rgba(212, 165, 42, 0.02) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  position: relative;
}
.notice-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.notice p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.notice p:last-child { margin-bottom: 0; }

/* Caution / "danger" notice */
.caution {
  border: 1px solid rgba(220, 80, 80, 0.4);
  background: linear-gradient(135deg, rgba(220, 80, 80, 0.06) 0%, rgba(220, 80, 80, 0.02) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}
.caution-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #E68080;
  margin-bottom: 12px;
}
.caution p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.caution p:last-child { margin-bottom: 0; }
.caution strong { color: #E68080; }

/* Requisites box */
.requisites {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 28px 0;
}
.requisites-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 24px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
}
.requisites-row:last-child { border-bottom: none; }
.requisites-label {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  align-self: center;
}
.requisites-value {
  color: var(--text);
  font-family: var(--sans);
}
@media (max-width: 600px) {
  .requisites-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
}

/* Definitions */
.defs {
  list-style: none !important;
  margin-left: 0 !important;
}
.defs li {
  padding-left: 0 !important;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.defs li:last-child { border-bottom: none; }
.defs li::marker { content: ''; }
.defs dt {
  display: inline;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.defs dd {
  display: inline;
  margin-left: 4px;
  color: var(--text);
}

/* TOC */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0 48px;
}
.toc-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  columns: 2;
  column-gap: 32px;
}
@media (max-width: 600px) { .toc-list { columns: 1; } }
.toc-list li {
  padding: 5px 0 !important;
  margin: 0 !important;
  break-inside: avoid;
}
.toc-list li::marker { content: ''; }
.toc-list a {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  gap: 10px;
  text-decoration: none;
}
.toc-list a:hover { color: var(--gold); text-decoration: none; }
.toc-list .toc-num {
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
  font-family: var(--serif);
  font-style: italic;
}

/* Sign block */
.sign {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.sign-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ====================== FOOTER ====================== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0 32px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}
.footer-links {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 13px;
}

/* Selection */
::selection { background: var(--gold); color: var(--bg); }
