/* EPIC-014 static prototypes — visual parity with landing-v2 shell */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --accent-light: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border: rgba(148, 163, 184, 0.2);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --page-max: 1120px;
}

html {
  scroll-behavior: smooth;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
.logo,
.sr-score-num,
.sr-rank-big {
  font-family: "Unbounded", sans-serif;
}

a {
  color: inherit;
}

/* —— nav (landing-shell parity) —— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1002;
}

.nav .logo,
.footer-brand .logo {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.logo img {
  width: auto;
  height: 46px;
  display: block;
  filter: drop-shadow(0 7px 14px rgba(15, 23, 42, 0.12));
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.nav-primary {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-primary::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-primary:hover,
.nav-primary.is-active {
  color: var(--text);
}

.nav-primary:hover::after,
.nav-primary.is-active::after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1002;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: block;
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--surface);
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.mobile-menu .nav-cta {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

/* —— page —— */
.sr-main {
  flex: 1;
  padding: 112px 24px 80px;
}

.sr-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
}

.sr-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 14px;
}

.sr-crumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.sr-crumb a:hover {
  color: var(--text);
}

.sr-crumb span[aria-hidden] {
  color: var(--text-tertiary);
}

/* —— hero —— */
.sr-hero {
  position: relative;
  margin-bottom: 28px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 28px;
  background:
    radial-gradient(1200px 420px at 12% -20%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(900px 360px at 95% 0%, rgba(6, 182, 212, 0.12), transparent 50%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -48px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}

.sr-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  pointer-events: none;
}

.sr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 16px;
}

.sr-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08);
  }
}

.sr-hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 18ch;
}

.sr-hero-lead {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  max-width: 58ch;
  margin-bottom: 22px;
}

.sr-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

.sr-meta-row strong {
  color: var(--text-secondary);
  font-weight: 650;
}

.sr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
}

/* —— stats —— */
.sr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.sr-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.sr-stat .label {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sr-stat .value {
  font-family: "Unbounded", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.sr-stat .hint {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* —— table panel —— */
.sr-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 60px -48px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  margin-bottom: 28px;
}

.sr-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.sr-panel-head h2 {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.sr-panel-head p {
  font-size: 13px;
  color: var(--text-secondary);
}

.sr-table-wrap {
  overflow-x: auto;
}

.sr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}

.sr-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: rgba(15, 23, 42, 0.03);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sr-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.sr-table tr:last-child td {
  border-bottom: 0;
}

.sr-table tbody tr {
  transition: background 0.15s ease;
}

.sr-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.sr-table a.row-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

.sr-rank {
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  width: 48px;
}

.sr-rank.top {
  color: var(--primary);
}

.sr-org {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sr-org .name {
  font-weight: 650;
  color: var(--text);
}

.sr-org .domain {
  font-size: 12px;
  color: var(--text-tertiary);
}

.sr-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
}

.sr-score-bar {
  width: 72px;
  height: 6px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.sr-score-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
}

.sr-score-hi {
  color: #047857;
}

.sr-score-mid {
  color: var(--primary-dark);
}

.sr-score-lo {
  color: #b45309;
}

.sr-date {
  color: var(--text-tertiary);
  font-size: 13px;
  white-space: nowrap;
}

.sr-chev {
  color: var(--text-tertiary);
  font-size: 18px;
  line-height: 1;
}

.sr-panel-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.015);
}

.sr-page-status {
  font-size: 13px;
  color: var(--text-secondary);
}

.sr-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.sr-page-btn,
.sr-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.sr-page-btn:hover,
a.sr-page-num:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.sr-page-num.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sr-page-btn.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.sr-page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-weight: 700;
  user-select: none;
}

@media (max-width: 640px) {
  .sr-panel-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .sr-pagination {
    justify-content: center;
  }
  .sr-page-status {
    text-align: center;
  }
}

/* —— methodology / FAQ —— */
.sr-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  margin-bottom: 28px;
}

