/* LawMatic.ru 2026 — design system */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --surface: #F4F2EE;
  --surface-2: #EDEAE3;
  --ink: #15110E;
  --ink-2: #3A3530;
  --ink-3: #6B6258;
  --ink-4: #9C9387;
  --line: #E5E1D8;
  --line-2: #D4CFC2;
  --warm: #F5EDDC;

  /* Brand: Burgundy (default — legacy) */
  --brand: oklch(0.42 0.135 18);
  --brand-deep: oklch(0.30 0.110 18);
  --brand-bright: oklch(0.58 0.180 22);
  --brand-soft: oklch(0.96 0.020 22);
  --brand-tint: oklch(0.88 0.060 20);
  --brand-on: #FFFFFF;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(20, 14, 10, 0.04), 0 1px 1px rgba(20, 14, 10, 0.02);
  --shadow: 0 4px 14px rgba(20, 14, 10, 0.06), 0 1px 2px rgba(20, 14, 10, 0.03);
  --shadow-lg: 0 18px 48px rgba(20, 14, 10, 0.10), 0 2px 6px rgba(20, 14, 10, 0.04);

  --maxw: 1240px;
}

[data-theme="indigo"] {
  --brand: oklch(0.42 0.18 268);
  --brand-deep: oklch(0.28 0.16 268);
  --brand-bright: oklch(0.58 0.21 268);
  --brand-soft: oklch(0.96 0.025 268);
  --brand-tint: oklch(0.85 0.085 268);
}

[data-theme="emerald"] {
  --brand: oklch(0.40 0.115 168);
  --brand-deep: oklch(0.27 0.085 168);
  --brand-bright: oklch(0.55 0.155 168);
  --brand-soft: oklch(0.95 0.025 168);
  --brand-tint: oklch(0.83 0.075 168);
}

[data-theme="graphite"] {
  --brand: oklch(0.25 0.01 250);
  --brand-deep: oklch(0.16 0.01 250);
  --brand-bright: oklch(0.42 0.02 250);
  --brand-soft: oklch(0.96 0.005 250);
  --brand-tint: oklch(0.86 0.01 250);
}

