/* Стили витрины каталога «Quant Electronics» — палитра «техно-синий» */

:root {
    --brand: #2563eb;        /* основной синий */
    --brand-dark: #1d4ed8;   /* синий для наведения/акцентов */
    --accent: #0ea5e9;       /* голубой «сигнал» */
    --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);  /* фирменный градиент «Электрик» */
    --ink: #0f1b2e;          /* тёмный текст */
    --muted: #64748b;        /* приглушённый серый */
    --line: #e2e8f0;         /* линии/границы */
    --bg: #f4f7fc;           /* фон страницы */
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Шапка (в стиле Чип и Дип) ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }

/* Верхняя строка */
.topbar { background: #f1f5f9; border-bottom: 1px solid var(--line); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 7px 20px; color: var(--muted); }
.topbar-city { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-phone { color: var(--ink); font-weight: 700; }
.topbar-phone:hover { color: var(--brand); }

/* Основная строка */
.header-inner { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; white-space: nowrap; letter-spacing: -.01em; flex-shrink: 0;
    color: var(--brand); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo svg { display: block; flex-shrink: 0; -webkit-text-fill-color: initial; }
.logo-word { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-main { font-size: 1em; }
.logo-sub { font-size: .4em; font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
    margin-top: 3px; color: var(--muted); -webkit-text-fill-color: var(--muted); background: none; }

/* Кнопка «Каталог» + выпадающее меню */
.cat-menu { position: relative; flex-shrink: 0; }
.cat-btn { list-style: none; display: inline-flex; align-items: center; gap: 8px; background: var(--grad); color: #fff;
    font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 11px; cursor: pointer; user-select: none; white-space: nowrap; }
.cat-btn::-webkit-details-marker { display: none; }
.cat-menu[open] .cat-btn { filter: brightness(.93); }
.cat-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 14px 34px rgba(27,36,48,.18); padding: 8px; min-width: 250px; z-index: 30; display: flex; flex-direction: column; }
.cat-dd-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.cat-dd-item:hover { background: #eef4ff; color: var(--brand); }
.cat-dd-ico { width: 26px; height: 26px; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.cat-dd-ico .icon { width: 22px; height: 22px; }
.cat-dd-all { padding: 11px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 700; font-size: 14px; }

/* Поиск */
.search { display: flex; flex: 1; min-width: 200px; position: relative; align-items: stretch; }
.search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { flex: 1; border: 2px solid var(--brand); border-right: none; border-radius: 12px 0 0 12px;
    padding: 11px 14px 11px 42px; font-size: 15px; outline: none; min-width: 0; }
.search button { border: none; background: var(--grad); color: #fff; padding: 0 26px; border-radius: 0 12px 12px 0;
    font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.search button:hover { filter: brightness(.93); }

/* Действия справа (кабинет, корзина) */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.haction { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink);
    font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 10px; min-width: 66px; }
.haction:hover { background: #f1f5f9; color: var(--brand); }
.cart-ico-wrap { position: relative; display: inline-flex; }
.cart-count { position: absolute; top: -6px; right: -8px; background: var(--grad); color: #fff;
    font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.cart-action span:last-child { white-space: nowrap; }

/* Шапка на планшетах/телефонах */
@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .search { order: 3; flex-basis: 100%; }
    .topbar-hours { display: none; }
}
@media (max-width: 560px) {
    .haction span:last-child { display: none; }
    .cart-action span:last-child { display: inline; }
    .topbar-city { font-size: 12px; }
}

.page { padding: 28px 20px 60px; }

/* Градиентный баннер на главной */
.hero { background: var(--grad); border-radius: 18px; padding: 44px 40px; margin-bottom: 28px;
    color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
    background: rgba(255,255,255,.12); border-radius: 50%; }
.hero-title { font-size: 32px; font-weight: 800; margin: 0 0 10px; line-height: 1.15; letter-spacing: -.02em; position: relative; }
.hero-sub { font-size: 16px; opacity: .93; margin: 0; max-width: 580px; position: relative; }
.hero-badges { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; position: relative; }
.hero-badges span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28);
    padding: 7px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; }
@media (max-width: 860px) { .hero { padding: 30px 22px; } .hero-title { font-size: 24px; } }

/* Раскладка каталога */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; }

.sidebar h2 { font-size: 14px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; margin: 0 0 12px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { margin-bottom: 2px; }
.cat-list a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 15px;
}
.cat-list a:hover { background: #eef1f5; }
.cat-list a.active { background: var(--grad); color: #fff; font-weight: 600; }

.content-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.content-head h1 { font-size: 26px; margin: 0; }
.count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.subcat-list { list-style: none; margin: 4px 0 8px; padding: 0 0 0 12px; border-left: 2px solid var(--border, #e2e6ec); }
.subcat-list li a { display: block; padding: 5px 10px; font-size: 13px; color: var(--muted, #6b7280); text-decoration: none; border-radius: 6px; }
.subcat-list li a:hover { color: var(--accent, #2f6bff); }
.subcat-list li a.active { color: var(--accent, #2f6bff); font-weight: 600; }
.head-tools { display: flex; align-items: center; gap: 14px; white-space: nowrap; }

/* Переключатель вида (сетка/таблица) */
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.view-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px;
    color: var(--muted); background: #fff; }
.view-btn + .view-btn { border-left: 1px solid var(--line); }
.view-btn:hover { color: var(--brand); background: #f1f5f9; }
.view-btn.active { background: var(--grad); color: #fff; }

/* Табличный (технический) вид каталога */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.catalog-table { border-collapse: collapse; width: 100%; min-width: 760px; }
.catalog-table thead th { background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.catalog-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.catalog-table tbody tr:last-child td { border-bottom: none; }
.catalog-table tr:hover td { background: #f8fbff; }
.ct-img { width: 56px; }
.ct-img a { display: block; width: 44px; height: 44px; background: #fafbfc; border-radius: 6px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; }
.ct-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ct-img .part-illustration { width: 80%; height: 80%; }
.ct-sku { color: var(--muted); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; white-space: nowrap; }
.ct-name { color: var(--ink); font-weight: 600; }
.ct-name:hover { color: var(--brand); }
.ct-stock { white-space: nowrap; }
.ct-term { font-size: 11px; color: var(--muted); margin-top: 3px; }
.buy-term { color: var(--muted); font-weight: 400; font-size: 14px; }
.ct-price { font-weight: 800; color: var(--ink); white-space: nowrap; text-align: right; }
.ct-act { width: 160px; white-space: nowrap; text-align: right; }
.ct-act form { display: inline-block; vertical-align: middle; margin: 0 0 0 6px; }
.ct-act .btn-add { width: auto; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.ct-act .btn-compare { width: 36px; height: 34px; }
@media (max-width: 720px) { .view-switch { display: none; } }
.stock-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 7px 14px;
    border: 1px solid var(--border, #d5dae2); border-radius: 999px; color: var(--fg, #1f2937);
    background: #fff; text-decoration: none; transition: all .15s; }
.stock-toggle:hover { border-color: var(--accent, #2f6bff); color: var(--accent, #2f6bff); }
.stock-toggle.active { background: var(--accent, #2f6bff); border-color: var(--accent, #2f6bff); color: #fff; }

/* Сетка товаров */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.card { position: relative; }
.card:hover { box-shadow: 0 8px 24px rgba(27,36,48,.10); transform: translateY(-2px); }
.card-fav { position: absolute; top: 10px; right: 10px; z-index: 3; }
.card-fav form { margin: 0; }
.fav-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
    color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 2px 8px rgba(15,27,46,.08); transition: color .15s, border-color .15s; }
.fav-btn .icon { width: 18px; height: 18px; }
.fav-btn:hover { color: #ef4444; border-color: #ef4444; }
.fav-btn.active { color: #ef4444; border-color: #ef4444; }
.fav-btn.active svg { fill: #ef4444; }
.link-compare.fav.active svg { fill: #ef4444; }
.link-compare.fav.active { color: #ef4444; }
.card-link { display: flex; flex-direction: column; color: inherit; flex: 1; }
.card-img {
    height: 200px;
    flex: 0 0 200px;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.no-img { color: #b7bfc9; font-size: 14px; }
.no-img.big { font-size: 18px; padding: 60px; }
.part-illustration { width: 72%; height: 72%; max-width: 200px; }
.detail-main-img .part-illustration { width: 56%; height: 56%; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-sku { font-size: 12px; color: var(--muted); }
.card-name { font-size: 14px; font-weight: 600; flex: 1; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.price { font-size: 17px; font-weight: 800; color: var(--ink); }
.stock { font-size: 12px; padding: 3px 8px; border-radius: 20px; }
.stock.in { background: var(--grad); color: #fff; }
.stock.out { background: #fdeede; color: #b6741a; }
.price-wrap { display: flex; flex-direction: column; gap: 1px; }
.price.sale { color: #ef4444; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.badge-sale { background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.card-avail { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 8px; flex-wrap: wrap; }
.card-avail b { font-weight: 700; }
.card-avail.in { color: #16a34a; }
.card-avail.order { color: #b6741a; }
.avail-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.avail-term { color: var(--muted); font-weight: 400; }

.pagination { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 32px; color: var(--muted); }
.pagination a { color: var(--brand); font-weight: 600; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Карточка товара */
.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand); }

.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.detail-main-img {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.detail-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; }

.detail-info h1 { font-size: 26px; margin: 0 0 12px; }
.detail-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.detail-meta b { color: var(--ink); }
.lead { font-size: 16px; color: #3a4552; }

.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.buy-price { font-size: 30px; font-weight: 800; }
.buy-stock { font-size: 14px; margin: 6px 0 16px; }
.buy-stock.in { color: var(--brand-dark); }
.buy-stock.out { color: #b6741a; }
.btn-buy {
    width: 100%; border: none; background: var(--grad); color: #fff;
    padding: 14px; font-size: 16px; font-weight: 700; border-radius: 10px; cursor: pointer;
}
.btn-buy:hover { filter: brightness(.93); }
.btn-buy:disabled { background: #b9c3cc; filter: none; cursor: not-allowed; }
.buy-form { display: flex; gap: 12px; align-items: stretch; }
.buy-form .qty { flex-shrink: 0; }
.buy-form .btn-buy { flex: 1; }
.datasheet { color: var(--brand); font-weight: 600; }

.specs, .description { margin-top: 40px; }
.specs h2, .description h2 { font-size: 20px; margin-bottom: 14px; }
.specs table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs th { width: 40%; color: var(--muted); font-weight: 600; background: #fafbfc; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: none; }
.desc-text { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* ===== Лендинг (главная) ===== */

/* Иконки (линейные SVG) */
.icon { width: 24px; height: 24px; display: block; flex-shrink: 0; }

/* Акции */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.promo { border-radius: 18px; padding: 22px 24px; color: #fff; display: flex; flex-direction: column;
    min-height: 150px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.promo:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(27,36,48,.16); }
.promo-big { grid-column: span 2; grid-row: span 2; min-height: 316px; padding: 32px 34px; }
.promo-icon { margin-bottom: 12px; opacity: .95; }
.promo-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.promo-big .promo-icon .icon { width: 44px; height: 44px; }
.promo-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.promo-big .promo-title { font-size: 30px; max-width: 90%; }
.promo-sub { font-size: 14px; opacity: .92; margin-top: 6px; }
.promo-big .promo-sub { font-size: 16px; }
.promo-btn { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 14px; }
/* Цвета акций */
.promo-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.promo-sky { background: linear-gradient(135deg, #3b82f6, #38bdf8); }
.promo-cyan { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.promo-indigo { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.promo-steel { background: linear-gradient(135deg, #475569, #64748b); }
.promo-slate { background: linear-gradient(135deg, #0f172a, #1e293b); }

/* Верх главной: рельс каталога + баннер-слайдер (как у Чип-и-Дип) */
.home-top { display: grid; grid-template-columns: 270px 1fr; gap: 20px; margin-bottom: 32px; }
.cat-rail { position: relative; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; align-self: start; }
.cat-rail-head { font-weight: 800; font-size: 16px; padding: 12px 14px 10px; }
.cat-rail-list { list-style: none; margin: 0; padding: 0; }
.cat-rail-list a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.cat-rail-list a:hover { background: #eef4ff; color: var(--brand); }
.cat-rail-ico { width: 26px; height: 26px; color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-rail-ico .icon { width: 22px; height: 22px; }
.cat-rail-name { flex: 1; }
.cat-rail-n { color: var(--muted); font-size: 12px; }
.cat-rail-arrow { color: var(--muted); font-size: 18px; line-height: 1; }
.cat-rail-list li:hover > a { background: #eef4ff; color: var(--brand); }
.cat-rail-list li:hover > a .cat-rail-arrow { color: var(--brand); }
.cat-rail-all { display: block; padding: 13px 14px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 700; font-size: 14px; }

/* Мега-меню: выпадающие подразделы */
.cat-flyout { position: absolute; left: 100%; top: 0; z-index: 40; display: none; min-width: 340px; max-width: 760px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,27,46,.22);
    padding: 22px 26px; }
.cat-rail-list li:hover .cat-flyout { display: block; }
.cat-flyout-head { font-weight: 800; font-size: 16px; margin-bottom: 14px; color: var(--ink); }
.cat-flyout-list { display: flex; flex-flow: column wrap; max-height: 300px; align-content: flex-start; gap: 0 26px; }
.cat-flyout-list a { width: 210px; padding: 6px 2px; font-size: 14px; color: var(--ink); line-height: 1.35; }
.cat-flyout-list a:hover { color: var(--brand); }
.cat-flyout-all { display: inline-block; margin-top: 16px; color: var(--brand); font-weight: 700; font-size: 14px; }

.banner { position: relative; z-index: 1; border-radius: 18px; overflow: hidden; min-height: 360px; }
.banner-slides { position: relative; height: 100%; min-height: 360px; }
.banner-slide { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
    padding: 44px 48px; color: #fff; opacity: 0; z-index: 1; transition: opacity .45s ease; pointer-events: none; }
.banner-slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.banner-title { font-size: 34px; font-weight: 800; line-height: 1.14; letter-spacing: -.02em; max-width: 62%; position: relative; z-index: 2; }
.banner-sub { font-size: 17px; opacity: .93; margin-top: 14px; max-width: 56%; position: relative; z-index: 2; }
.banner-cta { margin-top: 22px; font-weight: 700; font-size: 15px; position: relative; z-index: 2; }
.banner-art { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); z-index: 1; }
.banner-art svg { width: 300px; height: auto; display: block; }
@media (max-width: 900px) { .banner-art { display: none; } }
.banner-icon { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); opacity: .28; z-index: 1; }
.banner-icon .icon { width: 150px; height: 150px; stroke-width: 1.4; }
.banner-dots { position: absolute; bottom: 20px; left: 48px; display: flex; gap: 8px; z-index: 3; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: width .2s, background .2s; }
.banner-dot.active { background: #fff; width: 26px; border-radius: 6px; }
@media (max-width: 900px) {
    .home-top { grid-template-columns: 1fr; }
    .cat-rail { display: none; }
    .banner-title { max-width: 100%; font-size: 26px; }
    .banner-sub { max-width: 100%; }
}

/* Главный баннер */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px;
    background: var(--grad); border-radius: 22px; padding: 44px 44px; color: #fff; margin-bottom: 28px;
    position: relative; overflow: hidden; }
.hero-badge { display: inline-block; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.18);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero-title { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.hero-title span { color: #a5f3fc; }
.hero-lead { font-size: 16px; line-height: 1.55; opacity: .95; max-width: 90%; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 12px;
    font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background .15s; }
.hero-btn.primary { background: #fff; color: var(--brand); }
.hero-btn.ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.hero-btn:hover { transform: translateY(-2px); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 380px; height: auto; }
/* Коллаж реальных фото в баннере */
.hero-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-photo { background: #fff; border-radius: 14px; aspect-ratio: 1; display: flex; align-items: center;
    justify-content: center; overflow: hidden; box-shadow: 0 8px 22px rgba(8,18,40,.18); }
.hero-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.hero-photo:nth-child(2) { transform: translateY(-10px); }
.hero-photo:nth-child(5) { transform: translateY(-10px); }
@media (max-width: 820px) { .hero-photos { display: none; } }
@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; padding: 32px 26px; }
    .hero-title { font-size: 30px; }
    .hero-art { display: none; }
}

/* О компании */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 36px; margin-bottom: 40px; }
.about-art svg { width: 100%; max-width: 260px; height: auto; }
.about-text p { color: var(--muted); line-height: 1.6; margin: 10px 0; }
.about-link { display: inline-block; margin-top: 8px; color: var(--brand); font-weight: 700; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about-art { display: none; } }

/* Новости */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,27,46,.10); }
.news-thumb { height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; background: #eef4ff; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb.cover.promo-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.news-thumb.cover.promo-sky { background: linear-gradient(135deg, #3b82f6, #38bdf8); }
.news-thumb.cover.promo-cyan { background: linear-gradient(135deg, #0ea5e9, #22d3ee); }
.news-thumb.cover.promo-indigo { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.news-thumb.cover.promo-steel { background: linear-gradient(135deg, #475569, #64748b); }
.news-thumb.cover.promo-slate { background: linear-gradient(135deg, #0f172a, #1e293b); }
.news-thumb.cover { padding: 10px; }
.news-cover-art { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.news-cover-art svg { width: auto; height: 116%; opacity: .95; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.news-date { font-size: 12px; color: var(--muted); }
.news-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.news-sum { font-size: 14px; color: var(--muted); line-height: 1.5; }
.news-article { max-width: 800px; }
.news-article h1 { font-size: 30px; margin: 6px 0 18px; line-height: 1.2; }
.news-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }

/* Как заказать */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.step b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.step small { color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Призыв под заказ */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border-radius: 20px;
    padding: 32px 40px; margin-bottom: 40px; }
.cta-band h2 { font-size: 24px; margin: 0 0 8px; font-weight: 800; }
.cta-band p { margin: 0; opacity: .85; max-width: 560px; line-height: 1.5; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btn { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 12px; font-weight: 700;
    text-decoration: none; background: var(--grad); color: #fff; transition: transform .15s; }
.cta-btn.ghost { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); }
.cta-btn:hover { transform: translateY(-2px); }

/* Страница «О компании» */
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--brand); }
.page-hero { background: var(--grad); color: #fff; border-radius: 20px; padding: 40px 40px; margin-bottom: 28px; }
.page-hero h1 { margin: 0 0 10px; font-size: 34px; font-weight: 800; }
.page-hero p { margin: 0; font-size: 17px; opacity: .95; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 36px; max-width: 860px; }
.prose h2 { font-size: 20px; margin: 24px 0 10px; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #334155; line-height: 1.65; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.topbar-link { color: var(--muted); margin-right: 4px; }
.topbar-link:hover { color: var(--brand); }
.topbar-link.cb-open { color: var(--brand); font-weight: 700; cursor: pointer; }

/* Модальное окно (заказать звонок) */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,27,46,.5); z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: 18px; padding: 30px 32px; width: 100%; max-width: 420px;
    position: relative; box-shadow: 0 30px 70px rgba(15,27,46,.3); }
.modal h3 { margin: 0 0 6px; font-size: 22px; }
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.modal-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 26px;
    line-height: 1; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); }
.cb-form { display: flex; flex-direction: column; gap: 10px; }
.cb-form input { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; outline: none; }
.cb-form input:focus { border-color: var(--brand); }
.cb-form .btn-buy { margin-top: 4px; }

/* Секции */
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.section-title { font-size: 24px; font-weight: 800; margin: 0; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.title-ico { color: var(--brand); display: inline-flex; }
.title-ico .icon { width: 24px; height: 24px; }
.section-link { color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section-link:hover { color: var(--brand-dark); }

/* Плитки категорий */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
    transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,36,48,.10); }
.cat-tile:hover .cat-tile-icon { background: var(--grad); color: #fff; }
.cat-tile-icon { width: 72px; height: 72px; border-radius: 18px; background: #eaf1fe; color: var(--brand);
    display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.cat-tile-icon .icon { width: 36px; height: 36px; }
.cat-tile-photo { width: 118px; height: 118px; border-radius: 16px; background: #f8fafc; display: flex;
    align-items: center; justify-content: center; overflow: hidden; transition: background .15s; }
.cat-tile:hover .cat-tile-photo { background: #eef4ff; }
.cat-tile-photo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.cat-tile-photo .part-illustration { width: 70%; height: 70%; }
.cat-tile-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.cat-tile-count { font-size: 12px; font-weight: 600; color: var(--brand); background: #eef4ff; border-radius: 999px; padding: 3px 12px; }

/* Карусель товаров */
.carousel { display: flex; align-items: center; gap: 8px; }
.carousel-track { flex: 1; min-width: 0; display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x mandatory; padding: 6px 2px 10px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .card { flex: 0 0 clamp(200px, 23%, 250px); scroll-snap-align: start; }
.carousel-arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 4px 14px rgba(15,27,46,.12); transition: background .15s, color .15s, opacity .15s; }
.carousel-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.carousel-arrow .icon { width: 22px; height: 22px; }
.carousel-arrow[disabled] { opacity: .35; pointer-events: none; }
@media (max-width: 640px) { .carousel-arrow { display: none; } .carousel-track > .card { flex-basis: 72%; } }

/* Статистика */
.stats-bar { display: flex; align-items: center; gap: 8px; background: var(--grad); border-radius: 18px;
    padding: 24px 28px; margin-bottom: 40px; color: #fff; box-shadow: 0 14px 34px rgba(37,99,235,.22); }
.stat-item { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; }
.stat-i { width: 48px; height: 48px; border-radius: 13px; background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-i .icon { width: 26px; height: 26px; stroke-width: 2; }
.stat-v { display: flex; flex-direction: column; min-width: 0; }
.stat-v b { font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.stat-v span { font-size: 13px; opacity: .9; }
.stat-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.28); margin: 4px 6px; }
@media (max-width: 820px) {
    .stats-bar { flex-wrap: wrap; gap: 20px 12px; padding: 22px; }
    .stat-item { flex: 0 0 calc(50% - 6px); }
    .stat-sep { display: none; }
    .stat-v b { font-size: 24px; }
}

/* Бренды */
.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: 9px 16px; text-decoration: none; transition: border-color .15s, transform .15s; }
.brand-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.brand-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.brand-count { font-size: 12px; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 8px; }

/* Преимущества */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-ico { width: 46px; height: 46px; border-radius: 12px; background: #eaf1fe; color: var(--brand);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-ico .icon { width: 24px; height: 24px; }
.trust-item b { display: block; font-size: 15px; color: var(--ink); }
.trust-item small { color: var(--muted); font-size: 13px; }

/* Бейджи «Хит» / «Новинка» на карточке */
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.badge-hit, .badge-new { font-size: 11px; font-weight: 700; color: #fff; padding: 4px 9px; border-radius: 20px; }
.badge-hit { background: var(--grad); }
.badge-new { background: linear-gradient(135deg, #475569, #64748b); }

@media (max-width: 860px) {
    .promos { grid-template-columns: 1fr 1fr; }
    .promo-big { grid-column: span 2; grid-row: span 1; min-height: 150px; padding: 22px 24px; }
    .promo-big .promo-title { font-size: 22px; }
    .promo-big .promo-emoji { font-size: 32px; }
}
@media (max-width: 560px) {
    .promos { grid-template-columns: 1fr; }
    .promo-big { grid-column: span 1; }
}

/* Уведомления (flash) */
.flash { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.flash-item { padding: 12px 16px; border-radius: 10px; font-size: 14px;
    background: #e0edfd; color: #1e40af; border: 1px solid #bcd4fb; }
.flash-item.error { background: #fdecec; color: #b42318; border-color: #f6c9c4; }

/* Кнопка «в корзину» на карточке каталога */
.add-form { margin-top: 8px; }
.btn-add { width: 100%; border: none; background: var(--grad); color: #fff; padding: 9px;
    font-size: 14px; font-weight: 700; border-radius: 8px; cursor: pointer; }
.btn-add:hover { filter: brightness(.93); }
.card .add-form { padding: 0; }

/* Карточка: строка действий (в корзину + сравнить) */
.card-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.card-actions .add-form { flex: 1; margin: 0; }
.card-actions form { margin: 0; }
.btn-compare { flex: 0 0 42px; width: 42px; height: 38px; border: 1px solid var(--line); background: #fff;
    color: var(--muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-compare:hover { border-color: var(--brand); color: var(--brand); }
.btn-compare.active { background: var(--grad); border-color: transparent; color: #fff; }

/* Подробная карточка: бейджи, кнопка сравнения */
.detail-badges { display: flex; gap: 6px; margin-bottom: 8px; }
.buy-extra { margin-top: 12px; }
.link-compare { display: inline-flex; align-items: center; gap: 8px; background: none; border: none;
    color: var(--brand); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }
.link-compare:hover { text-decoration: underline; }
.link-compare.active { color: var(--muted); }
.similar-section { margin-top: 40px; }

/* Страница сравнения */
.empty-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 44px; text-align: center; }
.empty-box p { color: var(--muted); margin: 6px 0; }
.empty-box .hero-btn { margin-top: 16px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 560px; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; font-size: 14px; }
.compare-rowlabel { background: #f8fafc; color: var(--muted); font-weight: 600; width: 180px; position: sticky; left: 0; z-index: 1; }
.compare-card { display: flex; flex-direction: column; gap: 8px; min-width: 180px; max-width: 240px; }
.compare-img { height: 120px; background: #fafbfc; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.compare-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.compare-img .part-illustration { width: 60%; height: 60%; }
.compare-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.compare-actions { display: flex; gap: 8px; align-items: stretch; }
.compare-actions .add-form { flex: 1; }
.compare-actions .btn-add { width: 100%; padding: 8px 10px; }
.btn-remove { border: 1px solid var(--line); background: #fff; color: var(--muted); width: 36px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.btn-remove:hover { border-color: #ef4444; color: #ef4444; }
.compare-price { font-weight: 800; color: var(--ink); font-size: 16px; }
.compare-note { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Управление количеством */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { border: none; background: #f1f5f9; width: 34px; height: 38px; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: #e2e8f0; }
.qty input { width: 46px; height: 38px; text-align: center; border: none; border-left: 1px solid var(--line);
    border-right: 1px solid var(--line); font-size: 15px; outline: none; }

/* Страница корзины */
.cart-page { max-width: 900px; }
.cart-page h1 { font-size: 26px; margin: 0 0 20px; }
.cart-table { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto auto auto; gap: 16px; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cart-row:last-child { border-bottom: none; }
.cart-thumb { width: 64px; height: 64px; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-thumb .no-img { font-size: 10px; }
.cart-name { font-weight: 600; font-size: 15px; }
.cart-name a { color: var(--ink); }
.cart-name a:hover { color: var(--brand); }
.cart-sku { font-size: 12px; color: var(--muted); }
.cart-line-price { font-weight: 700; white-space: nowrap; min-width: 90px; text-align: right; }
.cart-remove { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px; }
.cart-remove:hover { color: #b42318; }

.cart-summary { display: flex; align-items: center; justify-content: space-between; margin-top: 24px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; flex-wrap: wrap; gap: 16px; }
.cart-total { font-size: 16px; }
.cart-total b { font-size: 26px; }
.cart-actions { display: flex; gap: 12px; }
.btn-primary { border: none; background: var(--grad); color: #fff; padding: 13px 26px; font-size: 15px;
    font-weight: 700; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { filter: brightness(.93); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 13px 22px;
    font-size: 15px; font-weight: 600; border-radius: 10px; text-decoration: none; display: inline-block; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty svg { color: #cbd5e1; margin-bottom: 16px; }

/* Оформление заказа */
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout h1 { font-size: 26px; margin: 0 0 20px; }
.co-form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px;
    padding: 11px 14px; font-size: 15px; font-family: inherit; outline: none; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field .help, .field .errorlist { font-size: 12px; margin-top: 4px; }
.inn-hint { font-size: 12.5px; margin-top: 6px; color: var(--muted); line-height: 1.4; }
.inn-hint.ok { color: #0e7a3a; font-weight: 600; }
.field .errorlist { color: #b42318; list-style: none; padding: 0; margin: 4px 0 0; }
.radio-row { display: flex; gap: 20px; }
.radio-row label { font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.co-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 90px; }
.co-summary h2 { font-size: 17px; margin: 0 0 14px; }
.co-line { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; gap: 12px; }
.co-line .nm { color: var(--muted); }
.co-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800;
    border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.pay-note { font-size: 13px; color: var(--muted); background: #f1f5f9; border-radius: 8px; padding: 12px; margin-top: 14px; }

/* Заказ принят */
.created { max-width: 620px; margin: 40px auto; text-align: center; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; padding: 48px 32px; }
.created .check { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.created h1 { font-size: 26px; margin: 0 0 8px; }
.created .onum { font-size: 20px; font-weight: 800; margin: 8px 0 16px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.created p { color: var(--muted); font-size: 15px; margin: 0 auto 24px; max-width: 460px; }

/* Формы авторизации */
.auth-card { max-width: 420px; margin: 20px auto; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 32px; }
.auth-card h1 { font-size: 24px; margin: 0 0 20px; }
.auth-alt { text-align: center; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.auth-alt a { color: var(--brand); font-weight: 600; }

/* ===== Личный кабинет (боковое меню + контент) ===== */
.acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.acc-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; position: sticky; top: 90px; }
.acc-user { display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.acc-avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-user-info { min-width: 0; }
.acc-user-name { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-user-email { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; }
.acc-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.acc-nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 14px; border-radius: 10px;
    color: var(--ink); font-size: 15px; font-weight: 500; background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; }
.acc-nav-item:hover { background: #f1f5f9; color: var(--brand); }
.acc-nav-item.active { background: var(--grad); color: #fff; font-weight: 700; }
.acc-nav-item svg { flex-shrink: 0; }

.acc-content { min-width: 0; }
.acc-title { font-size: 26px; margin: 0 0 22px; }

.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.acc-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.acc-stat-value { font-size: 28px; font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.acc-stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }

.acc-block { margin-bottom: 28px; }
.acc-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.acc-block-head h2 { font-size: 19px; margin: 0; }
.acc-link { color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; }
.acc-empty { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--muted); }
.acc-empty p { margin: 0 0 16px; }

.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.account-head h1 { font-size: 26px; margin: 0; }

@media (max-width: 820px) {
    .acc-layout { grid-template-columns: 1fr; }
    .acc-sidebar { position: static; }
    .acc-nav { flex-direction: row; flex-wrap: wrap; }
    .acc-nav-item { width: auto; }
    .acc-stats { grid-template-columns: 1fr; }
}
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; }
.profile-card .pl { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.orders-title { font-size: 20px; margin: 32px 0 14px; }
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: grid; grid-template-columns: 110px 1fr auto auto auto; gap: 16px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.order-row:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(27,36,48,.06); }
.order-num { font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.order-date { color: var(--muted); font-size: 14px; }
.order-items-count { color: var(--muted); font-size: 14px; }
.order-sum { font-weight: 700; white-space: nowrap; }

/* Бейджи статусов заказа */
.status-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.status-new { background: #e0edfd; color: #1e40af; }
.status-processing { background: #fef3c7; color: #92600e; }
.status-invoiced { background: #ede9fe; color: #5b21b6; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-done { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* Способы оплаты (radio) */
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-methods > div { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.pay-methods > div > div { width: 100%; }
.pay-methods label { display: flex; align-items: center; justify-content: flex-start; gap: 10px;
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-weight: 500; }
.pay-methods label:hover { border-color: var(--brand); }
.pay-methods label input { flex: 0 0 auto; width: auto; margin: 0; }

/* Способы доставки */
.delivery-methods { display: flex; flex-direction: column; gap: 10px; }
.delivery-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 14px; cursor: pointer; }
.delivery-opt:hover { border-color: var(--brand); }
.delivery-opt input { flex: 0 0 auto; width: auto; margin: 0; }
.delivery-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.delivery-info b { font-weight: 600; font-size: 15px; }
.delivery-desc { font-size: 12px; color: var(--muted); }
.delivery-price { font-weight: 700; white-space: nowrap; color: var(--brand); }
.pickup-select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; font-size: 15px; background: #fff; outline: none; }
.pickup-select:focus { border-color: var(--brand); }

/* Строки сводки заказа */
.co-line.co-subtotal, .co-line.co-delivery { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.co-line.co-delivery { border-top: none; padding-top: 2px; margin-top: 0; }
/* Радио-кнопки «тип покупателя» тоже не должны растягиваться */
.radio-row input[type="radio"] { width: auto; }

/* Платёжная (демо) страница */
.pay-gateway { max-width: 440px; margin: 20px auto; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; padding: 32px; text-align: center; }
.pg-badge { display: inline-block; background: #fef3c7; color: #92600e; font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }
.pay-gateway h1 { font-size: 20px; margin: 0 0 6px; }
.pg-amount { font-size: 34px; font-weight: 800; margin-bottom: 24px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pg-card { text-align: left; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.pg-card label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pg-card input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
    font-size: 15px; background: #fff; margin-bottom: 12px; font-family: var(--font-mono, monospace); letter-spacing: .04em; }
.pg-card-row { display: flex; gap: 12px; }
.pg-card-row input { margin-bottom: 0; }
.pg-actions { display: flex; flex-direction: column; gap: 10px; }
.pg-hint { font-size: 12px; color: var(--muted); margin: 18px 0 0; }

.check.failed { background: #fee2e2; color: #dc2626; }

/* Подвал */
/* ===== Кабинет менеджера ===== */
.mgr-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.mgr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.mgr-action { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px;
    font-weight: 600; font-size: 14px; color: var(--ink); }
.mgr-action:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 4px 14px rgba(27,36,48,.06); }
.mgr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.mgr-block { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.mgr-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mgr-block-head h2 { font-size: 18px; margin: 0; }
.mgr-orders { display: flex; flex-direction: column; }
.mgr-order { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.mgr-order:last-child { border-bottom: none; }
.mgr-order:hover { background: #f8fafc; }
.mgr-order-name { flex: 1; font-weight: 600; font-size: 14px; color: var(--ink); min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgr-order-sku { color: var(--muted); font-size: 12px; font-family: var(--font-mono, monospace); }
.mgr-order-sum { font-weight: 700; white-space: nowrap; }
.mgr-stock-qty { font-weight: 700; white-space: nowrap; color: #b6741a; }
.mgr-stock-qty.zero { color: #b42318; }
.mgr-empty { color: var(--muted); padding: 20px 0; text-align: center; }
@media (max-width: 820px) { .mgr-cols { grid-template-columns: 1fr; } .acc-stats[style] { grid-template-columns: 1fr 1fr !important; } }

/* ===== Подвал (тёмный, в стиле Чип и Дип) ===== */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; padding: 44px 20px 36px; }
.footer-col h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cbd5e1; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-info { color: #94a3b8; font-size: 14px; }

.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.footer-logo span { background: linear-gradient(135deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-tagline { color: #94a3b8; font-size: 14px; line-height: 1.6; margin: 14px 0 18px; max-width: 340px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 10px; background: #1e293b; color: #cbd5e1;
    display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--brand); color: #fff; }

.footer-contacts h3 { margin-bottom: 16px; }
.footer-phone { display: block; font-size: 20px; font-weight: 800; color: #fff !important; margin-bottom: 8px; }
.footer-phone:hover { color: #38bdf8 !important; }
.footer-contacts a { color: #cbd5e1; font-size: 14px; }
.footer-muted { color: #94a3b8; font-size: 13px; margin-top: 8px; }

.footer-bottom { border-top: 1px solid #1e293b; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; flex-wrap: wrap; }
.footer-bottom-inner > span { color: #94a3b8; font-size: 13px; }
.footer-pay { display: flex; gap: 8px; }
.pay-badge { background: #fff; color: #0f172a; font-size: 12px; font-weight: 800; padding: 5px 10px;
    border-radius: 6px; letter-spacing: .02em; }

@media (max-width: 860px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: 32px 20px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* Телефоны */
@media (max-width: 860px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .detail { grid-template-columns: 1fr; gap: 20px; }
    .header-inner { gap: 12px; }
    .checkout { grid-template-columns: 1fr; }
    .co-summary { position: static; order: -1; }
    .cart-row { grid-template-columns: 48px 1fr auto; grid-template-areas: "thumb name price" "thumb qty remove"; row-gap: 10px; }
    .cart-thumb { grid-area: thumb; width: 48px; height: 48px; }
}

/* Промокод и итоги корзины */
.promo-box { margin-bottom: 16px; }
.promo-form { display: flex; gap: 8px; }
.promo-form input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; text-transform: uppercase; min-width: 160px; outline: none; }
.promo-form input:focus { border-color: var(--brand); }
.promo-applied { display: flex; align-items: center; gap: 12px; background: #ecfdf3; border: 1px solid #a7f3cf; color: #16a34a; border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.promo-applied a { color: var(--muted); text-decoration: underline; }
.cart-totals { margin: 8px 0 14px; }
.cart-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); font-size: 15px; }
.cart-row.discount { color: #16a34a; }
.cart-grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--ink); font-size: 18px; }
.cart-grand b { font-size: 22px; font-weight: 800; }

/* FAQ */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--brand); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .15s; flex-shrink: 0; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: #334155; line-height: 1.6; }

/* Таблица «Доставка и оплата» */
.info-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.info-table th { text-align: left; background: #f8fafc; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.info-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
