.article-site {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(79,124,255,.12), transparent 28%),
    radial-gradient(circle at 88% 28%, rgba(139,92,246,.12), transparent 24%),
    var(--bg);
}

.article-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(5,9,20,.78);
  backdrop-filter: blur(18px);
}

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

.article-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.article-brand img { width: 34px; height: 34px; }

.article-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-button,
.article-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #eaf0ff;
  background: rgba(255,255,255,.035);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.article-button {
  border-color: rgba(139,92,246,.5);
  background: linear-gradient(135deg, rgba(139,92,246,.34), rgba(79,124,255,.24));
}

.article-button:hover,
.article-back:hover {
  border-color: rgba(30,214,255,.55);
  transform: translateY(-2px);
}

.article-hero {
  padding: 145px 0 36px;
}

.article-hero__inner {
  width: min(100%, 900px);
  margin-inline: auto;
  text-align: center;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: 11px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 15px;
  padding: 6px 11px;
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 999px;
  color: #c9b7ff;
  background: rgba(139,92,246,.1);
  font-size: 11px;
  font-weight: 700;
}

.article-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.45;
}

.article-lead {
  width: min(100%, 760px);
  margin: 0 auto 21px;
  color: #b7c0d5;
  font-size: 15px;
  line-height: 2;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted-2);
  font-size: 11px;
}

.article-cover {
  width: min(calc(100% - 40px), 1080px);
  margin: 25px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  align-items: start;
  gap: 54px;
  width: min(calc(100% - 40px), 1050px);
  margin: 0 auto;
  padding: 58px 0 90px;
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  margin: 48px 0 15px;
  color: #f5f7ff;
  font-size: clamp(23px, 3vw, 31px);
  font-weight: 900;
  line-height: 1.55;
}

.article-content h3 {
  margin: 31px 0 11px;
  font-size: 20px;
  font-weight: 800;
}

.article-content p,
.article-content li {
  color: #aeb8ce;
  font-size: 14px;
  line-height: 2.15;
}

.article-content p { margin-bottom: 17px; }

.article-content ul,
.article-content ol {
  display: grid;
  gap: 9px;
  margin: 18px 0 25px;
  padding-right: 23px;
}

html[dir='ltr'] .article-content ul,
html[dir='ltr'] .article-content ol {
  padding-right: 0;
  padding-left: 23px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content strong { color: #ecf1ff; }

.article-figure {
  margin: 31px 0;
}

.article-figure img {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
}

.article-figure figcaption {
  margin-top: 9px;
  color: var(--muted-2);
  font-size: 10px;
  text-align: center;
}

.article-note,
.article-summary {
  margin: 26px 0;
  padding: 21px 23px;
  border: 1px solid rgba(30,214,255,.2);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(30,214,255,.075), rgba(139,92,246,.07));
}

.article-note p,
.article-summary p { margin: 0; }

.article-summary h2 { margin-top: 0; }

.article-toc {
  position: sticky;
  top: 88px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12,18,35,.72);
  backdrop-filter: blur(14px);
}

.article-toc h2 {
  margin-bottom: 13px;
  font-size: 14px;
}

.article-toc ol {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li { counter-increment: toc; }

.article-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  color: #8f9bb4;
  font-size: 10px;
  line-height: 1.75;
  transition: color .2s ease;
}

.article-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #7766d9;
  font-family: Arial, sans-serif;
}

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

.article-cta {
  margin-top: 52px;
  padding: 28px;
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(93,63,205,.25), rgba(19,107,170,.2));
  text-align: center;
}

.article-cta h2 { margin: 0 0 9px; }
.article-cta p { margin-bottom: 18px; }

.article-related {
  width: min(calc(100% - 40px), 1050px);
  margin: 0 auto 85px;
}

.article-related > h2 {
  margin-bottom: 21px;
  font-size: 25px;
}

.article-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.article-related__card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
  transition: transform .25s ease, border-color .25s ease;
}

.article-related__card:hover {
  border-color: rgba(30,214,255,.35);
  transform: translateY(-3px);
}

.article-related__card small { color: #7f8aa3; font-size: 9px; }
.article-related__card h3 { margin: 8px 0 0; font-size: 15px; }

.article-footer {
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted-2);
  background: #050914;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 850px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-toc { position: static; order: -1; }
  .article-toc ol { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .article-header { padding: 8px 0; }
  .article-nav__actions .article-back { display: none; }
  .article-button { min-height: 40px; padding-inline: 12px; font-size: 11px; }
  .article-hero { padding: 112px 0 24px; }
  .article-hero h1 { font-size: clamp(28px, 8.5vw, 38px); }
  .article-lead { font-size: 13px; }
  .article-cover { width: calc(100% - 22px); border-radius: 19px; }
  .article-cover img { aspect-ratio: 16 / 10; }
  .article-layout { width: calc(100% - 24px); padding: 38px 0 68px; }
  .article-content p, .article-content li { font-size: 13px; }
  .article-content h2 { margin-top: 39px; }
  .article-figure img { border-radius: 15px; }
  .article-toc ol { grid-template-columns: 1fr; }
  .article-related { width: calc(100% - 24px); margin-bottom: 65px; }
  .article-related__grid { grid-template-columns: 1fr; }
  .article-cta { padding: 23px 18px; }
}

html[data-theme='light'] .article-site {
  background:
    radial-gradient(circle at 12% 8%, rgba(37,99,235,.1), transparent 28%),
    radial-gradient(circle at 88% 28%, rgba(109,78,232,.09), transparent 24%),
    var(--bg);
}

html[data-theme='light'] .article-category {
  border-color: rgba(109,78,232,.24);
  color: #6245c6;
  background: rgba(109,78,232,.07);
}

html[data-theme='light'] .article-lead,
html[data-theme='light'] .article-content p,
html[data-theme='light'] .article-content li {
  color: #56647d;
}

html[data-theme='light'] .article-content h2,
html[data-theme='light'] .article-content h3,
html[data-theme='light'] .article-content strong,
html[data-theme='light'] .article-related h2,
html[data-theme='light'] .article-related h3 {
  color: #15233f;
}

html[data-theme='light'] .article-cover,
html[data-theme='light'] .article-toc,
html[data-theme='light'] .article-related__card {
  border-color: rgba(55,87,154,.15);
  background: rgba(255,255,255,.72);
  box-shadow: 0 24px 70px rgba(60,83,134,.12);
}

html[data-theme='light'] .article-note,
html[data-theme='light'] .article-summary,
html[data-theme='light'] .article-cta {
  border-color: rgba(37,99,235,.18);
  background: linear-gradient(135deg, rgba(14,165,233,.07), rgba(109,78,232,.06));
}

html[data-theme='light'] .article-button {
  color: #172641;
  background: linear-gradient(135deg, rgba(109,78,232,.14), rgba(37,99,235,.1));
}
