/* ============================================================================
   LUMAYN — Articles (v5: clean glass-blue design, icon-driven backdrops)
   No per-game theming — icons are colourful, cards/backgrounds neutral.
   ============================================================================ */

:root {
  --art-blue:   #007AFF;
  --art-deep:   #0051D5;
  --art-light:  #5AC8FA;
  --art-tint:   #eef4ff;
  --art-glass:  rgba(255, 255, 255, 0.65);
  --art-ink:    #1d1d1f;
  --art-mute:   rgba(29, 29, 31, 0.62);
  --art-mute2:  rgba(29, 29, 31, 0.5);
  --art-line:   rgba(0, 122, 255, 0.08);
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:  cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Hero (list page) ===== */
.articles-hero {
  position: relative;
  padding: 140px 24px 64px;
  overflow: hidden;
  text-align: center;
}
.articles-hero .container { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
/* Chunky branded badge — like the "Популярно" pill on game cards */
.lumayn-badge {
  display: inline-block;
  background: linear-gradient(160deg, #8FDFFF 0%, #2E9BFF 28%, #0051D5 100%);
  color: #fff;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 6px 14px -4px rgba(0, 81, 213, 0.42);
  margin-bottom: 18px;
}
body.v2-body .articles-hero-title {
  font-family: 'Martian Grotesk', 'Unbounded', 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(2rem, 5.4vw, 3.6rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  color: var(--art-ink) !important;
  margin: 0 0 22px !important;
}
/* Accent — same diagonal gradient as "LUMAYN APPSTORE" on the home hero */
body.v2-body .articles-hero-accent {
  background: linear-gradient(135deg, #1D1D1F 0%, #0051D5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  isolation: isolate;
}
/* Highlight swoosh behind "iOS-играм" — same style as home hero stripe */
body.v2-body .articles-hero-accent::before {
  content: '';
  position: absolute;
  left: -25%; right: -25%;
  top: -40%; bottom: -40%;
  background: radial-gradient(ellipse at center,
    rgba(90, 200, 250, 0.55) 0%,
    rgba(0, 122, 255, 0.25) 35%,
    rgba(0, 122, 255, 0) 70%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}
body.v2-body .articles-hero-sub {
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--art-mute);
  max-width: 540px;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-style: normal !important;
}

/* ===== Filters — horizontally scrollable on narrow screens ===== */
.articles-section { max-width: 1200px; margin: 0 auto; padding: 0 24px 100px; }
.articles-filters-wrap {
  margin: -10px -24px 22px;
  padding: 14px 24px;     /* vertical room so active glow / hover shadows aren't clipped */
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.articles-filters-wrap::-webkit-scrollbar { display: none; }
.articles-filters {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
.articles-filter {
  border: 1px solid rgba(0, 122, 255, 0.16);
  background: rgba(255, 255, 255, 0.6);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(29, 29, 31, 0.72);
  cursor: pointer;
  transition: all 0.45s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Inter', -apple-system, sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.articles-filter:hover {
  border-color: rgba(0, 122, 255, 0.35);
  color: var(--art-blue);
  transform: translateY(-1px);
}
.articles-filter.active {
  background: linear-gradient(180deg, var(--art-blue), var(--art-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px -6px rgba(0, 122, 255, 0.45);
}
@media (max-width: 640px) {
  .articles-hero { padding: 120px 20px 50px; }
  .articles-filters { justify-content: flex-start; padding: 2px 0; }
  .articles-filter { padding: 9px 16px; font-size: 0.85rem; }
}

/* ===== Article cards grid ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 4px 14px -4px rgba(10, 31, 61, 0.06),
    0 18px 40px -20px rgba(10, 31, 61, 0.08);
  border: 1px solid var(--art-line);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.article-card.visible { opacity: 1; transform: translateY(0); }
.article-card.hidden { display: none; }

.article-card-cover {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--art-tint) 0%, #f6faff 100%);
}
/* Swag wallpaper pattern — scattered game icons (Telegram-style backdrop) */
.article-card-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.article-card-pattern img {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.65) contrast(0.95);
}
.article-card-cover-icon {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 36px -10px rgba(0, 0, 0, 0.28),
    0 6px 14px -4px rgba(0, 0, 0, 0.14);
  z-index: 1;
  object-fit: cover;
}

/* Collage cover for general (non-game) articles */
.article-card-collage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-card-collage-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px -8px rgba(0, 0, 0, 0.22);
  margin-left: -14px;
  border: 3px solid #fff;
  background: #fff;
}
.article-card-collage-icon:first-child { margin-left: 0; }
.article-card-collage-icon:nth-child(1) { transform: rotate(-8deg) translateY(-2px); z-index: 3; }
.article-card-collage-icon:nth-child(2) { transform: translateY(2px); z-index: 2; }
.article-card-collage-icon:nth-child(3) { transform: rotate(8deg) translateY(-2px); z-index: 1; }
.article-card-collage[data-count="4"] .article-card-collage-icon:nth-child(1) { transform: rotate(-10deg) translateY(0); }
.article-card-collage[data-count="4"] .article-card-collage-icon:nth-child(2) { transform: rotate(-3deg) translateY(-2px); z-index: 3; }
.article-card-collage[data-count="4"] .article-card-collage-icon:nth-child(3) { transform: rotate(4deg) translateY(2px); z-index: 2; }
.article-card-collage[data-count="4"] .article-card-collage-icon:nth-child(4) { transform: rotate(10deg) translateY(0); }

.article-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-cat {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--art-blue);
  margin-bottom: 10px;
  font-weight: 500;
}
body.v2-body .article-card-title {
  font-family: 'Unbounded', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.06rem !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
  color: var(--art-ink) !important;
  margin: 0 0 10px !important;
}
body.v2-body .article-card-excerpt {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--art-mute);
  margin: 0 0 16px;
  flex: 1;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-style: normal !important;
}
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--art-line);
}
.article-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--art-mute2);
}
.article-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--art-blue);
}


