/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e1e5e9;
    height: 80px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
}

.nav-logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #0066cc;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Общие стили для заголовков секций */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

@media (max-width: 768px) {
    section h2 {
        font-size: 1.5rem; /* Уменьшен с 1.8rem */
        margin-bottom: 1rem; /* Уменьшен с 1.5rem */
    }
    
    /* Уменьшаем отступ после первого блока */
    .hero + section {
        padding-top: 0.5rem; /* Уменьшен с 1rem */
    }
    
    /* Уменьшаем отступы между секциями */
    section {
        padding: 0.5rem 0; /* Уменьшен с 1rem */
    }
    
    /* Еще больше уменьшаем отступ после первого блока */
    .hero + section {
        padding-top: 0.25rem; /* Уменьшен с 0.5rem */
    }
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,40,80,0.7), rgba(0,40,80,0.7)), url(gallery/hero-bg.avif) center center/cover no-repeat;
    color: white;
    padding: 80px 0 80px;
    margin-top: 0;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.hero-content {
    flex: unset;
    max-width: unset;
    width: 100%;
}

.hero h1 {
    font-size: 3.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-locations {
    font-size: 1rem !important;
    opacity: 0.9 !important;
    font-style: italic;
    padding: 1rem;
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    border-left: 4px solid #00d4ff;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #00d4ff;
    color: white;
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0066cc;
    transform: translateY(-2px);
}

/* Обо мне */
.about {
    background: #f8f9fa;
    padding: 120px 0 80px; /* 80px навигация + 40px дополнительный отступ */
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0066cc;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.locations-info {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.locations-info h4 {
    color: #0066cc;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.locations-info ul {
    list-style: none;
    margin-bottom: 1rem;
}

.locations-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.locations-info li:last-child {
    border-bottom: none;
}

.location-note {
    font-style: italic;
    color: #0066cc;
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #0066cc;
}

/* Достижения */
.achievements {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* По 2 в ряд */
    gap: 1rem;
    margin-top: 2rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
}

.achievement:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.achievement i {
    color: #0066cc;
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.trainer-photo {
    width: 600px;
    height: auto; /* Автоматическая высота */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    margin: 0 auto;
}

.trainer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image .trainer-photo img[src="gallery/photo_tren.jpg"] {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

/* Услуги */
.services {
    background: white;
    padding: 120px 0 80px; /* 80px навигация + 40px дополнительный отступ */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Показываем сетку на десктопе */
@media (min-width: 769px) {
    .services-grid {
        display: grid;
    }
    
    .services-carousel {
        display: none;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.service-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-card li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

.service-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.service-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.service-details p:last-child {
    margin-bottom: 0;
}

/* Галерея */
.gallery {
    background: #f8f9fa;
    padding: 120px 0 80px; /* 80px навигация + 40px дополнительный отступ */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.gallery-placeholder span {
    font-size: 1rem;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Контакты */
.contact {
    background: white;
    padding: 120px 0 80px; /* 80px навигация + 40px дополнительный отступ */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info, .contact-form {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    margin-top: 0;
    text-align: left;
    line-height: 1.2;
}

.contact-info h4,
.contact-info p,
.contact-item,
.contact-form label,
.contact-form .form-group,
.contact-form textarea,
.contact-form input,
.contact-form select {
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.contact-info h4:last-child,
.contact-info p:last-child,
.contact-item:last-child,
.contact-form .form-group:last-child {
    margin-bottom: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.contact-item i {
    color: #0066cc;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    background: white;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Футер */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00d4ff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Адаптивность */
    @media (max-width: 768px) {
        .nav-menu {
            display: none;
        }
        
        .nav-toggle {
            display: flex !important;
        }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .achievements {
        grid-template-columns: repeat(2, 1fr); /* По 2 в ряд на планшетах */
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .trainer-photo {
        width: 280px;
        height: auto; /* Автоматическая высота */
    }
    
    .pool-photo {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Фото тренера для очень маленьких экранов */
    .trainer-photo {
        width: 95vw;
        max-width: 350px;
        height: auto; /* Автоматическая высота */
    }
    
    .pool-photo {
        height: 450px;
    }
    
    /* Дополнительные улучшения для карусели на маленьких экранах */
    .carousel-track .service-card {
        width: 33.333%;
        padding: 0 3px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .service-card li {
        font-size: 0.85rem;
        line-height: 1.4;
        padding: 0.5rem 0;
    }
    
    .service-details p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* Улучшенные отступы для очень маленьких экранов */
    .container {
        padding: 0 10px;
    }
    
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
        padding: 0 0.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .achievements {
        grid-template-columns: repeat(2, 1fr); /* По 2 в ряд на мобильных */
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .achievement {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .achievement i {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .achievement span {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* Анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.gallery-item,
.contact-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Удаляю старые стили hero-image и pool-photo */
.hero-image, .pool-photo { display: none !important; }

.pools {
    background: #f8f9fa;
    padding: 120px 0 80px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden;
}
.pools-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100vw;
    margin: 0;
}
.pool-block {
    position: relative;
    overflow: hidden;
}
.pool-block img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    display: block;
}
.pool-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0,40,80,0.7);
    color: #fff;
    font-size: 1.2rem;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}
@media (max-width: 900px) {
    .pools-row {
        grid-template-columns: 1fr;
    }
    .pool-block img {
        height: 350px;
    }
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-info, .contact-form {
        min-height: unset;
    }
}

/* Цены */
.prices {
    background: white;
    padding: 120px 0 80px;
}
.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.price-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    transition: left 0.5s ease;
    z-index: 1;
    opacity: 0.1;
}
.price-card:hover::before {
    left: 0;
}
.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
}

.price-card.featured:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
}
.price-card.featured {
    border-color: #e1e5e9;
    background: white;
    transform: none;
}
.price-card.featured:hover {
    transform: translateY(-10px);
}
.price-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    z-index: 2;
}
.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}
.price-features {
    position: relative;
    z-index: 2;
}
.price-features ul {
    list-style: none;
    text-align: left;
}
.price-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}
.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}

/* FAQ */
.faq {
    background: #f8f9fa;
    padding: 120px 0 80px;
}
.faq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}
.rules-section h3,
.faq-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #333;
}
.rule-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}
.rule-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rule-item h4 i {
    color: #0066cc;
}
.rule-item p {
    color: #666;
    line-height: 1.6;
}
.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}
.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}
.faq-question:hover {
    background: #f8f9fa;
}
.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}
.faq-question i {
    color: #0066cc;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 900px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .prices-grid {
        grid-template-columns: 1fr;
    }
    .price-card.featured {
        transform: none;
    }
    .price-card.featured:hover {
        transform: translateY(-10px);
    }
}

.pool-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}
.pool-image:hover {
    transform: scale(1.02);
}

/* Модальные окна для бассейнов */
.pool-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.pool-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.pool-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}
.pool-modal-close:hover {
    color: #0066cc;
}
.pool-modal h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
    padding-right: 3rem;
}
.pool-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.pool-modal-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.pool-modal-gallery img:hover {
    transform: scale(1.05);
}
.pool-modal-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    margin-top: 1.5rem;
}
.pool-modal-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.pool-modal-info ul {
    list-style: none;
    margin-bottom: 1rem;
}
.pool-modal-info li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}
.pool-modal-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0066cc;
    font-weight: bold;
}
.pool-modal-info li.no-check::before {
    content: none !important;
    position: static !important;
    color: inherit !important;
}
.pool-modal-info li.no-check {
    padding-left: 0;
}
@media (max-width: 768px) {
    .pool-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    .pool-modal h3 {
        font-size: 1.5rem;
    }
    .pool-modal-gallery {
        grid-template-columns: 1fr;
    }
    .pool-modal-gallery img {
        height: 200px;
    }
} 

