/* Velobi v7 — нейтральная светлая основа, графитовый текст, зелёный акцент */
:root{
  --bg:#f3f6fb;--surface:#fff;--surface2:#eef2f9;--text:#0f1b33;--muted:#55627a;--line:#dde4f0;
  --accent:#2563eb;--accent-d:#1d4ed8;--accent-t:#e8efff;--ok:#157347;--ok-bg:#dff3e7;--warn:#8a5a00;--warn-bg:#fdf0d0;--err:#b42318;--err-bg:#fde7e4;
  --c1:#2563eb;--c2:#0f766e;--c3:#c2410c;--c4:#6d28d9;--c5:#be123c;--c6:#be185d;
  --r:14px;--sh:0 1px 2px rgba(15,27,51,.05),0 4px 14px rgba(15,27,51,.05);--sh2:0 8px 28px rgba(37,99,235,.16);--max:1480px;--side:250px;
  font-size:100%;
}
[data-theme="dark"]{
  --bg:#0c1222;--surface:#141c30;--surface2:#1b2540;--text:#e8edf8;--muted:#9eabc4;--line:#27324f;
  --accent:#6b9bff;--accent-d:#93b4ff;--accent-t:#1a2a52;--ok:#7fd3a0;--ok-bg:#1d3a2a;--warn:#f0c46a;--warn-bg:#3b3015;--err:#ff9a8f;--err-bg:#40201c;
  --sh:none;--sh2:none;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;overflow-wrap:break-word}
img,svg{max-width:100%}
a{color:var(--accent-d);text-underline-offset:2px}
[data-theme="dark"] a{color:var(--accent)}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid #e0a800;outline-offset:2px;border-radius:4px}
h1,h2,h3{line-height:1.25;margin:0 0 .6em}
h1{font-size:clamp(1.55rem,1.2rem + 1.4vw,2.2rem)}
h2{font-size:1.3rem;margin-top:1.6em}
h3{font-size:1.08rem}
p{margin:0 0 1em}
small,.muted{color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--accent);color:#fff;padding:.6rem 1rem;z-index:100}
.skip:focus{left:0}
.num{text-align:right;font-variant-numeric:tabular-nums}

/* шапка */
.top{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.top__in{max-width:var(--max);margin:0 auto;padding:.6rem 1rem;display:flex;align-items:center;gap:.75rem}
.logo{display:flex;align-items:center;gap:.5rem;color:var(--accent);font-weight:700;font-size:1.35rem;text-decoration:none}
.logo span{color:var(--text)}
.search{position:relative;flex:1;display:flex;max-width:620px;margin-left:auto}
.search input{flex:1;min-width:0;border-radius:var(--r) 0 0 var(--r);border-right:0}
.search .btn--icon{border-radius:0 var(--r) var(--r) 0}
.suggest{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 8px 24px rgba(0,0,0,.15);z-index:60;max-height:70vh;overflow:auto;margin-top:4px}
.suggest h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:.5rem .8rem .2rem}
.suggest a{display:flex;justify-content:space-between;gap:.5rem;padding:.55rem .8rem;color:var(--text);text-decoration:none;min-height:44px;align-items:center}
.suggest a:hover,.suggest a.is-active{background:var(--accent-t)}
.suggest small{white-space:nowrap}
.topnav ul{max-width:var(--max);margin:0 auto;padding:0 1rem;list-style:none;display:flex;flex-wrap:wrap;gap:.25rem}
.topnav a{display:block;padding:.6rem .8rem;color:var(--text);text-decoration:none;border-bottom:3px solid transparent;font-weight:500}
.topnav a:hover{background:var(--surface2)}
.topnav a.is-current{border-bottom-color:var(--accent);color:var(--accent-d);font-weight:700}
button.menu-btn{display:none}

