/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Скрытые элементы для скринридеров */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Улучшенная доступность для фокуса */
*:focus {
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
}

/* Улучшенная доступность для кнопок */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
}

/* Улучшенная доступность для чекбоксов */
input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid #ff4d4d;
    outline-offset: 2px;
}

:root {
    --primary-color: #ff4d4d;
    --secondary-color: #ff6b35;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #ff4d4d 0%, #ff6b35 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 40px rgba(255, 77, 77, 0.2);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: var(--dark-bg);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--light-text);
}

.btn-vk {
    background: #4c75a3;
    color: var(--light-text);
}

.btn-whatsapp:hover,
.btn-vk:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.phone-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.vk {
    background: #4c75a3;
}

.social-link:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Валидация форм */
.form-group {
    position: relative;
}

.form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.field-error::before {
    content: "⚠️";
    font-size: 0.8rem;
}

/* Анимация появления ошибки */
.field-error {
    animation: slideInError 0.3s ease-out;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Подсказки для полей */
.field-hint {
    color: #3498db;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: slideInHint 0.3s ease-out;
}

.field-hint::before {
    content: "💡";
    font-size: 0.7rem;
}

@keyframes slideInHint {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__content {
    width: 100%;
    height: 100%;
    background: transparent;
    margin: 0;
    overflow: hidden;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-menu__title:hover {
    color: var(--light-text);
}

.mobile-menu__title i {
    font-size: 1rem;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu__link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-menu__link i {
    width: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.mobile-menu__link span {
    font-weight: 500;
    font-size: 1rem;
}



/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

/* Мобильные контакты */
.mobile-contacts {
    display: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.mobile-phone-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-phone-link:hover {
    color: var(--primary-color);
}

.mobile-phone-link i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.mobile-social-links {
    display: flex;
    gap: 1.2rem;
}

.mobile-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.mobile-social-link.whatsapp {
    background: #25d366;
    color: white;
}

.mobile-social-link.vk {
    background: #4c75a3;
    color: white;
}

.mobile-social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.hero__text {
    align-self: flex-start;
}

.hero__title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.hero__features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Timer */
.timer-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

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

.timer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timer__number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    background: rgba(255, 77, 77, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 60px;
    text-align: center;
    transition: transform 0.1s ease;
}

.timer__label {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: 0.5rem;
}

.timer-description {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    background: rgba(255, 77, 77, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.form-group input.error {
    border-color: #ff4d4d;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
}

.field-error {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: bold;
}

.bonus-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
    background: var(--darker-bg);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--light-text);
}

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

/* About Section */
.about {
    padding: 80px 0;
    background: var(--dark-bg);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__description,
.about__mission {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about__mission {
    color: var(--primary-color);
    font-weight: 600;
}

.about__image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Groups Section */
.groups {
    padding: 80px 0;
    background: var(--darker-bg);
}

.groups__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.group-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.group-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.group-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.group-age {
    background: var(--gradient-primary);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

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

/* Martial Arts Section */
.martial-arts {
    padding: 80px 0;
    background: var(--dark-bg);
}



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

.martial-art-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.martial-art-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.martial-art-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-text);
}

.martial-art-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--darker-bg);
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.review-card.hidden-review {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.review-card.show-review {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: serif;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding-top: 1rem;
}

.review-author strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.review-author span {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.reviews__load-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary.hidden {
    display: none;
}

/* Gallery Section */
.gallery {
    padding: 80px 0;
    background: var(--dark-bg);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item-hidden {
    display: none;
    opacity: 0;
    -webkit-transform: translateY(20px);
    -ms-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: opacity 0.5s ease, -webkit-transform 0.5s ease;
    -o-transition: opacity 0.5s ease, transform 0.5s ease;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item-hidden.show {
    display: block;
    opacity: 1;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.gallery__show-more {
    text-align: center;
    margin-top: 40px;
    display: block;
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.gallery__show-more .btn {
    min-width: 200px;
    justify-content: center;
}



/* CTA Section */
.cta {
    padding: 80px 0;
    background: var(--gradient-dark);
}

.cta__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta__text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta__text p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.contact-item a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.footer__map {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.footer__map iframe {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.footer__map a[style*="color:#eee"] {
    color: var(--gray-text) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__map a[style*="color:#eee"]:hover {
    color: var(--primary-color) !important;
}

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

.footer__social .social-links {
    flex-direction: column;
    gap: 1rem;
}

.footer__social .social-link {
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    justify-content: flex-start;
    gap: 0.5rem;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal__close {
    background: none;
    border: none;
    color: var(--gray-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    color: var(--primary-color);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    opacity: 1;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: var(--primary-color);
}

.image-modal-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    max-width: 100%;
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.image-modal-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    left: -70px;
}

.image-modal-next {
    right: -70px;
}

@media (max-width: 768px) {
    .image-modal-nav {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .image-modal-prev {
        left: 10px;
    }
    
    .image-modal-next {
        right: 10px;
    }
    
    .image-modal-close {
        top: -30px;
        right: 0;
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .groups__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header__contacts {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    

    
    .mobile-menu__link {
        padding: 1rem 1.2rem;
    }
    
    .mobile-menu__link span {
        font-size: 0.95rem;
    }
    
    .mobile-contacts {
        display: flex;
        margin-top: 1rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.2rem;
    }
    
    .hero__features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timer {
        gap: 0.25rem;
    }
    
    .timer__number {
        font-size: 1.2rem;
        min-width: 40px;
    }
    
    .timer__label {
        font-size: 0.7rem;
    }
    
    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .advantage-card h3 {
        font-size: 1.1rem;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .groups__grid {
        grid-template-columns: 1fr;
    }
    
    .martial-arts__grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__show-more {
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .gallery__show-more .btn {
        min-width: 180px;
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
    }
    
    .cta__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .mobile-contacts {
        gap: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .mobile-phone-link {
        font-size: 1.4rem;
    }
    
    .mobile-social-link {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .mobile-social-links {
        justify-content: center;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .timer {
        flex-wrap: wrap;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .martial-arts__grid {
        grid-template-columns: 1fr;
    }
    
    .reviews__grid {
        grid-template-columns: 1fr;
    }
    
    .gallery__show-more {
        margin-top: 25px;
        padding: 10px 0;
    }
    
    .gallery__show-more .btn {
        min-width: 160px;
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus styles for accessibility */
.btn:focus,
input:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .btn,
    .timer-block,
    .contact-form {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
} 