/* PF-Rating.ru — без внешних шрифтов и фреймворков */
:root {
  --bg: #f8fafc; --surface: #fff; --surface-2: #f1f5f9; --border: #e2e8f0;
  --text: #0f172a; --text-2: #475569; --muted: #64748b;
  --primary: #2563eb; --primary-h: #1d4ed8; --primary-soft: #eff6ff;
  --ok: #059669; --ok-soft: #d1fae5; --bad: #dc2626; --bad-soft: #fee2e2;
  --warn-soft: #fffbeb; --warn-border: #fcd34d;
  --gold: #f59e0b; --silver: #94a3b8; --bronze: #c2410c;
  --radius: 14px; --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 4px 16px rgb(15 23 42 / .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120; --surface: #111a2e; --surface-2: #17223a; --border: #23314d;
    --text: #e2e8f0; --text-2: #cbd5e1; --muted: #94a3b8;
    --primary: #3b82f6; --primary-h: #60a5fa; --primary-soft: #172554;
    --ok: #34d399; --ok-soft: #064e3b; --bad: #f87171; --bad-soft: #450a0a;
    --warn-soft: #2a1f05; --warn-border: #854d0e;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); font-weight: 700; }
h3, .h3 { font-size: 1.1rem; font-weight: 700; }
.h4 { font-size: .95rem; margin-top: 1.2em; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, Consolas, monospace; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding-top: 40px; padding-bottom: 8px; scroll-margin-top: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 760px; }
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .5em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
.nowrap { white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .95rem;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); color: #fff; }
.btn-ghost { background: var(--primary-soft); color: var(--primary); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; margin-top: 12px; }

/* Шапка */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 1.2rem; text-decoration: none !important; }
.logo svg { color: var(--primary); }
.logo b { color: var(--primary); }
.logo-sm { font-size: 1.05rem; margin-bottom: 8px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--text-2); font-weight: 500; font-size: .95rem; padding: 20px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav a.active { color: var(--text); border-color: var(--primary); }
.nav-toggle, .burger { display: none; }

.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); padding-top: 16px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--primary-soft), transparent); padding: 48px 0 16px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; max-width: 820px; }
.stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.stats dt { font-size: .8rem; color: var(--muted); }
.stats dd { margin: 0; font-size: 1.6rem; font-weight: 800; }