/* Dark mode */
[data-mode="dark"] {
  --bg: #0E0C0A;
  --bg-elev: #181513;
  --surface: #211D1A;
  --surface-2: #2C2723;
  --ink: #F2EEE7;
  --ink-2: #C9C2B7;
  --ink-3: #8E867A;
  --ink-4: #5E574E;
  --line: #2A2521;
  --line-2: #3A332D;
  --warm: #2A2218;
  --brand-on: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow: 0 4px 14px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.30);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.30);
}
[data-mode="dark"][data-theme="burgundy"] {
  --brand: oklch(0.62 0.150 22);
  --brand-deep: oklch(0.42 0.135 18);
  --brand-bright: oklch(0.72 0.165 25);
  --brand-soft: oklch(0.26 0.060 22);
  --brand-tint: oklch(0.36 0.100 22);
}
[data-mode="dark"][data-theme="indigo"] {
  --brand: oklch(0.66 0.180 268);
  --brand-deep: oklch(0.42 0.18 268);
  --brand-bright: oklch(0.74 0.190 268);
  --brand-soft: oklch(0.26 0.080 268);
  --brand-tint: oklch(0.36 0.130 268);
}
[data-mode="dark"][data-theme="emerald"] {
  --brand: oklch(0.62 0.130 168);
  --brand-deep: oklch(0.40 0.115 168);
  --brand-bright: oklch(0.72 0.150 168);
  --brand-soft: oklch(0.26 0.050 168);
  --brand-tint: oklch(0.36 0.090 168);
}
[data-mode="dark"][data-theme="graphite"] {
  --brand: oklch(0.78 0.010 250);
  --brand-deep: oklch(0.55 0.010 250);
  --brand-bright: oklch(0.86 0.010 250);
  --brand-soft: oklch(0.24 0.005 250);
  --brand-tint: oklch(0.34 0.010 250);
  --brand-on: #15110E;
}
[data-mode="dark"] .site-nav { background: rgba(14, 12, 10, 0.85); }
[data-mode="dark"] .platforms-section { background: var(--surface); }
[data-mode="dark"] .platforms-section::before { opacity: .55; }
[data-mode="dark"] .site-footer { background: #060504; }
[data-mode="dark"] .utility-bar { background: #060504; }
[data-mode="dark"] .product-card.is-featured .pc-icon { background: rgba(255,255,255,0.18); }
[data-mode="dark"] .pc-tag.is-free { background: oklch(0.32 0.10 145); color: oklch(0.88 0.10 145); }
[data-mode="dark"] .pc-tag.is-new  { background: oklch(0.34 0.12 70);  color: oklch(0.92 0.12 80); }
[data-mode="dark"] .pc-tag.is-paid { background: var(--surface-2); color: var(--ink-2); }
[data-mode="dark"] .pc-tag.is-beta { background: oklch(0.32 0.10 270); color: oklch(0.88 0.10 270); }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Onest', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

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

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

/* lang switch */
[data-lang="ru"] [lang="en"],
[data-lang="en"] [lang="ru"] { display: none !important; }

/* Top utility bar */
.utility-bar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.utility-bar .left { display: flex; gap: 18px; }
.utility-bar .left a { color: rgba(255, 255, 255, 0.6); transition: color .15s; }
.utility-bar .left a:hover { color: white; }
.utility-bar .right { display: flex; gap: 14px; align-items: center; }
.utility-bar .socials { display: flex; gap: 10px; }
.utility-bar .socials a {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.55);
  transition: all .15s;
}
.utility-bar .socials a:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.utility-bar .socials svg { width: 13px; height: 13px; }
/* Одинаковый CSS-размер, но разный «визуальный вес»: TG/VK/YouTube рисуют меньше площади внутри viewBox */
.utility-bar .socials #ic-tg svg,
.utility-bar .socials #ic-vk svg {
  width: 15px;
  height: 15px;
}
.utility-bar .socials #ic-yt svg {
  width: 14px;
  height: 14px;
}
/* PNG-иконка Zakon.ru (только ru): hover — zakon48-sel */
.utility-bar .socials a.social-zakon .social-zakon__stack {
  position: relative;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
}
.utility-bar .socials a.social-zakon img {
  position: absolute;
  width: 13px;
  height: 13px;
  object-fit: contain;
  transition: opacity 0.15s;
}
.utility-bar .socials a.social-zakon .social-zakon__hover { opacity: 0; }
.utility-bar .socials a.social-zakon:hover .social-zakon__default { opacity: 0; }
.utility-bar .socials a.social-zakon:hover .social-zakon__hover { opacity: 1; }
.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 2px;
}
.lang-switch button {
  padding: 3px 10px;
  border: 0; background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer; border-radius: 999px;
  letter-spacing: 0.04em;
}
.lang-switch button.is-active {
  background: white; color: #15110E;
}

/* Container */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Header / nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .container { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.brand-mark .logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--brand);
  color: var(--brand-on);
  border-radius: 8px;
  font-weight: 800; font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.brand-mark .logo-image {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 8px;
}
.nav-links {
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex: 1;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); font-weight: 500; font-size: 14px;
  transition: all .12s;
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links a.is-active { color: var(--brand); background: var(--brand-soft); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.mobile-menu-btn { display: none; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 89;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100dvh;
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index: 90;
  padding: 16px;
}
.mobile-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 700;
}
.mobile-menu-close {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mobile-menu ul a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-weight: 600;
}
.mobile-menu ul a.is-active { background: var(--brand-soft); color: var(--brand); }
.mobile-menu-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-actions .btn { justify-content: center; }
.mobile-menu-actions .btn-primary { color: var(--brand-on); }
.mobile-settings-panel {
  display: none;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 12px;
}
.mobile-settings-panel.is-open { display: grid; }
.mobile-settings-panel h6 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
body.mobile-menu-open { overflow: hidden; }
body.mobile-menu-open .mobile-menu-backdrop { opacity: 1; pointer-events: auto; }
body.mobile-menu-open .mobile-menu { transform: translateX(0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand); color: var(--brand-on);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-soft {
  background: var(--brand-soft); color: var(--brand);
}
.btn-soft:hover { background: var(--brand-tint); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* Hero */
.hero {
  padding: 56px 0 32px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand-bright) 25%, transparent);
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 18px;
  max-width: 880px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  font-weight: 700;
}
.hero p.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-3);
  max-width: 640px;
  margin: 0 0 28px;
  line-height: 1.55;
}
.hero-meta {
  display: flex; gap: 28px; margin-top: 32px;
  flex-wrap: wrap;
}
.hero-meta .stat strong {
  font-size: 22px; font-weight: 700; display: block;
  letter-spacing: -0.02em;
}
.hero-meta .stat span {
  font-size: 13px; color: var(--ink-3);
}

