/* ========== HEADER.CSS - ИСПРАВЛЕННАЯ ВЕРСИЯ ========== */

/* ===== ФИКСИРОВАННАЯ ШАПКА ===== */
.main-page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
    border-bottom: 3px solid #F9AA33;
    padding: 8px 40px 0;
    margin: 0;
}

/* Анимация появления */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Добавляем отступ для body, чтобы контент не прятался под шапку */
body {
    /* padding-top: 90px; */
    margin: 0;
    background: #f8f9fa;
}

/* Убираем лишний отступ у первого экрана */
.first-screen {
    margin-top: 0;
    padding-top: 20px;
}

.header-top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    margin: 0;
    padding: 0;
}

/* ===== ЛЕВЫЙ БЛОК - ЛОГОТИП И МЕССЕНДЖЕРЫ ===== */
.header-left-group {
    display: flex;
    align-items: stretch;
    gap: 5px;
    height: 65px;
    margin-right: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    height: 65px;
    flex-shrink: 0;
}

.logo-img {
    max-height: 55px;
    width: auto;
    display: block;
}

/* ЛОГОТИП ПРОИЗВОДИТЕЛЯ FOROOM */
.header-manufacturer-logo {
    display: flex;
    align-items: center;
    height: 65px;
    margin-right: 10px;
    margin-left: 5px;
    padding: 0 5px;
    border-right: 1px solid #E0E6ED;
}

.manufacturer-logo-img {
    max-height: 40px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.manufacturer-logo-img:hover {
    opacity: 1;
}

.messenger-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 65px;
    padding: 0;
    margin: 0;
}

.messenger-label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #4A6572;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
    margin: 0 0 2px 0;
    padding: 0;
    text-align: center;
}

.messenger-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
    padding: 0;
}

.messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.messenger-icon svg {
    width: 25px;
    height: 25px;
    display: block;
    transition: all 0.3s ease;
}

/* Эффекты при наведении */
.messenger-icon:hover {
    transform: scale(1.15) translateY(-3px);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
}

.telegram-icon:hover svg path {
    fill: #0088CC;
    filter: drop-shadow(0 0 10px rgba(0, 136, 204, 0.8));
}

.max-icon:hover svg path {
    fill: #0066FF;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.8));
}

/* Email иконка */
.email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.email-icon img {
    width: 25px;
    height: 25px;
    display: block;
    transition: all 0.3s ease;
}

.email-icon:hover {
    transform: scale(1.15) translateY(-3px);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
}

.email-icon:hover img {
    filter: brightness(1.2);
}

/* Подсказки */
.messenger-icon[title]:hover::after,
.email-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #344955;
    color: white;
    font-size: 11px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: fadeInUp 0.2s ease;
}

.messenger-icon[title]:hover::before,
.email-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #344955 transparent;
    z-index: 1000;
    animation: fadeInUp 0.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Нижняя надпись мессенджеров */
.messenger-benefit {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #4A6572;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.messenger-benefit::before {
    content: "📸";
    font-size: 11px;
    margin-right: 4px;
}

/* ===== ТЕЛЕФОН И КНОПКА ЗВОНОК ===== */
.header-phone-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone-only {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 65px;
    white-space: nowrap;
    margin-left: 20px;
}

.phone-call-text {
    font-size: 11px;
    color: #4A6572;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.phone-link {
    font-size: 18px;
    color: #F9AA33;
    text-decoration: none;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
}

/* Кнопка "Заказать звонок" */
.callback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F9AA33, #ffb347);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(249, 170, 51, 0.3);
    white-space: nowrap;
}

.callback-btn:hover {
    background: linear-gradient(135deg, #e6991f, #F9AA33);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(249, 170, 51, 0.4);
}

.callback-btn i {
    font-size: 16px;
}

.header-bottom-line {
    border-top: 1px solid #E0E6ED;
    margin-top: 0;
    padding-top: 2px;
    margin-bottom: 0;
}

/* ===== ОСНОВНОЕ МЕНЮ ===== */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: #344955;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #F9AA33;
}

/* ===== ВЫПАДАЮЩИЕ МЕНЮ ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #E0E6ED;
    padding: 12px 0;
    z-index: 1000;
    min-width: 240px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #344955;
    text-decoration: none;
    padding: 10px 24px;
    display: block;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    line-height: 1.4;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #F9AA33;
    border-left-color: #F9AA33;
    padding-left: 28px;
}

/* Каталог - ширина 320px */
.nav-list li:first-child .dropdown-menu {
    width: 320px;
    min-width: 320px;
}

.nav-list li:first-child .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.5;
    padding: 12px 24px;
}

/* Госзакупки - ширина 300px */
.nav-list li:nth-child(2) .dropdown-menu {
    width: 300px;
    min-width: 300px;
}

.nav-list li:nth-child(2) .dropdown-item {
    white-space: nowrap;
}

/* Стрелки */
.dropdown-arrow {
    font-size: 12px;
    margin-left: 5px;
    color: #4A6572;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #F9AA33;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 992px) {
    .main-page-header {
        padding: 8px 20px 0;
        position: fixed;
    }
    
    body {
        padding-top: 80px;
    }
    
    .header-top-line {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .header-left-group {
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    
    .header-manufacturer-logo {
        height: auto;
        margin: 5px 0;
        border-right: none;
        border-bottom: 1px solid #E0E6ED;
        padding: 5px 0;
        width: 100%;
        justify-content: center;
    }
    
    .manufacturer-logo-img {
        max-height: 35px;
    }
    
    .messenger-block {
        height: auto;
        padding: 5px 0;
        width: 100%;
        align-items: center;
    }
    
    .messenger-benefit {
        margin-top: 0;
    }
    
    .header-phone-section {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .header-phone-only {
        margin-left: 0;
        margin-top: 10px;
        align-items: center;
    }
    
    .callback-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
}
/* УСИЛЕНИЕ ФИКСАЦИИ */
.main-page-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    transform: translateZ(0); /* Для ускорения на мобильных */
    -webkit-transform: translateZ(0);
}

/* Гарантируем отступ для контента */
body {
    padding-top: 90px !important;
    margin: 0 !important;
}

