header {
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 60px;
}

.logo {
    height: 50px;
    margin-right: 20px;
}

.header-content {
    flex-grow: 1;
    text-align: center;
    margin: 0 20px;
}

.header-content h1 {
    margin: 0;
    font-size: 24px;
}

.header-content p {
    margin: 0;
    font-size: 14px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-icon {
    font-size: 24px;
    text-decoration: none;
    color: white;
    padding: 5px;
}

.profile-icon:hover {
    color: #ecf0f1;
}

button {
    padding: 5px 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #c0392b;
}

.dropdown-nav {
    width: 100%;
    background-color: #34495e;
}

.dropdown-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.dropdown-nav ul li {
    position: relative;
    margin: 0 15px;
}

.dropdown-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.dropdown-nav ul li:hover > a {
    background-color: #465c71;
}

/* Уточняем селектор для избежания конфликтов */
.dropdown-nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-nav .dropdown:hover .dropdown-content {
    display: block;
}

/* Аналогично для подменю */
.dropdown-nav .sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #34495e;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-nav .sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.dropdown-nav ul li.active > a {
    background-color: #e74c3c;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 70%;
    max-width: 500px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}