

/* Start:/local/templates/bsn/css/fonts.css?17924377951121*/
/* Golos Text (OFL) с нашего сервера: Google Fonts из России открывается не у всех. Вариативный, 400–700. */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/local/templates/bsn/css/fonts/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/local/templates/bsn/css/fonts/golos-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/local/templates/bsn/css/fonts/golos-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* End */


/* Start:/local/templates/bsn/css/chat.css?17924377936490*/
/* BSN — чат с магазином (specs/003). Кнопка и окно поверх страницы; шторка корзины и окна форм их перекрывают. */
.chatfab { position: fixed; right: 24px; bottom: 24px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 28px; background: var(--red-bg); color: #fff; font: 600 16px/1 var(--font); box-shadow: 0 10px 28px rgba(212, 42, 42, .35); transition: transform .2s, opacity .2s, background .2s;
  animation: chatfab-in .5s cubic-bezier(.2, .8, .2, 1) .8s both; }
.chatfab::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--red-bg); z-index: -1; animation: chatfab-pulse 8s ease-out 2.5s infinite; }
.chatfab:hover { transform: translateY(-2px); background: var(--red-h); }
.chatfab:hover .ico { animation: chatfab-wave .5s ease; }
.chatfab:has(.cnt:not([hidden]))::before { animation-duration: 2.4s; animation-delay: 0s; }
.chatfab.away:not(:focus-visible) { opacity: 0; transform: translateY(16px); pointer-events: none; }
.chatfab .ico { width: 24px; height: 24px; }
.chatfab-m { display: none; }
@keyframes chatfab-in { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes chatfab-pulse { 0% { opacity: .5; scale: 1; } 22% { opacity: 0; scale: 1.35 1.6; } 100% { opacity: 0; scale: 1.35 1.6; } }
@keyframes chatfab-wave { 30% { rotate: -12deg; } 60% { rotate: 10deg; } }
.chatfab .cnt { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red-bg); color: #fff; font: 600 12px/22px var(--font); font-style: normal; box-shadow: 0 0 0 2px var(--bg); }
.chatfab .cnt[hidden], .chat-hint[hidden], .chat-intro[hidden], .chat-empty[hidden] { display: none; }
.chat-on .chatfab { display: none; }

.chat { position: fixed; right: 24px; bottom: 24px; z-index: 75; display: flex; flex-direction: column; width: 380px; height: min(560px, calc(100vh - 48px)); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: 0 18px 50px rgba(20, 22, 26, .2); overflow: hidden; transition: opacity .18s, transform .18s; }
.chat[hidden] { display: none; }
@starting-style { .chat { opacity: 0; transform: translateY(12px); } }
.chat > header { display: flex; align-items: flex-start; gap: 8px; padding: 14px 8px 12px 18px; border-bottom: 1px solid var(--line); }
.chat > header div { flex: 1; min-width: 0; }
.chat h2 { font-size: 19px; }
.chat > header p { margin: 2px 0 0; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.chat > header .openn { display: block; }
.chat > header .openn:empty { display: none; }
.chat > header button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; }
.chat > header button:hover { background: var(--soft); }

.chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.chat-log:focus-visible { outline-offset: -3px; }
.chat-empty { margin: auto 0; color: var(--text-2); text-align: center; font-size: 15px; }
.cmsg { max-width: 85%; padding: 9px 13px 7px; border-radius: 14px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cmsg p { margin: 0; white-space: pre-wrap; }
.cmsg a { text-decoration: underline; }
.cmsg b { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.cmsg time, .cmsg .st { display: block; margin-top: 3px; font-size: 12px; opacity: .7; }
.cmsg time:empty { display: none; }
.cmsg.me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--text); color: var(--bg); }
.cmsg.staff { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--soft); }
.cmsg.pending time { display: none; }
.cmsg.fail { background: var(--red-soft); color: var(--text); }
.cmsg.fail .st { opacity: 1; color: var(--red); }
.cmsg .st button { padding: 0; border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; }

