/* === Базовые стили === */
body {
    font-family: "Arial", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* === Шапка (Header) === */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Разрешаем перенос элементов */
    background: #2c3e50;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    gap: 10px; /* Отступы между элементами */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* Предотвращает сжатие */
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin: 0;
    /* white-space: nowrap; */ /* Запрещаем перенос текста */
}

nav {
    display: flex;
    align-items: center; /* Центрируем меню по вертикали */
    justify-content: center;
    flex-grow: 1; /* Меню занимает всё доступное пространство */
}

nav a {
    color: white !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 15px; /* Увеличиваем отступы, чтобы выровнять текст */
}

nav a:hover {
    color: #ffcc00;
}


/* === Кнопка "Личный кабинет" === */
#profile-btn {
    background: #ffcc00;
    color: #2c3e50;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap; /* Запрещаем перенос текста */
}

#profile-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#profile-btn:active {
    background: #e69500;
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* === Основной контент === */
main {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Заголовки */
h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Текст */
p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Списки */
ul {
    margin-left: 20px;
    font-size: 18px;
}

ul li {
    margin-bottom: 8px;
}

/* === Блок "Приглашаем Вас..." (CTA) === */
/* === CTA-блок (Призыв к действию) === */
/* === CTA-блок (Призыв к действию) === */
.cta {
    background: #fff; /* Светлый фон для лучшей читаемости */
    color: #333; /* Темно-серый текст для контраста */
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    max-width: 800px;
    margin: 40px auto;
    border: 2px solid #ff7f50; /* Добавляем оранжевую рамку */
}

/* Заголовок CTA */
.cta h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ff7f50; /* Оранжевый акцент */
}

/* Основной текст CTA */
.cta p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Список преимуществ */
.cta ul {
    text-align: left;
    display: inline-block;
    font-size: 18px;
    margin: 20px auto;
    color: #555;
}

.cta li {
    margin-bottom: 10px;
}

/* === Кнопка CTA (Теперь выглядит как кнопка!) === */
.cta-button {
    display: inline-block;
    background: #ff7f50; /* Оранжевый фон */
    color: white; /* Белый текст */
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px; /* Делаем кнопку скругленной */
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

/* Эффект при наведении */
.cta-button:hover {
    background: #ff5f2f;
    transform: scale(1.07);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Эффект при нажатии */
.cta-button:active {
    background: #e65100;
    transform: scale(0.95);
}

/* === Отступы между секциями === */
section {
    margin-bottom: 50px;
}

/* === Подвал (Footer) === */
footer {
    text-align: center;
    padding: 15px;
    background: #2c3e50;
    color: white;
    font-size: 14px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        text-align: center;
    }

    nav a {
        flex-direction: column;
        gap: 10px;
    }

    #profile-btn {
        margin-top: 10px;
        width: 80%;
        text-align: center;
    }
}

/* === Адаптивная шапка (Header) === */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Перестраиваем элементы вертикально */
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    /* Логотип */
    .logo {
        flex-direction: column; /* Логотип и название теперь в колонку */
        align-items: center;
    }

    .logo img {
        height: 40px; /* Уменьшаем размер логотипа */
    }

    .logo-text {
        font-size: 18px; /* Делаем текст меньше */
    }

    /* Меню */
    nav {
        width: 100%;
        display: flex;
        flex-direction: column; /* Меню в колонку */
        gap: 10px;
        margin-top: 10px;
    }

    nav a {
        display: block;
        padding: 10px;
        font-size: 16px;
        text-align: center;
        width: 100%;
    }

    /* Кнопка "Личный кабинет" */
    #profile-btn {
        margin-top: 10px;
        width: 90%;
        text-align: center;
    }
}