/* ============ ШРИФТ ARCHIVO BLACK ============ */
/* ============ ОСНОВНЫЕ СТИЛИ ============ */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #1e8449;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
    --text-light: #6c757d;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ============ HEADER ============ */

.header {
    --header-offset: 30px;
    display: grid;
    grid-template-columns: 32px minmax(600px, 1fr) auto auto;
    grid-template-rows: auto minmax(auto, 26px);
    gap: 2px 5px;
    padding: 2px 20px;
    padding-left: var(--header-offset);
    background: #121212;
    color: white;
    margin-bottom: 0;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    width: 32px;
    max-width: 32px;
    min-width: 32px;
    grid-column: 1;
    grid-row: 1 / 3;
}

.header-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    width: auto;
    max-width: none;
    min-width: 0;
    height: 100%;
    padding: 0;
    grid-column: 2;
    grid-row: 1 / 3;
    margin-left: 25px;
}

.header-title-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    flex: 1;
    flex-wrap: nowrap;
}

.header-subtitle-inline {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5em;
    font-family: 'Jost', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: clamp(0.6em, 1.2vw, 0.8em);
    color: white;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 1;
    min-width: 0;
}

.logo-wrapper {
    width: 40%;
    max-width: 350px;
    min-width: 250px;
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.subtitle-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
}

.subtitle-text {
    white-space: nowrap;
    width: max-content;
}

.subtitle-location {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    white-space: nowrap;
    width: max-content;
    position: relative;
    font-style: italic;
}

.subtitle-location span {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.7);
    padding-bottom: 1px;
    font-style: italic;
}



.header-search {
    width: 100%;
    max-width: 400px;
    flex-shrink: 0;
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin-top: auto;
}

.header-search .search-container {
    position: relative;
    margin: 0;
}

.header-search .search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #0959A5;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    outline: none;
    transition: all 0.3s;
}

.header-search .search-input::placeholder {
    color: rgba(255,255,255,0.9);
}

.header-search .search-input:focus {
    border-color: #0959A5;
    background: rgba(255,255,255,0.25);
}

.header-search .suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
}

.header-search .suggestions-list.show {
    display: block;
}

.header-stats {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    width: auto;
    max-width: none;
    min-width: 0;
    grid-column: 4;
    grid-row: 1 / 3;
}

.header-stats .stats-grid {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1px;
    width: auto;
}

.header-stats .stat-card {
    background: transparent;
    border: none;
    padding: 1px 2px;
    border-radius: 8px;
    text-align: center;
    min-width: auto;
    flex-shrink: 0;
    width: 100%;
}

.header-stats .stat-value {
    font-size: 0.65em;
    font-weight: 400;
    color: white;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    width: 100%;
}

.header-stats .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.5em;
    margin-top: 1px;
    white-space: nowrap;
    width: 100%;
    font-weight: 400;
}


/* Объединение поиска и фильтров в одну строку */
.header-bottom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex: 1;
    min-height: 26px;
}

.header-bottom-row .header-search {
    flex: 0 1 auto;
    width: 40%;
    max-width: 350px;
    min-width: 250px;
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    margin-top: 0;
}

.header-bottom-row .header-filters {
    flex: 1 1 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    width: auto;
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
}

.header-bottom-row .header-filters select {
    flex-shrink: 1;
    min-width: 65px;
}

/* ============ МЕНЮ ============ */

