/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #1565c0;
    --text-dark: #2c3e50;
    --text-light: #5a6c7d;
    --background-light: #f8f9fa;
    --border-color: #e0e6ed;
    --spacing-unit: 1rem;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.logo {
    height: 70px;
    width: auto;
    border-radius: 6px;
    background: white;
    padding: 3px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #c62828 0%, #1565c0 100%);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Sections */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Training Plan Section */
.training-plan-section {
    background-color: #f8f9fa;
    position: relative;
}

/* Training Plan */
.training-plan {
    background-color: transparent;
    padding: 3rem 0;
    border-radius: 0;
}

/* Schedule Groups */
.schedule-groups {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.schedule-group {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--primary-color);
}

.group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Schedule Cards */
.schedule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.schedule-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4ff 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.schedule-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.card-day {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.card-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-light);
}

/* Contacts Page */
.contacts {
    padding-bottom: 2rem;
}

.intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card h3 {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
}

.contact-card p {
    line-height: 1.9;
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.contact-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.contact-card a:hover::after {
    width: 100%;
}

/* Contact Form */
.contact-form-section {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-form-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 4px rgba(25, 118, 210, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-submit:hover {
    background-color: #b71c1c;
    transform: scale(1.02);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .logo {
        height: 60px;
    }

    nav ul {
        gap: 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .schedule-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    header h1 {
        font-size: 1.1rem;
    }

    .logo {
        height: 50px;
    }

    nav ul {
        gap: 1rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    section h2::after {
        width: 50px;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .schedule-cards {
        grid-template-columns: 1fr;
    }

    .schedule-card {
        padding: 1.5rem;
    }

    .card-day {
        font-size: 1rem;
    }

    .card-time {
        font-size: 1.2rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}