.chat-hint { margin: 0; padding: 8px 16px; font-size: 13px; color: var(--text-2); text-align: center; border-top: 1px solid var(--line); }
.chat form { padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.chat-intro { max-height: 45vh; overflow-y: auto; padding: 0 4px 4px; }
.chat .mf { margin-bottom: 10px; font-size: 14px; }
.chat .mf input { margin-top: 4px; padding: 10px 12px; font-size: 16px; }
.chat-ok { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 10px; font-size: 14px; color: var(--text-2); }
.chat-ok input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--text); }
.chat-ok a { color: var(--text); text-decoration: underline; }
.chat-ok.bad { color: var(--red); }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-row textarea { flex: 1; min-width: 0; height: 48px; min-height: 48px; max-height: 132px; padding: 11px 14px; border: 2px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 16px; line-height: 1.3; resize: none; }
.chat-row textarea:focus { outline: 0; border-color: var(--text); }
.chat-row button { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: var(--red-bg); color: #fff; }
.chat-row button:hover { background: var(--red-h); }
.wide.chatin { margin-top: 10px; }

@media (max-width: 760px) {
  .chatfab { right: 12px; bottom: calc(67px + env(safe-area-inset-bottom)); height: 46px; gap: 8px; padding: 0 16px 0 13px; font-size: 15px; }
  .chatfab .ico { width: 21px; height: 21px; }
  .chatfab-t { display: none; }
  .chatfab-m { display: inline; }
  body:has(.sbar) .chatfab { bottom: calc(136px + env(safe-area-inset-bottom)); } /* над нижней панелью покупки в карточке товара */
  .chat { inset: 0; z-index: 130; width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; }
  .chat-on body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .chat, .chatfab { transition: none; animation: none; } .chatfab::before, .chatfab:hover .ico { animation: none; } }

/* End */


/* Start:/local/templates/bsn/template_styles.css?179244029171947*/
/* BSN — стили шаблона. Основа — redesign/mockups/styles.css (макеты v2). Ниже — дополнения для Bitrix. */
/* BSN — макет v2: удобно заказать, легко читать. */
:root {
  --bg: #ffffff;
  --soft: #f4f5f7;
  --text: #14161a;
  --text-2: #4a4f57;
  --line: #e2e4e8;
  --red: #d42a2a;
  --red-h: #b82020;
  --red-bg: #d42a2a; /* фон под белым текстом: в тёмной теме не светлеет вместе с --red */
  --red-soft: #fdeceb;
  --green: #1d7a43;
  --green-soft: #e6f2ea;
  --r: 12px;
  --wrap: 1280px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hover: #eceef1;
  --pic: transparent;
}
:root[data-theme="dark"] {
  --bg: #131518; --soft: #1d2024; --text: #eef0f3; --text-2: #a8adb5; --line: #2d3137;
  --red: #ff6b6b; --red-soft: #3a1e1e; --green: #4cc27f; --green-soft: #183324; --hover: #262a30; --pic: #ffffff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2a62d8; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

/* ---------- шапка ---------- */
.top { background: var(--soft); font-size: 14px; color: var(--text-2); }
.top .wrap { display: flex; gap: 24px; align-items: center; min-height: 38px; }
.top .grow { flex: 1; }
.top a:hover { color: var(--text); }
.top .openn { color: var(--text-2); }
.top .phone { color: var(--text); font-weight: 600; }
.link { border: 0; background: none; padding: 0; color: var(--red); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hdr { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 16px; height: 76px; }
.logo { flex: none; } /* иначе в тесной шапке flex сжимает ширину, а высота остаётся — логотип сплющивается */
.logo img { height: 56px; width: auto; max-width: none; }
.btn-cat { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: var(--r); background: var(--soft); color: var(--text); font-weight: 600; font-size: 16px; transition: background-color .15s ease, color .15s ease; }
.btn-cat:hover { background: var(--hover); }
.btn-cat .ico { color: var(--red); transition: color .15s ease; }
.btn-cat .burger path { transform-origin: 12px 12px; transition: transform .2s ease, opacity .15s ease; }
.btn-cat[aria-expanded="true"] { background: var(--red-bg); color: #fff; }
.btn-cat[aria-expanded="true"] .ico { color: #fff; }
.btn-cat[aria-expanded="true"] .burger path:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.btn-cat[aria-expanded="true"] .burger path:nth-child(2) { opacity: 0; }
.btn-cat[aria-expanded="true"] .burger path:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .btn-cat, .btn-cat .ico, .btn-cat .burger path { transition: none; } }
.search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; border: 1px solid transparent; border-radius: var(--r); background: var(--soft); transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.search:hover { background: var(--hover); }
.search:focus-within { background: var(--bg); border-color: var(--text); box-shadow: 0 0 0 4px var(--soft); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 14px 0 0; font-size: 16px; background: none; }
.search input::placeholder { color: var(--text-2); }
.search > button { order: -1; flex: none; height: 100%; padding: 0 10px 0 14px; border: 0; border-radius: var(--r) 0 0 var(--r); background: none; color: var(--red); display: grid; place-items: center; transition: color .15s ease; }
.search > button:hover { color: var(--red-h); }
@media (prefers-reduced-motion: reduce) { .search, .search > button { transition: none; } }
.sugg { position: absolute; top: calc(100% + 6px); left: -1px; right: -1px; z-index: 60; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); box-shadow: 0 16px 40px rgba(0,0,0,.14); }
.sugg a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.sugg a:hover { background: var(--soft); }
.sugg .sp img { width: 40px; height: 40px; object-fit: contain; background: var(--pic); border-radius: 6px; }
.sugg .sp span { flex: 1; }
.sugg .sc { font-weight: 600; }
.sugg .sn { padding: 12px; font-size: 15px; color: var(--text-2); }
.hbtn { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 64px; padding: 4px 6px; border: 0; background: none; font-size: 13px; color: var(--text-2); border-radius: 10px; }
.hbtn .cnt { position: absolute; top: 0; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-bg); color: #fff; font: 600 11px/18px var(--font); font-style: normal; text-align: center; }
.hbtn:hover { color: var(--text); background: var(--soft); }
.cartbtn { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 0; border-radius: var(--r); background: var(--red-bg); color: #fff; font-weight: 600; white-space: nowrap; }
.cartbtn:hover { background: var(--red-h); }
.cartbtn .cnt { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #fff; color: var(--red-bg); font-size: 14px; line-height: 24px; text-align: center; }
.cats { border-bottom: 1px solid var(--line); }
/* меню каталога по кнопке «Каталог» */
.mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 45; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 22, 26, .12); }
.mega[hidden] { display: none; }
.hdr .mega-in { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; gap: 28px; height: auto; padding-top: 16px; padding-bottom: 24px; max-height: calc(100vh - 150px); }
.mega-top { margin: 0; padding: 0 12px 0 0; list-style: none; overflow: auto; border-right: 1px solid var(--line); }
.mega-top a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-size: 16px; font-weight: 500; }
.mega-top a:not(.mega-brands)::after { content: '›'; color: var(--text-2); font-size: 20px; line-height: 1; }
.mega-top a.on, .mega-top a:focus-visible { background: var(--soft); }
.mega-subs { overflow: auto; padding-top: 6px; }
.mega-all { display: inline-block; margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.mega-all:hover, .mega-grid a:hover { color: var(--red); }
.mega-grid { columns: 3 220px; column-gap: 28px; }
.mega-grid a { display: block; break-inside: avoid; padding: 7px 0; font-size: 15px; line-height: 1.3; }
.mega i { font-style: normal; font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) { .mega { display: none !important; } }
.cats .wrap { display: flex; flex-wrap: wrap; gap: 0 6px; }
.cats a { flex: none; padding: 12px 12px; font-size: 15px; font-weight: 500; color: var(--text-2); border-bottom: 3px solid transparent; }
.cats a:hover { color: var(--text); }
.cats a[aria-current] { color: var(--text); border-color: var(--text); }
.cats a.hot { color: var(--red); }

/* ---------- общие ---------- */
main { padding-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 6px; font-size: 14px; color: var(--text-2); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.crumbs a:hover { color: var(--text); }
.sec { padding: 36px 0 8px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-h h2 { font-size: 28px; font-weight: 700; }
.sec-h a { font-size: 16px; font-weight: 500; color: var(--red); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--r); border: 0; font-weight: 600; font-size: 16px; }
.btn-red { background: var(--red-bg); color: #fff; }
.btn-red:hover { background: var(--red-h); }
.btn-line { background: var(--bg); border: 2px solid var(--line); }
.btn-line:hover { border-color: var(--text); }
.chip { flex: none; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); font-size: 15px; white-space: nowrap; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.row-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.picks { margin-bottom: 16px; }

/* ---------- карточка ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.card:hover { border-color: var(--text-2); box-shadow: 0 6px 20px rgba(20, 22, 26, .06); }
.card .pic { position: relative; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; }
.card .pic img { width: 88%; aspect-ratio: 1; object-fit: contain; }
.lbl { position: absolute; top: 8px; left: 8px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 8px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; background: var(--soft); }
.lbl.sale { background: var(--red-bg); color: #fff; }
.lbl.new { background: var(--green-soft); color: var(--green); }
.lbl[hidden] { display: none; }
.card .pic { background: var(--pic); border-radius: 8px; }
.card .icons { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; gap: 4px; }
.ib { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg); color: var(--text-2); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ib:hover { color: var(--text); }
.ib[data-fav][aria-pressed="true"] { color: var(--red); }
.ib[data-fav][aria-pressed="true"] .ico { fill: var(--red); }
.ib[data-cmp][aria-pressed="true"] { background: var(--text); color: var(--bg); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price b { font-size: 22px; font-weight: 700; line-height: 1.15; }
.price.sale b { color: var(--red); }
.price s { font-size: 15px; color: var(--text-2); }
.card .name { margin: 6px 0 10px; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .name:hover { color: var(--red); }
.card .opts { margin-top: auto; }
.card select { width: 100%; height: 40px; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
.card .act { margin-top: auto; }
.card .opts + .act { margin-top: 0; }
.card .vcur, .card .vpop { display: none; }
/* компьютер: вкусы кнопками под карточкой при наведении, поверх соседей — сетка не сдвигается; телефон — селект */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .card:has(.vpop) select { display: none; }
  .card .vcur { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card .vcur span { color: var(--text); }
  .card .vpop { position: absolute; top: calc(100% - 10px); left: -1px; right: -1px; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow: auto; padding: 4px 12px 12px; border: 1px solid var(--text-2); border-top: 0; border-radius: 0 0 var(--r) var(--r); background: var(--bg); box-shadow: 0 14px 24px rgba(20, 22, 26, .08); visibility: hidden; opacity: 0; transition: opacity .12s, visibility 0s .12s; }
  .card:has(.vpop):hover, .card:has(.vpop):focus-within { z-index: 6; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .card:hover .vpop, .card:focus-within .vpop { visibility: visible; opacity: 1; transition: opacity .12s; }
  .vchip { min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.25; text-align: left; cursor: pointer; }
  .vchip:hover { border-color: var(--text-2); }
  .vchip[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
  .vchip.na { color: var(--text-2); text-decoration: line-through; }
}
.card .btn { width: 100%; }
.step { display: flex; align-items: center; height: 48px; border-radius: var(--r); background: var(--soft); }
.step button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--r); }
.step button:hover { background: var(--hover); }
.step button:disabled { opacity: .35; cursor: default; background: none; }
.step span { flex: 1; text-align: center; font-weight: 600; font-size: 16px; }
.step span small { display: block; font-weight: 400; font-size: 12px; color: var(--text-2); line-height: 1; }

/* ---------- корзина ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(20, 22, 26, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(460px, 100%); display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.drawer.on { transform: none; visibility: visible; transition: transform .25s ease; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 22px; }
.drawer header button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; }
.drawer header button:hover { background: var(--soft); }
.lines { flex: 1; overflow: auto; padding: 4px 20px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; object-fit: contain; background: var(--pic); border-radius: 8px; }
.line a.t:hover { color: var(--red); }
.line .fa { flex: 1; max-width: 190px; }
.line .fa .btn { width: 100%; height: 40px; }
.line .t { font-size: 15px; line-height: 1.35; }
.line .v { font-size: 14px; color: var(--text-2); }
.line .bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line .step { height: 40px; }
.line .step button { width: 40px; height: 40px; }
.line .step span { min-width: 28px; }
.line .sum { font-weight: 700; font-size: 17px; }
.line .del { border: 0; background: none; padding: 0; margin-top: 4px; font-size: 14px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.empty { padding: 48px 0; text-align: center; color: var(--text-2); }
.empty b { display: block; font-size: 20px; color: var(--text); margin-bottom: 6px; }
.drawer footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.tot { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); margin-bottom: 4px; }
.tot[hidden] { display: none; }
.tot.big { font-size: 22px; font-weight: 700; color: var(--text); margin: 8px 0 14px; }
.drawer footer .btn { width: 100%; height: 56px; font-size: 18px; }
.minwarn { margin: 0 0 12px !important; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--text) !important; font-size: 15px !important; text-align: left !important; }
.minwarn b { display: block; color: var(--red); }
.btn.off { background: #c9ccd2; color: #fff; cursor: not-allowed; pointer-events: auto; }
.drawer footer p { margin: 10px 0 0; font-size: 14px; color: var(--text-2); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: var(--r); background: var(--text); color: var(--bg); font-size: 15px; transition: .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--bg); color: var(--text); font-weight: 600; }

/* ---------- окна ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(20, 22, 26, .5); }
.modal.on { display: grid; }
.mbox { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px 24px; border-radius: 16px; background: var(--bg); }
.mbox h2 { font-size: 24px; margin-bottom: 8px; padding-right: 40px; }
.mbox > p { margin: 0 0 18px; color: var(--text-2); }
.mx { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; }
.mx:hover { background: var(--soft); }
.mf { display: block; margin-bottom: 14px; font-size: 15px; font-weight: 500; }
.mf input, .mf textarea { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 17px; font-weight: 400; }
.mf input:focus, .mf textarea:focus { outline: 0; border-color: var(--text); }
.mf small { display: none; margin-top: 6px; color: var(--red); font-size: 14px; font-weight: 400; }
.mf.bad input, .mf.bad textarea { border-color: var(--red); }
.mf.bad small { display: block; }
.mbox form .btn, .wide { width: 100%; height: 56px; font-size: 17px; }
.wide + .wide { margin-top: 10px; }
.mbox .legal { margin: 10px 0 0; font-size: 13px; color: var(--text-2); text-align: center; }
.mbox .legal a { text-decoration: underline; }
.okmsg { padding: 12px 0 0; text-align: center; }
.okmsg > .ico { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--soft); color: var(--green); stroke-width: 2.4; }
.okmsg h2 { margin: 16px 0 20px; padding: 0; font-size: 20px; }
.btn-ink { background: var(--text); color: var(--bg); }

/* ---------- футер ---------- */
.ftr { margin-top: 40px; background: var(--soft); padding: 40px 0 32px; font-size: 15px; color: var(--text-2); }
.sub { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.sub label b, .sub > b { display: block; font-size: 20px; color: var(--text); }
.sub .subrow { display: flex; gap: 8px; width: min(460px, 100%); }
.sub input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 16px; }
.ftr .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ftr h3 { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a:hover { color: var(--text); }
.ftr ul a, .ftr .legal a { display: inline-flex; align-items: center; min-height: 24px; }
.ftr .ph { font-size: 24px; font-weight: 700; color: var(--text); }
.ftr .legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- мобайл ---------- */
.tabbar { display: none; }
@media (max-width: 1200px) { .grid { --cols: 4; } }
@media (max-width: 1100px) { .hbtn span { display: none; } .hbtn { min-width: 44px; } .hbtn .cnt { right: 0; } .hdr .wrap { gap: 12px; } }
@media (max-width: 980px) {
  .grid { --cols: 3; }
  .btn-cat { display: none; }
  .logo img { height: 48px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top, .btn-cat, .cats, .hbtn, .cartbtn { display: none; }
  .hbtn[data-theme-toggle] { order: 1; display: grid; place-items: center; width: 44px; height: 44px; min-width: 0; padding: 0; border-radius: 50%; background: var(--soft); }
  .search { order: 2; }
  .sub { flex-direction: column; align-items: stretch; gap: 12px; }
  .hdr .wrap { height: auto; flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  .logo img { height: 44px; }
  .hdr .mphone { margin-left: auto; border: 0; color: var(--text); display: grid !important; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--soft); }
  .search { flex-basis: 100%; }
  .grid { --cols: 2; gap: 10px; }
  .card { padding: 10px; }
  .price b { font-size: 19px; }
  .card .name { font-size: 15px; }
  .card .btn { height: 44px; padding: 0 8px; font-size: 15px; }
  .step { height: 44px; }
  .step button { width: 44px; height: 44px; }
  .sec-h h2 { font-size: 22px; }
  .ftr { padding-bottom: 140px; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font-size: 12px; color: var(--text-2); }
  .tabbar [aria-current] { color: var(--text); font-weight: 600; }
  .tabbar .cnt { position: absolute; top: -2px; left: 50%; margin-left: 6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red-bg); color: #fff; font-size: 12px; line-height: 20px; }
  .toast { bottom: 76px; width: calc(100% - 24px); justify-content: space-between; }
  .drawer { width: 100%; }
}
.mphone { display: none !important; }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim, .toast { transition: none; } }

/* ---------- дополнения для Bitrix ---------- */
#panel:empty { display: none; }
#panel { position: relative; z-index: 200; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 6px; font-size: 14px; color: var(--text-2); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.crumbs a:hover { color: var(--text); }
.top .openn[data-hours]:empty { display: none; }
.ftr .sub > div b { display: block; font-size: 20px; color: var(--text); }
.ftr .sub > div span { color: var(--text-2); }
.wide-phone a { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border-radius: var(--r); background: var(--red-bg); color: #fff; font-size: 17px; font-weight: 600; }
/* включаемые области в режиме правки Bitrix не должны ломать сетку */
.bx-context-toolbar-empty-area { min-height: 1em; }

/* ---------- главная (макет index.html) ---------- */
  .intro { padding: 28px 0 4px; }
  .intro h1 { font-size: 32px; font-weight: 700; }
  .intro p { margin: 6px 0 0; color: var(--text-2); font-size: 17px; }
  .tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 14px; border-radius: var(--r); background: var(--soft); font-weight: 600; font-size: 16px; line-height: 1.25; }
  .tile img { align-self: flex-end; width: 72px; height: 72px; object-fit: contain; mix-blend-mode: multiply; }
  :root[data-theme="dark"] .tile img { mix-blend-mode: normal; background: #fff; border-radius: 8px; padding: 4px; }
  .tile:hover { background: var(--hover); }
  .tile.hot { background: var(--red-soft); color: var(--red); }
  .brands { display: flex; flex-wrap: wrap; gap: 10px; }
  .brands a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
  .brands a:hover { border-color: var(--text); }
  .pick-empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--text-2); }
  @media (max-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (max-width: 760px) {
    .intro { padding-top: 18px; }
    .intro h1 { font-size: 24px; }
    .intro p { font-size: 15px; }
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .tile { min-height: 118px; padding: 10px; font-size: 14px; }
    .tile img { width: 52px; height: 52px; }
  }

/* ---------- каталог и фильтр (макет catalog.html) ---------- */
  .head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 16px; }
  .head h1 { font-size: 32px; font-weight: 700; }
  .head span { color: var(--text-2); font-size: 17px; }
  .layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
  .layout .grid { --cols: 4; }

  /* компактная колонка фильтров */
  .side { position: sticky; top: 92px; max-height: calc(100vh - 108px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
  .side-h { display: none; }
  .side-body { overflow: auto; padding: 4px 16px; }
  .grp { border-bottom: 1px solid var(--line); }
  .grp:last-child { border-bottom: 0; }
  .grp > summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; list-style: none; cursor: pointer; font-weight: 600; font-size: 16px; }
  .grp > summary::-webkit-details-marker { display: none; }
  .grp > summary .val { margin-left: auto; font-weight: 400; font-size: 14px; color: var(--red); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .grp > summary .val:empty { display: none; }
  .grp > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg) translateY(-3px); transition: transform .15s; flex: none; }
  .grp > summary .val:not(:empty) + i { display: none; }
  .grp > summary:has(.val:not(:empty))::after { margin-left: 4px; }
  .grp[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
  .grp .in { padding: 0 0 14px; }

  .presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .presets button { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 17px; background: var(--bg); font-size: 14px; }
  .presets button:hover { border-color: var(--text); }
  .presets button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
  .range { display: flex; align-items: center; gap: 6px; }
  .range input { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--bg); }
  .range span { color: var(--text-2); }

  .bsearch { width: 100%; height: 40px; margin-bottom: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--bg); }
  .opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 6px; margin: 0 -6px; border-radius: 8px; font-size: 15px; cursor: pointer; }
  .opt:hover { background: var(--soft); }
  .opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); flex: none; }
  .opt i { margin-left: auto; font-style: normal; font-size: 13px; color: var(--text-2); }
  .opt:has(input:disabled) { opacity: .45; cursor: default; }
  .blist .sep { height: 1px; margin: 6px 0; background: var(--line); }
  .more { margin-top: 4px; border: 0; background: none; padding: 4px 0; font-size: 14px; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
  .nob { padding: 6px 0; font-size: 14px; color: var(--text-2); }

  /* переключатели меток */
  .sw { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 15px; cursor: pointer; }
  .sw input { position: absolute; opacity: 0; pointer-events: none; }
  .sw .t { position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--line); transition: background .15s; flex: none; }
  .sw .t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
  .sw input:checked + .t { background: var(--red); }
  .sw input:checked + .t::after { transform: translateX(16px); }
  .sw input:focus-visible + .t { outline: 3px solid #2a62d8; outline-offset: 2px; }

  .side-f { padding: 12px 16px; border-top: 1px solid var(--line); }
  .side-f .btn { width: 100%; height: 44px; }
  .side-f .btn:disabled { opacity: .45; cursor: default; }
  .side-f .show { display: none; }

  .bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; min-height: 40px; }
  .bar .found { flex: 1; color: var(--text-2); }
  .bar .found b { color: var(--text); }
  .bar select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
  .fbtn { display: none; }
  .fbtn .n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red-bg); color: #fff; font-size: 13px; line-height: 22px; }
  .none { grid-column: 1 / -1; padding: 40px 16px; border-radius: var(--r); background: var(--soft); text-align: center; color: var(--text-2); }
  .none b { display: block; font-size: 20px; color: var(--text); margin-bottom: 6px; }
  .none .btn { margin-top: 14px; }

  @media (max-width: 1200px) { .layout .grid { --cols: 3; } }
  @media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; margin-top: 16px; }
    .fbtn { display: inline-flex; height: 40px; }
    /* на телефоне колонка становится шторкой */
    .side { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 120; max-height: 88vh; border: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.25); }
    .side.on { display: flex; }
    .side-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
    .side-h b { font-size: 20px; }
    .side-h button { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; }
    .side-f { display: flex; gap: 8px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
    .side-f .btn { width: auto; min-width: 0; padding: 0 10px; font-size: 14px; white-space: nowrap; }
    .side-f [data-reset] { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
    .side-f .show { display: inline-flex; flex: 1 0 auto; }
    .fscrim { position: fixed; inset: 0; z-index: 110; background: rgba(20,22,26,.45); }
  }
  @media (max-width: 760px) {
    .layout .grid { --cols: 2; }
    .head h1 { font-size: 26px; }
    .bar { flex-wrap: wrap; gap: 8px; }
    .bar .found { order: 3; flex-basis: 100%; font-size: 15px; }
    .bar select { flex: 1; min-width: 0; }
  }

/* ---------- товар (макет product.html, базовая часть) ---------- */
  .pdp { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: start; padding-top: 8px; }
  .photo { position: relative; aspect-ratio: 1; max-height: 620px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--pic); }
  .photo img { max-width: 80%; max-height: 80%; object-fit: contain; }
  .photo .lbl { top: 16px; left: 16px; height: 30px; padding: 0 12px; font-size: 15px; }
  .buy { position: sticky; top: 100px; }
  .brand { font-size: 15px; font-weight: 500; color: var(--red); }
  .buy h1 { font-size: 30px; font-weight: 700; margin: 4px 0 18px; }
  .vh { font-size: 16px; margin-bottom: 10px; }
  .vh b { font-weight: 600; }
  .vars { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
  .var { min-height: 48px; padding: 0 18px; border: 2px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 16px; }
  .var:hover { border-color: var(--text-2); }
  .var[aria-pressed="true"] { border-color: var(--text); font-weight: 600; }
  .box { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
  .pr { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
  .pr b { font-size: 36px; font-weight: 700; color: var(--red); line-height: 1.1; }
  .pr s { font-size: 18px; color: var(--text-2); }
  .acts { display: flex; gap: 8px; margin-top: 18px; }
  .acts .act { flex: 1; }
  .acts .btn, .acts .step { width: 100%; height: 56px; font-size: 18px; }
  .acts .step button { height: 56px; width: 56px; }
  .acts .ib { width: 56px; height: 56px; border-radius: var(--r); border: 2px solid var(--line); box-shadow: none; flex: none; }
  .get { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
  .get li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15px; color: var(--text-2); }
  .get b { display: block; color: var(--text); font-size: 16px; font-weight: 600; }
  .get .link { font-size: 15px; }
  .info { max-width: 820px; }
  .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: none; padding: 12px 16px; border: 0; border-bottom: 3px solid transparent; background: none; font-size: 16px; font-weight: 500; color: var(--text-2); }
  .tabs button[aria-selected="true"] { color: var(--text); border-color: var(--text); }
  .tabs button span { color: var(--text-2); font-weight: 400; }
  .pane[hidden] { display: none; }
  .pane p, .pane li { font-size: 17px; line-height: 1.6; }
  .pane p { margin: 0 0 12px; }
  .pane ul { margin: 0 0 12px; padding-left: 22px; }
  @media (max-width: 1000px) {
    .pdp { grid-template-columns: 1fr; gap: 20px; }
    .buy { position: static; }
    .photo { aspect-ratio: auto; height: 380px; }
  }
  @media (max-width: 760px) {
    .photo { height: 300px; }
    .buy h1 { font-size: 24px; }
    .pr b { font-size: 30px; }
    .box { padding: 16px; }
    .pane p, .pane li { font-size: 16px; }
  }

/* ---------- фаза 3: Bitrix-разметка поверх стилей макетов ---------- */
.head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 16px; }
.head h1 { font-size: 32px; font-weight: 700; }
.chips { margin-bottom: 16px; }
a.chip { display: inline-flex; align-items: center; gap: 6px; }
a.chip[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip i { font-style: normal; font-size: 13px; color: var(--text-2); }
a.chip[aria-current] i { color: inherit; opacity: .7; }
#bsn-cat.loading .list { opacity: .5; pointer-events: none; transition: opacity .15s .1s; }
.layout .list { min-width: 0; }
.opt span { flex: 1; min-width: 0; }
.opt[hidden], .nob[hidden] { display: none; }
.side-f a.btn[aria-disabled] { opacity: .45; cursor: default; }
.card .pic:empty, .card .pic:not(:has(img)) { background: var(--soft); }
.card .btn:disabled { color: var(--text-2); cursor: default; }
.pager { display: grid; justify-items: center; gap: 14px; margin-top: 24px; }
.more-btn { min-width: 260px; }
.pages { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.pages a, .pages span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 8px; border-radius: 10px; color: var(--text-2); }
.pages a:hover { background: var(--soft); color: var(--text); }
.pages [aria-current] { background: var(--text); color: var(--bg); font-weight: 600; }
.tiles .tile span { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* «Аминокислоты», «Жиросжигатели» должны влезать в плитку на 375 px целиком: переносы по слогам есть не во всех браузерах */
@media (max-width: 420px) { .tiles .tile { padding: 10px 8px; font-size: 13px; letter-spacing: -.01em; } }
.pick[hidden] { display: none; }
/* страница товара */
.gal { min-width: 0; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.thumbs button { flex: none; width: 72px; height: 72px; padding: 4px; border: 2px solid var(--line); border-radius: 10px; background: var(--pic); }
.thumbs button[aria-pressed="true"] { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.var small { font-size: 12px; color: var(--text-2); }
.var[data-can="0"] { color: var(--text-2); border-style: dashed; }
.pdp .price b { font-size: 36px; }
.pdp .price.sale b { color: var(--red); }
.pdp .price s { font-size: 18px; }
.get span b { display: block; }
.pane img { max-width: 100%; height: auto; }
.pane table { border-collapse: collapse; }
.pane td, .pane th { padding: 6px 10px; border: 1px solid var(--line); }
/* корзина: строки и итог */
.line .noimg { width: 72px; height: 72px; border-radius: 8px; background: var(--soft); }
.line.na img { opacity: .5; }
.line .sum s { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); text-align: right; }
.cartpage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; margin-top: 16px; }
.cartpage > .empty, .cartpage > .lines:only-child { grid-column: 1 / -1; }
.cartpage .lines { padding: 0; }
.cartpage .line { grid-template-columns: 96px 1fr; }
.cartpage .line img, .cartpage .line .noimg { width: 96px; height: 96px; }
.sumbox { position: sticky; top: 100px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); }
.sumbox .btn[data-go] { width: 100%; height: 56px; font-size: 18px; }
.sumbox p { margin: 10px 0 0; font-size: 14px; color: var(--text-2); text-align: center; }
.coupon { display: flex; gap: 8px; margin: 4px 0 12px; }
.coupon input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: var(--r); background: var(--bg); font-size: 16px; }
.coupon input:focus { outline: 0; border-color: var(--text); }
.cpn { display: flex; justify-content: space-between; gap: 10px; margin: -4px 0 12px; font-size: 14px; }
.cpn.ok span { color: var(--green); } .cpn.bad span { color: var(--red); }
.cpn button { border: 0; background: none; padding: 0; color: var(--text-2); text-decoration: underline; font-size: 14px; }
.cerr, .sumbox .cerr { margin: -6px 0 12px; font-size: 14px; color: var(--red); text-align: left; }
.cerr[hidden] { display: none; }
.coupon input[aria-invalid="true"] { border-color: var(--red); }
.ocoupon { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ocoupon .cpn { margin: 0 0 10px; }
.drawer footer[hidden] { display: none; }
.drawer footer .btn[data-go] { display: flex; }
@media (max-width: 900px) { .cartpage { grid-template-columns: minmax(0, 1fr); } .sumbox { position: static; } }
@media (max-width: 760px) {
  .head h1 { font-size: 26px; }
  .pdp .price b { font-size: 30px; }
  .cartpage .line { grid-template-columns: 72px 1fr; }
  .cartpage .line img, .cartpage .line .noimg { width: 72px; height: 72px; }
}

/* ---------- товар, фаза 5 (макет product.html) ---------- */
.save { margin-top: 4px; font-size: 15px; color: var(--red); font-weight: 500; }
.save:empty { display: none; }
.bonus { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; color: var(--text-2); }
.bonus .ico { color: var(--red); margin-top: 1px; }
.bonus b { color: var(--text); font-weight: 600; }
.get li > span b { display: block; color: var(--text); font-size: 16px; font-weight: 600; }
.get .link { font-size: 15px; }
.extra { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.extra button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 0; font-size: 15px; color: var(--text-2); }
.extra button:hover { color: var(--text); }
.extra .ico { width: 18px; height: 18px; }
.pdp .acts .act { flex: 1; }
.sbar { display: none; }
.mf i { font-style: normal; font-weight: 400; color: var(--text-2); }
@media (max-width: 760px) {
  .ftr { padding-bottom: 160px; }
  .sbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(55px + env(safe-area-inset-bottom)); z-index: 49; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,22,26,.06); }
  .sbar .price { flex: none; display: block; line-height: 1.15; }
  .sbar .price b { display: block; font-size: 20px; }
  .sbar .price s { font-size: 13px; }
  .sbar .act { flex: 1; }
  .sbar .btn, .sbar .step { width: 100%; }
  .buy .acts .act { display: none; } /* на телефоне покупка — в нижней панели, без дубля */
  .pdp ~ .toast, body:has(.sbar) .toast { bottom: 140px; }
}

