/* ===== style.css — полный файл стилей для сайта "ОНИ Беговой клуб" ===== */

/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #1e1e2a;
    line-height: 1.5;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
:root {
    --primary: #e84c3d;
    --primary-dark: #c0392b;
    --primary-light: #fde8e5;
    --dark: #1e1e2a;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

/* ===== Шапка ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
}
.logo span {
    color: var(--dark);
}
.nav {
    display: flex;
    gap: 28px;
    font-weight: 500;
    font-size: 0.95rem;
}
.nav a:hover {
    color: var(--primary);
}
.header-phone a {
    color: inherit;
    text-decoration: none;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 1rem;
}
.btn:hover {
    background: var(--primary-dark);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== HERO (центрирован) ===== */
.hero {
    padding: 60px 0 70px;
    background: linear-gradient(135deg, #fef6f5 0%, #fff 100%);
    text-align: center;
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px;
}
.hero h1 span {
    color: var(--primary);
}
.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 20px auto 30px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stats div {
    font-weight: 700;
    font-size: 1.8rem;
}
.hero-stats div small {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== Общие стили секций ===== */
section {
    padding: 70px 0;
}
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.section-sub {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 40px;
}

/* ===== Центрируем заголовки и подзаголовки во всех секциях ===== */
#about .section-title,
#about .section-sub,
#trainers .section-title,
#trainers .section-sub,
#trainings .section-title,
#trainings .section-sub,
#schedule .section-title,
#schedule .section-sub,
#reviews .section-title,
#reviews .section-sub,
#prices .section-title,
#prices .section-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Сетки для карточек ===== */
.about-grid,
.trainers-grid,
.training-grid,
.reviews-grid,
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.about-card,
.trainer-card,
.training-card,
.review-card,
.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.about-card {
    border-top: 4px solid var(--primary);
}
.trainer-card {
    text-align: center;
}
.trainer-card .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ===== Фото тренеров ===== */
.trainer-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid var(--primary-light);
}

/* ===== Карточки тренировок ===== */
.training-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.training-card .level {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 10px;
    align-self: center;
}

.training-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    text-align: center;
}
.training-card .duration {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: center;
}

.training-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 18px;
    flex-grow: 0;
}

.training-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    flex-grow: 1;
}

.training-card ul li {
    padding: 4px 0 4px 24px;
    font-size: 0.9rem;
    color: var(--gray);
    position: relative;
}

.training-card ul li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.training-card .btn {
    margin-top: auto;
    align-self: center;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== Карточки цен ===== */
.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 4px solid transparent;
}

.price-card.popular {
    border-top-color: var(--primary);
}

.price-card h3 {
    font-size: 1.5rem;
    text-align: center;
}

.price-card .price {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 8px 0 12px;
    color: var(--dark);
    text-align: center;
}

.price-card .price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    flex: 1;
}

.price-card ul li {
    padding: 4px 0;
    font-size: 0.95rem;
    color: var(--gray);
}

.price-card ul li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 700;
}

.price-card .btn {
    margin-top: auto;
    align-self: center;
}

/* ===== Расписание ===== */
.schedule-day {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.schedule-day h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--primary);
}
.schedule-day .times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== Отзывы ===== */
.review-card .stars {
    color: #f1c40f;
    margin: 4px 0 10px;
    letter-spacing: 2px;
}

/* ===== Форма ===== */
.form-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px 40px;
    max-width: 640px;
    margin: 0 auto;
}
.form-section h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.form-section .sub {
    color: var(--gray);
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 76, 61, 0.15);
}
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    font-size: 0.95rem;
}
.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.checkbox-group label {
    color: var(--gray);
    cursor: pointer;
}
.checkbox-group label a {
    color: var(--primary);
    text-decoration: underline;
}
.form-error {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 6px;
    display: none;
}
.form-success {
    color: #27ae60;
    font-weight: 600;
    margin-top: 16px;
    display: none;
}
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* ===== Футер ===== */
.footer {
    background: #1a1a2e;
    color: #b0b0c0;
    padding: 50px 0 30px;
    margin-top: 40px;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}
.footer h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer ul {
    list-style: none;
    padding: 0;
}
.footer ul li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}
.footer ul li a {
    color: #b0b0c0;
    text-decoration: none;
}
.footer ul li a:hover {
    color: #fff;
}
.footer .logo {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Соцсети */
.socials {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}
.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b0b0c0;
    font-size: 1.4rem;
    transition: color 0.2s;
    text-decoration: none;
}
.socials a:hover {
    color: #fff;
}
.social-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid #2a2a42;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #6c6c88;
    grid-column: 1 / -1;
}
.footer .admin-link {
    color: #6c6c88;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}
.footer .admin-link:hover {
    color: #fff;
}

/* ===== Админ-панель (модальное окно) ===== */
.admin-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.admin-overlay.active {
    display: flex;
}
.admin-modal {
    background: #fff;
    border-radius: var(--radius);
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 30px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}
.admin-modal .close-btn {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
}
.admin-modal h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}
.admin-login {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}
.admin-login input {
    padding: 10px 16px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    flex: 1;
    min-width: 200px;
}
.admin-login .btn {
    padding: 10px 24px;
}
.admin-login .error {
    color: var(--primary);
    font-size: 0.9rem;
    margin-left: 10px;
}
.admin-table-wrap {
    overflow-x: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    background: var(--primary);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--light-gray);
}
.admin-table tr:hover td {
    background: #f8f9fa;
}
.admin-table .empty {
    text-align: center;
    color: var(--gray);
    padding: 30px 0;
}
.admin-table .delete-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
}
.admin-table .delete-btn:hover {
    color: #c0392b;
}
.admin-actions {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-actions .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}
.admin-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--gray);
}
.admin-actions .btn-outline:hover {
    background: var(--gray);
    color: #fff;
}

.underline-link {
    text-decoration: underline;
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.6rem; }
}
@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 12px; align-items: center; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 0.9rem; }
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-stats { gap: 30px; }
    .section-title { font-size: 2rem; }
    .form-section { padding: 30px 20px; }
    .admin-modal { padding: 20px 16px; }
    .about-grid,
    .trainers-grid,
    .training-grid,
    .reviews-grid,
    .prices-grid {
        grid-template-columns: 1fr;
    }
    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-stats div { font-size: 1.4rem; }
    .schedule-grid { grid-template-columns: 1fr; }
    .admin-login { flex-direction: column; align-items: stretch; }
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 16px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    border-top: 3px solid var(--primary);
}

.cookie-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}
.cookie-content a:hover {
    color: #fff;
}

#acceptCookieBtn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}
#acceptCookieBtn:hover {
    background: var(--primary-dark);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        gap: 12px;
    }
    .cookie-content p {
        font-size: 0.9rem;
    }
    #acceptCookieBtn {
        width: 100%;
    }
}

.highlight {
    color: var(--primary);
}

/* ===== Стили для блока "О школе" ===== */
.about-text {
    margin-bottom: 40px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
}

.about-list li {
    padding: 8px 0 8px 32px;
    font-size: 1.05rem;
    color: var(--dark);
    position: relative;
    line-height: 1.6;
}

.about-list li::before {
    content: "✓ ";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.about-philosophy {
    font-size: 1.15rem;
    color: var(--gray);
    padding: 16px 0;
    line-height: 1.7;
    max-width: 800px;
}

.section-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    text-align: center;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1.5rem;
    }
    .about-list li {
        font-size: 0.95rem;
        padding: 6px 0 6px 28px;
    }
    .about-philosophy {
        font-size: 1rem;
    }
}

/* ===== Активный пункт меню ===== */
.nav a.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
}