/* Platform pills */
.platform-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
}
.platform-pill svg { width: 13px; height: 13px; }

/* Products section */
.products {
  padding: 32px 0 72px;
}
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin: 0 0 28px;
  gap: 32px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.section-head .h-meta { color: var(--ink-3); font-size: 14px; }

/* Product card grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.product-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  transition: all .18s ease;
  grid-column: span 4;
}
.product-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.product-card.is-featured {
  grid-column: span 8;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: white;
  border-color: transparent;
  min-height: 360px;
}
.product-card.is-wide { grid-column: span 8; }
.product-card.is-narrow { grid-column: span 4; }
.product-card.is-tall { grid-row: span 2; }

.pc-head {
  display: flex; align-items: start; gap: 12px;
  margin-bottom: 16px;
}
.pc-icon {
  width: 44px; height: 44px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.pc-icon svg { width: 22px; height: 22px; }
/* Встроенные SVG — с подложкой brand-soft; файл-иконка — на всю ячейку, без подложки */
.pc-icon:has(.pc-icon-img) {
  background: transparent !important;
  padding: 0;
  overflow: hidden;
}
.product-card.is-featured .pc-icon:has(.pc-icon-img),
[data-mode="dark"] .product-card.is-featured .pc-icon:has(.pc-icon-img),
[data-hero="stack"] .product-card.is-featured .pc-icon:has(.pc-icon-img),
[data-hero="catalog"] .product-card.is-featured .pc-icon:has(.pc-icon-img) {
  background: transparent !important;
}
.pc-icon .pc-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 11px;
}
.product-card.is-featured .pc-icon {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}
.pc-meta { flex: 1; min-width: 0; }
.pc-cat {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-4);
  display: block;
  margin-bottom: 4px;
}
.product-card.is-featured .pc-cat {
  color: rgba(255, 255, 255, 0.7);
}
.pc-name {
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.2;
}
.product-card.is-featured .pc-name { font-size: 30px; line-height: 1.1; }
.pc-desc {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
  flex: 1;
}
.product-card.is-featured .pc-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  max-width: 480px;
}
.pc-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  margin-top: auto;
}
.pc-platforms { display: flex; gap: 4px; }
.pc-platform {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--surface);
  border-radius: 7px;
  color: var(--ink-3);
}
.pc-platform svg { width: 13px; height: 13px; }
.product-card.is-featured .pc-platform {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.pc-link {
  font-size: 13px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 4px;
}
.product-card.is-featured .pc-link { color: white; }
.pc-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.pc-tag.is-free { background: oklch(0.94 0.07 145); color: oklch(0.35 0.12 145); }
.pc-tag.is-new { background: oklch(0.93 0.07 80); color: oklch(0.40 0.13 60); }
.pc-tag.is-paid { background: var(--surface-2); color: var(--ink-2); }
.pc-tag.is-beta { background: oklch(0.93 0.05 270); color: oklch(0.38 0.13 270); }

/* Featured visual area inside featured card */
.pc-mockup {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 460px; height: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
}
.pc-mockup img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* small visual area in regular cards */
.pc-visual {
  margin: -8px -8px 14px;
  height: 110px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.pc-visual.is-tall { height: 200px; }
.pc-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pc-visual.is-placeholder {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand-tint));
  display: grid; place-items: center;
  color: var(--brand);
}
.product-card.is-featured .pc-visual {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

/* Variant: stacked (variant B) */
[data-hero="stack"] .product-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 940px;
}
[data-hero="stack"] .product-card,
[data-hero="stack"] .product-card.is-featured,
[data-hero="stack"] .product-card.is-wide {
  grid-column: span 1;
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr auto;
  align-items: center;
  gap: 32px;
  flex-direction: unset;
  min-height: auto;
  padding: 22px 28px;
  padding-right: 110px; /* leave room for absolute pc-tag */
}
[data-hero="stack"] .product-card.is-featured {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
}
[data-hero="stack"] .product-card.is-featured .pc-name { font-size: 22px; }
[data-hero="stack"] .product-card.is-featured .pc-desc { color: var(--ink-3); font-size: 14px; max-width: none; }
[data-hero="stack"] .product-card.is-featured .pc-cat { color: var(--ink-4); }
[data-hero="stack"] .product-card.is-featured .pc-icon { background: var(--brand-soft); color: var(--brand); }
[data-hero="stack"] .product-card.is-featured .pc-platform { background: var(--surface); color: var(--ink-3); }
[data-hero="stack"] .product-card.is-featured .pc-link { color: var(--brand); }
[data-hero="stack"] .pc-mockup,
[data-hero="stack"] .pc-visual { display: none; }
[data-hero="stack"] .pc-head { margin-bottom: 0; }
[data-hero="stack"] .pc-name { font-size: 18px; }
[data-hero="stack"] .pc-desc { margin: 0; font-size: 14px; }
[data-hero="stack"] .pc-foot { margin-top: 0; flex-wrap: nowrap; }
[data-hero="stack"] .pc-tag { top: 50%; right: 24px; transform: translateY(-50%); }

