/* profile.by — визуальный язык: тёмная шапка, узкий жирный гротеск в заголовках,
   кобальт + жёлтый маркер на белом, плоские блоки без скруглений и теней. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f3f6fa;
  --text: #0e1b2c;
  --ink: #0e1b2c;
  --muted: #5a6b80;
  --line: #dce2ea;
  --accent: #1447e6;
  --accent-dark: #0f38b8;
  --accent-soft: #e8eeff;
  --mark: #ffd60a;
  --up: #0b8f5c;
  --down: #d93a3f;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .45em; }
h1, h2, .display { font-family: var(--display); text-transform: uppercase; font-weight: 900; line-height: .92; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* header */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.logo { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; text-transform: uppercase; color: #fff; }
.logo:hover { text-decoration: none; }
.logo span { color: var(--mark); }
.nav { display: flex; gap: 2px 22px; margin-left: auto; flex-wrap: wrap; }
.nav a { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 1.3rem; color: #fff; padding: 6px 0; }
.nav a:hover, .nav a.active { text-decoration: none; box-shadow: inset 0 -3px 0 var(--mark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid #fff; color: #fff; padding: 4px 10px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .site-header .container { flex-wrap: wrap; padding-block: 8px; }
}

/* layout */
main { padding: 0 0 72px; }
.section { margin-bottom: 52px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.grid { display: grid; gap: 0 36px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 36px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* hero: полноширинная кобальтовая полоса */
.hero { background: var(--accent); color: #fff; margin-inline: calc(50% - 50vw); padding: 40px calc(50vw - 50%) 36px; border-bottom: 6px solid var(--mark); }
.hero h1 { max-width: 16em; margin-bottom: 14px; }
.hero p.lead { font-size: 1.1rem; max-width: 60ch; opacity: .92; margin: 0 0 18px; }
.hero p:last-child { margin-bottom: 0; }
.hero a { color: #fff; text-decoration: underline; }
.hero .badge { background: var(--mark); color: var(--ink); }
.badge { display: inline-block; background: var(--ink); color: #fff; padding: 3px 10px; font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 14px; }
.badge:hover { text-decoration: none; }
.badge-gray { background: var(--soft); color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: .92rem; margin: 14px 0 0; }
.meta b { font-weight: 700; }
.card .meta { color: var(--muted); }
.card .meta b { color: var(--text); }

/* хлебные крошки над героем, на кобальте */
.breadcrumbs { background: var(--accent); color: #fff; margin-inline: calc(50% - 50vw); padding: 16px calc(50vw - 50%) 0; font-size: .84rem; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a, .breadcrumbs span { color: #fff; opacity: .8; }
.breadcrumbs .current { opacity: 1; }
.breadcrumbs + .hero { padding-top: 12px; }

/* buttons */
.btn { display: inline-block; padding: 13px 22px; font: inherit; font-weight: 700; line-height: 1.2; border: 2px solid var(--ink); cursor: pointer; background: var(--ink); color: #fff; border-radius: 0; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.hero .btn { text-decoration: none; }
.hero .btn-primary { background: var(--mark); border-color: var(--mark); color: var(--ink); }
.hero .btn-primary:hover { background: #fff; border-color: #fff; }
.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: default; }

/* блок темы */
.rating-card { display: flex; flex-direction: column; gap: 12px; border: 0; border-left: 6px solid var(--accent); background: var(--soft); }
.category-grid, .grid-3:has(.category-card) { gap: 20px; }
.category-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; background: var(--soft); border-top: 4px solid var(--ink); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.category-card:hover { border-top-color: var(--accent); background: #fff; box-shadow: inset 0 0 0 2px var(--ink); text-decoration: none; }
.category-card h3 { margin: 0; font-family: var(--display); text-transform: uppercase; font-weight: 900; font-size: 1.5rem; line-height: 1.05; color: var(--ink); }
.category-card .leader { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-card .leader-label { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.category-card .leader-site { font-weight: 600; overflow-wrap: anywhere; }
.category-card .leader-value { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.category-card .meta { font-size: .8rem; color: var(--muted); }
.category-card .go { margin-top: auto; font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.rating-card h3 a, .rating-card h2 a { color: var(--text); }
.rating-card h3 { font-family: var(--display); text-transform: uppercase; font-weight: 800; line-height: .95; }

/* рейтинги по услугам: строки-ссылки, не карточки */

/* table */
.table-wrap { overflow-x: auto; }
table.rating { width: 100%; border-collapse: collapse; font-size: .96rem; font-variant-numeric: tabular-nums; }
table.rating th, table.rating td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; vertical-align: middle; }
table.rating th { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
table.rating td.num, table.rating th.num { text-align: right; }
table.rating tr:hover td { background: var(--soft); }
table.rating td.domain { font-weight: 600; }
table.rating td.domain a { color: var(--text); }
.site-sub { display: block; margin: 3px 0 0 30px; max-width: 460px; font-size: .78rem; font-weight: 400; line-height: 1.35; color: var(--muted); white-space: normal; }
.site-sub b { color: var(--text); font-weight: 600; }
.site-ico { position: relative; display: inline-block; width: 20px; height: 20px; margin-right: 10px; vertical-align: -5px; background: var(--soft); color: var(--muted); font: 800 .78rem/20px var(--display); text-align: center; overflow: hidden; }
.site-ico img { position: absolute; inset: 0; width: 20px; height: 20px; background: #fff; }
.rank { display: inline-block; min-width: 1.4em; font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.rank-1, .rank-2, .rank-3 { color: var(--accent); }
.delta { font-size: .82rem; font-weight: 700; margin-left: 6px; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.same { color: var(--muted); }
table.rating td.dcol, table.rating th.dcol { width: 56px; padding-left: 0; }
table.rating td.dcol .delta { margin-left: 0; }
table.rating td.vis { display: table-cell; }
.vis-bar { position: relative; display: inline-block; width: 120px; height: 10px; background: var(--soft); vertical-align: middle; margin-right: 10px; }
.vis-val { display: inline-block; width: 56px; text-align: right; }
.vis-delta { display: inline-block; width: 52px; text-align: right; }
.vis-delta .delta { margin-left: 0; }
table.rating tr.podium td { background: #eef8f2; }
table.rating tr.podium td:first-child { box-shadow: inset 4px 0 0 var(--up); }
table.rating tr.podium:hover td { background: #e4f3ea; }
.vis-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }

/* charts */
.chart-box { position: relative; height: 340px; }
@media (max-width: 640px) { .chart-box { height: 280px; } }
.chart-tabs { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); }
.chart-tabs button { background: transparent; border: 0; padding: 6px 14px; font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; color: var(--ink); border-radius: 0; }
.chart-tabs button.active { background: var(--ink); color: #fff; }

/* prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose blockquote { margin: 0 0 1em; padding: 14px 20px; border-left: 6px solid var(--mark); background: var(--soft); font-weight: 600; }
.summary { background: var(--soft); border: 0; border-left: 6px solid var(--mark); }
.summary .label { font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 1.3rem; margin-bottom: 8px; }

/* forms */
.lead-form { display: grid; gap: 12px; }
.lead-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lead-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.lead-form input, .lead-form textarea { width: 100%; padding: 11px 12px; border: 2px solid var(--line); font: inherit; background: #fff; border-radius: 0; }
.lead-form input:focus, .lead-form textarea:focus { outline: 0; border-color: var(--accent); }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.lead-form .consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.lead-form .error { color: var(--down); font-size: .85rem; }
.lead-form .success { background: #e9f8f1; border-left: 6px solid var(--up); color: #07543a; padding: 12px 16px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* призыв: жёлтый блок */
.cta { background: var(--mark); color: var(--ink); border: 0; padding: 30px; }
.cta h2 { margin-bottom: 12px; max-width: 22em; }
.cta p { max-width: 60ch; }
.cta .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta .btn-primary:hover { background: var(--accent); border-color: var(--accent); }

/* articles */
.article-card { border: 0; border-top: 2px solid var(--ink); padding: 16px 0 24px; }
.article-card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.article-card h3 a { color: var(--text); }
.article-cover { aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 12px; }

/* footer */
.site-footer { background: var(--ink); color: #c5cfdc; padding: 32px 0; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer b { color: #fff; }
.history-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.history-list li { border: 2px solid var(--line); padding: 4px 12px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.history-list li.current { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 2px solid var(--line); }

/* выбор сайтов для графика динамики */
.site-picker { margin-top: 12px; }
.site-picker-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.site-check { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; cursor: pointer; padding: 4px 8px; background: var(--soft); }
.site-check input { accent-color: var(--accent); }
.site-check .swatch { width: 12px; height: 12px; display: inline-block; }
.site-check.is-disabled { opacity: .45; cursor: default; }

/* переключатель Сводный / Google / Яндекс */
.engine-tabs { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); margin-bottom: 22px; }
.engine-tabs button { background: transparent; border: 0; border-radius: 0; padding: 7px 20px; font-family: var(--display); text-transform: uppercase; font-weight: 800; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.engine-tabs button.active { background: var(--ink); color: #fff; }

/* подкатегории, FAQ */
.category-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.category-chip { display: inline-block; padding: 7px 14px; border: 2px solid var(--line); color: var(--text); font-size: .9rem; font-weight: 600; }
.category-chip:hover { border-color: var(--ink); text-decoration: none; }
.category-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq { display: grid; gap: 0; max-width: 860px; border-top: 2px solid var(--ink); }
.faq-item { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

/* страницы без кобальтовой полосы сверху: отступ от шапки */
main > .container > *:first-child:not(.hero):not(.breadcrumbs) { margin-top: 36px; }
.hero { margin-bottom: 40px; }
