:root {
    --color-red: #E30613;
    --color-red-dark: #B30510;
    --color-dark: #1A1A1A;
    --color-gray: #666666;
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--color-dark); background-color: var(--color-white); line-height: 1.6; overflow-x: hidden; transition: background-color 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--color-red); }

/* Кнопки */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 16px; transition: var(--transition); cursor: pointer; border: none; letter-spacing: 0.5px; }
.btn--primary { background-color: var(--color-red); color: #fff; box-shadow: 0 10px 25px rgba(227, 6, 19, 0.4); }
.btn--primary:hover { background-color: var(--color-red-dark); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(227, 6, 19, 0.6); }
.btn--glass { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-3px); }

/* Шапка */
.header { background: var(--color-white); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.05); transition: background-color 0.3s; }
.header__inner { display: flex; justify-content: space-between; align-items: center; height: 90px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__img { height: 55px; width: auto; }
.logo__text { font-weight: 900; font-size: 22px; color: var(--color-dark); transition: color 0.3s; }
.header__right { display: flex; align-items: center; gap: 30px; }
.nav { display: flex; gap: 30px; }
.nav__link { color: var(--color-dark); text-decoration: none; font-weight: 600; font-size: 15px; transition: var(--transition); }
.nav__link:hover { color: var(--color-red); }
.theme-toggle { background: none; border: none; color: var(--color-dark); cursor: pointer; padding: 8px; border-radius: 50%; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.theme-toggle:hover { background-color: var(--color-light); color: var(--color-red); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.burger span { display: block; width: 25px; height: 3px; background-color: var(--color-dark); transition: var(--transition); }

/* Hero */
.hero { background: linear-gradient(135deg, #1A1A1A 0%, #E30613 100%); padding: 140px 0 120px; position: relative; }
.hero__content { max-width: 800px; }
.hero__badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 10px 20px; border-radius: 50px; font-size: 14px; font-weight: 600; margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.pulse-dot { width: 8px; height: 8px; background-color: #25D366; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.hero__title { font-size: 64px; font-weight: 900; line-height: 1.05; margin-bottom: 25px; text-transform: uppercase; color: #FFFFFF !important; text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); letter-spacing: -1px; }
.hero__title span { color: var(--color-red) !important; text-shadow: none; }
.hero__subtitle { font-size: 20px; margin-bottom: 45px; color: rgba(255, 255, 255, 0.85) !important; line-height: 1.5; }
.hero__actions { display: flex; gap: 15px; flex-wrap: wrap; }

/* Преимущества */
.features { padding: 80px 0; background-color: var(--color-light); transition: background-color 0.3s; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature { background: var(--color-white); padding: 40px 30px; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: var(--transition); }
.feature:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.feature__icon { font-size: 40px; margin-bottom: 20px; }
.feature h3 { font-size: 20px; margin-bottom: 15px; font-weight: 800; }
.feature p { color: var(--color-gray); font-size: 15px; }

/* Тренеры */
.coaches { padding: 80px 0; background-color: var(--color-white); transition: background-color 0.3s; }
.coaches__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; align-items: start; max-width: 1100px; margin-left: auto; margin-right: auto; }
.coach-card { background: var(--color-light); border-radius: var(--border-radius); overflow: hidden; cursor: pointer; position: relative; border: 1px solid transparent; transition: var(--transition); }
.coach-card:hover { border-color: rgba(227, 6, 19, 0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.coach-card__header { display: flex; flex-direction: column; list-style: none; outline: none; }
.coach-card__header::-webkit-details-marker { display: none; }
.coach-card__img-wrapper { width: 100%; height: 300px; background-color: #ddd; position: relative; }
.coach-card__img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.coach-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #888; font-weight: 600; background: #eee; }
.coach-card__title-block { padding: 20px; }
.coach-card__title-block h3 { font-size: 20px; margin-bottom: 5px; color: var(--color-dark); }
.coach-card__role { font-size: 13px; color: var(--color-red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.coach-card__icon { position: absolute; right: 15px; top: 15px; width: 36px; height: 36px; background: rgba(255, 255, 255, 0.9); color: var(--color-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; transition: var(--transition); z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.coach-card[open] .coach-card__icon { transform: rotate(45deg); background: var(--color-red); color: #fff; }
.coach-card__content { padding: 0 20px 20px 20px; color: var(--color-gray); font-size: 15px; }
.coach-card__content p { margin-bottom: 10px; }

/* Отзывы */
.reviews { padding: 80px 0; background-color: var(--color-light); }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.review-card { background: var(--color-white); padding: 30px; border-radius: var(--border-radius); box-shadow: 0 5px 20px rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: space-between; }
.review-card__stars { color: #FFB800; font-size: 20px; margin-bottom: 15px; }
.review-card__text { font-size: 15px; color: var(--color-dark); font-style: italic; margin-bottom: 25px; }
.review-card__author { display: flex; align-items: center; gap: 15px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 15px; }
.review-card__avatar { width: 45px; height: 45px; background-color: var(--color-red); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.review-card__author h4 { font-size: 16px; margin-bottom: 2px; color: var(--color-dark); }
.review-card__author span { font-size: 13px; color: var(--color-gray); }

/* Галерея */
.gallery { padding: 80px 0; text-align: center; background-color: var(--color-white); }
.section-title { font-size: 40px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; color: var(--color-dark); }
.section-subtitle { font-size: 18px; color: var(--color-gray); margin-bottom: 40px; }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.gallery__grid img { width: 100%; height: 350px; object-fit: cover; border-radius: var(--border-radius); transition: var(--transition); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.gallery__grid img:hover { transform: scale(1.02); }

/* Футер */
.footer { background-color: #111; color: #888; padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h3, .footer h4 { color: var(--color-white); margin-bottom: 15px; }
.footer p { margin-bottom: 10px; font-size: 15px; }
.footer a { color: #888; text-decoration: none; transition: var(--transition); }
.footer a:hover { color: var(--color-red); }
.footer__bottom { border-top: 1px solid #333; padding: 20px 0; text-align: center; font-size: 14px; }

/* Темная тема */
body.dark-theme { --color-white: #1A1A1A; --color-dark: #F8F9FA; --color-light: #2A2A2A; --color-gray: #AAAAAA; }
body.dark-theme .header { background: #1A1A1A; border-bottom: 1px solid #333; }
body.dark-theme .feature { background: #222; }
body.dark-theme .coach-card { background: #222; }
body.dark-theme .coach-card__icon { background: rgba(0, 0, 0, 0.6); color: #fff; }
body.dark-theme .review-card { background: #222; }
body.dark-theme .review-card__author { border-top: 1px solid rgba(255,255,255,0.1); }
body.dark-theme .review-card__text { color: #ddd; }
body.dark-theme .theme-toggle { color: #fff; }
body.dark-theme .burger span { background-color: #fff; }
body.dark-theme .gallery { background-color: #1A1A1A; }

/* Адаптивность */
@media (max-width: 992px) {
    .footer__inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 768px) {
    .burger { display: flex; }
    .nav { position: absolute; top: 90px; left: 0; width: 100%; background: var(--color-white); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav.active { max-height: 400px; }
    .nav__link { padding: 15px 20px; border-bottom: 1px solid #eee; }
    .hero { padding: 100px 0 80px; }
    .hero__title { font-size: 38px; line-height: 1.1; letter-spacing: 0; }
    .hero__subtitle { font-size: 16px; margin-bottom: 30px; }
    .hero__actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .section-title { font-size: 30px; }
    .gallery__grid { grid-template-columns: 1fr; }
    .gallery__grid img { height: 250px; }
}
