/* 1. ОБЩИЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ */
:root {
    --color-black: #0a0a0a;             /* Глубокий черный (камень) */
    --color-black-light: #1a1a1a;       /* Цвет фона страницы */
    --color-gold: #d4af37;              /* Основное золото */
    --color-gold-light: #fcf6ba;        /* Светлое золото для бликов */
    --color-white: #ffffff;
    --gold-gradient: linear-gradient(90deg, #b38728 0%, #fcf6ba 50%, #b38728 100%);
    --header-height: 70px;
    --sidebar-width: 300px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-black-light);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. ШАПКА (HEADER) — ВСЕГДА СВЕРХУ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-black);
    border-bottom: 1px solid var(--color-gold);
    z-index: 3000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 3. ЛЕВАЯ ЧАСТЬ (БУРГЕР + ЛОГО) */
.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.burger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    margin-right: 20px;
}

.burger-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-gold);
    transition: var(--transition);
}

/* Анимация бургера в крестик */
.burger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.logo-text {
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1.5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. ЦЕНТРАЛЬНАЯ ЧАСТЬ (GEOPICKER) */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.geo-picker {
    position: relative;
    user-select: none;
}

.geo-current {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.geo-current:hover {
    background: rgba(212, 175, 55, 0.1);
}

.icon-pin { color: var(--color-gold); }
.current-city { font-weight: 500; font-size: 15px; }
.icon-chevron { transition: var(--transition); }

.geo-picker.open .icon-chevron { transform: rotate(180deg); }

.city-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-black);
    border: 1px solid var(--color-gold);
    list-style: none;
    width: 180px;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.city-dropdown li {
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.city-dropdown li:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    font-weight: bold;
}

.sidebar-location{
    display: none;
}

.contacts-location{
    display: none;
}

@media (max-width: 1024px) {
    .sidebar-location{
        display: block;
        width: 160px;
    }

    .contacts-location{
        display: flex;
        justify-content: center;
    }
    
    .mobile-picker{
        width: 100%;
        margin-bottom: 25px;
    }
    
    .mobile-picker .city-dropdown {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
        display: none; /* Управляется через JS */
    }
    
    .mobile-picker .geo-current{
        display: flex;
        justify-content: space-between;
        background: rgba(212, 175, 55, 0.1);
        padding: 10px;
    }
}

/* 5. ПРАВАЯ ЧАСТЬ (КОНТАКТЫ) */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.operator {
    font-size: 9px;
    font-weight: 900;
    color: var(--color-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 2px 4px;
    border-radius: 2px;
}

.number {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.number:hover { color: var(--color-gold); }

/* 6. БОКОВОЕ МЕНЮ (SIDEBAR) */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: -300px;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background-color: var(--color-black);
    border-right: 1px solid var(--color-gold);
    z-index: 2000;
    transition: var(--transition);
    padding: 40px 30px;
}

.sidebar.active {
    left: 0 !important;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    color: var(--color-gold);
    transform: translateX(10px);
}

/* 7. ОСНОВНОЙ КОНТЕНТ */
.main-content {
    margin-top: var(--header-height);
    margin-left: 0;
    transition: var(--transition);
    min-height: calc(100vh - var(--header-height));
    position: relative;
    z-index: 1;
}



/* 9. HERO BLOCK */
.hero {
    position: relative;
    min-height: 85vh; /* Уменьшили высоту, так как кнопок больше нет */
    display: flex;
    align-items: center;
    justify-content: center; /* Центровка по горизонтали */
    background: url('./src/hero-image.png') no-repeat center center;
    background-size: cover;
    text-align: center; /* Текст по центру */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Градиент теперь радиальный от центра или равномерный затемняющий */
    background: radial-gradient(circle, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.9) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Выравнивание элементов внутри колонки */
}

.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 35px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Плашка рассрочки */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-gold);
    border-radius: 50px;
    color: var(--color-gold-light);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.hero-badge:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

/* Адаптация Hero */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* Сдвиг контента на ПК */
@media (min-width: 1025px) {
    .main-content.active {
        margin-left: var(--sidebar-width);
    }
}

/* 8. АДАПТИВНОСТЬ */
@media (max-width: 1024px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    .header-center {
        display: none; /* Прячем город из центра на планшетах, его можно дублировать в меню */
    }
    .main-content.active {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .header-contacts {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }
    .logo-text { font-size: 20px; }
}





main section {
    padding: 70px 0px 100px 0; /* Большие отступы для премиального вида */
    position: relative;
}

main section .container {
    display: block;
    width: 100%;
}

/* Шапка секции */
main section .section-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
}

main section .section-title {
    font-size: clamp(32px, 5vw, 48px);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 3px;
    color: var(--color-white);
}

main section .section-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

main section .section-underline {
    width: 120px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: 2px;
    position: relative;
}





/* 10. SERVICES SECTION */
.services {
    background-color: var(--color-black-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 в ряд как в услугах */
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-black);
    padding: 40px 30px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 4px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Выделение основной услуги (Изготовление) */
.service-card.highlight {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: var(--color-gold);
}

.service-card h3 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1; /* Чтобы ценники были на одном уровне */
}

.service-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gold);
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    width: 100%;
}