/* Variant: catalog (variant C) — equal grid 3x2 */
[data-hero="catalog"] .product-card.is-featured {
  grid-column: span 4;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  min-height: 280px;
}
[data-hero="catalog"] .product-card.is-featured .pc-name { font-size: 22px; }
[data-hero="catalog"] .product-card.is-featured .pc-desc { color: var(--ink-3); font-size: 14px; }
[data-hero="catalog"] .product-card.is-featured .pc-cat { color: var(--ink-4); }
[data-hero="catalog"] .product-card.is-featured .pc-icon { background: var(--brand-soft); color: var(--brand); }
[data-hero="catalog"] .product-card.is-featured .pc-platform { background: var(--surface); color: var(--ink-3); }
[data-hero="catalog"] .product-card.is-featured .pc-link { color: var(--brand); }
[data-hero="catalog"] .product-card.is-wide { grid-column: span 4; }
[data-hero="catalog"] .pc-mockup { display: none; }

/* What's new section */
.changelog {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.changelog-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.changelog-feed {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.changelog-item {
  padding: 0 0 28px 28px;
  position: relative;
}
.changelog-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 6px;
  width: 9px; height: 9px;
  background: var(--bg);
  border: 2px solid var(--brand);
  border-radius: 50%;
}
.changelog-item .meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--ink-4);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.changelog-item .meta .product {
  background: var(--surface);
  color: var(--ink-2);
  padding: 2px 8px; border-radius: 5px;
  font-weight: 500;
  font-family: 'Onest', sans-serif;
}
.changelog-item h4 {
  font-size: 17px; font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.changelog-item p {
  font-size: 14px; color: var(--ink-3); margin: 0;
  line-height: 1.55;
}

/* Platforms section */
.platforms-section {
  padding: 64px 0;
  background: var(--ink);
  color: white;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.platforms-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 80% 0%, color-mix(in oklch, var(--brand) 50%, transparent), transparent 60%);
  pointer-events: none;
}
.platforms-section .container { position: relative; }
.platforms-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 720px;
  line-height: 1.1;
}
.platforms-section p.lead {
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  font-size: 17px;
  margin: 0 0 40px;
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.plat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: all .15s;
}
.plat-card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); }
.plat-card .pic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  margin-bottom: 14px;
}
.plat-card .pic svg { width: 20px; height: 20px; }
.plat-card h5 {
  font-size: 15px; font-weight: 600; margin: 0 0 4px;
}
.plat-card span {
  font-size: 12px; color: rgba(255, 255, 255, 0.55);
  font-family: 'JetBrains Mono', monospace;
}