.sr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}

.sr-card h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.sr-card p,
.sr-card li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sr-card ul {
  margin: 12px 0 0 1.1rem;
}

.sr-card li {
  margin-bottom: 6px;
}

.sr-weights {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.sr-weight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.sr-weight .track {
  height: 8px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.sr-weight .track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.sr-weight .lbl {
  font-size: 12px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
}

.sr-faq details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.sr-faq details:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.sr-faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sr-faq summary::-webkit-details-marker {
  display: none;
}

.sr-faq summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}

.sr-faq details[open] summary::after {
  content: "−";
}

.sr-faq details p {
  margin-top: 8px;
  font-size: 13px;
}

.sr-disclaimer {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-top: 8px;
}

/* —— CTA band —— */
.sr-cta-band {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 1.9rem);
  border-radius: 24px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.55);
  margin-bottom: 12px;
}

.sr-cta-band h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sr-cta-band p {
  font-size: 14px;
  opacity: 0.9;
  max-width: 48ch;
  line-height: 1.55;
}

.sr-cta-band .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.sr-cta-band .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.sr-optout {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 18px;
}

.sr-optout a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— CARD page —— */
.sr-card-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.sr-score-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.sr-score-ring {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct) * 1%), rgba(148, 163, 184, 0.25) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.sr-score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface);
}

.sr-score-ring-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.sr-score-num {
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.sr-score-ring-inner small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 650;
}

.sr-rank-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 8px;
}

.sr-rank-big {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.sr-rank-line .of {
  color: var(--text-secondary);
  font-size: 14px;
}

.sr-domain-title {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.sr-domain-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
}

.sr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sr-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.02);
  color: var(--text-secondary);
}

.sr-chip.ok {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

.sr-chip.warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #b45309;
}

.sr-ext-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 650;
}
.sr-ext-link:hover {
  text-decoration: underline;
}

.sr-snapshot-lead {
  font-size: 13px;
  color: var(--text-secondary);
  margin: -2px 0 14px;
  line-height: 1.45;
}
.sr-snap-row {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.sr-snap-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.sr-snap-row .lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.sr-snap-row .val {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}
.sr-snap-row .val.sr-mono {
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
}
.sr-excerpt {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.55 !important;
}

.sr-domain-kv {
  display: grid;
  gap: 0;
}
.sr-domain-kv-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.sr-domain-kv-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.sr-domain-kv-row .k {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sr-domain-kv-row .v {
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.sr-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .sr-facts {
    grid-template-columns: 1fr;
  }
}
.sr-fact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 12px 11px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.015);
}
.sr-fact .mark {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 1px;
}
.sr-fact.is-ok .mark {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}
.sr-fact.is-bad .mark {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}
.sr-fact .f-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.sr-fact .f-value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.sr-breakdown {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.sr-bd-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.sr-bd-row .top span:first-child {
  font-weight: 650;
  color: var(--text);
}

.sr-bd-row .top span:last-child {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.sr-bd-row .track {
  height: 10px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.sr-bd-row .track > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
}

.sr-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sr-list-box {
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.sr-list-box.plus {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

.sr-list-box.minus {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.18);
}

.sr-list-box h3 {
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.sr-list-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-list-box li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sr-list-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.sr-list-box.plus li::before {
  background: var(--accent);
}

.sr-list-box.minus li::before {
  background: var(--danger);
}

.sr-median {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-top: 14px;
}

.sr-median .delta {
  font-family: "Unbounded", sans-serif;
  font-size: 1.15rem;
  color: #047857;
}

.sr-median .delta.neg {
  color: #b45309;
}

.sr-side-sticky {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}

.sr-side-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.35rem 1.4rem;
  box-shadow: 0 24px 60px -48px rgba(15, 23, 42, 0.35);
}

.sr-side-cta h2 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.sr-side-cta p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.sr-side-cta .btn {
  width: 100%;
}

.sr-side-cta .btn + .btn {
  margin-top: 8px;
}

.sr-neighbors h3 {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.sr-neighbors a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-size: 13px;
}

.sr-neighbors a:last-child {
  border-bottom: 0;
}

.sr-neighbors a:hover .n-dom {
  color: var(--primary);
}

.sr-neighbors .n-rank {
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}

.sr-neighbors .n-dom {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  transition: color 0.15s;
}

.sr-neighbors .n-score {
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
}

.sr-proto-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  pointer-events: none;
}

/* —— CTA ×2 (landing parity, сквозной перед футером) —— */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
  animation: ctaPulse 8s ease infinite;
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-section::before {
    animation: none;
  }
}

.cta-section .section-container {
  position: relative;
  padding: 96px 24px;
}

.cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta-section h2 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  margin: 0 auto 18px;
  max-width: 16ch;
  letter-spacing: -2.2px;
  line-height: 1.05;
  color: #fff;
}