/* Мобильная адаптация */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 */
    }
}

@media (max-width: 600px) {
    .services-grid {
        gap: 20px;
        grid-template-columns: 1fr; /* 1x4 */
    }
    .services-card {
        padding: 30px 20px;
    }
}



/* 11. CATALOG SECTION */
.catalog {
    background-color: var(--color-black); /* Чуть темнее, чем услуги */
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 в ряд как в услугах */
    gap: 20px;
}

.catalog-card {
    position: relative;
    height: 400px; /* Фиксированная высота для стройности */
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Текст внизу */
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: var(--transition);
}

.catalog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 10%, rgba(10, 10, 10, 0.2) 60%);
    transition: var(--transition);
}

.catalog-info {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}

.catalog-info h3 {
    font-size: 22px;
    color: var(--color-white);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.catalog-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.catalog-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

/* Hover эффекты */
.catalog-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.catalog-card:hover .catalog-image {
    transform: scale(1.1); /* Зумим фото */
}

.catalog-card:hover .catalog-overlay {
    background: linear-gradient(to top, rgba(179, 135, 40, 0.4) 0%, rgba(10, 10, 10, 0.3) 100%);
}

.catalog-card:hover .catalog-link {
    border-bottom: 1px solid var(--color-gold);
}

.catalog-actions {
    display: flex;
    justify-content: center;
}

.catalog-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    margin-top: 25px;
}

.catalog-more-link svg {
    transition: transform 0.3s ease;
}

.catalog-more-link:hover {
    color: var(--color-gold-light);
    border-bottom-color: var(--color-gold);
}

.catalog-more-link:hover svg {
    transform: translateX(8px);
}

/* Адаптация */
@media (max-width: 1200px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 */
    }
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr; /* 1x4 */
    }
    .catalog-card {
        height: 300px;
    }
}



/* 12. PORTFOLIO SECTION */

.section-portfolio {
    background-color: var(--color-black-light);
    content-visibility: auto; /* Ускоряет первоначальную загрузку страницы */
    contain-intrinsic-size: 1000px; 
}

/* Контейнер для скрытия лишних рядов */
.portfolio-overflow-container {
    position: relative; /* ДОБАВЛЕНО для корректного ::after */
    max-height: 800px; 
    overflow: hidden;
    margin-bottom: 30px;
    /* ДОБАВЛЕНЫ отступы, чтобы overflow не резал рамки при наведении */
    padding: 0px 5px 0 5px; 
}

/* Эффект постепенного исчезновения снизу */
.portfolio-overflow-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Немного увеличил для мягкости */
    /* Использовал переменную фона для чистого перехода */
    background: linear-gradient(to top, var(--color-black-light) 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

.portfolio-actions {
    display: flex;
    justify-content: center;
}

.portfolio-more-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.portfolio-more-link svg {
    transition: transform 0.3s ease;
}

.portfolio-more-link:hover {
    color: var(--color-gold-light);
    border-bottom-color: var(--color-gold);
}

.portfolio-more-link:hover svg {
    transform: translateX(8px);
}

/* Сетка */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    padding-top: 5px;
}