/* кнопки и поля */
.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.5rem 1rem;border:1px solid var(--line);border-radius:var(--r);background:var(--surface);color:var(--text);font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--surface2)}
.btn--primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn--primary:hover{background:var(--accent-d);color:#fff}
[data-theme="dark"] .btn--primary{color:#0e1713}
[data-theme="dark"] .btn--primary:hover{color:#0e1713}
.btn--ghost{background:transparent}
.btn--icon{width:44px;padding:0}
.linkbtn{background:none;border:0;color:var(--accent-d);font:inherit;text-decoration:underline;cursor:pointer;min-height:44px;padding:0 .5rem}
[data-theme="dark"] .linkbtn{color:var(--accent)}
input,select,textarea{font:inherit;color:var(--text);background:var(--surface);border:1px solid #9aa79f;border-radius:var(--r);min-height:44px;padding:.5rem .7rem;width:100%}
input[type=checkbox],input[type=radio]{width:1.2rem;height:1.2rem;min-height:0;accent-color:var(--accent)}
label{font-weight:600;font-size:.95rem}
.field{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.field--check{flex-direction:row;align-items:center;gap:.5rem}
.field--check label{font-weight:500}
.form{display:flex;flex-direction:column;gap:.7rem}
.form--narrow{max-width:420px}
.inline{display:inline}

/* макет */
.shell{max-width:var(--max);margin:0 auto;padding:1rem;display:grid;grid-template-columns:var(--side) minmax(0,1fr);gap:1.5rem;align-items:start}
.shell:not(:has(.side)){grid-template-columns:minmax(0,1fr)}
.side{position:sticky;top:6.2rem;max-height:calc(100vh - 7rem);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:.6rem}
.side__group+.side__group{margin-top:.8rem;padding-top:.8rem;border-top:1px solid var(--line)}
.side__title{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0 .5rem .3rem}
.side ul{list-style:none;margin:0;padding:0}
.side a{display:flex;justify-content:space-between;gap:.5rem;padding:.45rem .6rem;border-radius:8px;color:var(--text);text-decoration:none;min-height:40px;align-items:center}
.side a:hover{background:var(--surface2)}
.side a.is-current{background:var(--accent-t);font-weight:700;color:var(--accent-d)}
.side small{color:var(--muted)}
button.side-btn{display:none}
.main{min-width:0}
.main:focus{outline:none}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.3rem;padding:0;margin:0 0 .8rem;font-size:.9rem;color:var(--muted)}
.crumbs li+li::before{content:"›";margin-right:.3rem}
.crumbs a{color:var(--muted)}
.page-head{margin-bottom:1.2rem}
.lead{font-size:1.1rem;color:var(--muted);max-width:68ch}
.eyebrow{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--accent-d);font-weight:700;margin:0 0 .3rem}
.foot{border-top:1px solid var(--line);margin-top:2rem;background:var(--surface)}
.foot__in{max-width:var(--max);margin:0 auto;padding:1.2rem 1rem;display:flex;flex-direction:column;gap:.7rem}
.foot__links{list-style:none;display:flex;flex-wrap:wrap;gap:1rem;margin:0;padding:0}

/* карточки */
.cards{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));margin:0 0 1.2rem}
.cards--3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.cards--tight{gap:.6rem}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1rem;box-shadow:var(--sh);display:flex;flex-direction:column;gap:.35rem;min-width:0}
.card h2,.card h3{margin:0}
.card p{margin:0}
.card--link{text-decoration:none;color:var(--text)}
.card--link:hover{border-color:var(--accent);box-shadow:0 2px 10px rgba(0,0,0,.08)}
.card--accent{border-color:var(--accent);background:var(--accent-t)}
.card__title{font-size:1.05rem}
.card__title a{color:var(--text);text-decoration:none}
.card__title a:hover{color:var(--accent-d);text-decoration:underline}
.card__meta{color:var(--muted);font-size:.92rem;margin:0}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem;padding:0;margin:.2rem 0}
.chip{display:inline-block;padding:.15rem .6rem;border-radius:999px;background:var(--surface2);border:1px solid var(--line);font-size:.85rem;line-height:1.5}
.chip a{text-decoration:none;color:inherit}
.chip--ok{background:var(--ok-bg);color:var(--ok);border-color:transparent}
.chip--warn{background:var(--warn-bg);color:var(--warn);border-color:transparent}
.chip--muted{color:var(--muted)}
.chips--lg .chip{font-size:1rem;padding:.35rem .8rem}
.chips--lg .chip a{display:inline-block;min-height:30px;line-height:30px}

/* фильтры */
.filters{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1rem;margin-bottom:1rem}
.filters__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.8rem}
.field--wide{grid-column:span 2}
.filters__actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.8rem;align-items:center}
.filters--inline{display:flex;gap:.6rem;flex-wrap:wrap;align-items:end}
.inline-search{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:.6rem}
.inline-search input{flex:1 1 240px;width:auto}
.inline-search select{width:auto}
.count{margin:.2rem 0 .8rem;color:var(--muted)}
.results.is-loading{opacity:.55;transition:opacity .15s}
.empty{background:var(--surface);border:1px dashed var(--line);border-radius:var(--r);padding:1rem 1.2rem}

/* списки и таблицы */
.linklist{list-style:none;padding:0;margin:0 0 1rem}
.linklist li{padding:.3rem 0;border-bottom:1px solid var(--line)}
.linklist--cols{columns:2 240px;column-gap:2rem}
.linklist--cols li{break-inside:avoid}
.plain{list-style:none;padding:0;margin:0}
.plain--tight li{padding:.1rem 0}
.table-wrap{overflow-x:auto;margin:0 0 1.2rem;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
table{border-collapse:collapse;width:100%}
th,td{padding:.55rem .8rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
thead th{background:var(--surface2);font-size:.9rem;white-space:nowrap}
tbody tr:last-child>*{border-bottom:0}
tbody th{font-weight:600}
td.num,th.num{text-align:right}
.table--compact th,.table--compact td{padding:.35rem .6rem;font-size:.95rem}
.table--cmp th:first-child,.table--cmp td:first-child{position:sticky;left:0;background:var(--surface2);z-index:1;min-width:9rem}
.table--cmp td{min-width:10rem}
.pre{background:var(--surface2);padding:1rem;border-radius:var(--r);overflow:auto;font-size:.85rem}
.specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.5rem 1.5rem;margin:0 0 1rem}
.specs dt{color:var(--muted);font-size:.88rem}
.specs dd{margin:0 0 .4rem;font-weight:600}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin:0 0 1rem}