/* ---------- оформление заказа (макет checkout.html) ---------- */
  body.checkout { background: var(--soft); }
  .checkout .chdr { background: var(--bg); border-bottom: 1px solid var(--line); }
  .checkout .chdr .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
  .checkout .chdr .logo img { height: 44px; }
  .checkout .chdr .grow { flex: 1; }
  .checkout .chdr .back { font-weight: 500; color: var(--text-2); }
  .checkout .chdr .back:hover { color: var(--text); }
  .checkout .chdr .ph { font-weight: 600; }
  .checkout h1.title { font-size: 32px; margin: 28px 0 20px; }
  .checkout .co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
  .checkout .step-box { background: var(--bg); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
  .checkout .step-box h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 18px; }
  .checkout .step-box h2 .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 16px; flex: none; }
  .checkout .choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .checkout .choices.two { grid-template-columns: 1fr 1fr; }
  .checkout .choice { position: relative; display: block; padding: 16px 16px 16px 50px; border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; }
  .checkout .choice:hover { border-color: #b9bdc4; }
  .checkout .choice input { position: absolute; left: 16px; top: 18px; width: 22px; height: 22px; margin: 0; accent-color: var(--red); }
  .checkout .choice b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
  .checkout .choice span { font-size: 15px; color: var(--text-2); }
  .checkout .choice.dis { opacity: .55; cursor: not-allowed; }
  .checkout .choice:has(input:checked) { border-color: var(--text); background: #fafafb; }
  .checkout .note { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--soft); font-size: 15px; color: var(--text-2); }
  .checkout .note b { color: var(--text); }
  .checkout .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .checkout .fields .full { grid-column: 1 / -1; }
  .checkout .field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
  .checkout .field label i { font-style: normal; font-weight: 400; color: var(--text-2); }
  .checkout .field input, .checkout .field textarea { width: 100%; height: 56px; padding: 0 16px; border: 2px solid var(--line); border-radius: var(--r); font-size: 17px; background: var(--bg); }
  .checkout .field textarea { height: 96px; padding: 14px 16px; resize: vertical; }
  .checkout .field input:focus, .checkout .field textarea:focus { outline: 0; border-color: var(--text); }
  .checkout .field .err { display: none; margin-top: 6px; font-size: 14px; color: var(--red); }
  .checkout .field.bad input { border-color: var(--red); }
  .checkout .field.bad .err { display: block; }
  .checkout .addr[hidden] { display: none; }

  .checkout .sum { position: sticky; top: 20px; background: var(--bg); border-radius: 16px; padding: 24px; }
  .checkout .sum h2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 22px; margin-bottom: 14px; }
  .checkout .sum h2 a { font-size: 15px; font-weight: 500; color: var(--red); }
  .checkout .items { display: grid; gap: 12px; max-height: 300px; overflow: auto; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .checkout .it { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 15px; line-height: 1.3; }
  .checkout .it img { width: 56px; height: 56px; object-fit: contain; }
  .checkout .it small { display: block; color: var(--text-2); font-size: 14px; }
  .checkout .it b { white-space: nowrap; text-align: right; }
  .checkout .it b s { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); }
  .checkout .it .pct { color: var(--red); white-space: nowrap; }
  .checkout .rows .disc.all span { font-weight: 600; }
  .checkout .rows { padding: 14px 0 0; display: grid; gap: 6px; font-size: 16px; }
  .checkout .rows div { display: flex; justify-content: space-between; color: var(--text-2); }
  .checkout .rows .disc span:last-child { color: var(--red); }
  .checkout .rows .total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 24px; font-weight: 700; color: var(--text); }
  .checkout .confirm { width: 100%; height: 60px; margin-top: 18px; font-size: 19px; }
  .checkout .legal { margin: 12px 0 0; font-size: 13px; color: var(--text-2); text-align: center; }
  .checkout .legal a { text-decoration: underline; text-underline-offset: 2px; }

  .checkout .msum { display: none; }
  .checkout .mconfirm { display: none; }

  .checkout .done, .checkout .emptyc { max-width: 620px; margin: 48px auto; padding: 40px 32px; background: var(--bg); border-radius: 16px; text-align: center; }
  .checkout .done .ok { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
  .checkout .done .ok .ico { width: 36px; height: 36px; stroke-width: 2.4; }
  .checkout .done h1, .checkout .emptyc h1 { font-size: 30px; margin-bottom: 10px; }
  .checkout .done p, .checkout .emptyc p { font-size: 17px; color: var(--text-2); margin: 0 0 8px; }
  .checkout .done .recap { margin: 22px 0; padding: 16px; border-radius: var(--r); background: var(--soft); text-align: left; font-size: 16px; display: grid; gap: 6px; }
  .checkout .done .recap span { color: var(--text-2); }

  @media (max-width: 1000px) {
    .checkout .co { grid-template-columns: 1fr; }
    .checkout .sum { display: none; }
    .checkout .msum { display: block; background: var(--bg); border-radius: 16px; margin-bottom: 16px; }
    .checkout .msum summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; list-style: none; cursor: pointer; font-weight: 600; font-size: 17px; }
    .checkout .msum summary::after { content: "▾"; color: var(--text-2); margin-left: 8px; }
    .checkout .msum[open] summary::after { content: "▴"; }
    .checkout .msum summary span { margin-left: auto; }
    .checkout .msum .in { padding: 0 20px 18px; }
    .checkout .mconfirm { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,22,26,.08); }
    .checkout .mconfirm .confirm { margin: 0; display: flex; justify-content: space-between; padding: 0 22px; }
    .checkout .mconfirm .legal { margin: 8px 0 0; font-size: 12px; line-height: 1.35; }
    .checkout main { padding-bottom: 150px; }
  }
  @media (max-width: 760px) {
    .checkout .chdr .back span, .checkout .chdr .ph { display: none; }
    .checkout h1.title { font-size: 26px; margin: 18px 0 14px; }
    .checkout .step-box { padding: 18px 16px; border-radius: 14px; }
    .checkout .step-box h2 { font-size: 20px; }
    .checkout .choices, .checkout .choices.two { grid-template-columns: 1fr; gap: 10px; }
    .checkout .fields { grid-template-columns: 1fr; }
    .checkout .done, .checkout .emptyc { margin: 24px 0; padding: 28px 20px; }
  }

