:root {
  color-scheme: light;
  --bg: #fafafa;
  --fg: #0a0a0a;
  --fg-mute: #6a6a6a;
  --fg-faint: #a0a0a0;
  --border: #e8e8e8;
  --border-strong: #0a0a0a;
  --hl-lime: #c7ff1a;
  --hl-orange: #ff5c1a;
  --hl-magenta: #ff2e79;
  --hl-blue: #1a8cff;
  --hl-yellow: #ffd61a;
  --accent: #00FFB3;
  --tap-target: 44px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

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

/* ─── KEYFRAMES ─── */

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes stroke {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(8px, -10px) rotate(8deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-10px, 6px) rotate(-12deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(6px, 8px) rotate(20deg); }
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 255, 179, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 255, 179, 0.10); }
}

.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.20s; }
.d3 { animation-delay: 0.42s; }
.d4 { animation-delay: 0.62s; }
.d5 { animation-delay: 0.82s; }

/* a11y · focus-visible везде */
a:focus-visible,
button:focus-visible,
.topbar-nav a:focus-visible,
.fb-author__link:focus-visible,
.atp-cta__btn:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ─── TOPBAR · v2 редизайн ─────────────────────────────────── */

.topbar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 14px 36px;
  border-bottom: 1px solid transparent;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 20;
  /* Edge fade-line — гораздо тоньше чем solid border */
  background-image: linear-gradient(rgba(250,250,250,0.72), rgba(250,250,250,0.72));
}
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(10,10,10,0.12) 20%,
    rgba(10,10,10,0.12) 80%,
    transparent 100%);
}

/* BRAND — refined */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 16px;
  min-height: var(--tap-target);
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.18s ease;
}
.brand:hover { opacity: 0.72; }
.brand-logo {
  display: block;
  width: 38px; height: 21px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-text {
  color: var(--fg);
  font-variation-settings: "wdth" 100;
}
.brand-text::before {
  content: '○ ';
  color: var(--hl-lime);
  font-size: 0.7em;
  font-weight: 500;
  margin-right: 2px;
  vertical-align: 1px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.brand:hover .brand-text::before { opacity: 1; }

/* NAV container — justify right */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-mute);
}

/* Plain nav links — sliding underline */
.topbar-nav a {
  position: relative;
  padding: 10px 14px;
  min-height: var(--tap-target);
  display: inline-flex;
  align-items: center;
  color: var(--fg-mute);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.18s ease;
}
.topbar-nav a:not(.nav-subscribe):not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1.5px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.65, 0, 0.35, 1);
}
@media (hover: hover) {
  .topbar-nav a:not(.nav-subscribe):not(.nav-cta):hover { color: var(--fg); }
  .topbar-nav a:not(.nav-subscribe):not(.nav-cta):hover::after { transform: scaleX(1); }
}
.topbar-nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}
.topbar-nav a[aria-current="page"]::after {
  transform: scaleX(1) !important;
  background: var(--fg) !important;
}

/* ─── nav-subscribe (Подписаться): refined outline pill ─── */
.nav-subscribe {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  margin-left: 8px !important;
  min-height: 36px !important;
  background: transparent !important;
  color: var(--fg) !important;
  border: 1px solid rgba(10, 10, 10, 0.16) !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: -0.005em !important;
  transition: all 0.22s ease !important;
}
.nav-subscribe::after { display: none !important; }
.nav-subscribe-dot {
  width: 6px !important; height: 6px !important;
  border-radius: 50% !important;
  background: var(--hl-lime) !important;
  box-shadow: 0 0 0 3px rgba(199, 255, 26, 0.20) !important;
  animation: subscribe-pulse 1.8s ease-in-out infinite !important;
  display: inline-block;
}
@keyframes subscribe-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(199, 255, 26, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(199, 255, 26, 0.0); }
}
@media (hover: hover) {
  .nav-subscribe:hover {
    background: var(--hl-lime) !important;
    border-color: var(--hl-lime) !important;
    color: #0A0A0A !important;
    transform: translateY(-1px);
  }
  .nav-subscribe:hover .nav-subscribe-dot {
    background: #0A0A0A !important;
    box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.2) !important;
  }
}