/* ============================================================================
   ARTICLE PAGE
   ============================================================================ */

.article-hero {
  position: relative;
  padding: 120px 24px 50px;
  background: transparent;
}
.article-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  z-index: 1;
}
/* Article category pill — same chunky style as game-card badges */
.article-eyebrow {
  display: inline-block;
  background: linear-gradient(160deg, #8FDFFF 0%, #2E9BFF 28%, #0051D5 100%);
  color: #fff;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 6px 14px -4px rgba(0, 81, 213, 0.42);
  margin-bottom: 18px;
}

/* Small icon above the title — replaces the giant banner */
.article-hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 16px 36px -10px rgba(0, 0, 0, 0.24),
    0 6px 14px -4px rgba(0, 0, 0, 0.12);
  animation: article-hero-icon-float 6s var(--ease-soft) infinite;
}
@keyframes article-hero-icon-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.article-hero-icons {
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
}
.article-hero-icons img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid #fff;
  background: #fff;
  margin-left: -16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 30px -10px rgba(0, 0, 0, 0.22);
  animation: article-hero-icon-float 6s var(--ease-soft) infinite;
  animation-delay: calc(var(--ix, 0) * 0.4s);
}
.article-hero-icons img:first-child { margin-left: 0; }
.article-hero-icons img:nth-child(1) { transform: rotate(-8deg); }
.article-hero-icons img:nth-child(2) { z-index: 2; }
.article-hero-icons img:nth-child(3) { transform: rotate(8deg); }
@media (max-width: 640px) {
  .article-hero-icon { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 18px; }
  .article-hero-icons img { width: 60px; height: 60px; border-radius: 15px; margin-left: -14px; }
}
body.v2-body .article-title {
  font-family: 'Martian Grotesk', 'Unbounded', 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(1.7rem, 4.4vw, 2.8rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
  color: var(--art-ink) !important;
  margin: 0 0 18px !important;
}
body.v2-body .article-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--art-mute);
  margin: 0 0 24px;
  max-width: 680px;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-style: normal !important;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--art-mute2);
}
.article-meta-item { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 640px) {
  .article-hero { padding: 110px 20px 36px; }
}