.checkmark {
    color: #0066cc;
    font-weight: bold;
    margin-right: 0.5em;
}
.no-check {
    list-style: none;
    padding-left: 0;
} 

/* Мобильное меню */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
        display: flex !important;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Исправляем порядок в секции "Обо мне" */
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .trainer-photo {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .trainer-photo img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }
    
    /* Убираем точки в подзаголовке */
    .subtitle {
        font-size: 1rem;
        color: #666;
        margin-bottom: 1rem;
    }
    
    /* Достижения в 2 строки */
    .achievements {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .achievement {
        text-align: center;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 10px;
        transition: transform 0.3s ease;
    }
    
    .achievement:hover {
        transform: translateY(-5px);
    }
    
    .achievement i {
        font-size: 2rem;
        color: #0066cc;
        margin-bottom: 0.5rem;
    }
    
    .achievement span {
        font-size: 0.9rem;
        font-weight: 500;
        color: #333;
    }
    
    /* Скрываем обычную сетку на мобилке */
    .services-grid {
        display: none;
    }
    
    /* Показываем карусель только на мобильных */
    .services-carousel {
        position: relative;
        overflow: hidden;
        margin: 2rem 0;
        display: block;
    }
    
    .carousel-container {
        overflow: hidden;
        width: 100%;
    }
    
    .carousel-track {
        display: flex;
        transition: transform 0.5s ease;
    }
    
    .carousel-track .service-card {
        flex: 0 0 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }
    
    .carousel-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        gap: 2rem; /* Увеличен отступ между кнопками */
        width: 100%;
    }
    
    .carousel-btn {
        background: #0066cc;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .carousel-btn:hover {
        background: #0052a3;
        transform: scale(1.1);
    }
    
    .carousel-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }
    
    .carousel-dots {
        display: flex;
        gap: 0.5rem;
    }
    
    .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .dot.active {
        background: #0066cc;
        transform: scale(1.2);
    }
    
    .dot:hover {
        background: #0066cc;
    }
} 