.checkout .chdr .ph a { color: inherit; }
.checkout .chdr .logo img { height: 44px; max-height: 44px; }
.checkout .co.loading .choices, .checkout .co.loading [data-sumbody] { opacity: .5; pointer-events: none; transition: opacity .15s .1s; }
.checkout .field select { width: 100%; height: 56px; padding: 0 12px; border: 2px solid var(--line); border-radius: var(--r); font-size: 17px; background: var(--bg); }
.checkout .field[hidden], .checkout .note[hidden], .checkout .errs[hidden] { display: none; }
.checkout .note:empty { display: none; }
.checkout .it > span { width: 56px; height: 56px; border-radius: 8px; background: var(--soft); }
.checkout .errs { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--red-soft); color: var(--text); font-size: 15px; }
.checkout .errs p { margin: 0; } .checkout .errs p + p { margin-top: 6px; }
.checkout .errs.m { display: none; }
.checkout .done .btn { margin: 6px 4px 0; }
.checkout .payform { margin: 0 0 18px; }
:root[data-theme="dark"] .checkout .choice:has(input:checked) { background: var(--hover); }
@media (max-width: 1000px) { .checkout .errs.m:not([hidden]) { display: block; margin: 0 0 16px; } .checkout .sum .errs { display: none; } }

/* ---------- вход и регистрация (макет login.html) ---------- */
.abox { width: min(440px, 100%); margin: 40px auto; padding: 32px 28px 28px; border-radius: 16px; background: var(--bg); }
.abox h1 { font-size: 28px; margin-bottom: 8px; }
.abox .lead { margin: 0 0 22px; font-size: 16px; color: var(--text-2); }
.abox .field, .acc .field { margin-bottom: 14px; }
.abox .field label, .acc .field label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.abox .field input, .acc .field input { width: 100%; height: 56px; padding: 0 16px; border: 2px solid var(--line); border-radius: var(--r); font-size: 18px; background: var(--bg); }
.abox .field input:focus, .acc .field input:focus { outline: 0; border-color: var(--text); }
.abox .field .err, .acc .field .err { display: none; margin-top: 6px; font-size: 14px; color: var(--red); }
.abox .field.bad input, .acc .field.bad input { border-color: var(--red); }
.abox .field.bad .err, .acc .field.bad .err { display: block; }
.abox .cap { margin-bottom: 8px; border-radius: 8px; }
.abox .go { width: 100%; height: 56px; margin-top: 8px; font-size: 18px; }
.abox .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 15px; color: var(--text-2); }
.abox .legal { margin: 14px 0 0; font-size: 13px; color: var(--text-2); text-align: center; }
.abox .legal a { text-decoration: underline; }
.abox .sw, .acc .sw { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 8px; font-size: 16px; cursor: pointer; }
.abox .sw input { position: absolute; opacity: 0; pointer-events: none; }
.abox .sw .t { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--line); flex: none; }
.abox .sw .t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.abox .sw input:checked + .t { background: var(--red); }
.abox .sw input:checked + .t::after { transform: translateX(18px); }
.aerr, .aok { margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.aerr { background: var(--red-soft); color: var(--text); }
.aok { background: var(--green-soft); color: var(--text); }
.hint { margin: -4px 0 12px; font-size: 14px; color: var(--text-2); }

/* ---------- личный кабинет (макет account.html) ---------- */
.acc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 8px; }
.acc .who { margin-bottom: 16px; }
.acc .who b { display: block; font-size: 20px; }
.acc .who span { color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.anav { position: sticky; top: 92px; display: grid; gap: 4px; }
.anav a { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.anav a:hover { background: var(--soft); color: var(--text); }
.anav a[aria-current] { background: var(--soft); color: var(--text); font-weight: 600; }
.anav a i { margin-left: auto; font-style: normal; font-size: 14px; color: var(--text-2); }
.anav a.out { margin-top: 12px; height: 44px; font-size: 15px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.plist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.prow { display: grid; gap: 2px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.prow b { font-size: 16px; }
.prow span { font-size: 14px; color: var(--text-2); }
.pdel { font-size: 14px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.acc textarea { width: 100%; min-height: 96px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--r); font: inherit; font-size: 16px; background: var(--bg); resize: vertical; }
.acc textarea:focus { outline: 0; border-color: var(--text); }
.acc .location-block-wrapper { margin-bottom: 14px; }
.sec-t { font-size: 28px; margin-bottom: 18px; }
.order { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 14px; }
.order .oh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.order .oh b { font-size: 18px; }
.order .oh .d { color: var(--text-2); font-size: 15px; }
.order .oh .sum { margin-left: auto; font-size: 20px; font-weight: 700; }
.stt { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--soft); }
.stt.ready { background: var(--green-soft); color: var(--green); }
.stt.wait { background: #fff4dc; color: #8a5a00; }
:root[data-theme="dark"] .stt.wait { background: #3a2e14; color: #f0c26a; }
.order .thumbs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; overflow: visible; }
.order .thumbs img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: var(--pic); }
.order .thumbs .more { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px; background: var(--soft); font-size: 14px; color: var(--text-2); }
.order details { margin-top: 12px; }
.order summary { cursor: pointer; font-size: 15px; color: var(--text-2); }
.olines { margin-top: 10px; display: grid; gap: 8px; }
.olines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.olines > div span:first-child { color: var(--text-2); }
.olines .meta { padding-top: 8px; border-top: 1px solid var(--line); }
.olines .oline { align-items: center; }
.olines .oline img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: var(--pic); flex: none; }
.olines .oline span:nth-child(2) { flex: 1; }
.oacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.oacts .btn { height: 44px; }
.lvl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.lv { padding: 18px; border-radius: var(--r); border: 2px solid var(--line); }
.lv small { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.lv b { font-size: 24px; }
.lv p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
.cpbox { margin-bottom: 18px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); }
.cpbox h3 { font-size: 18px; margin-bottom: 4px; }
.cpbox > p { margin: 0 0 12px; color: var(--text-2); font-size: 15px; }
.stat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat div { padding: 18px 20px; border-radius: var(--r); background: var(--soft); }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--text-2); font-size: 15px; }
.faq { margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 14px 0; cursor: pointer; font-weight: 600; }
.faq p { margin: 0 0 14px; color: var(--text-2); }
.acc .form { max-width: 560px; }
.acc .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.acc .fields .full { grid-column: 1 / -1; }
.acc .pwd { margin: 4px 0 18px; }
.acc .pwd summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.acc .save { min-width: 200px; }
/* главная кабинета: данные и баланс, плитки разделов, текущие заказы, рекомендации */
.dme { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.dcard { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.dcard small { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.dcard b { display: block; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.dcard p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.dlinks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; font-size: 15px; }
.dlinks a { display: inline-flex; align-items: center; min-height: 32px; color: var(--red); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.dtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.dtile { display: grid; align-content: start; gap: 2px; min-height: 124px; padding: 16px; border-radius: var(--r); background: var(--soft); transition: background-color .15s, transform .15s; }
.dtile:hover { background: var(--hover); transform: translateY(-2px); }
.dtile .ico { width: 28px; height: 28px; margin-bottom: 12px; color: var(--red); }
.dtile b { font-size: 17px; }
.dtile span { font-size: 14px; color: var(--text-2); }
.dsec { margin-top: 32px; }
.dsec .sec-h h2 { font-size: 22px; }
.dsec .sec-h h2 i { margin-left: 8px; font-style: normal; font-weight: 400; color: var(--text-2); }
.dnote { margin: 24px 0 0; color: var(--text-2); }
.dnote a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ocancel legend i { color: var(--text-2); font-style: normal; font-weight: 400; text-decoration: none; }
.rcm .grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rcm .card { scroll-snap-align: start; }
.tabs a { flex: none; padding: 12px 16px; border-bottom: 3px solid transparent; font-size: 16px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); border-color: var(--text); }
.tabs a i { margin-left: 6px; font-style: normal; font-weight: 400; color: var(--text-2); }
.ocancel fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.ocancel legend { margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 500; }
@media (max-width: 1100px) { .rcm .grid { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 760px) { .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .dtile { min-height: 112px; padding: 14px; } .dtile:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; } .tabs a { padding: 12px 10px; font-size: 15px; } .rcm .grid { grid-auto-columns: 46%; } .dsec .sec-h h2 { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .dtile { transition: none; } .dtile:hover { transform: none; } }

/* ---------- сравнение (макет compare.html) ---------- */
.cmp-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; color: var(--text-2); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.cmp { border-collapse: collapse; width: max(100%, calc(180px + var(--n) * 230px)); table-layout: fixed; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.cmp tbody th { width: 180px; color: var(--text-2); font-weight: 500; position: sticky; left: 0; background: var(--bg); }
.cmp thead th:first-child { width: 180px; position: sticky; left: 0; background: var(--bg); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp .cc { position: relative; display: grid; gap: 8px; font-weight: 400; }
.cmp .cc .pic { aspect-ratio: 1; display: grid; place-items: center; background: var(--pic); border-radius: 8px; }
.cmp .cc .pic img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cmp .cc .name { font-size: 15px; line-height: 1.35; }
.cmp .cc .name:hover { color: var(--red); }
.cmp .cc .btn { width: 100%; height: 44px; }
.cmp .cc .del { position: absolute; top: 0; right: 0; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.12); color: var(--text-2); }
.cmp .cc .del:hover { color: var(--red); }
.cmp .none-row { color: var(--text-2); }
@media (max-width: 900px) { .acc { grid-template-columns: minmax(0, 1fr); gap: 16px; } .anav { position: static; grid-auto-flow: column; overflow-x: auto; } .anav a { white-space: nowrap; } .anav a.out { margin-top: 0; } .plist { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .abox { margin: 16px auto; padding: 24px 18px 20px; } .abox h1 { font-size: 24px; }
  .acc .fields, .stat { grid-template-columns: 1fr; }
  .order .oh .sum { margin-left: 0; width: 100%; }
  .cmp tbody th, .cmp thead th:first-child { width: 120px; }
  .cmp { width: max(100%, calc(120px + var(--n) * 170px)); }
}

/* ---------- бренды, акции, инфо (макеты brands / sales / info) ---------- */
.bhead, .shead { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 18px; }
.bhead h1, .shead h1, .page h1, .sub.onpage { font-size: 32px; }
.shead { display: block; }
.shead p, .page .lead, .lead { margin: 6px 0 18px; font-size: 17px; color: var(--text-2); max-width: 720px; }
.tools { position: sticky; top: 76px; z-index: 20; padding: 12px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.bsearch, .fq-search { width: min(420px, 100%); height: 48px; padding: 0 16px; border: 2px solid var(--line); border-radius: var(--r); font-size: 17px; background: var(--bg); }
.fq-search { width: 100%; height: 52px; margin-bottom: 16px; }
.bsearch:focus, .fq-search:focus { outline: 0; border-color: var(--text); }
.abc { display: flex; gap: 2px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.abc button { flex: none; min-width: 36px; height: 36px; padding: 0 6px; border: 0; border-radius: 8px; background: none; font-size: 15px; font-weight: 600; }
.abc button:hover:not(:disabled) { background: var(--soft); }
.abc button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.abc button:disabled { color: var(--line); }
.grp { padding-top: 24px; }
.grp h2, .page h2, .fq h2 { font-size: 22px; margin: 24px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bt { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; min-height: 128px; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: var(--r); text-align: center; }
.bt:hover { border-color: var(--text); }
.bt .lg { display: grid; place-items: center; width: 100%; height: 64px; }
.bt img { max-width: 88%; max-height: 56px; object-fit: contain; }
.bt span { font-size: 15px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
:root[data-theme="dark"] .bt .lg { background: #fff; border-radius: 8px; }
.brand { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 28px; }
.brand img { width: 160px; height: 80px; object-fit: contain; background: var(--pic); border-radius: 8px; }
.prose { font-size: 17px; line-height: 1.6; }
.prose p { margin: 0 0 12px; }
.promo { display: flex; align-items: center; gap: 16px; margin: 8px 0 24px; padding: 18px 20px; border-radius: var(--r); background: var(--soft); }
.promo .ico { width: 28px; height: 28px; color: var(--red); }
.promo div { flex: 1; }
.promo b { display: block; }
.promo span { color: var(--text-2); }
.sales { display: grid; gap: 12px; margin-bottom: 28px; }
.sales .sale { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.sales .sale img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.sales .sale b { display: block; font-size: 18px; }
.sales .sale i { display: block; font-style: normal; color: var(--text-2); }
.block-h { margin: 28px 0 14px; font-size: 24px; }
.inf { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 8px; }
.inav { position: sticky; top: 92px; display: grid; gap: 4px; }
.inav h3 { margin: 14px 0 4px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.inav h3:first-child { margin-top: 0; }
.inav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.inav a:hover { background: var(--soft); color: var(--text); }
.inav a[aria-current] { background: var(--soft); color: var(--text); font-weight: 600; }
.page { max-width: 780px; min-width: 0; overflow-wrap: anywhere; }
.page h1 { margin-bottom: 8px; }
.page p, .page li { font-size: 17px; line-height: 1.6; }
.page img, .page iframe { max-width: 100%; height: auto; }
.page table { display: block; max-width: 100%; overflow-x: auto; }
.page p { margin: 0 0 12px; }
.page a:not(.btn) { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.way { padding: 18px 20px; border-radius: var(--r); background: var(--soft); }
.way b { display: block; font-size: 18px; margin-bottom: 6px; }
.way p { margin: 0; font-size: 15px; color: var(--text-2); }
.fq details { border-bottom: 1px solid var(--line); }
.fq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font-size: 17px; font-weight: 600; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--text-2); }
.fq details[open] summary::after { content: "−"; }
.fq .a { padding: 0 0 16px; color: var(--text-2); }
.ask { margin-top: 28px; padding: 22px 24px; border-radius: var(--r); background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ask b { display: block; }
.ask span, .nores { color: var(--text-2); }
.ct { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct div { padding: 18px 20px; border-radius: var(--r); background: var(--soft); }
.ct small { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.ct b, .ct a { font-size: 19px; font-weight: 600; }
.ct b > br:last-child { display: none; }
.today { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--green); }
.today.closed { color: var(--red); }
.ct-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cmap { margin-top: 20px; border-radius: var(--r); overflow: hidden; }
.cmap .bx-yandex-view-layout, .cmap .bx-yandex-view-map { max-width: 100%; }
.empty-rv { padding: 32px 28px; border-radius: 16px; background: var(--soft); text-align: center; }
.empty-rv .stars { font-size: 28px; letter-spacing: 4px; color: var(--line); }
.empty-rv b { display: block; margin: 8px 0 6px; font-size: 22px; }
.empty-rv p { margin: 0 auto; max-width: 480px; color: var(--text-2); }
.req { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.req div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.req div:last-child { border-bottom: 0; }
.req small { color: var(--text-2); }
.req b { font-weight: 600; }
.sub.onpage { margin-top: 8px; }
.revs { display: grid; gap: 12px; }
.rev { padding: 16px 18px; border-radius: var(--r); background: var(--soft); }
.rev b { display: block; }
html[data-theme="dark"] .page [style*="color"] { color: inherit !important; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .inf { grid-template-columns: 1fr; gap: 16px; }
  .inav { position: static; display: flex; flex-wrap: wrap; gap: 6px; overflow: visible; }
  .inav h3 { display: none; }
  .inav a { flex: none; height: 40px; border: 1px solid var(--line); border-radius: 20px; }
  .inav a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .brand { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bhead h1, .shead h1, .page h1 { font-size: 26px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tools { top: 0; }
  .promo, .ask, .sales .sale { align-items: flex-start; flex-wrap: wrap; }
  .promo .btn, .ask .btn, .ct-acts .btn { width: 100%; }
  .ct, .req div { grid-template-columns: 1fr; }
  .sub.onpage .subrow { width: 100%; }
}

/* ---------- 404 ---------- */
.e404 { max-width: 560px; margin: 32px auto 8px; text-align: center; }
.e404 .code { margin: 0; font-size: 96px; font-weight: 700; line-height: 1; color: var(--line); }
.e404 h1 { margin: 8px 0 10px; font-size: 32px; }
.e404 > p { margin: 0 0 20px; font-size: 17px; color: var(--text-2); }
.e404 .search { margin-bottom: 16px; text-align: left; }
.e404 .go { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 760px) { .e404 { margin-top: 16px; } .e404 .code { font-size: 72px; } .e404 h1 { font-size: 26px; } .e404 .go .btn { flex: 1; } }

/* End */
/* /local/templates/bsn/css/fonts.css?17924377951121 */
/* /local/templates/bsn/css/chat.css?17924377936490 */
/* /local/templates/bsn/template_styles.css?179244029171947 */
