/* PC version */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center; /* Добавляем выравнивание по центру */
}

/* Стили для обычных ссылок */
.nav-links > a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links > a:hover {
    color: #0066cc;
}

.nav-links > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s;
}

.nav-links > a:hover::after {
    width: 100%;
}

/* Стили для выпадающего меню - должно быть inline-block */
.nav-item.dropdown {
    position: relative;
    display: inline-block; /* Важно: inline-block вместо block */
    height: auto; /* Убираем фиксированную высоту */
}

.nav-item.dropdown .nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
    display: inline-block;
    white-space: nowrap;
}

.nav-item.dropdown .nav-link:hover {
    color: #0066cc;
}

.nav-item.dropdown .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s;
}

.nav-item.dropdown .nav-link:hover::after {
    width: 100%;
}

/* Стрелка для выпадающего меню */
.nav-item.dropdown .nav-link::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .nav-link::before {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

/* Minimal Mobile Navbar */
@media (max-width: 768px) {
    .navbar { flex-direction: column; }
    .nav-links { flex-direction: column;  }
    .nav-links a { display: block; padding: 15px; font-size: 18px; }
    .dropdown-content { display: none; }
    .dropdown-content.mobile-show { display: block; }

    .nav-links > a {
        border-bottom: 3px solid #0066cc !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 15px 20px !important;
    }

    /* Кнопка выпадающего меню с синей границей */
    .nav-item.dropdown .nav-link {
	font-size: 18px;
        border-bottom: 3px solid #0066cc !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 15px 20px !important;
    }

    /* Пункты выпадающего меню с синей границей */
    .dropdown-content a {
        border-bottom: 2px solid #0066cc !important;
        background-color: #ffffff !important;
        margin: 0 !important;
        padding: 12px 20px 12px 30px !important;
    }

    /* Убираем стандартные границы если есть */
    .nav-links > a,
    .nav-item.dropdown .nav-link,
    .dropdown-content a {
        border-left: none !important;
    }}