/* CTA */
.cta-section { padding: 88px 0; }
.cta-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-tint), transparent 70%);
  opacity: .35;
}
.cta-card h2 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 14px;
  position: relative;
}
.cta-card p {
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 24px;
  position: relative;
}
.cta-actions { display: flex; gap: 12px; position: relative; flex-wrap: wrap; }
.cta-illustration {
  position: relative;
  display: grid; place-items: center;
}
.cta-illustration .windowed {
  background: var(--ink);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  transform: rotate(2deg);
}
.cta-illustration img {
  border-radius: 6px;
  width: 100%;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
  font-size: 14px;
}
.site-footer .ftop {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.site-footer h6 {
  color: white;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a:hover { color: white; }
.site-footer .brand-block .brand-mark { color: white; margin-bottom: 14px; }
.site-footer .fblurb { font-size: 13px; line-height: 1.55; max-width: 320px; }
.site-footer .fbottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap; gap: 16px;
}
.site-footer .fbottom a:hover { color: white; }

.site-footer .ftop .lm-footer-widget-wrap {
  justify-self: end;
  align-self: center;
}

.lm-footer-widget {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  z-index: 1;
}

#lm-svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

#lm-svg-container svg {
  width: 90%;
  height: 90%;
  overflow: visible;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.8));
}

#lm-svg-container path,
#lm-svg-container circle,
#lm-svg-container polygon,
#lm-svg-container rect,
#lm-svg-container use {
  transition: filter 0.3s ease;
}

.lm-ambient-light {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}
.lm-light-blue {
  width: 200px;
  height: 200px;
  background: #003983;
  top: -50px;
  left: -50px;
}
.lm-light-orange {
  width: 180px;
  height: 180px;
  background: #eb4e1d;
  bottom: -30px;
  right: -30px;
}

/* Generic page sections */
.page-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 800px;
}
.page-hero p { color: var(--ink-3); font-size: 18px; max-width: 640px; margin: 0; }
.breadcrumb {
  display: flex; gap: 8px; font-size: 13px;
  color: var(--ink-4); margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .5; }

/* Catalog filters */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.filter-chip {
  padding: 7px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .12s;
}
.filter-chip:hover { border-color: var(--ink-3); }
.filter-chip.is-active {
  background: var(--ink); border-color: var(--ink); color: white;
}

/* Changelog page */
.cl-page { padding: 56px 0 24px; }
.cl-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.cl-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-filter {
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--ink-2); cursor: pointer;
}
.cl-filter:hover { border-color: var(--ink-3); }
.cl-filter.is-active { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }
.cl-search {
  position: relative;
}
.cl-search input {
  width: 240px; padding: 9px 14px 9px 36px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 10px;
  font: inherit; font-size: 13px;
  color: var(--ink);
}
.cl-search input:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.cl-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--ink-3);
}
.cl-list {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin: 0 0 40px;
}
.cl-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cl-card.is-clickable,
.changelog-item {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.cl-card.is-clickable:hover,
.changelog-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-tint);
  box-shadow: var(--shadow);
}
.cl-card-side time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
  display: block; margin-bottom: 12px;
}
.cl-product {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin-bottom: 4px;
}
.cl-product .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
}
.cl-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--ink-4);
}
.cl-card h3 {
  font-size: 20px; line-height: 1.3; letter-spacing: -0.015em;
  margin: 0 0 10px;
  text-wrap: pretty;
}
.cl-card p {
  margin: 0 0 12px; font-size: 14.5px; color: var(--ink-3);
  line-height: 1.55; max-width: 65ch;
}
.cl-card ul {
  margin: 0; padding-left: 18px;
  font-size: 14px; color: var(--ink-2);
  line-height: 1.6;
}
.cl-card ul li + li { margin-top: 4px; }
.cl-tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.cl-tag {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  letter-spacing: 0.02em;
}
.cl-tag.is-feature { background: oklch(0.94 0.07 145); color: oklch(0.35 0.12 145); }
.cl-tag.is-fix { background: oklch(0.93 0.05 270); color: oklch(0.38 0.13 270); }
.cl-tag.is-perf { background: oklch(0.93 0.07 60); color: oklch(0.40 0.13 50); }
[data-mode="dark"] .cl-tag.is-feature { background: oklch(0.32 0.10 145); color: oklch(0.88 0.10 145); }
[data-mode="dark"] .cl-tag.is-fix { background: oklch(0.32 0.10 270); color: oklch(0.88 0.10 270); }
[data-mode="dark"] .cl-tag.is-perf { background: oklch(0.34 0.12 70); color: oklch(0.92 0.12 80); }

