/* Стили для header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

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

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu a .material-icons {
    font-size: 20px;
}

.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

.mobile-contacts {
    display: none;
}

.contacts-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-link .material-icons {
    font-size: 20px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle .material-icons {
    font-size: 28px;
}

.mobile-close-btn {
    display: none;
}

@media (max-width: 968px) {
    .header {
        position: relative;
        z-index: auto;
    }

    .header-content {
        flex-wrap: nowrap;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    }

    nav.active {
        left: 0;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 5rem 0 0;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 1.25rem 2rem;
        border-radius: 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .nav-menu a .material-icons {
        font-size: 24px;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 10000;
    }

    .contacts-section {
        display: none;
    }

    .mobile-contacts {
        display: block;
        width: 100%;
        padding: 2rem;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
        margin-top: 1rem;
    }

    .mobile-contacts a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: white;
        text-decoration: none;
        padding: 1rem 0;
        font-size: 1rem;
        transition: opacity 0.2s;
    }

    .mobile-contacts a:hover {
        opacity: 0.8;
    }

    .mobile-contacts .material-icons {
        font-size: 24px;
    }

    .logo-image {
        height: 40px;
    }

    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .mobile-close-btn .material-icons {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .contact-link span:not(.material-icons) {
        display: none;
    }

    .contacts-section {
        gap: 1rem;
    }
}
