/* --- Шапка сайта (Header) --- */
.header {
    background: var(--color-bg-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header__logo img {
    max-height: 60px;
    width: auto;
}

.header__logo-1c img {
    max-height: 40px;
    width: auto;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .header__logo img {
        max-height: 40px;
    }
    .header__logo-1c img {
        max-height: 28px;
        margin-left: 10px;
    }
}

.nav__list {
    display: flex;
    gap: 20px;
}

.nav__link {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-dark);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary);
    text-shadow: 0 2px 4px rgba(168, 132, 20, 0.3);
}

.header__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__contacts {
    text-align: right;
}

.header__phone {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Кнопка гамбургера */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 11px 7px;
    box-sizing: content-box;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: var(--z-mobile-toggle);
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-only { display: none; }

/* Адаптивность меню */
@media (max-width: 992px) {
    .header__right {
        margin-left: auto;
        gap: 12px;
        position: relative;
        z-index: var(--z-header-top);
    }
    .header__contacts {
        flex-shrink: 0;
    }
    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }
    .desktop-only { display: none; }
    .mobile-only { 
        display: block; 
        margin-top: 20px; 
        text-align: center; 
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-light);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 40px;
        transition: right 0.4s ease;
        z-index: var(--z-overlay);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .nav.is-active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .nav__link {
        display: block;
        padding: 10px 15px;
        font-size: 18px;
    }

    .mobile-menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* --- Контакты и Футер --- */
.footer {
    background-color: var(--color-text-dark);
    color: var(--color-bg-light);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer a {
    color: var(--color-primary);
}

.footer a:hover {
    color: var(--color-bg-light);
}