/* сообщения */
.note,.notice{border-left:4px solid var(--accent);background:var(--accent-t);padding:.7rem 1rem;border-radius:0 var(--r) var(--r) 0;margin:0 0 1rem}
.note p:last-child,.notice p:last-child{margin-bottom:0}
.note--warn,.notice--warn{border-color:#c98a00;background:var(--warn-bg);color:var(--text)}
.note--err{border-color:var(--err);background:var(--err-bg)}
.hint{color:var(--muted);font-size:.95rem}
.status{display:inline-block;padding:.35rem .8rem;border-radius:8px;font-weight:700;margin:0 0 .8rem;background:var(--surface2)}
.status--ok{background:var(--ok-bg);color:var(--ok)}
.status--warn{background:var(--warn-bg);color:var(--warn)}
.status--err{background:var(--err-bg);color:var(--err)}
.status--muted{color:var(--muted)}

/* калькуляторы */
.calc-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:1rem 1.2rem;margin:0 0 1.2rem}
.calc-box h2{margin-top:0}
.calc{display:flex;flex-direction:column;gap:.8rem}
.result,#result{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
#result:empty{display:none}
.cmp-btn.is-on{background:var(--accent);color:#fff;border-color:var(--accent)}
.acc{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);margin:0 0 .5rem;padding:.2rem 1rem}
.acc summary{cursor:pointer;font-weight:600;padding:.6rem 0;min-height:44px}
.gear-table td.is-best{background:var(--accent-t);font-weight:700}
.prose{max-width:78ch}
.prose--page{max-width:none}
.prose--page>*{max-width:78ch}
.prose--page>.calc-box,.prose--page>section{max-width:none}
.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.2rem}
.checklist{list-style:none;padding:0;margin:0 0 .8rem}
.checklist li{padding:.15rem 0}
.checklist label{display:flex;gap:.6rem;align-items:flex-start;font-weight:500;min-height:44px;align-items:center}
.hero{background:linear-gradient(135deg,var(--accent-t),var(--surface));border:1px solid var(--line);border-radius:14px;padding:clamp(1rem,3vw,2rem);margin-bottom:1.5rem}
.hero__row{display:flex;gap:.5rem;flex-wrap:wrap}
.hero__row input{flex:1 1 260px;width:auto}
.hero__quick{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem}
.garage .g-bike{margin-bottom:1rem}
.diag-opts{display:flex;flex-direction:column;gap:.5rem;margin:.8rem 0}
.diag-opts .btn{justify-content:flex-start;text-align:left}
canvas,.chart{max-width:100%}
.letters{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1rem}
.pager{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;margin:1rem 0}
.pager a,.pager span{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;text-decoration:none;background:var(--surface);padding:0 .6rem}
.pager .is-current,.pager [aria-current]{background:var(--accent);color:#fff;border-color:var(--accent)}
.toast{position:fixed;bottom:1rem;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);padding:.6rem 1rem;border-radius:var(--r);z-index:90}

