/* Витрина NULL. Токены и шрифты — те же, что в lk3, чтобы страница читалась как часть системы.
   Компоновка — исходная трёхколоночная: каталог слева, карточка селлера в центре, информация справа. */
:root,[data-theme='light']{--bg:#fafafa;--surface:#fff;--surface-2:#f5f6f8;--surface-offset:#eef0f4;--border:#e1e4e9;--text:#17181a;--muted:#666c75;--faint:#9297a0;--accent:#2447f5;--shadow:0 10px 30px rgba(18,28,45,.07);--font:'Satoshi',Arial,sans-serif;--mono:'JetBrains Mono',monospace;--r:14px;--t:180ms cubic-bezier(.16,1,.3,1);--ok:#1e7d3c}
[data-theme='dark']{--bg:#101113;--surface:#17181b;--surface-2:#1d1f23;--surface-offset:#24262b;--border:#2c2f35;--text:#e8e9e7;--muted:#a3a6ac;--faint:#72767d;--accent:#6c85ff;--shadow:0 12px 30px rgba(0,0,0,.22);--ok:#5cb87a}

*{box-sizing:border-box}
html{color-scheme:light;scroll-behavior:smooth}
html[data-theme='dark']{color-scheme:dark}
body{margin:0;min-width:320px;min-height:100dvh;overflow-x:hidden;display:flex;flex-direction:column;background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
h1,h2,h3,h4,p{margin:0}
ul{margin:0;padding:0}
ul[role='list']{list-style:none}
a{color:inherit}
[hidden]{display:none!important}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.skip-link{position:absolute;top:-50px;left:16px;background:var(--accent);color:#fff;padding:8px 12px;border-radius:8px;z-index:30}
.skip-link:focus{top:16px}

/* ---------- шапка ---------- */
.topbar{position:sticky;top:0;z-index:20;min-height:64px;padding:10px clamp(14px,4vw,40px);display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--bg) 90%,transparent);backdrop-filter:blur(12px)}
.topbar-left{display:flex;align-items:center;gap:18px;min-width:0}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--text)}
.brand-mark{width:26px;height:26px;flex:none;color:var(--accent)}
.brand-name{font-size:19px;font-weight:700;letter-spacing:.14em}
.topbar-nav{display:flex;align-items:center;gap:4px}
.nav-link{padding:7px 11px;border-radius:9px;font-size:13px;font-weight:500;color:var(--muted);text-decoration:none}
.nav-link:hover{color:var(--text);background:var(--surface-offset)}
.topbar-actions{display:flex;align-items:center;gap:8px}
.icon-btn{width:36px;height:36px;flex:none;border:1px solid var(--border);border-radius:10px;background:var(--surface);display:grid;place-items:center}
.icon-btn:hover{background:var(--surface-offset)}
.icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:9px 13px;font-size:12px;font-weight:700;white-space:nowrap;text-decoration:none;transition:background var(--t),border-color var(--t),color var(--t)}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(1.08)}
.btn-outline{border:1px solid var(--border);background:var(--surface);color:var(--text)}
.btn-outline:hover{background:var(--surface-offset)}
.btn:active{transform:translateY(1px)}
.btn-wide{width:100%;padding:11px 13px}

/* ---------- каркас: три колонки ---------- */
.layout{flex:1;width:100%;max-width:1400px;margin-inline:auto;display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr) minmax(230px,264px);gap:24px;padding:24px clamp(14px,4vw,32px) 48px}
/* правой колонки может не быть совсем: владелец не заполнил ни один блок */
.layout:has(>.infobar[hidden]){grid-template-columns:minmax(260px,330px) minmax(0,1fr)}