/* ─── nav-cta (Продукты): graphite premium ─── */
.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  padding: 9px 16px !important;
  min-height: 38px !important;
  background: var(--fg) !important;
  color: #FAFAFA !important;
  border: 1px solid var(--fg);
  border-radius: 100px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: all 0.22s ease;
  position: relative;
  margin-left: 4px;
}
.nav-cta::after { display: none !important; }
.nav-cta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--hl-lime);
  box-shadow: 0 0 8px rgba(199, 255, 26, 0.50);
  animation: cta-pulse 2.4s ease-in-out infinite;
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(199, 255, 26, 0.50); }
  50%      { box-shadow: 0 0 14px rgba(199, 255, 26, 0.85); }
}
.nav-cta-price {
  display: none !important;  /* убираем — слишком шумно */
}
@media (hover: hover) {
  .nav-cta:hover {
    background: #1A1A1A !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.22),
                0 0 0 3px rgba(199, 255, 26, 0.10);
  }
}

/* ─── BURGER + MOBILE NAV ─── */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(10,10,10,0.16);
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  justify-self: end;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease;
}
.menu-toggle:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.menu-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
  align-items: stretch;
}
.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 220ms cubic-bezier(0.65,0,0.35,1), opacity 160ms ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Responsive · mobile breakpoint */
/* IMPORTANT: drawer-стили scoped только к .topbar > .topbar-nav (index).
   .site-topbar .topbar-nav (статьи) имеет свои собственные responsive-правила ниже */
@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 11px 16px;
    gap: 12px;
  }
  .brand { font-size: 14px; gap: 9px; }
  .brand-logo { width: 32px; height: 18px; }

  /* Show burger (только в .topbar) */
  .topbar .menu-toggle { display: inline-flex; }

  /* Hide inline nav, show as overlay when opened — SCOPED к .topbar */
  .topbar > .topbar-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 80px 20px 28px;
    background: var(--bg);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 48px rgba(0,0,0,0.18);
    transform: translateX(100%);
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 25;
    font-size: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .topbar > .topbar-nav.is-open { transform: translateX(0); }

  /* Inline nav links — full-width with chevron feel */
  .topbar > .topbar-nav a {
    padding: 14px 16px;
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--fg);
  }
  .topbar > .topbar-nav a:not(.nav-subscribe):not(.nav-cta)::after { display: none; }

  /* Both CTAs — full-width pills inside drawer */
  .topbar > .topbar-nav .nav-subscribe,
  .topbar > .topbar-nav .nav-cta {
    width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 14px 18px !important;
    min-height: 48px !important;
    font-size: 15px !important;
    justify-content: center !important;
    border-radius: 999px !important;
  }
  .topbar > .topbar-nav .nav-cta { margin-top: 6px !important; }

  /* Backdrop */
  .topbar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 240ms ease, visibility 240ms ease;
    z-index: 24;
  }
  .topbar-backdrop.is-visible { opacity: 1; visibility: visible; }

  /* Body scroll-lock applied via class on <html> */
  html.menu-open { overflow: hidden; }
  html.menu-open body { overflow: hidden; }
}

/* ─── CONTAINER ─── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Footer/author не упирается в низ страницы — пустое место снизу */
main.container { padding-bottom: 96px; }

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  main.container { padding-bottom: 64px; }
}

/* ─── HERO ─── */

.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: visible;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
}

.hero-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-size: clamp(38px, 6.5vw, 96px);
  margin: 24px 0 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.hero-title > span { display: block; }

.hero-title-2 {
  display: block;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.8vw, 72px);
  letter-spacing: -0.025em;
  color: var(--fg-mute);
  margin-top: 8px;
  line-height: 1.04;
}

.hl {
  position: relative;
  display: inline-block;
  isolation: isolate;
  padding: 0 0.14em;
  white-space: nowrap;
}

.hl::before {
  content: '';
  position: absolute;
  inset: 8% -0.18em 6% -0.18em;
  background: var(--hl-lime);
  transform: rotate(-1.2deg) skewX(-6deg);
  z-index: -1;
  clip-path: inset(0 100% 0 0);
  animation: stroke 0.85s 0.85s cubic-bezier(.2, .7, .2, 1) forwards;
  filter: saturate(1.05);
}

