:root {
    --primary-color: #e50914; /* Яркий красный */
    --dark-bg: #0f0f0f;
    --darker-bg: #050505;
    --light-text: #ffffff;
    --gray-text: #b3b3b3;
    --card-bg: #1f1f1f;
    --font-main: 'Montserrat', sans-serif;
    --font-header: 'Oswald', sans-serif;
    --transition: 0.3s ease;
}

/* Сброс и База */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Утилиты */
.text-red { color: var(--primary-color); }

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-header);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: #b00000;
}

.btn--outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: white;
}

.btn--outline:hover {
    background: var(--primary-color);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo a {
    font-family: var(--font-header);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
}

.header__menu {
    display: flex;
    gap: 30px;
}

.header__link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

.header__link:hover {
    color: var(--primary-color);
}

.header__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.4));
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero__title {
    font-family: var(--font-header);
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-header);
    font-size: 40px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-desc {
    color: var(--gray-text);
}

/* About */
.about { background: var(--darker-bg); }

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 20px;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card__icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card__title {
    font-family: var(--font-header);
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-card__text { color: var(--gray-text); font-size: 14px; }

/* Gallery */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.gallery__item {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, black, transparent);
    opacity: 0;
    transition: 0.3s;
}

.gallery__item:hover .gallery__overlay { opacity: 1; }
.gallery__overlay span { font-family: var(--font-header); font-size: 18px; text-transform: uppercase;}

/* Services */
.services__grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
}

.service-card__img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-card__content {
    padding: 25px;
}

.service-card__content h3 {
    font-family: var(--font-header);
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-card__content p { color: var(--gray-text); font-size: 14px; }

/* Trainers Slider (Simple CSS/JS Logic) */
.slider-container {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.trainer-card {
    min-width: 33.33%; /* Show 3 items */
    padding: 0 15px;
    text-align: center;
}

.trainer-card__img {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
}

.trainer-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.3s;
}

.trainer-card:hover img { filter: grayscale(0%); }

.trainer-card__info h4 {
    font-family: var(--font-header);
    font-size: 18px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.trainer-card__info p { color: var(--primary-color); font-size: 14px; font-weight: bold;}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-controls button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slider-controls button:hover { background: var(--primary-color); border-color: var(--primary-color); }

/* Schedule */
.schedule { background: var(--darker-bg); }

.table-wrapper { overflow-x: auto; }

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.schedule-table th, .schedule-table td {
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
}

.schedule-table th {
    background: var(--primary-color);
    color: white;
    font-family: var(--font-header);
    text-transform: uppercase;
}

.schedule-table td { color: var(--gray-text); }
.schedule-table tr:hover td { background: #1a1a1a; color: white; }

/* Pricing */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--card-bg);
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

.pricing-card--hit {
    background: #252525;
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.hit-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    padding: 5px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    border-radius: 20px;
}

.pricing-card__title {
    font-family: var(--font-header);
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.pricing-card__price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.pricing-card__price span { font-size: 16px; color: var(--gray-text); }

.pricing-card__list { margin-bottom: 30px; text-align: left; }
.pricing-card__list li { margin-bottom: 10px; color: #ddd; }
.pricing-card__list li i { color: var(--primary-color); margin-right: 10px; width: 20px;}
.pricing-card__list li.disabled { color: #555; }
.pricing-card__list li.disabled i { color: #555; }

/* Contacts */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.contacts__form-block {
    background: var(--card-bg);
    padding: 60px;
}

.contacts__title {
    font-family: var(--font-header);
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #111;
    border: 1px solid #333;
    color: white;
    outline: none;
}

.form input:focus { border-color: var(--primary-color); }
.form button { width: 100%; }

.contacts__info { margin-top: 40px; }
.contacts__info p { margin-bottom: 10px; font-size: 18px; }
.socials { margin-top: 20px; }
.socials a {
    font-size: 24px;
    margin-right: 20px;
    color: white;
    transition: 0.3s;
}
.socials a:hover { color: var(--primary-color); }

.contacts__map { height: 100%; min-height: 400px; }

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
    color: var(--gray-text);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal__content {
    background: var(--card-bg);
    padding: 50px;
    border-radius: 5px;
    position: relative;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--primary-color);
}

.modal__content h3 {
    font-family: var(--font-header);
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal__close {
    position: absolute;
    top: 10px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}
.modal__close:hover { color: white; }

/* Mobile Styles */
@media (max-width: 992px) {
    .contacts__wrapper { grid-template-columns: 1fr; }
    .pricing-card--hit { transform: scale(1); }
}

@media (max-width: 768px) {
    .header__menu { display: none; }
    .header__burger { display: block; width: 30px; height: 20px; position: relative; }
    .header__burger span {
        display: block; width: 100%; height: 2px; background: white; position: absolute;
        left: 0; transition: 0.3s;
    }
    .header__burger span:nth-child(1) { top: 0; }
    .header__burger span:nth-child(2) { top: 9px; }
    .header__burger span:nth-child(3) { bottom: 0; }

    .hero__title { font-size: 40px; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Mobile Menu */
    .mobile-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: #000; z-index: 1500; flex-direction: column;
        align-items: center; justify-content: center; display: flex;
        transition: 0.4s;
    }
    .mobile-menu.active { right: 0; }
    .mobile-menu__list { text-align: center; }
    .mobile-menu__list li { margin: 20px 0; }
    .mobile-menu__list a { font-family: var(--font-header); font-size: 24px; text-transform: uppercase; }
    .mobile-menu__close { position: absolute; top: 20px; right: 30px; font-size: 40px; cursor: pointer; }
    
    /* Slider Mobile adjustment */
    .trainer-card { min-width: 100%; }
}