:root {
    --primary-color: #c1a252;  /* Настоящий золотой цвет */
    --secondary-color: #0a192f;
    --accent-color: #C5A028;   /* Темный золотой */
    --text-color: #fff;
    --background-color: #0a192f;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --gold-gradient: linear-gradient(135deg, #ffd700, #ffc107);
    --dark-blue-gradient: linear-gradient(135deg, #0a192f, #172a45);
}

/* Запрещаем прокрутку на всем документе */
html {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Создаем прокручиваемый контейнер */
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
}

/* Основной контейнер с прокруткой */
#main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Фиксируем шапку */
.main-header {
    width: 100%;
    max-width: 1200px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    margin: 0 auto;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    animation: floatLogo 2s ease-in-out infinite;
}

.logo-text {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.logo-link:hover .logo-image {
    animation: none;
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
}

.logo-link:hover .logo-text {
    color: #0c0c0c;
}

/* Основная навигация */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
}

.nav-links a.active {
    background: var(--gold-gradient);
    color: var(--secondary-color);
}

/* Корзина */
.cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    cursor: pointer;
}

.cart-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon-image {
    width: 30px;
    height: 30px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #D4AF37;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Стили для кнопки-гамбургера */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    padding: 5px 10px;
    margin-right: 10px;
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: var(--primary-color);
}

/* Оборачиваем ссылки, чтобы управлять ими */
.nav-links-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Стили для выпадающего меню */
.dropdown-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(145deg, rgba(13, 28, 61, 0.98), rgba(20, 40, 80, 0.98));
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    transition: right 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.dropdown-menu.show {
    right: 0;
}

.dropdown-item {
    display: block;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    padding-left: 30px;
}

/* Затемнение фона при открытом меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Кнопка закрытия меню */
.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
}

/* Стили для секций меню */
.menu-section {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transition: transform 0.3s ease;
    background: inherit;
}

.main-menu {
    left: 0;
}

/* Стили для футера */
.site-footer {
    background: var(--dark-blue-gradient);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 40px 0 20px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold-gradient);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-link img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(83%) sepia(41%) saturate(552%) hue-rotate(356deg) brightness(103%) contrast(101%);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold-gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.social-link:hover img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(25%) saturate(1106%) hue-rotate(182deg) brightness(97%) contrast(96%);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Анимация для логотипа */
@keyframes floatLogo {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        z-index: 99;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .site-footer {
        padding: 30px 0 15px;
    }
}

/* Анимация для счетчика корзины */
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-count.bump {
    animation: bump 0.3s ease;
}