.portfolio-item {
    position: relative;
    height: 180px;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    z-index: 1; /* Базовый слой */
}

.portfolio-zoom-icon {
    position: absolute;
    inset: 0; 
    background: rgba(10, 10, 10, 0.6); 
    color: var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 4; /* Поверх фото, но под градиентом если нужно */
}

/* Hover эффекты */
.portfolio-item:hover {
    border-color: var(--color-gold);
    transform: translateY(-5px); /* Чуть увеличил подъем */
    z-index: 10; /* ДОБАВЛЕНО: теперь карточка поверх всех */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Контейнер внутри ссылки */
.portfolio-image-container {
    position: relative;
    height: 100%; 
    width: 100%;
    background: #000;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Слой размытия */
.portfolio-img-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px) brightness(0.4);
    transform: scale(1.1); /* Убираем белые края от блюра */
    z-index: 1;
}

/* Основное фото */
.portfolio-img-main {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Картинка видна целиком */
    transition: transform 0.4s ease;
}

/* Оверлей */
.portfolio-overlay {
    position: absolute;
    inset: 0; /* Растягиваем на всю карточку */
    background: rgba(10, 10, 10, 0); /* Затемнение */
    color: var(--color-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Скрыт по умолчанию */
    transition: var(--transition);
    z-index: 5; /* Выше всех картинок */
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Если внутри есть иконка, можно добавить ей анимацию */
.portfolio-zoom-icon svg {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img-main {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-zoom-icon {
    opacity: 1;
}

/* Адаптация */
@media (max-width: 1200px) {
    .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
    .portfolio-overflow-container { max-height: 800px; } /* Пересчитай под 4 колонки если нужно */
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .portfolio-item { height: 150px; }
    .portfolio-overflow-container { max-height: 650px; }
}

@media (max-width: 480px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item { height: 130px; }
    .portfolio-overflow-container { max-height: 580px; }
}

/* ==========================================================================
   СТИЛИ LIGHTBOX (ПРОСМОТР ВО ВЕСЬ ЭКРАН)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    display: none; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92); /* Чуть уменьшил прозрачность для глубины */
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 5001;
    width: auto;
    max-width: 90%;
    max-height: 90vh; /* Используем vh для точности */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Центрируем содержимое */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    /* ГЛАВНОЕ ИСПРАВЛЕНИЕ: оставляем место под подпись */
    max-height: calc(90vh - 60px); 
    border-radius: 4px;
    border: 2px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    /* Убираем фон или делаем его фиксированным, чтобы не "съедал" место */
    padding: 5px 15px;
    width: 100%;
    min-height: 30px; 
}

/* Кнопка закрытия — теперь она будет видна всегда */
.lightbox-close {
    position: fixed; /* Изменено на fixed, чтобы не зависеть от контейнера */
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 60px; /* Увеличено для удобства */
    line-height: 1;
    cursor: pointer;
    z-index: 5005; /* Поверх всего */
    opacity: 0.8;
    transition: 0.3s;
    padding: 10px;
}

.lightbox-close:hover {
    color: var(--color-gold);
    opacity: 1;
    transform: scale(1.1);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    .lightbox-content img {
        max-height: calc(85vh - 80px);
    }
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 50px;
    }
}




/* 13. CONTACTS SECTION */
.contacts {
    background-color: var(--color-black-light); /* Темнее, чем портфолио */
}

.section-contacts {
    background-color: var(--color-black); /* Темнее, чем портфолио */
}

.contacts-info{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Карта чуть шире текста */
    gap: 50px;
    align-items: center;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-gold);
    flex-shrink: 0;
}

.contact-text h4 {
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-text p, .contact-text a {
    color: var(--color-white);
    font-size: 16px;
    text-decoration: none;
    display: block;
    line-height: 1.6;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--color-gold);
}

/* Соцсети */
.contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    align-items: center; 
    flex-wrap: wrap; 
}