.cursor {
  display: inline-block;
  margin-left: 4px;
  color: var(--fg);
  font-weight: 800;
  opacity: 0;
  animation: blink 1s 1.5s step-end infinite;
}

.hero-lede {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--fg-mute);
  max-width: 720px;
  font-weight: 400;
}

.hero-link {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1.5px solid var(--fg);
  padding-bottom: 1px;
  transition: opacity 0.18s ease;
}

@media (hover: hover) { .hero-link:hover { opacity: 0.65; } }

/* ─── HERO STATS ─── */

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-faint);
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-stats { gap: 18px; margin-top: 28px; }
  .hero-stat-divider { height: 28px; }
}

/* ─── SPARKLES ─── */

.hero-sparkle {
  position: absolute;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--fg);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.hero-sparkle-1 {
  top: 18%; right: 8%;
  font-size: 28px;
  animation: float-1 5.5s ease-in-out infinite;
}

.hero-sparkle-2 {
  top: 62%; right: 22%;
  font-size: 20px;
  color: var(--hl-orange);
  animation: float-2 7s ease-in-out infinite;
}

.hero-sparkle-3 {
  top: 40%; right: 4%;
  font-size: 16px;
  color: var(--hl-magenta);
  animation: float-3 6s ease-in-out infinite;
}

@media (max-width: 760px) {
  .hero { padding: 36px 0 32px; }
  .hero-sparkle { font-size: 14px; }
  .hero-sparkle-1 { top: 5%; right: 4%; font-size: 22px; }
  .hero-sparkle-2 { top: 38%; right: 8%; }
  .hero-sparkle-3 { display: none; }
}

/* ─── MARQUEE ─── */

.marquee {
  background: var(--fg);
  color: #fff;
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--fg);
  user-select: none;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--fg) 0%, transparent 100%); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--fg) 0%, transparent 100%); }

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  text-transform: lowercase;
}

.marquee-dot {
  color: var(--hl-lime);
  font-size: 10px;
}

@media (max-width: 640px) {
  .marquee { padding: 11px 0; }
  .marquee-item { font-size: 15px; }
  .marquee-track { gap: 16px; animation-duration: 30s; }
}

/* ─── FILTERS ─── */

.filters {
  padding: 28px 0 4px;
  position: sticky;
  top: 60px;
  background: var(--bg);
  z-index: 5;
}

.filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-mute);
  cursor: pointer;
  min-height: var(--tap-target);
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (hover: hover) {
  .filter:hover {
    border-color: var(--fg-mute);
    color: var(--fg);
    transform: translateY(-1px);
  }
}

.filter:active { transform: scale(0.96); }

.filter.active {
  background: var(--fg);
  border-color: var(--fg);
  color: #fff;
}

.filter-dot {
  width: 8px;
  height: 8px;
  background: var(--cat-color, var(--fg-mute));
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.filter.active .filter-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.filter-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-faint);
  padding-left: 2px;
}

.filter.active .filter-count { color: rgba(255, 255, 255, 0.6); }

/* Mobile: horizontal scroll-snap */
@media (max-width: 760px) {
  .filters {
    padding: 18px 0 6px;
    position: relative;
    top: auto;
  }
  .filters-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 -18px;
    padding: 4px 18px;
    -webkit-overflow-scrolling: touch;
  }
  .filters-inner::-webkit-scrollbar { display: none; }
  .filter { scroll-snap-align: start; }
}

/* ─── CARDS ─── */

.cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 0 80px;
}

.card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  transition: transform 0.22s ease;
}

@media (hover: hover) {
  .card:hover { transform: translateX(4px); }
  .card:hover .card-title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  .card:hover .card-preview-label { transform: rotate(-3deg) scale(1.04); }
}

.card-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cat-color, var(--hl-lime));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  color: var(--fg);
}

/* ─── IMAGE THUMB (AI-generated) ─── */