.cta-lead {
  font-size: clamp(17px, 2.2vw, 21px);
  opacity: 0.82;
  margin: 0 auto 28px;
  max-width: 640px;
  line-height: 1.55;
  color: #fff;
}

.cta-offer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 36px;
}

.cta-offer-row span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
}

.cta-offer-row strong {
  color: #93c5fd;
  font-weight: 800;
  margin-left: 6px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 24px 56px;
  background: #fff;
  color: #0f172a;
  border-radius: 100px;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 14px 48px rgba(255, 255, 255, 0.24);
  letter-spacing: -0.35px;
}

.cta-btn:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 22px 64px rgba(255, 255, 255, 0.34);
}

.cta-btn .ph {
  font-size: 22px;
}

.cta-support {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 auto;
  max-width: 520px;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.cta-support i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: #93c5fd;
}

.cta-support strong {
  color: #fff;
  font-weight: 700;
}

/* —— footer (landing-shell parity) —— */
body > footer {
  background: var(--bg);
  padding: 80px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto 64px;
}

.footer-brand .logo img {
  height: 46px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 36ch;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Unbounded", sans-serif;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  transition: all 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-tertiary);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  text-align: right;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.footer-bottom-links a:hover {
  color: var(--primary);
  border-bottom-color: rgba(37, 99, 235, 0.45);
}

/* —— motion —— */
@media (prefers-reduced-motion: no-preference) {
  .sr-hero,
  .sr-stats,
  .sr-panel,
  .sr-grid-2,
  .sr-cta-band,
  .sr-card-layout {
    animation: sr-in 0.55s ease both;
  }

  .sr-stats {
    animation-delay: 0.06s;
  }
  .sr-panel,
  .sr-card-layout {
    animation-delay: 0.1s;
  }
  .sr-grid-2 {
    animation-delay: 0.16s;
  }
  .sr-cta-band {
    animation-delay: 0.2s;
  }
}

@keyframes sr-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* —— responsive —— */
@media (max-width: 960px) {
  .sr-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .sr-grid-2,
  .sr-card-layout {
    grid-template-columns: 1fr;
  }

  .sr-side-sticky {
    position: static;
  }

  .sr-proscons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-container {
    padding: 0 16px;
    gap: 12px;
  }

  .nav-left {
    gap: 0;
    flex: 1;
    min-width: 0;
  }

  .nav-primary {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
  }

  .nav .logo {
    font-size: 18px;
    gap: 8px;
    min-width: 0;
  }

  .nav .logo img {
    height: 36px;
    flex-shrink: 0;
  }

  .nav .logo span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cta-section .section-container {
    padding: 72px 20px;
  }

  .cta-btn {
    padding: 18px 32px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .sr-main {
    padding: 96px 16px 64px;
  }

  .sr-hero h1 {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu-panel {
    max-width: 100%;
  }

  .cta-offer-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* —— catalog: hub-of-hubs + niche —— */
.sr-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.sr-cat-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 148px;
}

.sr-cat-tile:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sr-cat-tile.is-live {
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(37, 99, 235, 0.1), transparent 55%),
    var(--surface);
}

.sr-cat-tile.is-soon {
  opacity: 0.72;
}

.sr-cat-tile .eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.sr-cat-tile .tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.sr-cat-tile .tag.soon {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

.sr-cat-tile h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sr-cat-tile p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  flex: 1;
}

.sr-cat-tile .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.sr-cat-tile .meta strong {
  color: var(--text-secondary);
  font-weight: 650;
}

.sr-section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 14px;
}

