:root {
  --bg-space: #05070b;
  --bg-surface: #0e121a;
  --bg-card: rgba(18, 24, 36, 0.75);
  --bg-card-hover: rgba(26, 36, 54, 0.9);
  
  --cyan-neon: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --cyan-glow-intense: rgba(0, 240, 255, 0.85);
  --plasma-accent: #ff4d2d;
  
  --ink: #f8fafc;
  --ink-secondary: #cbd5e1;
  --muted: #94a3b8;
  --muted-dark: #64748b;
  --line: rgba(255, 255, 255, 0.08);
  --line-subtle: rgba(255, 255, 255, 0.05);
  
  --font-display: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", Arial, sans-serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1280px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-space);
}

body {
  background-color: var(--bg-space);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
  
  background-image: 
    radial-gradient(1px 1px at 30px 40px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 90px, #00f0ff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 280px 210px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 400px 70px, rgba(255,255,255,0.85), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 520px 300px, #94a3b8, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 660px 150px, #00f0ff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 800px 420px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 950px 120px, #ff4d2d, rgba(0,0,0,0)),
    radial-gradient(circle at 70% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 15% 60%, rgba(255, 77, 45, 0.03) 0%, transparent 40%);
  background-size: 550px 550px, 400px 400px, 600px 600px, 700px 700px, 500px 500px, 650px 650px, 800px 800px, 900px 900px, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan-neon);
  color: #05070b;
  font-weight: 700;
  border-radius: 4px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.site-shell {
  width: min(100%, var(--shell));
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* Шапка статьи */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.site-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-brand::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, var(--cyan-neon) 100%);
  box-shadow: 0 0 10px var(--cyan-neon);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.header-action {
  background: linear-gradient(180deg, rgba(42, 50, 64, 0.85) 0%, rgba(16, 20, 28, 0.95) 100%);
  border: 1.5px solid var(--cyan-neon);
  color: #ffffff;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  box-shadow: 0 0 12px var(--cyan-glow);
  transition: all 0.25s ease;
}

.header-action:hover {
  background: linear-gradient(180deg, rgba(55, 68, 88, 0.95) 0%, rgba(22, 28, 40, 1) 100%);
  border-color: #55ffff;
  box-shadow: 0 0 25px var(--cyan-glow-intense);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 999px;
  background: rgba(14, 18, 26, 0.92);
  color: #fff;
  font: 700 13px/1 var(--font-sans);
  cursor: pointer;
}

/* Article Hero Header */
.article-hero {
  max-width: 920px;
  margin: 20px 0 36px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s;
}

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

.article-kicker {
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-neon);
  box-shadow: 0 0 8px var(--cyan-neon);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 20px;
}

.article-deck {
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
}

.article-meta span {
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Визуальный Flow */
.article-visual {
  margin: 32px 0 48px;
  padding: 24px 28px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 12px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
}

.article-visual__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.article-visual__flow span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.article-visual__flow span:last-child {
  border-color: var(--plasma-accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 77, 45, 0.3);
}

/* Макет статьи */
.article-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  margin-bottom: 60px;
}

.article-aside {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.article-aside p:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan-neon);
  margin-bottom: 16px;
}

.article-aside a {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: color 0.2s;
}

.article-aside a:hover {
  color: var(--cyan-neon);
}

/* Тело статьи */
.article-body {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  color: #ffffff;
  margin: 44px 0 18px;
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  color: #ffffff;
  margin: 32px 0 14px;
}

.article-body ul, .article-body ol {
  margin: 0 0 28px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

blockquote {
  margin: 36px 0;
  padding: 22px 28px;
  background: rgba(0, 240, 255, 0.04);
  border-left: 3px solid var(--cyan-neon);
  border-radius: 0 12px 12px 0;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

/* Таблицы */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-subtle);
}

th {
  background: rgba(0, 240, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-neon);
}

