/* ============================================ */
/* ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ */
/* ============================================ */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #d4eaff;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка */
.header {
    background-color: #ffffffcc;
    backdrop-filter: blur(2px);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 8px rgba(0, 30, 60, 0.08);
    border-bottom: 1px solid #b0d4f0;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.left-group {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;  /* Обрезает содержимое по границам */
    border-radius: 20%; /* Делает круг */
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает изображение, сохраняя пропорции */
    display: block;
}

.logo svg {
    display: block;
    width: 50px;
    height: 50px;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: #0a3146;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.nav a:hover {
    color: #00437a;
    border-bottom-color: #1e6f9f;
}

.nav a:active {
    opacity: 0.7;
}

/* Активная кнопка в меню */
.nav a.active {
    color: #00437a;
    border-bottom: 3px solid #1e6f9f;
    font-weight: 600;
    background-color: rgba(30, 111, 159, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    margin: -6px 0;
}

/* Основной контент */
.main {
    flex: 1;
    padding: 40px 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main h1 {
    font-weight: 300;
    color: #03416b;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.main p {
    color: #134a6b;
    font-size: 1.2rem;
    line-height: 1.5;
    background: rgba(255,255,255,0.3);
    padding: 20px 24px;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    max-width: 600px;
}

.main p:last-of-type {
    margin-top: 20px;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    font-size: 0.95rem;
    color: #0e4466;
}

/* ============================================ */
/* АДАПТИВНОСТЬ ДЛЯ ГЛОБАЛЬНЫХ ЭЛЕМЕНТОВ */
/* ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 12px 16px;
    }
    
    .left-group {
        gap: 16px;
    }
    
    .nav {
        gap: 16px;
    }
    
    .nav a {
        font-size: 1rem;
    }
    
    .main {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }
    
    .left-group {
        gap: 12px;
    }
    
    .nav {
        gap: 12px;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .main {
        padding: 16px 12px;
    }
}


.dropdown-menu {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    text-decoration: none;
    color: #0a3146;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.dropdown-trigger:hover {
    color: #00437a;
    border-bottom-color: #1e6f9f;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid #b0d4f0;
    margin-top: 4px;
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #0a3146;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease;
    border-bottom: none !important;
    letter-spacing: 0.3px;
}

.dropdown-content a:hover {
    background: #e8f0fa;
    color: #00437a;
}

.dropdown-content a:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-content a:last-child {
    border-radius: 0 0 8px 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: 1px solid #b0d4f0;
        margin-top: 4px;
        width: 100%;
    }
    
    .dropdown-content a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dropdown-trigger {
        font-size: 0.9rem;
    }
}