/* ---------- левая колонка: каталог ---------- */
.catalog{min-width:0}
.catalog-head{margin-bottom:14px}
.catalog-title{font-size:21px;font-weight:700;letter-spacing:-.02em}
.catalog-sub{font-size:12px;color:var(--muted);margin-top:2px}
.chip-filters{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.f-group{display:flex;flex-direction:column;gap:6px;min-width:0}
.f-label{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--faint)}
.f-chips{display:flex;flex-wrap:wrap;gap:6px}
.f-chip{padding:4px 11px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:500;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.f-chip:hover{background:var(--surface-offset);color:var(--text)}
.f-chip.active{background:var(--text);color:var(--bg);border-color:var(--text)}

.seller-list{display:flex;flex-direction:column;gap:8px}
.seller-item{display:flex;flex-direction:column;gap:4px;padding:11px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);text-decoration:none;color:inherit;transition:border-color var(--t),background var(--t),box-shadow var(--t)}
.seller-item:hover{border-color:var(--faint);box-shadow:var(--shadow)}
.seller-item.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
.seller-row1{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.seller-name{font-weight:700;font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seller-lines{font-size:12px;color:var(--ok);white-space:nowrap}
.seller-row2{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.seller-lots{font-size:12px;color:var(--muted)}
.tag{display:inline-flex;align-items:center;padding:1px 9px;border-radius:999px;border:1px solid var(--border);background:var(--surface-2);font-size:12px;font-weight:500;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---------- центр: карточка селлера ---------- */
.detail{min-width:0}
.detail-card{border:1px solid var(--border);border-radius:var(--r);background:var(--surface);padding:clamp(16px,3vw,28px);box-shadow:var(--shadow)}
.detail-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid var(--border)}
.detail-id{display:flex;align-items:flex-start;gap:14px;min-width:0;flex:1 1 260px}
.detail-idtext{min-width:0}
.detail-tags{display:flex;gap:6px;margin-bottom:6px;flex-wrap:wrap}
.detail-name{font-size:clamp(24px,3vw,32px);font-weight:700;line-height:1.15;letter-spacing:-.03em;overflow-wrap:anywhere}
.detail-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:13px;color:var(--muted)}
.dot{color:var(--faint)}
.detail-lines{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none}
.lines-num{font-size:clamp(24px,3vw,32px);font-weight:600;line-height:1.1;color:var(--ok)}
.lines-label{font-size:12px;color:var(--muted)}
.lines-bar{display:block;width:140px;max-width:100%;height:5px;margin-top:7px;border-radius:999px;background:var(--surface-offset);overflow:hidden}
.lines-bar-fill{display:block;height:100%;border-radius:999px;background:var(--ok)}
.lines-busy{margin-top:4px;font-size:12px;color:var(--faint)}

.block{margin-top:22px}
.block-title{font-size:16px;font-weight:700;letter-spacing:-.01em;margin-bottom:10px}
.chip-row{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--border);background:var(--surface-2);padding:4px 8px;border-radius:7px;font-size:11px;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis}
.chip b{color:var(--text);font-weight:600}
.platform-links{display:flex;flex-wrap:wrap;gap:8px}
.platform-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border:1px solid var(--border);border-radius:999px;background:var(--bg);font-size:13px;font-weight:500;color:var(--text);text-decoration:none;transition:border-color var(--t),color var(--t)}
.platform-chip:hover{border-color:var(--accent);color:var(--accent)}
.platform-chip.is-plain{color:var(--muted)}

