
.hdr-top-bar {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 50%, #0f2137 100%) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    padding: 0.55rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(52, 152, 219, 0.25) !important;
}

.hdr-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hdr-top-bar__inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}

.hdr-top-bar__address {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease, color 0.2s ease !important;
}

.hdr-top-bar__address:hover {
    color: #ffffff !important;
    opacity: 0.88 !important;
    text-decoration: underline !important;
}

.hdr-top-bar__contacts {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.hdr-top-bar__contacts a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.hdr-top-bar__contacts a:hover {
    color: #3498db !important;
}

.hdr-top-bar__phone {
    font-weight: 700 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
}

.hdr-top-bar__callback {
    padding: 0.25rem 1rem !important;
    border: 1px solid rgba(52, 152, 219, 0.6) !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    color: #ffffff !important;
    background: rgba(52, 152, 219, 0.15) !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.3px !important;
}

.hdr-top-bar__callback:hover {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.4) !important;
}

.hdr-top-bar__social {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    transition: opacity 0.2s !important;
}

.hdr-top-bar__social:hover {
    opacity: 0.8 !important;
}

.hdr-social-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.hdr-header {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(52, 152, 219, 0.1) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999999 !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.3s ease !important;
}

.hdr-header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.hdr-header__left {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}

.hdr-burger {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #1a2b3c !important;
    display: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
}

.hdr-logo {
    width: 130px !important;
    height: 44px !important;
    background-image: url('../icons/logo.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center left !important;
    transition: opacity 0.2s ease !important;
    flex-shrink: 0 !important;
}

.hdr-logo:hover {
    opacity: 0.85 !important;
}

.hdr-header__nav-text {
    font-weight: 500 !important;
    color: #1a2b3c !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
}

.hdr-header__right {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.hdr-btn {
    padding: 0.5rem 1rem !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
    background: transparent !important;
    font-family: inherit !important;
    line-height: normal !important;
    text-transform: none !important;
}

.hdr-btn--primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35) !important;
    position: relative !important;
    overflow: hidden !important;
}

.hdr-btn--primary::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent) !important;
    transition: left 0.5s !important;
}

.hdr-btn--primary:hover::after {
    left: 100% !important;
}

.hdr-btn--primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6f9f 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.45) !important;
}

.hdr-btn--outline {
    border: 1.5px solid #3498db !important;
    color: #3498db !important;
    background: transparent !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.hdr-btn--outline:hover {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

.hdr-btn--icon {
    color: #1a2b3c !important;
    font-size: 1.2rem !important;
    padding: 0.5rem !important;
}

.hdr-btn--icon:hover {
    color: #3498db !important;
}

.hdr-btn--dropdown {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.hdr-dropdown {
    position: relative !important;
    display: inline-block !important;
}

.hdr-dropdown-content {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    margin-top: 0 !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    min-width: 240px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(52, 152, 219, 0.1) !important;
    border-radius: 14px !important;
    z-index: 1000000 !important;
    padding: 0.6rem 0 !important;
    margin: 0 !important;
    list-style: none !important;
    animation: dropdownFadeIn 0.2s ease !important;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hdr-dropdown-content--wide {
    min-width: 250px !important;
}

.hdr-dropdown:hover .hdr-dropdown-content {
    display: block !important;
}

.hdr-dropdown-content a {
    display: block !important;
    padding: 0.65rem 1.4rem !important;
    color: #1a2b3c !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-size: 0.9rem !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
}

.hdr-dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.08)) !important;
    color: #2980b9 !important;
    padding-left: 1.8rem !important;
}

.hdr-fas {
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

@media (max-width: 1024px) {
    .hdr-header__nav-text {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hdr-header__right .hdr-btn--outline {
        display: none !important;
    }
    
    .hdr-burger {
        display: block !important;
    }
    
    .hdr-header {
        padding: 1rem 0 !important;
    }
}

@media (max-width: 480px) {
    .hdr-top-bar__contacts {
        gap: 0.8rem !important;
        justify-content: center !important;
    }
    
    .hdr-top-bar__inner {
        flex-direction: column !important;
        text-align: center !important;
    }
}

/* ── Поисковая панель ── */
.hdr-search-panel {
    background: #fff;
    border-bottom: 2px solid var(--color-primary, #2b7de9);
    box-shadow: 0 4px 18px rgba(43, 125, 233, 0.12);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.hdr-search-panel--open {
    max-height: 80px;
    padding: 0.7rem 0;
}

.hdr-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--color-primary, #2b7de9);
    border-radius: 10px;
    overflow: hidden;
    max-width: 700px;
}

.hdr-search-input {
    flex: 1;
    padding: 0.65rem 1rem;
    font-size: 1rem;
    border: none;
    outline: none;
    color: #1a2540;
    background: #fff;
}

.hdr-search-submit {
    padding: 0.65rem 1.1rem;
    background: var(--color-primary, #2b7de9);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.hdr-search-submit:hover {
    background: #1a5dbf;
}

.hdr-search-close {
    padding: 0.65rem 1rem;
    background: #f4f6fb;
    color: #555;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.hdr-search-close:hover {
    background: #e8eef8;
    color: #1a2540;
}