.sr-section-label h2 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.sr-section-label p {
  font-size: 13px;
  color: var(--text-secondary);
}

.sr-geo-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.sr-geo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.15s;
}

.sr-geo-row:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.03);
}

.sr-geo-row.is-soon {
  opacity: 0.65;
  pointer-events: none;
}

.sr-geo-row .city {
  font-family: "Unbounded", sans-serif;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.sr-geo-row .sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.sr-geo-row .right {
  text-align: right;
  flex-shrink: 0;
}

.sr-geo-row .count {
  font-family: "Unbounded", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.sr-geo-row .count-lbl {
  font-size: 11px;
  color: var(--text-tertiary);
}

.sr-geo-row .chev {
  color: var(--text-tertiary);
  margin-left: 10px;
  font-size: 18px;
}

.sr-filter-fake {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.sr-filter-fake button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: default;
}

.sr-filter-fake button.is-on {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

@media (max-width: 960px) {
  .sr-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sr-stats {
    grid-template-columns: 1fr;
  }

  .sr-catalog-grid,
  .sr-geo-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sr-proto-banner {
    font-size: 11px;
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }
}

/* —— polish pass —— */
.sr-rank-list { display: flex; flex-direction: column; }

.sr-rank-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 120px 88px 118px 28px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}

.sr-rank-item:last-child { border-bottom: 0; }

.sr-rank-item:hover,
.sr-rank-item:focus-visible {
  background: rgba(37, 99, 235, 0.045);
  outline: none;
}

.sr-rank-item.is-you {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent 70%);
  box-shadow: inset 3px 0 0 var(--primary);
}

.sr-rank-item.is-you:hover {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.11), rgba(37, 99, 235, 0.03) 70%);
}

.sr-rank-item.is-muted {
  opacity: 0.62;
  cursor: default;
  pointer-events: none;
}

.sr-rank-item .you-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary-dark);
  vertical-align: middle;
}

.sr-medal {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-family: "Unbounded", sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.sr-medal.g1 {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
}

.sr-medal.g2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #334155;
}