.menu-container {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.menu-button {
    background: transparent;
    color: white;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    transition: opacity 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.menu-button:hover {
    opacity: 0.7;
    background: transparent;
}

.menu-button svg {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #333;
}

/* ============ ПОДСКАЗКИ ============ */

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
    background: white;
}

.suggestion-item:hover {
    background: #f8f9fa;
    color: #333;
}

.suggestion-item.active {
    background: #e3f2fd;
    color: #333;
}

.history-item {
    color: #666;
    font-size: 0.95em;
    background: white;
}

.history-item:hover {
    background: #f0f0f0;
    color: #333;
}

/* ============ ФИЛЬТРЫ ============ */

.filters-section {
    margin-top: 0;
    margin-bottom: 2px;
    padding-top: 0;
}

.filters {
    background: transparent;
    padding: 0 20px;
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}



.filters-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============ КНОПКИ ============ */

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

/* ============ КАРТОЧКИ ТОВАРОВ ============ */

.products-section {
    flex: 1 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2px;
}

/* ============ ПАГИНАЦИЯ ============ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============ МОДАЛЬНЫЕ ОКНА ============ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 900px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
}

/* ============ ПОДВАЛ ============ */

.footer {
    background: #121212;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: clamp(0.6em, 1.2vw, 0.8em);
}

/* ============ КНОПКА НАВЕРХ ============ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0959A5;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 1000;
}
.scroll-top-btn:hover {
    background: #074780;
}

.scroll-top-btn.show {
    display: block;
}

/* ============ АДАПТИВНОСТЬ ============ */







/* === BikePrice Mobile v21 === */
@media (max-width: 768px) {
    /* ============================================================
       МОБИЛЬНЫЙ ХЕДЕР BikePrice v21
       grid 4 колонки: [28px] [80px] [1.75fr] [1fr]
       row1: [бургер col1] [лого col2] [подзаг col 3 / span 2]
       row2: [.header-bottom-row col 1 / span 4]
       row3: [монитор col 1 / span 3] [статистика col 4]
       ============================================================ */
    .header {
        display: grid !important;
        grid-template-columns: 28px 80px minmax(0, 1.75fr) minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto !important;
        gap: 4px 4px !important;
        padding: 8px 10px !important;
        align-items: start !important;
    }

    /* ---- Бургер: col 1, row 1, по центру по обеим осям ---- */
    .header-left {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .menu-button {
        padding: 4px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-center { display: contents !important; }

    /* ---- Лого+подзаг: col 2 / span 3, row 1 ---- */
    .header-title-row {
        grid-column: 2 / span 3 !important;
        grid-row: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ---- Лого: 80px ---- */
    .logo-wrapper {
        flex: 0 0 80px !important;
        width: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    .logo {
        height: 28px !important;
        max-height: 28px !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 2px !important;
        flex-shrink: 0 !important;
    }

    /* ---- Подзаголовок: перенос + центр ---- */
    .subtitle-wrapper {
        display: flex !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: auto !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    .header-subtitle-inline {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        justify-content: center !important;
        gap: 3px 6px !important;
        white-space: normal !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        font-size: 10px !important;
        line-height: 1.25 !important;
        text-align: center !important;
        overflow: visible !important;
    }
    .subtitle-text {
        white-space: normal !important;
        width: auto !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        overflow: visible !important;
        text-overflow: clip !important;
        text-align: center !important;
    }
    .subtitle-location {
        white-space: nowrap !important;
        width: auto !important;
        flex: 0 0 auto !important;
        text-align: center !important;
    }
    .subtitle-location span { white-space: nowrap !important; }

    /* ---- .header-bottom-row: col 1 / span 4, row 2, grid 75/25 ---- */
    .header-bottom-row {
        grid-column: 1 / span 4 !important;
        grid-row: 2 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) !important;
        gap: 4px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .header-bottom-row .header-filters,
    .header-filters { display: contents !important; }

    .header-bottom-row .header-search  { order: 1 !important; }
    #brandFilter                        { order: 2 !important; }
    #modelFilter                        { order: 3 !important; }
    #sizeFilter                         { order: 4 !important; }
    #colorFilter                        { order: 5 !important; }
    #availabilityFilter                 { order: 6 !important; }

    .header-bottom-row .header-search {
        width: 100% !important; max-width: 100% !important; min-width: 0 !important;
        margin: 0 !important; padding: 0 !important;
    }
    .header-search .search-container { width: 100% !important; }
    .header-search .search-input {
        font-size: 12px !important; padding: 6px 10px !important;
        width: 100% !important; box-sizing: border-box !important;
    }
    .header-filters select,
    #brandFilter, #modelFilter, #sizeFilter, #colorFilter, #availabilityFilter {
        width: 100% !important; min-width: 0 !important; max-width: 100% !important;
        font-size: 11px !important; padding: 5px 6px !important;
        box-sizing: border-box !important;
    }

    /* ---- Монитор: col 1 / span 3, row 3 ---- */
    .header-monitor {
        grid-column: 1 / span 3 !important;
        grid-row: 3 !important;
        width: 100% !important; min-width: 0 !important; max-width: 100% !important;
        margin: 0 !important; padding: 0 !important;
        display: flex !important;
        align-self: stretch !important;
        align-items: stretch !important;
    }
    .header-monitor .model-info {
        white-space: normal !important;
        width: 100% !important; max-width: 100% !important;
        font-size: 10.5px !important; line-height: 13px !important;
        padding: 6px 8px !important;
        text-overflow: clip !important; overflow: visible !important;
        box-sizing: border-box !important; margin: 0 !important;
        background: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    .header-monitor .model-info .model-info-history {
        white-space: normal !important;
        text-overflow: clip !important; overflow: visible !important;
        font-size: 9.5px !important;
        line-height: 11.5px !important;
    }

    /* ---- Статистика: col 4, row 3, по центру ---- */
    .header-stats {
        grid-column: 4 !important;
        grid-row: 3 !important;
        width: 100% !important; min-width: 0 !important; max-width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important; padding: 0 !important;
        align-self: stretch !important;
    }
    .header-stats .stats-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important; min-width: 0 !important;
    }
    .header-stats .stat-card {
        text-align: center !important;
        padding: 0 !important;
        width: 100% !important; min-width: 0 !important;
    }
    .header-stats .stat-value {
        font-size: 9px !important;
        white-space: normal !important;
        line-height: 11px !important;
    }
    .header-stats .stat-label {
        font-size: 8px !important;
        white-space: normal !important;
        line-height: 9.5px !important;
    }
}
/* === /BikePrice Mobile v21 === */

/* === BikePrice Mobile v22 logo-stretch === */
@media (max-width: 768px) {
    /* Логотип растёт вместе со строкой 1 (подзаголовок может занимать 3+ строки) */
    .header-title-row {
        align-items: stretch !important;
    }
    .logo-wrapper {
        align-items: stretch !important;
        align-self: stretch !important;
        height: auto !important;
    }
    .logo {
        height: auto !important;
        max-height: 60px !important;
        min-height: 28px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        align-self: center !important;
    }
}
/* === /BikePrice Mobile v22 logo-stretch === */

/* === BikePrice Mobile v23 === */
@media (max-width: 768px) {
    /* ---- Отступы хедера: padding-top = row-gap (для симметрии) ---- */
    .header {
        padding: 6px 10px !important;
        gap: 6px !important;
    }

    /* ---- Логотип: ширина по контенту, до 45% строки ---- */
    .logo-wrapper {
        flex: 0 0 auto !important;
        max-width: 45% !important;
        min-width: 90px !important;
        align-self: stretch !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    .logo {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 24px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }
    .subtitle-wrapper {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    /* ---- Скрытие секции сортировки на мобилке ---- */
    .filters-section {
        display: none !important;
    }
}
/* === /BikePrice Mobile v23 === */

/* === BikePrice Mobile v24 cards === */
@media (max-width: 768px) {
    /* Контейнер: узкие отступы */
    .products-section .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* Grid: 2 колонки */
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    /* Фото: 130px + сдвиг вниз */
    .product-card-v15 .product-image-container {
        height: 130px !important;
        padding-top: 22px !important;
    }
    .product-card-v15 .product-image {
        max-height: 105px !important;
        object-position: center center !important;
    }

    /* Заголовок: 0.78em + line-clamp 2 */
    .product-card-v15 .product-model {
        font-size: 0.78em !important;
        line-height: 1.15 !important;
        margin-bottom: 2px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* Теги: горизонтально */
    .product-card-v15 .product-meta {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
        align-items: center !important;
        width: auto !important;
        max-width: 100% !important;
    }
    .product-card-v15 .meta-tag,
    .product-card-v15 .year-tag {
        font-size: 0.6em !important;
        padding: 1px 5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* Отступы body/footer */
    .product-card-v15 .product-body { padding: 2px 8px 0 !important; }
    .product-card-v15 .product-footer { padding: 0 8px 6px !important; }

    /* Магазин + warn вправо — CSS-обход (warn внутри store-name) */
    .product-card-v15 .store-row { display: block !important; }
    .product-card-v15 .store-row .store-name {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 4px !important;
        font-size: 0.72em !important;
        overflow: visible !important;
        white-space: nowrap !important;
    }
    .product-card-v15 .store-row .store-name .warn {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        font-size: 0.95em !important;
    }
    .product-card-v15 .store-row .store-name .warn-inner { gap: 2px !important; }
    .product-card-v15 .store-row .store-name .warn svg {
        width: 11px !important;
        height: 11px !important;
    }

    /* Колонки цен: auto-fit до 5 */
    .product-card-v15 .price-columns {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
        gap: 1px !important;
    }
    .product-card-v15 .price-column {
        padding: 2px 1px !important;
        min-height: 46px !important;
    }
    .product-card-v15 .promo-label { font-size: 0.6em !important; gap: 2px !important; }
    .product-card-v15 .promo-label svg { width: 11px !important; height: 11px !important; }
    .product-card-v15 .promo-pct { font-size: 1em !important; }
    .product-card-v15 .price-value { font-size: 0.72em !important; line-height: 1.15 !important; }

    /* Наличие + доставка */
    .product-card-v15 .availability-row {
        font-size: 0.68em !important;
        flex-wrap: wrap !important;
        gap: 2px !important;
        line-height: 1.15 !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .product-card-v15 .availability-status {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
    .product-card-v15 .delivery-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        text-align: right !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    /* SVG-иконка грузовика (вставлен из JS) */
    .product-card-v15 .deliv-svg {
        width: 10px !important;
        height: 10px !important;
        stroke: currentColor !important;
        fill: none !important;
        stroke-width: 2.5 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        vertical-align: middle !important;
        margin-right: 3px !important;
        flex-shrink: 0 !important;
    }

    /* Кнопка */
    .product-card-v15 .btn-store {
        height: 28px !important;
        font-size: 0.8em !important;
    }

    /* Photo credit: скрыть */
    .product-card-v15 .photo-credit { display: none !important; }
}
/* === /BikePrice Mobile v24 cards === */

/* === BikePrice Mobile v25 === */
@media (max-width: 768px) {
    /* ---- ФОН: белый ---- */
    html, body {
        background: #FFFFFF !important;
    }

    /* ---- Карточка: двойная тень (Apple-стиль) ---- */
    .product-card-v15 {
        border: 1px solid transparent !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    }

    /* ---- Container + grid: 6/6 ---- */
    .products-section .container {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    .products-grid {
        gap: 6px !important;
    }

    /* ---- Фото: 140 + padding-top 32 ---- */
    .product-card-v15 .product-image-container {
        height: 140px !important;
        padding-top: 32px !important;
    }
    .product-card-v15 .product-image {
        max-height: 105px !important;
        object-position: center center !important;
    }

    /* ---- Заголовок: padding 6/8, к левому краю ---- */
    .product-card-v15 .product-header {
        padding: 6px 8px !important;
    }
    .product-card-v15 .product-model {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    /* ---- Колонки цен: без серого фона + тонкие разделители ---- */
    .product-card-v15 .price-columns {
        background: transparent !important;
        gap: 0 !important;
        border-radius: 0 !important;
        border-top: 1px solid #f0f0f0 !important;
        overflow: visible !important;
    }
    .product-card-v15 .price-column {
        padding: 2px 1px !important;
        background: white !important;
        border-right: 1px solid #f0f0f0 !important;
    }
    .product-card-v15 .price-column:last-child {
        border-right: none !important;
    }

    /* ---- 3+ колонок цен: уменьшить шрифт ---- */
    .product-card-v15 .price-columns:has(.price-column:nth-child(3)) .price-value {
        font-size: 0.58em !important;
        letter-spacing: -0.3px !important;
    }
    .product-card-v15 .price-columns:has(.price-column:nth-child(3)) .promo-label {
        font-size: 0.5em !important;
        gap: 0 !important;
    }
    .product-card-v15 .price-columns:has(.price-column:nth-child(3)) .promo-label svg {
        width: 8px !important;
        height: 8px !important;
        margin-right: 1px !important;
    }
    .product-card-v15 .price-columns:has(.price-column:nth-child(3)) .price-column {
        padding: 2px 0 !important;
    }
}
/* === /BikePrice Mobile v25 === */

/* === BikePrice Mobile v26 popups === */
@media (max-width: 768px) {
    .promo-popup,
    .stat-tooltip,
    .location-popup,
    .promo-popup.warn-popup,
    .warn-popup.promo-popup {
        max-width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        width: auto !important;
        font-size: 12px !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }
    .promo-popup p { font-size: 12px !important; }
    .location-popup {
        white-space: normal !important;
        text-align: center !important;
        min-width: 220px !important;
        max-width: calc(100vw - 40px) !important;
    }
    .location-popup::before {
        left: 50% !important;
        transform: translateX(-50%) rotate(45deg) !important;
    }
}
/* === /BikePrice Mobile v26 popups === */

/* === BikePrice Mobile v26.1 promo-zone === */
@media (max-width: 768px) {
    .product-card-v15 .price-column[data-full-text] {
        cursor: pointer !important;
        user-select: none !important;
    }
    .product-card-v15 .price-column[data-full-text] * {
        pointer-events: none !important;
    }
}
/* === /BikePrice Mobile v26.1 promo-zone === */








/* === BikePrice Mobile v28 cleanup === */
/* удалён мёртвый @media: 1 колонка (перебит v24 !important) */



/* ============ НОВЫЕ КЛАССЫ ДЛЯ app.js v12 ============ */

/* Модельная информация */
.model-info {
    background: #f0f8ff;
    border: 1px solid #b8d4e8;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.6;
}

.model-info-history {
    margin-top: 0;
    padding: 0;
    background: #fff;
    border-radius: 6px;
    font-size: 0.9em;
}

/* Попапы */
.promo-popup {
    position: fixed;
    width: fit-content;
    max-width: 500px;
    min-width: 0;
    z-index: 10000;
    background: #FFF9C4;
    border: 1px solid #D4A017;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    color: #333;
}

.warn-popup {
    position: fixed;
    z-index: 10000;
    background: #fff3cd;
    border: 1px solid #f39c12;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.95em;
    line-height: 1.4;
    color: #333;
}

.promo-popup.warn-popup {
    min-width: 400px;
    max-width: 500px;
    text-align: justify;
}

/* Текст наличия */
.availability-text {
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 0;
}


/* Page modal styles */
.page-modal-title {
    margin-top: 0;
    color: #2c3e50;
}

.page-modal-body {
    line-height: 1.6;
    color: #333;
}


/* ============ ВОССТАНОВЛЕННЫЕ СТИЛИ ============ */




/* Подсказка для статистики */
.stat-tooltip {
    position: fixed;
    z-index: 10000;
    background: #FFF9C4;
    border: 1px solid #D4A017;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 16px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
    max-width: none;
    width: auto;
    pointer-events: none;
    text-wrap: balance;
}




/* ============ НОВЫЙ ДИЗАЙН КАРТОЧКИ v15 ============ */
/* Используется класс .product-card-v15, чтобы не трогать старый .product-card */

.product-card-v15 {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: hidden;
    background: white;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

@media (hover: hover) {
    .product-card-v15:hover {
        border: 1px solid #0959A5;
        box-shadow: none;
        transform: scale(1.02);
        z-index: 1000;
    }
}

.product-card-v15 .product-image-container {
    position: relative;
    height: 250px;
    flex-shrink: 0;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 10px;
    box-sizing: border-box;
}

.product-card-v15 .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    padding: 0;
    transition: transform 0.3s;
    display: block;
}

@media (hover: hover) {
    .product-card-v15:hover .product-image {
        transform: scale(1.03);
    }
}

.product-card-v15 .product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 5em;
    background: white;
    padding-bottom: 20px;
}

.product-card-v15 .product-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 20px;
    z-index: 10;
    pointer-events: none;
}

.product-card-v15 .product-model {
    font-family: 'Jost', sans-serif;
    color: #000;
    font-size: 1.2em;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 6px;
}

.product-card-v15 .product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    width: max-content;
}

.product-card-v15 .meta-tag {
    font-family: 'Jost', sans-serif;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 400;
}

.product-card-v15 .year-tag {
    font-family: 'Jost', sans-serif;
    background: #1f6391;
    color: white;
    font-weight: 400;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    letter-spacing: 0.3px;
}

.product-card-v15 .photo-credit {
    position: absolute;
    right: 4px;
    bottom: 8px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.6em;
    color: rgba(0, 0, 0, 0.4);
    user-select: none;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.product-card-v15 .product-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2px 20px 0;
    position: static;
}

.product-card-v15 .store-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
    color: #666;
    margin-bottom: auto;
    cursor: pointer;
}

.product-card-v15 .store-row .store-name {
    color: #666;
}

.product-card-v15 .store-row .warn {
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    cursor: pointer;
}

.product-card-v15 .store-row .warn-inner {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border-bottom: 1px dashed currentColor;
    padding-bottom: 1px;
}

.product-card-v15 .store-row .warn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.product-card-v15 .price-columns {
    display: flex;
    gap: 1px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}

.product-card-v15 .price-column {
    flex: 1 1 0;
    min-width: 0;
    background: white;
    padding: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.product-card-v15 .price-column.site .promo-label {
    color: #6c757d;
    font-size: 0.8em;
}

.product-card-v15 .promo-label {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.product-card-v15 .promo-label svg {
    width: 18px;
    height: 18px;
    stroke: #1e8449;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.product-card-v15 .promo-pct {
    color: #1e8449;
    font-weight: 700;
    font-size: 1.15em;
}

.product-card-v15 .price-value {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.product-card-v15 .price-column.best .price-value {
    color: #1e8449;
    font-weight: 700;
}

.product-card-v15 .product-footer {
    flex-shrink: 0;
    padding: 0 20px 8px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: static;
}

.product-card-v15 .availability-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
}

.product-card-v15 .availability-status {
    color: #1e8449;
    font-weight: 500;
}

.product-card-v15 .delivery-info {
    color: #666;
    text-align: right;
}

.product-card-v15 .btn-store {
    background: #0959A5;
    color: white;
    border: none;
    border-radius: 6px;
    height: 34px;
    font-size: 0.9em;
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    padding: 0;
}

.product-card-v15 .btn-store:hover {
    background: #074780;
}


/* ============ ПОЛЬЗОВАТЕЛЬСКОЕ СОГЛАШЕНИЕ ============ */

.agreement-modal {
    z-index: 10002;
}

/* v28: удалён дубль .agreement-content (600px) — перебивался вторым объявлением */

.agreement-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5em;
}

.agreement-body {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
    font-size: 0.95em;
}

.agreement-body ul {
    margin: 10px 0;
    padding-left: 25px;
}

.agreement-body li {
    margin-bottom: 8px;
}

.agreement-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.agreement-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.agreement-checkbox-label {
    font-size: 0.95em;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.agreement-accept-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1em;
    cursor: pointer;
}

.agreement-accept-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #95a5a6;
}

.agreement-accept-btn:disabled:hover {
    background: #95a5a6;
}


/* Запрет переноса */
.nowrap {
    white-space: nowrap;
    width: max-content;
}


/* Монитор цен в хедере */
.header-monitor {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    grid-column: 3;
    grid-row: 1 / 3;
    margin-left: 5px;
}

.header-monitor .model-info {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 6px;
    font-family: 'Jost', sans-serif;
    font-size: clamp(0.6em, 1.2vw, 0.7em);
    line-height: 1.3;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-monitor .model-info strong {
    color: white;
    font-weight: 400;
}

.header-monitor .model-info .model-info-history {
    margin-top: 3px;
    padding: 0;
    background: transparent;
    border-radius: 6px;
    font-size: 0.9em;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-monitor .model-info strong[style*="color"] {
    color: #2ecc71;
}


/* Фильтры в header */
.header-filters {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    width: 100%;
}

.header-filters select {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    padding: 3px;
    font-size: clamp(0.75em, 1.2vw, 0.75em);
    min-width: 65px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    outline: none;
}

.header-filters select option {
    background: white;
    color: #333;
}

.header-filters select:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* Сортировка */
#sortBy {
    padding: 2px 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8em;
    background: white;
    cursor: pointer;
    width: auto;
    height: auto;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}





/* Ссылка в футере */
.footer-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.footer-link:hover {
    color: #3498db;
}


/* Модальное окно для страниц меню */
.page-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.page-modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.page-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
}

.page-modal-close:hover {
    color: #333;
}


/* Логотип */
.logo {
    height: 40px;
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 2px;
    align-self: flex-end;
    margin: 0;
    flex-shrink: 0;
}

/* Попап геолокации */
.location-popup {
    position: fixed;
    z-index: 10000;
    background: #FFF9C4;
    border: 1px solid #D4A017;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 15px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #333;
    max-width: none;
    width: auto;
    pointer-events: auto;
    animation: none;
    white-space: nowrap;
    width: max-content;
}

.location-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #FFF9C4;
    border-left: 1px solid #D4A017;
    border-top: 1px solid #D4A017;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}














/* ============ Onest для модальных окон (v15) ============ */

.agreement-content,
.agreement-body,
.agreement-title,
.agreement-checkbox-label,
.agreement-accept-btn,
.page-modal-content,
.page-modal-body,
.page-modal-title {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
}

.agreement-content {
    max-width: 800px;
    font-size: 14px;
    line-height: 1.6;
}

.agreement-body {
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
}

.agreement-body ul {
    list-style: none;
    padding-left: 0;
}

.agreement-body li {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #0959A5;
}

.agreement-body b {
    color: #2c3e50;
}

.page-modal-content {
    font-size: 14px;
    line-height: 1.6;
}

.page-modal-body {
    font-size: 14px;
    line-height: 1.6;
}

.page-modal-body ul {
    list-style: none;
    padding-left: 0;
}

.page-modal-body li {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #0959A5;
}

.page-modal-body b {
    color: #2c3e50;
}


/* ============ Onest 13px для попапов (v15) ============ */

.promo-popup,
.warn-popup,
.stat-tooltip,
.location-popup {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.promo-popup p,
.promo-popup div {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
}


/* ============ Модальное окно перехода (v21) ============ */

.confirm-modal-content {
    background: white;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.confirm-modal-content h3 {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2c3e50;
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 12px;
}

.confirm-modal-content .store-info {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.confirm-modal-content .warning-card {
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 3px solid #0959A5;
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.confirm-modal-content .warning-card .warn-svg {
    width: 18px;
    height: 18px;
    stroke: #f39c12;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 2px;
}

.confirm-modal-content .warning-card b {
    color: #2c3e50;
}

.confirm-modal-content .btn-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}


/* ============ Меню в футере (v21) ============ */

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 6px;
    font-size: 1em;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-menu a:hover {
    color: #3498db;
}

.footer .container p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}









@media print {
    /* ---------- Общее ---------- */
    @page {
        size: A4 landscape;
        margin: 8mm 10mm;
    }

    body {
        background: white !important;
        color: #000;
        font-size: 8pt;
        line-height: 1.25;
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    a { text-decoration: none; color: inherit; }

    /* ---------- Логотип и подзаголовок — наследуют экранные правила + inline-стили ---------- */
    /* Никаких overrides, чтобы не конфликтовать с Chrome при печати. */

    /* ---------- Скрываем только то, что не имеет смысла на бумаге ---------- */
    /* Хедер и .filters-section НЕ трогаем — печатаются как на экране. */

    .scroll-top-btn,
    .pagination,
    .btn-store,
    .warn-icon,
    .photo-credit {
        display: none !important;
    }

    /* ---------- Сетка карточек: 4 колонки ---------- */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3mm;
        margin: 0;
        padding: 0;
    }

    /* ---------- Карточка — компактнее для печати ---------- */
    .product-card-v15 {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 0.5pt solid #bbb;
        border-radius: 4pt;
        box-shadow: none;
        transform: none;
        background: white;
        overflow: hidden;
    }

    .product-card-v15:hover {
        border-color: #bbb;
        transform: none;
    }

    .product-card-v15 .product-image-container {
        height: 38mm;
        padding-top: 2mm;
    }

    .product-card-v15 .product-image {
        object-fit: contain;
        transform: none;
    }

    .product-card-v15 .product-image-placeholder {
        font-size: 26pt;
        padding-bottom: 4mm;
    }

    .product-card-v15 .product-header { padding: 2mm 3mm; }

    .product-card-v15 .product-model {
        font-size: 8.5pt;
        line-height: 1.15;
        margin-bottom: 1mm;
        color: #000;
    }

    .product-card-v15 .product-meta { gap: 1mm; }

    .product-card-v15 .meta-tag,
    .product-card-v15 .year-tag {
        font-size: 5.5pt;
        padding: 0.5mm 2mm;
        border-radius: 3mm;
    }

    .product-card-v15 .product-body { padding: 1mm 3mm 0; }
    .product-card-v15 .store-row { font-size: 6pt; }

    .product-card-v15 .price-columns { gap: 0.5pt; }
    .product-card-v15 .price-column { padding: 1mm 0.5mm; min-height: 0; }
    .product-card-v15 .promo-label { font-size: 5.5pt; gap: 0.5mm; }
    .product-card-v15 .promo-label svg { width: 7pt; height: 7pt; }
    .product-card-v15 .promo-pct { font-size: 7.5pt; }
    .product-card-v15 .price-value { font-size: 7.5pt; line-height: 1.15; }

    .product-card-v15 .product-footer { padding: 1mm 3mm 1.5mm; gap: 0.5mm; }
    .product-card-v15 .availability-row,
    .product-card-v15 .availability-status,
    .product-card-v15 .delivery-info { font-size: 5.5pt; }

    /* ---------- Футер ---------- */
    .footer {
        margin-top: 3mm;
        padding: 2mm 0;
        font-size: 6pt;
        text-align: center;
        background: transparent;
        color: #333;
    }

    .footer-menu { display: none; }
    .footer .container p { color: #333; font-size: 6pt; }
}


/* === BikePrice Mobile v27 modals === */
@media (max-width: 768px) {
    /* --- Каркас модалки --- */
    .modal-content,
    .page-modal-content,
    .confirm-modal-content,
    .agreement-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 12px 16px 20px !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        width: 100% !important;
        margin: 10px auto !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    /* --- Крестик: sticky, компактный --- */
    .close,
    .page-modal-close {
        position: sticky !important;
        top: 0 !important;
        right: auto !important;
        left: auto !important;
        align-self: flex-end !important;
        float: none !important;
        margin: -12px -8px 4px 0 !important;
        padding: 4px 12px !important;
        font-size: 22px !important;
        line-height: 1.2 !important;
        background: white !important;
        z-index: 20 !important;
        order: -1 !important;
    }

    /* --- Заголовок модалки --- */
    .page-modal-title,
    .confirm-modal-content h3,
    .agreement-title {
        font-size: 1.15em !important;
        line-height: 1.25 !important;
        margin: 0 0 10px 0 !important;
    }

    /* --- BODY --- */
    .page-modal-body,
    .agreement-body {
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding-bottom: 4px !important;
    }

    /* === <p>: серый блок + синяя полоска (как у <li>) === */
    .page-modal-body p,
    .agreement-body p {
        background: #f8f9fa !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        border-left: 3px solid #0959A5 !important;
        margin: 0 0 6px 0 !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        color: #333 !important;
    }
    .page-modal-body p:last-child,
    .agreement-body p:last-child {
        margin-bottom: 0 !important;
    }

    /* Ссылки внутри <p> */
    .page-modal-body a,
    .agreement-body a {
        color: #0959A5 !important;
        text-decoration: underline !important;
        font-weight: 500 !important;
    }

    /* === <h3>: без фона, разделитель === */
    .page-modal-body h3,
    .agreement-body h3 {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        margin: 14px 0 8px 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
    }
    .page-modal-body h3:first-child,
    .agreement-body h3:first-child {
        margin-top: 0 !important;
    }

    /* === <ul><li>: единый стиль с <p> === */
    .page-modal-body ul,
    .agreement-body ul {
        list-style: none !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }
    .page-modal-body li,
    .agreement-body li {
        background: #f8f9fa !important;
        padding: 8px 12px !important;
        border-radius: 8px !important;
        border-left: 3px solid #0959A5 !important;
        margin: 0 0 6px 0 !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        color: #333 !important;
    }
    .page-modal-body li:last-child,
    .agreement-body li:last-child {
        margin-bottom: 0 !important;
    }

    /* <b> внутри */
    .page-modal-body b,
    .agreement-body b {
        color: #2c3e50 !important;
        font-weight: 600 !important;
    }

    /* --- Confirm-modal --- */
    .confirm-modal-content .store-info {
        font-size: 13px !important;
        margin: 0 0 8px 0 !important;
    }
    .confirm-modal-content .warning-card {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        padding: 8px 12px !important;
        margin: 0 0 12px 0 !important;
        background: #f8f9fa !important;
        border-left: 3px solid #f39c12 !important;
    }

    /* --- Соглашение --- */
    .agreement-checkbox-label {
        font-size: 12.5px !important;
        line-height: 1.4 !important;
    }

    /* --- Кнопки модалок --- */
    .confirm-modal-content .btn-container .btn,
    .agreement-accept-btn {
        font-size: 13px !important;
        padding: 9px 12px !important;
    }
}
/* === /BikePrice Mobile v27 modals === */

/* === BikePrice v39 popup-pointer-events (JS-driven) === */
/* Класс body.is-desktop / body.is-touch ставится в app.js (v39).
   На desktop попапы не кликабельны (закрываются по mouseout).
   На mobile попапы кликабельны (тап по попапу закрывает). */
body.is-desktop .promo-popup,
body.is-desktop .warn-popup,
body.is-desktop .stat-tooltip,
body.is-desktop .location-popup {
    pointer-events: none !important;
}
body.is-touch .promo-popup,
body.is-touch .warn-popup,
body.is-touch .stat-tooltip,
body.is-touch .location-popup {
    pointer-events: auto !important;
}
.promo-popup, .warn-popup, .stat-tooltip, .location-popup {
    z-index: 10000 !important;
}
/* === /BikePrice v39 popup-pointer-events === */

/* === BikePrice mobile: card :active feedback === */
@media (hover: none) {
    .product-card-v15:active {
        transform: scale(1.02);
        border: 1px solid #0959A5;
        transition: transform 0.05s;
    }
}
/* === /BikePrice mobile: card :active feedback === */

/* Патч 3: скрытый для глаз, доступный скринридерам */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Патч 3: skip-link для обхода меню с клавиатуры */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    background: #121212;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 0 0 6px 0;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 3px solid #2ecc71;
    outline-offset: 2px;
}

/* Патч 3: <button> в меню и футере должны выглядеть как прежние <a> */
.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #2c3e50;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font: inherit;
    font-size: 1em;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}
.dropdown-menu button:last-child { border-bottom: none; }
.dropdown-menu button:hover { background: #f8f9fa; color: #333; }

.footer-menu button {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: none;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.footer-menu button:hover { color: #3498db; }

/* CLS fix: main min-height */
/* Резервируем высоту экрана под <main>, чтобы карточки, создаваемые JS,
   не распирали страницу и не сдвигали footer. Проверено: CLS 0.753 → 0. */
#main-content {
    min-height: 100vh;
}
/* /CLS fix: main min-height */

/* CLS fix #2: header monitor/stats min-height */
/* Резервируем высоту третьей строки mobile-header'а, чтобы асинхронная
   загрузка .header-monitor и .header-stats не сдвигала main и footer.
   Проверено в консоли: CLS 0.0786 → 0.0000, header стабильно 226px. */
@media (max-width: 768px) {
    .header-monitor { min-height: 4.875em; }
    .header-stats   { min-height: 4.875em; }
}
/* /CLS fix #2: header monitor/stats min-height */
