@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('assets/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('assets/fonts/IBMPlexSerif-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Serif';
  src: url('assets/fonts/IBMPlexSerif-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d3b3f;
  --ink-soft: #175257;
  --text: #2c3e50;
  --muted: #5b6b6f;
  --orange: #c35400;
  --pale: #ecf6f7;
  --line: #d9e3e0;
  --paper: #fcfcf9;
  --surface: #ffffff;
  --surface-alt: #f4f7f5;
  --ok-bg: #e7f4ed;
  --ok-text: #1c623d;
  --warn-bg: #fef6e6;
  --warn-text: #8b5600;
  --caution-bg: #fbeee6;
  --caution-text: #9d4200;
  --ru-bg: #eef2ff;
  --ru-text: #284699;
  --cn-bg: #fdf1eb;
  --cn-text: #a53d11;
  --us-bg: #eef4f3;
  --us-text: #265156;
  --serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, b, strong, th { font-weight: 600; }
button, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid #d57227; outline-offset: 2px; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Header */
.site-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1;
  color: var(--ink);
  transition: color 0.15s ease;
}
.brand:hover { color: var(--orange); }
.brand-logo {
  display: block;
  width: 120px;
  height: auto;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
}
.header-nav a { text-decoration: none; color: var(--muted); }
.header-nav a:hover { color: var(--ink); }
.em-language-switcher {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.em-language-switcher strong { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 22px;
  padding: 6px 0 6px;
  align-items: center;
}
.eyebrow {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.eyebrow.mini { margin-bottom: 3px; }
.line { width: 22px; height: 1px; background: var(--orange); }
h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.9vw, 33px);
  letter-spacing: -0.5px;
  line-height: 1.14;
  color: var(--ink);
  font-weight: 600;
  margin: 4px 0 6px;
}
h1 em { font-style: normal; color: var(--orange); }
.hero-description {
  font-size: 13.5px;
  line-height: 1.42;
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}
.edition {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.edition-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--orange);
  font-weight: 600;
}
.edition-date {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 2px 0;
}
.edition p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.38;
  margin: 0 0 6px;
}
.source-line {
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.source-line-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  text-align: left;
}
.source-line-btn:hover { color: var(--orange); text-decoration: underline; }
.status-dot {
  width: 7px;
  height: 7px;
  background: #2f855a;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* Controls Hub */
.controls-hub {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 16px;
  box-shadow: 0 2px 10px rgba(13, 59, 63, 0.03);
}
.hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hub-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.freshness-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbe0da;
  background: #f4faf7;
  color: var(--ink);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 500;
}
.freshness-chip:hover { background: var(--ok-bg); border-color: #9ecbb9; }
.hub-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  background: var(--caution-bg);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hub-title-group h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  background: #eef3f0;
  border-radius: 7px;
  padding: 3px;
  gap: 3px;
}
.segmented button {
  background: none;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 11px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(13, 59, 63, 0.12);
}

.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.topic-pill {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.12s;
}
.topic-pill:hover {
  background: var(--pale);
  border-color: #9bb9b4;
}
.topic-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.topic-pill.is-gap { opacity: 0.72; }

.topic-summary {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.topic-summary p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.topic-caveat {
  color: var(--warn-text) !important;
  background: var(--warn-bg);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11.5px !important;
}

.filters-header {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.filters-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filters-header h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.preset-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.preset-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.preset-chip {
  border: 1px solid #c9dad6;
  background: var(--surface-alt);
  color: var(--ink);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
}
.preset-chip:hover { background: var(--pale); }
.preset-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.filters-bar {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: flex-end;
}
.advanced-filters-drawer {
  margin-top: 8px;
  padding-top: 6px;
}
.advanced-filters-drawer summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.advanced-filters-drawer summary:hover { color: var(--orange); }
.adv-badge {
  font-size: 10.5px;
  font-weight: 600;
  background: var(--caution-bg);
  color: var(--orange);
  padding: 1px 7px;
  border-radius: 99px;
}
.matrix-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}
.matrix-toolbar .matrix-legend { margin-bottom: 0; }
.pick-legacy-note {
  font-size: 11px;
  color: var(--warn-text);
  background: var(--warn-bg);
  padding: 5px 9px;
  border-radius: 5px;
  margin: -4px 0 0;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.search-group { flex: 1; min-width: 220px; }
.search-wrap { display: flex; gap: 8px; }
.search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: var(--ink);
}
.reset-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.reset-btn:hover { background: var(--pale); }

/* Section Head */
.shortlist-section, .ranking-section, .methodology-section, .matrix-section, .compare-section {
  margin-top: 14px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.4px;
}
.section-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  max-width: 480px;
}

