
/* Базовые переменные и reset */
:root {
  --bg: #070915;
  --bg-soft: #0e1226;
  --card: rgba(18, 24, 48, 0.72);
  --card-strong: rgba(12, 17, 37, 0.92);
  --text: #edf2ff;
  --muted: #a5b0d6;
  --line: rgba(155, 170, 255, 0.18);
  --primary: #8f5bff;
  --secondary: #35c7ff;
  --accent: #5168ff;
  --success: #9effd5;
  --shadow: 0 20px 60px rgba(17, 26, 63, 0.48);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(143, 91, 255, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(53, 199, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #060814 0%, #090d1f 45%, #05070f 100%);
  color: var(--text);
  line-height: 1.65;
  min-width: 320px;
}

img {
  max-width: 100%;
  display: block;
}

iframe {
  border: 0;
  border-radius: 18px;
  background: #020409;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 8, 19, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 22px rgba(143, 91, 255, 0.8);
}

.site-nav ul,
.footer-links,
.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(143, 91, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(143, 91, 255, 0.22);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  font-size: 20px;
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  padding: 64px 0 24px;
}

.page-hero.compact {
  padding: 44px 0 10px;
}

.hero-grid,
.split-grid,
.article-layout,
.footer-grid,
.stats-grid,
.card-grid,
.link-grid,
.video-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 68ch;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(53, 199, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(53, 199, 255, 0.15);
  color: #c7efff;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 32px rgba(82, 81, 255, 0.3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-panel,
.glass-card,
.info-card,
.link-card,
.sidebar-card,
.article-card,
.stat-card,
.cta-card {
  background: linear-gradient(180deg, rgba(17, 23, 47, 0.8), rgba(9, 13, 26, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel {
  padding: 22px;
  position: relative;
}

.hero-panel::before,
.cta-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(143, 91, 255, 0.28), rgba(53, 199, 255, 0.18), transparent 45%);
  z-index: -1;
  filter: blur(18px);
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card {
  padding: 18px;
  min-height: 116px;
}

.stat-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

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

/* Sections */
.content-section {
  padding: 34px 0;
}

.content-section.alt {
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.55), rgba(7, 10, 20, 0.1));
}

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

.section-heading h2,
.article-card h2,
.info-card h2,
.cta-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
}

.section-heading p,
.info-card p,
.link-card p,
.glass-card p,
.article-card p,
.sidebar-card p,
.cta-card p {
  color: var(--muted);
}

.card-grid.three,
.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.link-card,
.glass-card,
.sidebar-card,
.article-card {
  padding: 24px;
}

.info-card,
.link-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.info-card:hover,
.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 91, 255, 0.34);
}

.link-card h3,
.info-card h3,
.sidebar-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-layout {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.95fr);
  align-items: start;
}

.article-card p + p {
  margin-top: 16px;
}

.sidebar-links li + li,
.footer-links li + li {
  margin-top: 10px;
}

.sidebar-links a,
.footer-links a,
.text-link {
  color: #cae5ff;
}

.text-link:hover,
.sidebar-links a:hover,
.footer-links a:hover {
  color: white;
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.cta-discuss {
  padding: 12px 0 52px;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 32px;
}

.cta-card p {
  max-width: 760px;
  margin: 0 auto 20px;
}

/* Breadcrumbs */
.breadcrumbs {
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a:hover {
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  background: rgba(2, 5, 12, 0.7);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  padding: 30px 0 18px;
}

.footer-bottom {
  padding: 16px 0 28px;
  color: var(--muted);
  font-size: 0.94rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-gap {
  margin-top: 22px;
}

/* Mobile first refinements */
@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .article-layout,
  .footer-grid,
  .card-grid.three,
  .video-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.two,
  .video-grid.two,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }
}

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

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 12px 0 18px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .hero {
    padding-top: 38px;
  }

  .button {
    width: 100%;
  }

  .card-grid.two,
  .video-grid.two,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .video-card iframe {
    height: 320px;
  }

  .info-card,
  .link-card,
  .glass-card,
  .sidebar-card,
  .article-card,
  .cta-card {
    padding: 20px;
  }
}