td:nth-child(2) {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ffffff;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Примечание */
.article-note {
  margin: 32px 0;
  padding: 20px 24px;
  background: rgba(255, 77, 45, 0.06);
  border-left: 3px solid var(--plasma-accent);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: var(--muted);
}

.article-note strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* CTA в конце статьи */
.article-cta {
  margin: 48px 0 32px;
  padding: 36px 40px;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.article-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 28px);
}

.article-cta p {
  color: var(--muted);
  margin-bottom: 24px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(42, 50, 64, 0.9) 0%, rgba(16, 20, 28, 0.96) 100%);
  border: 1.5px solid var(--cyan-neon);
  color: #ffffff;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  box-shadow: 0 0 14px var(--cyan-glow);
  transition: all 0.25s ease;
}

.button-primary:hover {
  background: linear-gradient(180deg, rgba(55, 68, 88, 0.95) 0%, rgba(22, 28, 40, 1) 100%);
  border-color: #55ffff;
  box-shadow: 0 0 28px var(--cyan-glow-intense), 0 0 50px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

/* Связанные статьи */
.related-articles {
  margin: 60px 0 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.related-card {
  padding: 24px;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
}

.related-card span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-neon);
  display: block;
  margin-bottom: 8px;
}

.related-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  color: #ffffff;
}

/* Футер */
.site-footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted-dark);
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer nav a:hover {
  color: var(--cyan-neon);
}

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
  .site-shell { padding: 0 18px; }
  .site-header {
    height: 64px;
    margin-bottom: 28px;
    gap: 12px;
  }
  .site-brand { margin-right: auto; }
  .header-action { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 14px;
    background: rgba(5, 7, 11, 0.98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 16px;
  }
  .site-nav a:hover,
  .site-nav a:focus-visible { background: rgba(0, 240, 255, 0.08); }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    display: none;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-hero { margin-top: 8px; }
  .article-body,
  main { min-width: 0; }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer nav { flex-wrap: wrap; row-gap: 10px; }
}

/* ==================== СТИЛИ ДЛЯ СТРАНИЦЫ БЛОГА (ВСЕ СТАТЬИ) ==================== */
.page-hero {
  margin: 30px 0 40px;
}

.eyebrow {
  color: var(--cyan-neon);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero__intro {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--muted);
  max-width: 680px;
  margin-top: 14px;
  line-height: 1.6;
}

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 40px;
}

.filter-button {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-button:hover {
  color: #fff;
  border-color: rgba(0, 240, 255, 0.4);
}

.filter-button.is-active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan-neon);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.article-card:focus {
  outline: none;
  background: var(--bg-card);
}

.article-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 240, 255, 0.15);
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-neon);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.article-card h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 12px;
}

.article-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-subtle);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
}

.article-card__arrow {
  color: var(--cyan-neon);
  font-size: 14px;
}

.contact-panel {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 18px;
  padding: 40px;
  margin: 60px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
}

.contact-panel__side p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 28px 22px; }
}

@media (max-width: 560px) {
  .site-shell { padding: 0 15px; }
  .site-nav { left: 15px; right: 15px; }
  .article-hero h1 { font-size: clamp(32px, 10vw, 44px); overflow-wrap: anywhere; }
  .article-deck { font-size: 16px; }
  .article-meta { gap: 8px 14px; }
  .article-visual { padding: 22px 16px; }
  .article-visual__flow { justify-content: flex-start; }
  .article-visual__flow span { padding: 8px 12px; font-size: 10px; }
  .article-body { font-size: 15.5px; }
  .article-body ul,
  .article-body ol { margin-left: 18px; }
  blockquote { padding: 18px 18px; font-size: 16px; }
  .article-note { padding: 18px; }
  .article-cta { padding: 26px 20px; }
  .button-primary { width: 100%; min-height: 50px; padding-left: 18px; padding-right: 18px; text-align: center; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { min-width: 130px; padding: 12px 14px; }
  .article-card { padding: 24px 20px; }
  .article-card__meta,
  .article-card__foot { gap: 12px; flex-wrap: wrap; }
  .blog-controls { margin: 24px 0 30px; }
  .filter-button { min-height: 44px; }
  .legal-content { overflow-wrap: anywhere; }
}