/* Shortlist Cards */
.shortlist-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.pick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s;
}
.pick-card.is-leader {
  background: var(--ink);
  border-color: var(--ink);
  color: #e4efed;
}
.pick-card.is-ru {
  border-color: #c5d1ef;
  background: #f9fbff;
}
.pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pick-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--orange);
}
.is-leader .pick-role { color: #f6c291; }
.is-ru .pick-role { color: var(--ru-text); }

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1.3;
  white-space: nowrap;
}
.pill-origin-us_eu { background: var(--us-bg); color: var(--us-text); }
.pill-origin-china { background: var(--cn-bg); color: var(--cn-text); }
.pill-origin-russia { background: var(--ru-bg); color: var(--ru-text); }
.is-leader .pill-origin-us_eu,
.is-leader .pill-origin-china,
.is-leader .pill-origin-russia {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.pill-ok { background: var(--ok-bg); color: var(--ok-text); }
.pill-warn { background: var(--warn-bg); color: var(--warn-text); }
.pill-caution { background: var(--caution-bg); color: var(--caution-text); }
.pill-ru { background: var(--ru-bg); color: var(--ru-text); }
.pill-neutral { background: #eef1f1; color: #4d5d61; }
.is-leader .pill-ok { background: #1e6045; color: #d6f5e3; }
.is-leader .pill-warn { background: #5a4310; color: #fce8b2; }
.is-leader .pill-caution { background: #6b2e0c; color: #ffd9c2; }
.is-leader .pill-ru { background: rgba(186, 212, 255, 0.22); color: #e2edff; }
.is-leader .pill-neutral { background: rgba(255,255,255,0.12); color: #dce7e5; }
.pill-privacy { border: 1px solid rgba(13, 59, 63, 0.08); }
.is-leader .pill-privacy { border-color: rgba(255, 255, 255, 0.16); }

.pick-title-block h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--ink);
  line-height: 1.25;
}
.is-leader .pick-title-block h3 { color: #ffffff; }
.pick-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.is-leader .pick-sub { color: #bdd3ce; }

.pick-metric-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-alt);
  border-radius: 7px;
  padding: 10px 13px;
}
.is-leader .pick-metric-box { background: rgba(255, 255, 255, 0.08); }
.is-ru .pick-metric-box { background: #eef3fc; }
.pick-score-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
.pick-rank {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.is-leader .pick-rank { color: #ffffff; }
.pick-score {
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--orange);
}
.is-leader .pick-score { color: #f6c291; }
.pick-metric-unit {
  font-size: 11px;
  color: var(--muted);
}
.is-leader .pick-metric-unit { color: #c4dad5; }
.pick-percentile {
  font-size: 11px;
  font-weight: 600;
  color: var(--ok-text);
  background: var(--ok-bg);
  padding: 2px 7px;
  border-radius: 99px;
}
.is-leader .pick-percentile {
  background: rgba(214, 245, 227, 0.2);
  color: #d6f5e3;
}
.pick-source-name {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.is-leader .pick-source-name { color: #c4dad5; }

.pick-breadth {
  font-size: 11.5px;
  color: var(--ink-soft);
  background: #edf5f4;
  padding: 5px 9px;
  border-radius: 5px;
  margin-top: -4px;
}
.is-leader .pick-breadth {
  background: rgba(255, 255, 255, 0.1);
  color: #d5eae6;
}
.pick-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cap-chip {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--muted);
}
.is-leader .cap-chip {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #cfe0dd;
}
.tech-checked-note {
  color: var(--ink);
  font-weight: 500;
}
.is-leader .tech-checked-note { color: #e4efed; }

.pick-ru-scale-note {
  font-size: 11px;
  color: var(--ru-text);
  background: #eaf0fd;
  padding: 5px 9px;
  border-radius: 5px;
  margin: -4px 0 0;
}

.pick-details {
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pick-details p { margin: 0; }
.pick-label { font-weight: 600; color: var(--ink); }
.is-leader .pick-label { color: #ffffff; }
.pick-limit { color: var(--muted); font-size: 12px; }
.is-leader .pick-limit { color: #bfd6d1; }

.pick-parity {
  display: inline-flex;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  margin-top: -4px;
}
.pick-parity.is-tied { background: #dff4ea; color: #15573a; }
.pick-parity.is-gap { background: #f2f5f4; color: #546468; }
.is-leader .pick-parity.is-tied { background: rgba(214, 245, 227, 0.2); color: #d6f5e3; }
.is-leader .pick-parity.is-gap { background: rgba(255, 255, 255, 0.12); color: #cfe0dd; }

.pick-tech-details {
  font-size: 11.5px;
  color: var(--muted);
}
.pick-tech-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  user-select: none;
}
.is-leader .pick-tech-details summary { color: #dceae7; }
.pick-tech-body {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.pick-tech-body p { margin: 3px 0; }
.is-leader .pick-tech-body {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #cbe0dc;
}

.pick-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pick-foot-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.compare-toggle-btn {
  border: 1px solid #c3d5d1;
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.compare-toggle-btn:hover { background: var(--pale); }
.compare-toggle-btn.is-active {
  background: #e3f5ec;
  border-color: #93c9ad;
  color: var(--ok-text);
  font-weight: 600;
}
.compare-toggle-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.is-leader .compare-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.is-leader .compare-toggle-btn.is-active {
  background: #d6f5e3;
  color: #0d3b3f;
}
.delta-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.delta-pill.is-up { background: var(--ok-bg); color: var(--ok-text); }
.delta-pill.is-down { background: var(--caution-bg); color: var(--caution-text); }
.delta-pill.is-new { background: var(--ru-bg); color: var(--ru-text); }
.is-leader .pick-foot { border-top-color: rgba(255,255,255,0.16); }
.pick-price {
  font-size: 13px;
  font-weight: 600;
}
.pick-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: var(--pale);
  color: var(--ink);
  border: 1px solid #c3d9d5;
}
.pick-cta:hover { background: #d9ecee; color: var(--ink); }
.is-leader .pick-cta {
  background: #f8ebd7;
  border-color: #f8ebd7;
  color: var(--ink);
}
.is-leader .pick-cta:hover { background: #f2dcb9; }

.gap-box {
  background: var(--surface);
  border: 1px dashed #b7c8c3;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 13px;
  color: var(--muted);
}
.gap-box h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.gap-box p { margin: 0 0 12px; }

/* Benchmark Tabs & Table */
.table-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.variant-toggle-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 500;
}
.variant-toggle-btn[aria-pressed="true"] {
  background: var(--pale);
  border-color: #a9c5c0;
  color: var(--ink);
  font-weight: 600;
}
.variant-expand-btn {
  border: 1px solid #c6d8d4;
  background: #f1f7f6;
  color: var(--ink);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}
.variant-expand-btn:hover { background: var(--pale); }
.model-row.is-variant-child {
  background: #f8fbfa;
  border-left: 3px solid #7aa69f;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.sort-wrap select {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
}

.benchmark-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.bench-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bench-tab:hover { background: var(--pale); }
.bench-tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.bench-tab .tab-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #edf2f1;
  color: var(--muted);
}
.bench-tab[aria-selected="true"] .tab-tag {
  background: rgba(255,255,255,0.16);
  color: #e2efec;
}
.bench-tab .tab-tag.ru {
  background: var(--ru-bg);
  color: var(--ru-text);
}
.bench-tab[aria-selected="true"] .tab-tag.ru {
  background: #3358b8;
  color: #ffffff;
}

.benchmark-meta-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
}
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.meta-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--line);
}
.meta-chip.warn { background: var(--warn-bg); color: var(--warn-text); border-color: #f3dba8; }
.meta-chip.ru { background: var(--ru-bg); color: var(--ru-text); border-color: #cbd8f7; }
.benchmark-method, .benchmark-limitation {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.table-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.filter-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-link-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
}
.inline-link-btn:hover { background: var(--pale); }

.global-cross-matches {
  background: #f5f9f8;
  border: 1px solid #c5dbd6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 12.5px;
}
.cross-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cross-buttons button {
  border: 1px solid #b8d2cc;
  background: var(--surface);
  color: var(--ink);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11.5px;
}
.cross-buttons button:hover { background: var(--pale); }

.ranking-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ranking-grid {
  display: grid;
  grid-template-columns: 74px minmax(220px, 1.4fr) minmax(170px, 0.9fr) minmax(240px, 1.3fr);
  gap: 16px;
  align-items: center;
}
.ranking-head {
  background: #edf3f0;
  padding: 11px 18px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #46605d;
  border-bottom: 1px solid var(--line);
}
.model-row {
  border-bottom: 1px solid var(--line);
}
.model-row:last-child { border-bottom: 0; }
.model-main {
  padding: 13px 18px;
}
.rank-cell {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rank-cell small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.model-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.model-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.model-org {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 0;
}
.score-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.score-val-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.score-num {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.score-ci {
  font-size: 11px;
  color: var(--muted);
}
.score-bar-track {
  height: 5px;
  width: 100%;
  max-width: 170px;
  background: #e9efec;
  border-radius: 99px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1b656b, #c35400);
  border-radius: 99px;
}
.access-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.access-top-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.access-price-txt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.access-link-inline {
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.access-link-inline:hover { text-decoration: underline; }
.access-mode-hint {
  font-size: 11px;
  color: var(--muted);
}

.row-details {
  padding: 0 18px 12px 92px;
  font-size: 12px;
  color: var(--muted);
}
.row-details summary {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.row-details-body {
  margin-top: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.row-details-body h4 {
  margin: 0 0 5px;
  font-size: 11.5px;
  color: var(--ink);
}
.row-details-body p { margin: 3px 0; line-height: 1.45; }

.table-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.secondary-button {
  border: 1px solid #b9cdc7;
  background: var(--surface);
  color: var(--ink);
  border-radius: 7px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
}
.secondary-button:hover { background: var(--pale); }
.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  padding: 6px 4px;
}

/* Methodology */
.methodology-section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.method-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.method-lead h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.method-lead p { font-size: 13.5px; color: var(--muted); margin: 0; }
.method-pillars { display: flex; flex-direction: column; gap: 16px; }
.pillar {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pillar-num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--orange);
  font-weight: 600;
}
.pillar h3 { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.pillar p { margin: 0; font-size: 12.5px; color: var(--muted); }

.all-sources-drawer {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.all-sources-drawer summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.health-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.health-kpi strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 3px;
}
.health-kpi span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}
.health-secondary-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

/* Matrix View */
.matrix-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}
.matrix-scroll {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.matrix-table th, .matrix-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
}
.matrix-table thead th {
  background: var(--surface-alt);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.m-col-title { display: block; }
.m-col-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.matrix-sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
  text-align: left !important;
  min-width: 240px;
  max-width: 290px;
  padding-left: 14px !important;
  border-right: 1px solid var(--line);
}
.matrix-table thead .matrix-sticky-col {
  background: var(--surface-alt);
  z-index: 3;
}
.matrix-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.matrix-model-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.matrix-model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.matrix-model-price {
  font-size: 11px;
  color: var(--muted);
}
.matrix-model-hw {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.m-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.25;
  border: 1px solid transparent;
  min-width: 58px;
}
.m-pill small { font-size: 10px; opacity: 0.85; font-variant-numeric: tabular-nums; }
.m-jump-btn { cursor: pointer; transition: transform 0.1s; }
.m-jump-btn:hover { transform: translateY(-1px); filter: brightness(0.96); }
.m-pill.is-gold { background: #fff3cf; border-color: #eed07c; color: #7a4b00; }
.m-pill.is-green { background: #e3f5ec; border-color: #addbc3; color: #165b3c; }
.m-pill.is-mid { background: #f1f5f4; border-color: #d6e1de; color: #364e4d; }
.m-pill.is-low { background: #f8f9f9; border-color: #e6ebea; color: #67777a; }
.m-pill.is-none { background: transparent; color: #aebcbc; min-width: auto; padding: 2px 6px; }
.source-directory {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}
.source-group-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--paper);
}
.source-group-card h4 { margin: 0 0 8px; font-size: 13px; color: var(--ink); }
.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  padding: 4px 0;
  border-top: 1px solid #edf2f0;
}
.source-item button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: var(--ink);
  font-weight: 500;
}
.source-item button:hover { color: var(--orange); text-decoration: underline; }
.source-item span { font-size: 11px; color: var(--muted); white-space: nowrap; }

.ru-offbench-inline {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f5f7fd;
  border: 1px solid #cbd7f3;
  font-size: 12px;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.ru-offbench-inline strong { color: var(--ru-text); }
.ru-offbench-inline a { font-weight: 600; white-space: nowrap; }

.off-benchmark-section {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.off-bench-head h3 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.off-bench-head p {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.off-bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.off-bench-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.off-bench-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.off-bench-meta, .off-bench-why {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* Compare Section & Sticky Tray */
.compare-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 12.5px;
}
.compare-table thead th {
  background: var(--surface-alt);
  color: var(--ink);
}
.cmp-row-head {
  background: var(--paper);
  font-weight: 600;
  color: var(--ink);
  min-width: 160px;
  border-right: 1px solid var(--line);
}
.cmp-row-head small {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--muted);
}
.cmp-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cmp-remove-x {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 5px;
}
.cmp-remove-x:hover { color: var(--caution-text); }
.cmp-badges { margin: 4px 0; }
.cmp-note, .cmp-note-cell { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.cmp-empty { color: #9ab0ad; }
.cmp-lead { display: block; font-size: 10.5px; font-weight: 600; color: var(--ok-text); }
.cmp-gap { display: block; font-size: 10.5px; color: var(--muted); }
.is-best-cell { background: #eff9f3; }

.compare-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #0d3b3f;
  color: #ffffff;
  border-top: 2px solid var(--orange);
  padding: 10px 0;
  box-shadow: 0 -4px 18px rgba(13, 59, 63, 0.22);
}
.compare-tray-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.compare-tray-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.tray-caption { font-size: 12px; color: #c4dad5; font-weight: 500; }
.tray-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}
.tray-chip button {
  border: 0;
  background: none;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.compare-tray-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.compare-primary-btn {
  border: 0;
  background: #f8ebd7;
  color: var(--ink);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
}
.compare-primary-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.compare-clear-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #e4efed;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 20px 32px 68px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.header-nav-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--line);
  align-self: center;
}
.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.em-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  font-size: 12px;
}
.em-cookie-settings:hover { color: var(--orange); }
.em-cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 14px rgba(13, 59, 63, 0.08);
}
.em-cookie.is-visible { display: block; }
.em-cookie__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.em-cookie__text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
}
.em-cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.em-cookie__btn {
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
}
.em-cookie__btn--accept { background: var(--orange); color: #ffffff; }
.em-cookie__btn--accept:hover { background: #a84700; }
.em-cookie__btn--reject {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .method-grid { grid-template-columns: 1fr; gap: 22px; }
  .ranking-grid { grid-template-columns: 60px minmax(170px, 1.3fr) minmax(130px, 0.9fr) minmax(180px, 1.2fr); }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .em-cookie__inner { padding: 14px 16px; }
  .header-nav { display: none; }
  .segmented { flex-wrap: wrap; max-width: 100%; }
  .filter-group { max-width: 100%; min-width: 0; }
  .matrix-sticky-col { position: static; min-width: 190px; }
  .shortlist-cards { grid-template-columns: 1fr; }
  .ranking-head { display: none; }
  .ranking-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .row-details { padding: 0 16px 14px 16px; }
  .row-details-body { grid-template-columns: 1fr; }
  .compare-table { min-width: 420px; }
  .cmp-row-head { min-width: 104px; font-size: 11.5px; }
  .compare-table th, .compare-table td { padding: 7px 8px; font-size: 11.5px; }
}
