/* Layout: светла редакционна основа, тясна колона за текст (≈68ch), широка решетка за инструменти; брандът е дълбок петролен, собствените CTA — керемидено оранжеви. */
:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #eef3f3;
  --surface-3: #e3ecec;
  --ink: #142225;
  --ink-2: #3d5357;
  --muted: #5e7175;
  --line: #d5e0e0;
  --brand: #0b5563;
  --brand-ink: #083f49;
  --brand-soft: #dcebee;
  --cta: #c4460f;
  --cta-hover: #a63a0b;
  --cta-ink: #ffffff;
  --ok: #1d7a4a;
  --ok-soft: #e1f2e8;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --focus: #1a73e8;
  --ad-bg: #f1f1ee;
  --ad-line: #c9c9c2;

  --f-display: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.4375rem;
  --step-3: 1.8rem;
  --step-4: clamp(2rem, 1.5rem + 2.4vw, 2.9rem);

  --r-s: 6px;
  --r-m: 10px;
  --shadow: 0 1px 2px rgba(10, 40, 46, .06), 0 6px 20px rgba(10, 40, 46, .06);
  --wrap: 1180px;
  --text: 68ch;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1719; --surface: #152224; --surface-2: #1a2a2d; --surface-3: #213437;
    --ink: #e6efef; --ink-2: #bfcfd0; --muted: #93a7a9; --line: #2b3f42;
    --brand: #5fb6c4; --brand-ink: #8fd0db; --brand-soft: #1b3a40;
    --cta: #e8692c; --cta-hover: #f07d45; --cta-ink: #1a0d05;
    --ok: #5cc48e; --ok-soft: #163527; --warn: #e2b452; --warn-soft: #3a2f14;
    --focus: #8ab4f8; --ad-bg: #1b2224; --ad-line: #3a4648;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1719; --surface: #152224; --surface-2: #1a2a2d; --surface-3: #213437;
  --ink: #e6efef; --ink-2: #bfcfd0; --muted: #93a7a9; --line: #2b3f42;
  --brand: #5fb6c4; --brand-ink: #8fd0db; --brand-soft: #1b3a40;
  --cta: #e8692c; --cta-hover: #f07d45; --cta-ink: #1a0d05;
  --ok: #5cc48e; --ok-soft: #163527; --warn: #e2b452; --warn-soft: #3a2f14;
  --focus: #8ab4f8; --ad-bg: #1b2224; --ad-line: #3a4648;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.2; text-wrap: balance; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--brand); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r-s); }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--tint { background: var(--surface-2); }
.section-head { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.75rem; max-width: var(--text); }
.eyebrow { font-family: var(--f-data); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 500; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: var(--text); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 750; font-size: 1.22rem; letter-spacing: -.02em; flex-shrink: 0; }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--brand); font-weight: 750; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a, .main-nav button.navbtn { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .6rem; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: var(--r-s); background: none; border: 0; font-family: inherit; cursor: pointer; }
.main-nav a:hover, .main-nav button.navbtn:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--brand); }
.has-sub { position: relative; }
.submenu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); padding: .4rem; list-style: none; margin: 0; }
.has-sub.open .submenu { display: block; }
.submenu a { display: block; width: 100%; }
.header-cta { flex-shrink: 0; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-s); width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.main-nav .nav-cta-mobile { display: none; }
.main-nav a, .main-nav button.navbtn { white-space: nowrap; }
@media (max-width: 1180px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter-r) 1rem var(--gutter-l); box-shadow: var(--shadow); max-height: calc(100vh - 70px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .main-nav button.navbtn { padding: .8rem .6rem; width: 100%; justify-content: space-between; font-size: 1rem; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 .8rem; }
  .site-header .header-cta { display: none; }
  .main-nav a.nav-cta-mobile { display: flex; margin-top: .6rem; justify-content: center; background: var(--cta); color: var(--cta-ink); }
  .hero-points { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: var(--r-s); font-family: var(--f-display); font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; line-height: 1.2; text-align: center; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); color: var(--cta-ink); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); color: #fff; }