.sr-medal.g3 {
  background: linear-gradient(135deg, #fdba74, #ea580c);
  color: #7c2d12;
}

.sr-score-bar.hi > i { background: linear-gradient(90deg, #059669, #34d399); }
.sr-score-bar.mid > i { background: linear-gradient(90deg, var(--primary), #06b6d4); }
.sr-score-bar.lo > i { background: linear-gradient(90deg, #d97706, #fbbf24); }

.sr-meta-cell {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-secondary);
  white-space: nowrap;
}
.sr-hub-extra {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Яндекс.Карты rating — SVG star + value + 0–5 bar + reviews */
.sr-maps {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  line-height: 1.15;
  color: var(--text);
}
.sr-maps.is-empty {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-tertiary);
}
.sr-maps-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sr-maps-star {
  flex: 0 0 auto;
  color: #d97706;
  filter: drop-shadow(0 0 0.5px rgba(217, 119, 6, 0.35));
}
.sr-maps-val {
  font-family: "Unbounded", sans-serif;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}
.sr-maps-bar {
  display: block;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}
.sr-maps-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97706, #fbbf24);
}
.sr-maps-n {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.sr-maps--inline {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.sr-maps--inline .sr-maps-val {
  font-size: 12px;
}
.sr-maps--inline .sr-maps-star {
  width: 11px;
  height: 11px;
}
.sr-maps--inline .sr-maps-n::before {
  content: "·";
  margin-right: 6px;
  color: var(--text-tertiary);
}
.sr-maps--card {
  gap: 5px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.18);
}
.sr-maps--card .sr-maps-val {
  font-size: 18px;
}
.sr-maps--card .sr-maps-star {
  width: 16px;
  height: 16px;
}
.sr-maps--card .sr-maps-bar {
  width: 72px;
  height: 4px;
}
.sr-maps--card .sr-maps-n {
  font-size: 12px;
  color: var(--text-secondary);
}
.sr-maps-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
}
.sr-maps-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}
.sr-maps-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

.sr-rank-cols {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 120px 88px 118px 28px;
  gap: 12px;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  background: rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid var(--border);
}

.sr-distro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 18px 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.sr-distro-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.sr-distro-head h2 {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.sr-distro-head span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.sr-distro-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 96px;
}

.sr-distro-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.sr-distro-col .bar {
  width: 100%;
  max-width: 48px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  opacity: 0.85;
}

.sr-distro-col .bar.is-median {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, #34d399, #059669);
}

.sr-distro-col .lbl {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 650;
  text-align: center;
}

.sr-distro-col .n {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.sr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sr-search svg { flex-shrink: 0; opacity: 0.45; }

.sr-search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--text);
}

.sr-search input::placeholder { color: var(--text-tertiary); }

.sr-search kbd {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(15, 23, 42, 0.03);
}

.sr-compare { display: grid; gap: 6px; margin-top: 12px; }

.sr-compare-track {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.2);
  /* место под подпись «медиана» над треком */
  margin-top: 18px;
}

.sr-compare-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #06b6d4);
}

.sr-compare-median {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #059669;
  border-radius: 2px;
  /* не уезжать за края с длинной подписью */
  transform: translateX(-50%);
}

.sr-compare-median::after {
  content: "медиана";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #047857;
  white-space: nowrap;
  pointer-events: none;
}

.sr-compare-legend {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.sr-proto-nav {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  max-width: calc(100vw - 24px);
}

.sr-proto-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.sr-proto-nav a:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.08);
}

.sr-proto-nav a.is-on {
  color: #fff;
  background: var(--primary);
}

.sr-proto-banner { display: none !important; }

body { padding-bottom: 72px; }

@media (max-width: 720px) {
  .sr-rank-cols { display: none; }

  .sr-rank-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank org score"
      "rank org chev";
    row-gap: 4px;
  }

  .sr-rank-item .c-rank { grid-area: rank; }
  .sr-rank-item .c-org { grid-area: org; }
  .sr-rank-item .c-score { grid-area: score; justify-self: end; }
  .sr-rank-item .c-age,
  .sr-rank-item .c-maps { display: none; }
  .sr-hub-extra { display: block; }
  .sr-rank-item .c-chev { grid-area: chev; justify-self: end; }
  .sr-score-bar { display: none; }
  .sr-distro-bars { gap: 6px; }

  .sr-proto-nav {
    left: 12px;
    right: 12px;
    transform: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

/* legacy .sr-foot removed — shell uses landing footer + cta-section */

/* Card FAQ */
.sr-faq {
  margin-bottom: 20px;
}
.sr-faq-lead {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.sr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sr-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.sr-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sr-faq-item summary::-webkit-details-marker {
  display: none;
}
.sr-faq-item summary::after {
  content: '+';
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text-tertiary);
}
.sr-faq-item[open] summary::after {
  content: '−';
}
.sr-faq-a {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.sr-faq-a p {
  margin: 0 0 10px;
}
.sr-faq-a p:last-child {
  margin-bottom: 0;
}
.sr-faq-a ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}
.sr-faq-a li {
  margin: 0 0 4px;
}
.sr-faq-a a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.sr-faq-a a:hover {
  text-decoration: underline;
}
.sr-faq-a strong {
  color: var(--text);
  font-weight: 700;
}
