@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-cyrillic.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #000000;
  --text: #333333;
  --cell: #3a4a53;
  --blue: #2ca9d5;
  --blue-text: #1f7897;
  --blue-btn: #2ba8e2;
  --row-a: #e9f6fd;
  --row-b: #fbfdfe;
  --red: #ff5056;
  --red-text: #d14247;
  --rule: #e4e4e4;
  --muted: #646b6e;
  --on-blue: #06222e;
  --col: 825px;
  --side: 255px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font); font-size: 15.2px; line-height: 1.6; overflow-wrap: break-word; }
a { color: var(--blue-text); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--on-blue); outline-offset: 2px; }
p { margin: 0 0 16px; }
strong, b { font-weight: 700; color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }
h1 { font-size: clamp(26px, 1.4vw + 20px, 32px); font-weight: 700; margin-bottom: 18px; }
h2 { font-size: clamp(24px, 1vw + 19px, 32px); font-weight: 500; margin: 56px 0 16px; }
h3 { font-size: clamp(19px, 0.8vw + 15px, 24px); font-weight: 700; margin: 28px 0 10px; }
var { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 10px 16px; background: var(--on-blue); color: #fff; }
.skip:focus { top: 12px; }

.hdr { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--rule); }
.hdr::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--red) 0 25%, var(--blue) 25% 50%, var(--blue-btn) 50% 75%, var(--on-blue) 75%); }
.hdr__row { display: flex; align-items: center; gap: 24px; max-width: 1140px; min-height: 72px; margin: 0 auto; padding: 8px 16px; }
.brand { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand:hover { text-decoration: none; }
.brand__name { font-size: 24px; font-weight: 300; letter-spacing: 0.5px; text-transform: uppercase; }
.brand__name b { font-weight: 800; color: var(--blue-text); }
.brand__sub { margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--muted); }
.hdr__nav { display: none; margin-left: auto; }
.hdr__nav ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.hdr__nav a { color: var(--ink); font-size: 14px; font-weight: 300; text-transform: uppercase; }
.hdr__nav a:hover { color: var(--blue-text); text-decoration: none; }