.img-thumb-wrap {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.img-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

@media (hover: hover) {
  .card:hover .img-thumb {
    transform: scale(1.04) rotate(-0.4deg);
  }
}

/* ─── VIDEO THUMB (AI-generated motion loop) ─── */

.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(.2,.7,.2,1);
}

@media (hover: hover) {
  .card:hover .video-thumb {
    transform: scale(1.04);
  }
}

/* Respect reduced-motion: show poster (first frame), don't autoplay */
@media (prefers-reduced-motion: reduce) {
  .video-thumb { animation: none; }
}

/* ─── LOTTIE PLAYER (fallback) ─── */

.lottie-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 8px 24px rgba(10, 10, 10, 0.15));
}

@media (hover: hover) {
  .card:hover .lottie-thumb {
    transform: scale(1.04);
    transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
  }
}

/* ─── PLACEHOLDER (пока 3D генерится) ─── */

.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(10, 10, 10, 0.04) 0,
      rgba(10, 10, 10, 0.04) 12px,
      transparent 12px,
      transparent 24px
    );
}

.card-preview-category {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  padding: 5px 10px;
  background: var(--fg);
  color: #fff;
  border-radius: 100px;
  z-index: 2;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  margin-bottom: 14px;
}

.card-dot { margin: 0 8px; }

.card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #00C26A;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
.card-views svg { display: block; }
.card-views[data-views="0"], .card-views:not([data-views]) { color: var(--fg-faint); }
.card-views[data-views="0"] svg, .card-views:not([data-views]) svg { color: #9CA3AF; }
.card:hover .card-views { color: #00C26A; }

.card-title {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(22px, 2.4vw, 36px);
  margin: 0 0 10px;
  color: var(--fg);
}

.card-subtitle {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 21px);
  color: var(--fg-mute);
  margin: 0 0 14px;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 16px;
  max-width: 580px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--fg-mute);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
}

@media (max-width: 760px) {
  .card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 0;
  }
  .card-preview {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    padding: 16px 18px;
  }
  .card-preview-label { font-size: 56px; }
  .card-preview-category { font-size: 10px; padding: 4px 8px; }
  .card-title { font-size: 22px; line-height: 1.12; }
  .card-subtitle { font-size: 15px; }
  .card-excerpt { font-size: 14px; line-height: 1.55; }
  .card-meta { margin-bottom: 10px; font-size: 11px; }
}

/* ─── EMPTY ─── */

.empty {
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.empty-text {
  font-size: 17px;
  color: var(--fg-mute);
  margin: 0;
}

.empty a {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 1.5px solid var(--fg);
}

@media (max-width: 640px) {
  .empty { padding: 36px 0; }
  .empty-text { font-size: 15px; padding: 0 18px; }
}

/* ─── FOOTER ─── */

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 48px 0 56px;
  margin-top: 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.footer-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  background: var(--fg);
}

.footer-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-author-name {
  font-weight: 600;
  font-size: 16px;
}

.footer-author-handle {
  color: var(--fg-mute);
  font-weight: 500;
}

.footer-author-role {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin-top: 2px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  min-height: var(--tap-target);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  background: #fff;
  transition: all 0.18s ease;
}

@media (hover: hover) {
  .social:hover {
    background: var(--fg);
    color: #fff;
    border-color: var(--fg);
  }
  .social svg { transition: transform 0.22s ease; }
  .social:hover svg { transform: rotate(-8deg) scale(1.08); }
}

.social:active { transform: scale(0.97); }

