/* cue.ru/v2 — оформление «Cue.ru V2», макет 3a (Unbounded — заголовки, Onest — текст) */
:root {
  --ink: #202321;        /* основной текст, тёмные кнопки */
  --text2: #5f5c56;      /* текст в таблице */
  --gray: #6f6b64;       /* неактивные разделы, вкладки */
  --muted: #8b877f;      /* второстепенный текст */
  --faint: #b0aba2;      /* счётчики неактивных вкладок, старая цена */
  --ph: #bcb7ae;         /* подпись «ФОТО» */
  --soft: #f5f4f1;       /* поиск, кнопки-фильтры, подложки фото */
  --soft2: #ebe9e5;      /* наведение на кнопку-фильтр */
  --line: #ebe8e3;       /* линия под вкладками, шапка таблицы */
  --line2: #f0eeea;      /* разделители полос */
  --line3: #f3f1ee;      /* строки таблицы */
  --sep: #e6e2dc;        /* разделитель групп фильтров, рамка кнопок опций */
  --off: #e0dcd5;        /* выключенный переключатель */
  --acc: #cc5628;        /* акцент */
  --acc-h: #b4481e;
  --acc-l: #f08a5d;      /* акцент на тёмном */
  --acc-soft: #f3ede6;   /* выбранный фильтр */
  --brd: #e4e1da;        /* рамка кнопок-фильтров и счётчиков */
  --ok: #61765a;
  --wait: #8a681d;
  --bg: #ffffff;
  --wrap: 1280px;
  --pad: 40px;
  --head: 'Unbounded', 'Onest', system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.4 'Onest', system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.loading, .err { padding: 80px var(--pad); color: var(--muted); font-size: 15px; }
.lnk { color: var(--acc); background: none; border: 0; padding: 0 6px; }
.lnk:hover { color: var(--acc-h); }

/* ---------- шапка ---------- */
html { scrollbar-gutter: stable; }
.hdr { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.hmain { display: flex; align-items: center; gap: 28px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; flex-direction: column; gap: 2px; flex: none; }
.logo b { font: 700 26px/1 var(--head); letter-spacing: -.02em; }
.logo b span { color: var(--acc); }
.logo small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.search { flex: 1; position: relative; display: flex; align-items: center; height: 46px; border-radius: 12px; background: var(--soft); border: 1px solid transparent; transition: border-color .15s; }
.search:focus-within { border-color: var(--ink); background: #fff; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0 18px; font: inherit; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search .qx { display: none; width: 36px; height: 36px; margin-right: 5px; border: 0; border-radius: 50%; background: none; color: var(--muted); align-items: center; justify-content: center; }
.search.has .qx { display: flex; }
.search .qx:hover { color: var(--ink); background: var(--soft2); }
.me { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.mi { display: flex; align-items: center; gap: 10px; }
.mi-i { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.mi-i .i { width: 22px; height: 22px; }
.mi:hover .mi-i { background: var(--soft2); }
.mi:hover .mi-t > span, .mi:hover > .mi-t { color: var(--acc); }
.mi-i b { position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: #fff; border: 2px solid #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.mi-i b:empty { display: none; }
.mi-t { display: flex; flex-direction: column; line-height: 1.2; }
.mi-t small { min-width: 76px; font-size: 13px; font-weight: 600; color: var(--ink); }
.mi-t small.nil { font-weight: 400; color: var(--muted); }
#accText { min-width: 62px; }
.search { z-index: 2; }
.sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(32, 35, 33, .12); padding: 6px; z-index: 40; }
.sg { display: grid; grid-template-columns: minmax(0, 1fr) 84px 96px; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; }
.sg:hover { background: var(--soft); }
.sg-n { display: flex; flex-direction: column; min-width: 0; }
.sg-n b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-n small { font-size: 12px; color: var(--muted); }
.sg-s { font-size: 13px; text-align: right; }
.sg-p { font-weight: 600; text-align: right; white-space: nowrap; }
.sg-all { display: block; padding: 10px 12px 6px; color: var(--acc); font-weight: 600; font-size: 14px; border-top: 1px solid var(--line2); margin-top: 4px; }
.ok { color: var(--ok); }
.wait { color: var(--wait); }
.cbar { display: flex; align-items: center; gap: 34px; }
.allcat { display: flex; align-items: center; gap: 10px; flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.allcat:hover { background: #000; }
.burger { display: flex; flex-direction: column; gap: 3px; width: 14px; }
.burger i { height: 2px; border-radius: 2px; background: #fff; transition: transform .15s, opacity .15s; }
.allcat[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.allcat[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.allcat[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.cats { display: flex; gap: 34px; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.cats::-webkit-scrollbar { display: none; }
.cats a { padding: 19px 0 17px; border-bottom: 2px solid transparent; font-size: 16px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.cats a:hover { color: var(--ink); }
.cats a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--acc); }

/* ---------- мегаменю ---------- */
.veil { position: fixed; inset: 0; z-index: 20; background: rgba(32, 35, 33, .28); }
.mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 31; }
.mega-box { width: calc(100% - 48px); max-width: calc(var(--wrap) + 2 * var(--pad) - 48px); margin: 0 auto; background: #fff; border-radius: 0 0 24px 24px; display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 440px; max-height: calc(100vh - 160px); overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, .14); }
.m-side { background: var(--soft); padding: 16px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.m-sec { border: 0; border-radius: 12px; background: transparent; padding: 14px 16px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text2); font-size: 16px; font-weight: 500; }
.m-sec:hover { color: var(--ink); }
.m-sec .no { font-size: 12px; color: var(--faint); min-width: 16px; }
.m-sec .lb { flex: 1; }
.m-sec.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.m-sec.on .no, .m-sec .ar { color: var(--acc); font-weight: 500; }
.m-main { padding: 30px 40px 40px; display: flex; flex-direction: column; gap: 26px; overflow-y: auto; }
.m-head { display: flex; align-items: baseline; gap: 14px; }
.m-head h2 { font: 600 28px/1.1 var(--head); letter-spacing: -.02em; }
.m-head > span { font-size: 14px; color: var(--muted); }
.m-all { margin-left: auto; align-self: center; border-radius: 999px; background: var(--ink); color: #fff; padding: 10px 18px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.m-all:hover { background: #000; }
.m-x { align-self: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.m-x:hover { background: var(--soft2); }
.m-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.m-group { display: flex; flex-direction: column; gap: 2px; }
.m-group h3 { font-size: 13px; font-weight: 400; color: var(--muted); padding-bottom: 8px; }
.m-link { border-radius: 10px; padding: 9px 10px; margin: 0 -10px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.m-link:hover { background: var(--soft); }
.m-link i { font-style: normal; color: var(--acc); font-size: 13px; }
.m-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mp { display: flex; flex-direction: column; gap: 8px; }
.mp .ph { height: 140px; border-radius: 14px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ph); font-size: 11px; letter-spacing: .1em; }
.mp .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.mp .nm { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mp .pr { font-size: 16px; font-weight: 700; }
.mp:hover .nm { color: var(--acc); }

/* ---------- заголовок, вкладки ---------- */
.ttl { display: flex; align-items: baseline; gap: 16px; padding-top: 44px; }
.ttl h1 { font: 600 40px/1.05 var(--head); letter-spacing: -.03em; }
.ttl .cnt { font-size: 15px; color: var(--muted); white-space: nowrap; }
.tabs { margin-top: 28px; display: flex; gap: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 0 0 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 17px; font-weight: 500; color: var(--gray); display: flex; gap: 7px; white-space: nowrap; }
.tab i { font-style: normal; color: var(--faint); }
.tab:hover { color: var(--ink); }
.tab.on { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.tab.on i { color: var(--acc); font-weight: 500; }
.tab.dim { color: #c9c5bd; cursor: default; }
.tab.dim i { color: #d7d3cc; }

/* ---------- липкая полоса: фильтры, «В наличии», вид ---------- */
.tbar { position: sticky; top: var(--hdr-h, 0px); z-index: 10; background: #fff; border-bottom: 1px solid var(--line2); }
.tbar-in { display: flex; align-items: center; gap: 8px 20px; padding-top: 16px; padding-bottom: 16px; }
.tl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tr { margin-left: auto; display: flex; align-items: center; gap: 20px; flex: none; }
.fg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fsep { width: 1px; height: 20px; background: var(--sep); margin: 0 8px; flex: none; }
.chip { height: 34px; border: 1px solid var(--brd); border-radius: 999px; padding: 0 14px; background: #fff; color: var(--ink); font-size: 14px; white-space: nowrap; transition: border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--acc-soft); border-color: #e5c6b2; color: var(--acc); font-weight: 600; }
.chip:disabled { color: #c3bfb7; border-color: var(--line2); }
.flab { font-size: 13px; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.stock { border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.sw2 { width: 36px; height: 22px; border-radius: 999px; background: var(--off); display: flex; padding: 3px; transition: background .15s; }
.sw2 i { width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.stock[aria-checked="true"] .sw2 { background: var(--ink); }
.stock[aria-checked="true"] .sw2 i { transform: translateX(14px); }
.seg { display: flex; gap: 2px; background: var(--soft); border-radius: 999px; padding: 3px; flex: none; }
.seg button { border: 0; border-radius: 999px; padding: 6px 12px; background: transparent; color: var(--gray); font-size: 14px; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* аксессуары: переключатель групп и строка категорий — только когда плашки групп ушли под край */
.gsw { display: none; }
.gsw button { padding: 6px 14px; font-weight: 500; }
.gsw button.on { background: var(--ink); color: #fff; box-shadow: none; }
.tbar.compact .gsw { display: flex; }
.lchips { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line2); box-shadow: 0 8px 16px -12px rgba(0, 0, 0, .18); }
.lchips .wrap { display: flex; gap: 6px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.lchips .wrap::-webkit-scrollbar { display: none; }
.lchips .chip { flex: none; height: auto; padding: 7px 14px; border: 0; background: var(--soft); font-weight: 400; }
.lchips .chip:hover { background: var(--soft2); }
.lchips .chip.on { background: var(--ink); color: #fff; }
.tbar.compact .lchips { display: block; }

/* ---------- плашки групп аксессуаров ---------- */
.tiles { padding-top: 28px; padding-bottom: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { border-radius: 18px; background: var(--soft); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; transition: background .15s; outline-offset: 3px; }
.tile:hover { background: var(--soft2); }
.tile-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tile-t { font: 600 22px/1.15 var(--head); letter-spacing: -.02em; }
.tile-n { font-size: 14px; color: var(--muted); white-space: nowrap; }
.tile-l { display: flex; flex-wrap: wrap; column-gap: 6px; row-gap: 2px; font-size: 14px; line-height: 1.5; color: #7a766e; }
.tile-l a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.tile-l a:hover { color: var(--ink); text-decoration-color: currentColor; }
.tile.on { background: var(--ink); color: #fff; cursor: default; }
.tile.on .tile-n { color: var(--acc-l); }
.tile.on .tile-l { color: #b9b5ad; }
.tile.on .tile-l a:hover { color: #fff; }

/* ---------- выдача ---------- */
.res { padding-top: 20px; padding-bottom: 56px; }
.aks .res { padding-top: 8px; }
.lsec { padding-top: 32px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 90px; }
.lsec h2 { font-size: 22px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.lsec h2 span { font-size: 14px; font-weight: 400; color: #a19c93; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.aks .grid { gap: 28px 20px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .ph { position: relative; height: 240px; border-radius: 16px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sec-kii .card .ph { height: 260px; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; transition: transform .25s; }
.card:hover .ph img { transform: scale(1.03); }
.card .ph img.bgimg, .mp .ph img.bgimg { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.pp-main img.bgimg { position: relative; z-index: 1; object-fit: contain; padding: 0; mix-blend-mode: normal; }
.pp-main.bgfill::before { content: ''; position: absolute; inset: -40px; background: var(--bgsrc) center / cover; filter: blur(30px); }
.pp-main.bgext::before { inset: 0; background-size: 100% 100%; filter: none; }   /* продлённый фон — без размытия, точно по рамке */
.pp-main .gal-a { z-index: 2; }
.noimg { color: var(--ph); font-size: 12px; letter-spacing: .1em; }
.fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.fav .i { width: 16px; height: 16px; }
.fav:hover { color: var(--acc); }
.fav.on { color: var(--acc); }
.fav.on .i { fill: currentColor; }
.cbody { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.card .nm { font-size: 16px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.card .nm:hover { color: var(--acc); }
.card .ds { font-size: 13px; color: var(--muted); }
.opts { display: flex; flex-direction: column; gap: 8px; padding: 0 2px; }
.opt { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sz { min-width: 36px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--sep); background: #fff; font-size: 13px; font-weight: 500; }
.sz:hover { border-color: #a19c93; }
.sz.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.sz.miss { border-style: dashed; color: var(--ph); text-decoration: line-through; }
.sz.wait:not(.on) { color: var(--muted); }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: #fff; display: flex; }
.sw span { flex: 1; border-radius: 50%; }
.sw.on { border-color: var(--ink); }
.sw.miss { opacity: .35; }
.cfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; margin-top: auto; min-height: 27px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.price .pr { font-size: 19px; font-weight: 700; white-space: nowrap; }
.price .pr.req { font-size: 15px; font-weight: 600; color: var(--muted); }
.price s { font-size: 13px; color: var(--faint); white-space: nowrap; }
.price .rrc { font-size: 13px; color: var(--muted); white-space: nowrap; }
.buy { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--acc); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.buy .i { width: 20px; height: 20px; stroke-width: 2; }
.buy:hover { background: var(--acc-h); }
.buy.in { background: var(--ink); }
.ask { flex: none; font-size: 13px; font-weight: 600; color: var(--acc); white-space: nowrap; }
.ask:hover { color: var(--acc-h); }
.card.flash .ph { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 3px var(--acc); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* вид «Список» — таблица */
.dense { font-size: 14px; }
.dh, .dr { display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center; padding: 0 12px; }
.dh { height: 38px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.dr { min-height: 42px; border-bottom: 1px solid var(--line3); scroll-margin-top: 140px; }
.dr:hover { background: #faf9f7; }
.dense .r { text-align: right; }
.dense .c { text-align: center; }
.dense .b { font-weight: 600; white-space: nowrap; }
.dense .mut { color: var(--text2); }
.dense .var { color: var(--ink); }
.dense span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dn:hover { color: var(--acc); }
.dh span:first-child, .dr > span:first-child { color: var(--muted); }
/* количество + «Добавить»: тихая кнопка на сером, при наведении тёмная; ниже «В заказе N шт» (место занято всегда) */
.addq { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 4px 8px; padding: 0 2px; }
.addq .qty { width: 104px; height: 38px; }
.addq .qty button, .addq .qty input { height: 36px; }
.addb { height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.addb:hover { background: var(--ink); color: #fff; }
.inord { grid-column: 1 / -1; min-height: 18px; font-size: 13px; font-weight: 500; color: var(--acc); }
.inord:hover { color: var(--acc-h); }
.addq.row { grid-template-columns: 104px 96px minmax(0, 1fr); align-items: center; padding: 0; }
.addq.row .inord { grid-column: auto; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr .addq.row .qty, .dr .addb { height: 34px; }
.dr .addq.row .qty button, .dr .addq.row .qty input { height: 32px; }
.dr { padding-top: 4px; padding-bottom: 4px; }
.step { display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--soft); border-radius: 999px; padding: 2px; }
.step button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; font-size: 15px; line-height: 1; }
.step button:disabled { color: #c3bfb7; }
.step .inc { background: var(--ink); color: #fff; }
.step .inc:hover { background: #000; }
.step span { width: 30px; text-align: center; font-weight: 600; }
.dr .ask { text-align: center; }

.empty { padding: 72px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--muted); }
.empty b { font-size: 17px; font-weight: 600; color: var(--ink); }

/* ---------- страница товара ---------- */
.crumbs { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--acc); }
.crumbs .cur { color: var(--ink); }
/* макет «Карточка товара»: галерея 4:3 со стрелками, справа заголовок, ключевые признаки, варианты, блок покупки */
.pp { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 24px; align-items: flex-start; }
.pp-gal { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pp-main { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pp-main img { width: 100%; height: 100%; object-fit: contain; padding: 28px; mix-blend-mode: multiply; }
.gal-a { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 18px; }
.gal-a:hover { color: var(--acc); }
.gal-a.l { left: 16px; }
.gal-a.r { right: 16px; }
/* 09.11 (владелец: стрелки закрывают товар): видны только при наведении на фото, мельче, полупрозрачные, у самого края;
   на телефоне (нет наведения) стрелок нет — свайп и миниатюры. Листают и клавиши ← → */
@media (hover: hover) {
  .pp-main .gal-a { width: 36px; height: 36px; font-size: 15px; background: rgba(255,255,255,.75); opacity: 0; transition: opacity .15s, background .15s; }
  .pp-main:hover .gal-a, .pp-main .gal-a:focus-visible { opacity: 1; }
  .pp-main .gal-a:hover { background: #fff; }
  .pp-main .gal-a.l { left: 8px; }
  .pp-main .gal-a.r { right: 8px; }
}
@media (hover: none) { .pp-main .gal-a { display: none; } }
.pp-th { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-th button { width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--soft); overflow: hidden; }
.pp-th button:hover { border-color: #d3cfc7; }
.pp-th button.on { border-color: var(--ink); }
.pp-th img { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.pp-th img.bgimg { object-fit: cover; padding: 0; mix-blend-mode: normal; }   /* фото не на белом — во всю миниатюру, фон продлён */
.pp-i { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pp-head { display: flex; flex-direction: column; gap: 12px; }
.pp-sku { font-size: 13px; color: var(--muted); }
.pp-i h1 { font: 600 34px/1.15 var(--head); letter-spacing: -.02em; text-wrap: pretty; }
.pp-st { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ok); }
.pp-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pp-st.wait { color: var(--wait); }
.pp-ks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding: 20px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.pp-ks div { display: flex; flex-direction: column; gap: 4px; }
.pp-ks span { font-size: 12px; color: var(--muted); }
.pp-ks b { font-size: 15px; font-weight: 500; }
.pv { display: flex; flex-direction: column; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.pv-g { display: flex; flex-direction: column; gap: 10px; }
.pv-t { font-size: 13px; color: var(--muted); }
.pv-t b { color: var(--ink); font-weight: 500; }
.pv .opt { gap: 8px 10px; }
.pv .sz { height: 40px; min-width: 52px; padding: 0 14px; border-radius: 10px; border-width: 1px; font-size: 14px; }
.pv .sw { width: 40px; height: 40px; }
.pp-buy { display: flex; flex-direction: column; gap: 14px; }
.pp-price { display: flex; align-items: baseline; gap: 14px; }
.pp-price .pr { font: 700 36px/1.1 var(--head); letter-spacing: -.02em; }
.pp-price s { font-size: 16px; color: var(--muted); }
.pp-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.pp-dl div { display: flex; flex-direction: column; gap: 2px; }
.pp-dl span { font-size: 12px; color: var(--muted); }
.pp-dl b { font-size: 16px; font-weight: 600; }
.pp-row { display: flex; gap: 10px; }
.pp-row .btn { flex: 1; min-width: 0; border-radius: 12px; }
.pp-q { height: 52px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; flex: none; }
.pp-q button { width: 44px; height: 52px; border: 0; background: none; font-size: 20px; }
.pp-q button:hover { color: var(--acc); }
.pp-q input { width: 44px; border: 0; background: none; text-align: center; font: 600 16px 'Onest', sans-serif; outline: none; }
.pp-fav { width: 52px; height: 52px; flex: none; border-radius: 12px; border: 1px solid #e4e1da; background: #fff; display: flex; align-items: center; justify-content: center; }
.pp-fav:hover { border-color: var(--ink); }
.pp-fav.on { border-color: var(--acc); color: var(--acc); }
.pp-fav.on .i { fill: currentColor; }
.pp-in { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 18px; border-radius: 12px; background: #f3ede6; color: var(--acc); font-size: 14px; font-weight: 600; }
.pp-in.off { visibility: hidden; }   /* место занято всегда — блок покупки не прыгает */
.pp-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 56px; margin-top: 80px; }
.pp-2 h2, .pp-rel h2 { font: 600 22px/1.2 var(--head); letter-spacing: -.01em; margin-bottom: 16px; }
.pp-kv { width: 100%; }
.pp-kv div { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line2); font-size: 15px; }
.pp-kv span { color: var(--muted); }
.pp-kv b { font-weight: 500; text-align: right; }
.pp-kv.narrow { max-width: 640px; margin-bottom: 20px; }
.pp-desc > div { font-size: 15px; line-height: 1.6; color: #3a3d3a; }
.pp-rel { margin-top: 80px; padding-bottom: 56px; }
.pbar { position: fixed; left: 0; right: 0; top: var(--hdr-h, 0px); z-index: 25; background: #fff; border-bottom: 1px solid var(--line2); box-shadow: 0 10px 24px rgba(32, 35, 33, .06); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.pbar.on { transform: none; opacity: 1; pointer-events: auto; }
.pbar-in { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.pbar-in img, .pbar-in .ph0 { width: 48px; height: 48px; border-radius: 10px; background: var(--soft); object-fit: contain; flex: none; }
.pbar-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pbar-n b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-n small { font-size: 13px; color: var(--muted); }
.pbar-p { font: 700 20px var(--head); white-space: nowrap; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--acc); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--acc-h); color: #fff; }
.btn:disabled { opacity: .6; }
.btn.sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.big { width: 100%; }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--sep); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.ghost-d { background: transparent; color: #fff; border: 1px solid #4a4d4a; }
.btn.ghost-d:hover { border-color: #fff; }
.ebtn { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.ebtn.left { justify-content: flex-start; margin-top: 24px; }
.mut { color: var(--muted); }
.small { font-size: 13px; }

/* таблица товаров дилера (поиск, ранее заказанные, избранное) и таблица заказа */
.tblw { overflow-x: auto; }
.tbl { min-width: 900px; }
.ctbl { min-width: 780px; }
.thead, .trow { display: grid; grid-template-columns: var(--tc); gap: 16px; align-items: center; padding: 12px 10px; }
.ctbl .thead, .crow { display: grid; grid-template-columns: minmax(0, 1fr) 104px 120px 124px 120px 32px; gap: 16px; align-items: center; padding: 12px 10px; }
.thead { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); padding-top: 8px; padding-bottom: 10px; }
.thead .r, .tr-r { text-align: right; }
.trow, .crow { border-bottom: 1px solid var(--line2); }
.trow.in { background: #fbf8f4; }
.trow[hidden] { display: none; }
.tp { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp a, .tp b { font-size: 15px; font-weight: 600; }
.tp a:hover { color: var(--acc); }
.tp small { font-size: 13px; color: var(--muted); }
.tp .note { min-height: 17px; color: var(--wait); }
.ts { display: flex; flex-direction: column; font-size: 14px; }
.ts b { font-weight: 600; }
.ts small { font-size: 12px; color: var(--muted); }
.tr-r { font-size: 14px; display: flex; flex-direction: column; align-items: flex-end; }
.tr-r.b, .tr-r b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.tr-r small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tr-r.mut { color: var(--muted); }
.qty { width: 124px; height: 40px; display: flex; align-items: center; border: 1px solid var(--brd); border-radius: 10px; background: #fff; }
.qty.has { border-color: var(--ink); }
.qty button { width: 34px; height: 38px; border: 0; background: none; color: var(--gray); font-size: 17px; flex: none; }
.qty button:hover { color: var(--acc); }
.qty input { width: 0; flex: 1; min-width: 0; height: 38px; border: 0; background: none; text-align: center; font: 600 15px 'Onest', sans-serif; outline: none; }
.tfav, .cx { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.tfav.on { color: var(--acc); }
.tfav.on .i { fill: currentColor; }
.cx:hover { color: var(--ink); background: var(--soft); }

/* «Заказ» */
.addart { margin: 28px 0 8px; padding: 20px 20px 10px; border-radius: 16px; background: var(--soft); display: grid; grid-template-columns: auto minmax(0, 1fr) 72px auto; gap: 10px 12px; align-items: center; }
.addart b { font-weight: 600; padding-right: 4px; }
.addart input { height: 44px; border: 1px solid var(--sep); border-radius: 10px; background: #fff; padding: 0 14px; font: inherit; font-size: 15px; outline: none; min-width: 0; }
.addart input:focus { border-color: var(--ink); }
.addart #artQty { text-align: center; }
.addmsg { grid-column: 2 / -1; min-height: 18px; font-size: 13px; }
.addmsg.ok { color: var(--ok); }
.addmsg.bad { color: var(--acc); }
.cbot { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin: 32px 0 64px; align-items: start; }
.cleft { display: flex; flex-direction: column; gap: 18px; }
.who { display: flex; flex-direction: column; gap: 4px; }
.who h3, .h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.who span { color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.fld.wide { grid-column: 1 / -1; }
.fld input, .fld textarea { height: 46px; border: 1px solid var(--sep); border-radius: 10px; background: #fff; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.fld textarea { height: auto; padding: 12px 14px; resize: vertical; }
.fld input:focus, .fld textarea:focus { border-color: var(--ink); }
.csum { position: sticky; top: calc(var(--hdr-h, 0px) + 16px); display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); }
.csum > div { display: flex; justify-content: space-between; gap: 12px; }
.csum > div span { color: var(--muted); }
.csum .ctot { padding-top: 12px; border-top: 1px solid var(--line2); align-items: baseline; }
.csum .ctot span { color: var(--ink); font-weight: 600; }
.csum .ctot b { font-size: 26px; font-weight: 700; }
.csum p { margin: 0; font-size: 13px; color: var(--muted); }
.sendmsg { min-height: 18px; font-size: 13px; color: var(--muted); }
.sendmsg.bad { color: var(--acc); }
.done, .nf { padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 760px; }
.done-i { width: 64px; height: 64px; border-radius: 50%; background: #e8efe5; color: var(--ok); display: flex; align-items: center; justify-content: center; }
.done-i .i { width: 30px; height: 30px; stroke-width: 2; }
.done h1, .nf h1 { font: 600 36px/1.15 var(--head); letter-spacing: -.02em; }
.done p, .nf p { margin: 0; font-size: 16px; line-height: 1.55; color: #3a3d3a; }
.done .ebtn { justify-content: flex-start; }
.nf { padding-left: 96px; }
.nf-n { font: 700 120px/1 var(--head); color: var(--acc); letter-spacing: -.04em; }
.empty .ebtn { margin-top: 12px; }

/* вход, заявка */
.auth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 60px; padding-bottom: 80px; align-items: start; }
.auth.one { grid-template-columns: minmax(0, 720px); }
.acard { border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.acard.soft { background: var(--soft); border-color: var(--soft); }
.acard.soft .btn { align-self: flex-start; }
.acard h1 { font: 600 30px/1.15 var(--head); letter-spacing: -.02em; margin-bottom: 8px; }
.acard h2 { font: 600 22px/1.2 var(--head); letter-spacing: -.01em; }
.acard p { margin: 0; font-size: 15px; line-height: 1.55; }
.acard p.mut { font-size: 14px; }

/* кабинет */
.acc { padding-bottom: 64px; }
.acc-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-top: 32px; font-size: 14px; }
.acc-h b { font-size: 17px; font-weight: 600; }
.acc-h .mut { margin-left: auto; }
.acc-h .mut a:hover { color: var(--acc); }
.acc-h .lnk { color: var(--muted); padding: 0; }
.acc-h .lnk:hover { color: var(--ink); }
.acc-t { margin-top: 16px; display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--soft); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.acc-t a { padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; display: flex; gap: 8px; }
.acc-t a i { font-style: normal; color: var(--muted); font-size: 13px; align-self: center; }
.acc-t a:hover { background: #fff; }
.acc-t a.on { background: var(--ink); color: #fff; font-weight: 600; }
.acc-t a.on i { color: #b9b5ad; }
.ttl.sm { padding-top: 32px; padding-bottom: 20px; flex-wrap: wrap; }
.back { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--acc); }
.back + .ttl.sm { padding-top: 14px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; background: #f3ede6; color: var(--acc); font-size: 13px; font-weight: 600; align-self: center; white-space: nowrap; }
.plist { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 24px; border-radius: 16px; background: var(--ink); color: #fff; }
.plist > div:first-child { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 4px; }
.plist b { font-size: 18px; font-weight: 600; }
.plist span { color: #b9b5ad; font-size: 14px; }
.plist .ebtn { margin: 0; }
.blk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 12px; }
.blk-h h2 { font-size: 20px; font-weight: 600; }
.blk-h .lnk { font-weight: 600; padding: 0; }
.olist { border-top: 1px solid var(--line); }
.orow { display: grid; grid-template-columns: 170px 100px minmax(0, 1fr) 120px 110px; gap: 16px; align-items: center; padding: 14px 10px; border-bottom: 1px solid var(--line2); font-size: 14px; }
.orow:hover { background: #faf9f7; }
.orow .mut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.orow .r { text-align: right; }
.orow .pill { justify-self: end; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.stages div { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.stages i { height: 4px; border-radius: 2px; background: var(--line); }
.stages .on { color: var(--ink); font-weight: 600; }
.stages .on i { background: var(--acc); }
.otbl { margin-top: 20px; border-top: 1px solid var(--line); }
.oit { display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px 120px; gap: 16px; align-items: center; padding: 12px 10px; border-bottom: 1px solid var(--line2); font-size: 14px; }
.oit .r { text-align: right; }
.oit.tot { font-size: 16px; font-weight: 600; border-bottom: 0; }
.oit.tot b { font-size: 20px; }
.prevbar { display: flex; gap: 12px; margin-bottom: 16px; }
.prevbar input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--sep); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 15px; outline: none; }
.prevbar input:focus { border-color: var(--ink); }
.flashmsg { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; transition: opacity .2s, transform .2s; z-index: 60; }
.flashmsg.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- подвал ---------- */
.foot { margin-top: 24px; background: var(--soft); padding: 48px 0 28px; font-size: 14px; }
.fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.fbrand p { color: var(--muted); max-width: 280px; margin: 14px 0 0; }
.foot h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.foot .fcols > div > a:not(.logo), .foot #footCats a { display: block; padding: 4px 0; }
.foot a:hover { color: var(--acc); }
.fbot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--sep); color: var(--muted); font-size: 13px; }
.fmid { display: flex; gap: 24px; }

/* ---------- адаптив ---------- */
@media (min-width: 1600px) {
  :root { --wrap: 1480px; }
}
@media (max-width: 1240px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  :root { --pad: 28px; }
  .m-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .mega-box { grid-template-columns: 230px minmax(0, 1fr); }
  .tbar-in { flex-wrap: wrap; }
  .pp { gap: 36px; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .card .ph, .sec-kii .card .ph { height: auto; aspect-ratio: 1 / 1; }
  .tiles { grid-template-columns: 1fr; }
  .pp { grid-template-columns: 1fr; }
  .fcols { grid-template-columns: 1fr 1fr; }
  /* таблица на узком экране: прокрутка вбок, ширина — по столбцам */
  .dense { overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .dh, .dr { min-width: 860px; }
}
@media (max-width: 760px) {
  .hmain { flex-wrap: wrap; gap: 12px 18px; padding-top: 14px; padding-bottom: 12px; }
  .search { order: 3; flex-basis: 100%; height: 44px; }
  .me { margin-left: auto; gap: 16px; }
  .hide-m { display: none; }
  .cbar { gap: 18px; padding-bottom: 12px; }
  .mega { position: fixed; inset: 0; top: auto; z-index: 40; }
  .mega-box { width: 100%; border-radius: 20px 20px 0 0; grid-template-columns: 1fr; max-height: 86vh; min-height: 0; }
  .m-side { flex-direction: row; overflow-x: auto; padding: 10px; }
  .m-sec { flex: none; padding: 10px 14px; font-size: 15px; }
  .m-sec .ar { display: none; }
  .m-main { padding: 20px; gap: 20px; }
  .m-head { flex-wrap: wrap; }
  .m-head h2 { font-size: 22px; }
  .m-all { margin-left: 0; order: 3; }
  .m-x { margin-left: auto; }
  .m-groups { grid-template-columns: 1fr; gap: 20px; }
  .m-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ttl { padding-top: 26px; flex-wrap: wrap; gap: 4px 12px; }
  .ttl h1 { font-size: 28px; }
  .tabs { margin-top: 18px; gap: 22px; }
  .tab { font-size: 15px; }
  /* фильтры на телефоне — одной строкой с прокруткой вбок, переключатели — строкой ниже */
  .tbar-in { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .tl { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .tl::-webkit-scrollbar { display: none; }
  .tl:empty { display: none; }
  .fg { flex-wrap: nowrap; }
  .tr { margin-left: 0; justify-content: space-between; }
  .tbar.compact .gsw { display: flex; }
  .tile { padding: 18px 20px; }
  .tile-t { font-size: 19px; }
  .lsec h2 { font-size: 19px; }
  .card .nm { font-size: 15px; }
  .price .pr { font-size: 17px; }
  .buy { width: 40px; height: 40px; }
  .pp-i h1 { font-size: 24px; }
  .pp-price .pr { font-size: 26px; }
}
@media (max-width: 1080px) {
  .cbot { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
}
@media (max-width: 860px) {
  .cbot, .auth { grid-template-columns: 1fr; }
  .csum { position: static; }
  .pp-2 { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
}
@media (max-width: 760px) {
  .hdr { position: relative; }   /* на телефоне шапка высокая — не липнет, липнет только полоса фильтров */
  .sugg { left: -4px; right: -4px; }
  .sg { grid-template-columns: minmax(0, 1fr) 76px; }
  .sg-s { display: none; }
  .pp { gap: 28px; }
  .pp-i h1 { font-size: 26px; }
  .pp-price .pr { font-size: 30px; }
  .pp-dl { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; }
  .pbar-p { font-size: 17px; }
  .pbar-in img, .pbar-in .ph0 { display: none; }
  .addart { grid-template-columns: minmax(0, 1fr) 64px; padding: 16px 16px 8px; }
  .addart b { grid-column: 1 / -1; }
  .addart .btn { grid-column: 1 / -1; }
  .addmsg { grid-column: 1 / -1; }
  .fgrid { grid-template-columns: 1fr; }
  .acard { padding: 24px; }
  .auth { padding-top: 32px; }
  .nf { padding-left: 0; padding-top: 48px; }
  .nf-n { font-size: 88px; }
  .done h1, .nf h1 { font-size: 26px; }
  .acc-h .mut { margin-left: 0; width: 100%; order: 3; }
  .orow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .orow > span:nth-child(2) { grid-column: 1; color: var(--muted); }
  .orow .mut { grid-column: 1; }
  .orow .r { grid-column: 2; grid-row: 1; }
  .orow .pill { grid-column: 2; grid-row: 2; }
  .stages { gap: 4px; }
  .stages div { font-size: 11px; }
  .oit { grid-template-columns: minmax(0, 1fr) 56px 88px; }
  .oit > span:nth-child(3) { display: none; }
  .prevbar { flex-direction: column; }
  .plist .ebtn { width: 100%; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .logo b { font-size: 22px; }
  .logo small { font-size: 11px; }
  .me { font-size: 13px; gap: 14px; }
  .mi-t { display: none; }
  .allcat { height: 38px; padding: 0 14px; }
  .grid { gap: 22px 12px; }
  .card { gap: 10px; }
  .card .ds { font-size: 13px; }
  .sz { min-width: 32px; padding: 0 8px; }
  .fcols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- кии со своими фото (канон 04–05.11.2026, песочница «Песочница фото Maple Crown») ---------- */
/* плитка — низ турника «в воздухе», кадр заполняет окно (браузер не ужимает 520 → 230: файлы 240/480) */
.card .ph img.own { padding: 6px; }
/* галерея: квадратные кадры на одной диагонали — кий не прыгает при листании; клик — поп-ап 1:1 */
.pp-main.own { aspect-ratio: 1 / 1; max-width: 560px; cursor: zoom-in; }
.pp-main.own img { padding: 0; }
.pp-cnt { position: absolute; right: 16px; bottom: 14px; z-index: 2; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 3px 10px; border-radius: 20px; }
.pp-th.own img { padding: 2px; }
/* лента «кий целиком» под рядом картинок, во всю ширину сетки */
.grid { position: relative; }
.band { position: absolute; left: -12px; right: -12px; z-index: 5; transform-origin: var(--ox, 50%) 0; border-radius: 18px; background: var(--soft);
  box-shadow: 0 18px 50px rgba(32, 35, 33, .18), 0 2px 8px rgba(32, 35, 33, .08);
  display: flex; flex-direction: column; gap: 12px; padding: 18px 32px 22px; cursor: pointer;
  opacity: 0; transform: translateY(-8px) scaleX(.92); pointer-events: none;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1); }
.band.on { opacity: 1; transform: none; pointer-events: auto; }
.band img { width: 100%; height: auto; mix-blend-mode: multiply; transition: opacity .15s; }
.band img.swap, .band .bi.swap { opacity: 0; }
.band .bi { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; transition: opacity .15s; }
.band .b-nm { font: 600 20px/1.25 var(--head, 'Unbounded', sans-serif); }
.band .b-ds { font-size: 14px; color: var(--muted); margin-top: 4px; }
.band .b-rt { display: flex; align-items: baseline; gap: 18px; white-space: nowrap; }
.band .b-rt .price { display: flex; align-items: baseline; gap: 10px; }
.band .b-rt .pr { font-size: 22px; font-weight: 700; }
.band .b-rt s { color: var(--faint); }
.band .b-go { font-size: 14px; font-weight: 600; color: var(--acc); }
.band::before { content: ''; position: absolute; top: -9px; left: calc(var(--ax, 50%) - 9px); width: 18px; height: 18px;
  background: var(--soft); transform: rotate(45deg); border-radius: 3px; transition: left .2s ease; }
.band.up { transform-origin: var(--ox, 50%) 100%; }
.band.up:not(.on) { transform: translateY(8px) scaleX(.92); }
.band.up::before { top: auto; bottom: -9px; }
.grid.banded .card .ph { transition: box-shadow .15s; }
.grid.banded .card.act .ph { box-shadow: inset 0 0 0 2px var(--ink); }
/* поп-ап: окно по размеру фото поверх затемнения, фото 1:1; max-* — только чтобы влезло на телефоне */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(20, 20, 20, .55); display: none; align-items: center; justify-content: center; padding: 16px; }
.lb.on { display: flex; }
.lbw { position: relative; background: #fff; border-radius: 16px; padding: 16px 16px 44px; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); max-width: 100%; max-height: 100%; }
.lbw img { display: block; max-width: calc(100vw - 64px); max-height: calc(100vh - 92px); width: auto; height: auto; }
.lbb, .lbx { position: absolute; border: 0; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); cursor: pointer; color: var(--ink); font-size: 22px; font-weight: 600;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.lbb { top: 50%; transform: translateY(-50%); }
.lbb.l { left: -22px; }
.lbb.r { right: -22px; }
.lbx { top: -18px; right: -18px; width: 40px; height: 40px; font-size: 24px; }
.lbb:hover, .lbx:hover { color: var(--acc); }
.lbc { position: absolute; left: 0; right: 0; bottom: 13px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .lbb.l { left: 4px; } .lbb.r { right: 4px; } .lbx { right: 4px; top: 4px; } }

/* ---------- дерево каталога (#/tree) ---------- */
.m-tree { margin-top: auto; padding: 14px 16px 6px; font-size: 14px; font-weight: 500; color: var(--acc); }
.m-tree:hover { color: var(--acc-h); }
.t-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 20px; }
.t-q { flex: 1 1 320px; max-width: 520px; height: 42px; border-radius: 12px; background: var(--soft); border: 1px solid transparent; display: flex; }
.t-q:focus-within { border-color: var(--ink); background: #fff; }
.t-q input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); }
.t-q input::placeholder { color: var(--muted); }
.tree { padding-bottom: 72px; }
.t-head, .t-row { display: grid; align-items: center; gap: 12px; }
.t-head { grid-template-columns: minmax(0, 1fr) 150px 100px 110px; padding: 0 12px 10px 48px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.t-head span:nth-child(n+2), .t-sku, .t-st, .t-pr { text-align: right; }
.t-root, .t-root ul { list-style: none; margin: 0; padding: 0; }
.t-root ul { display: none; padding-left: 26px; }
.t-root li.open > ul, .t-root.q li > ul { display: block; }
.t-row { min-height: 42px; padding: 6px 12px; border-bottom: 1px solid var(--line3); }
.t-row { grid-template-columns: 24px minmax(0, 1fr) 150px 100px 110px; }
.tw { display: flex; }
.t-b > .t-row { cursor: pointer; user-select: none; }
.t-b > .t-row:hover { background: var(--soft); }
.tw { width: 24px; height: 24px; align-items: center; justify-content: center; color: var(--muted); }
.tw .i { width: 14px; height: 14px; transition: transform .15s; }
.t-b.open > .t-row .tw .i, .t-root.q .t-b > .t-row .tw .i { transform: rotate(90deg); }
.t-lb { font-weight: 600; font-size: 15px; grid-column: 2 / 3; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.t-b:not(.t-p) > .t-row { grid-template-columns: 24px minmax(0, 1fr) 60px 110px; }
.t-n { font-size: 13px; color: var(--muted); text-align: right; }
.t-go { font-size: 13px; color: var(--acc); padding-left: 14px; white-space: nowrap; }
.t-go:hover { color: var(--acc-h); }
.t-sec > .t-row { min-height: 56px; border-bottom-color: var(--line); }
.t-sec > .t-row .t-lb { font: 600 18px/1.2 var(--head); letter-spacing: -.02em; }
.t-nm { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.t-nm a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-nm a:hover { color: var(--acc); }
.t-nm i { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.t-sku { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-st { font-size: 13px; color: var(--ok); white-space: nowrap; }
.t-st.no { color: var(--wait); }
.t-pr { font-weight: 600; white-space: nowrap; }
.t-v .t-nm a { color: var(--text2); }
.t-v .t-pr { font-weight: 500; }
li.out > .t-row .t-nm a { color: var(--muted); }
@media (max-width: 760px) {
  .t-head { display: none; }
  .t-row, .t-b.t-p > .t-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .t-b:not(.t-p) > .t-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .t-sku, .t-st { display: none; }
  .t-root ul { padding-left: 14px; }
  .t-go { display: none; }
}

/* кнопка «Дерево каталога» в полосе разделов */
.treebtn { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--soft); font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; transition: background .15s, color .15s; }
.treebtn:hover { background: var(--soft2); color: var(--ink); }
.treebtn.on { background: var(--acc-soft); color: var(--acc); }
@media (max-width: 760px) { .treebtn span { display: none; } .treebtn { padding: 0 10px; } }

/* дерево: переключатель вида и карта категорий на одном листе */
.t-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); margin-right: 8px; }
.t-mode a { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.t-mode a:hover { color: var(--ink); }
.t-mode a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 48px; row-gap: 12px; padding-top: 8px; padding-bottom: 40px; }
.cm-sec { padding: 0 0 24px; min-width: 0; }
.cm-sec.wide { grid-column: span 2; }
.cm-sec.wide > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
@media (max-width: 1100px) { .cmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cmap { grid-template-columns: 1fr; } .cm-sec.wide { grid-column: auto; } .cm-sec.wide > ul { grid-template-columns: 1fr; } }
.cm-sec h2 { display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 2px solid var(--acc); font: 600 19px/1.2 var(--head); letter-spacing: -.02em; }
.cm-sec h2 a:hover { color: var(--acc); }
.cm-sec i { font-style: normal; font-size: 13px; font-weight: 400; font-family: 'Onest', system-ui, sans-serif; color: var(--faint); letter-spacing: 0; }
.cm-sec ul { list-style: none; margin: 0; padding: 0; }
.cm-sec li { padding: 5px 0; }
.cm-sec li > a, .cm-sec li > span { margin-right: 8px; }
.cm-sec li > a:hover { color: var(--acc); }
.cm-l1 > a, .cm-l1 > span { font-size: 16px; font-weight: 600; }
.cm-l1 > ul { padding: 4px 0 6px 14px; border-left: 1px solid var(--line); margin-left: 2px; }
.cm-l2 > a, .cm-l2 > span { font-size: 15px; color: var(--text2); }
.cm-l1:has(> ul) { padding-bottom: 8px; }
.cm-flat { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .t-mode { width: 100%; } .t-mode a { flex: 1; justify-content: center; } }

/* дерево из файла .trln: загрузка, слежение, глубокие уровни, подсветка при перетаскивании */
.t-up { display: inline-flex; align-items: center; gap: 6px; }
.t-up .i { width: 14px; height: 14px; }
.t-watch { font-size: 13px; color: var(--muted); }
.cm-l2 > ul { padding: 2px 0 4px 14px; border-left: 1px solid var(--line); margin-left: 2px; }
.cm-l3 > span { font-size: 14px; color: var(--muted); }
body.t-drop .page.tree { outline: 2px dashed var(--acc); outline-offset: -8px; border-radius: 16px; }

/* дерево из файла: фильтры справа в карточке раздела, раздел с группами — отдельной строкой */
.cmap.fm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cmap.fm .cm-sec.fm-wf { grid-column: span 1; }
.cmap.fm .cm-sec.fm-row { grid-column: 1 / -1; }
.fm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }
.fm-flt { display: flex; flex-direction: column; gap: 14px; padding-left: 18px; border-left: 1px dashed var(--line); }
.fm-fg h4 { margin: 4px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fm-vals { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-v { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--text2); }
.fm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 48px; row-gap: 16px; }
.fm-g h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 600; }
.fm-g ul { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 2px; }
.fm-g li > span { font-size: 15px; color: var(--text2); }
.fm-row .fm-flt { margin-top: 16px; padding: 14px 0 0; border-left: 0; border-top: 1px dashed var(--line); flex-direction: row; flex-wrap: wrap; gap: 24px; }
.fm-prods li { padding: 4px 0; font-size: 15px; }
.fm-prods li.out a { color: var(--muted); }
.fm-more { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--acc); }
@media (max-width: 1100px) { .cmap.fm { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cmap.fm { grid-template-columns: 1fr; } .cmap.fm .cm-sec.fm-wf { grid-column: auto; }
  .fm-split { grid-template-columns: 1fr; } .fm-split .fm-flt { margin-top: 14px; padding: 14px 0 0; border-left: 0; border-top: 1px dashed var(--line); }
}

/* вид TRLN: слева дерево, справа сверху подкатегории и фильтры, справа внизу товары */
.trl { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; padding-bottom: 60px; align-items: start; }
.tl-tree { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; background: #fff; }
.tl-tree ul { list-style: none; margin: 0; padding: 0; }
.tl-tree ul ul { padding-left: 18px; }
.tl-n { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 5px 8px; border-radius: 7px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.tl-n:hover { background: var(--soft); }
.tl-n.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex: none; opacity: .7; }
.tl-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tl-top { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.tl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 16px; font-weight: 600; }
.tl-cr { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.tl-cr:hover { color: var(--acc); }
.tl-sep { color: var(--muted); margin: 0 4px; }
.tl-blk h4 { margin: 0 0 7px; font-size: 13px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
button.fm-v { cursor: pointer; font: inherit; font-size: 13px; gap: 6px; }
button.fm-v:hover { border-color: var(--ink); color: var(--ink); }
button.fm-v.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); font-weight: 600; }
button.fm-v:disabled { opacity: .45; cursor: default; }
button.fm-v i { font-style: normal; color: var(--muted); font-size: 12px; }
.tl-reset { align-self: flex-start; }
.tl-list { border: 1px solid var(--line); border-radius: 12px; padding: 6px 18px 14px; background: #fff; min-height: 300px; }
.tl-head, .tl-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 100px 110px; gap: 12px; align-items: center; }
.tl-head { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tl-head span:nth-child(n+2) { text-align: right; }
.tl-row { min-height: 40px; border-bottom: 1px solid var(--line3); font-size: 15px; }
.tl-row a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row a:hover { color: var(--acc); }
.tl-row.out a { color: var(--muted); }
.tl-miss { margin: 8px 0 0; font-size: 13px; color: var(--wait); }
@media (max-width: 900px) {
  .trl { grid-template-columns: 1fr; } .tl-tree { position: static; max-height: 320px; }
  .tl-head, .tl-row { grid-template-columns: minmax(0, 1fr) auto; } .tl-head span:nth-child(2), .tl-head span:nth-child(3), .tl-row .t-sku, .tl-row .t-st { display: none; }
}

/* значения фильтра в карте — столбиком, с пустым квадратиком (видно, что это фильтр, а не подкатегория) */
.fm-col { list-style: none; margin: 0; padding: 0; }
.fm-col li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 14px; color: var(--text2); }
.fm-box { width: 13px; height: 13px; border: 1.5px solid var(--faint); border-radius: 3px; flex: none; }
.fm-row .fm-flt .fm-col { display: flex; flex-wrap: wrap; column-gap: 18px; }

/* аксессуары: группа одной сплошной плиткой, категории подряд */
.aks-flow { padding-top: 24px; }
.aks-flow .card.lfirst { scroll-margin-top: 150px; }

/* карта из файла: каждый набор фильтров — свой столбик, без заголовков; значение = ссылка на раздел с фильтром */
.fm-split { grid-template-columns: minmax(0, 1.2fr) repeat(var(--nf, 1), minmax(0, 1fr)); column-gap: 0; }
.fm-split > div:first-child { padding-right: 14px; }
.fm-split > .fm-col { padding: 2px 0 0 14px; border-left: 1px dashed var(--line); }
.fm-col li { padding: 4px 0; font-size: 14px; }
.fm-col li a { color: var(--text2); border-bottom: 1px dotted var(--faint); }
.fm-col li a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.fm-col li.nof { color: var(--faint); cursor: default; }
.fm-row .fm-flt { display: flex; gap: 0; }
.fm-row .fm-flt .fm-col { display: block; padding: 0 24px 0 14px; border-left: 1px dashed var(--line); }

/* TRLN: справа сверху столбики — подкатегории (жирный текст) | наборы фильтров (пилюли столбиком), без заголовков */
.tl-cols { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0; }
.tl-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 22px; border-left: 1px dashed var(--line); }
.tl-col:first-child { padding-left: 0; border-left: 0; }
.tl-subs { gap: 2px; min-width: 150px; }
.tl-s { border: 0; background: none; padding: 4px 8px 4px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.tl-s:hover { color: var(--acc); }
.tl-s.on { color: var(--acc); }
.tl-s.on::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin: 0 7px 2px 0; }

/* сброс фильтров — круглая кнопка с крестиком */
.xreset { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--brd); background: #fff; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; }
.xreset:hover { border-color: var(--ink); color: var(--ink); }
.xreset .i { width: 14px; height: 14px; }

/* TRLN: подписи столбиков фильтров — в строке пути, мелко и тускло */
.tl-cols .tl-crumbs { min-height: 26px; margin-bottom: 6px; }
.tl-fh { min-height: 26px; margin-bottom: 6px; display: flex; align-items: center; font-size: 13px; color: var(--faint); }

/* TRLN: раздел с группами — группа = столбик, её название — заголовок, ниже подкатегории обычным весом */
.tl-gh { border: 0; background: none; padding: 0 8px 6px 0; min-height: 26px; margin-bottom: 4px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.tl-gh:hover, .tl-gh.on { color: var(--acc); }
.tl-s2 { font-weight: 400; color: var(--text2); }
.tl-grp { min-width: 190px; }

/* TRLN: крестик сброса всех фильтров — в правом верхнем углу панели, только когда что-то выбрано */
.tl-top { position: relative; }
.tl-top .tl-reset { position: absolute; top: 12px; right: 12px; align-self: auto; }

/* TRLN 08.11 вечер: без точек (активная — только фон и цвет); группы как на карте — заголовок, под ним линия и подкатегории; числа тусклые */
.tl-s.on::before { content: none; }
.tl-s i, .tl-gh i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--faint); margin-left: 7px; }
.tl-gl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line); margin-left: 2px; }
.tl-grp { padding-right: 32px; }
.tl-grp + .tl-grp { border-left: 0; padding-left: 0; }

/* TRLN: заголовок (путь) крупнее и шрифтом заголовков; подкатегории — средний вес; крестик «сбросить всё» виден всегда, бледный, когда сбрасывать нечего */
.tl-top .tl-crumbs { font: 600 18px/1.25 var(--head); letter-spacing: -.02em; }
.tl-top .tl-crumbs .tl-sep { font-family: 'Onest', system-ui, sans-serif; }
.tl-s { font-weight: 500; }
.tl-gh { font-size: 15px; font-weight: 700; }
.xreset:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.xreset:disabled:hover { color: var(--muted); }

/* TRLN v3 (08.11): подкатегории и фильтры — слева под выбранным разделом, справа только товары */
.trl { grid-template-columns: 340px minmax(0, 1fr); }
.tl-tree { padding: 8px; }
.tl-secrow { display: flex; align-items: center; gap: 6px; }
.tl-secrow .tl-n { flex: 1; font-size: 16px; padding: 7px 10px; }
.tl-secrow .tl-reset { position: static; width: 30px; height: 30px; }
.tl-panel { margin: 4px 0 10px 10px; padding: 8px 0 6px 12px; border-left: 2px solid var(--acc-soft); display: flex; flex-direction: column; gap: 14px; }
.tl-sl { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.tl-panel .tl-s { padding: 4px 6px 4px 0; }
.tl-grp { padding: 0; min-width: 0; }
.tl-panel .tl-gh { min-height: 0; padding: 2px 0 4px; margin: 0; }
.tl-fb { display: flex; flex-direction: column; gap: 6px; }
.tl-panel .tl-fh { min-height: 0; margin: 0; }
.tl-fv { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-ak { align-self: flex-start; }
.tl-ak button { height: 30px; padding: 0 12px; font-size: 13px; }
.tl-list .tl-crumbs { font: 600 20px/1.25 var(--head); letter-spacing: -.02em; padding: 12px 0 4px; }
.tl-list .tl-crumbs .tl-sep { font-family: 'Onest', system-ui, sans-serif; }

/* TRLN v4: слева неподвижное дерево + отдельное окно фильтров под ним */
.tl-left { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.tl-left .tl-tree { position: static; max-height: none; overflow: visible; }
.tl-tree ul ul { padding-left: 14px; }
.tl-n { font-size: 15px; padding: 4px 10px; }
.tl-n.tl-d0 { font-size: 16px; font-weight: 600; padding: 6px 10px; margin-top: 2px; }
.tl-n.tl-d1 { font-weight: 600; }
.tl-n.tl-d2 { color: var(--text2); }
.tl-n i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--faint); margin-left: 7px; }
.tl-n.on { background: var(--acc-soft); color: var(--acc); }
.tl-fbox { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.tl-fhr { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.tl-fhr .tl-reset { position: static; width: 30px; height: 30px; }
@media (max-width: 900px) { .tl-left { position: static; max-height: none; } }

.tl-akli { padding: 4px 0 6px; }
.tl-tree li:has(> .tl-n.tl-d0) > ul { margin: 2px 0 8px 10px; padding-left: 10px; border-left: 2px solid var(--acc-soft); }

/* TRLN v6: окно разделов не меняется; панель подкатегорий+фильтров — справа сверху или слева снизу (твик «Фильтры справа/слева») */
.tl-lay { margin-left: auto; }
.tl-lay button { height: 32px; padding: 0 14px; font-size: 13px; }
.tl-ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 44px; }
.tl-top .tl-ph .tl-crumbs { margin: 0; min-height: 0; }
.tl-top .tl-cols { margin-top: 4px; }
.tl-pan-top .tl-cols .tl-fh { min-height: 0; margin: 0 0 4px; }
.tl-pan-left { padding: 12px 14px; }
.tl-pan-left .tl-ph .tl-crumbs { font-size: 16px; }
.tl-pan-left .tl-cols { flex-direction: column; gap: 14px; }
.tl-pan-left .tl-col { padding: 0; border-left: 0; }
.tl-pan-left .tl-col.tl-fc { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.tl-pan-left .tl-col.tl-fc .tl-fh { flex-basis: 100%; min-height: 0; margin: 0; }
.tl-pan-left .tl-grp { padding-right: 0; }
.tl-left .tl-top .tl-reset { top: 10px; right: 10px; width: 30px; height: 30px; }
.tl-left .tl-tree { padding: 8px; }

/* разделы — шрифтом заголовков, подкатегории — обычным; слева в панели первая строка не залезает под крестик */
.tl-n.tl-d0 { font: 600 16px/1.3 var(--head); letter-spacing: -.01em; }
.tl-n.tl-d0 i { font-family: 'Onest', system-ui, sans-serif; }
.tl-s, .tl-gh { font-family: 'Onest', system-ui, sans-serif; }
.tl-pan-left .tl-cols { padding-right: 36px; margin-top: 0; }

/* ---------- Дерево каталога, вид TRLN — ревизия 08.11.2026 (классы tv-*; старые .tl-* больше не используются) ---------- */
.tlv .ttl { padding-bottom: 0; }
.tlv button:focus-visible, .tlv a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
/* полоса над деревом: вкладки вида слева, служебные значки справа */
.tv-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.tv-bar .t-mode { margin-right: 0; }
.tv-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tv-file { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 240px; margin-right: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tv-file span { overflow: hidden; text-overflow: ellipsis; }
.tv-file .i { width: 16px; height: 16px; }
.tv-ib { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--brd); border-radius: 10px; background: #fff; color: var(--text2); transition: border-color .15s, color .15s, background .15s; }
.tv-ib:hover { border-color: var(--ink); color: var(--ink); }
.tv-ib .i { width: 17px; height: 17px; }
.tv-lay { display: inline-flex; gap: 2px; padding: 3px; margin-left: 6px; border-radius: 12px; background: var(--soft); }
.tv-lay .tv-ib { width: 34px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--gray); }
.tv-lay .tv-ib:hover { color: var(--ink); }
.tv-lay .tv-ib.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* сетка: левая колонка постоянной ширины, при выборе ничего не прыгает */
.tv-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 12px; align-items: start; padding-bottom: 48px; }
.tv-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 164px; max-height: calc(100vh - 180px); overflow: auto; overscroll-behavior: contain; }
.tv-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tv-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tv-c { flex: none; min-width: 26px; height: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: none; font: 500 13px/1 'Onest', system-ui, sans-serif; font-style: normal; letter-spacing: 0; color: var(--muted); }

/* разделы — шрифтом заголовков */
.tv-tree { padding: 6px; }
.tv-tree ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tv-sec { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 0 12px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 15px/1.25 var(--head); letter-spacing: -.01em; color: var(--ink); transition: background .15s; }
.tv-sec:hover { background: var(--soft); }
.tv-sec.cur { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.tv-sec.cur .tv-c { color: var(--acc); }
.tv-sec.nos { color: var(--muted); }

/* панель подкатегорий и фильтров */
.tv-pan { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.tv-ph { display: flex; align-items: center; gap: 12px; }
.tv-ak button { height: 30px; padding: 0 12px; font-size: 13px; }
.tv-subs { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tv-sub { flex: none; min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; font: 500 14px/1.25 'Onest', system-ui, sans-serif; color: var(--ink); transition: background .15s, color .15s; }
.tv-sub:hover { background: var(--soft); }
.tv-sub.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.tv-sub.on .tv-c { color: var(--acc); }
.tv-sub.nos { color: var(--muted); }
/* «нет на сайте» — кружок в той же колонке, что счётчики (ширина плашки счётчика) */
.tv-sub.nos::after { content: ''; flex: none; width: 26px; height: 8px; background: radial-gradient(circle at center, transparent 0 2.4px, var(--faint) 2.6px 3.4px, transparent 3.6px); }
.tv-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 12px; }
.tv-grp { display: flex; flex-direction: column; min-width: 0; }
.tv-gh { font-weight: 700; justify-content: space-between; }
.tv-gh.nos { color: var(--ink); }   /* заголовок группы всегда тёмный; «нет на сайте» — только кружок справа */
.tv-gl { display: flex; flex-direction: column; margin: 0 0 0 10px; padding-left: 6px; border-left: 1px solid var(--line); }
.tv-s2 { min-height: 30px; justify-content: space-between; font-weight: 400; color: var(--text2); }
.tv-s2.on { font-weight: 600; }
.tv-flts { display: flex; flex-direction: column; gap: 8px; padding: 8px 2px 0; border-top: 1px solid var(--line2); }
.tv-fg { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.tv-fh { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tv-gx { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--brd); border-radius: 50%; background: #fff; color: var(--gray); transition: border-color .15s, color .15s; }
.tv-gx:hover { border-color: var(--ink); color: var(--ink); }
.tv-gx .i { width: 12px; height: 12px; }
.tv-fv { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tv-pill { flex: none; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--brd); border-radius: 999px; background: #fff; font: 400 14px/1 'Onest', system-ui, sans-serif; color: var(--ink); transition: border-color .15s, background .15s; }
.tv-pill i { font-style: normal; font-size: 13px; color: var(--muted); }
.tv-pill:hover { border-color: var(--ink); }
.tv-pill.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); font-weight: 600; }
.tv-pill.on i { color: var(--acc); }
.tv-pill:disabled { border-color: var(--line2); color: var(--faint); cursor: default; }
.tv-pill:disabled:hover { border-color: var(--line2); }
.tv-flts.first { border-top: 0; padding-top: 0; }
/* крестик вместо счётчика у выбранного пункта */
.tv-off { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--acc); }
.tv-off .i { width: 12px; height: 12px; stroke-width: 2; }
.tv-sub.on.nos::after { display: none; }
.tv-pill.on .tv-off { width: 18px; height: 18px; margin-right: -4px; }
/* панель слева, в узкой колонке: всё столбиком */
.tv-left .tv-subs { flex-direction: column; gap: 0; overflow: visible; }
.tv-left .tv-sub { width: 100%; min-height: 34px; justify-content: space-between; }
.tv-left .tv-groups { grid-template-columns: minmax(0, 1fr); }
/* в узкой колонке каждый набор (тип, материал…) — отдельная карточка, как разделы; без шапок и рамки вокруг */
.tv-left .tv-pan { padding: 0; border: 0; border-radius: 0; background: none; gap: 12px; }
.tv-left .tv-flts { padding: 0; gap: 12px; border-top: 0; }
.tv-left .tv-fg { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 6px; }
.tv-left .tv-pan > .tv-groups, .tv-left .tv-pan > .tv-subs { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 6px; }
.tv-left .tv-fh { display: none; }
/* в узкой колонке значения фильтров — столбиком, как подкатегории */
.tv-left .tv-fv { flex-direction: column; gap: 0; overflow: visible; }
.tv-left .tv-pill { width: 100%; height: 34px; justify-content: space-between; padding: 0 8px 0 12px; border: 0; border-radius: 8px; font-size: 14px; }
.tv-left .tv-pill:hover { background: var(--soft); }
.tv-left .tv-pill.on { background: var(--acc-soft); }
.tv-left .tv-pill:disabled { background: none; }

/* товары */
.tv-list { padding: 0 16px 6px; }
.tv-lh { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 0; }
.tv-xall { width: 28px; height: 28px; }
.tv-ttl { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.tv-ttl h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; font: 600 17px/1.3 var(--head); letter-spacing: -.02em; color: var(--ink); }
.tv-ttl .tv-sep { font: 400 17px/1 'Onest', system-ui, sans-serif; font-style: normal; color: var(--faint); }
.tv-total { font-size: 14px; color: var(--muted); white-space: nowrap; }
.tv-miss { margin: 0 0 12px; font-size: 13px; color: var(--wait); }
.tv-head, .tv-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 100px 120px; gap: 16px; align-items: center; }
.tv-head { padding: 7px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tv-head span:nth-child(n+2), .tv-row > span { text-align: right; }
.tv-row { position: relative; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--line3); font-size: 15px; }
.tv-row:last-child { border-bottom: 0; }
.tv-pn { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.tv-pn::after { content: ''; position: absolute; inset: 0; }   /* вся строка — ссылка на товар */
.tv-pn b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; transition: color .15s; }
.tv-pn i { flex: none; font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tv-row:hover .tv-pn b { color: var(--acc); }
.tv-row.out .tv-pn b { color: var(--muted); }
.tv-row .t-pr { font-weight: 600; }
.tv-list .empty { padding: 32px 0 28px; }

@media (max-width: 1100px) {
  .tv-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .tv-head, .tv-row { grid-template-columns: minmax(0, 1fr) 120px 90px 110px; gap: 12px; }
}
@media (max-width: 760px) {
  .tv-bar { flex-direction: column; align-items: stretch; }
  .tlv .t-mode { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tlv .t-mode a { flex: none; padding: 0 14px; }
  .tv-tools { flex-wrap: wrap; }
  .tv-file { max-width: none; flex: 1; }
  .tv-grid, .tv-grid.tv-left { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tv-side { position: static; max-height: none; overflow: visible; }
  /* разделы — строкой чипов с прокруткой */
  .tv-tree { padding: 0; border: 0; border-radius: 0; background: none; }
  .tv-tree ul { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tv-sec { width: auto; flex: none; min-height: 40px; gap: 8px; padding: 0 8px 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
  .tv-sec.cur { border-color: transparent; }
  /* телефон: каждый ряд — одной строкой с прокруткой вбок */
  .tv-left .tv-subs, .tv-subs { flex-direction: row; overflow-x: auto; }
  .tv-left .tv-sub, .tv-sub { width: auto; }
  .tv-fg, .tv-left .tv-fg { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tv-left .tv-fv { flex-direction: row; gap: 6px; overflow-x: auto; }
  .tv-left .tv-pill { width: auto; height: 30px; border: 1px solid var(--brd); border-radius: 999px; padding: 0 12px; font-size: 14px; }
  .tv-left .tv-pill.on { border-color: var(--acc); }
  .tv-left .tv-pill:disabled { border-color: var(--line2); }
  .tv-left .tv-sg .tv-subs { gap: 2px; }
  .tv-list { padding: 4px 14px 6px; }
  .tv-head { display: none; }
  .tv-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n n n" "k s p"; gap: 2px 12px; padding: 8px 0; }
  .tv-pn { grid-area: n; flex-wrap: wrap; gap: 2px 8px; }
  .tv-pn b { white-space: normal; }
  .tv-row .t-sku { grid-area: k; display: block; text-align: left; }
  .tv-row .t-st { grid-area: s; display: block; text-align: left; }
  .tv-row .t-pr { grid-area: p; }
}

/* аксессуары как остальные разделы (08.11): категории — ссылки в виде кнопок */
.aks2 a.chip { display: inline-flex; align-items: center; }
.aks2 .fg { display: flex; flex-wrap: wrap; gap: 8px; }

/* дерево TRLN: поиск в списке товаров (08.11) — в шапке списка, между заголовком и общим сбросом */
.tv-ttl { flex: 1; }
.tv-q { position: relative; flex: none; width: 220px; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border: 1px solid transparent; border-radius: 999px; background: var(--soft); color: var(--muted); transition: border-color .15s, background .15s; }
.tv-q:focus-within, .tv-q.has { border-color: var(--brd); background: #fff; }
.tv-q:focus-within { border-color: var(--ink); }
.tv-q > .i { width: 15px; height: 15px; }
.tv-q input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; padding: 0; font: 400 14px/1 'Onest', system-ui, sans-serif; color: var(--ink); }
.tv-q input::placeholder { color: var(--muted); }
.tv-qx { width: 24px; height: 24px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--gray); }
.tv-qx:hover { background: var(--soft2); color: var(--ink); }
.tv-qx .i { width: 12px; height: 12px; }
@media (max-width: 760px) {
  .tv-lh { flex-wrap: wrap; }
  .tv-q { order: 3; width: 100%; }
}
.tv-xph { width: 28px; height: 28px; flex: none; }
.tv-bar { justify-content: flex-end; }
/* 08.11: файл и загрузка — в строке заголовка справа, отдельной полосы нет */
.tlv .tv-ttlrow { align-items: center; padding-bottom: 20px; }
.tv-ttlrow .tv-tools { margin-left: auto; }
@media (max-width: 760px) { .tv-ttlrow .tv-tools { margin-left: 0; width: 100%; } }

/* 08.11: «В наличии» и «Плитка / Список» — в строке заголовка раздела справа; полоса фильтров — только фильтры */
.ttl .ttl-tr { margin-left: auto; align-self: center; }
.tbar.fonly .tl { flex: 1; }
@media (max-width: 760px) { .ttl .ttl-tr { margin-left: 0; width: 100%; justify-content: space-between; } }
/* аксессуары: кнопки категорий чуть плотнее — весь ряд (11 кнопок) в одну строку от 1440 px; на телефоне — строка с прокруткой */
.aks2 .fg { gap: 6px; }
.aks2 .chip { padding: 0 11px; }
@media (max-width: 760px) { .aks2 .fg { flex-wrap: nowrap; } .aks2 .chip { flex: none; } }
/* мегаменю, аксессуары (08.11): один алфавитный список в три колонки, читается сверху вниз */
.m-group.m-cols { display: block; grid-column: 1 / -1; columns: 3; column-gap: 40px; }
.m-group.m-cols .m-link { break-inside: avoid; margin: 0 -10px 2px; }
@media (max-width: 1080px) { .m-group.m-cols { columns: 2; column-gap: 28px; } }
@media (max-width: 760px) { .m-group.m-cols { columns: 1; } }
/* баг исходника: класс .lb занят и поп-апом фото (display:none; position:fixed), и названием раздела в мегаменю —
   названия разделов слева в мегаменю не показывались. Возвращаем; разработчику лучше переименовать класс поп-апа. */
.m-sec .lb { position: static; inset: auto; z-index: auto; display: block; padding: 0; background: none; }

/* 08.11: вид TRLN как страница раздела — путь, крупный заголовок = выбранное, справа поиск и общий сброс */
.tv-top { padding-top: 28px; }
.tv-crumbs { min-height: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; color: var(--muted); }
.tv-crumbs .tv-sep { font-style: normal; color: var(--faint); }
.tv-cr { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); }
.tv-cr:hover { color: var(--acc); }
.tlv .tv-top .ttl { padding-top: 8px; padding-bottom: 20px; align-items: baseline; }
.tlv .tv-top .tv-q { margin-left: auto; align-self: center; }
.tlv .tv-top .ttl > .xreset, .tlv .tv-top .ttl > .tv-xph { align-self: center; }
.tv-list { padding-top: 4px; }
.tv-list .tv-head { border-top: 0; }
@media (max-width: 760px) { .tlv .tv-top .ttl { flex-wrap: wrap; } .tlv .tv-top .tv-q { margin-left: 0; flex: 1; width: auto; order: 0; } }
/* мегаменю (08.11): строки плотнее; аксессуары — две колонки по алфавиту (10 пунктов = 5 + 5) */
.m-link { padding-top: 6px; padding-bottom: 6px; }
.m-group.m-cols { columns: 2; grid-column: 1 / span 2; }
@media (max-width: 760px) { .m-group.m-cols { columns: 1; grid-column: auto; } }

/* рабочая таблица (08.11): колонки на выбор, сортировка по заголовку */
.tv-list { overflow-x: auto; }
.tv-tbl .tv-head, .tv-tbl .tv-row { grid-template-columns: var(--tvcols); }
.tv-tbl .tv-head { padding: 0; }
.tv-sh { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 34px; padding: 0; border: 0; background: none; font: 400 13px/1.2 'Onest', system-ui, sans-serif; color: var(--muted); text-align: right; white-space: nowrap; }
.tv-sh:first-child { justify-content: flex-start; text-align: left; }
.tv-sh:hover { color: var(--ink); }
.tv-sh.on { color: var(--ink); font-weight: 600; }
.tv-sh:first-child.on { font-weight: 400; }
.tv-ar { font-style: normal; color: var(--acc); }
.tv-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--text2); }
.tv-row > span.erp { color: var(--faint); }
.tv-row > .t-pr { font-size: 15px; color: var(--ink); }
.tv-row > .t-st { color: var(--ok); }
.tv-row > .t-st.no { color: var(--wait); }
/* окно выбора колонок */
.tv-cw { position: relative; align-self: center; }
.tv-ib.on { border-color: var(--ink); color: var(--ink); }
.tv-cpop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 240px; padding: 6px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(32, 35, 33, .14); }
.tv-ck { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; font: 400 14px/1.2 'Onest', system-ui, sans-serif; color: var(--ink); text-align: left; }
.tv-ck:hover { background: var(--soft); }
.tv-ck em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--faint); }
.tv-box { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--faint); border-radius: 4px; background: #fff; }
.tv-ck.on .tv-box { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tv-cdef { margin-top: 4px; min-height: 32px; border: 0; border-top: 1px solid var(--line2); background: none; font-size: 13px; color: var(--muted); }
.tv-cdef:hover { color: var(--acc); }
@media (max-width: 760px) {
  .tv-list { overflow-x: visible; }
  .tv-tbl .tv-row { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .tv-tbl .tv-pn { flex-basis: 100%; }
  .tv-tbl .tv-row > span { display: inline; text-align: left; font-size: 13px; }
  .tv-tbl .tv-row > .t-pr { margin-left: auto; }
}
/* 08.11 вечер: «В наличии» и «Плитка / Список» — отдельной строкой над товарами, справа; полоса кнопок — на всю ширину */
.res > .rbar { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.aks .res { padding-top: 16px; }
@media (max-width: 760px) { .res > .rbar { justify-content: space-between; } }
/* общий сброс — ссылкой под фильтрами (08.11 вечер) */
.tv-rall { align-self: flex-start; margin: 0 0 0 12px; padding: 2px 0; border: 0; background: none; font: 400 14px/1.3 'Onest', system-ui, sans-serif; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.tv-rall:hover { color: var(--acc); text-decoration-color: currentColor; }
/* 08.11 вечер (владелец): «Добавить» чёрная везде — серая читалась как «нет в наличии» */
.addb { background: var(--ink); color: #fff; }
.addb:hover { background: #000; color: #fff; }
/* 08.11 вечер: в карточке фильтра — тихая подпись набора («Материал», «Составность»): 13 px, бледно, без линии и фона;
   при выборе не меняется (выбор виден по самому пункту). У подкатегорий подписи нет. Крестик группы слева не нужен — он у пункта. */
.tv-left .tv-fh { display: flex; min-height: 0; padding: 4px 12px 2px; font-size: 13px; font-weight: 400; color: var(--faint); }
.tv-left .tv-fh .tv-gx { display: none; }
/* подкатегории — тоже с подписью «ТИП» (владелец 08.11: раз подписи есть, то у всех наборов) */
@media (max-width: 760px) { .tv-left .tv-fh { padding: 0 2px 4px; } }
/* подпись набора не должна выглядеть как недоступный пункт: отличается формой (капс, разрядка, средний вес),
   цвет темнее недоступного; недоступные пункты — самые бледные */
.tv-left .tv-fh { padding: 6px 12px 4px; font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); }
.tv-left .tv-pill:disabled, .tv-left .tv-sub.nos { color: #c3bfb7; }
/* 08.11 вечер: категории аксессуаров прямо в карточке разделов — со сдвигом и тонкой линией, шрифт обычный */
.tv-tree .tv-nls { margin: 0 0 4px 14px; padding-left: 6px; border-left: 1px solid var(--line); }
.tv-tree .tv-nl { width: 100%; min-height: 32px; justify-content: space-between; padding: 0 8px 0 10px; font-size: 14px; color: var(--text2); }
.tv-tree .tv-nl.on { color: var(--acc); }
@media (max-width: 760px) { .tv-tree .tv-nls { display: none; } }
/* карточка категорий раздела с группами — только на телефоне (на компьютере они в карточке разделов), без подписи «Тип» */
.tv-mob .tv-fh { display: none !important; }
/* 08.11 вечер: карточка товаров не короче экрана — при переходе между ветками с разным числом товаров
   высота страницы не скачет и прокрутка не дёргается; пустое место остаётся внутри карточки */
.tv-list { min-height: calc(100vh - var(--hdr-h, 0px) - 170px); }
@media (max-width: 760px) { .tv-list { min-height: 0; } }

/* ===== v11 (09.11.2026): навигация только слева, шапка в одну строку ===== */
/* строки разделов и мегаменю в разметке больше нет; старые правила .cbar/.mega/.m-* не используются — разработчик может удалить */
.hmain { padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.hcat { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text2); white-space: nowrap; transition: background .15s, color .15s; }
.hcat .i { width: 18px; height: 18px; }
.hcat:hover { background: var(--soft); color: var(--ink); }
.hcat.on { color: var(--ink); }
.search { max-width: 560px; }
.hphone { display: flex; flex-direction: column; gap: 2px; margin-left: auto; white-space: nowrap; line-height: 1.2; }
.hphone b { font-size: 15px; font-weight: 600; }
.hphone a:hover b { color: var(--acc); }
.hphone small { font-size: 13px; color: var(--muted); }
.hphone small a { color: var(--muted); }
.hphone small a:hover { color: var(--acc); }
/* страница раздела: заголовок от левого края над колонками; верх меню = верх фото */
.lnav .ln-ttl { padding-top: 32px; padding-bottom: 24px; align-items: center; }
.lnav .ln-ttl h1 { font-size: 40px; }
.lnav .ln-ttl .rbar { margin: 0 0 0 auto; }
.lnav .tv-grid { padding-top: 0; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
.lnav .tv-side { top: calc(var(--hdr-h, 0px) + 16px); max-height: calc(100vh - var(--hdr-h, 0px) - 32px); }
/* 10.11: после фильтра товаров мало — страница не сжимается, липкая левая колонка не съезжает вверх */
.lnav .tv-main { min-height: calc(100vh - var(--hdr-h, 0px)); }
.lnav a.tv-sec, .lnav a.tv-sub { text-decoration: none; }
.lnav .res { padding-top: 0; }
.lnav .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lnav .tv-sub.nos { pointer-events: none; }
@media (max-width: 1100px) { .lnav .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hphone small { display: none; } }
@media (max-width: 760px) {
  .hphone { display: none; }
  .hcat { display: none; }   /* на телефоне в одну строку не влезает; путь в каталог — логотип и крошки */
  .lnav .ln-ttl { flex-wrap: wrap; padding-top: 24px; padding-bottom: 16px; }
  .lnav .ln-ttl h1 { font-size: 28px; }
  .lnav .ln-ttl .rbar { margin: 0; width: 100%; }
  .lnav .tv-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lnav .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* узкая карточка (2 в ряд на телефоне): количество и «Добавить» друг под другом — иначе кнопка обрезалась */
@media (max-width: 640px) {
  .card .addq { grid-template-columns: minmax(0, 1fr); }
  .card .addq .qty { width: 100%; }
}
/* 09.11 (владелец): в плитке «Добавить» — тёмный контур, заливается при наведении на карточку; сплошная чёрная «чернила» весь экран */
.card .addb { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .15s, color .15s; }
.card:hover .addb, .card .addb:focus-visible { background: var(--ink); color: #fff; }
.card .qty { background: #fff; }
/* 09.11: «В корзине» — ссылка в заказ на месте «Добавить», счётчик рядом = количество в корзине */
a.addb { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.addq.in .addb::before { content: '✓'; margin-right: 6px; }
/* 09.11 (владелец): шапка «пляшет» — все подписи в одну строку на одной высоте; число товаров — на значке корзины */
.mi-t small, #cartSum { display: none; }
.mi-t { justify-content: center; }
.hphone { justify-content: center; }
/* 09.11 (владелец): товар в корзине — кнопка «В корзине» всегда тёмная, видно выбранное */
.card .addq.in .addb { background: var(--ink); color: #fff; box-shadow: none; }
.card .addq.in .addb:hover { background: #000; }
/* ---------- главная (макет 09.11, ТЗ-главная.md) ---------- */
.home { padding-bottom: 24px; }
.h-ban { position: relative; display: grid; grid-template-columns: 5fr 7fr; min-height: 450px; margin-top: 24px; border-radius: 20px; overflow: hidden; background: var(--ink); color: #fff; }
.h-fon { position: absolute; inset: 0; background: center/cover no-repeat; filter: blur(3px) brightness(.6); transform: scale(1.06); }
.h-ban::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,11,.88) 0%, rgba(10,12,11,.55) 38%, rgba(10,12,11,.1) 70%); pointer-events: none; }
.h-txt { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; }
.h-txt h1 { font: 600 38px/1.08 var(--head); letter-spacing: -.03em; }
.h-txt p { font-size: 16px; color: #cfcac2; }
.h-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.h-ban .btn:not(.dark) { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.h-ban .btn.dark { background: #fff; color: var(--ink); }
.h-art { position: relative; z-index: 1; }
/* плашки товаров на баннере: один серый фон у всех (картинки Gemini уже серые, фото на белом — multiply) */
.h-p { position: absolute; display: block; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #ecebe8 0%, #e2dfdb 55%, #d5d1ce 100%); box-shadow: 0 10px 30px rgba(0,0,0,.45); transform: rotate(var(--r, 0deg)); transition: transform .18s, box-shadow .18s; }
.h-p:hover { transform: rotate(var(--r, 0deg)) scale(1.05); box-shadow: 0 16px 40px rgba(0,0,0,.55); z-index: 2; }
.h-p img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-p.w img { object-fit: contain; mix-blend-mode: multiply; padding: 8%; }
.h-p.p1 { left: 3%; top: 7%; width: 47%; aspect-ratio: 16/9; --r: -5deg; }
.h-p.p2 { left: 54%; top: 5%; width: 42%; aspect-ratio: 16/9; }
.h-p.p3 { left: 6%; top: 54%; width: 22%; aspect-ratio: 1; --r: -5deg; }
.h-p.p4 { left: 32%; top: 52%; width: 22%; aspect-ratio: 1; }
.h-p.p5 { left: 58%; top: 50%; width: 32%; aspect-ratio: 6/5; --r: 3deg; }
.h-p.p5 img { padding: 5%; }
.h-sec { margin-top: 48px; }
.h-sec h2 { font: 600 26px/1.1 var(--head); letter-spacing: -.02em; margin-bottom: 20px; }
/* разделы — строка текстовых кнопок без картинок (картинки товаров на баннере) */
/* 09.11: в плитке — подразделы; кии чуть шире, аксессуары — самые широкие (две группы строками) */
.h-tiles { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 1.1fr; gap: 12px; }   /* 10.11: у всех по три строки; кии шире — пилюли в одну строку */
.h-tile { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--soft); }
.h-tt { display: flex; flex-direction: column; gap: 4px; }
.h-tile b { font: 600 17px/1.2 var(--head); }
.h-tile small { font-size: 14px; color: var(--muted); }
.h-tt:hover b { color: var(--acc); }
.h-ts { display: flex; flex-direction: column; }
.h-ts a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--brd); font-size: 14px; color: var(--text2); }
.h-ts a i { font-style: normal; color: var(--muted); }
.h-ts a:hover, .h-tg a:hover { color: var(--acc); }
.h-tg { padding-top: 8px; border-top: 1px solid var(--brd); }
.h-tgh { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.h-tg p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text2); }
.h-tg p a + a::before { content: ' · '; color: var(--muted); }
/* 10.11: фильтр цвета — кружки в одну строку; выбранный — кольцо вокруг, недоступный — бледный */
.tv-sw { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 12px 10px; }
.tv-dot { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); background: var(--dot); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.tv-dot:hover { transform: scale(1.1); }
.tv-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.tv-dot:disabled { opacity: .25; cursor: default; transform: none; }
/* 09.11: пилюли-фильтры внизу плитки (кии — материал, чехлы — компоновка) */
.h-pl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.h-pl a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--brd); border-radius: 999px; background: transparent; font-size: 13px; color: var(--muted); white-space: nowrap; transition: border-color .15s, color .15s; }   /* 10.11 владелец: вторичные фильтры, не «герои» — без белой заливки */
.h-pl a:hover { border-color: var(--ink); color: var(--ink); }
.h-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.h-head h2 { margin: 0; }
.h-arr { display: flex; gap: 8px; }
.h-arr button { width: 40px; height: 40px; border: 1.5px solid var(--brd); border-radius: 50%; background: #fff; font-size: 16px; }
.h-arr button:hover { border-color: var(--ink); }
.h-car { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.h-car::-webkit-scrollbar { display: none; }
.h-car > .card { scroll-snap-align: start; }
.h-call { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 16px; background: var(--soft); }
.h-call b { display: block; font: 600 20px/1.2 var(--head); margin-bottom: 4px; }
.h-call span { color: var(--text2); }
.h-call .btn:not(.dark) { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--brd); }
.h-off { opacity: .55; cursor: default; }
@media (max-width: 900px) {
  .h-ban { grid-template-columns: 1fr; min-height: 0; }
  .h-art { min-height: 300px; order: -1; margin: 12px 12px 0; }
  .h-txt { padding: 24px; }
  .h-txt h1 { font-size: 28px; }
  .h-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-tile.wide { grid-column: 1 / -1; }
  .h-tile { padding: 16px; }
  .h-tile b { font-size: 15px; }
  .h-car { grid-auto-columns: 46%; gap: 12px; }
  .h-arr { display: none; }
  .h-sec { margin-top: 36px; }
}

/* ===== 09.11 «кассета» баннеров главной: Сейчас / GPT / Figma — на сравнение владельцу ===== */
.h-off-slide { display: none !important; }
.h-casbar { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.h-casbar button { padding: 7px 16px; border: 1.5px solid var(--brd); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--text2); }
.h-casbar button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* GPT: готовая картинка 2172×724, текст в ней нарисован */
.h-ban.h-gpt { display: block; min-height: 0; background: #0b1c17; }
.h-gpt img { display: block; width: 100%; height: auto; }
.h-gpt::after { display: none; }   /* общий тёмный градиент баннера — не для готовой картинки */
/* Figma «Бильярдное оборудование — баннер» 1480×520: все размеры — доли ширины кадра (1cqw = 14.8 px макета) */
.h-ban.h-fg { display: block; min-height: 0; aspect-ratio: 1480 / 520; background: #0b1c17; border-radius: 24px; container-type: inline-size; font-family: 'Inter', 'Onest', system-ui, sans-serif; }
.h-fg::after { display: none; }
.fg-txt { position: absolute; left: 3.78cqw; top: 2.97cqw; width: 43.4cqw; color: #f7f5ef; }
.fg-kick { margin-top: 0.14cqw; font-size: 0.81cqw; line-height: 1.22cqw; font-weight: 600; letter-spacing: 0.108cqw; text-transform: uppercase; color: #e8c889; }
.fg-txt h1 { position: absolute; top: 3.31cqw; left: -0.2cqw; margin: 0; font: 600 3.65cqw/3.92cqw 'Inter', 'Onest', system-ui, sans-serif; letter-spacing: -0.02em; color: #f7f5ef; }
.fg-sub { position: absolute; top: 12.23cqw; font-size: 1.76cqw; line-height: 2.3cqw; font-weight: 500; color: #e8c889; }
.fg-txt p { position: absolute; top: 15.54cqw; margin: 0; font-size: 1.15cqw; line-height: 1.69cqw; color: #aabcb3; }
.fg-btns { position: absolute; top: 19.46cqw; display: flex; gap: 0.81cqw; }
.fg-b { display: inline-flex; align-items: center; justify-content: center; height: 3.65cqw; padding: 0 2.2cqw; border-radius: 0.68cqw; font-size: 1.08cqw; font-weight: 600; white-space: nowrap; }
.fg-b.gold { background: #e8c889; color: #1a3027; }
.fg-b.gold:hover { background: #f0d6a0; }
.fg-b.line { box-shadow: inset 0 0 0 1px #647c6e; color: #f7f5ef; }
.fg-b.line:hover { box-shadow: inset 0 0 0 1px #aabcb3; }
.fg-facts { position: absolute; top: 25.41cqw; width: 42cqw; padding-top: 1.42cqw; border-top: 1px solid #355044; display: flex; gap: 2.6cqw; font-size: 0.95cqw; line-height: 1.49cqw; }
.fg-facts b { font-weight: 500; color: #f7f5ef; }
.fg-facts span { color: #aabcb3; }
.fg-art { position: absolute; left: 51.08cqw; top: 2.16cqw; width: 46.76cqw; height: 30.81cqw; }
.fg-p { position: absolute; display: block; border-radius: 1.08cqw; overflow: hidden; background: #e4e1dc; box-shadow: 0 0.81cqw 1.62cqw rgba(0,0,0,.26); transform: rotate(var(--r)); transition: transform .18s; }
.fg-p:hover { transform: rotate(var(--r)) scale(1.04); z-index: 2; }
.fg-p img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fg-p.w img { object-fit: contain; mix-blend-mode: multiply; padding: 7%; }
.fg-p.f1 { left: 0.1%; top: 1.5%; width: 56.4%; height: 50%; --r: -6deg; }
.fg-p.f2 { left: 58.3%; top: 1.6%; width: 41.6%; height: 38.2%; --r: 3deg; }
.fg-p.f3 { left: 4.7%; top: 51.8%; width: 30.3%; height: 47.1%; --r: -6deg; }
.fg-p.f4 { left: 61.7%; top: 50%; width: 37.3%; height: 47.8%; --r: 5deg; }
.fg-p.f5 { left: 33.4%; top: 52.1%; width: 26.9%; height: 40.8%; --r: 3deg; }
@media (max-width: 900px) {
  /* телефон: текст сверху, коллаж под ним — пропорции макета держим на ширине кадра */
  .h-ban.h-fg { aspect-ratio: auto; height: auto; padding-bottom: 0; }
  .fg-txt, .fg-txt h1, .fg-sub, .fg-txt p, .fg-btns, .fg-facts { position: static; width: auto; }
  .fg-txt { padding: 24px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
  .fg-kick { font-size: 11px; line-height: 16px; letter-spacing: 1.4px; }
  .fg-txt h1 { font-size: 30px; line-height: 1.1; }
  .fg-sub { font-size: 19px; line-height: 1.3; }
  .fg-txt p { font-size: 15px; line-height: 1.45; }
  .fg-b { height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
  .fg-btns { gap: 8px; flex-wrap: wrap; }
  .fg-facts { padding-top: 12px; gap: 16px; font-size: 13px; line-height: 1.4; flex-wrap: wrap; }
  .fg-art { position: relative; left: auto; top: auto; width: auto; height: 62cqw; margin: 8px 14px 18px; }
  .fg-p { border-radius: 12px; }
}
/* гибрид: вёрстка Figma (.h-fg) + склад в зелёном тоне + плашки-сукно с золотой каймой; описание без пустой фразы —
   кнопки и черта подняты на её место */
.h-hy { overflow: hidden; }
.hy-fon { position: absolute; inset: 0; z-index: 0; background: center/cover no-repeat; filter: blur(2.5px) saturate(.6) brightness(.55); transform: scale(1.05); }
/* тонировка склада — ::after (рисуется после фона), текст и коллаж выше по z-index */
.h-hy::after { display: block; content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(8,26,19,.97) 0%, rgba(8,26,19,.9) 40%, rgba(10,34,25,.55) 70%, rgba(10,34,25,.35) 100%),
  radial-gradient(ellipse at 75% 0%, rgba(232,200,137,.14), transparent 60%); }
.h-hy .fg-txt, .h-hy .fg-art { z-index: 1; }
.h-hy .fg-txt { position: absolute; }
.h-hy .fg-btns { top: 16.6cqw; }
.h-hy .fg-facts { top: 22.6cqw; }
.h-hy .fg-txt h1 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.h-hy .fg-p { background: #123a2a; box-shadow: 0 0 0 1px rgba(232,200,137,.6), 0 0.9cqw 2cqw rgba(0,0,0,.45); }
.h-hy .fg-p:hover { box-shadow: 0 0 0 1.5px rgba(232,200,137,.95), 0 1.2cqw 2.4cqw rgba(0,0,0,.5); }
.h-hy .fg-p img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
@media (max-width: 900px) {
  .h-hy .fg-btns, .h-hy .fg-facts { top: auto; }
  .h-hy .fg-txt, .h-hy .fg-art { position: relative; }
  .h-hy::after { background: linear-gradient(180deg, rgba(8,26,19,.95) 0%, rgba(8,26,19,.88) 55%, rgba(10,34,25,.6) 100%); }
}

/* ===== 10.11 баннер Gemini (единственный): картинка 2400×970 (низ обрезан по зелёной части, за край торчит только кий) вместе с тенью кия ниже рамки, текст живой поверх.
   Размеры — доли ширины кадра (cqw), позиции как в макете Gemini ===== */
.h-ban.h-gem { display: block; min-height: 0; background: none; border-radius: 0; overflow: visible; container-type: inline-size; }
.h-gem::after { display: none; }
.h-gem img { display: block; width: 100%; height: auto; }
.gm-txt { position: absolute; left: 5.2cqw; top: 50%; transform: translateY(-58%); width: 50cqw; color: #fff; }
.gm-txt h1 { margin: 0; font: 800 3.45cqw/1.12 'Onest', system-ui, sans-serif; letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.gm-txt p { margin: 2.2cqw 0 0; font-size: 1.55cqw; line-height: 1.45; color: rgba(255,255,255,.9); }
.gm-btns { display: flex; gap: 1cqw; margin-top: 3cqw; }
.gm-b { display: inline-flex; align-items: center; justify-content: center; height: 4cqw; padding: 0 2.4cqw; border-radius: .9cqw; font-weight: 600; font-size: 1.45cqw; white-space: nowrap; transition: background .15s; }
.gm-1 { background: #f3f1ea; color: var(--ink); }
.gm-1:hover { background: #fff; }
.gm-2 { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); color: #fff; }
.gm-2:hover { background: rgba(255,255,255,.12); }

/* ===== 10.11 бренды: строка на баннере, полоса под баннером, страница бренда, значок на товаре ===== */
.gm-off { margin: 1.9cqw 0 0; font-size: 1.5cqw; line-height: 1.4; color: rgba(255,255,255,.92); }
.gm-off b { font-weight: 600; color: #fff; }
.h-brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.h-br { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--brd); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.h-br:hover { border-color: #c9c7bf; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.h-br-l { flex: none; width: 160px; height: 64px;   /* 10.11 владелец: логотипы крупнее, «места достаточно» */ display: flex; align-items: center; justify-content: center; }
.h-br-l img { max-width: 100%; max-height: 100%; }
.h-br-t b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.h-br-t span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.br-ttl { align-items: center; gap: 20px; }
.br-ttl img { height: 48px; max-width: 200px; object-fit: contain; }
.br-ttl p { margin: 6px 0 0; color: var(--text2); }
.pp-off { display: inline-flex; align-self: flex-start; width: max-content; max-width: 100%; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 7px 14px 7px 10px; border-radius: 10px; background: var(--soft); font-size: 13px; color: var(--text2); }
.pp-off img { height: 20px; }
.pp-off:hover { color: var(--ink); }
@media (max-width: 900px) { .h-brands { grid-template-columns: 1fr; } }

/* 10.11.2026 (владелец): сердечко и «Добавить» в плитке — по наведению, не закрывают фото.
   Только там, где есть наведение мышью; на телефоне как было. Место под кнопку остаётся — плитки не прыгают.
   Отмеченное сердечко и «В корзине» видны всегда. */
@media (hover: hover) and (pointer: fine) {
  .card .fav:not(.on), .card .addq:not(.in) { opacity: 0; transition: opacity .15s; }
  .card:hover .fav, .card .fav:focus-visible,
  .card:hover .addq, .card .addq:focus-within { opacity: 1; }
}

/* 10.11.2026 (владелец): нет в наличии — товар «забанен»: серый, без заказа */
.card.out .ph img { filter: grayscale(1); opacity: .5; }
.card.out .nm, .card.out .price .pr { color: var(--muted); }
.card.out .price s { opacity: .5; }
.nost { height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 600; }
.btn.off { background: var(--soft); color: var(--muted); cursor: default; pointer-events: none; }
/* 10.11 (владелец): фильтры — одной панелью «Фильтры», отдельно от разделов; «Только в наличии» — первым пунктом.
   Внутри панели группы без своих рамок, разделены тонкой линией */
.fpan { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fpan-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px 12px; border-bottom: 1px solid var(--line); }
.fpan-h h2 { margin: 0; font: 600 17px/1.2 var(--head); letter-spacing: -.01em; color: var(--ink); }
.fpan-h .tv-rall { margin: 0 0 0 auto; align-self: center; }
.fpan-st { padding: 6px; }
.stock.fst { width: 100%; min-height: 38px; justify-content: space-between; padding: 0 12px; border-radius: 8px; font: 500 14px/1.25 'Onest', system-ui, sans-serif; color: var(--ink); }
.stock.fst:hover { background: var(--soft); }
.fpan .tv-fg, .tv-left .fpan .tv-fg { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 8px 6px; }
@media (max-width: 760px) {
  .fpan-h { padding: 12px 14px 10px; }
  .fpan .tv-fg, .tv-left .fpan .tv-fg { padding: 10px 10px; }
}
/* 10.11 вечер (владелец): «Фильтры» читались как ещё одна категория. Как у Ozon/WB: шапка панели окрашена и со значком,
   под шапкой — чёрточка. Чекбоксы пробовали — владелец: выбор одиночный, чекбоксы тут лишние (10.11). */
.fpan { overflow: hidden; }
.fpan-h { background: var(--soft2); border-bottom: 1px solid var(--brd); }
.fpan-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.fpan-h h2 .i { width: 18px; height: 18px; fill: var(--soft2); stroke: var(--ink); stroke-width: 1.6; }
/* 10.11 вечер: подвал одной строкой — логотип, связь, © */
.foot.fmini { padding: 32px 0 24px; }
.fmini .h-call { padding: 0 0 24px; border-radius: 0; background: none; }
.fmini .fbot { margin: 0; padding: 20px 0 0; align-items: center; }
.fmini .logo small { color: var(--muted); }
.fmini .fmid a { color: var(--ink); }
.fmini .fmid a:hover { color: var(--acc); }
@media (max-width: 640px) { .fmini .fbot { flex-direction: column; align-items: flex-start; gap: 12px; } }
/* 10.11 вечер (владелец): опций на плитке нет; у моделей «Добавить» — одна кнопка, открывает плашку выбора */
.addq.one { grid-template-columns: minmax(0, 1fr); }
/* полоски цветов на фото плитки (как Ozon/WB): мышью по фото — цвета */
.card .ph .scrub { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; gap: 4px; pointer-events: none; }
.card .ph .scrub i { flex: 1; height: 3px; border-radius: 2px; background: rgba(32, 35, 33, .14); }
.card .ph .scrub i.on { background: var(--ink); }
/* плашка выбора опций */
.osh { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 20, 18, .38); }
.osh-w { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); }
.osh-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); }
.osh-x .i { width: 14px; height: 14px; stroke-width: 2; }
.osh-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding-right: 32px; }
.osh-ph { height: 112px; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.osh-ph img { max-width: 100%; max-height: 100%; object-fit: contain; }
.osh-t { display: flex; flex-direction: column; gap: 4px; }
.osh-t b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.osh-t .ds { font-size: 13px; color: var(--muted); }
.osh-t .price { margin-top: 6px; }
.osh .pv { display: flex; flex-direction: column; gap: 14px; }
.osh .pv-t { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.osh .pv-t b { color: var(--ink); font-weight: 600; }
.osh-go .addq { padding: 0; }
body.osh-on { overflow: hidden; }
@media (max-width: 640px) { .osh { align-items: flex-end; padding: 0; } .osh-w { max-width: none; border-radius: 18px 18px 0 0; } }
/* 10.11 вечер (владелец, образец billiarder.ru): в плитке справа от цены — маленький счётчик и кнопка-корзинка, всегда видны */
.card .cfoot { flex-wrap: wrap; gap: 8px; min-height: 36px; }
.card .cfoot .price { min-width: 0; }
.cq { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cq .qty { width: 84px; height: 36px; border-radius: 9px; }
.cq .qty button { width: 26px; height: 34px; font-size: 16px; }
.cq .qty input { height: 34px; font-size: 14px; }
.cq.in .qty { border-color: var(--ink); }
.cbuy { position: relative; flex: none; width: 36px; height: 36px; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 9px; background: var(--ink); color: #fff; transition: background .15s; }
.cq .cbuy { margin-left: 0; }
.cbuy:hover { background: #000; }
.cbuy .i { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.cbuy.in { background: var(--acc); }
.cbuy.in:hover { background: var(--acc); filter: brightness(.92); }
.cbuy b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--acc); color: #fff; font: 600 11px/18px 'Onest', sans-serif; text-align: center; }
.cbuy.in b { background: var(--ink); }
a.cbuy { text-decoration: none; }
.card .c-nost { margin-left: auto; font-size: 13px; color: var(--muted); }
.card .cfoot .ask { margin-left: auto; }

/* 12.11: «Только в наличии» — чекбокс вне блока фильтров (свой, не системный) */
.stock.fchk { width: 100%; min-height: 38px; justify-content: flex-start; gap: 10px; padding: 0 13px; border-radius: 10px; font: 500 14px/1.25 'Onest', system-ui, sans-serif; color: var(--ink); }
.stock.fchk:hover { background: var(--soft); }
.cbx { width: 18px; height: 18px; flex: none; border: 1.5px solid #b9b4ab; border-radius: 5px; background: #fff; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.cbx svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.stock.fchk[aria-checked="true"] .cbx { background: var(--ink); border-color: var(--ink); }
.stock.fchk[aria-checked="true"] .cbx svg { opacity: 1; }
/* 12.11 (владелец): каждый набор фильтров — своей карточкой .tv-fg, без подписей */
.fcards { display: flex; flex-direction: column; gap: 12px; }
.fcards .tv-fh { display: none !important; }
/* «Только в наличии» — своей маленькой карточкой, как наборы фильтров (голая строка не читалась кликабельной) */
.fstk { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 6px; }
/* 12.11: колонка товаров не короче экрана — при переходе в раздел с парой товаров страница не укорачивается и левая колонка не съезжает */
@media (min-width: 761px) { .lnav .tv-main { min-height: 100vh; } }

/* 12.11 (SEO): готовая страница с сервера — видна до загрузки JS (и поисковикам); JS рисует поверх */
.ssr { padding-top: 28px; padding-bottom: 48px; color: var(--ink); font-size: 15px; line-height: 1.5; }
.ssr h1 { margin: 8px 0 12px; font: 600 32px/1.15 var(--head); letter-spacing: -.02em; }
.ssr h2 { margin: 24px 0 8px; font: 600 20px/1.2 var(--head); }
.ssr p { margin: 0 0 12px; max-width: 760px; color: var(--text2); }
.ssr a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ssr-crumbs { font-size: 14px; color: var(--muted); }
.ssr-list, .ssr-subs, .ssr-secs { margin: 0 0 16px; padding-left: 20px; }
.ssr-list li, .ssr-subs li, .ssr-secs li { margin: 4px 0; }
.ssr-feat { border-collapse: collapse; margin: 0 0 16px; }
.ssr-feat th, .ssr-feat td { padding: 4px 16px 4px 0; text-align: left; font-weight: 400; }
.ssr-feat th { color: var(--muted); }
.ssr img { max-width: 100%; height: auto; border-radius: 12px; margin: 0 0 12px; }

/* 12.11.2026: поля количества — type=number (иначе Keeper вешает на них свой значок); стрелки браузера прячем */
input[type=number]{-moz-appearance:textfield;appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