/* ===== Body layout ===== */
.article-body-section { max-width: 1200px; margin: 0 auto; padding: 60px 24px 100px; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  justify-items: center;
}
.article-layout .article-content { width: 100%; }
/* TOC — soft glass panel with normal weight typography */
.article-toc {
  position: sticky;
  top: 100px;
  font-size: 0.93rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 122, 255, 0.1);
  border-radius: 20px;
  padding: 20px 22px;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 32px -16px rgba(10, 31, 61, 0.1);
}
body.v2-body .article-toc-title {
  font-family: 'Unbounded', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: -0.015em !important;
  color: var(--art-ink) !important;
  margin: 0 0 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-toc-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--art-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18);
}
.article-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.article-toc li {
  counter-increment: toc;
  padding: 9px 10px 9px 14px;
  border-radius: 10px;
  position: relative;
  transition:
    background-color 0.45s var(--ease),
    padding-left 0.45s var(--ease);
  opacity: 0;
  transform: translateY(8px);
}
.article-toc.toc-revealed li {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    background-color 0.45s var(--ease),
    padding-left 0.45s var(--ease);
}
.article-toc.toc-revealed li:nth-child(1) { transition-delay: 0.05s; }
.article-toc.toc-revealed li:nth-child(2) { transition-delay: 0.10s; }
.article-toc.toc-revealed li:nth-child(3) { transition-delay: 0.15s; }
.article-toc.toc-revealed li:nth-child(4) { transition-delay: 0.20s; }
.article-toc.toc-revealed li:nth-child(5) { transition-delay: 0.25s; }
.article-toc.toc-revealed li:nth-child(6) { transition-delay: 0.30s; }
.article-toc.toc-revealed li:nth-child(7) { transition-delay: 0.35s; }
.article-toc li:hover {
  background: rgba(0, 122, 255, 0.06);
  padding-left: 18px;
}
.article-toc li.toc-active {
  background: rgba(0, 122, 255, 0.1);
  padding-left: 18px;
}
.article-toc a {
  text-decoration: none;
  color: rgba(29, 29, 31, 0.72);
  line-height: 1.4;
  transition: color 0.45s var(--ease), font-weight 0.45s var(--ease);
  display: inline-block;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 500;
}
.article-toc a:hover { color: var(--art-blue); }
.article-toc a.active { color: var(--art-blue); font-weight: 700; }
.article-toc li::before {
  content: counter(toc);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--art-blue);
  background: rgba(0, 122, 255, 0.1);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  margin-right: 10px;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
  vertical-align: -4px;
}
.article-toc li:hover::before, .article-toc li.toc-active::before {
  background: var(--art-blue);
  color: #fff;
}

body.v2-body .article-content {
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(29, 29, 31, 0.85);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
body.v2-body .article-content p,
body.v2-body .article-content li,
body.v2-body .article-content ul,
body.v2-body .article-content ol {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-style: normal !important;
}
.article-section { margin: 0 0 44px; scroll-margin-top: 100px; }
body.v2-body .article-content h2 {
  font-family: 'Unbounded', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  color: var(--art-ink) !important;
  margin: 0 0 18px !important;
}
body.v2-body .article-content h3 {
  font-family: 'Unbounded', 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.18rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  color: var(--art-ink) !important;
  margin: 28px 0 12px !important;
}
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 24px; }
.article-content li { margin: 0 0 8px; line-height: 1.6; }
.article-content a {
  color: var(--art-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 81, 213, 0.25);
  transition: border-color 0.3s, color 0.3s;
}
.article-content a:hover { color: var(--art-deep); border-bottom-color: currentColor; }
.article-content strong { color: var(--art-ink); font-weight: 600; }

