* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Стили для блока с товарами */
.products-sidebar {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    transition: all 0.3s ease;
}

/* Когда карта открыта - ширина товаров 35% */
.container.show-map .products-sidebar {
    width: 35%;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.sidebar-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.products-container {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Когда карта открыта - показываем 1 колонку товаров */
.container.show-map .products-container {
    grid-template-columns: 1fr;
}

/* Большие десктопы (от 1400px) - 4 колонки */
@media (min-width: 1400px) {
    .products-container {
        grid-template-columns: repeat(4, minmax(250px, 1fr));
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
}

/* Средние десктопы (1200-1399px) - 4 колонки с меньшим отступом */
@media (min-width: 1200px) and (max-width: 1399px) {
    .products-container {
        grid-template-columns: repeat(4, minmax(230px, 1fr));
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-title {
        font-size: 1.15rem;
    }
}

/* Маленькие десктопы (1024-1199px) - 3 колонки */
@media (min-width: 1024px) and (max-width: 1199px) {
    .products-container {
        grid-template-columns: repeat(3, minmax(230px, 1fr));
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
}

/* Планшеты (768-1023px) - 3 колонки с адаптацией */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
}

/* Большие мобильные (576-767px) - 2 колонки */
@media (min-width: 576px) and (max-width: 767px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-title {
        font-size: 1.05rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
}

/* Маленькие мобильные (до 575px) - 1 колонка */
@media (max-width: 575px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 220px;
    }
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card.active {
    border-color: #3498db;
}

.product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Соотношение сторон 4:3 */
    background-size: contain; /* Показывает всё изображение полностью */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa; /* Фон на случай, если изображение прозрачное */
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.3;
    transition: font-size 0.3s ease;
}

.product-dimensions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #5a6c7d;
    font-size: 0.95rem;
}

.dimensions-icon {
    color: #3498db;
    font-size: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    transition: font-size 0.3s ease;
}

.price-from {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-right: 5px;
}

/* Стили для кнопки "Подробнее" */
.product-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.details-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.details-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.details-btn i {
    font-size: 0.9rem;
}

.map-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.map-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.map-btn i {
    font-size: 0.9rem;
}

/* Стили для блока с картой */
.map-container {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.container.show-map .map-container {
    transform: translateX(0);
    opacity: 1;
}

.map-header {
    padding: 15px 25px 0 25px;
    flex-shrink: 0;
}

.selected-product-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.selected-product-info.hidden {
    display: none;
}

.selected-product-preview {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.preview-image {
    width: 160px;
    height: 120px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
    margin-top: 2px;
}

.preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.preview-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.2;
}

.preview-details {
    margin-top: auto;
}

.preview-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.preview-price-from {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-right: 4px;
}

.preview-dimensions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Стиль для отображения выбранного цвета */
.preview-color {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.preview-color-label {
    color: #7f8c8d;
}

.preview-color-name {
    font-weight: 600;
    color: #2c3e50;
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #eaeaea;
}

#map {
    flex: 1;
    min-height: 300px;
}

/* Стили для выбора цвета плитки */
.color-selector {
    padding: 12px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.color-selector-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.color-option.active {
    border-color: #2c3e50;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}


/* Стили для всплывающего окна Google Maps */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    max-width: 320px !important;
    max-height: 400px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: 400px !important;
}

.gm-style .gm-style-iw-tc {
    display: none !important;
}

.gm-style-iw.gm-style-iw-c {
    max-width: 320px !important;
    max-height: 400px !important;
}

/* Стили для содержимого всплывающего окна */
.info-window-content {
    max-height: 380px;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-window-content::-webkit-scrollbar {
    width: 8px;
}

.info-window-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.info-window-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

/* Стили для ценового блока - прикрепленного к маркеру */
.price-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 80px;
    text-align: center;
    border: 2px solid white;
}

.price-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #27ae60;
}

/* Контейнер для маркера и цены */
.marker-container {
    position: relative;
    display: inline-block;
}

/* Скрываем кнопки переключения типа карты */
.gm-style .gm-style-mtc,
.gm-style .gm-svpc,
.gm-style-mtc-bbw {
    display: none !important;
}

/* Скрываем кнопку полноэкранного режима */
.gm-fullscreen-control {
    display: none !important;
}

/* Скрываем логотип Google */
.gm-style a[href^="https://maps.google.com/maps"],
.gm-style a[href^="https://maps.google.com/maps"] span {
    display: none !important;
}

/* Скрываем кнопки масштабирования на маленьких экранах */
@media (max-width: 768px) {
    .gm-style .gm-style-mtc,
    .gm-style .gmnoprint {
        display: none !important;
    }
}

/* Адаптивность для десктопа */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .container.show-map .products-sidebar {
        width: 100%;
        max-height: 400px;
    }
    
    .map-container {
        transform: translateX(0);
        opacity: 1;
    }
}



/* ===== НАДПИСЬ В САМОМ НИЗУ СТРАНИЦЫ ===== */
.bottom-label {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #95a5a6;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Учитываем боковое меню */
@media (min-width: 769px) {
    .bottom-label {
        margin-left: 70px;
        transition: margin-left 0.3s ease;
    }
    
    .sidebar-menu.expanded ~ .bottom-label,
    .sidebar-menu:hover ~ .bottom-label {
        margin-left: 250px;
    }
}

/* На мобильных делаем меньше и прозрачнее */
@media (max-width: 768px) {
    .bottom-label {
        font-size: 10px;
        bottom: 0px;
        opacity: 0.6;
    }
}

.bottom-label {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.bottom-label.alt {
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 12px;
    bottom: 15px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    opacity: 1;
}

/* --- FIX: поведение панели выбора цвета и прокрутки на мобильных --- */
/* Вставьте этот блок в конец style.css или в конец <style> внутри <head> */

.map-container,
.map-container * {
  overscroll-behavior: contain; /* предотвращает "выталкивание" прокрутки наружу */
  -webkit-overflow-scrolling: touch; /* плавная инерция прокрутки на iOS */
}

#map {
  touch-action: pan-y; /* разрешаем вертикальную прокрутку внутри карты */
  -webkit-user-select: none;
  -ms-touch-action: pan-y;
}

/* Мобильные правки: фиксируем панель выбора цвета внизу viewport */
@media (max-width: 768px) {
  @media (max-width: 768px) {
    /* ВАРИАНТ 2: ЦВЕТА ВНИЗУ, НО ВЫРОВНЕНЫ СЛЕВА */
    
    /* ПАНЕЛЬ ВЫБОРА ЦВЕТА - В НИЖНЕЙ ЧАСТИ, СЛЕВА */
    .color-selector {
        position: relative !important;
        bottom: auto !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 0;
        margin-bottom: 0;
        padding: 15px;
        background: #ffffff;
        border-top: 2px solid #3498db;
        border-bottom: none;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
        z-index: 1100;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        order: 3; /* После карты */
    }
    
    .color-selector-title {
        font-size: 1rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 12px;
        text-align: left !important;
        width: 100%;
    }
    
    .color-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start !important;
        width: 100%;
        align-items: center;
    }
    
    .color-option {
        width: 40px;
        height: 40px;
        border: 2px solid transparent;
        transition: all 0.2s ease;
    }
    
    .color-option:hover {
        transform: scale(1.1);
    }
    
    .color-option.active {
        border-color: #2c3e50;
        transform: scale(1.2);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    }
    
    /* Структура контейнера карты */
    .map-container {
        display: flex !important;
        flex-direction: column !important;
        height: 100vh;
        height: 100dvh;
    }
    
    .map-header {
        flex-shrink: 0;
        order: 1;
    }
    
    #map {
        flex: 1;
        order: 2;
        min-height: 0;
    }
    
    .color-selector {
        flex-shrink: 0;
        order: 3;
    }
}

  @media (max-width: 768px) {
  /* Убираем fixed позиционирование для color-selector */
  .color-selector {
    position: relative !important; /* Или relative */
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    z-index: 10;
    max-height: none;
    overflow-y: visible;
  }
   /* Предотвращаем скролл всей страницы */
  body.show-map {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  /* Делаем карту адаптивной */
  #map {
    flex: 1;
    min-height: calc(100vh - 270px); /* Уменьшаем, чтобы вместить все элементы */
    max-height: calc(100vh - 220px);
    padding-bottom: 0; /* Убираем padding-bottom */
  }
  
  /* Делаем контейнер карты flex-контейнером */
  .map-container {touch-action: pan-x pan-y;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Для современных браузеров */
  }
  
  /* Изменяем структуру контейнера */
  .map-header {
    flex-shrink: 0;
    padding: 12px 15px 0 15px;
  }
  
  .color-selector {
    flex-shrink: 0;
    padding: 10px 15px;
  }
  
  /* Предотвращаем скролл всей страницы */
  body.show-map {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  
}

  

  /* Класс для скрытия панели (если хотите её прятать через JS) */
  .color-selector.hidden {
    transform: translateY(110%);
  }
}

/* Центрированный блок бренда */
.brand-block-center {
    background: white;
    padding: 20px 25px;
    margin-bottom: 20px;
    text-align: left; /* Десктоп: слева */
}

.logo-slogan-center {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Десктоп: слева */
    gap: 8px;
}

.logo-center {
    font-size: 38px;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -0.5px;
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    text-align: left; /* Десктоп: слева */
}

.slogan-center {
    font-size: 18px;
    color: #5d6d7e;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.4;
    font-style: italic;
    text-align: left; /* Десктоп: слева */
}

/* Левый блок заголовка */
.title-block-left {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
}

.main-title-left {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: left;
}

.subtitle-left {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid #3498db;
    text-align: left;
}

/* Мобильная версия - КОЛОНКА, ПО ЦЕНТРУ с разделителем */
@media (max-width: 768px) {
    .brand-block-center {
        padding: 15px 20px;
        margin: 0 15px 15px 15px;
        text-align: center; /* Мобильные: по центру */
    }
    
    .logo-slogan-center {
        flex-direction: column;
        align-items: center; /* Мобильные: по центру */
        gap: 8px;
        position: relative;
    }
    
    .logo-center {
        font-size: 28px;
        margin-bottom: 0; /* Убираем отступ, так как будет разделитель */
        text-align: center; /* Мобильные: по центру */
    }
    
    /* Добавляем горизонтальный разделитель между лого и слоганом в мобильной версии */
    .logo-center::after {
        content: '';
        display: block;
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #3498db, transparent);
        margin: 8px auto 8px auto; /* Отступы сверху и снизу */
        border-radius: 1px;
    }
    
    .slogan-center {
        font-size: 14px;
        text-align: center; /* Мобильные: по центру */
        margin-top: 0; /* Убираем верхний отступ */
    }
    
    .title-block-left {
        padding: 20px;
        margin: 0 15px 20px 15px;
    }
    
    .main-title-left {
        font-size: 24px;
    }
    
    .subtitle-left {
        font-size: 14px;
        padding-left: 15px;
    }
}

/* Для планшетов - тоже с разделителем */
@media (max-width: 1024px) and (min-width: 769px) {
    .brand-block-center {
        margin: 0 20px 20px 20px;
        text-align: center; /* Планшеты: по центру */
    }
    
    .logo-slogan-center {
        flex-direction: column;
        align-items: center; /* Планшеты: по центру */
        gap: 8px;
        position: relative;
    }
    
    .logo-center {
        font-size: 34px;
        margin-bottom: 0; /* Убираем отступ */
        text-align: center; /* Планшеты: по центру */
    }
    
    /* Разделитель для планшетов */
    .logo-center::after {
        content: '';
        display: block;
        width: 80px;
        height: 1.5px;
        background: linear-gradient(90deg, transparent, #3498db, transparent);
        margin: 10px auto 10px auto;
        border-radius: 1px;
    }
    
    .slogan-center {
        font-size: 16px;
        text-align: center; /* Планшеты: по центру */
        margin-top: 0;
    }
    
    .title-block-left {
        margin: 0 20px 20px 20px;
    }
    
    .main-title-left {
        font-size: 28px;
    }
}

/* ТОЛЬКО для больших экранов - В ОДНУ СТРОКУ, СЛЕВА с вертикальным разделителем */
@media (min-width: 1025px) {
    .brand-block-center {
        margin: 0 auto 20px auto;
        max-width: 1200px;
        text-align: left; /* Десктоп: слева */
        padding: 25px 30px;
    }
    
    .logo-slogan-center {
        flex-direction: row; /* Строка на десктопе */
        align-items: center;
        gap: 20px;
        justify-content: flex-start; /* Слева */
    }
    
    .logo-center {
        font-size: 40px;
        margin-bottom: 0;
        padding-right: 20px;
        position: relative;
        text-align: left; /* Десктоп: слева */
    }
    
    /* Вертикальный разделитель для десктопа */
    .logo-center::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 35px;
        background: linear-gradient(to bottom, transparent, #3498db, transparent);
        display: block;
        margin: 0; /* Убираем авто-отступы */
    }
    
    .slogan-center {
        font-size: 20px;
        text-align: left; /* Десктоп: слева */
        font-style: italic;
        margin-top: 0;
    }
    
    .title-block-left {
        margin: 0 auto 20px auto;
        max-width: 1200px;
        padding: 30px;
    }
    
    .main-title-left {
        font-size: 34px;
    }
    
    .subtitle-left {
        font-size: 17px;
    }
	
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
    transition: all 0.3s ease;
}

/* Стили для блока с товарами */
.products-sidebar {
    width: 100%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
    transition: all 0.3s ease;
}

/* Когда карта открыта - ширина товаров 35% */
.container.show-map .products-sidebar {
    width: 35%;
    flex-shrink: 0;
}

.sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.sidebar-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.products-container {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Когда карта открыта - показываем 1 колонку товаров */
.container.show-map .products-container {
    grid-template-columns: 1fr;
}

/* Большие десктопы (от 1400px) - 4 колонки */
@media (min-width: 1400px) {
    .products-container {
        grid-template-columns: repeat(4, minmax(250px, 1fr));
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
}

/* Средние десктопы (1200-1399px) - 4 колонки с меньшим отступом */
@media (min-width: 1200px) and (max-width: 1399px) {
    .products-container {
        grid-template-columns: repeat(4, minmax(230px, 1fr));
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-title {
        font-size: 1.15rem;
    }
}

/* Маленькие десктопы (1024-1199px) - 3 колонки */
@media (min-width: 1024px) and (max-width: 1199px) {
    .products-container {
        grid-template-columns: repeat(3, minmax(230px, 1fr));
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 250px;
    }
}

/* Планшеты (768-1023px) - 3 колонки с адаптацией */
@media (min-width: 768px) and (max-width: 1023px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
}

/* Большие мобильные (576-767px) - 2 колонки */
@media (min-width: 576px) and (max-width: 767px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-title {
        font-size: 1.05rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
}

/* Маленькие мобильные (до 575px) - 1 колонка */
@media (max-width: 575px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .container.show-map .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 220px;
    }
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card.active {
    border-color: #3498db;
}

.product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Соотношение сторон 4:3 */
    background-size: contain; /* Показывает всё изображение полностью */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f9fa; /* Фон на случай, если изображение прозрачное */
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.3;
    transition: font-size 0.3s ease;
}

.product-dimensions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #5a6c7d;
    font-size: 0.95rem;
}

.dimensions-icon {
    color: #3498db;
    font-size: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    transition: font-size 0.3s ease;
}

.price-from {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-right: 5px;
}

/* Стили для кнопки "Подробнее" */
.product-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.details-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.details-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.details-btn i {
    font-size: 0.9rem;
}

.map-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.map-btn:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.map-btn i {
    font-size: 0.9rem;
}

/* Стили для блока с картой */
.map-container {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.container.show-map .map-container {
    transform: translateX(0);
    opacity: 1;
}

.map-header {
    padding: 15px 25px 0 25px;
    flex-shrink: 0;
}

.selected-product-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.selected-product-info.hidden {
    display: none;
}

.selected-product-preview {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.preview-image {
    width: 160px;
    height: 120px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #eaeaea;
    margin-top: 2px;
}

.preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.preview-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.2;
}

.preview-details {
    margin-top: auto;
}

.preview-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.preview-price-from {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-right: 4px;
}

.preview-dimensions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Стиль для отображения выбранного цвета */
.preview-color {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.preview-color-label {
    color: #7f8c8d;
}

.preview-color-name {
    font-weight: 600;
    color: #2c3e50;
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 3px;
    border: 1px solid #eaeaea;
}

#map {
    flex: 1;
    min-height: 300px;
}

/* Стили для выбора цвета плитки */
.color-selector {
    padding: 12px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.color-selector-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.color-option.active {
    border-color: #2c3e50;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Стили для кнопки закрытия карты */
.close-map-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 18px;
}

.close-map-btn:hover {
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Скрываем стандартную кнопку закрытия Google Maps InfoWindow */
.gm-style .gm-ui-hover-effect {
    display: none !important;
}



/* Стили для всплывающего окна Google Maps */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    max-width: 320px !important;
    max-height: 400px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: 400px !important;
}

.gm-style .gm-style-iw-tc {
    display: none !important;
}

.gm-style-iw.gm-style-iw-c {
    max-width: 320px !important;
    max-height: 400px !important;
}

/* Стили для содержимого всплывающего окна */
.info-window-content {
    max-height: 380px;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.info-window-content::-webkit-scrollbar {
    width: 8px;
}

.info-window-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.info-window-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

/* Стили для ценового блока - прикрепленного к маркеру */
.price-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 80px;
    text-align: center;
    border: 2px solid white;
}

.price-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #27ae60;
}

/* Контейнер для маркера и цены */
.marker-container {
    position: relative;
    display: inline-block;
}

/* Скрываем кнопки переключения типа карты */
.gm-style .gm-style-mtc,
.gm-style .gm-svpc,
.gm-style-mtc-bbw {
    display: none !important;
}

/* Скрываем кнопку полноэкранного режима */
.gm-fullscreen-control {
    display: none !important;
}

/* Скрываем логотип Google */
.gm-style a[href^="https://maps.google.com/maps"],
.gm-style a[href^="https://maps.google.com/maps"] span {
    display: none !important;
}

/* Скрываем кнопки масштабирования на маленьких экранах */
@media (max-width: 768px) {
    .gm-style .gm-style-mtc,
    .gm-style .gmnoprint {
        display: none !important;
    }
}

/* Адаптивность для десктопа */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .container.show-map .products-sidebar {
        width: 100%;
        max-height: 400px;
    }
    
    .map-container {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================== */
/* МОБИЛЬНАЯ ВЕРСИЯ - КАРТА ВЫЕЗЖАЕТ СНИЗУ */
/* ============================================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        flex-direction: column;
        position: relative;
    }
    
    .products-sidebar {
        max-height: none;
        padding: 15px;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.15rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    /* КАРТА - ВЫЕЗЖАЕТ СНИЗУ */
    .map-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        z-index: 1000;
        transform: translateY(100%);
        opacity: 1;
        transition: transform 0.4s ease;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        visibility: hidden;
    }
    
    .container.show-map .map-container {
        transform: translateY(0);
        visibility: visible;
    }
    
    .map-header {
        padding: 12px 15px 0 15px;
        padding-top: 60px;
        flex-shrink: 0;
        background: white;
        position: relative;
        z-index: 10;
        min-height: 120px;
    }
    
    .selected-product-info {
        gap: 12px;
        padding-bottom: 10px;
        display: flex !important;
        min-height: 100px;
    }
    
    .selected-product-preview {
        gap: 12px;
    }
    
    .preview-image {
        width: 85px;
        height: 85px;
        margin-top: 0;
    }
    
    .preview-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    .preview-price {
        font-size: 1.15rem;
    }
    
    .preview-color {
        font-size: 0.75rem;
    }
    
    /* БЛОК КАРТЫ - фиксированные размеры */
    #map {
        flex: 1;
        position: relative !important;
        z-index: 1;
        min-height: 0 !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Google Maps container внутри */
    #map > div:first-child {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* ПАНЕЛЬ ВЫБОРА ЦВЕТА - ФИКСИРОВАНА В КОНТЕЙНЕРЕ */
    .color-selector {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 12px 15px !important;
        background-color: #ffffff !important;
        border-top: 2px solid #3498db !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        z-index: 1100 !important;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.15) !important;
        flex-shrink: 0 !important;
        max-height: 160px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateZ(0) !important;
        will-change: transform !important;
        /* Жесткая фиксация */
        transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    .color-selector-title {
        font-size: 0.9rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .color-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .color-option {
        width: 36px;
        height: 36px;
        border: 2px solid transparent;
        transition: all 0.2s ease;
    }
    
    .color-option.active {
        border-color: #2c3e50;
        transform: scale(1.2);
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
    }
    
    
    
    /* Предотвращаем скролл */
    body.map-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .details-btn, .map-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== НАДПИСЬ В САМОМ НИЗУ СТРАНИЦЫ ===== */
.bottom-label {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    color: #95a5a6;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Учитываем боковое меню */
@media (min-width: 769px) {
    .bottom-label {
        margin-left: 70px;
        transition: margin-left 0.3s ease;
    }
    
    .sidebar-menu.expanded ~ .bottom-label,
    .sidebar-menu:hover ~ .bottom-label {
        margin-left: 250px;
    }
}

/* На мобильных делаем меньше и прозрачнее */
@media (max-width: 768px) {
    .bottom-label {
        font-size: 10px;
        bottom: 0px;
        opacity: 0.6;
    }
}

.bottom-label {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.bottom-label.alt {
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 12px;
    bottom: 15px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    opacity: 1;
}

/* --- FIX: поведение панели выбора цвета и прокрутки на мобильных --- */
/* Вставьте этот блок в конец style.css или в конец <style> внутри <head> */

.map-container,
.map-container * {
  overscroll-behavior: contain; /* предотвращает "выталкивание" прокрутки наружу */
  -webkit-overflow-scrolling: touch; /* плавная инерция прокрутки на iOS */
}

#map {
  touch-action: pan-y; /* разрешаем вертикальную прокрутку внутри карты */
  -webkit-user-select: none;
  -ms-touch-action: pan-y;
}

/* Мобильные правки: фиксируем панель выбора цвета внизу viewport */
@media (max-width: 768px) {
  .color-selector {
    position: sticky;
  bottom: 0;
  z-index: 10;
    bottom: env(safe-area-inset-bottom, 0);
    z-index: 1200;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
    background-color: #f8f9fa;
    max-height: 40vh; /* при необходимости уменьшите/увеличьте */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.25s ease;
  }

  @media (max-width: 768px) {
  /* Убираем fixed позиционирование для color-selector */
  .color-selector {
    position: relative !important; /* Или relative */
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    z-index: 10;
    max-height: none;
    overflow-y: visible;
  }
   /* Предотвращаем скролл всей страницы */
  body.show-map {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  /* Делаем карту адаптивной */
  #map {
    flex: 1;
    min-height: calc(100vh - 270px); /* Уменьшаем, чтобы вместить все элементы */
    max-height: calc(100vh - 220px);
    padding-bottom: 0; /* Убираем padding-bottom */
  }
  
  /* Делаем контейнер карты flex-контейнером */
  .map-container {touch-action: pan-x pan-y;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Для современных браузеров */
  }
  
  /* Изменяем структуру контейнера */
  .map-header {
    flex-shrink: 0;
    padding: 12px 15px 0 15px;
  }
  
  .color-selector {
    flex-shrink: 0;
    padding: 10px 15px;
  }
  
  /* Предотвращаем скролл всей страницы */
  body.show-map {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
 
}

 

  /* Класс для скрытия панели (если хотите её прятать через JS) */
  .color-selector.hidden {
    transform: translateY(110%);
  }
}

/* Центрированный блок бренда */
.brand-block-center {
    background: white;
    padding: 20px 25px;
    margin-bottom: 20px;
    text-align: left; /* Десктоп: слева */
}

.logo-slogan-center {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Десктоп: слева */
    gap: 8px;
}

.logo-center {
    font-size: 38px;
    font-weight: 900;
    color: #2c3e50;
    letter-spacing: -0.5px;
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
    text-align: left; /* Десктоп: слева */
}

.slogan-center {
    font-size: 18px;
    color: #5d6d7e;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.4;
    font-style: italic;
    text-align: left; /* Десктоп: слева */
}

/* Левый блок заголовка */
.title-block-left {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
}

.main-title-left {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: left;
}

.subtitle-left {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid #3498db;
    text-align: left;
}

/* Мобильная версия - КОЛОНКА, ПО ЦЕНТРУ с разделителем */
@media (max-width: 768px) {
    .brand-block-center {
        padding: 15px 20px;
        margin: 0 15px 15px 15px;
        text-align: center; /* Мобильные: по центру */
    }
    
    .logo-slogan-center {
        flex-direction: column;
        align-items: center; /* Мобильные: по центру */
        gap: 8px;
        position: relative;
    }
    
    .logo-center {
        font-size: 28px;
        margin-bottom: 0; /* Убираем отступ, так как будет разделитель */
        text-align: center; /* Мобильные: по центру */
    }
    
    /* Добавляем горизонтальный разделитель между лого и слоганом в мобильной версии */
    .logo-center::after {
        content: '';
        display: block;
        width: 60px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #3498db, transparent);
        margin: 8px auto 8px auto; /* Отступы сверху и снизу */
        border-radius: 1px;
    }
    
    .slogan-center {
        font-size: 14px;
        text-align: center; /* Мобильные: по центру */
        margin-top: 0; /* Убираем верхний отступ */
    }
    
    .title-block-left {
        padding: 20px;
        margin: 0 15px 20px 15px;
    }
    
    .main-title-left {
        font-size: 24px;
    }
    
    .subtitle-left {
        font-size: 14px;
        padding-left: 15px;
    }
}

/* Для планшетов - тоже с разделителем */
@media (max-width: 1024px) and (min-width: 769px) {
    .brand-block-center {
        margin: 0 20px 20px 20px;
        text-align: center; /* Планшеты: по центру */
    }
    
    .logo-slogan-center {
        flex-direction: column;
        align-items: center; /* Планшеты: по центру */
        gap: 8px;
        position: relative;
    }
    
    .logo-center {
        font-size: 34px;
        margin-bottom: 0; /* Убираем отступ */
        text-align: center; /* Планшеты: по центру */
    }
    
    /* Разделитель для планшетов */
    .logo-center::after {
        content: '';
        display: block;
        width: 80px;
        height: 1.5px;
        background: linear-gradient(90deg, transparent, #3498db, transparent);
        margin: 10px auto 10px auto;
        border-radius: 1px;
    }
    
    .slogan-center {
        font-size: 16px;
        text-align: center; /* Планшеты: по центру */
        margin-top: 0;
    }
    
    .title-block-left {
        margin: 0 20px 20px 20px;
    }
    
    .main-title-left {
        font-size: 28px;
    }
}

/* ТОЛЬКО для больших экранов - В ОДНУ СТРОКУ, СЛЕВА с вертикальным разделителем */
@media (min-width: 1025px) {
    .brand-block-center {
        margin: 0 auto 20px auto;
        max-width: 1200px;
        text-align: left; /* Десктоп: слева */
        padding: 25px 30px;
    }
    
    .logo-slogan-center {
        flex-direction: row; /* Строка на десктопе */
        align-items: center;
        gap: 20px;
        justify-content: flex-start; /* Слева */
    }
    
    .logo-center {
        font-size: 40px;
        margin-bottom: 0;
        padding-right: 20px;
        position: relative;
        text-align: left; /* Десктоп: слева */
    }
    
    /* Вертикальный разделитель для десктопа */
    .logo-center::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 35px;
        background: linear-gradient(to bottom, transparent, #3498db, transparent);
        display: block;
        margin: 0; /* Убираем авто-отступы */
    }
    
    .slogan-center {
        font-size: 20px;
        text-align: left; /* Десктоп: слева */
        font-style: italic;
        margin-top: 0;
    }
    
    .title-block-left {
        margin: 0 auto 20px auto;
        max-width: 1200px;
        padding: 30px;
    }
    
    .main-title-left {
        font-size: 34px;
    }
    
    .subtitle-left {
        font-size: 17px;
    }
	/* ФИКС ДВОЙНОГО ВЕРТИКАЛЬНОГО СКРОЛЛА */
@media (min-width: 769px) {
    /* Убираем скролл у body на десктопе */
    body {
        overflow: hidden !important;
    }
    
    /* Оставляем скролл ТОЛЬКО у products-sidebar */
    .products-sidebar {
        overflow-y: auto !important;
        height: 94vh;
        -webkit-overflow-scrolling: touch;
    }
    
    /* При открытой карте - тоже самое */
    .container.show-map .products-sidebar {
        overflow-y: auto !important;
        height: 94vh;
    }
    
    /* Карта без скролла */
    .map-container {
        overflow: hidden !important;
        height: 94vh;
    }
    
    /* Контейнер тоже без скролла */
    .container {
        height: 94vh;
        overflow: hidden !important;
    }
}

/* Для мобильных оставляем как было */
@media (max-width: 768px) {
    body {
        overflow: auto !important;
    }
    
    .products-sidebar {
        overflow: visible !important;
        height: auto;
    }
}
}


.simple-categories {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-title-wrapper {
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
}

.title-text {
    white-space: nowrap;
}

.title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    border-radius: 2px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    font-style: italic;
    padding-left: 10px;
    border-left: 3px solid #2ecc71;
}  
.simple-categories {
    margin-top: -30px; /* Отступ сверху от предыдущего контента */
}

.section-title-wrapper {
    padding-top: 40px; /* Отступ внутри заголовка сверху */
}

.category-block:first-child {
    margin-top: 20px; /* Отступ первой категории */
}



/* ===== КОМПАКТНЫЙ ГИД "СЭКОНОМЬ ЗА 3 ШАГА" ===== */
.compact-guide {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0 30px 0;
    border: 1px solid #eaeaea;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.guide-header i {
    color: #3498db;
    font-size: 18px;
}

.compact-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.compact-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    min-height: 80px;
}

.step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.step-number {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.step-mini {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3498db;
}

.step-mini i {
    font-size: 18px;
    color: #3498db;
}

.step-info {
    flex: 1;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 12px;
    color: #5a6c7d;
    line-height: 1.4;
}

.step-arrow {
    color: #95a5a6;
    font-size: 16px;
    padding: 0 5px;
}

/* Скрываем компактный гид при открытой карте */
.container.show-map .compact-guide {
    display: none !important;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ===== */
@media (max-width: 768px) {
    .compact-guide {
        margin: 0 15px 20px 15px !important;
        padding: 15px !important;
        border-radius: 10px;
        background: #f8f9fa;
        border: 1px solid #eaeaea;
        width: auto !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .guide-header {
        font-size: 15px !important;
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #e0e0e0 !important;
        flex-direction: row !important;
        justify-content: center !important;
    }
    
    .guide-header i {
        font-size: 16px !important;
    }
    
    .compact-steps {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    
    .compact-step {
        flex-direction: row !important;
        align-items: center !important;
        padding: 12px 15px !important;
        background: white !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
        min-height: auto !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03) !important;
        width: 100% !important;
        flex: 0 0 auto !important;
        box-sizing: border-box !important;
    }
    
    .step-visual {
        flex-direction: row !important;
        gap: 10px !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    
    .step-number {
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
    }
    
    .step-mini {
        width: 36px !important;
        height: 36px !important;
        border: 1.5px solid #3498db !important;
    }
    
    .step-mini i {
        font-size: 16px !important;
        color: #3498db !important;
    }
    
    .step-info {
        flex: 1 !important;
        margin-top: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .step-title {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
        margin-bottom: 3px !important;
        line-height: 1.2 !important;
    }
    
    .step-desc {
        font-size: 12px !important;
        color: #5a6c7d !important;
        line-height: 1.3 !important;
    }
    
    .step-arrow {
        display: none !important;
    }
    
    /* Вертикальные разделители между шагами */
    .compact-step:not(:last-child) {
        position: relative !important;
        margin-bottom: 4px !important;
    }
    
    .compact-step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #3498db, transparent);
        border-radius: 1px;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px) ===== */
@media (max-width: 480px) {
    .compact-guide {
        margin: 0 10px 15px 10px !important;
        padding: 12px !important;
    }
    
    .compact-step {
        padding: 10px 12px !important;
        gap: 12px !important;
    }
    
    .step-visual {
        gap: 8px !important;
    }
    
    .step-number {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }
    
    .step-mini {
        width: 32px !important;
        height: 32px !important;
    }
    
    .step-mini i {
        font-size: 14px !important;
    }
    
    .step-title {
        font-size: 12px !important;
    }
    
    .step-desc {
        font-size: 11px !important;
    }
    
    .compact-step:not(:last-child)::after {
        width: 30px;
        bottom: -6px;
    }
}

/* ===== ДЕСКТОПНАЯ ВЕРСИЯ (768px+) - СКРЫВАЕМ РАЗДЕЛИТЕЛИ ===== */
@media (min-width: 769px) {
    .compact-step:not(:last-child)::after {
        display: none;
    }
}

/* ===== СТЕКЛЯННАЯ ГАЛЕРЕЯ - С ВИДИМОЙ КАРТОЙ НА ФОНЕ ===== */
.warehouse-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 30, 50, 0.6); /* Темный фон для контраста */
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px) saturate(180%); /* Меньше размытие */
    -webkit-backdrop-filter: blur(6px) saturate(180%);
    animation: glassAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes glassAppear {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0) saturate(100%);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(6px) saturate(180%);
    }
}

/* Контейнер - стеклянный с видимым фоном карты */
.warehouse-gallery-container {
    width: 90%;
    max-width: 1400px;
    height: 82vh; /* Оптимальная высота для десктопа */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.75) 0%, 
        rgba(248, 249, 250, 0.82) 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
        0 0 0 1.5px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(41, 128, 185, 0.15); /* Синее свечение */
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px) saturate(200%);
    -webkit-backdrop-filter: blur(12px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.warehouse-gallery-overlay.active .warehouse-gallery-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Эффект "фростед стекла" */
.warehouse-gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Морозный узор */
        repeating-linear-gradient(0deg, 
            transparent 0px, 
            transparent 1px, 
            rgba(255, 255, 255, 0.05) 1px, 
            rgba(255, 255, 255, 0.05) 2px),
        /* Световые блики */
        radial-gradient(circle at 20% 80%, 
            rgba(255, 255, 255, 0.15) 0%, 
            transparent 60%),
        radial-gradient(circle at 80% 20%, 
            rgba(52, 152, 219, 0.1) 0%, 
            transparent 60%),
        /* Градиентный оверлей */
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(52, 152, 219, 0.05) 50%, 
            rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 24px;
    mix-blend-mode: overlay;
}

/* Убираем наложение с основного контента */
.gallery-main,
.gallery-header {
    position: relative;
    z-index: 2;
}

/* Заголовок - внутри контейнера, не абсолютный */
.gallery-header {
    padding: 20px 32px;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.9) 0%, 
        rgba(41, 128, 185, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%),
        repeating-linear-gradient(45deg, 
            rgba(255, 255, 255, 0) 0px, 
            rgba(255, 255, 255, 0) 2px, 
            rgba(255, 255, 255, 0.05) 2px, 
            rgba(255, 255, 255, 0.05) 4px);
    opacity: 0.3;
    pointer-events: none;
}

.gallery-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gallery-title i {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Кнопка закрытия - внутри заголовка */
.gallery-close {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.15);
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Основная область - вычисляем высоту с учетом заголовка */
.gallery-main {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(248, 249, 250, 0.9) 0%, 
        rgba(241, 243, 245, 0.95) 100%);
}

.gallery-slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Фото - для десктопа максимум, для мобильных меньше отступов */
.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 10px; /* Меньше padding изначально */
    box-sizing: border-box;
    will-change: transform, opacity;
}

.gallery-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* ФОТО - на весь доступный экран */
.gallery-slide img {
    max-width: calc(100% - 20px); /* Меньше отступов */
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 0 1.5px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(52, 152, 219, 0.1);
    animation: floatAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes floatAppear {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Навигационные кнопки */
.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
}

.gallery-nav-btn {
    pointer-events: all;
    background: rgba(52, 152, 219, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.gallery-nav-btn:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 
        0 12px 35px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.gallery-nav-btn:active {
    transform: translateY(-1px) scale(1.05);
    background: rgba(31, 118, 171, 0.95);
}

/* ТОЧКИ НА ФОТО */
.gallery-dots-container {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 25;
    padding: 0 20px;
    pointer-events: none;
}

.gallery-dots {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: all;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.3);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.4);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 8px rgba(255, 255, 255, 0.3);
}

.gallery-dot.active {
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    transform: scale(1.5);
    box-shadow: 
        0 0 0 3px rgba(52, 152, 219, 0.3),
        0 0 12px rgba(52, 152, 219, 0.4);
}

.gallery-dot.active::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }
}




/* ПРОСТОЙ ФУТЕР С ПРИМЕЧАНИЯМИ */
.gallery-footer {
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
    padding: 8px 15px;
    font-size: 12px;
    color: #5a6c7d;
    line-height: 1.4;
    text-align: center;
    border-radius: 0 0 12px 12px;
}




/* Кнопка "Фото со склада" в инфоокне */
.warehouse-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.95) 0%, 
        rgba(41, 128, 185, 0.95) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 
        0 6px 20px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* БОЛЬШИЕ ДЕСКТОПЫ (1200px+) - НА ВЕСЬ ЭКРАН */
@media (min-width: 1200px) {
    .warehouse-gallery-overlay {
        background: rgba(10, 25, 40, 0.5); /* Еще прозрачнее для десктопа */
    }
    
    .warehouse-gallery-container {
        max-width: 95%;
        height: 90vh; /* Практически на весь экран */
        margin-top: 0;
        border-radius: 20px;
    }
    
    .gallery-slide {
        padding: 5px; /* Минимум отступов */
    }
    
    .gallery-slide img {
        max-width: calc(100% - 10px); /* Почти на весь контейнер */
        max-height: calc(100% - 10px);
        border-radius: 18px;
        box-shadow: 
            0 25px 60px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 0 0 1.5px rgba(0, 0, 0, 0.1),
            0 0 30px rgba(52, 152, 219, 0.2);
    }
    
    /* Кнопки навигации */
    .gallery-nav-btn {
        width: 65px;
        height: 65px;
        font-size: 24px;
        margin: 0 30px;
        background: rgba(52, 152, 219, 0.9);
        border: 1.5px solid rgba(255, 255, 255, 0.5);
    }
    
    /* Точки */
    .gallery-dots-container {
        bottom: 40px;
    }
    
    .gallery-dots {
        gap: 16px;
        padding: 14px 30px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(15px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .gallery-dot {
        width: 14px;
        height: 14px;
    }
    
    .gallery-dot.active {
        width: 16px;
        height: 16px;
    }
}

/* ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (1600px+) - МАКСИМАЛЬНО НА ВЕСЬ ЭКРАН */
@media (min-width: 1600px) {
    .warehouse-gallery-container {
        max-width: 98%;
        height: 92vh; /* Еще выше */
        max-height: 900px;
    }
    
    .gallery-slide {
        padding: 2px; /* Практически без отступов */
    }
    
    .gallery-slide img {
        max-width: calc(100% - 4px); /* Максимум фото */
        max-height: calc(100% - 4px);
        border-radius: 20px;
    }
    
    .gallery-nav-btn {
        width: 70px;
        height: 70px;
        font-size: 26px;
        margin: 0 40px;
    }
    
    .gallery-dots-container {
        bottom: 45px;
    }
}

/* ДЕСКТОПЫ СРЕДНЕГО РАЗМЕРА (1024-1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .warehouse-gallery-container {
        width: 94%;
        height: 88vh;
        max-width: 1300px;
    }
    
    .gallery-slide {
        padding: 8px;
    }
    
    .gallery-slide img {
        max-width: calc(100% - 16px);
        max-height: calc(100% - 16px);
    }
    
    .gallery-nav-btn {
        width: 60px;
        height: 60px;
    }
}

/* ПЛАНШЕТЫ (ГОРИЗОНТАЛЬНАЯ 768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .warehouse-gallery-container {
        width: 96%;
        height: 80vh; /* Уменьшили высоту */
        max-width: 1000px;
        backdrop-filter: blur(10px);
    }
    
    .gallery-slide {
        padding: 8px; /* Уменьшили padding */
    }
    
    .gallery-slide img {
        max-width: calc(100% - 16px); /* Уменьшили отступы */
        max-height: calc(100% - 16px);
        border-radius: 14px;
    }
    
    .gallery-nav {
        padding: 0 15px;
    }
    
    .gallery-nav-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    
    .gallery-dots-container {
        bottom: 25px;
    }
    
    .gallery-dots {
        gap: 10px;
        padding: 8px 20px;
    }
    
    .gallery-dot {
        width: 9px;
        height: 9px;
    }
}

/* МОБИЛЬНЫЕ (ВЕРТИКАЛЬНАЯ до 767px) - УМЕНЬШАЕМ ВЫСОТУ И ОТСТУПЫ */
@media (max-width: 767px) {
    .warehouse-gallery-overlay {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .warehouse-gallery-container {
        width: 96%;
        height: 75vh; /* Уменьшили высоту для мобильных */
        border-radius: 18px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        max-height: 600px; /* Максимальная высота */
    }
    
    .gallery-header {
        padding: 14px 18px; /* Уменьшили padding заголовка */
    }
    
    .gallery-title {
        font-size: 16px;
    }
    
    .gallery-title i {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .gallery-close {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .gallery-slide {
        padding: 5px; /* Уменьшили padding до минимума */
    }
    
    .gallery-slide img {
        max-width: calc(100% - 10px); /* Минимум отступов */
        max-height: calc(100% - 10px); /* Минимум отступов */
        border-radius: 12px;
        box-shadow: 
            0 12px 30px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 0 0 1px rgba(0, 0, 0, 0.08);
    }
    
    .gallery-nav {
        padding: 0 8px;
    }
    
    .gallery-nav-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .gallery-dots-container {
        bottom: 15px; /* Подняли точки выше */
    }
    
    .gallery-dots {
        gap: 8px;
        padding: 6px 16px;
    }
    
    .gallery-dot {
        width: 8px;
        height: 8px;
    }
}

/* ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (до 480px) */
@media (max-width: 480px) {
    .warehouse-gallery-container {
        width: 98%;
        height: 70vh; /* Еще меньше на очень маленьких экранах */
        max-height: 550px;
        border-radius: 16px;
    }
    
    .gallery-header {
        padding: 12px 14px;
    }
    
    .gallery-title {
        font-size: 14px;
        gap: 8px;
    }
    
    .gallery-title i {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .gallery-close {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .gallery-slide {
        padding: 4px;
    }
    
    .gallery-slide img {
        max-width: calc(100% - 8px);
        max-height: calc(100% - 8px);
        border-radius: 10px;
    }
    
    .gallery-nav {
        padding: 0 5px;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-dots-container {
        bottom: 12px;
    }
    
    .gallery-dots {
        gap: 6px;
        padding: 5px 14px;
    }
    
    .gallery-dot {
        width: 6px;
        height: 6px;
    }
    
    .warehouse-photo-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ на мобильных */
@media (orientation: landscape) and (max-height: 600px) {
    .warehouse-gallery-container {
        height: 85vh; /* В ландшафте делаем выше */
        max-height: 400px;
    }
    
    .gallery-header {
        padding: 10px 16px;
    }
    
    .gallery-dots-container {
        bottom: 12px;
    }
    
    .gallery-slide img {
        max-height: calc(100% - 8px);
    }
}

/* Для фото с белым фоном */
.gallery-slide img {
    background: rgba(255, 255, 255, 0.98);
}

/* РЕТИНА-ЭКРАНЫ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-slide img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Эффект загрузки */
.gallery-slide img.loading {
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(
        90deg,
        rgba(240, 240, 240, 0.8) 25%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(240, 240, 240, 0.8) 75%
    );
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Поддержка темной темы браузера */
@media (prefers-color-scheme: dark) {
    .warehouse-gallery-overlay {
        background: rgba(10, 20, 35, 0.7);
    }
    
    .warehouse-gallery-container {
        background: linear-gradient(135deg, 
            rgba(40, 50, 65, 0.85) 0%, 
            rgba(30, 40, 55, 0.9) 100%);
        box-shadow: 
            0 32px 64px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
            0 0 0 1.5px rgba(255, 255, 255, 0.15),
            0 0 30px rgba(52, 152, 219, 0.2);
    }
    
    .warehouse-gallery-container::before {
        background: 
            repeating-linear-gradient(0deg, 
                transparent 0px, 
                transparent 1px, 
                rgba(255, 255, 255, 0.03) 1px, 
                rgba(255, 255, 255, 0.03) 2px),
            radial-gradient(circle at 20% 80%, 
                rgba(255, 255, 255, 0.08) 0%, 
                transparent 60%),
            radial-gradient(circle at 80% 20%, 
                rgba(52, 152, 219, 0.06) 0%, 
                transparent 60%),
            linear-gradient(135deg, 
                rgba(255, 255, 255, 0.06) 0%, 
                rgba(52, 152, 219, 0.03) 50%, 
                rgba(255, 255, 255, 0.06) 100%);
    }
    
    .gallery-main {
        background: linear-gradient(135deg, 
            rgba(30, 40, 55, 0.9) 0%, 
            rgba(25, 35, 50, 0.95) 100%);
    }
    
    .gallery-slide img {
        background: rgba(25, 35, 50, 0.95);
        box-shadow: 
            0 20px 50px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 1.5px rgba(255, 255, 255, 0.1),
            0 0 20px rgba(52, 152, 219, 0.15);
    }
    
    .gallery-dots {
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .gallery-dot {
        background: rgba(255, 255, 255, 0.4);
    }
    
    .gallery-dot:hover {
        background: rgba(255, 255, 255, 0.7);
    }
    
    .gallery-dot.active {
        background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
        box-shadow: 
            0 0 0 3px rgba(52, 152, 219, 0.4),
            0 0 15px rgba(52, 152, 219, 0.5);
    }
}

/* Эффект при наведении на контейнер */
.warehouse-gallery-container:hover::before {
    background: 
        repeating-linear-gradient(0deg, 
            transparent 0px, 
            transparent 1px, 
            rgba(255, 255, 255, 0.08) 1px, 
            rgba(255, 255, 255, 0.08) 2px),
        radial-gradient(circle at 20% 80%, 
            rgba(255, 255, 255, 0.2) 0%, 
            transparent 60%),
        radial-gradient(circle at 80% 20%, 
            rgba(52, 152, 219, 0.15) 0%, 
            transparent 60%),
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.12) 0%, 
            rgba(52, 152, 219, 0.08) 50%, 
            rgba(255, 255, 255, 0.12) 100%);
}



/* Стили для контактной информации в инфоокне */
@media (min-width: 769px) {
    .desktop-contact {
        display: block !important;
    }
    
    .mobile-contact {
        display: none !important;
    }
    
    .call-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
    }
}

@media (max-width: 768px) {
    .desktop-contact {
        display: none !important;
    }
    
    .mobile-contact {
        display: block !important;
    }
    
    .call-button {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
    
    .call-button:active {
        transform: scale(0.98);
        background: linear-gradient(135deg, #27ae60 0%, #219653 100%) !important;
    }
}

/* Улучшенные стили для мобильной кнопки */
@media (max-width: 480px) {
    .call-button {
        font-size: 14px !important;
        padding: 13px 14px !important;
        gap: 8px !important;
    }
    
    .call-button i {
        font-size: 15px !important;
    }
}

/* Анимация для кнопки на всех устройствах */
.call-button {
    position: relative;
    overflow: hidden;
}

.call-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.call-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* ===== КОМПАКТНАЯ МОБИЛЬНАЯ КНОПКА "ПОЗВОНИТЬ" ===== */

/* Мобильная версия */
@media (max-width: 768px) {
    .mobile-call-btn {
        width: 100% !important;
        height: 44px !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        background: #2ecc71 !important;
        box-shadow: 0 2px 6px rgba(46, 204, 113, 0.25) !important;
        border: none !important;
    }
    
    /* Иконка телефона */
    .mobile-call-btn .fa-phone-alt {
        font-size: 13px !important;
        color: white !important;
    }
    
    /* Текст кнопки */
    .mobile-call-btn span {
        font-weight: 600 !important;
        font-size: 14px !important;
    }
    
    /* Активное состояние (нажатие) */
    .mobile-call-btn:active {
        transform: scale(0.98) !important;
        background: #27ae60 !important;
        box-shadow: 0 1px 4px rgba(46, 204, 113, 0.2) !important;
    }
    
    /* Убираем стандартные стили для кнопок в мобильных браузерах */
    .mobile-call-btn {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        outline: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    /* Плавное появление кнопки */
    .mobile-call-wrapper {
        animation: buttonAppear 0.2s ease-out;
    }
    
    @keyframes buttonAppear {
        from {
            opacity: 0;
            transform: translateY(5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .mobile-call-btn {
        height: 42px !important;
        padding: 9px 14px !important;
        font-size: 13px !important;
    }
    
    .mobile-call-btn .fa-phone-alt {
        font-size: 12px !important;
    }
    
    .mobile-call-btn span {
        font-size: 13px !important;
    }
}

/* Десктопная версия */
@media (min-width: 769px) {
    .desktop-contact {
        display: block !important;
    }
    
    .mobile-contact {
        display: none !important;
    }
    
    .desktop-contact > div {
        display: flex;
        align-items: center;
        padding: 8px 0;
    }
    
    .desktop-contact .fa-phone {
        color: #2ecc71;
        margin-right: 10px;
        font-size: 14px;
        width: 20px;
        text-align: center;
    }
    
    .desktop-contact strong {
        font-size: 13px;
        color: #2c3e50;
        margin-right: 6px;
    }
    
    .desktop-contact span span {
        font-size: 13px;
        color: #5a6c7d;
        font-weight: 500;
    }
}



/* ===== КОМПАКТНАЯ МОБИЛЬНАЯ КНОПКА С ЛЕВЫМ ВЫРАВНИВАНИЕМ ===== */

/* Мобильная версия */
@media (max-width: 768px) {
    .mobile-call-btn {
        width: 100% !important;
        height: 44px !important;
        padding: 10px 16px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        background: #2ecc71 !important;
        box-shadow: 0 2px 8px rgba(46, 204, 113, 0.25) !important;
        border: none !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
    
    /* Иконка телефона */
    .mobile-call-btn .phone-icon-wrapper {
        width: 32px !important;
        height: 32px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .mobile-call-btn .fa-phone-alt {
        font-size: 14px !important;
        color: white !important;
    }
    
    /* Текст кнопки */
    .mobile-call-btn span {
        font-weight: 600 !important;
        font-size: 14px !important;
        text-align: left !important;
        padding-left: 4px;
    }
    
    /* Стрелка */
    .mobile-call-btn .fa-chevron-right {
        font-size: 12px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        transition: transform 0.2s ease;
    }
    
    /* Активное состояние (нажатие) */
    .mobile-call-btn:active {
        transform: translateY(2px) scale(0.99) !important;
        background: #27ae60 !important;
        box-shadow: 0 1px 4px rgba(46, 204, 113, 0.2) !important;
    }
    
    .mobile-call-btn:active .phone-icon-wrapper {
        transform: scale(1.1);
        background: rgba(255, 255, 255, 0.3) !important;
    }
    
    .mobile-call-btn:active .fa-chevron-right {
        transform: translateX(3px);
    }
    
    /* Анимация иконки телефона */
    @keyframes phonePulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.1);
        }
    }
    
    .mobile-call-btn .fa-phone-alt {
        animation: phonePulse 2s ease-in-out infinite;
    }
    
    .mobile-call-btn:active .fa-phone-alt {
        animation: none;
    }
    
    /* Волновой эффект при нажатии */
    .mobile-call-btn {
        position: relative;
        overflow: hidden;
    }
    
    .mobile-call-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%, -50%);
        transform-origin: 50% 50%;
        z-index: 1;
    }
    
    .mobile-call-btn:active::after {
        animation: waveEffect 0.4s ease-out;
    }
    
    @keyframes waveEffect {
        0% {
            transform: scale(0, 0) translate(-50%, -50%);
            opacity: 0.6;
        }
        100% {
            transform: scale(30, 30) translate(-50%, -50%);
            opacity: 0;
        }
    }
    
    /* Плавное появление кнопки */
    .mobile-call-wrapper {
        animation: buttonSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes buttonSlideIn {
        from {
            opacity: 0;
            transform: translateX(-10px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Убираем стандартные стили */
    .mobile-call-btn {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        outline: none;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 380px) {
    .mobile-call-btn {
        height: 40px !important;
        padding: 9px 14px !important;
        font-size: 13px !important;
    }
    
    .mobile-call-btn .phone-icon-wrapper {
        width: 28px !important;
        height: 28px !important;
    }
    
    .mobile-call-btn .fa-phone-alt {
        font-size: 12px !important;
    }
    
    .mobile-call-btn span {
        font-size: 13px !important;
    }
}

/* Десктопная версия */
@media (min-width: 769px) {
    .desktop-contact {
        display: block !important;
    }
    
    .mobile-contact {
        display: none !important;
    }
    
    .desktop-contact > div {
        display: flex;
        align-items: center;
        padding: 8px 0;
        text-align: left;
    }
    
    .desktop-contact .fa-phone {
        color: #2ecc71;
        margin-right: 10px;
        font-size: 14px;
        width: 20px;
        text-align: center;
    }
    
    .desktop-contact strong {
        font-size: 13px;
        color: #2c3e50;
        margin-right: 6px;
        text-align: left;
    }
    
    .desktop-contact span span {
        font-size: 13px;
        color: #5a6c7d;
        font-weight: 500;
        text-align: left;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) and (max-width: 768px) {
    .mobile-call-btn {
        background: #2ecc71 !important;
        box-shadow: 0 2px 8px rgba(46, 204, 113, 0.35) !important;
    }
    
    .mobile-call-btn:active {
        background: #27ae60 !important;
        box-shadow: 0 1px 4px rgba(46, 204, 113, 0.25) !important;
    }
}






@media (max-width: 768px) {
    /* Переносим color-selector в map-header */
    .map-header {
        display: flex;
        flex-direction: column;
    }
    
    .selected-product-info {
        order: 1;
    }
    
    .color-selector {
        order: 2;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin-top: 10px;
        padding: 12px 15px;
        background: #f8f9fa;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        box-shadow: none;
        z-index: 5;
    }
    
    /* Карта занимает все оставшееся пространство */
    #map {
        flex: 1;
        position: relative;
        min-height: 0;
    }
    
    /* Убираем панель цвета изнизу контейнера */
    .map-container .color-selector:last-child {
        display: none;
    }
}