.footer-copy {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.footer-copy a { color: var(--fg-mute); border-bottom: 1px solid var(--border); }
@media (hover: hover) { .footer-copy a:hover { color: var(--fg); } }

@media (max-width: 760px) {
  .footer {
    padding: 36px 0 40px;
    margin-top: 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 18px;
  }
  .footer-socials { flex-wrap: wrap; gap: 10px; }
  .social {
    padding: 12px 16px;
    font-size: 13px;
    min-height: 44px;   /* enforce tap-target on phone */
  }
  .footer-author-avatar { width: 44px; height: 44px; font-size: 15px; }
  .footer-author-name { font-size: 15px; }
  .footer-copy {
    padding-top: 20px;
    font-size: 11px;
    line-height: 1.8;   /* generous line-height — easier tap on inline links */
  }
  /* inline link inside copy gets proper tap-area via padding */
  .footer-copy a {
    display: inline-block;
    padding: 6px 4px;
    margin: -6px -4px;
    border-bottom: 1px solid var(--border);
  }
}

/* ─── REDUCED MOTION ─── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hl::before { clip-path: inset(0 0 0 0); }
  .cursor { display: none; }
  .marquee-track { animation: none; }
}


/* Related «Читай также» */
.related-section { margin: 48px auto; max-width: 1180px; padding: 32px 24px 0; border-top: 1px solid var(--border); }
.related-h { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; margin: 0 0 24px; color: var(--fg); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.related-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.related-card:hover { border-color: var(--fg); transform: translateY(-2px); }
.related-cat { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--hl-orange); }
.related-title { font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--fg); }
.related-excerpt { font-size: 13.5px; line-height: 1.5; color: var(--fg-mute); }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } .related-section { padding: 24px 16px 0; } }

/* === Subscribe button — lime fill, dark text (added 2026-05-15) === */
.social-subscribe {
  background: #c7ff1a !important;
  color: #0A0A0A !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.social-subscribe:hover {
  background: #d9ff4d !important;
  color: #0A0A0A !important;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(199,255,26,0.35);
}


/* ============================================================
   CANONICAL TOPBAR / FOOTER / RELATED — v2 (2026-05-30)
   Управляется через _partials/header.html, _partials/footer.html
   и инжекторы inject_header.py, inject_footer.py, inject_related.py.
   ============================================================ */

/* ---------- SITE TOPBAR ---------- */

.site-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.site-topbar a { text-decoration: none; }

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  min-height: var(--tap-target);
  padding: 4px 0;
}
.topbar-brand__logo {
  display: block;
  flex-shrink: 0;
  color: currentColor;
}
.topbar-brand__text { white-space: nowrap; }
.topbar-brand__primary { font-weight: 800; }
.topbar-brand__sep { color: var(--fg-mute); margin: 0 2px; }
.topbar-brand__sub { color: var(--fg-mute); font-weight: 500; }
@media (hover: hover) {
  .topbar-brand:hover { opacity: 0.7; }
}

.topbar-nav {
  justify-self: center;
  display: flex;
  align-items: center;
}
.topbar-nav__list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.topbar-nav__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: var(--tap-target);
  border-radius: 999px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--fg-mute);
  transition: color 160ms ease, background 160ms ease;
}
.topbar-nav__list a[aria-current="page"] {
  color: var(--fg);
  font-weight: 700;
  background: var(--border);
}
.topbar-nav__ico { flex-shrink: 0; display: none; }
@media (hover: hover) {
  .topbar-nav__list a:hover { color: var(--fg); background: var(--border); }
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* ---------- INK-PILL CTA BUTTONS ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-height: var(--tap-target);
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
  border: 1.5px solid var(--fg);
}
.btn-cta__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: currentColor;
}
.btn-cta__label { line-height: 1; }
@media (hover: hover) {
  .btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(10,10,10,0.18); color: var(--bg); }
}
.btn-cta:focus-visible {
  outline: 2px solid var(--hl-lime);
  outline-offset: 2px;
}

