.header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    order: 2;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 10px;
}

/* Десктоп меню */
.desktop-menu {
    order: 3;
    position: relative;
}

.menu-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.icon-calendar,
.icon-search {
    font-size: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.02);
}

.icon-calendar:hover,
.icon-search:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

/* Бургер меню для ПК */
.burger-menu-pc {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-sizing: content-box;
}

.burger-menu-pc span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.burger-menu-pc.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.burger-menu-pc.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.burger-menu-pc.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Выпадающее меню */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 15px 0;
    min-width: 250px;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-left: 1px solid rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.5);
}

.dropdown-menu ul {
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.dropdown-menu li a i {
    width: 20px;
    color: #667eea;
}

.dropdown-menu li a:hover {
    background: rgba(102, 126, 234, 0.1);
    padding-left: 35px;
    color: #667eea;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Мобильное меню */
.mobile-burger {
    display: none;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 28px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    order: 1;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s;
}

.mobile-burger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mobile-burger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-burger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 86px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 99;
    border: 1px solid rgba(255,255,255,0.5);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
    font-weight: 500;
}

.mobile-menu li a i {
    width: 20px;
    color: #667eea;
}

.mobile-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu li a:hover {
    background: rgba(102, 126, 234, 0.1);
    padding-left: 30px;
    color: #667eea;
}

/* Поиск */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.search-overlay.active {
    display: flex;
}

.search-form {
    background: white;
    padding: 30px;
    border-radius: 30px;
    width: 90%;
    max-width: 600px;
    display: flex;
    gap: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s;
}

.search-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-form button {
    padding: 18px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.close-search {
    background: #ff4757 !important;
}

.close-search:hover {
    background: #ff6b81 !important;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-burger {
        display: flex;
    }
    
    .logo {
        order: 2;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        height: 40px;
    }
    
    .search-form {
        flex-direction: column;
        padding: 20px;
    }
    
    .search-form button {
        width: 100%;
    }
}

/* Индикатор уведомлений */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.icon-calendar,
.icon-search {
    position: relative;
}

/* Анимация для иконок */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.icon-calendar:active,
.icon-search:active {
    animation: pulse 0.3s;
}