/* ---------- ГЛОБАЛЬНЫЕ СТИЛИ (ТРАВЯНЫЕ ЗЕЛЁНЫЕ ТОНА) ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f5f5e8;
    line-height: 1.6;
    color: #2c3a2a;
    min-height: 100vh;
}

/* ---------- НАВИГАЦИЯ (тёмный травяной) ---------- */
nav {
    background: #2d5230;
    padding: 0.75rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(45, 82, 48, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    display: block;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 40px;
    transition: all 0.25s ease;
    letter-spacing: -0.2px;
}

nav ul li a:hover {
    background: #4a7c3f;
    color: white;
    transform: translateY(-2px);
}

/* Выпадающие подменю */
nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 210px;
    border-radius: 20px;
    padding: 0.6rem 0;
    box-shadow: 0 20px 35px -10px rgba(45, 82, 48, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 100;
    border: 1px solid rgba(45, 82, 48, 0.15);
}

nav ul li ul li a {
    color: #2d5230;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

nav ul li ul li a:hover {
    background: #eef5ea;
    color: #1f3d21;
    transform: none;
}

nav ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(8px);
}

nav ul li.has-dropdown > a::after {
    content: " ▾";
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ---------- ОСНОВНОЙ КОНТЕЙНЕР (БЕЛАЯ ПОДЛОЖКА) ---------- */
.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 32px;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 40px -12px rgba(45, 82, 48, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
    box-shadow: 0 25px 45px -12px rgba(45, 82, 48, 0.25);
}

/* ---------- ТИПОГРАФИКА (травяной градиент) ---------- */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2d5230, #5a8f4a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* ---------- АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) ---------- */
@media (max-width: 768px) {
    .content-card {
        padding: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    nav ul li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #4a7c3f;
        margin-top: 5px;
        display: none;
        border-radius: 20px;
    }
    
    nav ul li:hover > ul {
        display: block;
    }
    
    nav ul li ul li a {
        color: white;
    }
    
    nav ul li ul li a:hover {
        background: #2d5230;
        color: white;
    }
    
    h1 {
        font-size: 2rem;
    }
}
