/* Страницы v3. Только раскладка; компоненты и токены в rcl3.css */
:root { --hub-robot:#2b6cb0; --hub-radio:#c07a12; --hub-audio:#7a2825; --hub-repair:#1f8a4c; }

/* ---------- Top Nav ---------- */
.topnav { position: sticky; top: 0; z-index: 50; background: var(--bg-card); box-shadow: 0 1px 0 var(--border); }
.topnav-row1 .container { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-8); min-height: 72px; }
.logo img { height: 40px; width: auto; }
.topnav-actions { display: flex; align-items: center; gap: var(--sp-1); }
.topnav-actions .action { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); height: 44px; padding-inline: 12px; border-radius: var(--r-element); font-family: var(--font-heading); font-weight: 500; font-size: 14px; color: var(--text-2); transition: background-color var(--d-hover) ease-out, color var(--d-hover) ease-out; }
.topnav-actions .action:hover { background: var(--bg-hover); color: var(--text); }
.topnav-actions .action svg { width: 20px; height: 20px; }
.topnav-actions .count { min-width: 18px; height: 18px; padding-inline: 5px; border-radius: 9px; background: var(--bg-accent); color: #fff; font: 700 11px/18px var(--font-mono); text-align: center; }
.topnav-actions .count:empty, .topnav-actions .count[data-zero] { display: none; }
.topnav-row2 { border-top: 1px solid var(--border); }
.topnav-row2 .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); min-height: 44px; }
.sections { display: flex; align-items: center; gap: var(--sp-1); }
.sections a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-inline: 12px; white-space: nowrap; border-radius: var(--r-inner); font-family: var(--font-heading); font-weight: 500; font-size: 14px; color: var(--text-2); transition: background-color var(--d-hover) ease-out, color var(--d-hover) ease-out; }
.sections a:hover { background: var(--bg-hover); color: var(--text); }
.sections a[aria-current] { color: var(--text-accent); background: var(--bg-accent-soft); }
.sections .cat-link { color: var(--text); font-weight: 600; margin-inline-end: var(--sp-2); }
.sections .cat-link svg { width: 18px; height: 18px; }
.sections .hub-link::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--dot); }
.stores-line { display: flex; gap: var(--sp-4); font-size: 13px; color: var(--text-3); white-space: nowrap; }
.stores-line b { color: var(--text-2); font-weight: 600; }
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--bg-card); box-shadow: var(--shadow-high); padding: var(--sp-6) 0; z-index: 45; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px var(--sp-6); }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-element); font-size: 14px; transition: background-color 100ms ease-out; }
.mega-item:hover { background: var(--bg-hover); }
.mega-item img { width: 44px; height: 44px; object-fit: contain; border-radius: var(--r-inner); outline: var(--img-outline); outline-offset: -1px; background: #fff; flex: none; }
.mega-item b { display: block; font-weight: 600; line-height: 1.3; }
.mega-item small { color: var(--text-3); font-size: 12px; }
@media (max-width: 1100px) { .stores-line { display: none; } }
@media (max-width: 900px) { .topnav-row1 .container { grid-template-columns: auto 1fr; } .topnav-actions { grid-column: 1 / -1; justify-content: flex-end; } .sections { overflow-x: auto; } }

/* ---------- Подвал ---------- */
.footer { background: var(--bg-surface); padding: var(--sp-16) 0 var(--sp-8); margin-top: var(--sp-24); border-top: 1px solid var(--border); font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr 1fr; gap: var(--sp-8); }
.footer-brand img { height: 36px; }
.footer h4 { font-size: 14px; margin-bottom: var(--sp-3); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); color: var(--text-2); }
.footer li b { display: block; color: var(--text); }
.footer a:hover { color: var(--text-accent); }
.footer-bottom { margin-top: var(--sp-12); padding-top: var(--sp-4); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 13px; }
.lang { display: inline-flex; gap: 2px; }
.lang a { padding: 4px 8px; border-radius: var(--r-inner); }
.lang a[aria-current] { background: var(--bg-inverse); color: #fff; }
@media (max-width: 900px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Главная: hero блочный ---------- */
.hero { padding-block: var(--sp-24) var(--sp-16); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-6); align-items: stretch; }
.hero-block { background: var(--bg-accent); color: #fff; border-radius: var(--r-page); padding: var(--sp-12); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-block::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--red-10); opacity: .6; pointer-events: none; }
.hero-block > * { position: relative; }
.hero-block .display { color: #fff; max-width: 14ch; }
.hero-block .lead { color: var(--red-4); font-size: 18px; max-width: 46ch; }
.hero-block .search { margin-top: var(--sp-8); }
.hero-block .examples { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; margin-top: var(--sp-4); font-size: 13px; color: var(--red-4); }
.hero-block .examples button { height: 32px; padding-inline: 12px; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; font-family: var(--font-mono); font-size: 12px; transition: background-color var(--d-hover) ease-out; }
.hero-block .examples button:hover { background: rgba(255,255,255,.18); }
.hero-parse { margin-top: var(--sp-4); min-height: 32px; display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.hero-parse .chip-param { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.hero-parse .chip-param b { color: #fff; }
.hero-parse .muted { color: var(--red-4); font-size: 13px; }
.hero-hits { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.hero-hit { display: grid; grid-template-columns: 48px 1fr auto; gap: var(--sp-3); align-items: center; background: #fff; color: var(--text); border-radius: var(--r-element); padding: 8px 12px 8px 8px; font-size: 14px; box-shadow: var(--shadow-low); opacity: 0; translate: 0 12px; filter: blur(4px); animation: rise var(--d-medium) var(--ease) forwards; }
.hero-hit img { width: 48px; height: 48px; object-fit: contain; border-radius: var(--r-inner); }
.hero-hit .code { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.hero-hit .price { font-size: 15px; }
.hero-hit .stock { margin-top: 2px; }
.hero-bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--sp-3); }
.hero-bento a { background: var(--bg-card); border-radius: 20px; padding: 12px; box-shadow: var(--shadow-low); display: flex; flex-direction: column; gap: 6px; transition: box-shadow var(--d-hover) ease-out; }
.hero-bento a:hover { box-shadow: var(--shadow-med); }
.hero-bento img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.hero-bento .code { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.hero-bento .n { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-bento .price { font-size: 14px; }
@media (max-width: 1024px) { .hero .container { grid-template-columns: 1fr; } .hero-block .display { font-size: var(--fs-h1); } }

/* Полоса фактов */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); padding-block: var(--sp-8); border-bottom: 1px solid var(--border); }
.fact { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 14px; }
.fact svg { width: 24px; height: 24px; color: var(--text-accent); flex: none; }
.fact b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.fact span { color: var(--text-2); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Категории: бенто */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 168px; gap: var(--sp-4); }
.cat { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); transition: box-shadow var(--d-hover) ease-out; overflow: hidden; }
.cat:hover { box-shadow: var(--shadow-med); }
.cat img { width: 56px; height: 56px; object-fit: contain; }
.cat b { font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.3; }
.cat small { margin-top: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.cat.big { grid-column: span 2; grid-row: span 2; padding: var(--sp-6); }
.cat.big img { width: 120px; height: 120px; }
.cat.big b { font-size: 19px; }
.cat.big p { font-size: 14px; color: var(--text-2); }
@media (max-width: 1024px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; } .cat.big { grid-column: span 2; grid-row: auto; } }

/* Четыре входа */
.entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.entry { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); background: var(--bg-inverse); color: #fff; border-radius: var(--r-page); min-height: 280px; position: relative; overflow: hidden; transition: translate var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease); }
.entry:hover { translate: 0 -2px; box-shadow: var(--shadow-med); }
.entry .mark { width: 40px; height: 6px; border-radius: 3px; background: var(--hub); }
.entry h3 { color: #fff; }
.entry p { color: var(--gray-6); font-size: 14px; }
.entry ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.entry li { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); background: rgba(255,255,255,.1); }
.entry img { position: absolute; right: 20px; top: 20px; width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; }
.entry h3, .entry p { padding-inline-end: 84px; }
@media (max-width: 1024px) { .entries { grid-template-columns: 1fr 1fr; } }

/* Проекты */
.proj { display: flex; flex-direction: column; background: var(--bg-card); border-radius: var(--r-container); padding: var(--sp-2); box-shadow: var(--shadow-low); transition: box-shadow var(--d-hover) ease-out; }
.proj:hover { box-shadow: var(--shadow-med); }
.proj-cover { aspect-ratio: 16/9; border-radius: var(--r-inner); background: var(--bg-inverse); position: relative; overflow: hidden; }
.proj-cover .parts { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px; }
.proj-cover .parts img { background: #fff; border-radius: 6px; object-fit: contain; padding: 6px; width: 100%; height: 100%; }
.proj-cover .badge { position: absolute; left: 12px; top: 12px; }
.proj-body { padding: var(--sp-4) var(--sp-2) var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.proj-body h3 { font-size: 19px; margin-top: 4px; }
.proj-meta { display: flex; gap: var(--sp-4); font-size: 13px; color: var(--text-3); margin-top: auto; padding-top: var(--sp-2); }
.proj-meta b { color: var(--text); font-family: var(--font-mono); font-weight: 600; }
.hub-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.hub-tag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--hub); }

/* Инструменты */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.tool-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); transition: box-shadow var(--d-hover) ease-out; }
.tool-card:hover { box-shadow: var(--shadow-med); }
.tool-card svg { width: 28px; height: 28px; color: var(--text-accent); }
.tool-card h3 { font-size: 19px; }
.tool-card p { font-size: 14px; color: var(--text-2); }
.tool-card .go { margin-top: auto; padding-top: var(--sp-2); font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--text-accent); }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr 1fr; } }

/* Магазины */
.stores { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--sp-6); }
.store-card { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-6); background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); font-size: 14px; }
.store-card b { font-family: var(--font-heading); font-size: 17px; margin-bottom: 4px; }
.store-card .open { color: var(--status-ok-text); font-weight: 700; margin-top: var(--sp-2); }
.store-card .btn { margin-top: auto; align-self: flex-start; }
.store-map { border-radius: var(--r-container); overflow: hidden; box-shadow: var(--shadow-low); background: var(--bg-surface); min-height: 240px; }
.store-map iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }
@media (max-width: 900px) { .stores { grid-template-columns: 1fr 1fr; } .store-map { grid-column: 1 / -1; } }

