* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F8F5F0;
    color: #2D3E4F;
    line-height: 1.6;
    padding-bottom: 70px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: #2D3E4F;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo span {
    color: #B38B5F;
}

/* Десктопная навигация */
.desktop-nav {
    display: flex;
    gap: 20px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    background: #6B8E7E;
}

/* Мобильное нижнее меню */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2D3E4F;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.7em;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 10px;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: #aaa;
    transition: fill 0.3s;
}

.nav-item.active,
.nav-item:hover {
    color: #B38B5F;
}

.nav-item.active svg,
.nav-item:hover svg {
    fill: #B38B5F;
}

/* Основной контент */
main {
    min-height: 70vh;
    padding: 30px 0;
    width: 100%;
    overflow-x: hidden;
}

/* Footer */
footer {
    background: #2D3E4F;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    width: 100%;
}

footer a {
    color: #B38B5F;
    text-decoration: none;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    body {
        padding-bottom: 65px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .container {
        padding: 0 15px;
    }
    
    main {
        padding: 20px 0;
    }
    
    .hero {
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 1.5em;
    }
    
    .hero p {
        font-size: 0.95em;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .course-card {
        padding: 15px;
    }
    
    footer .container {
        font-size: 0.8em;
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.2em;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Утилиты */
.btn {
    display: inline-block;
    background: #6B8E7E;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #5a7a6b;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6B8E7E 0%, #2D3E4F 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card h3 {
    color: #6B8E7E;
    margin-bottom: 10px;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

input, textarea, select, button {
    max-width: 100%;
}
