/* ═══════════════════════════════════════════════════════════════════
   ПроксиИндекс · дизайн-система v2 (02.11.2026)
   Шрифты: Unbounded — заголовки и цифры, Golos Text — текст.
   Движение: появление при прокрутке (.js + .in), заполнение полос и колец,
   счётчики, переходы между страницами (View Transitions). Без JS всё видно сразу.
   ═══════════════════════════════════════════════════════════════════ */

@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --bg: #f4f3ee; --paper: #ffffff; --paper-2: #fbfaf7;
  --ink: #0c1915; --ink-2: #3b4844; --muted: #6a7672;
  --line: #e2e0d8; --line-2: #eeece6;
  --accent: #0d6b55; --accent-2: #10886b; --accent-soft: #e2f2ec; --mint: #5fe0b8; --mint-2: #a6f0d6;
  --gold: #f2c14e; --warn: #b7791f; --warn-soft: #fbf1dd; --no: #a0a8a5; --no-soft: #f0f1ee;
  --night: #06130f; --night-2: #0b2a21; --night-ink: #eaf5f0; --night-muted: #9cb8ae;
  --radius: 16px; --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(12,25,21,.04), 0 8px 28px -8px rgba(12,25,21,.10);
  --shadow-hi: 0 2px 4px rgba(12,25,21,.05), 0 22px 48px -16px rgba(12,25,21,.22);
  --ease: cubic-bezier(.22,.8,.24,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1210; --paper: #111c18; --paper-2: #0e1815; --ink: #e9f2ee; --ink-2: #b8c6c1; --muted: #8a9a95;
    --line: #22302b; --line-2: #18241f; --accent: #4fd1ac; --accent-2: #7ee3c4; --accent-soft: #12302a;
    --warn: #e2b05a; --warn-soft: #2b2416; --no: #5f6b67; --no-soft: #18221f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6); --shadow-hi: 0 24px 50px -18px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1210; --paper: #111c18; --paper-2: #0e1815; --ink: #e9f2ee; --ink-2: #b8c6c1; --muted: #8a9a95;
  --line: #22302b; --line-2: #18241f; --accent: #4fd1ac; --accent-2: #7ee3c4; --accent-soft: #12302a;
  --warn: #e2b05a; --warn-soft: #2b2416; --no: #5f6b67; --no-soft: #18221f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6); --shadow-hi: 0 24px 50px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ── база ─────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--mint-2); color: var(--night); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-family: var(--display); font-weight: 650; font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -0.035em; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); margin-top: 1.8em; letter-spacing: -0.025em; }
h3 { font-size: 17px; font-weight: 650; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
section[id], h2[id], h3[id] { scroll-margin-top: 88px; }

/* ── шапка ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(12,25,21,.35); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 650; font-size: 17px;
  letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo.small { font-size: 15px; }
.logo-mark { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(140deg, var(--accent-2), var(--accent) 60%, var(--night-2));
  position: relative; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); transition: transform .5s var(--ease-out); }
.logo-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--bg); }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.menu { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.menu > a, .dd summary { position: relative; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; transition: color .2s, background .2s; }
.menu > a:not(.nav-cta)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.menu > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.menu > a:hover, .dd summary:hover { color: var(--ink); }
.menu > a.nav-cta { background: var(--ink); color: var(--bg); font-weight: 600; margin-left: 8px; padding: 9px 16px; }
.menu > a.nav-cta:hover { background: var(--accent); color: #fff; }
.dd { position: relative; }
.dd summary { list-style: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
.dd[open] summary::after { transform: rotate(-135deg); vertical-align: -1px; }
.dd-in { position: absolute; right: 0; top: 46px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-hi); padding: 8px; display: grid; min-width: 230px; animation: pop .25s var(--ease-out); z-index: 40; }
.dd-in a { padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 15px; transition: background .2s, padding .25s var(--ease-out); }
.dd-in a:hover { background: var(--accent-soft); padding-left: 16px; }

/* ── кнопки, чипы ─────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 12px; margin: 4px 8px 4px 0;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s; box-shadow: 0 10px 24px -12px rgba(13,107,85,.7); }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { color: #fff; transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 16px 30px -14px rgba(13,107,85,.8); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost::after { display: none; }
.btn.ghost:hover { border-color: var(--accent); background: var(--paper); color: var(--accent); }

/* ── хлебные крошки, герой страниц ───────────────────────────────── */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.hero { padding: 44px 0 12px; max-width: 900px; }
.hero.sm { padding-top: 22px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 20px; max-width: 760px; }
.meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15px; }
.meta b { color: var(--ink); }
.meta-line { color: var(--muted); font-size: 15px; }
.out { font-weight: 600; }

/* ── главная: тёмный первый экран ─────────────────────────────────── */
.hero.hero-home { position: relative; isolation: isolate; max-width: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding: 72px 0 84px; color: var(--night-ink); }
.hero-home::before { content: ""; position: absolute; z-index: -2; inset: 0 calc(50% - 50vw); top: -66px;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(95,224,184,.20), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(242,193,78,.12), transparent 60%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); }
.hero-home::after { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); top: -66px;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(80% 90% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 90% at 70% 30%, #000 20%, transparent 75%);
  animation: grid-drift 40s linear infinite; }