/* ---------- Крошки и заголовки страниц ---------- */
.crumbs { display: flex; gap: var(--sp-2); flex-wrap: wrap; font-size: 13px; color: var(--text-3); padding-block: var(--sp-4); }
.crumbs span::before { content: "/"; margin-inline-end: var(--sp-2); color: var(--border-strong); }
.crumbs a:hover { color: var(--text-accent); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.page-head p { margin-top: var(--sp-2); color: var(--text-3); }

/* ---------- Каталог ---------- */
.subcats { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.catalog-layout { display: grid; grid-template-columns: 264px 1fr; gap: var(--sp-8); align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); }
.toolbar { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; padding-bottom: var(--sp-4); margin-bottom: var(--sp-6); border-bottom: 1px solid var(--border); }
.toolbar .found { font-size: 14px; color: var(--text-2); }
.toolbar .found b { font-family: var(--font-mono); color: var(--text); }
.toolbar .select { width: auto; height: 40px; }
.toolbar .spacer { flex: 1; }
.active-chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.pager { display: flex; justify-content: center; gap: var(--sp-1); padding-top: var(--sp-8); }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; border-radius: var(--r-inner); font-family: var(--font-mono); }
.pager button[aria-current] { background: var(--bg-inverse); color: #fff; border-color: var(--bg-inverse); }
.frange { display: flex; gap: var(--sp-2); align-items: center; }
.frange .input { height: 36px; padding-inline: 10px; font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 900px) { .catalog-layout { grid-template-columns: 1fr; } .filters { position: static; } }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: 7fr 5fr; gap: var(--sp-12); align-items: start; }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-3); }
.gallery .thumbs { display: flex; flex-direction: column; gap: var(--sp-2); }
.gallery .thumbs img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-inner); padding: 6px; background: #fff; box-shadow: var(--shadow-low); cursor: pointer; }
.gallery .thumbs img[aria-current] { box-shadow: 0 0 0 2px var(--red-9); }
.gallery .main { aspect-ratio: 1; border-radius: var(--r-container); background: #fff; box-shadow: var(--shadow-low); display: grid; place-items: center; overflow: hidden; }
.gallery .main img { width: 82%; height: 82%; object-fit: contain; }
.p-title { margin-bottom: var(--sp-6); }
.p-title .meta { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--text-3); margin-top: var(--sp-2); }
.p-title .meta .code { font-family: var(--font-mono); color: var(--text); font-size: 16px; }
.buybox { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-4); }
.buybox .price-big { font-family: var(--font-mono); font-size: var(--fs-section); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.buybox .price-big small { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--text-3); margin-inline-start: 6px; }
.buybox .buy-row { display: flex; gap: var(--sp-3); }
.buybox .buy-row .btn { flex: 1; }
.buybox .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.p-tabs { grid-column: 1 / -1; margin-top: var(--sp-8); }
.p-tabs .tabpanel { padding-top: var(--sp-6); }
.related { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--sp-16); margin-top: var(--sp-8); }
.rel h2 + p { margin-top: var(--sp-2); }
.rel .pgrid { margin-top: var(--sp-6); }
.files { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.files a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border-radius: var(--r-element); background: var(--bg-surface); font-size: 14px; font-weight: 600; }
.files a:hover { background: var(--bg-hover); }
.files svg { width: 16px; height: 16px; }
.qa { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 72ch; }
.qa .q { font-weight: 700; } .qa .a { color: var(--text-2); font-size: 14px; margin-top: 4px; } .qa .who { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.review { display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4); padding-block: var(--sp-4); border-bottom: 1px solid var(--border); max-width: 72ch; }
.review img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-inner); outline: var(--img-outline); outline-offset: -1px; }
.stars { color: var(--status-low); letter-spacing: 2px; font-size: 14px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .buybox { position: static; } }

