/* AB-EXIT — Shared styles for /ru/ and /en/ versions
 * Color palette: matches logo
 * A = blue #3080F0 (Democratic / Liberal)
 * B = red #E04040 (Republican / Conservative)
 * Background: black, text: white
 */

:root {
  --blue: #3080F0;
  --blue-bright: #5099FF;
  --blue-dim: #1f5fbf;
  --blue-glow: rgba(48, 128, 240, 0.15);

  --red: #E04040;
  --red-bright: #FF5555;
  --red-dim: #B82F2F;
  --red-glow: rgba(224, 64, 64, 0.15);

  --bg: #000000;
  --bg-card: #0d0d0f;
  --bg-elevated: #15151a;

  --text: #ffffff;
  --text-muted: #a8a8b3;
  --text-dim: #6b6b75;

  --border: #1f1f25;
  --border-bright: #2e2e36;

  /* Primary accent = blue (CTAs, links) */
  --accent: var(--blue);
  --accent-dim: var(--blue-dim);

  /* Danger = red (warnings, "what this is NOT") */
  --danger: var(--red);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === NAV === */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

nav .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.nav-logo {
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 2px;
}
.nav-logo .a { color: var(--blue); }
.nav-logo .sep { color: white; margin: 0 4px; font-weight: 400; }
.nav-logo .b { color: var(--red); }
.nav-logo .text { color: var(--text); margin-left: 4px; font-weight: 600; font-size: 16px; }

.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.lang-switch {
  display: flex; gap: 2px;
  background: var(--bg-elevated);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.lang-switch a { padding: 4px 10px; border-radius: 4px; color: var(--text-muted); font-weight: 600; }
.lang-switch a.active { background: var(--blue); color: white; }

/* === HERO === */
.hero {
  padding: 90px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg,
    var(--blue) 0%, var(--blue) 33%,
    white 33%, white 66%,
    var(--red) 66%, var(--red) 100%);
}
.hero::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px; pointer-events: none;
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 60%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1; font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 24px; max-width: 900px; margin-left: auto; margin-right: auto;
  color: var(--text);
}
.hero h1 .accent { color: var(--blue); display: block; }

.hero .subtitle {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-muted);
  max-width: 720px; margin: 0 auto 36px; line-height: 1.5;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn {
  display: inline-block; padding: 13px 24px;
  border-radius: 6px; font-weight: 600; font-size: 15px;
  transition: all 0.2s; cursor: pointer; border: none; letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--blue); color: white; border: 1px solid var(--blue);
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(48, 128, 240, 0.35);
}
.btn-secondary {
  background: transparent; border: 1px solid var(--border-bright); color: var(--text);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* === TRUST BAR === */
.trust-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 22px 28px;
  max-width: 800px; margin: 0 auto;
  text-align: left;
}
.trust-bar-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue); margin-bottom: 10px;
}
.trust-bar-text { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.trust-bar-text strong { color: var(--text); }
.trust-bar-text a { color: var(--blue); font-weight: 600; border-bottom: 1px solid var(--blue); }

/* === STATS COUNTER === */
.stats-bar {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.stat { text-align: center; padding: 24px 12px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-value {
  font-size: clamp(22px, 3.5vw, 32px); font-weight: 700;
  color: var(--blue); line-height: 1; margin-bottom: 6px;
}
.stat:nth-child(3) .stat-value { color: var(--red); }
.stat-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 1.3; font-weight: 500;
}
@media (max-width: 700px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+1) { border-bottom: none; }
}

/* === SECTIONS === */
section { padding: 80px 0; border-bottom: 1px solid var(--border); }
section:nth-child(even) { background: var(--bg-card); }

.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--red); margin-bottom: 14px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px); line-height: 1.15;
  font-weight: 700; letter-spacing: -0.025em;
  margin-bottom: 32px; max-width: 800px; color: var(--text);
}
h3 {
  font-size: clamp(20px, 2.5vw, 24px); line-height: 1.3;
  font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 14px; color: var(--text);
}
h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text); }

p { margin-bottom: 16px; color: var(--text-muted); max-width: 720px; }
p:last-child { margin-bottom: 0; }

/* === A/B DIAGRAM === */
.ab-diagram { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }

.ab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 32px;
  position: relative;
  transition: all 0.2s;
}
.ab-card:first-child {
  border-top: 3px solid var(--blue);
  box-shadow: 0 0 0 1px transparent;
}
.ab-card:first-child:hover {
  box-shadow: 0 0 24px var(--blue-glow), 0 0 0 1px var(--blue);
  border-color: var(--blue);
}
.ab-card:last-child {
  border-top: 3px solid var(--red);
}
.ab-card:last-child:hover {
  box-shadow: 0 0 24px var(--red-glow), 0 0 0 1px var(--red);
  border-color: var(--red);
}

.ab-card-letter {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; color: white;
}
.ab-card:first-child .ab-card-letter { background: var(--blue); }
.ab-card:last-child .ab-card-letter { background: var(--red); }