.cl-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 32px 0 64px;
}
.cl-page-btn {
  min-width: 38px; height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 9px;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cl-page-btn:hover:not(:disabled) { border-color: var(--ink-3); color: var(--ink); }
.cl-page-btn.is-active { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); }
.cl-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.cl-page-info { font-size: 13px; color: var(--ink-3); margin: 0 14px; }
.cl-empty { text-align: center; padding: 80px 0; color: var(--ink-3); font-size: 15px; }
.news-head-tags { margin-top: 22px; }
.news-aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-related-list {
  margin-bottom: 0;
}
@media (max-width: 800px) {
  .cl-card { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .cl-card-side { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
  .cl-card-side time { margin: 0; }
  .cl-search input { width: 100%; }
  .cl-search { flex: 1; }
}

/* User settings popover */
.usr-settings { position: relative; }
.usr-settings-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 9px; cursor: pointer;
  color: var(--ink-2);
  transition: all .12s;
}
.usr-settings-btn:hover { background: var(--surface); color: var(--ink); }
.usr-settings-btn svg { width: 16px; height: 16px; }
.usr-pop {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 280px; background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 100;
  display: none;
}
.usr-pop.is-open { display: block; }
.usr-pop h6 {
  font-size: 11px; font-weight: 600;
  color: var(--ink-4); letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0 0 10px;
}
.usr-pop section + section { margin-top: 18px; }
.usr-swatches { display: flex; gap: 8px; }
.usr-swatch {
  width: 32px; height: 32px; border-radius: 9px;
  border: 2px solid transparent; cursor: pointer;
  position: relative; padding: 0;
  transition: transform .12s;
}
.usr-swatch:hover { transform: scale(1.08); }
.usr-swatch.is-active { border-color: var(--ink); }
.usr-swatch.is-active::after {
  content: '✓'; position: absolute; inset: 0;
  display: grid; place-items: center;
  color: white; font-size: 14px; font-weight: 700;
}
.usr-layouts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.usr-layout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 6px;
  cursor: pointer;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  text-align: center;
  transition: all .12s;
}
.usr-layout:hover { border-color: var(--ink-3); }
.usr-layout.is-active {
  background: var(--brand-soft); border-color: var(--brand); color: var(--brand);
}
.usr-layout-icon {
  display: grid; gap: 2px; margin: 0 auto 6px;
  width: 28px; height: 18px;
}
.usr-layout-icon i {
  background: currentColor; border-radius: 1px; opacity: .6;
}

/* Product page */
.prod-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}
/* Один поток: скриншот float:right — текст обтекает, ниже картинки — на всю ширину */
.prod-hero-inner {
  min-width: 0;
}
.prod-mockup--hero-float {
  float: right;
  width: min(46%, 520px);
  margin: 0 0 1rem 1.75rem;
}
.prod-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 18px 0;
  font-weight: 700;
}
.prod-hero .lead,
.prod-hero .prod-lead--rich {
  color: var(--ink-3);
  font-size: 18px;
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: none;
}
.prod-lead--rich > p:first-child {
  margin-top: 0;
}
.prod-lead--rich p {
  margin: 0 0 0.85em;
}
.prod-lead--rich h3 {
  margin: 1.35em 0 0.65em;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.prod-lead--rich h3:first-child {
  margin-top: 0.75em;
}
.prod-lead--rich ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.prod-lead--rich li {
  margin: 0.35em 0;
}
.prod-resources-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
  margin: 0.75em 0 0;
}
.prod-resources-table th,
.prod-resources-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.prod-resources-table thead th {
  background: var(--surface);
  font-weight: 600;
  color: var(--ink);
}
.prod-resources-table tbody td:first-child {
  color: var(--ink-2);
}
.prod-resources-table a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prod-resources-table a:hover {
  color: var(--brand-strong, var(--brand));
}
.prod-lead--rich .prod-resources-table {
  clear: both;
}
.prod-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  clear: both;
}
.prod-mockup {
  background: transparent;
  padding: 0;
  position: relative;
}
.prod-mockup img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}
.prod-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }

