﻿:root {
  --bg-main: #0e0f12;
  --bg-alt: #14171d;
  --bg-card: #16181d;
  --bg-card-soft: #1b1f27;
  --text-main: #f5f5f5;
  --text-muted: #b9b9b9;
  --line: #2e3038;
  --line-soft: #2a2d35;
  --gold: #d4af37;
  --gold-dark: #b8962e;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.3);
  --danger: #e74c3c;
  --ok: #2ecc71;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 175, 55, 0.18) 0%, rgba(212, 175, 55, 0) 65%),
    radial-gradient(800px 400px at 95% 120%, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0) 50%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 40%, #0a0b0f 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.discipline-page {
  width: min(1120px, 94vw);
  margin: 0 auto;
  padding: 26px 24px 20px;
}

.hero-discipline {
  margin-bottom: 14px;
  text-align: center;
}

.hero-discipline-note {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 46px 36px;
  background: linear-gradient(135deg, #1a1d24 0%, #16181d 46%, #111319 100%);
  box-shadow: var(--shadow);
  margin-bottom: 42px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -150px;
  top: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0) 70%);
  pointer-events: none;
  animation: heroGlow 6s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  left: -100px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite reverse;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.back-link:hover {
  gap: 12px;
  text-shadow: 0 0 12px var(--gold-glow);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: 92px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px var(--gold-glow));
  animation: logoFloat 4.8s ease-in-out infinite;
}

.logo-caption {
  margin: -2px 0 8px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.hero-kicker {
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.05rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f5f5f5 0%, #d4af37 50%, #f5f5f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 0.8s ease-out;
}

.hero-subheadline {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  max-width: 820px;
  animation: slideInUp 0.8s ease-out 0.08s both;
}

.hero-description {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 28px;
  animation: slideInUp 0.8s ease-out 0.14s both;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #e8c547 100%);
  color: #000;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
}

.btn-secondary,
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--gold-soft);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}

.btn-xl {
  padding: 17px 46px;
  font-size: 1.12rem;
}

.section {
  margin-bottom: 56px;
  animation: fadeInUp 0.8s ease-out;
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #f5f5f5 0%, var(--gold) 50%, #f5f5f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle,
.lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 20px;
  max-width: 880px;
}

.section-intro {
  margin-bottom: 22px;
}

.unified-card {
  position: relative;
  background: linear-gradient(135deg, rgba(22, 24, 29, 0.5) 0%, rgba(27, 31, 39, 0.3) 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  overflow: hidden;
}

.unified-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.unified-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 44px rgba(212, 175, 55, 0.12);
}

.unified-card:hover::before {
  opacity: 1;
}

.unified-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}

.col-2-equal {
  grid-template-columns: 1fr 1fr;
}

.meta-list ul,
.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.meta-list li,
.checklist li {
  color: var(--text-muted);
  padding: 7px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.meta-list li::before,
.checklist li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.chart-context-inline {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold);
}

.chart-context-inline .important {
  color: var(--gold);
  margin: 0;
}

.line-chart {
  width: 100%;
  margin: 10px 0 0;
}

.line-chart.small-chart {
  max-width: 100%;
}

.line-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-line {
  fill: none;
  stroke-width: 3;
}

.chart-line.success { stroke: var(--ok); }
.chart-line.danger { stroke: var(--danger); }

.chart-grid { stroke: rgba(255,255,255,0.06); }
.chart-axis { stroke: rgba(255,255,255,0.22); }
.chart-label { fill: var(--text-muted); font-size: 11px; }

.chart-caption {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 0.92rem;
}

.micro-copy {
  margin-top: 10px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.grid.narrow {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(135deg, rgba(22, 24, 29, 0.55) 0%, rgba(27, 31, 39, 0.35) 100%);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.15);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.rule-box {
  margin-top: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.03) 100%);
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 12px;
  padding: 16px;
}

.rule-box h3 {
  color: var(--gold);
  font-size: 1.04rem;
  margin-bottom: 8px;
}

.rule-box p {
  margin: 0;
  color: var(--text-muted);
}

.content-block {
  background: linear-gradient(135deg, rgba(17, 20, 27, 0.88) 0%, rgba(22, 24, 29, 0.7) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-top: 16px;
}

.content-block h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.content-block p,
.content-block li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.content-block ol {
  margin: 8px 0 0 18px;
}

.content-block li {
  margin: 6px 0;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.metrics-table th,
.metrics-table td {
  padding: 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.92rem;
}

.metrics-table th {
  color: var(--text-main);
  font-weight: 700;
  border-top: none;
}

.metrics-table td {
  color: var(--text-muted);
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.04) 100%);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 52px 24px;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
}

.cta-content h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, #f5f5f5 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content > p {
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 20px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

footer.container {
  width: min(1120px, 94vw);
  margin: 26px auto 26px;
  padding: 20px 10px;
  text-align: center;
}

footer.container p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.75s ease forwards;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroGlow {
  0%, 100% { filter: blur(40px) brightness(1); opacity: 0.6; }
  50% { filter: blur(40px) brightness(1.2); opacity: 0.8; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 1024px) {
  .discipline-page {
    padding: 20px 20px 18px;
  }

  .hero {
    padding: 38px 26px;
  }

  .unified-inner,
  .col-2-equal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .discipline-page {
    padding: 14px 16px 14px;
  }

  .hero {
    padding: 26px 18px;
    border-radius: 14px;
    margin-bottom: 34px;
  }

  .hero::before,
  .hero::after {
    opacity: 0.5;
    filter: blur(30px);
  }

  .back-link {
    margin-bottom: 14px;
  }

  .hero-logo {
    width: 78px;
  }

  .hero-headline {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }

  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 0.93rem;
    margin-bottom: 22px;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .btn-lg,
  .btn-xl,
  .btn {
    width: 100%;
    min-height: 46px;
  }

  .section {
    margin-bottom: 40px;
  }

  .section h2 {
    font-size: 1.45rem;
  }

  .section-subtitle,
  .lead {
    font-size: 0.94rem;
  }

  .unified-card {
    padding: 18px;
  }

  .content-block {
    padding: 16px;
  }

  .metrics-table th,
  .metrics-table td {
    font-size: 0.82rem;
    padding: 8px 6px;
  }

  .cta-box {
    padding: 34px 16px;
    border-radius: 16px;
  }

  .cta-content h2 {
    font-size: 1.35rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hero-headline {
    font-size: 1.38rem;
  }

  .hero-subheadline,
  .hero-description {
    font-size: 0.88rem;
  }

  .section h2 {
    font-size: 1.2rem;
  }

  .hero-discipline-note {
    font-size: 0.7rem;
  }
}