:root[data-theme="dark"] .btn-brand, :root[data-theme="dark"] .btn-brand:hover { color: #071a1e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-brand, :root:not([data-theme="light"]) .btn-brand:hover { color: #071a1e; } }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { min-height: 40px; padding: .5rem .9rem; font-size: .92rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
.hero-copy { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.hero-copy h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -.025em; }
.hero-copy h1 em { font-style: normal; color: var(--brand); }
.hero-points { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .45rem; color: var(--ink-2); }
.hero-points li { display: flex; gap: .55rem; align-items: baseline; }
.hero-points li::before { content: ""; width: .5rem; height: .5rem; border-radius: 2px; background: var(--brand); flex-shrink: 0; transform: translateY(-1px); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Picker card ---------- */
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(1.1rem, 3vw, 1.75rem); display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; }
.picker-title { font-family: var(--f-display); font-weight: 650; font-size: 1.05rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--r-m); }
.seg button { min-height: 44px; border: 0; background: transparent; border-radius: 7px; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: .4rem .3rem; line-height: 1.2; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.amount-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.amount-big { font-family: var(--f-display); font-weight: 750; font-size: clamp(2.6rem, 2rem + 2.5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.amount-big span { font-size: .45em; color: var(--muted); font-weight: 600; margin-left: .2em; }
.amount-input { display: flex; flex-direction: column; gap: .25rem; }
.amount-input label { font-size: .8rem; color: var(--muted); }
.amount-input .inp-wrap { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
.amount-input input { width: 7.5rem; border: 0; background: transparent; padding: .55rem .6rem; font: 600 1rem var(--f-data); color: var(--ink); font-variant-numeric: tabular-nums; }
.amount-input .unit { padding-right: .7rem; color: var(--muted); font-weight: 600; }
.amount-input input:focus { outline: none; }
.amount-input .inp-wrap:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.field-error { color: var(--cta); font-size: .85rem; min-height: 1.3em; line-height: 1.3; margin-top: -.6rem; }
.range { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--brand) var(--fill, 33%), var(--surface-3) var(--fill, 33%)); margin: .5rem 0; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.range-scale { display: flex; justify-content: space-between; font: .8rem var(--f-data); color: var(--muted); font-variant-numeric: tabular-nums; }
.picker-note { font-size: .88rem; color: var(--muted); text-align: center; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card .card-foot { margin-top: auto; padding-top: .4rem; }
.card-link { position: relative; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--brand); }
.icon-tile { width: 44px; height: 44px; border-radius: var(--r-s); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.icon-tile svg { width: 24px; height: 24px; }
.trust { display: flex; gap: .9rem; align-items: flex-start; }
.trust h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.trust p { font-size: .93rem; color: var(--ink-2); }
.trust .metric { font-family: var(--f-display); font-weight: 750; font-size: 1.6rem; color: var(--brand); }

/* ---------- Media strip ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: scroll 32s linear infinite; padding-block: 1.1rem; }
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee a { font-family: var(--f-display); font-weight: 700; color: var(--muted); text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 2.4rem 1rem 0; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .8rem; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 1.1rem; color: var(--ink-2); max-width: var(--text); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Page head ---------- */
.page-head { padding-block: 1.2rem 2rem; display: flex; flex-direction: column; gap: .9rem; }
.page-head .lead { max-width: 62ch; }

/* ---------- Article ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
@media (max-width: 1000px) { .article-grid { grid-template-columns: 1fr; } .article-aside { display: none; } }
.prose { max-width: var(--text); display: flex; flex-direction: column; gap: 1.05rem; min-width: 0; }
.prose h2 { font-size: var(--step-2); margin-top: 1.4rem; }
.prose h3 { margin-top: .6rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.answer-box { background: var(--brand-soft); border-radius: var(--r-m); padding: 1.15rem 1.3rem; font-size: 1.07rem; color: var(--ink); }
.answer-box strong { color: var(--brand-ink); display: block; font-family: var(--f-display); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .3rem; }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.2rem; }
.toc h2 { font-size: .85rem !important; font-family: var(--f-data); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem !important; }
.toc ol { padding-left: 1.1rem; font-size: .95rem; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: var(--r-m); padding: 1.2rem 1.35rem; box-shadow: var(--shadow); }
.cta-band .cta-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1 1 260px; }
.cta-band .cta-text b { font-family: var(--f-display); font-size: 1.08rem; }
.cta-band .cta-text span { color: var(--muted); font-size: .9rem; }
.cta-band--big { background: var(--brand); border: 0; color: #fff; padding: 1.6rem; }
.cta-band--big .cta-text b { font-size: 1.3rem; color: #fff; }
.cta-band--big .cta-text span { color: rgba(255,255,255,.85); }
:root[data-theme="dark"] .cta-band--big { background: var(--brand-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-band--big { background: var(--brand-soft); } }
.sticky-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1rem; }
.sources { font-size: .9rem; }
.sources ol { padding-left: 1.2rem; display: grid; gap: .35rem; }
.related { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related a.card { text-decoration: none; color: var(--ink); }
.related .kind { font-family: var(--f-data); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.related b { font-family: var(--f-display); font-size: 1rem; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-display); font-weight: 650; background: var(--surface-2); font-size: .88rem; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--f-data); }

/* checklist */
.checklist { list-style: none; padding: 0 !important; display: grid; gap: .5rem; }
.checklist label { display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--brand); flex-shrink: 0; }
.progress-note { font-size: .9rem; color: var(--muted); }

.callout { border-radius: var(--r-m); padding: 1rem 1.2rem; background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.callout b { color: var(--warn); }
.myth { display: grid; gap: .6rem; }
.myth .claim, .myth .fact { padding: .9rem 1.1rem; border-radius: var(--r-s); }
.myth .claim { background: var(--surface-2); }
.myth .claim::before { content: "Твърдение"; display: block; font: 600 .72rem var(--f-data); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.myth .fact { background: var(--ok-soft); }
.myth .fact::before { content: "Как е всъщност"; display: block; font: 600 .72rem var(--f-data); letter-spacing: .07em; text-transform: uppercase; color: var(--ok); margin-bottom: .2rem; }

/* ---------- Calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc-form { display: grid; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.25rem; }
.fld { display: grid; gap: .3rem; }
.fld label { font-weight: 600; font-size: .93rem; }
.fld .hint { font-size: .8rem; color: var(--muted); }
.fld input, .fld select { min-height: 46px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: 500 1rem var(--f-body); font-variant-numeric: tabular-nums; width: 100%; }
.fld input[aria-invalid="true"] { border-color: var(--cta); }
.calc-result { background: var(--brand-soft); border-radius: var(--r-m); padding: 1.25rem; display: grid; gap: .9rem; align-content: start; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .55rem 1rem; align-items: baseline; }
.kv dt { color: var(--ink-2); font-size: .93rem; }
.kv dd { margin: 0; font: 600 1.05rem var(--f-data); font-variant-numeric: tabular-nums; text-align: right; }
.kv .big { font-family: var(--f-display); font-size: 2rem; font-weight: 750; color: var(--brand-ink); }
:root[data-theme="dark"] .kv .big { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kv .big { color: var(--ink); } }
.bar { height: 14px; border-radius: 99px; overflow: hidden; display: flex; background: var(--surface); }
.bar i { display: block; height: 100%; }
.bar .p { background: var(--brand); }
.bar .c { background: var(--cta); }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .35rem; vertical-align: -1px; background: var(--brand); }
.legend span.c::before { background: var(--cta); }
.scen { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .scen { grid-template-columns: 1fr; } }
.scen-col h3 { display: flex; align-items: center; gap: .5rem; }
.tag { display: inline-flex; align-items: center; font: 600 .75rem var(--f-data); letter-spacing: .05em; padding: .2rem .5rem; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--brand { background: var(--brand-soft); color: var(--brand-ink); }
.diff { padding: 1rem 1.2rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); font-size: 1.02rem; }

/* ---------- Choice page ---------- */
.choice-now { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.2rem; }
.choice-now .val { font-family: var(--f-display); font-weight: 750; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.choice-edit[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"], .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.choice-group { display: grid; gap: .8rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.choice-group:first-of-type { border-top: 0; }
.phone-box { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.2rem; background: var(--surface); border: 1px dashed var(--brand); border-radius: var(--r-m); }
.phone-box .num { font-family: var(--f-display); font-weight: 750; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* ---------- Catalog ---------- */
.catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .catalog { grid-template-columns: 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem; display: grid; gap: 1.1rem; position: sticky; top: 88px; }
@media (max-width: 960px) { .filters { position: static; } }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.filters legend { font-weight: 650; font-size: .92rem; margin-bottom: .35rem; font-family: var(--f-display); }
.filters label { display: flex; gap: .55rem; align-items: center; font-size: .93rem; min-height: 32px; cursor: pointer; }
.filters input[type="checkbox"], .filters input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); }
.search { min-height: 46px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--r-s); width: 100%; font: inherit; background: var(--surface); color: var(--ink); }
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; min-height: 36px; margin-bottom: .8rem; font-size: .9rem; }
.active-filters button.pill { border: 1px solid var(--brand); background: var(--brand-soft); color: var(--brand-ink); border-radius: 99px; padding: .25rem .7rem; font: inherit; font-size: .85rem; cursor: pointer; }
.result-count { font-size: .92rem; color: var(--muted); }
.lender-list { display: grid; gap: 1rem; }
.group-label { font-family: var(--f-data); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: .4rem; }
.lender { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 1rem 1.1rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem; }
@media (max-width: 640px) { .lender { grid-template-columns: 52px minmax(0, 1fr); } .lender .lender-actions { grid-column: 1 / -1; } }
.monogram { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -.02em; }
@media (max-width: 640px) { .monogram { width: 52px; height: 52px; font-size: 1rem; } }
.lender h3 { font-size: 1.15rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.lender h3 a { color: inherit; text-decoration: none; }
.lender .desc { color: var(--ink-2); font-size: .94rem; }
.params { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; margin-top: .4rem; }
.params div { display: flex; flex-direction: column; }
.params dt { font-size: .75rem; color: var(--muted); }
.params dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lender-actions { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; min-width: 160px; }
.cmp-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.cmp-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.08); padding: .75rem var(--gutter-r) calc(.75rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.compare-bar .wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; padding: 0; }
.empty { padding: 2rem; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-m); background: var(--surface); display: grid; gap: .8rem; justify-items: center; }
dialog.cmp-dialog { border: 1px solid var(--line); border-radius: var(--r-m); padding: 0; width: min(920px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); }
dialog.cmp-dialog::backdrop { background: rgba(5, 20, 24, .5); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); gap: 1rem; }
.dlg-body { padding: 1rem 1.2rem 1.4rem; display: grid; gap: .8rem; }

/* ---------- Profile ---------- */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: center; }
.important { display: grid; gap: .5rem; padding: 1.2rem 1.3rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.important ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.apply-box { background: var(--surface); border: 2px solid var(--brand); border-radius: 14px; padding: 1.3rem; display: grid; gap: .8rem; }
.apply-box .leave-note { font-size: .88rem; color: var(--ink-2); background: var(--surface-2); padding: .6rem .8rem; border-radius: var(--r-s); }
.iframe-holder { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); }
.iframe-holder iframe { width: 100%; height: 800px; border: 0; display: block; background: #fff; }
.status-pill { display: inline-flex; align-items: center; gap: .35rem; font: 600 .78rem var(--f-data); letter-spacing: .03em; padding: .25rem .55rem; border-radius: 99px; }
.status-pill.on { background: var(--ok-soft); color: var(--ok); }
.status-pill.off { background: var(--surface-3); color: var(--ink-2); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pending { color: var(--warn); font-weight: 600; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons > div { padding: 1rem 1.2rem; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.pros-cons ul { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; }

/* ---------- Ads ---------- */
.ad-slot { margin-block: 2rem; display: grid; gap: .3rem; justify-items: center; clear: both; }
.ad-slot .ad-label { font: 500 .7rem var(--f-data); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ad-slot .ad-box { width: 100%; background: var(--ad-bg); border: 1px dashed var(--ad-line); border-radius: 4px; display: grid; place-items: center; text-align: center; color: var(--muted); font: .8rem var(--f-data); padding: 1rem; }
.ad-slot ins.adsbygoogle { display: block; width: 100%; }
.ad-slot.desktop-only { display: none; }
@media (min-width: 1001px) { .ad-slot.desktop-only { display: grid; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 3rem; padding-block: 2.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: .85rem; font-family: var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; display: grid; gap: .5rem; }

/* ---------- Consent banner ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.1); padding: 1rem var(--gutter-r) calc(1rem + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.consent .wrap { display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 0; }
.consent p { max-width: 70ch; font-size: .92rem; }
.consent .btns { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.missing { background: var(--warn-soft); color: var(--warn); padding: .05rem .4rem; border-radius: 4px; font-weight: 600; font-size: .92em; }
.preview-banner { background: var(--warn-soft); color: var(--ink); font-size: .85rem; text-align: center; padding: .45rem var(--gutter-r) .45rem var(--gutter-l); border-bottom: 1px solid var(--line); }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-s); padding: .9rem 1.1rem; }
.post-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card .cat { font-family: var(--f-data); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); }
.glossary dt { font-family: var(--f-display); font-weight: 650; font-size: 1.08rem; padding-top: 1rem; scroll-margin-top: 90px; }
.glossary dd { margin: .3rem 0 0; color: var(--ink-2); max-width: var(--text); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.az { display: flex; flex-wrap: wrap; gap: .3rem; }
.az a { min-width: 36px; min-height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; font-weight: 600; background: var(--surface); }
.sitemap-list { columns: 2 260px; gap: 2rem; }
.sitemap-list li { break-inside: avoid; margin-bottom: .3rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* мобилни филтри */
.filters-toggle { display: none; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink); font: 600 1rem var(--f-display); cursor: pointer; }
@media (max-width: 960px) { .filters-toggle { display: flex; } .filters[data-collapsed="true"] { display: none; } }

.active-filters:empty { min-height: 0; margin: 0; }
