/* assorta.ru — общие стили сайта (site_parts/site_chrome.py). Токены страница может переопределить своими. */
:root{--bg:#F5F6FA;--surface:#fff;--ink:#12141C;--muted:#5A6070;--line:#E1E4EC;--accent:#5B47FB;color-scheme:light}
:root[data-theme="dark"]{--bg:#0F1116;--surface:#171A21;--ink:#F3F4F7;--muted:#A2A8B6;--line:#2C313C;--accent:#9A8CFF;color-scheme:dark}
body{font-family:Onest,system-ui,-apple-system,"Segoe UI",sans-serif}
/* 05.11.2026 единая шапка и подвал — site_parts/site_chrome.py */
.sc-head,.sc-foot,.sc-crumbs{--sc-ink:var(--ink,#12141C);--sc-muted:var(--muted,#5A6070);--sc-line:var(--line,#E1E4EC);--sc-surf:var(--surface,#fff);--sc-acc:#5B47FB;font-family:Onest,system-ui,-apple-system,"Segoe UI",sans-serif}
html body .sc-head{position:relative;z-index:30;max-width:1180px;margin:0 auto;padding:14px 0;font-size:14.5px;line-height:1.3;text-align:left}
html body .sc-in{position:relative;display:flex;align-items:center;gap:22px}
html body .sc-logo{display:inline-flex;align-items:center;gap:9px;flex:none;color:var(--sc-ink);text-decoration:none;font-family:"Wix Madefor Display",Onest,sans-serif;font-weight:800;letter-spacing:-.03em;font-size:18px}
html body .sc-logo img{display:block;border-radius:6px;width:26px;height:26px}
html body .sc-links{display:flex;align-items:center;gap:20px;flex:1;min-width:0;margin:0;padding:0;background:none;border:0}
html body .sc-links a{color:var(--sc-muted);text-decoration:none;white-space:nowrap;padding:0;border:0;font-weight:500}
html body .sc-links a:hover,html body .sc-links a[aria-current]{color:var(--sc-ink)}
html body .sc-links a[aria-current]{font-weight:700}
html body .sc-links .sc-only-m{display:none}
html body .sc-dd{position:relative}
html body .sc-ddb{display:inline-flex;align-items:center;gap:5px;font:inherit;font-weight:500;color:var(--sc-muted);background:none;border:0;padding:0;margin:0;cursor:pointer;white-space:nowrap}
html body .sc-ddb:hover,html body .sc-o>.sc-ddb{color:var(--sc-ink)}
html body .sc-chev{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
html body .sc-o>.sc-ddb .sc-chev{transform:rotate(180deg)}
html body .sc-mega{display:none;position:absolute;top:calc(100% + 12px);left:-18px;z-index:40;background:var(--sc-surf);border:1px solid var(--sc-line);border-radius:16px;box-shadow:0 18px 44px rgba(12,15,26,.16);padding:14px}
html body .sc-mega:before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
html body .sc-o>.sc-mega{display:grid}
@media (hover:hover) and (min-width:1101px){html body .sc-dd:hover>.sc-mega{display:grid}html body .sc-dd:hover>.sc-ddb{color:var(--sc-ink)}}
html body .sc-mega1{grid-template-columns:1fr;min-width:230px}
html body .sc-mega4{grid-template-columns:repeat(4,minmax(0,1fr));width:min(880px,calc(100vw - 48px));gap:4px 14px}
html body .sc-mega a{display:block;padding:6px 9px;border-radius:9px;color:var(--sc-ink);text-decoration:none;white-space:normal;font-weight:500;font-size:14px;line-height:1.3}
html body .sc-mega a:hover,html body .sc-mega a[aria-current]{background:color-mix(in srgb,var(--sc-acc) 10%,transparent)}
html body .sc-mh{margin:2px 9px 6px;color:var(--sc-muted);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
html body .sc-mall{grid-column:1/-1;margin-top:6px;border-top:1px solid var(--sc-line);border-radius:0 0 9px 9px!important;padding-top:10px!important;color:var(--sc-acc)!important;font-weight:600!important}
html body .sc-right{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto}
html body .sc-btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:9px 16px;border-radius:999px;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;border:1px solid transparent;box-shadow:none}
html body .sc-pri{background:var(--sc-acc);color:#fff;border-color:var(--sc-acc)}
html body .sc-pri:hover{background:#4935E8;border-color:#4935E8;color:#fff}
html body .sc-ghost{background:transparent;color:var(--sc-ink);border-color:var(--sc-line)}
html body .sc-ghost:hover{border-color:var(--sc-ink)}
html body .sc-theme{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px;border-radius:999px;border:1px solid var(--sc-line);background:transparent;color:var(--sc-ink);font:inherit;font-size:13.5px;cursor:pointer}
html body .sc-ic{width:14px;height:14px;border-radius:50%;background:linear-gradient(90deg,var(--sc-ink) 50%,transparent 50%);box-shadow:inset 0 0 0 1.5px var(--sc-ink)}
html body .sc-burger{display:none;width:40px;height:38px;border-radius:999px;border:1px solid var(--sc-line);background:transparent;cursor:pointer;padding:0}
html body .sc-burger svg{display:block;margin:auto;fill:none;stroke:var(--sc-ink);stroke-width:2;stroke-linecap:round}
html body .sc-burger .sc-ix,html body .sc-open .sc-burger .sc-i3{display:none}
html body .sc-open .sc-burger .sc-ix{display:block}
html body .sc-sub{display:flex;gap:4px 20px;margin:12px 0 0;padding:10px 0 0;border-top:1px solid var(--sc-line);overflow-x:auto;scrollbar-width:none;font-size:13.5px;background:none}
html body .sc-sub::-webkit-scrollbar{display:none}
html body .sc-sub a{flex:none;color:var(--sc-muted);text-decoration:none;white-space:nowrap;padding:2px 0;border:0}
html body .sc-sub a:hover{color:var(--sc-ink)}
@media (max-width:1100px){
 html body .sc-burger{display:inline-flex;align-items:center;justify-content:center}
 html body .sc-links{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;padding:6px 0;background:var(--sc-surf);border:1px solid var(--sc-line);border-radius:16px;box-shadow:0 18px 40px rgba(12,15,26,.16)}
 html body .sc-open .sc-links{display:flex}
 html body .sc-links a{padding:12px 18px;font-size:15.5px;color:var(--sc-ink)}
 html body .sc-links .sc-only-m{display:block;border-top:1px solid var(--sc-line);margin-top:4px}
 html body .sc-links{max-height:calc(100vh - 86px);overflow-y:auto;overscroll-behavior:contain}
 html body .sc-dd{position:static}
 html body .sc-ddb{display:flex;width:100%;justify-content:space-between;padding:12px 18px;font-size:15.5px;color:var(--sc-ink)}
 html body .sc-mega,html body .sc-mega4{position:static;width:auto;box-shadow:none;border:0;border-radius:0;padding:0 10px 8px;background:none;grid-template-columns:1fr 1fr}
 html body .sc-mega1{grid-template-columns:1fr}
 html body .sc-mega:before{content:none}
 html body .sc-mega a{padding:8px 10px;font-size:14.5px}
}
@media (max-width:640px){
 html body .sc-ghost,html body .sc-tl{display:none}
 html body .sc-in{gap:10px}
 html body .sc-right{gap:6px}
 html body .sc-theme{width:38px;padding:0;justify-content:center}
 html body .sc-btn{padding:9px 13px;font-size:13.5px}
}
@media (max-width:420px){
 html body .sc-in{gap:8px}
 html body .sc-right{gap:5px}
 html body .sc-logo{font-size:16.5px;gap:7px}
 html body .sc-theme{width:36px;height:36px}
 html body .sc-burger{width:38px;height:36px}
 html body .sc-head .sc-btn{padding:8px 12px;font-size:13px}
}
@media (max-width:350px){html body .sc-logo{font-size:0;gap:0}}
html body .sc-crumbs{max-width:1180px;margin:2px auto 0;padding:4px 0 0;font-size:13.5px;line-height:1.5;color:var(--sc-muted);text-align:left;font-family:Onest,system-ui,sans-serif}
html body .sc-crumbs a{color:var(--sc-muted);text-decoration:underline;text-underline-offset:2px}
html body .sc-crumbs a:hover{color:var(--sc-ink)}
html body .sc-crumbs .sc-cs{margin:0 2px}
html body .sc-foot{display:block;max-width:1180px;margin:56px auto 0;padding:32px 0 36px;border-top:1px solid var(--sc-line);color:var(--sc-muted);font-size:14px;line-height:1.5;text-align:left;background:none}
html body .sc-fin{display:grid;grid-template-columns:2.1fr 1fr 1fr 1fr;gap:28px 28px}
html body .sc-foot ul{list-style:none;margin:0 0 18px;padding:0}
html body .sc-foot li{margin:0 0 7px;padding:0}
html body .sc-foot li:before{content:none}
html body .sc-tools ul{columns:2;column-gap:24px}
html body .sc-tools li{break-inside:avoid}
html body .sc-foot a{color:var(--sc-muted);text-decoration:none}
html body .sc-foot a:hover{color:var(--sc-ink);text-decoration:underline}
html body .sc-foot .sc-h{margin:0 0 10px;color:var(--sc-ink);font-weight:700;font-size:14px}
html body .sc-foot .sc-fcab{color:#fff;margin-top:2px}
html body .sc-foot .sc-fcab:hover{color:#fff;text-decoration:none}
html body .sc-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 20px;margin-top:26px;padding-top:18px;border-top:1px solid var(--sc-line);font-size:13px}
html body .sc-contacts a{color:var(--sc-muted)}
/* длинные адреса и артикулы в тексте переносятся, а не растягивают страницу на телефоне (05.11.2026, «Проверка карточки») */
html body main :is(p,li,dd,figcaption,blockquote){overflow-wrap:break-word}
/* кнопки в тексте страниц на телефоне переносят длинную подпись, а не выходят за экран (справка: «Открыть «…» в кабинете →») */
@media (max-width:640px){html body main .btn{white-space:normal;max-width:100%;text-align:center}}
@media (max-width:900px){html body .sc-fin{grid-template-columns:1fr 1fr}html body .sc-tools{grid-column:1/-1}}
@media (max-width:560px){html body .sc-mega4,html body .sc-mega{grid-template-columns:1fr}}
@media (max-width:520px){html body .sc-fin{grid-template-columns:1fr 1fr;gap:8px 16px}html body .sc-tools{grid-column:1/-1}html body .sc-tools ul{columns:2;column-gap:16px}html body .sc-foot{font-size:13.5px}html body .sc-bottom{flex-direction:column}}