.social-btn {
    width: 50px; 
    height: auto; 
    aspect-ratio: 1 / 1;
    flex-shrink: 0; 

    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    padding: 0; 
}

.social-btn svg {
    width: 24px; 
    height: 24px;
    object-fit: contain; 
    display: block; 
}

/* Цвета брендов (оставляем без изменений) */
.viber { background-color: #7360f2; }
.telegram { background-color: #0088cc; }
.whatsapp { background-color: #25d366; }

/* Эффекты при наведении (оставляем) */
.social-btn:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.viber:hover { box-shadow: 0 5px 15px rgba(115, 96, 242, 0.4); }
.telegram:hover { box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4); }
.whatsapp:hover { box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }

/* Карта */
.contacts-map {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    height: 450px;
}

.contacts-map iframe {
    display: block; 
    width: 100%;
    height: 100%;
    border: 0;
}

/* Адаптация */
@media (max-width: 992px) {
    .contacts-wrapper {
        grid-template-columns: 1fr; /* В одну колонку */
        gap: 30px;
    }
    .contacts-map {
        height: 350px;
    }
}





/* 14. FOOTER SECTION */
.main-footer {
    background-color: #050505; /* Самый темный оттенок для финала */
    padding: 40px 0 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.main-footer .container {
    display: block; /* Переопределяем flex контейнера для сетки */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

/* Блок описания */
.footer-about .logo-text {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    max-width: 350px;
    line-height: 1.8;
}

/* Заголовки в футере */
.main-footer h4 {
    color: var(--color-gold);
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

/* Ссылки навигации */
.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 6px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

/* Контактный блок */
.footer-phone {
    display: block;
    color: var(--color-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-phone:hover {
    color: var(--color-gold);
}

.footer-contacts p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 15px;
}

/* Нижняя панель */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.developer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.developer a:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
}

/* Адаптация футера */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-description {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
















/* 16. CATALOG SECTION */
.catalog-page {
    padding: 80px 0;
    background-color: var(--color-black-light);
}

/* Фильтры */
.catalog-page-filter {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 50px;

    padding: 10px 5px 20px 5px;
    overflow-x: auto;
    flex-wrap: nowrap;

    /* Скрываем стандартную полосу прокрутки в разных браузерах */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
}

/* Скрываем полосу прокрутки для Chrome, Safari и Opera */
.catalog-page-filter::-webkit-scrollbar {
    display: none;
}

.catalog-page .filter-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-white);
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

 .catalog-page .filter-btn.active, .catalog-page .filter-btn:hover {
    background: var(--color-gold);
    color: var(--color-black);
    border-color: var(--color-gold);
}

/* Сетка */
.catalog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Карточка товара */
.catalog-page .product-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.catalog-page .product-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.catalog-page .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-gold);
    color: var(--color-black);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
    border-radius: 2px;
}

.catalog-page .product-image {
    position: relative;
    height: 320px;
    background: #1a1a1a;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px) brightness(0.4);
    transform: scale(1.1); 
    z-index: 1;
}

.img-main {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Эффект при наведении */
.product-card:hover .img-main {
    transform: scale(1.05);
}

.product-card:hover .img-blur {
    filter: blur(10px) brightness(0.5);
}

/*
.catalog-page .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.catalog-page .product-card:hover .product-overlay {
    opacity: 1;
}
*/

.catalog-page .product-info {
    padding: 20px;
    text-align: center;
}

.catalog-page .product-title {
    color: var(--color-white);
    font-size: 18px;
    margin-bottom: 10px;
}

.catalog-page .product-desc {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 15px;
}

.catalog-page .product-price {
    color: var(--color-gold);
    font-size: 20px;
    font-weight: bold;
}

.catalog-page .btn-more {
    background: var(--color-gold);
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 12px;
}

@media (min-width: 650px) {
    .catalog-page-filter {
        justify-content: center;
        overflow-x: visible; /* Отключаем скролл там, где он не нужен */
    }
}