.btn-cta--lime .btn-cta__dot {
  background: var(--hl-lime);
  box-shadow: 0 0 0 0 rgba(199,255,26,0.7);
  animation: btn-cta-pulse 1.8s ease-out infinite;
}
@keyframes btn-cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(199,255,26,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(199,255,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(199,255,26,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-cta--lime .btn-cta__dot { animation: none; }
}

.btn-cta--orange .btn-cta__dot { background: var(--hl-orange); }

/* ---------- VIEWS PILL (slot) ---------- */
/* .views-slot — обёртка фиксированной ширины, чтобы избежать CLS при подгрузке counter'а.
   data-views="" — placeholder невидимый (counter ещё не загрузился).
   data-views="0"  — counter загрузился, у статьи 0 просмотров → тоже скрываем (UX-решение).
   data-views="N"  — counter >= 1 → показываем pill. */
.views-slot {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms ease;
  margin-left: 4px;
}
.views-slot[data-views]:not([data-views=""]):not([data-views="0"]):not([data-views="-"]) {
  visibility: visible;
  opacity: 1;
}

.site-topbar .views-pill,
.views-slot .views-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.site-topbar .views-pill .views-icon {
  display: inline-flex;
  color: var(--hl-lime);
  line-height: 0;
}
.site-topbar .views-pill .views-count { color: var(--bg); }
/* views-label больше не рендерится — оставлен fallback display:none на случай старого markup */
.site-topbar .views-pill .views-label { display: none; }

/* ---------- TABLET (768–1023) ---------- */

@media (max-width: 1023px) {
  .site-topbar { gap: 16px; padding: 14px 20px; }
  .topbar-brand__sep,
  .topbar-brand__sub { display: none; }
  .topbar-nav__list a { padding: 10px 12px; font-size: 13px; }
  .btn-cta { padding: 10px 14px; font-size: 13px; }
}

/* ---------- MOBILE (≤767) ---------- */

@media (max-width: 767px) {
  .site-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 12px 14px;
  }
  /* Nav: только иконки (labels скрыты) */
  .topbar-nav__list a { padding: 10px; }
  .topbar-nav__list a[aria-current="page"] { background: var(--border); }
  .topbar-nav__label { display: none; }
  .topbar-nav__ico { display: inline-flex; }

  /* CTA: только точка + tap-target 44×44 */
  .btn-cta {
    padding: 0;
    width: var(--tap-target);
    height: var(--tap-target);
    min-height: var(--tap-target);
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  .btn-cta__label { display: none; }
  .btn-cta__dot { width: 10px; height: 10px; }

  /* Views: оставляем только icon на самых узких экранах */
  .site-topbar .views-pill { padding: 7px 10px; min-height: 36px; }
}

/* ---------- ULTRA-NARROW (≤379) ---------- */

@media (max-width: 379px) {
  .site-topbar { padding: 10px 10px; gap: 6px; }
  .topbar-brand { gap: 6px; font-size: 14px; }
  .topbar-brand__logo { width: 32px; height: 18px; }
  .topbar-nav__list { gap: 2px; }
  .topbar-nav__list a { padding: 9px; }
  .site-topbar .views-pill .views-count { display: none; }
  .site-topbar .views-pill { padding: 8px; min-width: 36px; min-height: 36px; justify-content: center; }
  /* Скрываем views на самых узких — освобождаем пространство */
  .views-slot { display: none !important; }
  /* btn-cta минимально-минимальные — но 44×44 сохраняем (a11y) */
  .btn-cta { width: 44px; height: 44px; }
  .topbar-actions { gap: 6px; }
}

/* ---------- ULTRA-ULTRA-NARROW (≤340) ---------- */
/* iPhone 5/SE — приходится агрессивно ужимать всё */
@media (max-width: 340px) {
  .site-topbar { padding: 10px 8px; gap: 4px; }
  .topbar-brand__primary,
  .topbar-brand__text { font-size: 13px; }
  .topbar-nav__list { gap: 0; }
  .topbar-nav__list a { padding: 8px; min-height: 44px; min-width: 44px; }
}

/* ---------- LONG URLs / external-link buttons inside articles ---------- */
/* На мобильных длинные ссылки на github.com/... не должны выезжать */
@media (max-width: 480px) {
  .skill-panel__link,
  a[href^="http"][class*="link"],
  .ext-link,
  .source-link {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
  /* skill-panel внутренности — меньше padding на 320 */
  .skill-panel__body > div { padding: 18px 16px !important; }
  .skill-panel__head { padding: 18px 16px !important; }
  .skill-panel__code { font-size: 12px; padding: 12px 14px; }
}

/* ---------- TOC LINKS · tap-area на мобильном ---------- */
/* Table-of-contents в статьях — увеличиваем clickable area */
@media (max-width: 720px) {
  .toc a, nav.toc a, .article-toc a {
    display: block;
    padding: 10px 0;
    min-height: 44px;
    line-height: 1.4;
  }
}

/* ---------- CODE-BLOCKS · scroll-x на мобильном ---------- */
@media (max-width: 720px) {
  pre, code.block, .code-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}

/* ---------- ALL IMAGES · max-width safety net ---------- */
img, picture, video, svg.responsive {
  max-width: 100%;
  height: auto;
}

/* ---------- DECORATIVE BLOBS · contain (не давать выходить за hero) ---------- */
/* .hero, .skl-hero, .hero-photo и подобные — должны overflow:hidden чтобы blob'ы и ticker'ы не выезжали за body */
.hero,
.skl-hero,
.fb-hero,
.hero-photo,
section[class*="hero"] {
  overflow: hidden;
  isolation: isolate;
}

/* ---------- BULLETPROOF: предотвращаем все горизонтальные scroll ---------- */
/* overflow-x: clip — не позволит ни одному декоративному элементу выехать за body */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

/* ---------- LEGACY ORPHAN VIEWS-PILL · скрываем (12 старых статей) ---------- */
/* После перехода на header v2 в каждой статье остался <span class="views-pill">
   сразу после </header>. Он не нужен — реальный views-pill живёт внутри хедера. */
header + .views-pill,
header + .views-pill + main,
.site-topbar ~ .views-pill {
  display: none !important;
}
header + .views-pill + main { display: block !important; }   /* main всё равно показываем */


/* ---------- BLOG FOOTER (canonical v2) ---------- */

.blog-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 48px;
  margin-top: 32px;
}
.blog-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 32px;
}
.blog-footer__author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--fg);
}
.blog-footer__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
  display: block;
}
.blog-footer__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-footer__author-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}
.blog-footer__author-handle { color: var(--fg-mute); font-weight: 500; }
.blog-footer__author-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  margin-top: 4px;
}

