/* Общие стили для всех страниц */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    color: #2f2f2f;
    background-color: #f4f4f4;
}

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

/* Шапка (используется на всех страницах) */
header {
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1a3c34;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

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

header nav ul li a:hover {
    color: #d4a017;
}

/* Hero-секция с боковой панелью (присутствует на всех страницах) */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a3c34 0%, #d4a017 100%);
    color: #ffffff;
    padding: 120px 0;
    text-align: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-content {
    flex: 3;
}

.hero-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-sidebar img {
    width: 50px;
    height: 50px;
    filter: invert(100%);
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    margin-bottom: 20px;
}

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

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1a3c34 0%, #d4a017 50%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #d4a017 0%, #1a3c34 100%);
}

/* Секции контента (для всех страниц: about, workouts, nutrition, tips, resources, ecc.) */
.about, .workouts, .nutrition, .tips, .resources, .contact-form, .contact-info, .thank-you, .policy-content, .cookies-content, .terms-content, .recipe-content {
    padding: 50px 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin: 20px auto;
    max-width: 1000px;
}

.about h2, .workouts h2, .nutrition h2, .tips h2, .resources h2, .contact-form h2, .contact-info h2, .thank-you h2, .policy-content h2, .cookies-content h2, .terms-content h2, .recipe-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    color: #1a3c34;
    text-align: center;
    margin-bottom: 25px;
}

/* Карточки (для workouts.html, nutrition.html, tips.html, index.html - resources) */
.workout-grid, .nutrition-grid, .tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.workout-card, .nutrition-card, .tip-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.workout-card:hover, .nutrition-card:hover, .tip-card:hover {
    transform: translateY(-8px);
}

.workout-card img, .nutrition-card img, .tip-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.workout-card .workout-content, .nutrition-card .nutrition-content, .tip-card .tip-content {
    padding: 20px;
}

.workout-card h3, .nutrition-card h3, .tip-card h3 {
    font-size: 22px;
    color: #1a3c34;
    margin: 15px 0 10px;
}

.workout-card p, .nutrition-card p, .tip-card p {
    font-size: 15px;
    color: #4a4a4a;
}

/* Контактная форма (для contact.html) */
.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.contact-form button {
    background: linear-gradient(135deg, #1a3c34 0%, #d4a017 50%);
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-form button:hover {
    transform: scale(1.05);
}

/* Футер (на всех страницах) */
footer {
    background-color: #1a3c34;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
}

footer a {
    color: #d4a017;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Адаптивность для всех страниц */
@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
    }
    .hero-sidebar {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero h2 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .workout-card img, .nutrition-card img, .tip-card img {
        height: 140px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }
    header nav ul {
        gap: 15px;
    }
    header nav ul li a {
        font-size: 14px;
    }
}