/* Feature list */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 56px 0;
}
.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card .ficon {
  width: 36px; height: 36px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 9px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.5; }

/* Section variant for spec list / FAQ */
.specs {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.specs dl {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 14px 28px;
  margin: 0;
  font-size: 14px;
}
.specs dt { color: var(--ink-3); font-weight: 500; }
.specs dd { margin: 0; color: var(--ink); }
.specs dd code {
  background: var(--surface);
  padding: 2px 7px; border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
}

/* Download platform tabs */
.dl-tabs {
  display: flex; gap: 4px;
  background: var(--surface);
  padding: 4px; border-radius: 12px;
  margin-bottom: 24px;
  width: fit-content;
}
.dl-tab {
  padding: 9px 16px;
  border: 0; background: transparent;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-2); cursor: pointer;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 7px;
}
.dl-tab.is-active {
  background: var(--bg-elev); color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.dl-tab svg { width: 14px; height: 14px; }

/* Download cards */
.dl-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: start;
}
.dl-card-icon {
  width: 64px; height: 64px;
  background: var(--brand-soft); color: var(--brand);
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dl-card-icon svg { width: 30px; height: 30px; }
/* Как в каталоге: файловая иконка на всю ячейку без лишней подложки */
.dl-card-icon:has(.pc-icon-img) {
  background: transparent !important;
  padding: 0;
  overflow: hidden;
}
.dl-card-icon .pc-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}
.dl-card-name { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 4px; }
.dl-card-desc { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; }
.dl-card-meta {
  display: flex; gap: 18px; font-size: 12.5px; color: var(--ink-4);
  font-family: 'JetBrains Mono', monospace;
}
/* Фиксированная ширина колонки + прижатие вправо: иначе трек сжимается по содержимому и края «плывут». */
.dl-card-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(280px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  gap: 8px;
  justify-items: stretch;
  justify-self: end;
}

/* Download page: двухстрочные кнопки + чип платформы */
.btn-dl-split {
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  white-space: normal;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  line-height: 1.25;
}
.btn-dl-split .dl-btn-chip {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1.2;
  max-width: 10.5rem;
  text-align: center;
  white-space: normal;
}
.btn-primary.btn-dl-split .dl-btn-chip {
  background: color-mix(in oklch, var(--brand-on) 18%, transparent);
  color: var(--brand-on);
}
.btn-ghost.btn-dl-split .dl-btn-chip {
  background: var(--brand-soft);
  color: var(--brand);
}
.btn-dl-split .dl-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.btn-dl-split .dl-btn-r1 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 13px;
}
.btn-dl-split .dl-btn-ic {
  flex-shrink: 0;
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
}
.btn-dl-split .dl-btn-ic svg {
  width: 17px;
  height: 17px;
  display: block;
}
.btn-dl-split .dl-btn-r1t {
  min-width: 0;
}
.btn-dl-split .dl-btn-r2 {
  display: block;
  padding-left: 24px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.92;
}
.btn-ghost.btn-dl-split .dl-btn-r2 {
  color: var(--ink-3);
}
.btn-primary.btn-dl-split .dl-btn-r2 {
  color: color-mix(in oklch, var(--brand-on) 88%, transparent);
}