.ab-card h3 { margin-bottom: 16px; padding-right: 60px; }
.ab-card p { color: var(--text-muted); font-size: 15px; }

@media (max-width: 700px) { .ab-diagram { grid-template-columns: 1fr; } }

/* === GRID LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px;
}
.card h4 { color: var(--text); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--text-muted); margin-bottom: 0; }

/* === NOT-WHAT-IT-IS === */
.misconception {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 6px; padding: 20px 24px;
}
.misconception .neq { font-size: 22px; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.misconception h4 { color: var(--text); margin-bottom: 8px; }
.misconception p { font-size: 14px; margin-bottom: 0; color: var(--text-muted); }

/* === ABOUT AUTHOR === */
.author-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 8px; padding: 32px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 28px; align-items: start;
}
.author-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; color: var(--blue);
}
.author-content h3 { margin-bottom: 6px; }
.author-tagline { font-size: 14px; color: var(--red); font-weight: 600; margin-bottom: 14px; }
.author-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.author-links a {
  color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--border-bright); padding-bottom: 1px;
}
.author-links a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 600px) {
  .author-block { grid-template-columns: 1fr; text-align: center; }
  .author-avatar { margin: 0 auto; }
  .author-links { justify-content: center; }
}

/* === COMPARISON TABLE === */
.comparison-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 32px;
}
.comparison-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.comparison-table th, .comparison-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
}
.comparison-table th {
  background: var(--blue); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: white;
}
.comparison-table td { color: var(--text-muted); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--bg-elevated); }
.comparison-table .row-highlight { background: rgba(48, 128, 240, 0.08); }
.comparison-table .row-highlight:hover { background: rgba(48, 128, 240, 0.12); }
.comparison-table .row-highlight td { color: var(--text); font-weight: 600; }
.comparison-table .row-highlight td:first-child { color: var(--blue); font-weight: 700; }
@media (max-width: 700px) {
  .comparison-table { overflow-x: auto; }
  .comparison-table table { min-width: 600px; }
}

/* === AI QUOTES === */
.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 8px; padding: 28px;
  position: relative;
}
.quote-card::before {
  content: """; position: absolute; top: 0; left: 20px;
  font-size: 80px; color: var(--red); line-height: 1;
  opacity: 0.25; font-family: Georgia, serif;
}
.quote-text {
  font-size: 16px; color: var(--text); line-height: 1.5;
  margin-bottom: 16px; font-style: italic; padding-top: 20px;
}
.quote-attribution { font-size: 13px; color: var(--text-muted); }
.quote-attribution strong { color: var(--red); }

/* === ROLE CTAs === */
.role-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px;
}
@media (min-width: 900px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .role-grid { grid-template-columns: 1fr; } }

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 24px;
  transition: all 0.2s;
}
.role-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px var(--blue-glow);
  transform: translateY(-2px);
}
.role-icon { font-size: 22px; margin-bottom: 12px; }
.role-card h4 { color: var(--text); margin-bottom: 10px; }
.role-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.role-card .role-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--blue); border-bottom: 1px solid var(--blue);
  padding-bottom: 1px;
}

/* === TIMELINE === */
.timeline-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-weight: 700; color: var(--red); font-size: 14px;
  font-family: "SF Mono", "Menlo", Monaco, monospace;
}
.timeline-content { font-size: 15px; color: var(--text-muted); }
.timeline-content strong { color: var(--text); }
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

/* === FOOTER === */
footer {
  padding: 60px 0 40px;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
}
footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--blue) 0%, var(--blue) 33%,
    white 33%, white 66%,
    var(--red) 66%, var(--red) 100%);
}
footer p { margin: 0 auto 12px; max-width: none; font-size: 13px; color: var(--text-dim); }
footer .disclaimer {
  max-width: 700px; margin: 24px auto;
  font-size: 12px; color: var(--text-dim); line-height: 1.6;
  padding: 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
}
footer .copyright { margin-top: 24px; font-size: 12px; color: var(--text-dim); }

/* === CONTACT === */
.contact-block {
  background: linear-gradient(135deg, var(--blue-glow) 0%, var(--red-glow) 100%);
  border: 1px solid var(--border-bright);
  border-radius: 8px; padding: 40px; text-align: center; margin-top: 32px;
}
.contact-block h3 { font-size: 22px; margin-bottom: 12px; color: var(--text); }
.contact-block p { margin: 0 auto 24px; max-width: 600px; color: var(--text-muted); }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mt-8 { margin-top: 48px; }
.mb-4 { margin-bottom: 24px; }

.section-intro {
  font-size: 18px; color: var(--text-muted);
  max-width: 720px; margin-bottom: 40px; line-height: 1.55;
}

.emphasis-box {
  font-size: 17px; color: var(--text); margin-top: 24px;
  padding: 20px; background: var(--bg-card);
  border-left: 3px solid var(--blue); border-radius: 6px;
}