/* адаптив */
@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr);gap:.8rem}
  button.side-btn{display:inline-flex;width:100%}
  .side{display:none;position:static;max-height:none}
  .side.is-open{display:block}
  .field--wide{grid-column:auto}
}
@media (max-width:720px){
  button.menu-btn{display:inline-flex}
  .topnav{display:none;border-top:1px solid var(--line)}
  .topnav.is-open{display:block}
  .topnav ul{flex-direction:column;gap:0}
  .topnav a{border-bottom:1px solid var(--line);border-left:3px solid transparent}
  .topnav a.is-current{border-left-color:var(--accent)}
  .top__in{flex-wrap:wrap}
  .search{order:5;flex-basis:100%;max-width:none}
  .search{margin-left:0}
  .logo{margin-right:auto}
}
@media (min-width:1700px){:root{--max:1560px}}
@media print{
  .top,.side,.side-btn,.foot,.filters,.btn,.linkbtn,.skip{display:none!important}
  body{background:#fff;color:#000}
  .shell{display:block;padding:0}
  .card,.calc-box,.table-wrap{box-shadow:none;break-inside:avoid}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* уточнения */
.cmp,.check{display:flex;align-items:center;gap:.5rem;font-weight:500;min-height:44px;cursor:pointer}
.cmp-btn input{margin-right:.2rem}
.hero__row select{width:auto;flex:0 1 180px}
.hero__row .btn{flex:0 0 auto}
.hero .hero__quick{margin:.8rem 0 0}
.facts>div{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:.7rem .9rem;display:flex;flex-direction:column}
.facts strong{font-size:1.5rem;line-height:1.2;color:var(--accent-d)}
.facts span{color:var(--muted);font-size:.92rem}
[data-theme="dark"] .facts strong{color:var(--accent)}
.topnav a{padding:.6rem .6rem;font-size:.97rem}
.grp th{background:var(--accent-t);font-size:.9rem;text-transform:uppercase;letter-spacing:.03em}
.cmp-label{white-space:nowrap}
.bike-page .specs{margin-top:.6rem}
.brand-list{columns:3 220px;column-gap:1.5rem;list-style:none;padding:0}
.brand-list li{break-inside:avoid;padding:.2rem 0}
.maker-box,.sources-box,.src-text{max-width:78ch}
.btn--icon svg{display:block}
button.btn.btn--primary,a.btn.btn--primary,.btn.btn--primary{background:var(--accent);border-color:var(--accent);color:#fff}
button.btn.btn--primary:hover,a.btn.btn--primary:hover{background:var(--accent-d);border-color:var(--accent-d);color:#fff}
[data-theme="dark"] .btn.btn--primary,[data-theme="dark"] .btn.btn--primary:hover{color:#0e1713}
button.btn.btn--ghost{background:transparent}
.result-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.6rem;margin:0 0 1rem}
.result-list>div{background:var(--surface2);border-radius:var(--r);padding:.6rem .9rem}
.result-list dt{color:var(--muted);font-size:.9rem}
.result-list dd{margin:0;font-size:1.05rem}
.result-list dd strong{font-size:1.3rem}
.topnav a{font-size:.92rem;padding:.6rem .5rem}
.topnav ul{gap:.1rem}
#theme-toggle{font-size:1.25rem;width:44px;padding:0}

/* ===== дизайн v12 ===== */
body{background:var(--bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:.55rem;flex:none;background:var(--c1)}
.dot.c1{background:var(--c1)}.dot.c2{background:var(--c2)}.dot.c3{background:var(--c3)}.dot.c4{background:var(--c4)}.dot.c5{background:var(--c5)}.dot.c6{background:var(--c6)}
.top{background:var(--surface);border-bottom:0;box-shadow:0 1px 0 var(--line)}
.top__in{padding:.7rem 1.4rem;gap:1.2rem}
.stripe{height:3px;background:linear-gradient(90deg,var(--c1) 0 25%,var(--c2) 25% 50%,var(--c3) 50% 75%,var(--c4) 75%)}
.logo{color:var(--text);gap:.55rem;font-style:italic}
.logo svg{color:var(--c1);flex:none}
.logo__t{font-family:"Arial Black",Impact,system-ui,sans-serif;font-size:1.55rem;font-weight:900;letter-spacing:-.02em;color:var(--text);line-height:1}
.logo__t b{color:var(--c1);font-weight:900}
.logo__t i{font-size:.6em;color:var(--muted);font-style:normal;margin-left:.1rem}
.logo span{color:inherit}
.search{max-width:640px;margin-left:auto;margin-right:auto;flex:1}
.search input{border-radius:999px;border:1px solid var(--line);background:var(--surface2);padding-left:1.2rem;padding-right:3.4rem;min-height:48px}
.search input:focus{background:var(--surface);border-color:var(--accent);box-shadow:0 0 0 4px rgba(37,99,235,.12);outline:0}
.search .search__go{position:absolute;right:5px;top:5px;bottom:5px;width:38px;min-height:0;height:auto;border-radius:50%;background:var(--accent);border-color:var(--accent);color:#fff}
.search .search__go:hover{background:var(--accent-d)}
.topnav ul{padding:0 1.4rem .15rem;gap:.1rem;flex-wrap:wrap}
.topnav a{display:inline-flex;align-items:center;border-bottom:0;border-radius:999px;padding:.5rem .85rem;font-size:.93rem;font-weight:600;color:var(--text)}
.topnav a:hover{background:var(--surface2)}
.topnav a.is-current{background:var(--accent-t);color:var(--accent-d)}
#theme-toggle{border-radius:999px;border-color:var(--line)}
.shell{max-width:var(--max);padding:1.4rem;gap:1.6rem}
.side{border-radius:var(--r);border:1px solid var(--line);box-shadow:var(--sh);padding:1rem .8rem;top:7.2rem}
.side__title{font-size:.72rem;letter-spacing:.14em;color:var(--muted);display:flex;align-items:center;gap:.6rem}
.side__title::after{content:"";flex:1;height:1px;background:var(--line)}
.side a{border-radius:10px;font-size:.95rem}
.side a>span{display:flex;align-items:center}
.side a:hover{background:var(--surface2)}
.side a.is-current{background:var(--accent-t);color:var(--accent-d)}
h1{letter-spacing:-.02em;font-weight:800}
h2{font-weight:750;letter-spacing:-.01em}
.sec{font-size:1.35rem;margin:2rem 0 1rem;display:flex;align-items:center;gap:.6rem}
.btn{border-radius:12px;border-color:var(--line);box-shadow:0 1px 0 rgba(15,27,51,.03)}
.btn--primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:transparent;color:#fff;box-shadow:0 4px 14px rgba(37,99,235,.3)}
.btn--primary:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);color:#fff}
input,select,textarea{border-color:var(--line);border-radius:12px;background:var(--surface)}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(37,99,235,.12);outline:0}
.card,.calc-box,.filters,.table-wrap,.acc,.empty{border-radius:var(--r);border-color:var(--line);box-shadow:var(--sh)}
.card--link{transition:transform .15s,box-shadow .15s,border-color .15s}
.card--link:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:var(--sh2)}
.card--accent{background:linear-gradient(135deg,var(--accent-t),var(--surface))}
.card__title{font-size:1.05rem;font-weight:700}
.chip{border-radius:999px}
thead th{background:var(--accent-t);color:var(--accent-d);border-bottom:2px solid var(--line)}
tbody tr:hover>*{background:rgba(37,99,235,.04)}
.crumbs ol{font-size:.88rem}
.page-head h1{margin-bottom:.4rem}
.foot{background:var(--surface);border-top:1px solid var(--line);margin-top:3rem}
.foot__in{max-width:var(--max);padding:1.6rem 1.4rem}
.pill{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .9rem;border-radius:999px;background:var(--surface);border:1px solid var(--line);color:var(--accent-d);font-weight:600;font-size:.92rem;text-decoration:none;transition:.15s}
.pill:hover{border-color:var(--accent);background:var(--accent-t);text-decoration:none}
.pill small{color:var(--muted);font-weight:500}
.pill--lg{padding:.55rem 1.1rem;font-size:.98rem}
.pills{list-style:none;display:flex;flex-wrap:wrap;gap:.55rem;padding:0;margin:0 0 1rem}

/* главная */
.hero{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:24px;padding:clamp(1.3rem,3.5vw,2.6rem);margin:0 0 1.4rem;background:radial-gradient(900px 340px at 105% -10%,#ffe9d6 0,transparent 60%),radial-gradient(700px 300px at -10% 0,#dce8ff 0,transparent 60%),linear-gradient(135deg,#eef3ff,#f7f4ff);box-shadow:var(--sh)}
[data-theme="dark"] .hero{background:radial-gradient(800px 300px at 105% -10%,#3a2a1e 0,transparent 60%),radial-gradient(700px 300px at -10% 0,#1c2c55 0,transparent 60%),var(--surface)}
.hero::after{content:"";position:absolute;right:-90px;bottom:-110px;width:340px;height:340px;border-radius:50%;border:44px solid rgba(37,99,235,.07);pointer-events:none}
.hero h1{font-size:clamp(1.6rem,1.1rem + 2vw,2.5rem);max-width:22ch;max-width:30ch;margin-bottom:.8rem}
.hero .lead{color:var(--muted);max-width:62ch;font-size:1.08rem}
.hero .lead strong{color:var(--text)}
.hero__row{max-width:760px;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:.4rem;gap:.3rem;box-shadow:var(--sh);flex-wrap:nowrap}
.hero__row input{border:0;background:transparent;box-shadow:none!important;flex:1 1 auto;min-width:0}
.hero__row select{border:0;border-left:1px solid var(--line);border-radius:0;background:transparent;flex:0 0 130px;box-shadow:none!important}
.hero__row .btn--primary{border-radius:999px;padding-inline:1.6rem}
.hero__quick{align-items:center;gap:.5rem;margin-top:1.1rem}
.eyebrow{display:inline-block;background:var(--accent-t);color:var(--accent-d);border-radius:999px;padding:.25rem .8rem;letter-spacing:.08em}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin:0 0 1rem}
.tile{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:.5rem;min-height:230px;padding:1.4rem;border-radius:20px;color:#fff;text-decoration:none;box-shadow:0 10px 26px rgba(15,27,51,.18);transition:transform .18s,box-shadow .18s}
.tile:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(15,27,51,.26);text-decoration:none}
.tile::before,.tile::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.12);pointer-events:none}
.tile::before{width:130px;height:130px;right:-30px;top:-40px}
.tile::after{width:210px;height:210px;right:-70px;bottom:-110px}
.tile--blue{background:linear-gradient(145deg,#3b82f6,#1e40af)}
.tile--green{background:linear-gradient(145deg,#14b8a6,#0f766e)}
.tile--orange{background:linear-gradient(145deg,#fb923c,#c2410c)}
.tile--purple{background:linear-gradient(145deg,#8b5cf6,#5b21b6)}
.tile__ic{width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.2);display:grid;place-items:center}
.tile__ic svg,.action__ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tile__t{margin:.4rem 0 0;font-size:1.35rem;color:#fff;position:relative}
.tile p{margin:0;color:rgba(255,255,255,.9);font-size:.95rem;position:relative}
.tile__n{margin-top:auto;align-self:flex-start;background:rgba(0,0,0,.24);border-radius:12px;padding:.45rem .8rem;font-weight:700;font-size:.9rem;position:relative}
.svc{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
.action{position:relative;display:flex;flex-direction:column;gap:.4rem;padding:1.15rem 1.15rem 1.2rem;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--ac);border-radius:var(--r);box-shadow:var(--sh);color:var(--text);text-decoration:none;transition:transform .15s,box-shadow .15s}
.action:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(15,27,51,.14);text-decoration:none}
.action h3{margin:.3rem 0 0;font-size:1.02rem}
.action p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.45}
.action__ic{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--ac);color:#fff}
.action--c1{--ac:var(--c1)}.action--c2{--ac:var(--c2)}.action--c3{--ac:var(--c3)}.action--c4{--ac:var(--c4)}.action--c5{--ac:var(--c5)}.action--c6{--ac:var(--c6)}
.cards--elec{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.cards--elec .card{border-left:4px solid var(--c4)}
.big{font-size:1.5rem;color:var(--c4);font-weight:800}
.shell:has(.hero) .side{top:7.2rem}
@media (max-width:900px){.top__in{flex-wrap:wrap;padding:.6rem 1rem}.logo__t{font-size:1.3rem}.search{order:3;flex-basis:100%;max-width:none}.hero__row{border-radius:20px;flex-wrap:wrap}.hero__row select{border-left:0;flex:1 1 40%}.hero__row .btn{flex:1 1 100%}.shell{padding:1rem}}
button.btn.menu-btn,button.btn.side-btn{display:none}
@media (max-width:900px){button.btn.side-btn{display:inline-flex;width:100%}}
@media (max-width:720px){button.btn.menu-btn{display:inline-flex}.topnav a{border-radius:10px;border-bottom:0}.topnav ul{padding:.3rem 1rem .6rem}}
.search .search__go svg{width:20px;height:20px;flex:none}
#theme-toggle svg{width:20px;height:20px}
.search .search__go{padding:0}
.tile,[data-theme="dark"] .tile,[data-theme="dark"] .tile:hover{color:#fff}
[data-theme="dark"] .action{color:var(--text)}
[data-theme="dark"] .pill{color:var(--accent)}

/* ===== v12.1: разделы, шапки страниц, подвал ===== */
body{--sc:var(--c1)}
.sec-electro{--sc:var(--c4)}.sec-brands{--sc:var(--c2)}.sec-components{--sc:var(--c3)}.sec-maintenance{--sc:var(--c5)}.sec-tools{--sc:var(--c2)}.sec-glossary{--sc:var(--c6)}.sec-select{--sc:var(--c1)}
.main>.page-head,.bike-page>.page-head{position:relative;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--sc) 9%,var(--surface)),var(--surface) 70%);border:1px solid var(--line);border-left:5px solid var(--sc);border-radius:var(--r);padding:1.2rem 1.4rem;box-shadow:var(--sh)}
.main>.page-head::after,.bike-page>.page-head::after{content:"";position:absolute;right:-50px;top:-60px;width:190px;height:190px;border-radius:50%;background:color-mix(in srgb,var(--sc) 10%,transparent);pointer-events:none}
.page-head .lead{margin-bottom:0}
.page-head .eyebrow{background:color-mix(in srgb,var(--sc) 14%,transparent);color:var(--sc)}
.page-head .eyebrow a{color:inherit}
.bike-page .actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.9rem}
.bike-page .chips{margin-top:.6rem}
.card--link{border-top:3px solid var(--sc)}
.card--link:hover{border-color:var(--sc);border-top-color:var(--sc)}
.side a.is-current{background:color-mix(in srgb,var(--sc) 13%,transparent);color:var(--sc)}
thead th{background:color-mix(in srgb,var(--sc) 10%,var(--surface));color:var(--text)}
.sec-home .card--link,.card--accent{border-top-width:1px}
.main>section>h2:first-child,.main>article>section>h2:first-child{display:flex;align-items:center;gap:.6rem}
.main>section>h2:first-child::before,.main>article>section>h2:first-child::before{content:"";width:6px;height:1.15em;border-radius:3px;background:var(--sc);flex:none}
.hero h1{max-width:none}
.specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.7rem}
.specs>div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:.7rem .9rem;box-shadow:var(--sh)}
.specs dt{text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;font-weight:700}
.specs dd{margin:.15rem 0 0;font-size:1.02rem}
.src-text{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--sc);border-radius:0 12px 12px 0;padding:.65rem 1rem;margin:.5rem 0;max-width:none;font-size:.95rem}
.brand-list{columns:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:.55rem}
.brand-list li{padding:0}
.brand-list a{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:52px;padding:.55rem .85rem;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--text);text-decoration:none;font-weight:650;transition:.15s;box-shadow:var(--sh)}
.brand-list a:hover{border-color:var(--sc);transform:translateY(-1px);box-shadow:var(--sh2)}
.brand-list small{color:var(--muted);font-weight:500;white-space:nowrap;background:var(--surface2);border-radius:999px;padding:.1rem .55rem;font-size:.78rem}
.letters{gap:.35rem}
.letters a{min-width:38px;height:38px;padding:0 .6rem;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:var(--surface);border:1px solid var(--line);text-decoration:none;font-weight:700;color:var(--text)}
.letters a:hover{border-color:var(--sc);color:var(--sc)}
.letters a[aria-current=page]{background:var(--sc);border-color:var(--sc);color:#fff}
.linklist li{padding:.45rem 0}
.empty{text-align:center;padding:2rem 1.2rem;color:var(--muted);background:var(--surface)}
.calc-box h2{display:flex;align-items:center;gap:.6rem}
.calc-box h2::before{content:"";width:6px;height:1em;border-radius:3px;background:var(--sc);flex:none}
/* подвал */
.foot{background:linear-gradient(180deg,#0f1b33,#0b1326);color:#c7d1e6;border-top:0;margin-top:3.5rem}
.foot .stripe{height:3px}
.foot__in{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2rem;padding:2rem 1.4rem 1rem;max-width:var(--max);margin:0 auto}
.foot .logo__t{color:#fff;font-size:1.4rem;font-style:italic}
.foot .logo__t b{color:#6b9bff}
.foot__brand p{margin:.7rem 0 0;color:#9fb0cf;max-width:34ch;font-size:.93rem}
.foot__col{display:flex;flex-direction:column;gap:.45rem}
.foot__col h2{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:#7d8fb3;margin:0 0 .3rem}
.foot__col a{color:#dbe4f7;text-decoration:none;font-size:.95rem}
.foot__col a:hover{color:#fff;text-decoration:underline}
.foot__note{max-width:var(--max);margin:0 auto;padding:1rem 1.4rem 1.6rem;color:#7d8fb3;font-size:.82rem;border-top:1px solid rgba(255,255,255,.08)}
@media (max-width:800px){.foot__in{grid-template-columns:1fr 1fr}.foot__brand{grid-column:1/-1}}
.result-list>div{display:flex;flex-direction:column;gap:.15rem;background:linear-gradient(145deg,color-mix(in srgb,var(--sc) 9%,var(--surface)),var(--surface));border:1px solid var(--line);border-top:3px solid var(--sc);border-radius:var(--r);padding:.8rem 1rem;box-shadow:var(--sh)}
.result-list dd strong{font-size:1.6rem;color:var(--sc);line-height:1.2}
.result-list dd small{display:block}
.filters__grid .field>label,.calc .field>label{font-size:.88rem;line-height:1.3}
.calc .filters__grid{align-items:end}
[data-theme="dark"] .page-head .eyebrow,[data-theme="dark"] .page-head .eyebrow a{color:#dbe6ff}
[data-theme="dark"] .side a.is-current{color:#fff}
[data-theme="dark"] .result-list dd strong{color:#9dc0ff}
.filters__grid{align-items:end}
.topnav a{padding:.45rem .7rem;font-size:.92rem}
input[type=file]{padding:.45rem .6rem;cursor:pointer}
input[type=file]::file-selector-button{border:0;border-radius:8px;background:var(--accent-t);color:var(--accent-d);font-weight:700;padding:.4rem .8rem;margin-right:.7rem;cursor:pointer}
.filters .hint{margin-top:.8rem}
.filters__actions{margin-top:1rem}
.tile__t{font-size:1.15rem;overflow-wrap:normal;hyphens:none}
.tile__n{font-size:.85rem}

[data-theme="dark"]{color-scheme:dark;--c1:#5b8def;--c2:#2dd4bf;--c3:#fb923c;--c4:#a78bfa;--c5:#fb7185;--c6:#f472b6}
[data-theme="light"]{color-scheme:light}
.card.bike{border-top:3px solid var(--sc);transition:transform .15s,box-shadow .15s}
.card.bike:hover{transform:translateY(-2px);box-shadow:var(--sh2)}
.card.bike .brand{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;color:var(--sc);font-weight:800;margin-bottom:.1rem}
.card.bike .card__title a{display:block}
.card.bike .card__title a:hover{text-decoration:none;color:var(--sc)}
.cmp-btn{margin-top:auto;align-self:flex-start;font-size:.9rem;min-height:38px;padding:.3rem .8rem}
.cmp-btn.is-on{background:var(--sc);border-color:var(--sc)}
.count strong{color:var(--text)}
.pager a,.pager span{border-radius:10px}
@media (max-width:720px){.top{position:static}}

/* контраст тёмной темы */
[data-theme="dark"]{--text:#f4f7fd;--muted:#c5cfe4;--line:#3b4869;--bg:#0a0f1d;--surface:#131b30;--surface2:#1d2742;--accent:#7fa8ff;--accent-d:#a9c4ff;--accent-t:#203566}
[data-theme="dark"] body{color:var(--text)}
[data-theme="dark"] ::placeholder{color:#a9b6d0;opacity:1}
[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{border-color:#4a5a80;background:#0f1730;color:var(--text)}
[data-theme="dark"] .search input{background:#17213d;border-color:#4a5a80}
[data-theme="dark"] .card,[data-theme="dark"] .calc-box,[data-theme="dark"] .filters,[data-theme="dark"] .table-wrap,[data-theme="dark"] .acc,[data-theme="dark"] .side,[data-theme="dark"] .specs>div,[data-theme="dark"] .src-text,[data-theme="dark"] .action,[data-theme="dark"] .brand-list a,[data-theme="dark"] .letters a,[data-theme="dark"] .pill{border-color:#3b4869}
[data-theme="dark"] .card__meta,[data-theme="dark"] .hint,[data-theme="dark"] .count,[data-theme="dark"] .lead,[data-theme="dark"] .action p,[data-theme="dark"] .side small,[data-theme="dark"] .specs dt,[data-theme="dark"] small,[data-theme="dark"] .muted,[data-theme="dark"] .crumbs ol,[data-theme="dark"] .crumbs a{color:#c5cfe4}
[data-theme="dark"] .side__title,[data-theme="dark"] .foot__col h2,[data-theme="dark"] .foot__note{color:#b4c1dc}
[data-theme="dark"] .foot__brand p{color:#c5d0e6}
[data-theme="dark"] .foot__col a{color:#eef3ff}
[data-theme="dark"] .chip{background:#212c4b;border-color:#445580;color:#e6ecfa}
[data-theme="dark"] .chip--muted{color:#c5cfe4}
[data-theme="dark"] .topnav a{color:#eef3ff}
[data-theme="dark"] .topnav a:hover{background:#1d2742}
[data-theme="dark"] .side a{color:#eef3ff}
[data-theme="dark"] .side a:hover{background:#1d2742}
[data-theme="dark"] a{color:#9dbcff}
[data-theme="dark"] .btn{background:#1b2543;border-color:#4a5a80;color:#f4f7fd}
[data-theme="dark"] .btn:hover{background:#26335a}
[data-theme="dark"] .btn--ghost{background:transparent}
[data-theme="dark"] .btn--primary{background:linear-gradient(135deg,#7fa8ff,#5b8def);color:#08122b;border-color:transparent}
[data-theme="dark"] .btn--primary:hover{background:linear-gradient(135deg,#9dbcff,#7fa8ff);color:#08122b}
[data-theme="dark"] thead th{background:#223055;color:#fff}
[data-theme="dark"] tbody tr:hover>*{background:rgba(127,168,255,.08)}
[data-theme="dark"] .card--link,[data-theme="dark"] .card--link:hover{color:var(--text)}
[data-theme="dark"] .card__title a{color:var(--text)}
[data-theme="dark"] .status{background:#27345a;color:#fff}
[data-theme="dark"] .status--ok{background:#164a2e;color:#a6f0c4}
[data-theme="dark"] .status--warn{background:#4d3b0e;color:#ffd98a}
[data-theme="dark"] .status--err{background:#561f1a;color:#ffb4aa}
[data-theme="dark"] .note,[data-theme="dark"] .notice{background:#1b2c55;color:var(--text)}
[data-theme="dark"] .empty{background:var(--surface);color:var(--muted)}
[data-theme="dark"] .hero .lead strong,[data-theme="dark"] .count strong{color:#fff}
[data-theme="dark"] .eyebrow{color:#dbe6ff;background:#233463}
[data-theme="dark"] .hero{border-color:#3b4869}
[data-theme="dark"] .src-text .muted{color:#b4c1dc}
[data-theme="dark"] .brand-list small{background:#27345a;color:#e0e8fa}
[data-theme="dark"] .pill small{color:#c5cfe4}
[data-theme="dark"] .logo__t i{color:#b4c1dc}
[data-theme="dark"] :focus-visible{outline-color:#ffd166}
.tile--blue{background:linear-gradient(145deg,#245ac9,#1e3a8a)}
.tile--green{background:linear-gradient(145deg,#0b7166,#064e3b)}
.tile--orange{background:linear-gradient(145deg,#b63e0b,#7c2d12)}
.tile--purple{background:linear-gradient(145deg,#7c3aed,#4c1d95)}
.tile p,.tile__t{color:#fff}
.tile__n{background:rgba(0,0,0,.35)}
[data-theme="dark"] .skip,[data-theme="dark"] .pager .is-current,[data-theme="dark"] .pager [aria-current],[data-theme="dark"] .letters a[aria-current=page],[data-theme="dark"] .cmp-btn.is-on,[data-theme="dark"] .search .search__go{color:#08122b}
.letters a[aria-current=page]{color:#fff}
[data-theme="dark"] .search .search__go{background:#7fa8ff;border-color:#7fa8ff}
[data-theme="dark"] .search .search__go:hover{background:#a9c4ff}
[data-theme="dark"] .cmp-btn.is-on{background:var(--sc)}

/* v17: достаточный контраст навигационных плиток и ссылки «к содержанию». */
[data-theme="dark"] .skip{background:var(--accent);color:#08122b}
