/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa; /* Светло-серый фон */
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    background-color: #007bff; /* Светло-синий цвет для шапки */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

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

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff; /* Белый цвет для названия сайта */
    margin: 0;
}

header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

header nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #d1e8ff; /* Светло-голубой цвет для hover и активной ссылки */
}

/* Секция героя */
.hero {
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Полупрозрачный черный фон на 40% */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Кнопки */
.button-container {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #007bff;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Форма */
.contact-form {
    max-width: 600px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Основной контент */
main {
    padding: 40px 0;
}

main h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

main p {
    margin-bottom: 20px;
}

main ul, main ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

main ul li, main ol li {
    margin-bottom: 10px;
}

/* Сетка для карточек */
.recipe-grid,
.drinks-grid,
.exercise-grid,
.tips-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.recipe-card,
.drink-card,
.exercise-card,
.tip-card,
.gallery-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
}

.recipe-card img,
.drink-card img,
.exercise-card img,
.tip-card img,
.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-card h3,
.drink-card h3,
.exercise-card h3,
.tip-card h3,
.gallery-item p {
    font-size: 20px;
    margin: 15px 0;
}

.recipe-card p,
.drink-card p,
.exercise-card p,
.tip-card p {
    font-size: 16px;
    color: #666666;
    padding: 0 15px;
}

.recipe-card .cta-button,
.drink-card .cta-button,
.exercise-card .cta-button,
.tip-card .cta-button {
    margin: 20px auto;
    display: inline-block;
}

/* Отзывы */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.review {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.review img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.review p {
    font-style: italic;
    color: #666666;
}

/* Видео */
.video {
    margin-top: 30px;
    text-align: center;
}

.video iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border: none;
}

/* Подвал */
footer {
    background-color: #007bff;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #d1e8ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Секции кнопок возвращения */
.return-section {
    margin-top: 40px;
    text-align: center;
}

.return-section .cta-button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 25px;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.return-section .cta-button:hover {
    background-color: #007bff;
    color: #ffffff;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px 0;
    }

    header h1 {
        font-size: 24px;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .hero {
        padding: 100px 0;
    }

    .hero h2 {
        font-size: 30px;
    }

    .hero p {
        font-size: 18px;
    }

    .recipe-grid,
    .drinks-grid,
    .exercise-grid,
    .tips-grid,
    .gallery-grid,
    .reviews {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .recipe-card img,
    .drink-card img,
    .exercise-card img,
    .tip-card img,
    .gallery-item img {
        height: 150px;
    }

    .contact-form {
        margin: 15px 0;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 6px;
    }

    .contact-form button {
        padding: 8px;
        font-size: 14px;
    }

    .return-section {
        margin-top: 30px;
    }

    .video iframe {
        height: 200px;
    }
}