/* ---------- Поиск ---------- */
.parsed { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--text-2); margin-top: var(--sp-3); }
.groups { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.noresult { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.ext { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
.ext div { padding: var(--sp-3); border-radius: var(--r-element); background: var(--bg-surface); font-size: 14px; }
.ext b { display: block; font-family: var(--font-heading); }
.ext span { color: var(--text-3); font-size: 13px; }
@media (max-width: 900px) { .noresult { grid-template-columns: 1fr; } }

/* ---------- Сравнение ---------- */
.cmp-table th:first-child, .cmp-table td:first-child { color: var(--text-3); width: 180px; }
.cmp-table img { width: 120px; height: 120px; object-fit: contain; border-radius: var(--r-inner); outline: var(--img-outline); outline-offset: -1px; margin-bottom: 8px; }
.cmp-table tr[data-diff] td:not(:first-child) { background: var(--red-1); }

/* ---------- Корзина ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-8); align-items: start; }
.cart-row { grid-template-columns: 56px 1fr 150px 130px 110px 40px; }
.cart-row .n { font-size: 14px; line-height: 1.35; }
.cart-row .n .code { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.cart-row .unit { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.cart-row .sum { font-family: var(--font-mono); font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.summary { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-3); }
.summary .line { display: flex; justify-content: space-between; font-size: 14px; }
.summary .total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-title); font-weight: 600; padding-top: var(--sp-3); border-top: 1px solid var(--border); }
.pickup { display: flex; flex-direction: column; gap: var(--sp-2); }
.radio-card { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-element); border: 1px solid var(--border); cursor: pointer; transition: border-color var(--d-hover) ease-out, background-color var(--d-hover) ease-out; }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card:has(input:checked) { border-color: var(--red-9); background: var(--red-1); }
.radio-card input { margin-top: 4px; accent-color: var(--red-9); }
.radio-card .t { font-weight: 700; font-size: 14px; }
.radio-card .s { font-size: 13px; color: var(--text-3); }
.checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.pay { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } .checkout-steps { grid-template-columns: 1fr; } }

/* ---------- Хабы ---------- */
.hub-band { background: var(--bg-inverse); color: #fff; padding-block: var(--sp-16); position: relative; overflow: hidden; }
.hub-band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--hub); }
.hub-band .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: var(--sp-8); align-items: center; }
.hub-band h1 { color: #fff; font-size: var(--fs-large); line-height: 1.1; font-weight: 700; }
.hub-band p { color: var(--gray-6); font-size: 17px; }
.hub-band .kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--gray-6); margin-bottom: var(--sp-4); }
.hub-band .kicker::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--hub); }
.hub-nav { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-6); }
.hub-nav a { height: 40px; display: inline-flex; align-items: center; padding-inline: 16px; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.22); font-family: var(--font-heading); font-weight: 500; font-size: 14px; transition: background-color var(--d-hover) ease-out, border-color var(--d-hover) ease-out; }
.hub-nav a:hover { background: rgba(255,255,255,.08); border-color: var(--hub); }
.hub-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.hub-shelf a { background: #fff; border-radius: 16px; padding: 10px; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.hub-shelf img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.hub-shelf .code { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.hub-shelf .price { font-size: 13px; }
@media (max-width: 900px) { .hub-band .container { grid-template-columns: 1fr; } }
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.platform { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2); background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); }
.platform img { width: 100%; aspect-ratio: 16/10; object-fit: contain; border-radius: var(--r-inner); background: #fff; }
.platform .pb { padding: var(--sp-2) var(--sp-2) var(--sp-3); }
.platform b { font-family: var(--font-heading); font-size: 16px; display: block; }
.platform span { font-size: 13px; color: var(--text-3); }
.compat { background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); overflow: hidden; }
.compat-head { padding: var(--sp-4) var(--sp-6); background: var(--bg-surface); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); }
.compat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.compat-col { padding: var(--sp-4) var(--sp-5); border-inline-end: 1px solid var(--border); }
.compat-col:last-child { border: 0; }
.compat-col h4 { font-size: 13px; color: var(--text-3); margin-bottom: var(--sp-2); }
.compat-item { display: flex; gap: 10px; align-items: center; padding-block: 8px; font-size: 13px; }
.compat-item img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; outline: var(--img-outline); outline-offset: -1px; }
.compat-item .ok { color: var(--status-ok-text); font-size: 12px; font-weight: 700; }
.kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.kit { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); }
.kit .parts { display: flex; gap: 6px; }
.kit .parts img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; outline: var(--img-outline); outline-offset: -1px; }
.kit h3 { font-size: 19px; }
.kit .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--sp-2); }
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.guide { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); background: var(--bg-card); border-radius: var(--r-container); box-shadow: var(--shadow-low); transition: box-shadow var(--d-hover) ease-out; }
.guide:hover { box-shadow: var(--shadow-med); }
.guide .dev { font-size: 13px; color: var(--text-3); }
.guide h3 { font-size: 19px; }
.guide .meta { display: flex; gap: var(--sp-4); font-size: 13px; color: var(--text-3); margin-top: auto; padding-top: var(--sp-2); }
@media (max-width: 900px) { .platforms, .kits, .guides { grid-template-columns: 1fr 1fr; } .compat-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Проект, гайд ---------- */
.project-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-8); align-items: center; }
.project-head .cover { border-radius: var(--r-page); aspect-ratio: 16/10; background: var(--bg-inverse); position: relative; overflow: hidden; }
.project-head .cover .parts { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8px; padding: 16px; }
.project-head .cover .parts img { background: #fff; border-radius: 10px; object-fit: contain; padding: 8px; width: 100%; height: 100%; }
.project-layout { display: grid; grid-template-columns: 1fr 400px; gap: var(--sp-12); align-items: start; margin-top: var(--sp-12); }
.project-side { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-6); }
.bom-row { grid-template-columns: 44px 1fr auto auto; }
.bom-row .q { font-family: var(--font-mono); color: var(--text-2); }
.bom-row .p { font-family: var(--font-mono); font-weight: 600; text-align: end; }
.bom-row .alt { font-size: 12px; color: var(--text-link); cursor: pointer; }
.bom-total { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-4); }
.bom-total .sum { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-title); }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: var(--sp-8); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-4); }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--bg-inverse); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; }
.step h3 { font-size: 19px; margin-top: 8px; }
.step p { margin-top: var(--sp-2); color: var(--text-2); }
.video { aspect-ratio: 16/9; border-radius: var(--r-container); background: var(--bg-inverse); display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow-med); }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.video .play { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--bg-accent); color: #fff; display: grid; place-items: center; }
.video .play svg { width: 28px; height: 28px; translate: 2px 0; }
.video .len { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 12px; color: #fff; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 900px) { .project-head, .project-layout { grid-template-columns: 1fr; } .project-side { position: static; } }

/* ---------- Инструменты: BOM, конструктор, замена, калькуляторы ---------- */
.two-col { display: grid; grid-template-columns: 420px 1fr; gap: var(--sp-8); align-items: start; }
.builder { display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-8); align-items: start; }
.block-step { display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-4); padding-block: var(--sp-6); border-bottom: 1px solid var(--border); }
.block-step .no { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-inverse); color: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 700; }
.block-step h3 { font-size: 19px; }
.block-step .desc { font-size: 14px; color: var(--text-2); margin-top: 4px; margin-bottom: var(--sp-4); }
.opts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.opt { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-2); background: var(--bg-card); border-radius: var(--r-element); box-shadow: var(--shadow-low); text-align: start; border: 0; font-size: 13px; cursor: pointer; transition: box-shadow var(--d-hover) ease-out; }
.opt:hover { box-shadow: var(--shadow-low-hover); }
.opt[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--red-9); }
.opt img { width: 100%; height: 80px; object-fit: contain; border-radius: 6px; }
.opt b { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt .fit { color: var(--status-ok-text); font-size: 12px; font-weight: 700; }
.opt .nofit { color: var(--text-accent); font-size: 12px; font-weight: 700; }
.spec-box { position: sticky; top: calc(var(--nav-h) + var(--sp-4)); display: flex; flex-direction: column; gap: var(--sp-2); }
.kv { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: 14px; padding-block: 8px; border-bottom: 1px solid var(--border); }
.kv b { font-family: var(--font-mono); font-weight: 600; text-align: end; }
.warn { font-size: 13px; color: var(--text-accent); }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.calc .fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-4); }
.calc .out { font-family: var(--font-mono); font-size: var(--fs-title); font-weight: 600; padding: var(--sp-3) var(--sp-4); background: var(--bg-surface); border-radius: var(--r-element); margin-top: var(--sp-4); }
.calc .out small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--text-2); margin-top: 4px; }
.calc .hits { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.calc .hit { display: grid; grid-template-columns: 36px 1fr auto; gap: 8px; align-items: center; font-size: 13px; padding: 6px; border-radius: var(--r-inner); background: var(--bg-surface); }
.calc .hit img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.bom-status { display: inline-flex; height: 24px; align-items: center; padding-inline: 8px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bom-status[data-s="ok"] { background: var(--status-ok-bg); color: var(--status-ok-text); }
.bom-status[data-s="alt"] { background: var(--status-low-bg); color: var(--status-low-text); }
.bom-status[data-s="order"] { background: var(--status-info-bg); color: var(--status-info-text); }
.bom-status[data-s="none"] { background: var(--bg-surface); color: var(--text-3); }
@media (max-width: 900px) { .two-col, .builder { grid-template-columns: 1fr; } .spec-box { position: static; } .calc-grid { grid-template-columns: 1fr; } .opts-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Кабинет, QR, контакты ---------- */
.acc-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--sp-8); align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-nav a { height: 40px; display: flex; align-items: center; padding-inline: 12px; border-radius: var(--r-inner); font-size: 14px; font-weight: 600; color: var(--text-2); }
.acc-nav a:hover { background: var(--bg-hover); color: var(--text); }
.acc-nav a[aria-current] { background: var(--bg-accent-soft); color: var(--text-accent); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.stat { padding: var(--sp-4); background: var(--bg-card); border-radius: var(--r-element); box-shadow: var(--shadow-low); }
.stat b { display: block; font-family: var(--font-mono); font-size: var(--fs-title); font-weight: 600; }
.stat span { font-size: 13px; color: var(--text-3); }
.phone { width: 390px; margin-inline: auto; border: 10px solid var(--gray-12); border-radius: 44px; overflow: hidden; background: #fff; box-shadow: var(--shadow-high); }
.phone .bar { height: 32px; background: var(--gray-12); }
.phone .screen { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); font-size: 14px; }
.phone .ph { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; outline: var(--img-outline); outline-offset: -1px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.req td { padding: 6px 12px 6px 0; font-size: 14px; }
.req td:first-child { color: var(--text-3); }
.req td:last-child { font-family: var(--font-mono); }
@media (max-width: 900px) { .acc-layout { grid-template-columns: 1fr; } .stat-row { grid-template-columns: 1fr 1fr; } .contact-grid { grid-template-columns: 1fr; } }
