/* Стили для хэдера - отдельный компонент */

/* Основной контейнер хэдера */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo__accent {
    color: #e74c3c;
}

/* Навигация */
.nav {
    display: flex;
}

.nav__list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e74c3c;
    transition: all 0.3s ease;
}

.nav__link:hover {
    color: #e74c3c;
}

.nav__link:hover::after {
    width: 100%;
}

/* Экшены хэдера (кнопки) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header__phone:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

.header__phone i {
    font-size: 1.1rem;
}

/* Мобильные контакты (скрыты на десктопе) */
.header__mobile-phone {
    display: none;
}

.header__mobile-contacts {
    display: none;
    align-items: center;
    gap: 12px;
}

/* Бургер меню */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
    box-shadow: none;
    border: none;
    outline: none;
}

.burger:hover span {
    background-color: #e74c3c;
    box-shadow: none;
}

.burger:focus {
    outline: none;
    box-shadow: none;
}

.burger:focus-visible {
    outline: 2px solid transparent;
    box-shadow: none;
}

.burger--active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #e74c3c;
    box-shadow: none;
}

.burger--active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
    box-shadow: none;
}

.burger--active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #e74c3c;
    box-shadow: none;
}

/* Оверлей для мобильного меню */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

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

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .header__content {
        padding: 12px 0;
    }
    
    .nav__list {
        gap: 20px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .header__content {
        padding: 12px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Добавляем стили для нового блока с иконками */
    .header__mobile-group {
        display: flex;
        align-items: center;
        gap: 0; /* Устанавливаем отступ между иконками, 0 - вплотную */
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #ffffff;
        backdrop-filter: blur(10px);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav--active {
        left: 0;
        background-color: #ffffff;
    }
    
    .nav__list {
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
    }
    
    .nav__link {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: #000000;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }
    
    .nav__link:last-child {
        border-bottom: none;
    }
    
    .nav__link:hover {
        color: #e74c3c;
        padding-left: 10px;
    }
    
    .burger {
        display: flex;
        position: relative;
        z-index: 1002;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        outline: none;
        padding: 0;
        margin: 0;
    }
    
    .burger--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: #e74c3c;
    }
    
    .burger--active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger--active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
        background-color: #e74c3c;
    }
    
    .header__actions {
        display: none;
    }
    
    .header__mobile-contacts {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .header__mobile-contact {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        color: #2c3e50;
        transition: all 0.3s ease;
        font-weight: 900;
        text-decoration: none;
    }
    
    .header__mobile-contact:hover {
        color: #e74c3c;
    }
    
    .header__mobile-contact i {
        font-size: 1.3rem;
        font-weight: 900;
    }
}

/* Адаптивность для маленьких мобильных устройств */
@media (max-width: 480px) {
    .header__content {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav {
        width: 85%;
    }
    
    .nav__list {
        padding: 70px 20px 20px;
    }
    
    .nav__link {
        font-size: 1rem;
    }
}

/* Дополнительные стили для улучшения UX */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.header.scrolled .logo {
    font-size: 1.4rem;
}

.header.scrolled .header__content {
    padding: 10px 0;
}

/* Анимации для появления элементов */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: slideDown 0.5s ease-out;
}

/* Стили для хлебных крошек (если используются) */
.breadcrumbs {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs__item:not(:last-child)::after {
    content: '/';
    color: #6c757d;
}

.breadcrumbs__link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs__link:hover {
    color: #e74c3c;
}

.breadcrumbs__current {
    color: #2c3e50;
    font-weight: 500;
}