/* ---------- предложения ---------- */
.offers{margin-top:22px}
.offer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,168px),1fr));gap:12px}
.offer-card{display:flex;flex-direction:column;gap:6px;text-align:left;min-width:0;padding:13px;border:1px solid var(--border);border-radius:12px;background:var(--surface);transition:border-color var(--t),background var(--t),box-shadow var(--t)}
.offer-card:hover{border-color:var(--faint);box-shadow:var(--shadow)}
.offer-card.selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface));box-shadow:0 0 0 1px var(--accent)}
.offer-type{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.offer-name{font-size:14px;font-weight:700;line-height:1.3}
.offer-bottom{margin-top:auto;padding-top:8px}
.offer-price{display:flex;align-items:baseline;gap:6px;font-size:18px;font-weight:600;letter-spacing:-.03em}
.offer-per{font-style:normal;font-size:11px;font-weight:400;color:var(--muted);font-family:var(--font)}

/* ---------- о товаре ---------- */
.about-block{margin-top:28px;padding-top:22px;border-top:1px solid var(--border)}
.about-title{font-size:19px;font-weight:700;letter-spacing:-.02em;margin-bottom:8px}
.about-lead{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.about-text{max-width:62ch;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.about-rows{display:flex;flex-direction:column;gap:1px;margin-top:16px;background:var(--border);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.about-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;background:var(--surface)}
.about-k{font-size:13px;color:var(--muted)}
.about-v{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;font-size:14px}

/* ---------- связь с селлером (вместо кнопки покупки: платежей у площадки нет) ---------- */
.contact-block{margin-top:22px;padding:16px;border-radius:12px;background:var(--surface-offset);display:flex;flex-direction:column;gap:14px}
.contact-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.contact-id{display:flex;flex-direction:column;min-width:0}
.contact-label{font-size:11px;color:var(--muted)}
.contact-name{font-size:16px;font-weight:600;overflow-wrap:anywhere}
.contact-price{display:flex;align-items:baseline;gap:6px;font-size:18px;font-weight:600;letter-spacing:-.03em}
.contact-price i{font-style:normal;font-size:11px;font-weight:400;color:var(--muted);font-family:var(--font)}
.contact-note{font-size:12px;color:var(--muted)}
.contact-actions{display:flex;gap:10px;flex-wrap:wrap}
.contact-actions .btn{flex:1 1 200px}

/* ---------- аватарки ---------- */
.av{flex:none;display:grid;place-items:center;color:#fff;font-family:var(--mono);font-weight:600;border-radius:12px;overflow:hidden}
.av.lg{width:54px;height:54px;font-size:17px;border-radius:16px}
.av.has-img{background:var(--surface-2)}
.av img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- правая колонка ---------- */
.infobar{display:flex;flex-direction:column;gap:16px;align-self:start;min-width:0}
.info-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:18px;box-shadow:var(--shadow)}
.info-title{margin-bottom:14px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.patron-list{display:flex;flex-direction:column;gap:10px}
.patron-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;min-width:0}
.patron-list li>:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-list{display:flex;flex-direction:column;gap:9px}
.link-list li{display:flex;flex-direction:column;gap:1px;font-size:13px;min-width:0}
.link-list a,.patron-list a{color:var(--accent);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-list a:hover,.patron-list a:hover{text-decoration:underline}
.link-note{font-size:11px;color:var(--faint);white-space:nowrap}
.patron-list .link-note{font-weight:600;color:var(--muted)}

/* ---------- пустые состояния ---------- */
.empty-box,.detail-empty{display:grid;justify-items:center;text-align:center;gap:7px;padding:32px 16px;border:1px dashed var(--border);border-radius:var(--r);color:var(--muted)}
.detail-empty{min-height:420px;align-content:center;color:var(--faint)}
.empty-glyph{font-size:24px;color:var(--faint);line-height:1}
.empty-box b,.detail-empty b{color:var(--text);font-size:15px}
.empty-box span,.detail-empty span{font-size:13px;max-width:460px}
.empty-box .btn,.detail-empty .btn{margin-top:6px}

/* ---------- подвал ---------- */
.footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:14px clamp(14px,4vw,40px);border-top:1px solid var(--border);font-size:12px;color:var(--muted)}

/* ---------- узкие экраны ---------- */
@media(max-width:1150px){
  .layout,.layout:has(>.infobar[hidden]){grid-template-columns:minmax(240px,320px) minmax(0,1fr)}
  .infobar{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
}
@media(max-width:860px){
  .layout,.layout:has(>.infobar[hidden]){grid-template-columns:minmax(0,1fr);gap:20px}
  .infobar{grid-column:auto;grid-template-columns:minmax(0,1fr)}
  .detail-empty{min-height:200px}
  .seller-list{max-height:none}
}
@media(max-width:600px){
  body{font-size:14px}
  .topbar{min-height:56px;padding:8px 14px;flex-wrap:wrap;row-gap:8px}
  .topbar-left{gap:10px}
  .brand-name{font-size:17px}
  .topbar-actions{gap:6px;margin-left:auto}
  .topbar-actions .btn{padding:8px 10px;font-size:11px}
  .icon-btn{width:32px;height:32px}
  .layout{padding:18px 14px 36px}
  .detail-card{padding:16px}
  .detail-top{gap:12px}
  .detail-lines{align-items:flex-start}
  .detail-id{gap:11px}
  .av.lg{width:44px;height:44px;font-size:14px;border-radius:13px}
  .offer-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,148px),1fr))}
  .about-row{justify-content:flex-start}
  .about-v{justify-content:flex-start}
  .contact-actions .btn{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