.blog-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.blog-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: var(--tap-target);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--fg);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 14px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
@media (hover: hover) {
  .blog-footer__social-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
  .blog-footer__social-link svg { transition: transform 200ms ease; }
  .blog-footer__social-link:hover svg { transform: rotate(-6deg); }
}
.blog-footer__social-link--cta { background: var(--hl-lime); border-color: var(--fg); color: var(--fg); font-weight: 700; }
@media (hover: hover) {
  .blog-footer__social-link--cta:hover { background: var(--fg); color: var(--hl-lime); border-color: var(--fg); }
}

.blog-footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}
.blog-footer__copy a { color: var(--fg-mute); border-bottom: 1px solid var(--border); }
@media (hover: hover) { .blog-footer__copy a:hover { color: var(--fg); } }

@media (max-width: 640px) {
  .blog-footer { padding: 40px 0 32px; }
  .blog-footer__inner { grid-template-columns: 1fr; gap: 20px; }
  .blog-footer__social { justify-content: flex-start; }
  .blog-footer__social-link span { font-size: 13px; }
  .blog-footer__copy { font-size: 10.5px; padding-top: 18px; }
}


/* ---------- RELATED SECTION (canonical v2 overrides) ---------- */
/* Старые .related-section правила (строки 1068–1075) остаются как fallback.
   v2-overrides увеличивают читабельность и адаптив. */

.related-section {
  margin: 64px auto 32px;
  max-width: 1180px;
  padding: 40px clamp(16px, 4vw, 32px) 0;
  border-top: 1px solid var(--border);
}
.related-section .related-h {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--fg);
}
.related-section .related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-section .related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  min-height: 100%;
}
@media (hover: hover) {
  .related-section .related-card:hover {
    border-color: var(--fg);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10,10,10,0.08);
  }
}
.related-section .related-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hl-orange);
  font-weight: 700;
}
.related-section .related-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--fg);
  letter-spacing: -0.012em;
  margin: 0;
}
.related-section .related-excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

@media (max-width: 900px) {
  .related-section .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .related-section { margin: 40px auto 24px; padding-top: 28px; }
  .related-section .related-grid { grid-template-columns: 1fr; gap: 14px; }
  .related-section .related-card { padding: 18px 20px; }
}
