/* 1. ОБНУЛЕНИЕ И ПЕРЕМЕННЫЕ */
:root {
    --accent-neon: #D7FD51;
    --accent-dark: #b5d930;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --border-light: #f0f0f0;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* 2. ХЕДЕР (ЛОГО СЛЕВА, КНОПКА СПРАВА) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.main-header .container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Логотипная группа — слева, Кнопка — справа */
}

/* Группировка Логотипа и Меню */
.header__left-group {
    display: flex;
    align-items: center;
    gap: 40px; /* Расстояние между лого и ссылками */
}

.header-logo {
    font-size: 24px;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    letter-spacing: -1.2px;
}

.header-logo span {
    color: var(--accent-dark);
}

/* Навигация */
.header__menu-content {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 18px; /* Было 15px, стало 18px (или поставь 20px) */
    transition: color 0.2s;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-dark);
}

/* Правая часть (Кнопка профиля) */
.header__right {
    display: flex;
    align-items: center;
}

.btn-fitstars {
    background-color: var(--accent-neon);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-fitstars:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(215, 253, 81, 0.4);
}

/* 3. БУРГЕР-МЕНЮ (CSS-ONLY LOGIC) */
#menu-bar {
    display: none; /* Скрытый чекбокс */
}

.burger-label {
    display: none; /* Скрыт на десктопе */
    font-size: 28px;
    cursor: pointer;
    color: var(--text-main);
}

/* 4. ГЛАВНЫЙ КОНТЕНТ (WELCOME SECTION) */
.welcome-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--header-height) 20px 40px;
    background:
        radial-gradient(circle at 90% 10%, rgba(215, 253, 81, 0.15), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(215, 253, 81, 0.1), transparent 40%);
}

.content-box {
    max-width: 850px;
    text-align: center;
}

.main-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 25px;
}

.outline-text {
    color: var(--accent-dark);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.buttons-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-main-dark {
    background-color: #000;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-main-outline {
    border: 2px solid #000;
    color: #000;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-main-dark:hover, .btn-main-outline:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* 5. АДАПТИВНОСТЬ */

@media (max-width: 992px) {
    .main-title {
        font-size: 3.5rem;
        letter-spacing: -1.5px;
    }

    /* Показываем иконку бургера */
    .burger-label {
        display: block;
        order: -1; /* Иконка слева от логотипа */
        margin-right: 15px;
    }

    /* Скрываем навигацию и превращаем в выпадающий список */
    .header__menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        border-bottom: 1px solid var(--border-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .header__menu-content {
        flex-direction: column;
        padding: 20px 40px;
        gap: 20px;
    }

    /* Если чекбокс нажат — раскрываем меню */
    #menu-bar:checked ~ .header__menu {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.8rem;
    }

    .buttons-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-main-dark, .btn-main-outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }

    .btn-fitstars {
        padding: 10px 16px;
        font-size: 13px;
    }
}