.hero-home .hero-txt { position: relative; }
.hero-home .hero-txt::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,224,184,.16), transparent 65%); filter: blur(10px); animation: float 16s var(--ease) infinite alternate; }
.hero-home h1 { color: #fff; margin-bottom: 18px; }
.hero-home h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), var(--mint-2) 50%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 8s ease-in-out infinite alternate; }
.hero-home .lead { color: var(--night-muted); font-size: 18.5px; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--night-ink); font-size: 13.5px; font-weight: 500; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(95,224,184,.7); animation: ping 2.2s infinite; }
.hero-home .btn { background: var(--mint); color: var(--night); box-shadow: 0 12px 30px -12px rgba(95,224,184,.7); }
.hero-home .btn:hover { background: #fff; color: var(--night); }
.hero-home .btn.ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.22); }
.hero-home .btn.ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.45); color: #fff; }
.hero-btns { margin: 0 0 30px; }
.stats { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 32px; justify-content: start;
  border-top: 1px solid rgba(255,255,255,.12); }
.stats b { display: block; font-family: var(--display); font-size: 34px; font-weight: 600; color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { font-size: 13.5px; color: var(--night-muted); }

/* первая пятёрка — стеклянная карточка */
.podium { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 22px 24px 18px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); color: var(--night-ink);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease-out); }
.podium:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.pod-k { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); margin: 0 0 10px; }
.podium ol { list-style: none; margin: 0; padding: 0; }
.podium li { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: "rk nm sc" ". bar bar"; gap: 6px 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.podium li:last-child { border-bottom: 0; }
.podium .rk { grid-area: rk; background: rgba(255,255,255,.1); color: var(--night-ink); }
.podium li > a { grid-area: nm; font-weight: 600; color: #fff; text-decoration: none; transition: color .2s; }
.podium li > a:hover { color: var(--mint); }
.podium li > b { grid-area: sc; font-family: var(--display); font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.podium .segbar { grid-area: bar; }
.podium .segbar .sg { background: rgba(255,255,255,.1); }
.podium .segbar .sg i { background: linear-gradient(90deg, var(--mint), var(--mint-2)); }
.pod-more { display: inline-flex; gap: 6px; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--mint); text-decoration: none; }
.pod-more:hover { color: #fff; }

/* медали мест */
.rk { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk.rk1, .podium .rk.rk1 { background: linear-gradient(140deg, #ffe08a, #f2c14e 55%, #d99a1e); color: #3d2a00; box-shadow: 0 4px 12px -4px rgba(242,193,78,.8); }
.rk.rk2, .podium .rk.rk2 { background: linear-gradient(140deg, #f4f7f6, #cdd6d3 60%, #a9b4b0); color: #22302b; }
.rk.rk3, .podium .rk.rk3 { background: linear-gradient(140deg, #f6d3b0, #e0a874 60%, #b9783f); color: #3c2208; }

/* сегментная полоса и шкалы */
.segbar { display: flex; gap: 3px; height: 8px; width: 100%; }
.segbar.sm { height: 6px; }
.segbar .sg { display: block; background: var(--line-2); border-radius: 4px; overflow: hidden; min-width: 0; }
.segbar .sg i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; }
.bar { display: block; height: 6px; background: var(--line-2); border-radius: 4px; overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transform-origin: left; }
.ring { --p: var(--to, 0); width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; position: relative; flex: none;
  background: conic-gradient(from -90deg, var(--accent) calc(var(--p) * 1%), var(--line-2) 0); transition: --p 1.4s var(--ease-out); }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--paper); }
.ring b { position: relative; font-family: var(--display); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring.big { width: 104px; height: 104px; background: conic-gradient(from -90deg, var(--mint) 0, var(--accent) calc(var(--p) * 1%), var(--line-2) 0); }
.ring.big::before { inset: 9px; }
.ring.big b { font-size: 32px; letter-spacing: -0.04em; }

/* ── плитки типов ─────────────────────────────────────────────────── */
.sect-head { margin-top: 64px; }
.sect-head h2 { margin: 0 0 4px; }
.sect-head .kicker { margin-bottom: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 22px 0 6px; }
.tile, .grp, .art-card, .near, .how-grid > div, .side-box, .qa { --mx: 50%; --my: 50%; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.tile::before, .art-card::before, .near::before, .grp::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), color-mix(in srgb, var(--mint) 26%, transparent), transparent 70%); transition: opacity .35s; }
.tile:hover::before, .art-card:hover::before, .near:hover::before, .grp:hover::before { opacity: 1; }
.tile .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px;
  transition: transform .5s var(--ease-out), background .3s, color .3s; }
.tile b { position: relative; color: var(--ink); font-size: 16.5px; font-weight: 650; }
.tile span { position: relative; font-size: 14px; line-height: 1.45; }
.tile i { position: relative; font-style: normal; color: var(--accent); font-size: 13.5px; font-weight: 600; margin-top: auto; padding-top: 8px; transition: letter-spacing .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink-2); }
.tile:hover .ico { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: #fff; }
.tile:hover i { letter-spacing: .02em; }

/* ── фильтры и таблица ───────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 16px; }
.chip { font: inherit; font-size: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); padding: 7px 14px;
  border-radius: 999px; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease-out); }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.shown { color: var(--muted); font-size: 14px; margin-left: 4px; }
.filters .find { margin-left: auto; font: inherit; font-size: 14.5px; border: 1px solid var(--line); color: var(--ink); border-radius: 999px;
  padding: 9px 16px 9px 38px; width: 230px; transition: border-color .2s, box-shadow .2s, width .4s var(--ease-out);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236a7672' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3.5 3.5'/%3E%3C/svg%3E") 14px 50% no-repeat; }
.filters .find:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); width: 280px; }
.tbl-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; }
.rating th, .rating td { padding: 14px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.rating thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--paper-2); }
.rating tbody tr { position: relative; transition: background .25s; }
.rating tbody tr:last-child td { border-bottom: 0; }
.rating tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.rating tbody tr td:first-child { box-shadow: inset 0 0 0 var(--accent); transition: box-shadow .3s var(--ease-out); }
.rating tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.rating td.pos { width: 52px; }
.pos { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.name a { font-weight: 650; color: var(--ink); text-decoration: none; transition: color .2s; }
.name a:hover { color: var(--accent); }
.name small { display: block; color: var(--muted); font-size: 13px; }
.rating th.sc, .rating td.sc { width: 180px; }
.rating td.sc .num { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 6px; letter-spacing: -0.03em; }
.rating td.sc .segbar { width: 148px; }
.rating th.ck, .rating td.ck { width: 64px; text-align: center; }
.rating td.ck span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 700; }
.rating td.ck.y span { background: var(--accent-soft); color: var(--accent); }
.rating td.ck.n span { color: var(--no); }
.rating td.ck.u span { color: var(--muted); font-weight: 500; border: 1px dashed var(--line); }
.types { white-space: nowrap; }
.t { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 7px; margin: 1px 2px 1px 0; }
.t.on { background: var(--accent-soft); color: var(--accent); }
.t.off { background: var(--no-soft); color: var(--no); text-decoration: line-through; }
.t.unk { background: transparent; color: var(--no); border: 1px dashed var(--line); }
.legend { font-size: 13.5px; color: var(--muted); margin: 12px 4px 0; max-width: 900px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; margin: 2px 3px 2px 0; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

/* ── как считаем ─────────────────────────────────────────────────── */
.how { margin-top: 20px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.how-grid div { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); }
.how-grid b { display: block; font-weight: 650; }
.how-grid span { display: block; font-family: var(--display); color: var(--accent); font-weight: 600; font-size: 26px; letter-spacing: -0.03em; margin: 4px 0 2px; }
.how-grid p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }

.queue p { color: var(--ink-2); max-width: 900px; }
.faq { max-width: 900px; margin-bottom: 48px; }
.qa { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; transition: border-color .25s, box-shadow .25s; }
.qa:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.qa[open] { box-shadow: var(--shadow); }
.qa summary { cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230d6b55' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 2v8M2 6h8'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .35s var(--ease-out); }
.qa[open] summary::after { transform: rotate(135deg); }
.qa > div { padding: 0 18px 16px; color: var(--ink-2); animation: fade-up .45s var(--ease-out); }
.others { margin: 26px 0 48px; color: var(--muted); }
.others a { margin-right: 12px; }
.sect-gap { height: 8px; }

/* ── карточка сервиса ────────────────────────────────────────────── */
.prov-head { display: flex; gap: 24px; align-items: center; margin-bottom: 16px; }
.prov-head h1 { margin-bottom: 6px; }
.rank { color: var(--accent); }
.checks { display: block; columns: 3 320px; column-gap: 16px; margin: 14px 0; }
.grp { position: relative; overflow: hidden; break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.grp h3 { position: relative; display: flex; justify-content: space-between; align-items: baseline; }
.grp h3 span { color: var(--muted); font-weight: 500; font-size: 14px; }
.grp .bar { margin: 2px 0 12px; height: 7px; }
.grp ul { position: relative; list-style: none; padding: 0; margin: 0; }
.grp li { display: grid; grid-template-columns: 18px 1fr auto; grid-template-areas: "mk lb w" "mk st st"; gap: 0 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.grp li:first-child { border-top: 0; }
.mk { grid-area: mk; width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; }
.lb { grid-area: lb; } .st { grid-area: st; font-size: 13px; color: var(--muted); } .w { grid-area: w; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
li.y .mk { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
li.n .mk { background: var(--no); }
li.u .mk { border: 2px dashed var(--warn); }
li.u .st { color: var(--warn); }
.src { margin-left: 6px; font-size: 12.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.miss ul, .srcs ul { padding-left: 20px; color: var(--ink-2); }
.srcs a { word-break: break-all; }
.nears { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 40px; }
.near { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .3s; }
.near b, .near span { position: relative; }
.near span { display: block; color: var(--muted); font-size: 14px; }
.near:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--ink); }
.badge-box { max-width: 900px; margin: 0 0 48px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.badge-box summary { cursor: pointer; font-weight: 600; }
.badge-box textarea { width: 100%; font: 12.5px/1.45 ui-monospace, Menlo, monospace; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--bg); color: var(--ink); resize: vertical; }

/* юрлица (таблица категории) */
.docs td.yn { font-size: 13.5px; }
.docs .y { color: var(--accent); font-weight: 600; } .docs .n { color: var(--no); } .docs .u { color: var(--muted); }

/* ── методика, о проекте ─────────────────────────────────────────── */
.prose { max-width: 820px; margin-bottom: 48px; font-size: 16.5px; }
.prose li { margin: 7px 0; }
.method td, .method th { padding: 10px 16px; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 15px; }
.method td:last-child, .method th:last-child { text-align: right; width: 70px; font-variant-numeric: tabular-nums; }
.method .gh th { background: var(--paper-2); font-weight: 650; }

/* ── отчёт PDF ───────────────────────────────────────────────────── */
.rep { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; padding: 40px 0 10px; }
.rep-cover { display: block; perspective: 1400px; }
.rep-cover img { width: 100%; height: auto; border-radius: 8px; display: block; box-shadow: 0 50px 80px -40px rgba(6,19,15,.6), 0 18px 30px -18px rgba(6,19,15,.4);
  transform: rotateY(-14deg) rotateX(4deg); transition: transform .9s var(--ease-out); }
.rep-cover:hover img { transform: rotateY(0) rotateX(0) translateY(-6px); }
.top5 { padding-left: 22px; } .top5 li { margin: 5px 0; } .top5 span { color: var(--muted); font-size: 14px; }
.inside { list-style: none; padding: 0; } .inside li { display: grid; grid-template-columns: 70px 1fr; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.inside b { color: var(--accent); font-weight: 600; }
.rep-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0 0; text-decoration: none; color: var(--ink-2); }

/* ── статьи ──────────────────────────────────────────────────────── */
.art { max-width: 720px; margin-bottom: 48px; }
.art-head { padding-bottom: 0; }
.art-head h1 { font-size: clamp(28px, 3.8vw, 44px); }
.byline { color: var(--muted); font-size: 15px; margin: 0; }
.byline a { color: var(--ink-2); }
.tldr { position: relative; background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--paper)));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: var(--radius); padding: 18px 22px 8px; margin: 26px 0 16px; }
.tldr h2 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin: 0 0 8px; }
.tldr ul { margin: 0 0 10px; padding-left: 20px; } .tldr li { margin: 6px 0; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 12px; }
.toc-h { font-weight: 650; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 22px; }
.toc li { margin: 5px 0; font-size: 15px; }
.toc a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.toc a:hover, .toc a.on { color: var(--accent); }
.toc a.on { font-weight: 600; }
.art-body { font-size: 17.5px; line-height: 1.7; overflow-wrap: break-word; }
.art-body h2 { margin-top: 1.8em; font-size: clamp(22px, 2.4vw, 28px); }
.art-body h3 { font-size: 19px; margin-top: 1.5em; }
.art-body p, .art-body ul, .art-body ol, .art-body blockquote { margin: 0 0 1.05em; }
.art-body li { margin: 6px 0; }
.art-body blockquote { padding: 4px 20px; border-left: 3px solid var(--mint); color: var(--ink-2); background: var(--paper-2); border-radius: 0 12px 12px 0; }
.art-body .tbl-wrap { margin: 1.3em 0 1.5em; border-radius: var(--radius); }
.art-body th, .art-body td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; font-size: 15px; line-height: 1.45; }
.art-body td { min-width: 120px; }
.art-body thead th { font-size: 13px; font-weight: 650; color: var(--muted); background: var(--paper-2); }
.art-body tbody tr:last-child td { border-bottom: 0; }
.art-body code { font: .9em/1.4 ui-monospace, Menlo, monospace; background: var(--line-2); border-radius: 5px; padding: 1px 5px; }
.art-body pre { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.art-body pre code { background: none; padding: 0; }
.art-body img { max-width: 100%; height: auto; border-radius: 12px; }
.art-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.art .faq { margin-bottom: 0; }
.art-src ol { padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.art-src li { margin: 6px 0; overflow-wrap: anywhere; }
.art-src span { color: var(--muted); font-size: 13px; }
.art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 16px 0 12px; }
.art .art-list { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.art-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--ink-2); box-shadow: var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .45s, border-color .3s; }
.art-card > * { position: relative; }
.art-card b { color: var(--ink); font-size: 17.5px; line-height: 1.3; transition: color .2s; }
.art-card > span:last-child { font-size: 14.5px; }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hi); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--ink-2); }
.art-card:hover b { color: var(--accent); }
.art-meta { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.art-cta { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 22px 12px; margin: 32px 0 0; box-shadow: var(--shadow); }
.art-cta b { font-size: 17px; color: var(--ink); } .art-cta p { margin: 6px 0; color: var(--ink-2); }
.fresh { margin-bottom: 10px; }
.art-layout { display: grid; grid-template-columns: minmax(0, 720px) 290px; gap: 64px; align-items: start; }
.art-side { position: sticky; top: 92px; display: grid; gap: 14px; padding-top: 26px; }
.art-side .toc { margin: 0; } .art-side .toc li { font-size: 14px; }
.side-box { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.side-top { list-style: none; padding: 0; margin: 0 0 8px; }
.side-top li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 5px 0; font-size: 14.5px; }
.side-top a { color: var(--ink); text-decoration: none; } .side-top a:hover { color: var(--accent); }
.side-top b { font-family: var(--display); font-weight: 600; }
.side-box > a { font-size: 14px; font-weight: 600; }
.side-pdf { text-decoration: none; border-left: 4px solid var(--gold); color: var(--ink-2); transition: transform .4s var(--ease-out), box-shadow .4s; }
.side-pdf b { display: block; color: var(--ink); } .side-pdf span { font-size: 14px; }
.side-pdf:hover { transform: translateY(-2px); box-shadow: var(--shadow-hi); color: var(--ink-2); }
.progress { position: fixed; z-index: 50; left: 0; top: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--mint)); pointer-events: none; }
@media (min-width: 1101px) { .art > .toc { display: none; } }
@media (max-width: 1100px) { .art-layout { grid-template-columns: minmax(0, 1fr); } .art-side { display: none; } }