/* Подиум */
.podium { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.podium-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.podium-card.place-1 { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.podium-head { display: flex; gap: 12px; align-items: center; }
.podium-head h3 { margin: 0; }
.podium-head p { margin: 0; }
.podium-score b { font-size: 2.2rem; font-weight: 800; }
.podium-score span { color: var(--muted); margin-left: 4px; }
.podium-actions { display: flex; gap: 8px; margin-top: auto; }
.podium-actions .btn { flex: 1; }

.kv { list-style: none; padding: 0; margin: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.kv li:last-child { border: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; }

.promo { background: var(--warn-soft); border: 1px dashed var(--warn-border); border-radius: 10px; padding: 8px 12px; font-size: .88rem; margin: 0; }

/* Логотип, места, бейджи */
.slogo { --c: var(--primary); flex: none; width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--c); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .02em; object-fit: contain; }
.slogo-lg { width: 72px; height: 72px; font-size: 1.3rem; border-radius: 16px; }
.rank { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: .9rem; }
.rank-1 { background: #fef3c7; color: #92400e; }
.rank-2 { background: #e2e8f0; color: #334155; }
.rank-3 { background: #ffedd5; color: #9a3412; }
.trend { font-size: .75rem; font-weight: 700; color: var(--muted); }
.trend-up { color: var(--ok); }
.trend-down { color: var(--bad); }
.trend-new { color: var(--primary); text-transform: uppercase; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.badge-live { background: #dbeafe; color: #1e40af; }
.badge-mixed { background: #d1fae5; color: #065f46; }
.badge-bots { background: #e2e8f0; color: #334155; }
.eng { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: .75rem; font-weight: 800; margin-right: 4px; color: #fff; }
.eng-yandex { background: #fc3f1d; }
.eng-google { background: #4285f4; }
.engines { margin-bottom: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.tag { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-promo { background: var(--warn-soft); color: #b45309; }
.tag-off { opacity: .45; text-decoration: line-through; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .9rem; }
.stars-off { color: var(--border); }
.bar { display: block; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; min-width: 60px; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }

/* Фильтры */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px 14px; padding: 18px; margin: 12px 0; align-items: end; }
.filters label span, .form label > span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
select, input[type=text], input[type=number], input[type=url], input[type=password], input:not([type]), textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 11px; }
select:focus, input:focus, textarea:focus { border-color: var(--primary); outline: 2px solid var(--primary-soft); }
.check { display: flex !important; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; padding-bottom: 9px; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.filters-actions { display: flex; gap: 8px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.quick a { font-size: .85rem; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.quick a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* Таблица рейтинга */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.rating th, .compare th { text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: 12px 14px; white-space: nowrap; }
.rating td { padding: 16px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.rating tbody tr:hover { background: var(--surface-2); }
.sortable a { color: inherit; display: inline-flex; gap: 4px; align-items: center; }
.sortable a:hover { color: var(--primary); text-decoration: none; }
.sort-ic { opacity: .4; font-size: .85em; }
.is-sorted a { color: var(--primary); }
.is-sorted .sort-ic { opacity: 1; }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.col-cmp { width: 36px; padding-right: 0 !important; }
.cmp-check input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.col-rank { white-space: nowrap; }
.score-mini { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.score-mini b { color: var(--text); font-size: 1rem; }
.svc { display: flex; align-items: center; gap: 12px; color: inherit; }
.svc > span:last-child { display: flex; flex-direction: column; }
.svc-name { font-weight: 700; color: var(--text); }
.col-act { text-align: right; white-space: nowrap; }
.col-act .btn + .btn { margin-left: 6px; }
.cmp-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; }
.empty { padding: 32px; text-align: center; }

/* Категории */
.cat { padding: 18px; display: flex; flex-direction: column; gap: 10px; color: inherit; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }
.cat-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }

/* Методика / веса */
.weights { list-style: none; margin: 0; padding: 20px; }
.weights li, .criteria li { display: grid; grid-template-columns: 140px 1fr 44px; gap: 12px; align-items: center; padding: 8px 0; }
.weights b, .criteria b { text-align: right; }
.criteria { list-style: none; padding: 0; margin: 0; }
.criteria .bar { height: 10px; margin: 0; }
.formula { background: var(--surface-2); border-radius: 10px; padding: 12px 16px; font: .9rem ui-monospace, Consolas, monospace; overflow-x: auto; }
.steps { padding-left: 1.3em; margin: 0; }
.steps li { margin-bottom: .7em; }
.dots { padding-left: 1.2em; margin: 0; }
.dots li { margin-bottom: .6em; }
.warn { background: var(--warn-soft); border-color: var(--warn-border); }
.prose h2 { margin-top: 1.6em; }

/* Отзывы */
.review { border-top: 1px solid var(--border); padding: 14px 0; }
.card.review { border-top: 1px solid var(--border); }
.review header { margin-bottom: 4px; }
.review p { margin: 6px 0 0; color: var(--text-2); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 44px 16px 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text-2); }

/* CTA */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px; background: linear-gradient(120deg, var(--primary-soft), var(--surface)); }
.cta p { margin: 0; color: var(--text-2); }

/* Страница сервиса */
.svc-hero { display: flex; justify-content: space-between; gap: 32px; align-items: center; }
.svc-hero-main { display: flex; gap: 20px; align-items: flex-start; }
.svc-hero h1 { margin-bottom: .2em; }
.svc-hero .lead { margin-bottom: .4em; }
.svc-hero-side { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 240px; text-align: center; }
.big-score b { display: block; font-size: 3rem; font-weight: 800; line-height: 1.1; }
.big-score > span { display: block; color: var(--muted); font-size: .85rem; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 24px; align-items: start; }
.svc-main { display: flex; flex-direction: column; gap: 24px; }
.svc-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 84px; }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li { padding: 4px 0 4px 26px; position: relative; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 800; }
.pros-h { color: var(--ok); }
.cons-h { color: var(--bad); }
.test-res { display: flex; gap: 24px; align-items: center; margin-bottom: 16px; }
.test-big { flex: none; text-align: center; background: var(--primary-soft); border-radius: 14px; padding: 16px 22px; }
.test-big b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.test-big span { font-size: .8rem; color: var(--muted); }
.test-res p { margin: 0; }
.spark { width: 100%; max-width: 520px; height: auto; display: block; }
.spark polyline { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; }
.spark circle { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.spark-v { font-size: 11px; font-weight: 700; fill: var(--text); text-anchor: middle; }
.spark-m { font-size: 10px; fill: var(--muted); text-anchor: middle; }
.tariffs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tariff { border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tariff .price { font-weight: 700; color: var(--primary); }
.alt { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); color: inherit; }
.alt:hover { text-decoration: none; }
.alt:hover b { color: var(--primary); }
.alt > span:last-child { display: flex; flex-direction: column; }

/* Формы */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: block; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; padding: 0; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
.radios legend { width: 100%; }
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate legend { float: left; width: 100%; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 1.9rem; color: var(--border); cursor: pointer; padding: 0 2px; line-height: 1; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-weight: 500; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-err { background: var(--bad-soft); color: var(--bad); }
form.inline { display: inline; }
form.inline + form.inline { margin-left: 4px; }

/* Сравнение */
.compare td, .compare tbody th { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.compare tbody th { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text-2); background: transparent; font-weight: 600; }
.compare td.win { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.compare thead .svc { gap: 8px; text-transform: none; font-size: .95rem; letter-spacing: 0; color: var(--text); }
.wrap-text { min-width: 240px; white-space: normal; }

/* Подвал */
.site-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.footer-grid a { display: block; color: var(--text-2); padding: 3px 0; }
.footer-note { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 16px; font-size: .8rem; color: var(--muted); }
.footer-note p { margin: 0 0 6px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .podium { grid-template-columns: 1fr; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .burger { display: block; width: 40px; height: 40px; position: relative; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; }
  .burger span { top: 19px; }
  .burger span::before { top: -7px; left: 0; right: 0; }
  .burger span::after { top: 7px; left: 0; right: 0; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-hero { flex-direction: column; align-items: stretch; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .test-res { flex-direction: column; align-items: flex-start; }

  /* Таблица -> карточки */
  .table-wrap.card:has(.rating) { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .rating thead { display: none; }
  .rating, .rating tbody, .rating tr, .rating td { display: block; }
  .rating tr { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
  .rating tbody tr:hover { background: var(--surface); }
  .rating td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .rating td::before { content: attr(data-label); font-size: .8rem; color: var(--muted); text-align: left; flex: none; }
  .rating td.col-name { order: -1; display: block; text-align: left; padding-right: 40px; }
  .rating td.col-name::before, .rating td.col-act::before, .rating td.col-cmp::before { content: none; }
  .rating td.col-cmp { position: absolute; top: 16px; right: 16px; width: auto; }
  .rating td .cv { min-width: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; }
  .rating td .cv > .muted { width: 100%; text-align: right; }
  .rating td .engines { margin: 0; }
  .rating td .bar { width: 80px; margin: 0; }
  .rating td.col-act { display: flex; gap: 8px; padding-top: 12px; }
  .rating td.col-act .btn { flex: 1; margin: 0 !important; }
  .rating tr { display: flex; flex-direction: column; }
  .cmp-bar { justify-content: space-between; }
}
@media (max-width: 480px) {
  .pad { padding: 18px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 14px; }
  .weights li, .criteria li { grid-template-columns: 110px 1fr 40px; }
}
@media print {
  .site-header, .filters, .quick, .cmp-bar, .col-act, .col-cmp, .cta, .site-footer { display: none !important; }
}

/* ---------- Статьи ---------- */
.quick a.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a { min-width: 38px; text-align: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.pager a.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.art-card a { display: flex; flex-direction: column; gap: 8px; padding: 20px; height: 100%; color: inherit; text-decoration: none; }
.art-card h3 { margin: 0; }
.art-card p { margin: 0; flex: 1; }
.art-card:hover { border-color: var(--primary); }
.art-card:hover h3 { color: var(--primary); }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 24px; align-items: start; }
.art { max-width: 760px; }
.art header { margin-bottom: 24px; }
.art header .cat-title { display: inline-block; margin-bottom: 8px; }
.art-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.toc { margin-bottom: 28px; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.toc li { margin: 4px 0; }
.art-body { font-size: 1.05rem; }
.art-body h2 { scroll-margin-top: 80px; }
.art-body ul, .art-body ol { padding-left: 1.3em; }
.art-body li { margin-bottom: .4em; }
.art-body table { margin: 1em 0 1.4em; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: block; overflow-x: auto; }
.art-body th, .art-body td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.art-body th { background: var(--surface-2); font-size: .9rem; }
.art-body blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; }
.art-body .note { padding: 14px 18px; background: var(--warn-soft); border: 1px solid var(--warn-border); border-radius: 10px; margin: 1.2em 0; }
.inline-svc { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; margin: 1.2em 0; }
.art .faq { margin-top: 32px; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 16px; }
.calc-result { position: sticky; top: 84px; scroll-margin-top: 84px; }
.stats-2 { grid-template-columns: 1fr 1fr; margin: 0 0 16px; }
.stats-2 dd { font-size: 1.4rem; }
.stats-2 small { font-size: .9rem; font-weight: 600; }
.calc-range { font-size: 1.2rem; margin: 0; }
.calc-range b { color: var(--primary); }
.calc-mini { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 16px; align-items: end; background: linear-gradient(120deg, var(--primary-soft), var(--surface)); }
.calc-mini h2 { margin-bottom: .3em; }
.calc-mini p { margin: 0; }
.calc-mini label span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }

@media (max-width: 1000px) {
  .art-layout, .calc { grid-template-columns: minmax(0, 1fr); }
  .art-side, .calc-result { position: static; }
  .calc-mini { grid-template-columns: 1fr 1fr; }
  .calc-mini > div, .calc-mini .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .inline-svc { flex-direction: column; align-items: stretch; }
}

/* Контент-страницы на всю ширину (рейтинги, подборки, цены) */
.page-wide { padding-top: 24px; }
.page-wide .art { max-width: none; }
.page-wide .art-body > p, .page-wide .art-body > ul, .page-wide .art-body > ol, .page-wide .art-body > h2, .page-wide .art-body > h3, .page-wide .toc, .page-wide header { max-width: 820px; }
.art-body .table-wrap { margin: 16px 0 20px; }
.art-body table.compare th, .art-body table.compare td { vertical-align: top; }
.link-list { columns: 2; padding-left: 1.2em; }
.link-list li { margin: 4px 0; break-inside: avoid; }
.widget { margin: 16px 0; }
@media (max-width: 720px) { .link-list { columns: 1; } }
.art-body table.compare thead th { white-space: normal; }
.art-body table.compare th, .art-body table.compare td { padding-left: 10px; padding-right: 10px; }

/* Мобильные карточки вместо таблиц в тексте страниц */
@media (max-width: 720px) {
  .art-body .table-wrap:not(.widget) table.compare thead { display: none; }
  .art-body .table-wrap:not(.widget) table.compare, .art-body .table-wrap:not(.widget) table.compare tbody, .art-body .table-wrap:not(.widget) table.compare tr { display: block; width: 100%; }
  .art-body .table-wrap:not(.widget) table.compare tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .art-body .table-wrap:not(.widget) table.compare td, .art-body .table-wrap:not(.widget) table.compare tbody th { display: grid; grid-template-columns: 42% 1fr; gap: 8px; padding: 4px 0; border: 0; text-align: left; }
  .art-body .table-wrap:not(.widget) table.compare td::before, .art-body .table-wrap:not(.widget) table.compare tbody th::before { content: attr(data-label); color: var(--muted); font-size: .8rem; font-weight: 600; }
  .art-body .table-wrap:not(.widget) table.compare td:first-child, .art-body .table-wrap:not(.widget) table.compare tbody th:first-child { font-weight: 700; }
}