/* ===== CTA card — smooth button hover ===== */
.article-cta-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  margin: 36px 0;
  background: linear-gradient(135deg, var(--art-tint) 0%, #fff 100%);
  border: 1px solid rgba(0, 122, 255, 0.12);
  border-radius: 22px;
  flex-wrap: wrap;
}
.article-cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s var(--ease);
}
.article-cta-card:hover .article-cta-icon { transform: scale(1.04) rotate(-3deg); }
.article-cta-text { flex: 1; min-width: 200px; }
.article-cta-eyebrow {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--art-blue);
  margin-bottom: 4px;
}
body.v2-body .article-cta-title {
  font-family: 'Unbounded', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  letter-spacing: -0.025em !important;
  color: var(--art-ink) !important;
  margin-bottom: 6px !important;
}
.article-cta-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-cta-price { font-weight: 700; font-size: 1.1rem; color: var(--art-blue); font-family: 'Unbounded', sans-serif; }
.article-cta-price-old { text-decoration: line-through; color: var(--art-mute2); font-size: 0.95rem; }
.article-cta-badge { background: var(--art-blue); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
/* CTA button — fully custom, no inheritance fights */
body.v2-body .article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(180deg, var(--art-blue) 0%, var(--art-deep) 100%) !important;
  color: #fff !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: 0 8px 20px -6px rgba(0, 81, 213, 0.45) !important;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease) !important;
  flex-shrink: 0;
  cursor: pointer;
  letter-spacing: -0.005em !important;
}
body.v2-body .article-cta-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px -8px rgba(0, 81, 213, 0.55) !important;
}
body.v2-body .article-cta-btn:active {
  transform: translateY(0) !important;
  transition-duration: 0.15s !important;
}
body.v2-body .article-cta-btn span { color: #fff !important; }
body.v2-body .article-cta-btn svg { transition: transform 0.4s var(--ease); }
body.v2-body .article-cta-btn:hover svg { transform: translateX(3px); }

/* ===== FAQ — fully animated open/close ===== */
.article-faq-list { display: flex; flex-direction: column; gap: 10px; }
.article-faq-item {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.article-faq-item.open {
  border-color: rgba(0, 122, 255, 0.2);
  box-shadow: 0 8px 22px -10px rgba(0, 81, 213, 0.14);
}
.article-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--art-ink);
  list-style: none;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: 'Inter', -apple-system, sans-serif;
}
.article-faq-q span { flex: 1; }
.article-faq-chevron {
  color: rgba(29, 29, 31, 0.4);
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
  flex-shrink: 0;
}
.article-faq-item.open .article-faq-chevron {
  transform: rotate(180deg);
  color: var(--art-blue);
}
.article-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.article-faq-a-inner { padding: 0 20px 18px; }
.article-faq-a p {
  margin: 0;
  color: rgba(29, 29, 31, 0.7);
  line-height: 1.6;
  font-size: 0.95rem;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* ===== Related ===== */
.article-related-section { margin-top: 56px; }
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
/* Related cards — no hover animations, fully static */
.article-related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.article-related-thumb {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, var(--art-tint) 0%, #f6faff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Wallpaper-style scattered icons in background — Telegram-chat-backdrop vibe */
.article-related-thumb-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.article-related-thumb-pattern img {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(0.65) contrast(0.95);
}
/* Primary icon — sits above the pattern */
.article-related-thumb-main {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  object-fit: cover;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 26px -8px rgba(0, 0, 0, 0.28),
    0 4px 10px -3px rgba(0, 0, 0, 0.14);
}
.article-related-thumb-collage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.article-related-thumb-collage img {
  width: 48px;
  height: 48px;
  margin-left: -10px;
  border: 2.5px solid #fff;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 8px 18px -5px rgba(0, 0, 0, 0.22);
}
.article-related-thumb-collage img:first-child { margin-left: 0; }
.article-related-thumb-collage img:nth-child(1) { transform: rotate(-7deg); }
.article-related-thumb-collage img:nth-child(2) { z-index: 2; }
.article-related-thumb-collage img:nth-child(3) { transform: rotate(7deg); }
.article-related-thumb-collage { display: flex; align-items: center; }
.article-related-thumb-collage img {
  width: 46px; height: 46px;
  margin-left: -10px;
  border: 2px solid #fff;
  background: #fff;
  border-radius: 10px;
}
.article-related-thumb-collage img:first-child { margin-left: 0; }
.article-related-thumb-collage img:nth-child(1) { transform: rotate(-6deg); }
.article-related-thumb-collage img:nth-child(2) { z-index: 2; }
.article-related-thumb-collage img:nth-child(3) { transform: rotate(6deg); }
.article-related-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.article-related-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--art-blue);
  margin-bottom: 8px;
}
body.v2-body .article-related-card h3 {
  font-family: 'Unbounded', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.96rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
  color: var(--art-ink) !important;
  margin: 0 0 12px !important;
  flex: 1;
}
.article-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--art-blue);
}

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-toc { position: static; }
  .article-cta-card { padding: 18px; }
  .article-cta-btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .articles-grid { grid-template-columns: 1fr; gap: 16px; }
  .article-content { font-size: 1rem; }
  .article-cta-card { gap: 14px; }
  .article-cta-icon { width: 56px; height: 56px; }
  .article-card-cover { height: 160px; }
  .article-card-cover-icon { width: 76px; height: 76px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-card, .article-banner-icon, .article-banner-collage-icon,
  .article-card-cover-icon, .article-card-collage-icon, .article-card-cover-backdrop {
    animation: none !important;
    transition: opacity 0.3s ease !important;
  }
  .article-faq-a { transition-duration: 0.15s !important; }
}
