/* Россия 2026 — liquid glass, тёмная тема с акцентами триколора */

:root {
  --bg-deep: #070b14;
  --bg-mid: #0f1628;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --text: #eef2f8;
  --text-muted: rgba(238, 242, 248, 0.68);
  --accent-blue: #3b82f6;
  --accent-red: #e11d48;
  --accent-gold: #d4a853;
  --accent-ice: #7dd3fc;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-glow: 0 0 80px rgba(59, 130, 246, 0.12);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(225, 29, 72, 0.18), transparent 50%),
    radial-gradient(ellipse 100% 60% at 90% 10%, rgba(59, 130, 246, 0.2), transparent 45%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(212, 168, 83, 0.08), transparent 55%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #0a0e18 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Liquid glass panels */
.glass-panel,
.glass-panel-strong,
.glass-panel-subtle {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    var(--shadow-glow),
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.glass-panel {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.glass-panel-strong {
  background: linear-gradient(145deg, var(--glass-bg-strong) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.glass-panel-subtle {
  background: rgba(10, 14, 24, 0.75);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
}

.glass-panel::before,
.glass-panel-strong::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 40%,
    transparent 60%,
    rgba(125, 211, 252, 0.12) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 12px clamp(16px, 4vw, 48px) 0;
  padding: 0 8px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #fff 33%, #3b82f6 33%, #3b82f6 66%, #e11d48 66%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.logo-accent {
  color: var(--accent-ice);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav > a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.main-nav > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: relative;
}

.nav-toggle-bar::before { top: -8px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: -2px;
  transform: rotate(-45deg);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-ice);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-dropdown-trigger:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(125, 211, 252, 0.35);
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid;
  gap: 2px;
  z-index: 50;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.nav-dropdown-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.15s;
}

.nav-dropdown-panel a:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(var(--nav-h) + 16px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(10, 14, 24, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid var(--glass-border);
    display: none;
  }

  .nav-dropdown-panel.is-open {
    display: grid;
  }
}

/* Hero */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(20px, 4vw, 48px) 3rem;
  display: grid;
  gap: 1.5rem;
}

.hero-content {
  padding: clamp(1.75rem, 4vw, 3rem);
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-ice);
  font-weight: 600;
}

.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  color: #fff;
  border: none;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-ice), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(20px, 4vw, 48px);
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 640px;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .timeline-card:last-child {
    grid-column: span 3;
  }
}

.timeline-card {
  padding: 1.35rem 1.5rem;
}

.timeline-era {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
}

.timeline-card h3 {
  margin: 0.4rem 0 0.5rem;
  font-size: 1.15rem;
}

.timeline-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* News */
.news-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.news-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.news-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.news-link {
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-ice);
  text-decoration: none;
}

.news-link:hover {
  text-decoration: underline;
}

/* Leadership split */
.split {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.split-text {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.split-text h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
}

.split-text .lead {
  color: var(--text);
  font-weight: 500;
}

.split-text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.checklist {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.checklist li {
  margin-bottom: 0.4rem;
}

.split-visual {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.patriotic-quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

.patriotic-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* Party */
.party-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .party-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.party-card {
  padding: 1.5rem;
}

.party-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--accent-ice);
}

.party-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-footnote {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-footnote a {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Services mosaic */
.services-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.service-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(59, 130, 246, 0.1);
}

.service-icon {
  font-size: 1.75rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Footer */
.site-footer {
  margin: 2rem clamp(16px, 4vw, 48px) 24px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