/* Десктопная сетка */
.desktop-only {
    display: block;
}

/* Скрываем карусель на десктопе */
@media (min-width: 769px) {
    .services-carousel {
        display: none !important;
    }
    
    .services-grid {
        display: grid !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .services-carousel {
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-bottom: 0.5rem !important;
    }

    .carousel-container {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        width: 100%;
    }

    .carousel-track {
        display: flex;
        transition: transform 0.5s ease-in-out;
        width: 100%;
    }

    .service-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 2rem 1.5rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .service-card ul {
        list-style: none;
        padding-left: 0px;
        margin: 0;
    }

    .service-card li {
        padding-left: 1.5rem;
        position: relative;
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        text-align: left;
        min-height: 1.4em; /* Минимальная высота для выравнивания */
        display: flex;
        align-items: flex-start;
    }
    
    .service-card li::before {
        content: '✓';
        position: absolute;
        left: 0;
        top: 0;
        color: #0066cc;
        font-weight: bold;
        flex-shrink: 0;
    }

    .services-carousel h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .services-carousel p,
    .services-carousel li {
        font-size: 0.85rem;
    }

    .carousel-controls {
        display: flex;
        justify-content: center; /* Центрирование */
        gap: 1rem; /* Расстояние между кнопками */
        margin-top: 1rem;
    }

    .services,
    .prices,
    .pools,
    .about,
    .pools,
    .faq {
        padding: 80px 0 80px !important; /* Увеличены отступы для мобильной версии */
    }

    .section-title,
    .services h2,
    .prices h2,
    .pools h2,
    .about h2,
    .pools h2,
    .faq h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.6rem !important;
    }

    .about {
        padding-bottom: 10px !important;
    }

    .services {
        padding-bottom: 10px !important;
    }

    .about-content,
    .services-grid {
        margin-bottom: 0.5rem !important;
    }

    .about-content,
    .faq-content {
        margin-bottom: 0.2rem !important;
    }

    .about .subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
    }

    .achievements {
        gap: 0.5rem;
        margin-top: 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* По 2 в ряд */
    }

    .achievement {
        padding: 0.7rem;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .achievement i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .achievement span {
        font-size: 0.8rem;
    }

    .container {
        padding: 0 7px;
    }
}