/* Articles */
.breadcrumbs {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
  color: var(--ink-3);
}
.breadcrumbs a { color: inherit; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin: 0 8px; }
.breadcrumbs span:last-child { color: var(--ink); }
.articles-hero h1 { max-width: 840px; }
.articles-hero p.lead { max-width: 700px; }
.articles-section {
  padding: 56px 0 72px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.articles-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article-card {
  min-height: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-tint);
  box-shadow: var(--shadow);
}
.article-card-top,
.article-card-foot,
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}
.article-category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.article-card h2 {
  margin: 20px 0 10px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.article-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
}
.article-card-foot {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
}
.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
}
.article-head {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
/* Как ширина блока «контент + gap + сайдбар» ниже — мета, заголовок и лид на одной ширине */
.article-head .article-meta,
.article-head h1,
.article-head p {
  max-width: min(100%, calc(760px + 56px + 300px));
}
.article-head h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}
.article-head p {
  margin: 0;
  color: var(--ink-3);
  font-size: 19px;
  line-height: 1.55;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 56px;
  align-items: start;
  padding: 56px 0 72px;
}
.article-layout--no-aside {
  grid-template-columns: minmax(0, 760px);
}
.article-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-2);
}
.article-content p {
  margin: 0 0 24px;
}
.article-content h2 {
  margin: 42px 0 14px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.article-content ul {
  margin: 0 0 28px;
  padding-left: 22px;
}
.article-content li {
  margin: 8px 0;
}
.article-content p a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content p a:hover {
  color: var(--brand-strong, var(--brand));
}
.article-figure {
  margin: 0 0 24px;
}
.article-img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
/* Обложка/кадр внутри картинки — скругление уместно */
.article-figure--card .article-img {
  border-radius: var(--radius-lg);
}
/* Полный скрин интерфейса — прямые углы; ширина по натуральному размеру */
.article-figure--natural {
  display: block;
  width: fit-content;
  max-width: 100%;
}
.article-figure--natural .article-img {
  width: auto;
  max-width: 100%;
  border-radius: 0;
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.45;
}
.article-embed {
  position: relative;
  width: 100%;
  margin: 0 0 24px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
p.article-external-link {
  margin: 0 0 24px;
}
p.article-external-link .ic-arrow {
  display: inline-block;
  margin-left: 4px;
  vertical-align: -0.1em;
}
.article-aside {
  position: sticky;
  top: 88px;
}
.article-aside-card {
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.article-aside-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.article-aside-card p {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
}
.article-aside-product-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.article-aside-product-head h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.article-aside-product-head p {
  margin: 0;
}
.article-aside-product-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.article-aside-product-icon img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}
.articles-more {
  padding: 56px 0 72px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

@media (max-width: 980px) {
  .prod-mockup--hero-float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }
  .features-grid { grid-template-columns: 1fr; }
  .specs dl { grid-template-columns: 1fr; gap: 4px 0; }
  .specs dt { margin-top: 12px; }
  .dl-card { grid-template-columns: 1fr; text-align: left; }
  .dl-card-action {
    justify-self: stretch;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }
  .articles-grid,
  .articles-grid-compact { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { position: static; }
}

/* Responsive */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card,
  .product-card.is-featured,
  .product-card.is-wide { grid-column: span 1; }
  [data-hero="catalog"] .product-card,
  [data-hero="catalog"] .product-card.is-featured,
  [data-hero="catalog"] .product-card.is-wide { grid-column: span 1; }
  .product-card.is-featured { min-height: 280px; }
  .pc-mockup { display: none; }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
  .changelog-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-card { grid-template-columns: 1fr; padding: 36px; }
  .cta-illustration { display: none; }
  .site-footer .ftop { grid-template-columns: 1fr 1fr; }
  .site-footer .ftop .lm-footer-widget-wrap {
    justify-self: center;
    grid-column: 1 / -1;
    margin-top: 12px;
  }
  [data-hero="stack"] .product-card { flex-direction: column; }
  [data-hero="stack"] .product-card > .pc-visual { width: 100%; height: 160px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  [data-hero="catalog"] .product-card,
  [data-hero="catalog"] .product-card.is-featured,
  [data-hero="catalog"] .product-card.is-wide { grid-column: span 1; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .mobile-menu-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--bg-elev);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
  }
  .mobile-menu-btn span {
    width: 16px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    display: block;
  }
  .site-nav .container { gap: 10px; }
  .mobile-menu-btn { margin-left: auto; }
  .nav-cta { display: none; }
  .btn.btn-sm { padding: 7px 10px; }
  .utility-bar .left { display: none; }
  .container { padding: 0 18px; }
  .site-footer .ftop { grid-template-columns: 1fr; }
}
