/* ==========================================================================
   ЛЕОН ПАУЕР — design tokens
   bg-deep:    #0F1C2B  (grid navy — header/hero/footer)
   bg-paper:   #FAF8F3  (registry paper — content sections)
   ink:        #182230  (primary text)
   ink-soft:   #5B6472  (secondary text)
   accent:     #C98A2C  (copper — energy / metering)
   accent-dim: #8C6A3A
   line:       #DED8C9  (hairline on paper)
   line-dark:  rgba(255,255,255,0.14)  (hairline on navy)
   ========================================================================== */

:root {
  --bg-deep: #0F1C2B;
  --bg-paper: #FAF8F3;
  --ink: #182230;
  --ink-soft: #5B6472;
  --accent: #C98A2C;
  --accent-dim: #8C6A3A;
  --line: #DED8C9;
  --line-dark: rgba(255,255,255,0.14);
  --white: #FFFFFF;

  --font-display: "Spectral", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* faint grid-line watermark, evokes transmission-line schematics */
.gridmark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
}
.gridmark svg { width: 100%; height: 100%; }
.gridmark line { stroke: var(--ink); stroke-width: 0.4; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  gap: 32px;
}
.site-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  background: var(--bg-deep);
  color: var(--white);
  padding: 88px 0 64px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.18;
  margin: 0 0 26px;
  max-width: 780px;
}
.hero-name { color: var(--accent); }
.hero-lede {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0 0 48px;
}

.id-strip {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  max-width: 720px;
}
.id-strip dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.id-strip dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .id-strip { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 18px; }
}
.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dim);
  margin: 0 0 10px;
  letter-spacing: 0.05em;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0;
  color: var(--ink);
}
.section-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0;
}

/* ---------- license card ---------- */
.license-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: 30px 32px;
  max-width: 640px;
}
.license-kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent-dim);
  margin: 0 0 12px;
}
.license-title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 22px;
}
.license-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.license-link:hover { background: var(--accent-dim); }
.license-link span { font-size: 15px; }

/* ---------- register (нормативна база) ---------- */
.reestr { border-bottom: none; }
.reestr-head { max-width: 680px; margin-bottom: 40px; }
.reestr-head h2 { margin: 0 0 16px; }
.reestr-lede {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.reg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.reg-list li { border-bottom: 1px solid var(--line); }
.reg-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.reg-list a:hover {
  background: rgba(201,138,44,0.06);
  padding-left: 14px;
}
.reg-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-dim);
  flex: 0 0 24px;
}
.reg-title {
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.5;
}
.reg-go {
  flex: 0 0 auto;
  font-size: 15px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.reg-list a:hover .reg-go { opacity: 1; transform: translateX(0); }

.reg-featured a { background: rgba(201,138,44,0.08); }
.reg-featured .reg-num { color: var(--accent); font-weight: 600; }
.reg-featured .reg-title { font-weight: 500; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-deep);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
.footer-brand {
  color: var(--white);
  margin: 0 0 10px;
}
.footer-full-name {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
  max-width: 220px;
}
.footer-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
  margin: 0;
}
.footer-details dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.footer-details dd {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}
.footer-details a { text-decoration: none; }
.footer-details a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 18px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* keyboard focus visibility */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
