/* Основные стили */
:root {
    --primary-color: #7E57C2;
    --secondary-color: #9575CD;
    --accent-color: #5E35B1;
    --light-color: #F5F5F5;
    --dark-color: #212121;
    --grey-color: #757575;
    --light-grey: #E0E0E0;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #F44336;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-primary {
    background-color: var(--primary-color);
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav__list {
    display: flex;
}

.nav__list li {
    margin-left: 30px;
}

.nav__list a {
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

.nav__list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav__list a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

/* Герой-блок */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hkfbZt.jpg') no-repeat center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(126, 87, 194, 0.6), rgba(94, 53, 177, 0.6));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Про нас */
.about__content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about__text {
    flex: 1;
}

.about__text p {
    margin-bottom: 20px;
}

.about__image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Преимущества */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Галерея */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.gallery-item img {
    transition: var(--transition);
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Программы тренировок */
.programs__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.program-image {
    height: 200px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.program-card:hover .program-image img {
    transform: scale(1.05);
}

.program-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.program-card p {
    padding: 0 20px 20px;
    color: var(--grey-color);
}

.program-card .btn {
    margin: 0 20px 20px;
}

/* Форма быстрого заказа */
.booking {
    background-color: #f9f5ff;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-grey);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.2);
}

.booking-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* Отзывы клиентов */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.review-image {
    height: 150px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    padding: 20px;
}

.review-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.review-content p {
    font-style: italic;
    color: var(--grey-color);
}

/* FAQ */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-weight: 500;
    color: var(--primary-color);
}

.faq-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* Контакты */
.contacts__content {
    display: flex;
    gap: 40px;
}

.contacts__info {
    flex: 1;
}

.contacts__map {
    flex: 2;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Футер */
.footer {
    background-color: #212121;
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo a {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.footer h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light-grey);
}

.footer__links ul li {
    margin-bottom: 10px;
}

.footer__links ul li a {
    color: var(--light-grey);
}

.footer__links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-grey);
}

/* Поп-ап о согласии с cookies */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 33, 33, 0.95);
    color: white;
    padding: 15px;
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-popup__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cookie-popup__content p {
    margin-right: 20px;
}

.cookie-popup__content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: var(--box-shadow);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--grey-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Адаптивный дизайн */
@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }
    
    .about__content {
        flex-direction: column;
    }
    
    .contacts__content {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .header {
        position: relative;
    }
    
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
    }
    
    .nav-toggle span,
    .nav-toggle::before,
    .nav-toggle::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }
    
    .nav-toggle::before {
        top: 0;
    }
    
    .nav-toggle span {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-toggle::after {
        bottom: 0;
    }
    
    .nav-toggle.active span {
        opacity: 0;
    }
    
    .nav-toggle.active::before {
        transform: translateY(10px) rotate(45deg);
    }
    
    .nav-toggle.active::after {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    .nav__list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav.active .nav__list {
        max-height: 500px;
    }
    
    .nav__list li {
        margin: 0;
    }
    
    .nav__list a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--light-grey);
    }
    
    .hero {
        height: 80vh;
    }
    
    .cookie-popup__content {
        flex-direction: column;
    }
    
    .cookie-popup__content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 24px;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .booking-form {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
} 