/* === Фича-блоки и фиксы (по разделам) === */
/* ─── Hero-слайдер баннеров (главная) ─── */
.hero-slider{position:relative;border-radius:20px;overflow:hidden;margin:16px 0 8px;aspect-ratio:3.4/1;background:var(--c-n-100,#f1f5f9);box-shadow:0 4px 20px rgba(15,23,41,.08)}
.hs-slide{position:absolute;inset:0;opacity:0;transform:scale(1.02);transition:opacity .5s ease,transform .8s ease;pointer-events:none;display:block}
.hs-slide.active{opacity:1;transform:scale(1);pointer-events:auto;position:relative}
.hs-slide picture{display:block;width:100%;height:100%}
.hs-slide img{width:100%;height:100%;object-fit:cover;display:block}
/* Стрелки: полупрозрачные, появляются при наведении на слайдер */
.hs-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.75);backdrop-filter:blur(8px);color:#0f1729;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.15);cursor:pointer;z-index:2;opacity:0;transition:opacity .25s ease,transform .2s ease,background .2s ease,box-shadow .2s ease}
.hero-slider:hover .hs-arrow,.hero-slider:focus-within .hs-arrow{opacity:.85}
.hs-arrow:hover{opacity:1 !important;transform:translateY(-50%) scale(1.08);background:rgba(255,255,255,.95);box-shadow:0 4px 14px rgba(0,0,0,.22)}
.hs-arrow:active{transform:translateY(-50%) scale(.96)}
.hs-arrow:focus-visible{outline:2px solid var(--c-primary,#10B981);outline-offset:2px;opacity:1}
.hs-arrow svg{width:18px;height:18px}
.hs-prev{left:14px}.hs-next{right:14px}
/* Точки: контрастная плашка + пилюли */
.hs-dots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:2;padding:6px 10px;border-radius:999px;background:rgba(15,23,41,.35);backdrop-filter:blur(6px)}
.hs-dot{width:8px;height:8px;border-radius:99px;background:rgba(255,255,255,.5);cursor:pointer;transition:all .25s ease;border:none;padding:0}
.hs-dot:hover{background:rgba(255,255,255,.85)}
.hs-dot.active{background:#fff;width:22px}
.hs-dot:focus-visible{outline:2px solid #fff;outline-offset:1px}
@media(max-width:768px){.hero-slider{aspect-ratio:16/10;border-radius:14px}.hs-arrow{display:none}.hs-dots{bottom:8px}}


/* ─── Глобальная toast-система ─── */
#gm-toasts{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:9999;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none}
.gm-toast{padding:12px 20px;border-radius:12px;font-size:14px;font-weight:600;color:#fff;background:#0f1729;box-shadow:0 4px 16px rgba(0,0,0,.2);opacity:0;transform:translateY(12px);transition:all .3s ease;max-width:90vw;text-align:center}
.gm-toast.show{opacity:1;transform:translateY(0)}
.gm-toast-success{background:#059669}
.gm-toast-error{background:#dc2626}
.gm-toast-info{background:#2563eb}
@media(max-width:768px){#gm-toasts{bottom:calc(76px + env(safe-area-inset-bottom))}}

/* ─── Мобильная нижняя навигация ─── */
.bottom-nav{display:none}
@media(max-width:768px){
    body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
    .bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(60px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #e8ecf1;z-index:900;box-shadow:0 -2px 12px rgba(0,0,0,.06)}
    .bn-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:10px;font-weight:600;color:#8b95a5;text-decoration:none;transition:color .15s}
    .bn-item.active,.bn-item:active{color:var(--c-primary,#10B981)}
    .bn-ico-wrap{position:relative;display:flex}
    .bn-badge{position:absolute;top:-5px;right:-10px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
}

/* ─── Фиксы конфликтов bottom-nav (П3-регрессии) ─── */
@media(max-width:768px){
    /* PDP sticky-панель покупки — над bottom-nav */
    .pdp-sticky-bar{bottom:calc(60px + env(safe-area-inset-bottom));padding-bottom:10px;z-index:85}
    /* FAB фильтров каталога — над bottom-nav */
    .filter-fab{bottom:calc(76px + env(safe-area-inset-bottom));z-index:85}
}
/* bottom-nav ниже оверлеев (sheet фильтров z-200, mega-menu z-98, lightbox z-200) */
.bottom-nav{z-index:90}
/* Hero-слайдер: блочные слайды для object-fit */
.hs-slide{display:block}
.hs-slide picture{display:block;width:100%;height:100%}

/* Сортировка каталога: select вместо карусели */
.sort-select{appearance:none;-webkit-appearance:none;padding-left:32px;padding-right:30px;cursor:pointer;font:inherit;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.sort-select:focus{outline:none;border-color:var(--c-border-strong,#cbd5e1);box-shadow:0 0 0 3px rgba(15,23,41,.06)}

/* Продавец без обложки — компактная шапка вместо пустого градиента */
.seller-cover--empty{height:auto !important;min-height:0 !important}
.seller-cover--empty::before,.seller-cover--empty::after{display:none}
.seller-cover--empty .crumbs-top{padding-top:12px;padding-bottom:12px}
.seller-cover--empty .badge-row{position:static;display:inline-flex;margin:0 0 12px var(--gutter,16px)}
.seller-cover--empty .crumbs-top{padding-bottom:56px}
.seller-cover--empty .badge-row{display:none}

/* Поиск в шапке: убираем двойную обводку (глобальный :focus-visible + focus-within формы) */
.header-search input:focus-visible{outline:none}

/* ─── Пропорции изображений как WB (3:4 портрет) ─── */
.product-img{aspect-ratio:3/4}
@supports not (aspect-ratio:3/4){.product-img{padding-top:133%;height:0}}
.pdp-main-img{aspect-ratio:3/4}
@media(min-width:1024px){.pdp-main-img{max-width:480px}}

/* Товарные фото: небольшая безопасная обрезка или полный исходник без потерь */
[data-product-image]{object-position:center;image-rendering:auto}
.product-image--contain{object-fit:contain !important}
.product-image--cover{object-fit:cover !important}
.product-image-frame--contain{background:var(--c-n-50,#f8fafc) !important}
.product-image-frame--cover{background:var(--c-n-100,#f1f5f9)}

/* ─── Поиск: выпадающие подсказки ─── */
.header-search{position:relative}
.search-suggest{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid #e8ecf1;border-radius:16px;box-shadow:0 12px 32px rgba(15,23,41,.14);padding:8px;z-index:300;max-height:70vh;overflow-y:auto}
.ss-head{padding:8px 12px 4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#94a3b8}
.ss-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;text-decoration:none;color:#0f1729;font-size:14px;transition:background .12s}
.ss-item:hover,.ss-item.active{background:#f1f5f9}
.ss-item svg{flex-shrink:0;color:#94a3b8}
.ss-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ss-thumb{width:36px;height:44px;border-radius:8px;overflow:hidden;background:#f1f5f9;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.ss-thumb img{width:100%;height:100%;object-fit:cover}
.ss-price{font-weight:700;font-size:13px;color:#059669;white-space:nowrap}
.ss-del{margin-left:auto;width:24px;height:24px;border:none;background:transparent;color:#94a3b8;cursor:pointer;font-size:12px;border-radius:6px;flex-shrink:0}
.ss-del:hover{background:#e2e8f0;color:#475569}
.ss-loading{padding:12px;font-size:13px;color:#94a3b8;text-align:center}
.ss-context-item .ss-text{display:flex;flex-direction:column;gap:2px;white-space:normal}
.ss-context-item .ss-text b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.ss-context-item .ss-text small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:11px}
@media(max-width:768px){
    .search-suggest{
        position:fixed;
        left:12px;
        right:12px;
        top:76px;
        max-height:min(60vh,calc(100dvh - 164px - env(safe-area-inset-bottom)));
    }
    .ss-item{min-height:44px}
}

/* ─── PDP: центральная колонка (артикул, варианты, характеристики) ─── */
@media(min-width:1024px){
    .pdp-layout{grid-template-columns:56px 480px minmax(0,1fr) 360px;grid-template-areas:"thumbs main center side"}
    .pdp-center{grid-area:center;min-width:0}
    .pdp-main-img{max-width:480px}
}
@media(max-width:1023px){.pdp-center{order:3}.pdp-info{order:2}}
.pdp-sku{font-size:12px;color:var(--c-n-400,#94a3b8);margin-bottom:14px}
.pdp-center-label{font-size:13px;font-weight:600;color:var(--c-n-600,#475569);margin-bottom:8px}
.pdp-var-block{margin-bottom:18px}
/* Слайдер вариантов с превью */
.pdp-varslider{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.pdp-varslider::-webkit-scrollbar{height:4px}
.pdp-varslider::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:2px}
.pdp-var-thumb{display:flex;flex-direction:column;gap:4px;width:72px;flex-shrink:0;scroll-snap-align:start;text-decoration:none;background:none;border:none;padding:0;cursor:pointer}
.pdp-var-img{width:72px;height:96px;border-radius:10px;overflow:hidden;background:#f1f5f9;border:2px solid transparent;transition:border-color .15s,transform .15s;display:block}
.pdp-var-thumb:hover .pdp-var-img{border-color:var(--c-primary,#10B981);transform:translateY(-2px)}
.pdp-var-thumb.active .pdp-var-img{border-color:var(--c-primary,#10B981)}
.pdp-var-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pdp-var-name{font-size:11px;color:var(--c-n-600,#475569);line-height:1.2;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:left}
/* Характеристики с пунктиром (как на WB) */
.pdp-specs{margin:0}
.pdp-spec-row{display:flex;align-items:baseline;gap:8px;padding:7px 0;border-bottom:1px dashed #e2e8f0;font-size:13px}
.pdp-spec-row dt{color:var(--c-n-400,#94a3b8);flex-shrink:0;max-width:45%}
.pdp-spec-row dd{margin:0 0 0 auto;font-weight:500;color:#0f1729;text-align:right}
.pdp-spec-row dd a{color:var(--c-p-700,#047857);text-decoration:none}
.pdp-spec-row dd a:hover{text-decoration:underline}
@media(max-width:1023px){.pdp-var-img{width:64px;height:86px}.pdp-var-thumb{width:64px}}

/* ─── Мобильная полировка (WB-style, ≤767px) ─── */
@media(max-width:767px){
    /* Фильтр-бар: одна строка с горизонтальным скроллом */
    .filter-row{flex-wrap:nowrap;overflow-x:auto}
    .filter-row>*{flex-shrink:0}
    /* FAB фильтров: по центру над bottom-nav и выше липкой строки фильтров */
    .mobile-filter-fab{right:auto;left:50%;transform:translateX(-50%);bottom:calc(72px + env(safe-area-inset-bottom));padding:10px 16px;font-size:13px;z-index:89}
    .catalog-filter-fab{
        opacity:0;
        visibility:hidden;
        pointer-events:none;
        transform:translate(-50%,12px);
        transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s;
    }
    .catalog-filter-fab.is-visible{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transform:translate(-50%,0);
        transition-delay:0s;
    }
    /* Карточки товаров компактнее (2 в ряд как на WB) */
    .product-body{padding:8px}
    .product-title{font-size:12px}
    .product-price .new{font-size:15px}
    .product-price .old{font-size:11px}
    .product-rating{font-size:11px}
    .product-seller{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .product-card-cart{padding:8px;font-size:12px;margin-top:8px}
    /* Полные характеристики доступны во вкладке ниже, без повтора в мобильной шапке PDP */
    .pdp-center .pdp-specs{display:none}
    /* PDP: имена вариантов не обрезаются */
    .pdp-var-thumb{width:72px}
    .pdp-var-img{width:72px;height:96px}
    .pdp-var-name{font-size:10px;-webkit-line-clamp:2}
    /* Характеристики: без переполнения справа */
    .pdp-spec-row dd{max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .pdp-spec-row dt{max-width:38%}
}

/* Мобильные горизонтальные ленты: достижимые края и видимый признак прокрутки */
@media(max-width:767px){
    .filter-row,.seller-cats,.seller-tabs,.pdp-tabs,.news-cats,.ev-toolbar .cats,.tabs-row,.top-cats{
        -webkit-overflow-scrolling:touch;
        overscroll-behavior-inline:contain;
        scroll-padding-inline:16px;
        scrollbar-width:thin;
        scrollbar-color:var(--c-n-300,#cbd5e1) transparent;
    }
    .filter-row::-webkit-scrollbar,.seller-cats::-webkit-scrollbar,.seller-tabs::-webkit-scrollbar,.pdp-tabs::-webkit-scrollbar,.news-cats::-webkit-scrollbar,.ev-toolbar .cats::-webkit-scrollbar,.tabs-row::-webkit-scrollbar,.top-cats::-webkit-scrollbar{display:block;height:3px}
    .filter-row::-webkit-scrollbar-thumb,.seller-cats::-webkit-scrollbar-thumb,.seller-tabs::-webkit-scrollbar-thumb,.pdp-tabs::-webkit-scrollbar-thumb,.news-cats::-webkit-scrollbar-thumb,.ev-toolbar .cats::-webkit-scrollbar-thumb,.tabs-row::-webkit-scrollbar-thumb,.top-cats::-webkit-scrollbar-thumb{background:var(--c-n-300,#cbd5e1);border-radius:999px}
    .seller-tabs,.pdp-tabs{justify-content:flex-start}
    .seller-tabs::after,.pdp-tabs::after{content:'';flex:0 0 8px}
    /* Внутри flex-строки афиши список раньше рос по ширине контента,
       поэтому дальние категории обрезались вместо прокрутки. */
    .ev-toolbar .row{min-width:0;flex-wrap:nowrap}
    .ev-toolbar .cats{width:100%;max-width:100%;min-width:0;flex:1 1 100%}
}
@media(max-width:767px){.pdp-var-thumb{width:80px}.pdp-var-img{width:80px;height:106px}.pdp-var-name{font-size:10.5px}}

/* ─── Варианты: ровное отображение (без «пляски»), стилизованный скролл ─── */
.pdp-varslider{scrollbar-width:none;-ms-overflow-style:none}
.pdp-varslider::-webkit-scrollbar{display:none}
.pdp-var-thumb{align-items:center}
.pdp-var-img{flex-shrink:0}
.pdp-var-thumb.active .pdp-var-img{transform:none;box-shadow:none}
.pdp-var-thumb:hover .pdp-var-img{transform:none}
.pdp-var-name{height:26px;overflow:hidden;text-align:center;width:100%}
/* Группы вариантов компактно */
.pdp-var-block{margin-bottom:14px}
.pdp-var-block:last-of-type{margin-bottom:16px}

/* ─── Поиск: полностью нейтральный фокус (никакой зелени), высота инпута ─── */
.header-search:focus-within{border-color:var(--c-border);box-shadow:none}
.header-search input{background:transparent;height:100%;min-height:40px;font-size:15px}
.header-search input:-webkit-autofill,.header-search input:-webkit-autofill:hover,.header-search input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 40px #fff inset;-webkit-text-fill-color:#0f1729}
.header-search input:focus-visible{outline:none;box-shadow:none}

/* ─── Слайдер вариантов: стрелки при наведении (ПК) ─── */
.pdp-varslider-wrap{position:relative}
.var-arrow{position:absolute;top:48px;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.85);backdrop-filter:blur(6px);box-shadow:0 2px 8px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;color:#0f1729;cursor:pointer;z-index:3;opacity:0;transition:opacity .2s ease,transform .2s ease}
.pdp-varslider-wrap:hover .var-arrow{opacity:1}
.var-arrow:hover{background:#fff;transform:translateY(-50%) scale(1.1)}
.var-arrow-prev{left:-6px}
.var-arrow-next{right:-6px}
@media(max-width:767px){.var-arrow{display:none}}

/* ─── PDP mobile: точки галереи (как WB) ─── */
.pdp-gallery-dots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:2;padding:5px 8px;border-radius:999px;background:rgba(15,23,41,.3);backdrop-filter:blur(4px)}
.pdp-gallery-dots button{width:6px;height:6px;border-radius:99px;border:none;padding:0;background:rgba(255,255,255,.5);cursor:pointer;transition:all .2s}
.pdp-gallery-dots button.active{background:#fff;width:16px}
@media(min-width:768px){.pdp-gallery-dots{display:none}}
.pdp-gallery-counter{position:absolute;top:12px;right:12px;z-index:2;padding:3px 8px;border-radius:8px;background:rgba(15,23,41,.45);color:#fff;font-size:11px;font-weight:600;backdrop-filter:blur(4px)}
@media(min-width:768px){.pdp-gallery-counter{display:none}}

/* ─── Карточка листинга: свайп изображений ─── */
.product-img-swipe{position:absolute;inset:0;z-index:2}
.product-img-dots{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;gap:4px;z-index:3;opacity:0;transition:opacity .2s}
.product:hover .product-img-dots{opacity:1}
.product-img-dots span{width:5px;height:5px;border-radius:99px;background:rgba(255,255,255,.6);transition:all .2s}
.product-img-dots span.active{background:#fff;width:12px}
.product-img-zones{position:absolute;inset:0;display:flex;z-index:2;opacity:0;transition:opacity .15s}
.product:hover .product-img-zones{opacity:1}
.product-img-zone{flex:1;cursor:pointer}

/* Фикс: min-height + aspect-ratio расширял слайдер за контейнер (перенос через ratio в ширину) */
.hero-slider{min-height:0}

/* Бейдж количества товара в корзине (как WB) */
.cart-qty-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.2)}
@media(max-width:767px){.cart-qty-badge{top:-5px;right:-5px}}

/* ─── Глобальная защита от горизонтального скролла (нативная адаптивность) ─── */
html,body{overflow-x:hidden;max-width:100%}
img{max-width:100%}
/* Grid/flex-элементы обязаны сжиматься ниже min-content */
.pdp-layout,.pdp-center,.pdp-info,.pdp-gallery,.pdp-main-img{min-width:0}
.pdp-varslider,.pdp-varslider-wrap{min-width:0}
/* Характеристики: защита от переполнения на ВСЕХ экранах (раньше — только ≤767px) */
.pdp-spec-row dd{max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdp-spec-row dt{flex-shrink:0;max-width:45%}
/* Свайп-зоны карточек не должны влиять на ширину */
.product-img-zones{overflow:hidden;left:0;right:0}

/* ─── Консистентность кнопок и сеток (аудит) ─── */
/* «Найти» — solid из дизайн-системы */
.header-search .search-btn{background:var(--c-primary);color:#fff}
.header-search .search-btn:hover{background:var(--c-primary-hover)}
/* PDP «В корзину» — зазор между иконкой и текстом */
.pdp-actions .btn-primary svg,#btnAddCart svg,#btnBuyNow svg{margin-right:8px}
/* Цены и кнопки карточек — без переносов */
.product-price .new,.product-price .old{white-space:nowrap}
.product-card-cart{white-space:nowrap}
/* Крошки на зелёном cover продавца — читаемые */
.seller-cover .crumbs-top a,.seller-cover .crumbs-top span{color:rgba(255,255,255,.9)}
.seller-cover .crumbs-top a:hover{color:#fff;text-decoration:underline}
/* Мобильный: сетка товаров не под FAB-ом фильтров */
@media(max-width:767px){.products-grid{padding-bottom:84px}}
/* Карточки одной высоты в ряду */
.products-grid{align-items:stretch}
.products-grid .product{height:100%}

/* Кнопка в promo-side — белая на зелёном (консистентность) */
.promo-side .btn{background:#fff !important;color:var(--c-p-700) !important}
.promo-side .btn:hover{background:#f0fdf4 !important}
/* Заглушка карты в справочнике — скрыта до реальной интеграции */
.map-wrap{display:none}

/* Объявления: плашки категорий — десктоп, чипы — мобильный */
@media(min-width:768px){.classifieds-page .filter-row{display:none}}
@media(max-width:767px){.classifieds-page .cat-grid{display:none}}

/* ─── Кнопка корзины карточки ─── */
.product-body{position:relative;display:flex;flex-direction:column}

/* ─── Сетка каталога как WB: 6→5→4→2 ─── */
@media(min-width:1400px){.products-grid,.product-grid,.products-layout .product-grid{grid-template-columns:repeat(6,1fr)}}
@media(min-width:1100px) and (max-width:1399px){.products-grid,.product-grid,.products-layout .product-grid{grid-template-columns:repeat(5,1fr)}}
@media(min-width:768px) and (max-width:1099px){.products-grid,.product-grid,.products-layout .product-grid{grid-template-columns:repeat(4,1fr)}}

/* ─── Шапка WB-формы с фирменным зелёным ─── */
/* Тонкая верхняя полоса — тёмно-зелёная */
.header-ribbon{background:#064e3b;color:#a7f3d0;font-size:12px;padding:6px 0}
.header-ribbon-inner{display:flex;align-items:center;gap:20px}
.header-ribbon-msg{display:flex;align-items:center;gap:5px;font-weight:600;color:#d1fae5;white-space:nowrap}
.header-ribbon-nav{display:flex;align-items:center;gap:16px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none}
.header-ribbon-nav::-webkit-scrollbar{display:none}
.header-ribbon-nav a{color:#a7f3d0;text-decoration:none;white-space:nowrap;transition:color .15s}
.header-ribbon-nav a:hover{color:#fff}
.header-ribbon-meta{margin-left:auto;flex-shrink:0}
.ribbon-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 10px;border-radius:999px;background:rgba(255,255,255,.14);color:#fef3c7;font-weight:600;font-size:11px;white-space:nowrap}
/* Основная панель — зелёный градиент */
.header-main--brand{background:linear-gradient(100deg,#047857 0%,#059669 55%,#10b981 100%);padding:12px 0;box-shadow:0 2px 12px rgba(6,95,70,.25)}
.header-main--brand .header-logo{color:#fff}
.header-main--brand .logo-text{font-size:24px;font-weight:800;letter-spacing:-.3px}
.logo-mark{background:#fff url('/favicon.ico') center/cover no-repeat}
.header-main--brand .logo-mark{background-color:#fff}
.header-main--brand .btn-catalog{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.18);color:#fff;border-radius:12px;padding:11px 16px;font-weight:600;font-size:15px;transition:background .15s;backdrop-filter:blur(4px)}
.header-main--brand .btn-catalog:hover{background:rgba(255,255,255,.28)}
.header-main--brand .header-search{background:#fff;border-radius:14px;border:none;box-shadow:0 2px 8px rgba(6,95,70,.2)}
.header-main--brand .search-btn{background:transparent;color:var(--c-p-600,#059669);font-weight:700}
.header-main--brand .search-btn:hover{color:var(--c-p-700,#047857)}
.header-main--brand .header-action{color:#fff;opacity:.92;transition:opacity .15s,transform .15s}
.header-main--brand .header-action:hover{opacity:1;transform:translateY(-1px)}
.header-main--brand .action-label{color:#fff;font-size:11px}
.header-main--brand .header-burger span{background:#fff}
.header-main--brand .fav-badge,.header-main--brand .cart-badge{background:#ef4444;color:#fff}
/* Мобильный: полосу прячем, лейблы прячем */
@media(max-width:768px){
    .header-ribbon{display:none}
    .header-main--brand{padding:10px 0}
    .header-main--brand .logo-text{font-size:18px}
    .header-main--brand .action-label{display:none}
}

/* Широкая вёрстка на больших экранах: 6 карточек той же ширины (~235px) */
@media(min-width:1400px){.container{max-width:1500px}}
@media(min-width:1900px){.container{max-width:1600px}}

/* ─── Раздел отзывов: компактно, не на всю ширину ─── */
#tab-reviews{max-width:940px}
#tab-reviews .reviews-summary{padding:16px 20px;gap:32px}
#tab-reviews .reviews-avg-num{font-size:40px}
#tab-reviews .reviews-bars{max-width:320px}
@media(min-width:1024px){
    #tab-reviews{max-width:940px;margin:0 auto;display:flex;flex-wrap:wrap;gap:16px}
    #tab-reviews .reviews-summary{width:100%}
    #tab-reviews .review-card{width:calc(50% - 8px);box-sizing:border-box}
}

/* ─── Карточки: выравнивание по линии (рейтинг-заглушка, ellipsis) ─── */
.product-body .product-rating{min-height:20px;display:flex;align-items:center;gap:4px}
.product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.product-seller{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}

/* ─── Шапка магазина: скруглённый баннер + крошки на фоне страницы ─── */
.seller-top{padding-top:14px}
.seller-top .crumbs a,.seller-top .crumbs span{color:var(--c-n-500,#64748b)}
.seller-top .crumbs a:hover{color:var(--c-p-700,#047857)}
.seller-banner{position:relative;height:180px;border-radius:20px;margin-top:10px;overflow:hidden;
    background:linear-gradient(120deg,#047857 0%,#059669 55%,#10b981 100%);
    box-shadow:0 8px 24px rgba(6,95,70,.22)}
.seller-banner::before{content:'';position:absolute;top:-70px;right:90px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.09)}
.seller-banner::after{content:'';position:absolute;bottom:-90px;right:-30px;width:220px;height:220px;border-radius:50%;background:rgba(251,191,36,.16)}
.seller-banner .badge-row{position:absolute;top:16px;right:16px;z-index:2;display:inline-flex;align-items:center;gap:8px;padding:7px 14px;background:rgba(255,255,255,.2);backdrop-filter:blur(8px);color:#fff;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.3px}
.seller-profile-head{margin-top:-52px;z-index:2;position:relative}
.seller-logo{border-radius:22px;box-shadow:0 8px 20px rgba(15,23,41,.16)}
@media(min-width:1024px){
    .seller-banner{height:250px}
    .seller-profile-head{
        min-height:164px;
        margin-top:-174px;
        padding:18px 20px 20px;
        align-items:center;
    }
    .seller-info h1,
    .seller-profile-head .meta-item,
    .seller-profile-head .meta-item strong{color:#fff}
    .seller-profile-head .meta-link{color:rgba(255,255,255,.92)}
    .seller-profile-head .meta-link:hover{color:#fff}
    .seller-profile-head .seller-verified{
        color:#047857;
        background:rgba(255,255,255,.94);
    }
    .seller-profile-head .seller-contact-chip{
        color:#fff;
        border-color:rgba(255,255,255,.28);
        background:rgba(255,255,255,.14);
        backdrop-filter:blur(8px);
    }
    .seller-profile-head .seller-contact-chip svg{color:rgba(255,255,255,.82)}
    .seller-profile-head a.seller-contact-chip:hover{
        color:#fff;
        border-color:rgba(255,255,255,.6);
        background:rgba(255,255,255,.23);
    }
    .seller-profile-head .seller-btn-sub{
        background:#fff;
        color:var(--c-p-700,#047857);
        box-shadow:0 6px 16px rgba(6,95,70,.2);
    }
    .seller-profile-head .seller-btn-chat{
        border-color:rgba(255,255,255,.72);
        background:rgba(255,255,255,.16);
        color:#fff;
        box-shadow:none;
        backdrop-filter:blur(8px);
    }
    .seller-profile-head .seller-btn-chat:hover{
        border-color:#fff;
        background:rgba(255,255,255,.25);
        color:#fff;
    }
}

/* ─── Поля форм: единый нейтральный focus без внутренних зелёных артефактов ─── */
:where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
    select,
    textarea
):focus-visible{
    outline:2px solid var(--c-n-500,#64748b);
    outline-offset:2px;
    box-shadow:0 0 0 4px rgba(100,116,139,.12);
}

/* У составных контролов рамка принадлежит контейнеру, а не вложенному полю. */
.header-search :is(input,select,button):focus-visible,
.classified-home-search :is(input,button):focus-visible,
.input input:focus-visible{
    outline:none;
    outline-offset:0;
    box-shadow:none;
}
.header-search:has(:is(input,select,button):focus-visible){
    box-shadow:0 0 0 3px rgba(15,23,42,.18),0 2px 8px rgba(6,95,70,.2);
}
.classified-home-search:has(:is(input,button):focus-visible){
    box-shadow:0 0 0 3px rgba(100,116,139,.14),0 8px 24px rgba(15,23,42,.07);
}
.input:focus-within{
    border-color:var(--c-n-400,#94a3b8);
    box-shadow:0 0 0 3px rgba(100,116,139,.12);
}

/* Защита от конфликтов старого solid-правила и брендового прозрачного submit. */
.header-main--brand .header-search .search-btn,
.header-main--brand .header-search .search-btn:focus,
.header-main--brand .header-search .search-btn:focus-visible{
    background:transparent;
    color:var(--c-p-600,#059669);
}
@media(max-width:768px){
    .seller-banner{height:110px;border-radius:16px}
    .seller-banner .badge-row{font-size:10px;padding:5px 10px;top:10px;right:10px}
    .seller-profile-head{margin-top:-40px}
    .seller-logo{width:88px;height:88px;font-size:32px;border-width:4px;border-radius:18px}
}
/* Старый cover больше не используется */
.seller-cover--empty{display:none}

/* ─── Фильтры витрины магазина ─── */
.seller-filters{margin-bottom:14px}
.seller-cats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.seller-cat-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;background:#fff;border:1.5px solid #e2e8f0;font-size:13px;font-weight:500;color:var(--c-n-700,#334155);text-decoration:none;transition:color .15s,background-color .15s,border-color .15s;cursor:pointer}
.seller-cat-chip:hover{border-color:var(--c-p-600,#059669);color:var(--c-p-700,#047857)}
.seller-cat-chip.active{background:var(--c-p-600,#059669);border-color:var(--c-p-600,#059669);color:#fff}
.seller-cat-chip .cnt{font-size:11px;font-weight:700;opacity:.75}
.seller-filter-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.seller-filter-bar .filter-pill.active{background:var(--c-p-50,#ECFDF5);border-color:var(--c-p-600,#059669);color:var(--c-p-700,#047857)}
.seller-filter-bar button.filter-pill{font:inherit;cursor:pointer}
.seller-filter-reset{color:var(--c-error,#dc2626);text-decoration:none}
.seller-filter-reset[hidden]{display:none!important}
.seller-search{height:40px;min-width:220px;display:flex;align-items:center;gap:8px;padding-left:12px;background:#fff;border:1.5px solid #e2e8f0;border-radius:999px;color:var(--c-n-400,#94a3b8)}
.seller-search:focus-within{border-color:var(--c-p-600,#059669);box-shadow:0 0 0 3px rgba(5,150,105,.1)}
.seller-search input{width:130px;min-width:0;flex:1;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:var(--c-n-900,#0f172a)}
.seller-search button{height:32px;padding:0 12px;margin-right:3px;border:0;border-radius:999px;background:var(--c-p-600,#059669);color:#fff;font-size:12px;font-weight:700;cursor:pointer}
.seller-load-more-wrap{display:flex;justify-content:center;padding:24px 0 8px}
.seller-load-more{min-width:220px;min-height:44px}
.seller-load-more[hidden]{display:none!important}
.seller-actions [data-close-seller-filter], [data-close-seller-filter]{width:44px!important;height:44px!important}
@media(max-width:767px){
    .seller-cats{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
    .seller-cats::-webkit-scrollbar{display:none}
    .seller-cat-chip{flex-shrink:0}
    .seller-filter-bar{align-items:stretch}
    .seller-search{order:-1;width:100%;min-width:0;height:44px}
    .seller-search input{width:auto;font-size:16px}
}

/* ─── Контакты магазина в шапке (чипы) ─── */
.seller-contacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.seller-contact-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--c-n-50,#f8fafc);border:1px solid var(--c-n-200,#e2e8f0);font-size:12px;font-weight:500;color:var(--c-n-600,#475569);text-decoration:none;transition:color .15s,background-color .15s,border-color .15s;max-width:100%}
a.seller-contact-chip:hover{border-color:var(--c-p-600,#059669);color:var(--c-p-700,#047857);background:var(--c-p-50,#ECFDF5)}
.seller-contact-chip svg{flex-shrink:0;color:var(--c-n-400,#94a3b8)}
/* Сетка витрины на всю ширину */
.seller-content .products-main{width:100%}
@media(max-width:767px){
    .seller-contacts{width:100%;gap:6px;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
    .seller-contacts::-webkit-scrollbar{display:none}
    .seller-contact-chip{flex:0 0 auto;font-size:12px;padding:7px 10px;min-height:44px}
    .seller-contacts a.seller-contact-chip{order:-1}
}

/* ─── Фильтр каталога: стилистика сайта ─── */
#filter-form .group{border-bottom:1px solid #f1f5f9;padding:16px 0}
#filter-form .group h4{font-size:14px;font-weight:700;color:#0f1729;margin-bottom:10px}
#filter-form .options{display:flex;flex-direction:column;gap:2px}
#filter-form .checkbox{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;cursor:pointer;font-size:14px;color:var(--c-n-700,#334155);transition:background .12s}
#filter-form .checkbox:hover{background:var(--c-n-50,#f8fafc)}
#filter-form .checkbox input[type=checkbox],#filter-form .checkbox input[type=radio]{width:17px;height:17px;accent-color:#059669;cursor:pointer;flex-shrink:0;margin:0}
#filter-form .checkbox input:checked ~ *{color:var(--c-p-700,#047857)}
#filter-form .checkbox:has(input:checked){background:var(--c-p-50,#ECFDF5);color:var(--c-p-700,#047857);font-weight:600}

/* ─── Фильтр: внутренний скролл + компактность ─── */
#filter-form{display:flex;flex-direction:column;flex:1;min-height:0}
@media(min-width:768px){.sheet{width:380px}}
.sheet-body .group{padding:10px 0}
.sheet-body .group h4{margin-bottom:8px}
.sheet-body .options{gap:4px}
#filter-form .group{padding:10px 0}
#filter-form .group h4{margin-bottom:8px}
#filter-form .checkbox{padding:4px 8px}
/* Блокировка скролла страницы при открытой панели */
html.sheet-open,body.sheet-open{overflow:hidden !important;overscroll-behavior:none}
.sheet{overscroll-behavior:contain}
.sheet-body{
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:var(--c-n-300,#cbd5e1) transparent;
}
.sheet-body::-webkit-scrollbar{width:8px}
.sheet-body::-webkit-scrollbar-track{background:transparent}
.sheet-body::-webkit-scrollbar-thumb{background:var(--c-n-300,#cbd5e1);border:2px solid #fff;border-radius:999px}
.sheet-body::-webkit-scrollbar-thumb:hover{background:var(--c-n-400,#94a3b8)}

/* ─── Категория: dropdown с поиском (витрина, как WB) ─── */
.cat-dropdown{position:relative}
.cat-dropdown-btn{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.cat-dropdown-panel{display:none;position:absolute;top:calc(100% + 8px);left:0;width:320px;background:#fff;border:1px solid #e8ecf1;border-radius:16px;box-shadow:0 12px 32px rgba(15,23,41,.14);padding:12px;z-index:300}
.cat-dropdown.open .cat-dropdown-panel{display:block}
.cat-dropdown.open .cat-dropdown-btn{border-color:var(--c-p-600,#059669);color:var(--c-p-700,#047857)}
.cat-search input{width:100%;height:40px;padding:0 14px;border:1.5px solid #e2e8f0;border-radius:10px;font:inherit;font-size:14px;outline:none;margin-bottom:8px}
.cat-search input:focus{border-color:var(--c-p-600,#059669)}
.cat-list{max-height:300px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.cat-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:14px;color:var(--c-n-700,#334155);transition:background .12s}
.cat-item:hover{background:var(--c-n-50,#f8fafc)}
.cat-item input[type=checkbox]{width:17px;height:17px;accent-color:#059669;cursor:pointer;flex-shrink:0}
.cat-item:has(input:checked){background:var(--c-p-50,#ECFDF5);color:var(--c-p-700,#047857);font-weight:600}
.cat-item-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cat-item-cnt{font-size:11px;color:var(--c-n-400,#94a3b8);flex-shrink:0}
.cat-item.hidden{display:none}
/* Выбранные категории — чипы под тулбаром */
.seller-active-cats{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.active-cat-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--c-p-50,#ECFDF5);border:1px solid var(--c-p-600,#059669);color:var(--c-p-700,#047857);font-size:12px;font-weight:600;text-decoration:none;transition:background .15s}
.active-cat-chip:hover{background:#d1fae5}
.active-cat-chip span{color:var(--c-p-600,#059669);font-weight:700}
@media(max-width:767px){
    .cat-dropdown-panel{
        position:fixed;left:12px;right:12px;
        top:calc(var(--catalog-sticky-top,76px) + 10px);
        bottom:calc(76px + env(safe-area-inset-bottom,0px));
        width:auto;max-height:none;overflow:hidden
    }
    .cat-dropdown.open .cat-dropdown-panel{display:flex;flex-direction:column}
    .cat-dropdown-panel form{display:flex;flex:1;min-height:0;flex-direction:column}
    .cat-list{flex:1;min-height:0;max-height:none}
}

/* Фильтр цены: убираем двойную обводку (глобальный :focus-visible + wrapper) */
.input input:focus-visible{outline:none}
/* Select сортировки: фокус в форме пилюли, без квадратного outline */
.sort-select:focus{outline:none;border-color:var(--c-border-strong,#cbd5e1);box-shadow:0 0 0 3px rgba(15,23,41,.06)}

/* Фильтр: без зелёного свечения цены, поле = области ввода */
#filter-form .input{border-color:var(--c-n-200,#e2e8f0);box-shadow:none}
#filter-form .input:focus-within{border-color:var(--c-border-strong,#cbd5e1);box-shadow:none;background:#fff}
#filter-form .input input{background:transparent}
#filter-form .input input:focus-visible{outline:none;box-shadow:none}
/* Панель фильтра компактнее */
@media(min-width:768px){.sheet{width:320px}}

/* Панель фильтра: оптимальная ширина + стилизованные кнопки футера */
@media(min-width:768px){.sheet{width:344px}}
.sheet-foot{display:flex;gap:10px;align-items:stretch}
.sheet-foot .btn,.sheet-foot .btn-primary{height:48px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:15px;font-weight:600}
.sheet-foot .btn{flex:0 0 auto;padding:0 20px}
.sheet-foot .btn-primary{flex:1}

/* ─── Компактная карточка каталога ─── */
/* Избранное — только при наведении на карточку */
.product-card-fav{opacity:0;transition:opacity .18s ease}
.product:hover .product-card-fav,.product-card-fav.active{opacity:1}
@media(hover:none){.product-card-fav{opacity:1}} /* на тачах — всегда видна */
/* Кнопка корзины всегда занимает собственную строку под названием */
.product-body .product-card-cart{position:relative;width:100%;height:36px;margin:8px 0 0;justify-content:center;gap:8px;padding:8px 12px;font-size:13px;font-weight:600}
@media(max-width:767px){
    .product-body .product-card-cart{padding:8px 10px;font-size:12px}
    .product-body .product-card-cart span:not(.cart-qty-badge){display:inline}
}
@media(min-width:768px){.product-body .product-card-cart svg{display:none}}
/* Цена + рейтинг в одной строке, рейтинг у правого угла */
.product-body .product-price{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.product-body .product-price .product-rating{margin-left:auto;font-size:12px;font-weight:600;color:var(--c-n-500,#64748b);white-space:nowrap;display:inline-flex;align-items:center;gap:2px}
.product-body .product-price .product-rating .stars{color:#f59e0b}
.product-body .product-price .product-rating .rev{font-weight:400;color:var(--c-n-400,#94a3b8)}
@media(max-width:767px){
    .product-body .product-price{
        flex-wrap:wrap;
        align-content:flex-start;
        row-gap:2px;
        min-height:40px;
    }
    .product-body .product-price .product-rating{
        flex:0 0 100%;
        min-width:0;
        margin-left:0;
        justify-content:flex-end;
        font-variant-numeric:tabular-nums;
    }
}
/* Заголовок: 2 строки макс, фиксированная высота для выравнивания */
.product-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px}

/* Ховер в шапке-бренде: элегантный, без контрастной засветки */
.header-main--brand .header-action{border-radius:12px;padding:8px 10px}
.header-main--brand .header-action:hover{
    opacity:1;transform:translateY(-1px);
    background:rgba(255,255,255,.15);
    color:#fff;
}
.header-main--brand .header-action:active{transform:translateY(0)}

/* ─── Варианты: читаемые имена (переносы, без обрезки) ─── */
.pdp-var-thumb{width:88px}
.pdp-var-img{width:88px;height:112px}
.pdp-var-name{
    font-size:12px;line-height:1.25;color:var(--c-n-700,#334155);text-align:center;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    overflow-wrap:break-word;word-break:normal;hyphens:none;min-height:30px
}
.pdp-var-thumb.active .pdp-var-name{color:var(--c-p-700,#047857);font-weight:600}
@media(max-width:767px){
    .pdp-var-thumb{width:80px}
    .pdp-var-img{width:80px;height:106px}
    .pdp-var-name{font-size:11px;min-height:28px}
}

/* Варианты: перенос только по словам, без разрыва посреди слова */
.pdp-var-thumb{width:96px}
.pdp-var-img{width:96px;height:120px}
.pdp-var-name{font-size:11.5px;overflow-wrap:normal;word-break:keep-all}
@media(max-width:767px){.pdp-var-thumb{width:86px}.pdp-var-img{width:86px;height:110px}.pdp-var-name{font-size:11px}}

/* Варианты: активное состояние без зелёного свечения — тонкая рамка и жирный текст */
.pdp-var-thumb.active .pdp-var-img{border-color:var(--c-p-600,#059669);box-shadow:none}
.pdp-var-thumb .pdp-var-img{transition:border-color .15s}

/* Варианты-превью: сброс старого .pdp-option-btn.active (зелёный фон и 2px рамка) */
.pdp-var-thumb.pdp-option-btn.active{background:transparent;border:none;padding:0;color:inherit}

/* ─── Кастомный select: кнопка и список в едином стиле ─── */
.custom-select{position:relative;display:inline-flex}
.custom-select-btn{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
.custom-select-btn svg{transition:transform .2s ease;color:var(--c-n-500,#64748b)}
.custom-select.open .custom-select-btn{border-color:var(--c-p-600,#059669);color:var(--c-p-700,#047857)}
.custom-select.open .custom-select-btn svg{transform:rotate(180deg)}
.custom-select-panel{display:none;position:absolute;top:calc(100% + 6px);left:0;min-width:100%;width:max-content;max-width:260px;background:#fff;border:1px solid #e8ecf1;border-radius:14px;box-shadow:0 10px 28px rgba(15,23,41,.14);padding:6px;z-index:300}
.custom-select.open .custom-select-panel{display:block;animation:csDrop .15s ease}
@keyframes csDrop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.custom-select-option{display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:9px;font-size:14px;color:var(--c-n-700,#334155);cursor:pointer;transition:background .12s;white-space:nowrap}
.custom-select-option:hover{background:var(--c-n-50,#f8fafc)}
.custom-select-option.selected{background:var(--c-p-50,#ECFDF5);color:var(--c-p-700,#047857);font-weight:600}
.custom-select-option.selected::after{content:'✓';margin-left:auto;color:var(--c-p-600,#059669);font-weight:700}
.custom-select{z-index:400}
.custom-select-panel{z-index:999}
/* На десктопе список должен выходить за пределы строки фильтров.
   На мобильном показываем его как компактную панель над bottom-nav:
   абсолютный список внутри overflow-x строки обрезается браузером. */
@media(min-width:768px){
    .filter-row{overflow:visible}
}
@media(max-width:767px){
    .custom-select.open .custom-select-panel{
        position:fixed;
        left:16px;
        right:16px;
        top:auto;
        bottom:calc(76px + env(safe-area-inset-bottom));
        width:auto;
        min-width:0;
        max-width:none;
        max-height:min(60vh,360px);
        overflow-y:auto;
    }
}

/* Мобильные зоны нажатия: визуальные элементы остаются компактными,
   но основные действия получают надёжную область не меньше 44px. */
@media(max-width:767px){
    .header-search{height:44px}
    .product-fav{width:44px;height:44px;top:6px;right:6px}
    .product-body .product-card-cart{height:44px;min-height:44px}
    .chip{height:44px;min-height:44px}
    .filter-pill{min-height:44px}
    /* Fixed catalog must use the viewport, not the transformed sticky header. */
    .site-header{will-change:auto}
    html.catalog-open,body.catalog-open{overflow:hidden !important;overscroll-behavior:none}
    html.catalog-open .site-header{
        position:fixed;
        top:0;
        right:0;
        left:0;
        width:100%;
        z-index:220;
        transform:none !important;
        visibility:visible !important;
        opacity:1 !important;
        pointer-events:auto !important;
    }
    .mega-menu{
        position:fixed;
        top:76px;
        bottom:calc(64px + env(safe-area-inset-bottom));
        left:0;
        right:0;
        max-height:none;
        overflow-y:auto;
        overscroll-behavior:contain;
        border-top:0;
        background:var(--c-bg,#f8fafc);
    }
    .mega-menu-mobile-head{
        position:sticky;
        top:0;
        z-index:3;
        display:flex;
        align-items:center;
        justify-content:space-between;
        min-height:56px;
        padding:6px 16px;
        border-bottom:1px solid var(--c-border,#e2e8f0);
        background:rgba(255,255,255,.96);
    }
    .mega-menu-mobile-title{
        color:var(--c-text,#0f172a);
        font-size:18px;
        line-height:1.2;
    }
    .mega-menu-close{
        display:inline-flex;
        width:44px;
        height:44px;
        flex:0 0 44px;
        align-items:center;
        justify-content:center;
        border:0;
        border-radius:12px;
        background:var(--c-n-100,#f1f5f9);
        color:var(--c-text,#0f172a);
        cursor:pointer;
    }
    .mega-menu-close:hover{background:var(--c-p-50,#ecfdf5);color:var(--c-p-700,#047857)}
    .mega-menu-close:active{transform:scale(.96)}
    .mega-menu-close:focus-visible{outline:3px solid rgba(5,150,105,.28);outline-offset:2px}
    .mega-menu-inner{
        display:block;
        width:100%;
        min-height:0;
        padding:12px 16px 20px;
    }
    .mega-menu-left{
        width:100%;
        padding:0;
        border-right:0;
        overflow:visible;
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }
    .mega-cat-link{
        min-width:0;
        min-height:48px;
        padding:10px 12px;
        border:1px solid var(--c-border,#e2e8f0);
        border-radius:12px;
        background:#fff;
        line-height:1.25;
    }
    .mega-cat-link:hover,.mega-cat-link:active{background:var(--c-p-50,#ecfdf5)}
    .mega-cat-link svg{display:none}
    .mega-menu-right{display:none}
}
@media(max-width:359px){.mega-menu-left{grid-template-columns:1fr}}
@media(max-width:480px){
    .header-main-inner{gap:6px}
    .header-main--brand .header-logo{
        width:44px;
        height:44px;
        justify-content:center;
    }
    .header-main--brand .btn-catalog{
        width:44px;
        height:44px;
        padding:0;
        justify-content:center;
    }
    .header-main--brand .header-burger{
        width:44px;
        height:44px;
        padding:0;
        align-items:center;
        justify-content:center;
    }
    .header-search{gap:4px;padding-inline:4px}
    .header-search-scope{
        min-width:42px;
        max-width:42px;
        height:36px;
        align-self:center;
        justify-content:center;
        border-radius:10px;
        background:var(--c-n-50,#f8fafc);
    }
    .header-search-scope select{
        position:absolute;
        inset:0;
        z-index:2;
        width:100%;
        height:100%;
        padding:0;
        opacity:0;
        cursor:pointer;
    }
    .header-search-scope-icon{
        display:block;
        position:static;
        width:19px;
        height:19px;
        color:var(--c-n-600,#475569);
    }
    .header-search-scope-chevron{
        right:2px;
        bottom:2px;
        width:9px;
        height:9px;
        color:var(--c-n-500,#64748b);
    }
    .header-search-divider{display:none}
    .header-search .search-icon{display:none}
    .header-search input{padding:0 3px;font-size:13px}
}

/* Авторизация: нейтральные поля в стиле публичных форм, без зелёной заливки autofill */
.auth-field-label{
    display:block;
    margin-bottom:8px;
    color:var(--c-n-600,#475569);
    font-size:13px;
    font-weight:500;
}
.auth-forms .input{
    border:1.5px solid var(--c-n-200,#e2e8f0);
    box-shadow:none;
    transition:border-color .15s ease,box-shadow .15s ease;
}
.auth-forms .input:hover{border-color:var(--c-n-300,#cbd5e1)}
.auth-forms .input:focus-within{
    border-color:var(--c-n-400,#94a3b8);
    box-shadow:0 0 0 3px rgba(100,116,139,.12);
}
.auth-forms .input input:-webkit-autofill,
.auth-forms .input input:-webkit-autofill:hover,
.auth-forms .input input:-webkit-autofill:focus{
    -webkit-text-fill-color:var(--c-n-900,#0f1729);
    -webkit-box-shadow:0 0 0 100px #fff inset;
    caret-color:var(--c-n-900,#0f1729);
}

/* ─── Mobile marketplace cards: image-first, compact and touch-friendly ─── */
@media(max-width:767px){
    .product-grid{
        gap:6px;
        align-items:start;
        margin-inline:-8px;
    }
    .product-grid .product{
        height:auto;
        min-width:0;
        overflow:visible;
        border:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
    }
    .product-grid .product,
    .product-grid .product-card-cart,
    .product-grid .product-fav{
        touch-action:manipulation;
        -webkit-tap-highlight-color:rgba(5,150,105,.12);
    }
    .product-grid .product:hover{
        transform:none;
        box-shadow:none;
    }
    .product-grid .product-img{
        overflow:hidden;
        isolation:isolate;
        border-radius:14px;
        background:var(--c-n-100,#f1f5f9);
    }
    .product-grid .product-img>img{
        border-radius:inherit;
    }
    .product-grid .product-body{
        position:relative;
        display:grid;
        grid-template-columns:max-content minmax(0,1fr);
        grid-template-rows:auto auto auto;
        column-gap:6px;
        row-gap:3px;
        min-width:0;
        padding:7px 4px 12px;
    }
    .product-grid .product-price{
        display:contents;
    }
    .product-grid .product-price .new{
        grid-column:1;
        grid-row:1;
        min-width:0;
        font-size:17px;
        line-height:1.2;
        font-weight:800;
        font-variant-numeric:tabular-nums;
        letter-spacing:-.02em;
    }
    .product-grid .product-price .old{
        grid-column:2;
        grid-row:1;
        align-self:end;
        min-width:0;
        overflow:hidden;
        padding-bottom:1px;
        font-size:11px;
        line-height:1.2;
        text-overflow:ellipsis;
        font-variant-numeric:tabular-nums;
    }
    .product-grid .product-title{
        grid-column:1/-1;
        grid-row:2;
        min-width:0;
        min-height:34px;
        margin:0;
        color:var(--c-n-700,#334155);
        font-size:12.5px;
        line-height:1.35;
        -webkit-line-clamp:2;
        overflow-wrap:anywhere;
    }
    .product-grid .product-price .product-rating{
        grid-column:1/-1;
        grid-row:3;
        justify-self:start;
        min-width:0;
        min-height:18px;
        margin:0;
        color:var(--c-n-600,#475569);
        font-size:11.5px;
        line-height:18px;
        font-variant-numeric:tabular-nums;
    }
    .product-grid .product-body .product-card-cart{
        position:absolute;
        z-index:4;
        top:-50px;
        left:auto;
        right:4px;
        width:44px;
        min-width:44px;
        max-width:44px;
        height:44px;
        min-height:44px;
        justify-self:end;
        margin:0;
        padding:0;
        gap:0;
        border:3px solid rgba(255,255,255,.96);
        border-radius:14px;
        box-shadow:0 5px 14px rgba(5,150,105,.3);
    }
    .product-grid .product-body .product-card-cart span:not(.cart-qty-badge){
        display:none;
    }
    .product-grid .product-body .product-card-cart svg{
        display:block;
        width:20px;
        height:20px;
    }
    .product-grid .product-fav{
        top:4px;
        right:4px;
        width:44px;
        height:44px;
        background:rgba(255,255,255,.94);
        box-shadow:0 2px 8px rgba(15,23,42,.1);
    }
    .product-grid .product-img-dots{
        bottom:6px;
        opacity:1;
    }
}
@media(max-width:359px){
    .product-grid{
        gap:4px;
        margin-inline:-10px;
    }
    .product-grid .product-body{
        column-gap:4px;
        padding-inline:3px;
    }
    .product-grid .product-price .new{font-size:15.5px}
    .product-grid .product-price .old{font-size:10px}
    .product-grid .product-title{font-size:12px}
}

/* Каталог: фильтры прилипают непосредственно под фактической высотой шапки. */
html,body{overflow-x:clip}
.catalog-filter-bar{
    top:var(--catalog-sticky-top,76px);
    z-index:88;
    padding:8px 0;
    background:rgba(249,250,251,.97);
    box-shadow:0 1px 0 rgba(15,23,42,.06);
    backdrop-filter:saturate(160%) blur(10px);
}
.catalog-filter-row{
    flex-wrap:nowrap;
    align-items:center;
    margin:8px 0;
    padding-bottom:0;
}
.filter-reset{
    gap:7px;
    color:var(--c-n-600,#4b5563);
    background:#fff;
}
.filter-reset[hidden]{display:none}
.filter-reset:hover{
    border-color:var(--c-n-400,#9ca3af);
    color:var(--c-n-900,#111827);
}
.filter-reset.is-active{
    border-color:var(--c-error,#dc2626);
    color:var(--c-error,#dc2626);
    background:var(--c-error-bg,#fee2e2);
}
.catalog-products-grid:focus{outline:none}
@media(max-width:767px){
    .catalog-filter-bar{padding:6px 0}
    .catalog-filter-row{
        margin:0;
        padding:0 0 3px;
        overflow-x:auto;
    }
}

/* Корзина: изолируем её шапку продавца от одноимённого блока витрины. */
.cart-page .seller-head{
    margin-top:0;
    z-index:auto;
    flex-direction:row;
    align-items:center;
    flex-wrap:nowrap;
    text-align:left;
}

@media(max-width:767px){
    .cart-page{
        padding:14px 0 calc(142px + env(safe-area-inset-bottom));
    }
    .cart-page>.container{padding-inline:12px}
    .cart-page h1{
        margin-bottom:12px;
        font-size:24px;
        line-height:1.25;
    }
    .cart-layout{gap:12px}
    .cart-page .seller-group{
        margin-bottom:10px;
        border-color:var(--c-n-200,#e5e7eb);
        border-radius:16px;
        box-shadow:0 2px 10px rgba(15,23,42,.04);
    }
    .cart-page .seller-head{
        min-height:58px;
        padding:10px 12px;
        gap:10px;
        background:var(--c-n-50,#f9fafb);
    }
    .cart-page .seller-head .logo{
        width:36px;
        height:36px;
        border-radius:10px;
    }
    .cart-page .seller-head .name{font-size:13px}
    .cart-page .cart-row{
        display:grid;
        grid-template-columns:88px minmax(0,1fr);
        grid-template-rows:auto auto auto;
        gap:0 10px;
        min-width:0;
        padding:12px;
    }
    .cart-page .cart-row-thumb{
        grid-column:1;
        grid-row:1 / span 2;
        width:88px;
        height:112px;
        border-radius:12px;
    }
    .cart-page .cart-row .body{display:contents}
    .cart-page .cart-row .title{
        grid-column:2;
        grid-row:1;
        align-self:start;
        min-width:0;
        margin:1px 0 5px;
        font-size:13px;
        line-height:1.35;
        display:-webkit-box;
        overflow:hidden;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:3;
        overflow-wrap:anywhere;
    }
    .cart-page .cart-row .price-unit{
        grid-column:2;
        grid-row:2;
        align-self:start;
        font-size:12px;
    }
    .cart-page .cart-row .row-bottom{
        grid-column:1 / -1;
        grid-row:3;
        width:100%;
        min-width:0;
        margin-top:10px;
        gap:8px;
    }
    .cart-page .qty{
        height:42px;
        border-radius:12px;
    }
    .cart-page .qty button{
        width:36px;
        min-width:36px;
    }
    .cart-page .qty .val{
        width:32px;
        min-width:32px;
    }
    .cart-page .cart-row .row-bottom .right{gap:6px}
    .cart-page .cart-row .total{font-size:16px}
    .cart-page .cart-row .right .icon-btn{
        width:42px !important;
        height:42px !important;
        flex-shrink:0;
    }
    .cart-page .cart-summary-column{min-width:0}
    .cart-page .summary{
        padding:16px;
        border-radius:16px;
    }
    .cart-page .summary h3{margin-bottom:10px}
    .cart-page .summary .row{
        gap:12px;
        padding:6px 0;
    }
    .cart-page .summary .row .v{text-align:right}
    .cart-page .summary .total-row .v{
        min-width:0;
        font-size:26px;
        white-space:nowrap;
    }
    .cart-page .promo-input{margin-top:16px}
    .cart-page .bonus-card{
        margin-top:10px;
        border-radius:16px;
    }
    .cart-page .lock-text{
        line-height:1.35;
        text-align:center;
    }
    .cart-page .cart-checkout-action{
        position:fixed;
        left:12px;
        right:12px;
        bottom:calc(68px + env(safe-area-inset-bottom));
        z-index:80;
        width:auto;
        min-height:52px;
        margin:0 !important;
        border:1px solid rgba(255,255,255,.8);
        border-radius:14px;
        box-shadow:0 8px 24px rgba(5,150,105,.32);
    }
}
@media(max-width:359px){
    .cart-page .cart-row{grid-template-columns:76px minmax(0,1fr)}
    .cart-page .cart-row-thumb{width:76px;height:100px}
    .cart-page .cart-row .title{-webkit-line-clamp:2}
    .cart-page .cart-row .row-bottom{flex-wrap:wrap}
    .cart-page .cart-row .row-bottom .right{margin-left:auto}
    .cart-page .summary{padding:14px}
    .cart-page .summary .total-row .v{font-size:23px}
}

/* На смартфоне системный цвет браузера и верхняя кромка страницы совпадают с хедером. */
@media(max-width:768px){
    html{background:#059669}
    .header-main--brand{background:#059669}
}

/* ─── Объявления: локальный маркетплейс, фильтры и рекламные позиции ─── */
.classifieds-shell{padding-top:18px;padding-bottom:48px}
.classifieds-crumbs{margin-bottom:14px}
.classifieds-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:22px 28px;
    padding:28px;
    border:1px solid rgba(5,150,105,.16);
    border-radius:24px;
    background:
        radial-gradient(circle at 88% 20%,rgba(16,185,129,.16),transparent 28%),
        linear-gradient(135deg,#ecfdf5 0%,#fff 72%);
}
.classifieds-kicker{
    display:block;
    margin-bottom:7px;
    color:var(--c-p-700,#047857);
    font-size:12px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.classifieds-hero h1{max-width:760px;font-size:clamp(28px,3vw,42px);line-height:1.08;letter-spacing:-.035em}
.classifieds-hero p{margin-top:8px;color:var(--c-n-600,#475569);font-size:15px}
.classifieds-create{min-height:48px;white-space:nowrap}
.classifieds-hero--compact{align-items:center}
.classifieds-search{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    min-height:56px;
    overflow:hidden;
    padding-left:18px;
    border:1.5px solid var(--c-n-200,#e2e8f0);
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 24px rgba(15,23,42,.06);
}
.classifieds-search>svg{color:var(--c-n-400,#94a3b8)}
.classifieds-search input{
    min-width:0;
    height:54px;
    padding:0 13px;
    border:0;
    outline:0;
    background:transparent;
    color:var(--c-n-900,#0f172a);
    font:inherit;
    font-size:16px;
}
.classifieds-search button{
    align-self:stretch;
    min-width:108px;
    border:0;
    background:var(--c-p-600,#059669);
    color:#fff;
    font:inherit;
    font-weight:700;
    cursor:pointer;
}
.classified-categories{margin-top:30px}
.classified-section-head,.classified-results-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
}
.classified-section-head{margin-bottom:14px}
.classified-section-head h2,.classified-results-head h2{font-size:22px;letter-spacing:-.015em}
.classified-section-head>a{color:var(--c-p-700,#047857);font-size:13px;font-weight:700}
.classified-categories-link--mobile{display:none!important}
@media(max-width:1024px){
    .classified-categories-link--desktop{display:none!important}
    .classified-categories-link--mobile{display:inline-flex!important}
}
.classified-category-grid{display:flex;flex-direction:column;gap:12px}
.classified-category-row{display:flex;gap:12px;min-width:0}
.classified-category-row::after{content:"";display:block;flex:var(--category-missing-weight,0) 1 0;min-width:0}
.classified-category-card{
    --category-image-fit:cover;
    --category-image-zoom:1;
    --category-image-x:0%;
    --category-image-y:0%;
    --category-image-rotation:0deg;
    --category-surface:#f2f4f5;
    position:relative;
    display:block;
    flex:var(--category-card-grow,1) 1 0;
    min-width:0;
    height:126px;
    overflow:hidden;
    border:1px solid transparent;
    border-radius:17px;
    background:var(--category-surface);
    color:inherit;
    text-decoration:none;
    isolation:isolate;
    transition:border-color .16s,box-shadow .16s,background-color .16s;
}
.classified-category-card:hover{--category-surface:#e9eef0;border-color:var(--c-p-300,#6ee7b7);box-shadow:0 8px 20px rgba(15,23,42,.07)}
.classified-category-card.active{--category-surface:var(--c-p-50,#ecfdf5);border-color:var(--c-p-500,#10b981)}
.classified-category-card:focus-visible{outline:3px solid rgba(10,159,115,.32);outline-offset:2px}
.classified-category-card-copy{
    position:relative;
    z-index:2;
    display:flex;
    width:var(--category-copy-width,56%);
    height:100%;
    flex-direction:column;
    padding:16px 4px 14px 16px;
}
.classified-category-card-copy strong,.classified-category-card-copy small{display:block}
.classified-category-card-copy strong{
    color:var(--c-n-900,#0f172a);
    font-size:15px;
    font-weight:750;
    line-height:1.22;
    word-break:normal;
    overflow-wrap:normal;
    hyphens:none;
    text-wrap:balance;
}
.classified-category-card-copy small{
    margin-top:auto;
    color:var(--c-n-500,#64748b);
    font-size:11.5px;
    font-weight:600;
    line-height:1.2;
}
.classified-category-card-media{
    position:absolute;
    z-index:1;
    inset:0;
    display:block;
    overflow:visible;
    border-radius:inherit;
}
.classified-category-card-media>img{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:var(--category-image-fit,cover);
    transform:translate(var(--category-image-x),var(--category-image-y)) rotate(var(--category-image-rotation)) scale(var(--category-image-zoom));
    transform-origin:center;
}
.classified-category-card-fallback{
    position:absolute;
    top:0;
    right:0;
    display:grid;
    width:calc(100% - var(--category-copy-width,56%));
    height:100%;
    place-items:center;
    background:rgba(10,159,115,.1);
    color:#07845f;
    font-size:40px;
    font-weight:800;
}
.classified-promo{
    position:relative;
    display:block;
    overflow:hidden;
    border-radius:18px;
    background:var(--c-n-100,#f1f5f9);
    text-decoration:none;
}
.classified-promo picture,.classified-promo img{display:block;width:100%;height:100%}
.classified-promo img{object-fit:cover}
.classified-promo-label{
    position:absolute;
    z-index:2;
    top:10px;
    right:10px;
    padding:4px 8px;
    border-radius:999px;
    background:rgba(15,23,42,.72);
    color:#fff;
    font-size:10px;
    font-weight:700;
    letter-spacing:.03em;
}
.classified-promo--wide{height:clamp(110px,13vw,180px);margin-top:24px}
.classified-seller-summary{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:24px;
    padding:18px 20px;
    border:1px solid var(--c-n-200,#e2e8f0);
    border-radius:18px;
    background:#fff;
}
.classified-seller-avatar{
    display:grid;
    place-items:center;
    flex:0 0 54px;
    width:54px;
    height:54px;
    border-radius:16px;
    background:linear-gradient(135deg,var(--c-p-600,#059669),var(--c-p-400,#34d399));
    color:#fff;
    font-size:24px;
    font-weight:800;
}
.classified-seller-summary>div{flex:1;min-width:0}
.classified-seller-summary>div>span,.classified-seller-summary small{color:var(--c-n-500,#64748b);font-size:12px}
.classified-seller-summary h2{margin:2px 0;font-size:20px}
.classified-results-head{margin:30px 0 14px}
.classified-results-head p{margin-top:4px;color:var(--c-n-500,#64748b);font-size:13px}
.classified-results-actions{display:flex;align-items:center;gap:8px}
.classified-filter-toggle{
    display:none;
    position:relative;
    align-items:center;
    gap:7px;
    min-height:44px;
    padding:0 14px;
    border:1px solid var(--c-n-200,#e2e8f0);
    border-radius:12px;
    background:#fff;
    color:var(--c-n-800,#1e293b);
    font:inherit;
    font-weight:700;
}
.classified-filter-toggle>span{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--c-p-600,#059669);
}
.classified-sort select,.classified-filter-panel select,.classified-filter-panel input{
    width:100%;
    min-height:44px;
    border:1.5px solid var(--c-n-200,#e2e8f0);
    border-radius:11px;
    background:#fff;
    color:var(--c-n-800,#1e293b);
    font:inherit;
    outline:none;
}
.classified-sort select{min-width:190px;padding:0 36px 0 12px}
.classified-sort select:focus,.classified-filter-panel select:focus,.classified-filter-panel input:focus{border-color:var(--c-p-500,#10b981);box-shadow:0 0 0 3px var(--c-p-50,#ecfdf5)}
.classified-market-layout{display:grid;grid-template-columns:248px minmax(0,1fr);gap:22px}
.classified-filter-panel{min-width:0}
.classified-filter-panel>form{
    position:sticky;
    top:96px;
    padding:18px;
    border:1px solid var(--c-n-200,#e2e8f0);
    border-radius:18px;
    background:#fff;
}
.classified-filter-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.classified-filter-title strong{font-size:17px}
.classified-filter-title a{color:var(--c-p-700,#047857);font-size:12px;font-weight:700}
.classified-field>span,.classified-filter-group legend{display:block;margin-bottom:8px;color:var(--c-n-700,#334155);font-size:13px;font-weight:700}
.classified-field select{padding:0 11px}
.classified-filter-group{margin:18px 0 0;padding:17px 0 0;border:0;border-top:1px solid var(--c-n-100,#f1f5f9)}
.classified-filter-group legend{float:left;width:100%}
.classified-filter-group legend+*{clear:both}
.classified-price-range{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.classified-price-range input{padding:0 10px}
.classified-check{display:flex;align-items:center;gap:9px;min-height:38px;color:var(--c-n-700,#334155);font-size:13px;cursor:pointer}
.classified-check input{flex:0 0 18px;width:18px;min-height:18px;accent-color:var(--c-p-600,#059669)}
.classified-filter-submit{width:100%;min-height:46px;margin-top:18px}
.classified-promo--side{height:300px;margin-top:14px}
.classified-results{min-width:0}
.classified-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.classified-card{
    display:flex;
    min-width:0;
    overflow:hidden;
    flex-direction:column;
    border:1px solid var(--c-n-200,#e2e8f0);
    border-radius:16px;
    background:#fff;
    color:inherit;
    text-decoration:none;
    transition:transform .16s,box-shadow .16s,border-color .16s;
}
.classified-card:hover{transform:translateY(-2px);border-color:var(--c-n-300,#cbd5e1);box-shadow:0 9px 24px rgba(15,23,42,.09)}
.classified-card-media{
    position:relative;
    display:block;
    overflow:hidden;
    aspect-ratio:4/3;
    background:var(--c-n-100,#f1f5f9);
}
.classified-card-media>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.classified-card:hover .classified-card-media>img{transform:scale(1.025)}
.classified-no-photo{display:grid;place-items:center;height:100%;gap:4px;color:var(--c-n-400,#94a3b8);font-size:11px}
.classified-badge,.classified-photo-count{
    position:absolute;
    z-index:2;
    padding:4px 7px;
    border-radius:7px;
    font-size:10px;
    font-weight:800;
}
.classified-badge{top:9px;left:9px;color:#fff}
.classified-badge--free{background:var(--c-p-600,#059669)}
.classified-badge--urgent{background:var(--c-sale,#ef4444)}
.classified-photo-count{right:8px;bottom:8px;background:rgba(15,23,42,.68);color:#fff}
.classified-card-body{position:relative;display:flex;min-width:0;flex:1;flex-direction:column;padding:12px}
.classified-card-price{color:var(--c-n-900,#0f172a);font-size:18px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums}
.classified-card-body>strong{
    display:-webkit-box;
    min-height:36px;
    overflow:hidden;
    margin-top:5px;
    color:var(--c-n-800,#1e293b);
    font-size:14px;
    line-height:1.3;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
.classified-card-category{margin-top:7px;color:var(--c-p-700,#047857);font-size:11px;font-weight:700}
.classified-card-description{
    display:-webkit-box;
    min-height:34px;
    overflow:hidden;
    margin-top:5px;
    color:var(--c-n-500,#64748b);
    font-size:11px;
    line-height:1.45;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}
.classified-card-meta{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;margin-top:auto;padding-top:10px;color:var(--c-n-500,#64748b);font-size:10px}
.classified-card-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.classified-card-meta time{flex-shrink:0}
.classified-promoted{margin-top:7px;color:var(--c-n-400,#94a3b8);font-size:9px;text-transform:uppercase;letter-spacing:.05em}
.classified-promo--inline{grid-column:1/-1;height:140px}
.classified-empty{display:grid;place-items:center;min-height:360px;padding:32px;text-align:center;border:1px dashed var(--c-n-300,#cbd5e1);border-radius:18px;background:#fff}
.classified-empty svg{color:var(--c-n-400,#94a3b8)}
.classified-empty h3{margin-top:12px;font-size:20px}
.classified-empty p{max-width:480px;margin:6px 0 18px;color:var(--c-n-500,#64748b);font-size:13px;line-height:1.5}

@media(max-width:1100px){
    .classified-category-grid,.classified-category-row{gap:9px}
    .classified-category-card-copy strong{font-size:14px}
    .classified-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:899px){
    .classified-market-layout{grid-template-columns:220px minmax(0,1fr);gap:14px}
    .classified-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
    .classifieds-shell{padding:12px 12px calc(94px + env(safe-area-inset-bottom))}
    .classifieds-crumbs{display:none}
    .classifieds-hero{
        grid-template-columns:minmax(0,1fr);
        gap:16px;
        padding:18px 16px;
        border-radius:18px;
    }
    .classifieds-kicker{font-size:10px}
    .classifieds-hero h1{font-size:26px}
    .classifieds-hero p{font-size:13px;line-height:1.45}
    .classifieds-create{grid-row:3;justify-content:center;width:100%}
    .classifieds-hero--compact .classifieds-create{grid-row:2}
    .classifieds-search{grid-row:2;min-height:50px;padding-left:14px;border-radius:13px}
    .classifieds-search input{height:48px;padding-inline:10px;font-size:15px}
    .classifieds-search button{min-width:78px;font-size:13px}
    .classified-categories{margin-top:22px}
    .classified-section-head{margin-bottom:10px}
    .classified-section-head h2,.classified-results-head h2{font-size:19px}
    .classified-category-grid{
        display:grid;
        grid-auto-flow:column;
        grid-auto-columns:max-content;
        grid-template-columns:none;
        grid-template-rows:repeat(var(--category-row-count,1),104px);
        overflow-x:auto;
        overscroll-behavior-inline:contain;
        gap:8px;
        margin-inline:-12px;
        padding:0 12px 5px;
        scrollbar-width:none;
        scroll-snap-type:x proximity;
        scroll-padding-inline:12px;
        -webkit-overflow-scrolling:touch;
    }
    .classified-category-grid::-webkit-scrollbar{display:none}
    .classified-category-row{display:contents}
    .classified-category-row::after{display:none}
    .classified-category-card{width:var(--category-mobile-width,164px);height:104px;scroll-snap-align:start;touch-action:manipulation}
    .classified-category-card-copy{width:var(--category-mobile-copy-width,60%);padding:13px 3px 11px 13px}
    .classified-category-card-copy strong{font-size:13.5px;hyphens:none;word-break:normal;overflow-wrap:normal}
    .classified-category-card-copy small{font-size:10.5px}
    .classified-category-card-media>img{inset:0;width:100%;object-fit:var(--category-mobile-image-fit,var(--category-image-fit,cover));transform:translate(var(--category-mobile-image-x,var(--category-image-x)),var(--category-mobile-image-y,var(--category-image-y))) rotate(var(--category-mobile-image-rotation,var(--category-image-rotation))) scale(var(--category-mobile-image-zoom,var(--category-image-zoom)))}
    .classified-category-card-fallback{width:calc(100% - var(--category-mobile-copy-width,60%))}
    .classified-promo--wide{height:110px;margin-top:18px;border-radius:14px}
    .classified-seller-summary{align-items:flex-start;flex-wrap:wrap;padding:14px}
    .classified-seller-summary .btn{width:100%;justify-content:center}
    .classified-results-head{align-items:flex-start;margin:24px 0 12px}
    .classified-results-actions{flex-shrink:0}
    .classified-filter-toggle{display:inline-flex}
    .classified-sort select{min-width:0;width:44px;padding:0;color:transparent;background-position:center}
    .classified-market-layout{display:block}
    .classified-filter-panel{display:none;margin-bottom:12px}
    .classified-filter-panel.is-open{display:block}
    .classified-filter-panel>form{position:static;padding:16px;border-radius:16px}
    .classified-promo--side{display:none}
    .classified-card-grid{gap:8px}
    .classified-card{border:0;border-radius:0;background:transparent}
    .classified-card:hover{transform:none;box-shadow:none}
    .classified-card-media{border-radius:13px}
    .classified-card-body{padding:8px 3px 13px}
    .classified-card-price{font-size:16px}
    .classified-card-body>strong{min-height:34px;font-size:12.5px;line-height:1.35}
    .classified-card-category{margin-top:5px;font-size:10px}
    .classified-card-description{display:none}
    .classified-card-meta{align-items:flex-start;flex-direction:column;gap:2px;padding-top:7px;font-size:9.5px}
    .classified-card-meta span{max-width:100%}
    .classified-promo--inline{height:105px;border-radius:13px}
    .classified-empty{min-height:300px;padding:24px 16px}
}

/* ─── Единый поиск по товарам и городским разделам ─── */
.unified-search-page{padding-top:34px;padding-bottom:64px}
.unified-search-head{
    padding:30px;
    border:1px solid var(--c-p-100,#d1fae5);
    border-radius:24px;
    background:linear-gradient(135deg,var(--c-p-50,#ecfdf5),#fff 72%);
}
.unified-search-head>span,.unified-search-section-head>div>span{
    color:var(--c-p-700,#047857);
    font-size:12px;
    font-weight:800;
    letter-spacing:.06em;
    text-transform:uppercase;
}
.unified-search-head h1{margin-top:8px;font-size:clamp(28px,3vw,42px);line-height:1.1;letter-spacing:-.035em}
.unified-search-head p{margin-top:10px;color:var(--c-n-600,#475569)}
.unified-search-scopes{display:flex;gap:8px;overflow-x:auto;margin-top:18px;padding-bottom:4px;scrollbar-width:none}
.unified-search-scopes::-webkit-scrollbar{display:none}
.unified-search-scopes a{
    display:inline-flex;
    min-height:44px;
    align-items:center;
    gap:8px;
    padding:0 16px;
    border:1px solid var(--c-n-200,#e2e8f0);
    border-radius:999px;
    background:#fff;
    color:var(--c-n-800,#1e293b);
    font-weight:700;
    white-space:nowrap;
}
.unified-search-scopes a:hover,.unified-search-scopes a:focus-visible{border-color:var(--c-p-400,#34d399);background:var(--c-p-50,#ecfdf5)}
.unified-search-scopes span{display:grid;min-width:24px;height:24px;place-items:center;border-radius:999px;background:var(--c-n-100,#f1f5f9);font-size:11px}
.unified-search-section{margin-top:38px}
.unified-search-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.unified-search-section-head h2{margin-top:3px;font-size:25px;letter-spacing:-.02em}
.unified-search-section-head>a{color:var(--c-p-700,#047857);font-size:13px;font-weight:750}
.unified-search-products{grid-template-columns:repeat(6,minmax(0,1fr))}
.unified-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.unified-result-card{display:grid;grid-template-columns:132px minmax(0,1fr);min-height:126px;overflow:hidden;border:1px solid var(--c-n-100,#f1f5f9);border-radius:17px;background:#fff;color:var(--c-n-900,#0f172a);box-shadow:0 4px 16px rgba(15,23,42,.04);transition:border-color .18s,box-shadow .18s}
.unified-result-card:hover{border-color:var(--c-p-300,#6ee7b7);box-shadow:0 8px 24px rgba(15,23,42,.08)}
.unified-result-card:focus-visible{outline:3px solid rgba(5,150,105,.28);outline-offset:2px}
.unified-result-media{display:block;background:var(--c-n-100,#f1f5f9)}
.unified-result-media img{display:block;width:100%;height:100%;object-fit:cover}
.unified-result-body{display:flex;min-width:0;flex-direction:column;padding:15px}
.unified-result-body small{color:var(--c-p-700,#047857);font-size:11px;font-weight:700}
.unified-result-body strong{display:-webkit-box;overflow:hidden;margin-top:5px;font-size:15px;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.unified-result-body b,.unified-result-body time{margin-top:auto;padding-top:8px;color:var(--c-n-600,#475569);font-size:12px}
.unified-result-body b{color:var(--c-p-700,#047857);font-size:15px}
.unified-search-empty{display:grid;place-items:center;margin-top:36px;padding:58px 20px;border:1px dashed var(--c-n-300,#cbd5e1);border-radius:20px;text-align:center}
.unified-search-empty svg{color:var(--c-n-400,#94a3b8)}
.unified-search-empty h2{margin-top:12px;font-size:22px}
.unified-search-empty p{margin-top:6px;color:var(--c-n-500,#64748b)}
@media(max-width:1100px){.unified-search-products{grid-template-columns:repeat(4,minmax(0,1fr))}.unified-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){
    .unified-search-page{padding:18px 12px calc(92px + env(safe-area-inset-bottom))}
    .unified-search-head{padding:20px 16px;border-radius:18px}
    .unified-search-head h1{font-size:27px}
    .unified-search-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .unified-result-grid{grid-template-columns:1fr;gap:10px}
    .unified-result-card{grid-template-columns:108px minmax(0,1fr);min-height:112px}
    .unified-search-section{margin-top:30px}
}
@media(max-width:359px){
    .classifieds-shell{padding-inline:10px}
    .classified-card-grid{gap:6px}
    .classified-card-price{font-size:15px}
    .classified-card-body>strong{font-size:12px}
    .classified-results-head{display:block}
    .classified-results-actions{margin-top:10px}
    .classified-sort{margin-left:auto}
}

/* ─── Карточка объявления ─── */
.classified-detail{padding-top:18px;padding-bottom:54px}
.classified-detail-crumbs{margin-bottom:18px}
.classified-detail-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin-bottom:20px;
}
.classified-detail-head>div:first-child{min-width:0}
.classified-detail-category{color:var(--c-p-700,#047857);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.classified-detail-head h1{max-width:900px;margin-top:5px;font-size:clamp(26px,3vw,38px);line-height:1.15;letter-spacing:-.025em;overflow-wrap:anywhere}
.classified-detail-meta{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:8px;color:var(--c-n-500,#64748b);font-size:12px}
.classified-detail-price{flex-shrink:0;text-align:right}
.classified-detail-price strong{display:block;font-size:30px;line-height:1.15;font-variant-numeric:tabular-nums}
.classified-detail-price span{display:block;margin-top:4px;color:var(--c-p-700,#047857);font-size:12px;font-weight:700}
.classified-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:26px}
.classified-detail-main{min-width:0}
.classified-gallery-main{
    position:relative;
    overflow:hidden;
    aspect-ratio:16/10;
    border-radius:22px;
    background:var(--c-n-100,#f1f5f9);
}
.classified-gallery-main>img{display:block;width:100%;height:100%;object-fit:contain;background:#f8fafc}
.classified-gallery-nav{
    position:absolute;
    top:50%;
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0 0 4px;
    transform:translateY(-50%);
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.94);
    color:var(--c-n-800,#1e293b);
    box-shadow:0 4px 16px rgba(15,23,42,.15);
    font-size:30px;
    cursor:pointer;
}
.classified-gallery-prev{left:14px}
.classified-gallery-next{right:14px}
.classified-gallery-count{position:absolute;right:14px;bottom:14px;padding:5px 10px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:11px;font-weight:700}
.classified-gallery-thumbs{display:flex;overflow-x:auto;gap:8px;margin-top:10px;padding-bottom:4px;scrollbar-width:thin}
.classified-gallery-thumbs button{
    flex:0 0 76px;
    width:76px;
    height:58px;
    overflow:hidden;
    padding:0;
    border:2px solid transparent;
    border-radius:10px;
    background:var(--c-n-100,#f1f5f9);
    cursor:pointer;
}
.classified-gallery-thumbs button.active{border-color:var(--c-p-600,#059669)}
.classified-gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.classified-gallery-empty{display:grid;place-items:center;align-content:center;aspect-ratio:16/9;gap:10px;border-radius:22px;background:var(--c-n-100,#f1f5f9);color:var(--c-n-400,#94a3b8);font-size:13px}
.classified-detail-section{margin-top:28px}
.classified-detail-section h2,.classified-similar h2{margin-bottom:12px;font-size:22px;letter-spacing:-.015em}
.classified-detail-description{max-width:900px;color:var(--c-n-700,#334155);font-size:15px;line-height:1.7;overflow-wrap:anywhere}
.classified-detail-specs{overflow:hidden;border:1px solid var(--c-n-200,#e2e8f0);border-radius:16px;background:#fff}
.classified-detail-specs>div{display:grid;grid-template-columns:minmax(140px,38%) minmax(0,1fr);gap:20px;padding:12px 16px;border-bottom:1px solid var(--c-n-100,#f1f5f9);font-size:13px}
.classified-detail-specs>div:last-child{border-bottom:0}
.classified-detail-specs dt{color:var(--c-n-500,#64748b)}
.classified-detail-specs dd{margin:0;color:var(--c-n-900,#0f172a);font-weight:600;overflow-wrap:anywhere}
.classified-location-card{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:78px;
    padding:14px 16px;
    border:1px solid var(--c-n-200,#e2e8f0);
    border-radius:16px;
    background:#fff;
    color:inherit;
    text-decoration:none;
}
.classified-location-icon{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:var(--c-p-50,#ecfdf5);color:var(--c-p-700,#047857)}
.classified-location-card>span:nth-child(2){flex:1;min-width:0}
.classified-location-card strong,.classified-location-card small{display:block}
.classified-location-card strong{font-size:14px}
.classified-location-card small{margin-top:4px;color:var(--c-n-500,#64748b);font-size:11px}
.classified-location-card>svg{color:var(--c-n-400,#94a3b8)}
.classified-safety{display:flex;gap:12px;margin-top:28px;padding:16px;border:1px solid #bae6fd;border-radius:16px;background:#f0f9ff;color:#075985}
.classified-safety>svg{flex-shrink:0}
.classified-safety strong{font-size:14px}
.classified-safety p{margin-top:3px;font-size:12px;line-height:1.5}
.classified-detail-side{position:relative;min-width:0}
.classified-contact-card{
    position:sticky;
    top:96px;
    padding:20px;
    border:1px solid var(--c-n-200,#e2e8f0);
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 28px rgba(15,23,42,.07);
}
.classified-contact-price{margin-bottom:16px;font-size:27px;font-weight:800;font-variant-numeric:tabular-nums}
.classified-author{display:flex;align-items:center;gap:11px;padding:12px;border-radius:14px;background:var(--c-n-50,#f8fafc);color:inherit;text-decoration:none}
.classified-author-avatar{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,var(--c-p-600,#059669),var(--c-p-400,#34d399));color:#fff;font-size:20px;font-weight:800}
.classified-author>span:nth-child(2){flex:1;min-width:0}
.classified-author strong,.classified-author small{display:block}
.classified-author strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.classified-author small{margin-top:3px;color:var(--c-n-500,#64748b);font-size:10px}
.classified-author>svg{flex-shrink:0;color:var(--c-n-400,#94a3b8)}
.classified-author-listings{display:inline-flex;min-height:40px;align-items:center;color:var(--c-p-700,#047857);font-size:12px;font-weight:700}
.classified-phone{display:flex;align-items:center;gap:10px;margin-top:12px;padding:12px;border:1px solid var(--c-n-200,#e2e8f0);border-radius:14px}
.classified-phone>span{flex:1;min-width:0}
.classified-phone small,.classified-phone strong{display:block}
.classified-phone small{color:var(--c-n-500,#64748b);font-size:10px}
.classified-phone strong{margin-top:2px;font-size:15px;white-space:nowrap}
.classified-phone button{
    min-height:40px;
    padding:0 12px;
    border:0;
    border-radius:10px;
    background:var(--c-p-600,#059669);
    color:#fff;
    font:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}
.classified-contact-empty{padding:12px;border-radius:12px;background:var(--c-n-50,#f8fafc);color:var(--c-n-500,#64748b);font-size:12px;line-height:1.5}
.classified-share{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:44px;margin-top:10px;border:1px solid var(--c-n-200,#e2e8f0);border-radius:12px;background:#fff;color:var(--c-n-700,#334155);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.classified-promo--detail{height:280px;margin-top:14px}
.classified-similar{margin-top:42px}
.classified-similar .classified-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.classified-mobile-contact{display:none}

@media(max-width:1023px){
    .classified-detail-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}
    .classified-similar .classified-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
    .classified-results-head{flex-direction:column;align-items:stretch}
    .classified-results-actions{justify-content:space-between;width:100%}
    .classified-sort{flex:1}
    .classified-sort select{width:100%;min-width:0;padding:0 34px 0 12px;color:var(--c-n-800,#1e293b)}
    .classified-detail{padding:12px 12px calc(142px + env(safe-area-inset-bottom))}
    .classified-detail-crumbs{display:none}
    .classified-detail-head{display:block;margin-bottom:14px}
    .classified-detail-head h1{font-size:25px}
    .classified-detail-meta{font-size:10px}
    .classified-detail-price{margin-top:10px;text-align:left}
    .classified-detail-price strong{font-size:25px}
    .classified-detail-layout{display:block}
    .classified-gallery-main,.classified-gallery-empty{margin-inline:-12px;border-radius:0;aspect-ratio:1/1}
    .classified-gallery-main>img{object-fit:cover}
    .classified-gallery-nav{width:42px;height:42px}
    .classified-gallery-prev{left:10px}
    .classified-gallery-next{right:10px}
    .classified-gallery-thumbs{margin-inline:-12px;padding:0 12px 4px}
    .classified-gallery-thumbs button{flex-basis:64px;width:64px;height:50px}
    .classified-detail-section{margin-top:24px}
    .classified-detail-section h2,.classified-similar h2{font-size:19px}
    .classified-detail-description{font-size:14px;line-height:1.65}
    .classified-detail-specs>div{grid-template-columns:minmax(105px,38%) minmax(0,1fr);gap:12px;padding:11px 12px;font-size:12px}
    .classified-location-card{padding:12px}
    .classified-detail-side{margin-top:18px}
    .classified-contact-card{position:static;padding:16px;border-radius:16px;box-shadow:none}
    .classified-contact-price{display:none}
    .classified-phone{display:none}
    .classified-promo--detail{height:120px}
    .classified-similar{margin-top:32px}
    .classified-similar .classified-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .classified-mobile-contact{
        position:fixed;
        z-index:86;
        right:12px;
        bottom:calc(70px + env(safe-area-inset-bottom));
        left:12px;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        min-height:52px;
        border:1px solid rgba(255,255,255,.8);
        border-radius:14px;
        background:var(--c-p-600,#059669);
        color:#fff;
        box-shadow:0 10px 26px rgba(5,150,105,.34);
        font:inherit;
        font-weight:800;
    }
}
