/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 40px;
}

/* ===== NAVIGATION (из MegaNav.js) ===== */
.mega-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    margin-right: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f0f0f0;
    color: #667eea;
}

/* DROPDOWN STYLES */
.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    min-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
}

.mega-section {
    display: flex;
    flex-direction: column;
}

.mega-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.mega-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
}

.mega-link:hover {
    background: #f8f9ff;
    color: #667eea;
    padding-left: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    margin-left: auto;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.mobile-active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .mega-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 10px;
        min-width: 100%;
        display: none;
    }
    .nav-item.mobile-open .mega-dropdown {
        display: block;
    }
    .mega-content {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

/* ===== CONTAINER ===== */
.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    padding: 40px;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
    }
}

/* ===== TYPOGRAPHY ===== */
h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 24px;
}

h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 20px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

/* ===== TABS ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab {
    flex: 1;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== FORMS ===== */
.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

/* ===== BUTTONS ===== */
.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ===== RESULTS ===== */
.results {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.results.show {
    display: block;
}

.bmi-display {
    text-align: center;
    margin-bottom: 20px;
}

.bmi-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.bmi-category {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

.underweight {
    background: #e3f2fd;
    color: #1976d2;
}

.normal {
    background: #e8f5e9;
    color: #388e3c;
}

.overweight {
    background: #fff3e0;
    color: #f57c00;
}

.obese {
    background: #ffebee;
    color: #d32f2f;
}

/* ===== BMI CHART ===== */
.bmi-chart {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
}

.chart-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.chart-row:last-child {
    border-bottom: none;
}

/* ===== INFO BOX ===== */
.info {
    margin-top: 20px;
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
    font-size: 14px;
    color: #0d47a1;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    line-height: 1.8;
    color: #333;
}

.content-section p {
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
    font-size: 14px;
}