/* ── подвал: тёмная полоса ───────────────────────────────────────── */
.foot { position: relative; isolation: isolate; margin-top: 64px; color: var(--night-muted); background: linear-gradient(160deg, var(--night), var(--night-2)); }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 120% at 90% 0%, rgba(95,224,184,.12), transparent 60%); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; padding: 40px 20px 46px; font-size: 14.5px; }
.foot .logo { color: #fff; } .foot .logo-mark::after { border-color: var(--night); }
.foot p { color: var(--night-muted); } .foot .muted { color: #7f9b91; }
.foot a { color: var(--mint-2); } .foot a:hover { color: #fff; }
.foot-links { display: grid; gap: 8px; align-content: start; }

/* ── движение ────────────────────────────────────────────────────── */
@keyframes fade-up { from { opacity: .01; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,224,184,.7); } 70% { box-shadow: 0 0 0 10px rgba(95,224,184,0); } 100% { box-shadow: 0 0 0 0 rgba(95,224,184,0); } }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 56px 56px, 56px 56px; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* первый экран и заголовки страниц — сразу при загрузке, без ожидания JS */
.hero > *, .hero-txt > *, .podium, .prov-head, .crumbs { animation: fade-up .8s var(--ease-out) both; }
.hero-txt > :nth-child(2), .hero > :nth-child(2) { animation-delay: .06s; }
.hero-txt > :nth-child(3), .hero > :nth-child(3) { animation-delay: .12s; }
.hero-txt > :nth-child(4), .hero > :nth-child(4) { animation-delay: .18s; }
.hero-txt > :nth-child(5), .hero > :nth-child(5) { animation-delay: .24s; }
.podium { animation-delay: .2s; }
.hero-home .hero-txt, .hero-home { animation: none; }

/* появление при прокрутке: прячем только когда работает JS; .in ставит app.js */
.js:not(.no-motion) :is(.tile, .rating tbody tr, .how-grid > div, .grp, .qa, .art-card, .near, .sect-head, .faq > h2, .how > h2,
  #reiting > h2, .filters, .tbl-wrap, .checks, .two-col > *, .art-body > h2, .art-body .tbl-wrap, .tldr, .side-box, .inside li, .method):not(.in) {
  opacity: .01; transform: translateY(18px); }
.js :is(.tile, .rating tbody tr, .how-grid > div, .grp, .qa, .art-card, .near, .sect-head, .faq > h2, .how > h2, #reiting > h2, .filters,
  .tbl-wrap, .checks, .two-col > *, .art-body > h2, .art-body .tbl-wrap, .tldr, .side-box, .inside li, .method).in {
  opacity: 1; transform: none; transition: opacity .8s var(--ease-out) var(--d, 0s), transform .8s var(--ease-out) var(--d, 0s); }
/* шкалы заполняются, когда попадают в экран */
.js:not(.no-motion) .segbar:not(.in) .sg i, .js:not(.no-motion) .bar:not(.in) > span { transform: scaleX(0); }
.js .segbar.in .sg i, .js .bar.in > span { transform: scaleX(1); transition: transform 1.1s var(--ease-out) var(--d, 0s); }
.js .segbar.in .sg:nth-child(2) i { transition-delay: calc(var(--d, 0s) + .08s); }
.js .segbar.in .sg:nth-child(3) i { transition-delay: calc(var(--d, 0s) + .16s); }
.js .segbar.in .sg:nth-child(4) i { transition-delay: calc(var(--d, 0s) + .24s); }
.js .segbar.in .sg:nth-child(5) i { transition-delay: calc(var(--d, 0s) + .32s); }
.js:not(.no-motion) .ring:not(.in) { --p: 0; }

/* переходы между страницами (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js * { opacity: 1 !important; transform: none !important; }
  .ring { --p: var(--to, 0) !important; }
  @view-transition { navigation: none; }
}


/* счётчик: --n бежит от 0 до --tn, число рисует ::after; исходный текст прозрачный, но остаётся в DOM */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.cnt { position: relative; -webkit-text-fill-color: transparent; --n: 0; counter-reset: n var(--n); }
.cnt::after { content: counter(n); position: absolute; left: 0; right: 0; top: 0; text-align: inherit;
  -webkit-text-fill-color: currentColor; }
.cnt.go { --n: var(--tn); transition: --n 1.5s var(--ease-out); }
.no-motion .cnt { -webkit-text-fill-color: currentColor; } .no-motion .cnt::after { content: none; }
.ring b.cnt::after { text-align: center; }

/* шапка над тёмным первым экраном главной: прозрачная и светлая по тексту, ниже героя — обычная */
body:has(.hero-home) .top:not(.past) { background: transparent; border-bottom-color: rgba(255,255,255,.06); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body:has(.hero-home) .top:not(.past) .logo { color: #fff; }
body:has(.hero-home) .top:not(.past) .logo-mark::after { border-color: var(--night); }
body:has(.hero-home) .top:not(.past) .menu > a, body:has(.hero-home) .top:not(.past) .dd summary { color: var(--night-muted); }
body:has(.hero-home) .top:not(.past) .menu > a:hover, body:has(.hero-home) .top:not(.past) .dd summary:hover { color: #fff; }
body:has(.hero-home) .top:not(.past) .menu > a:not(.nav-cta)::after { background: var(--mint); }
body:has(.hero-home) .top:not(.past) .menu > a.nav-cta { background: var(--mint); color: var(--night); }
body:has(.hero-home) .top:not(.past) .menu > a.nav-cta:hover { background: #fff; }
@media (max-width: 760px) { body:has(.hero-home) .top, body:has(.hero-home) .top:not(.past) { background: var(--night);
  border-bottom-color: rgba(255,255,255,.06); } body:has(.hero-home) .top .logo { color: #fff; }
  body:has(.hero-home) .top .menu > a, body:has(.hero-home) .top .dd summary { color: var(--night-muted); }
  body:has(.hero-home) .top .menu > a.nav-cta { background: var(--mint); color: var(--night); }
  body:has(.hero-home) .top .logo-mark::after { border-color: var(--night); } }


/* мобильное меню: без JS пункты просто переносятся, с JS — кнопка-бургер и выезжающая панель */
.burger { display: none; }
@media (max-width: 760px) {
  .top { position: relative; z-index: 30; }
  .hero-home::before, .hero-home::after { top: 0; }
  .js .top-in { flex-wrap: nowrap; min-height: 60px; padding-top: 0; padding-bottom: 0; }
  .js .burger { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--paper); cursor: pointer; padding: 0; }
  .js .burger span, .js .burger span::before, .js .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px;
    background: var(--ink); position: relative; transition: transform .35s var(--ease-out), background .2s; }
  .js .burger span::before, .js .burger span::after { content: ""; position: absolute; left: 0; }
  .js .burger span::before { top: -6px; } .js .burger span::after { top: 6px; }
  .js .burger[aria-expanded="true"] span { background: transparent; }
  .js .burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .js .burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .js .menu { position: absolute; left: 12px; right: 12px; top: 64px; display: grid; gap: 2px; padding: 10px; background: var(--paper);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-hi); opacity: 0; transform: translateY(-8px) scale(.98);
    pointer-events: none; transition: opacity .25s, transform .35s var(--ease-out); }
  .js .menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .js .menu > a, .js .dd summary { padding: 12px 14px; font-size: 16px; color: var(--ink); }
  .js .menu > a.nav-cta { margin: 6px 0 0; text-align: center; color: var(--bg); }
  .js .dd-in { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; animation: none; min-width: 0; }
  body:has(.hero-home) .top .burger { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
  body:has(.hero-home) .top .burger span, body:has(.hero-home) .top .burger span::before, body:has(.hero-home) .top .burger span::after { background: #fff; }
  body:has(.hero-home) .top .burger[aria-expanded="true"] span { background: transparent; }
  .js body:has(.hero-home) .top .menu > a, .js body:has(.hero-home) .top .dd summary { color: var(--ink); }
  .js body:has(.hero-home) .top .menu > a.nav-cta { background: var(--ink); color: var(--bg); }
}


/* ── логотип: медаль «печать + пьедестал» и надпись Playfair ─────── */
.logo { gap: 11px; }
img.logo-mark { width: 36px; height: 36px; border-radius: 50%; background: none; box-shadow: 0 6px 14px -6px rgba(6,19,15,.55);
  transition: transform .7s var(--ease-out), filter .4s; }
img.logo-mark::after { content: none; }
.logo .wm { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 800; font-size: 23px; letter-spacing: .005em; line-height: 1; }
.logo:hover img.logo-mark { transform: rotate(-14deg) scale(1.07); filter: brightness(1.08) saturate(1.1); }
.logo.small img.logo-mark { width: 44px; height: 44px; }
.logo.small .wm { font-size: 24px; color: #fff; display: block; }
.tagline { display: block; font-family: var(--font); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-top: 5px; }
@media (max-width: 760px) { img.logo-mark { width: 32px; height: 32px; } .logo .wm { font-size: 21px; } }


/* таблица на средних экранах: колонки убираются по шагам, чтобы ничего не уезжало вправо */
@media (max-width: 1080px) {
  .rating .ck-api, .rating .ck-support { display: none; }
  .rating td.types { white-space: normal; min-width: 120px; }
  .rating th.sc, .rating td.sc { width: 150px; }
  .rating td.sc .segbar { width: 120px; }
}
@media (max-width: 900px) {
  .rating th.types, .rating td.types { display: none; }
}
.rating .name a, .rating .name small { overflow-wrap: anywhere; }


/* «Для юрлиц» на узких экранах: остаются счёт и ЭДО, остальное — в карточке сервиса */
@media (max-width: 640px) {
  .docs .k-manager, .docs .k-custom, .docs .k-sla { display: none; }
  .docs th, .docs td { padding-left: 6px; padding-right: 6px; }
}


/* полоса состава балла: одна сплошная полоса с тонкими разделителями (слой поверх заливки), а не пять «пилюль» */
.segbar { gap: 0; border-radius: 99px; overflow: hidden; background: var(--line-2); --sep: var(--paper); }
.segbar .sg { position: relative; border-radius: 0; background: transparent; }
.segbar .sg i { border-radius: 0; }
.segbar .sg:not(:last-child)::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 2px; background: var(--sep); }
.podium .segbar { background: rgba(255,255,255,.1); --sep: #0d2b23; }
.podium .segbar .sg { background: transparent; }
.rating tbody tr:hover .segbar { --sep: color-mix(in srgb, var(--accent-soft) 55%, var(--paper)); }


/* шкала балла 0–100 (заменила сегментную полосу 09.11: та читалась как «морзянка») */
.sbar { display: block; height: 7px; width: 100%; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.sbar.sm { height: 6px; }
.sbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, var(--mint)); transform-origin: left; }
.podium .sbar { grid-area: bar; background: rgba(255,255,255,.1); }
.podium .sbar i { background: linear-gradient(90deg, var(--mint), var(--mint-2)); }
.rating td.sc .sbar { width: 148px; }
.js:not(.no-motion) .sbar:not(.in) i { transform: scaleX(0); }
.js .sbar.in i { transform: scaleX(1); transition: transform 1.1s var(--ease-out) var(--d, 0s); }
@media (max-width: 1080px) { .rating td.sc .sbar { width: 120px; } }
@media (max-width: 760px) { .rating td.sc .sbar { width: 76px; } }

/* ── адаптив ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-home .hero-txt::before { display: none; }
  .hero.hero-home { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }
  .podium { transform: none; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .rep { grid-template-columns: 1fr; gap: 28px; }
  .rep-cover { max-width: 340px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { position: relative; z-index: 30; }
  .top-in { gap: 4px; padding-top: 10px; padding-bottom: 8px; min-height: 0; }
  .menu > a, .dd summary { padding: 6px 9px; font-size: 14.5px; }
  .menu > a:not(.nav-cta)::after { display: none; }
  .menu > a.nav-cta { margin-left: 0; }
  .dd-in { left: 0; right: auto; }
  .lead, .hero-home .lead { font-size: 17px; }
  .stats { gap: 18px; grid-template-columns: repeat(3, 1fr); }
  .stats b { font-size: 26px; }
  .rating th, .rating td { padding: 11px 6px; }
  .rating td.pos { width: 38px; }
  .rating th.types, .rating td.types, .rating .ck-api, .rating .ck-support { display: none; }
  .rating th.sc, .rating td.sc { width: 86px; }
  .rating td.sc .num { font-size: 17px; margin-bottom: 4px; }
  .rating td.sc .segbar { width: 76px; }
  .rating th.ck, .rating td.ck { width: 40px; }
  .rating thead th { font-size: 10.5px; letter-spacing: .04em; }
  .rating .name a { font-size: 15px; }
  .filters .find, .filters .find:focus { margin-left: 0; width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .prov-head { align-items: flex-start; gap: 16px; }
  .ring.big { width: 76px; height: 76px; } .ring.big::before { inset: 7px; } .ring.big b { font-size: 23px; }
  .checks { columns: 1; }
  .art-body { font-size: 16.5px; }
  .art-body th, .art-body td { padding: 9px 10px; font-size: 14px; }
  .tldr, .toc { padding-left: 16px; padding-right: 16px; }
}