.btn { white-space: nowrap; display: inline-block; padding: 12px 22px; border-radius: 4px; font-size: 15px; font-weight: 800; font-style: italic; line-height: 1.3; text-transform: uppercase; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn--outline { margin-left: auto; border: 2px solid var(--red); color: var(--red-text); background: #fff; }
.btn--outline:hover { background: var(--red); color: var(--on-blue); }
.btn--solid { border: 2px solid var(--blue-btn); background: var(--blue-btn); color: var(--on-blue); border-radius: 0; font-style: normal; }
.btn--solid:hover { background: var(--on-blue); border-color: var(--on-blue); color: #fff; }
.btn--cta { border: 2px solid var(--red); background: var(--red); color: var(--on-blue); padding: 16px 25px; font-size: 18px; }
.btn--cta:hover { background: #fff; color: var(--red-text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn--outline { margin-left: 0; }

.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; max-width: 1140px; margin: 0 auto; padding: 24px 16px 64px; }
.col { min-width: 0; max-width: var(--col); }
.side { order: -1; }

.hero { padding: 16px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; background: var(--row-a); color: var(--cell); font-size: 13px; font-weight: 600; }
.leader { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin: 0 0 16px; padding: 18px 20px; border-left: 6px solid var(--blue); background: var(--row-b); }
.leader p { margin: 0; }
.leader__score { display: flex; flex-direction: column; align-items: center; }
.leader__v { font-size: 44px; font-weight: 800; line-height: 1; color: var(--ink); }
.leader__max { font-size: 12px; font-weight: 600; color: var(--muted); }
.leader__text { font-size: 16px; font-weight: 600; color: var(--ink); }
.note { color: var(--cell); }

.kpis { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.kpis li { padding: 18px 20px; border: 1px solid var(--rule); border-top: 4px solid var(--blue); }
.kpi__num { margin: 0 0 8px; font-size: 36px; font-weight: 800; line-height: 1; color: var(--ink); }
.kpis li p:last-child { margin: 0; }

.tbl-wrap { margin: 20px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; color: var(--cell); }
.tbl thead th { padding: 12px; background: var(--blue); color: var(--on-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; text-align: left; vertical-align: bottom; }
.tbl td, .tbl tbody th { padding: 12px; border-bottom: 1px solid #fff; text-align: left; vertical-align: top; }
.tbl tbody tr:nth-child(odd) > * { background: var(--row-a); }
.tbl tbody tr:nth-child(even) > * { background: var(--row-b); }
.tbl tbody th { font-weight: 700; color: var(--ink); }
.tbl--small { font-size: 12.5px; }
.tbl--rank { min-width: 760px; }
.tbl--rank .is-lead > * { box-shadow: inset 0 2px 0 var(--red), inset 0 -2px 0 var(--red); }
.tbl--rank .sticky { position: sticky; left: 0; z-index: 1; }
.tbl--rank thead .sticky { background: var(--blue); }
.col-index { min-width: 200px; }
.bar { display: flex; align-items: center; gap: 10px; }
.bar::before { content: ""; height: 10px; width: calc(var(--v) * 1.3px); background: var(--blue); flex: none; }
.bar b { color: var(--ink); font-size: 15px; }
.tbl thead button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tbl thead button::after { content: ""; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; opacity: 0.45; }
.tbl thead button:focus-visible { outline: 2px solid var(--on-blue); outline-offset: 2px; }
.tbl thead [aria-sort] button::after { opacity: 1; }
.tbl thead [aria-sort="ascending"] button::after { border-top-color: transparent; border-bottom-color: currentColor; margin-top: -4px; }

.heat { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 3px; font-size: 13.5px; }
.heat thead th { padding: 10px 6px; background: var(--blue); color: var(--on-blue); font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.25; vertical-align: bottom; }
.heat tbody th, .heat tfoot th { padding: 10px; background: #fff; color: var(--ink); text-align: left; font-weight: 700; white-space: nowrap; }
.heat td { padding: 12px 6px; text-align: center; font-weight: 700; color: var(--on-blue); background: rgba(44, 169, 213, var(--b)); }
.heat td.none { background: #f4f5f6; color: #5f666a; font-weight: 400; }
.heat tfoot td { background: #fff; border-top: 2px solid var(--rule); color: var(--cell); font-weight: 600; }
.heat .sticky { position: sticky; left: 0; z-index: 1; }
.heat thead .sticky { background: var(--blue); }

.formula { margin: 18px 0; padding: 18px 20px; overflow-x: auto; background: var(--row-b); border-left: 6px solid var(--blue); font-size: 20px; color: var(--ink); }
.formula math { font-size: 1.1em; }

.callout { padding: 16px 20px; border-left: 6px solid var(--blue); background: var(--row-a); color: var(--cell); }
.callout--warn { border-left-color: var(--red); background: #fff5f5; }
.small { font-size: 12.5px; color: var(--muted); }
.list { padding-left: 22px; }
.list li { margin-bottom: 8px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }

.chart { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--rule); }
.chart figcaption { margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--ink); }
.hbars { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 4rem; align-items: center; gap: 12px; font-size: 13.5px; }
.hbars__name { font-weight: 700; color: var(--ink); }
.hbars__track { height: 18px; background: linear-gradient(var(--blue), var(--blue)) left / calc(var(--v) * 1%) 100% no-repeat, var(--row-a); }
.hbars__v { font-weight: 800; color: var(--ink); text-align: right; }

.agency { margin: 0 0 18px; }
.agency__box { border: 1px solid var(--rule); background: #fff; }
.agency--lead .agency__box { border: 2px solid var(--red); }
.agency__head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name score" "sub score"; column-gap: 16px; align-items: center; padding: 18px 48px 18px 20px; cursor: pointer; list-style: none; background: var(--row-b); }
.agency__head::-webkit-details-marker { display: none; }
.agency__name { grid-area: name; margin: 0; font-size: 22px; }
.agency__sub { grid-area: sub; margin-top: 6px; padding-right: 26px; font-size: 13px; font-weight: 600; color: var(--cell); }
.score { grid-area: score; display: flex; flex-direction: column; align-items: flex-end; }
.score__label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.score__v { font-size: 32px; font-weight: 800; line-height: 1; color: var(--ink); }
.agency__body { padding: 18px 20px 6px; }
.agency__head::after, .accordion summary::after, .toc summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.2s; }
.agency__head::after { position: absolute; right: 18px; top: 50%; margin-top: -6px; }
details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.mini { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mini li { padding: 16px 18px; border: 1px solid var(--rule); border-left: 6px solid var(--blue); }
.mini h3 { margin: 0 0 6px; font-size: 17px; }
.mini p { margin: 0; }

.accordion { margin: 12px 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.accordion details, .accordion > li { border-bottom: 1px solid var(--rule); }
.accordion summary { display: flex; align-items: center; gap: 12px; padding: 14px 2px; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ink); list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { margin-left: auto; }
.accordion summary:hover { color: var(--blue-text); }
.accordion details > :not(summary) { margin: 0 2px 16px; }
.accordion--numbered { counter-reset: q; }
.accordion--numbered > li { counter-increment: q; }
.accordion--numbered summary::before { content: counter(q) "."; color: var(--blue-text); flex: none; }

.flags { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.flags li { padding: 12px 16px; border-left: 6px solid var(--red); background: #fff5f5; }

.quote { margin: 0; padding: 22px 24px; background: var(--row-a); }
.quote blockquote { margin: 0 0 18px; }
.quote blockquote p { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--ink); }
.person { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 14px; }
.person__avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: var(--on-blue); font-weight: 800; font-size: 18px; }
.team { display: grid; gap: 16px; margin: 12px 0 20px; padding: 0; list-style: none; }
.team .person { align-items: start; }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; padding: 22px 24px; border: 2px solid var(--blue); }
.form h3 { margin: 0 0 4px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #b9c3c8; border-radius: 0; background: #fff; font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue-text); flex: none; }
.form .btn { justify-self: start; }

.side { min-width: 0; }
.toc__box { border: 1px solid var(--rule); }
.toc summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--blue); color: var(--on-blue); font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 0; padding: 8px 0; list-style: none; }
.toc a { display: block; padding: 6px 16px; border-left: 3px solid transparent; color: var(--text); font-size: 13px; font-weight: 500; line-height: 1.35; }
.toc a:hover { color: var(--blue-text); text-decoration: none; }
.toc a.is-current { border-left-color: var(--red); color: var(--ink); font-weight: 700; }

.ftr { border-top: 1px solid var(--rule); }
.ftr__row { display: grid; gap: 8px; max-width: 1140px; margin: 0 auto; padding: 28px 16px 36px; font-size: 13px; color: var(--muted); }
.ftr p { margin: 0; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr__links a { color: var(--muted); font-weight: 600; }
.brand--ftr { margin-bottom: 6px; }

@media (min-width: 640px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .agency__head { grid-template-areas: "name score" "sub score"; padding: 18px 20px; }
  .agency__head::after { display: none; }
  .agency__sub { padding-right: 0; }
}

@media (min-width: 1000px) {
  .hdr__nav { display: block; }
  .btn--outline { margin-left: 0; }
}

@media (min-width: 1100px) {
  .page { grid-template-columns: minmax(0, var(--col)) var(--side); }
  .side { order: 0; }
  .toc { position: sticky; top: 100px; }
  .toc summary { pointer-events: none; }
  .toc summary::after { display: none; }
}

@media (max-width: 480px) {
  .brand__name { font-size: 20px; }
  .brand__sub { display: none; }
  .hdr .btn--outline { padding: 8px 10px; font-size: 11px; }
  .brand__name { font-size: 18px; }
  .leader { grid-template-columns: 1fr; }
  .leader__score { align-items: flex-start; }
  .hbars li { grid-template-columns: 7rem minmax(0, 1fr) 3.4rem; }
  .btn--cta { width: 100%; white-space: normal; }
  .form { padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .hdr { position: static; }
  .side, .skip, .form { display: none; }
  .tbl-wrap { overflow: visible; }
}
