/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
}

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

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid #224EA1;
    box-shadow: 0 2px 10px rgba(34, 78, 161, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(34, 78, 161, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #224EA1;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #224EA1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #224EA1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-phone-link {
    color: #224EA1;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-phone-link:hover {
    color: #1a3d7a;
    text-decoration: underline;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #224EA1;
    transition: all 0.3s ease;
}

/* Главная секция */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #224EA1 0%, #1a3d7a 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 80vh;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: clamp(1.35rem, 2.8vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.25;
    max-width: 52rem;
}

.hero-org-requisites {
    font-size: 0.95rem;
    margin-bottom: 14px;
    opacity: 0.92;
    line-height: 1.5;
    max-width: 40rem;
}

.hero-venue {
    font-size: 1.55rem;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 600;
}

.hero-phone {
    font-size: 1.75rem;
    margin-bottom: 22px;
    font-weight: 600;
}

.hero-phone a {
    text-decoration: none;
}

.highlight {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
    max-width: 900px;
}

.hero-description strong {
    color: #ffffff;
    font-weight: 600;
}

.trainer-name {
    font-size: 1.8rem;
    display: block;
    margin: 10px 0;
}

.hero-address-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.hero-address-link:hover {
    border-bottom-color: #ffffff;
    opacity: 0.9;
}

.btn-smaller {
    padding: 12px 24px;
    font-size: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #ffffff;
    color: #224EA1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Изображения в hero */
.hero-images {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-main {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-image-main img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: rotate(-15deg);
    z-index: 3;
    border: 4px solid #ffffff;
}

.hero-image-overlay img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Секции */
section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #224EA1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* О тренере */
.about {
    background: #ffffff;
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
    color: #333;
}

.about-text strong {
    color: #224EA1;
}

.trainer-info {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #224EA1;
}

.info-item {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item strong {
    color: #224EA1;
}

/* Галерея */
.gallery {
    padding: 60px 0;
    background: #f8f9fa;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(34, 78, 161, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(34, 78, 161, 0.2);
    border-color: #224EA1;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    background: #f0f0f0;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.gallery-description {
    padding: 25px;
}

.gallery-description p {
    color: #333;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Расписание */
.schedule {
    background: #ffffff;
    position: relative;
}

.schedule-content {
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.schedule-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #224EA1;
}

.schedule-card h3 {
    color: #224EA1;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.schedule-card ul {
    list-style: none;
    padding: 0;
}

.schedule-card li {
    padding: 10px 0;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1rem;
}

.schedule-card li:last-child {
    border-bottom: none;
}

.schedule-card li strong {
    color: #224EA1;
    font-weight: 600;
}

.prices-section {
    margin-top: 40px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #224EA1;
}

.prices-section h3 {
    color: #224EA1;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.price-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #224EA1;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(34, 78, 161, 0.2);
}

.price-card h4 {
    color: #224EA1;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.price-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.price-time {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-style: italic;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #224EA1;
    margin: 15px 0;
}

.price-label {
    color: #666;
    font-size: 0.9rem;
}

.price-disclaimer {
    text-align: center;
    color: #224EA1;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    padding: 15px;
    background: rgba(34, 78, 161, 0.1);
    border-radius: 8px;
}

.age-info {
    text-align: center;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 20px;
}

/* Контакты */
.contact {
    background: #f8f9fa;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 526px 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
    align-items: start;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #224EA1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    color: #333;
    line-height: 1.6;
}

.contact-link {
    color: #224EA1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: #1a3d7a;
    border-bottom-color: #224EA1;
}

.contact-photo {
    width: 526px;
    height: 744px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(34, 78, 161, 0.2);
    border: 2px solid #224EA1;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.map-container {
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    border: 2px solid #224EA1;
    box-shadow: 0 4px 15px rgba(34, 78, 161, 0.1);
    width: 506px;
    height: 400px;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.map-wrapper #yandex-map {
    width: 100% !important;
    height: 100% !important;
}

/* Футер */
.footer {
    background: #224EA1;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-logo p {
    margin-top: 5px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.9;
}

/* Модальное окно галереи */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gallery-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.gallery-modal-close:hover {
    color: #224EA1;
}

#gallery-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-modal-description {
    margin-top: 20px;
    color: #e5e5e5;
    text-align: center;
    max-width: 800px;
    line-height: 1.6;
    font-size: 1rem;
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
}

.gallery-nav-btn {
    background: rgba(34, 78, 161, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav-btn:hover {
    background: #224EA1;
    transform: scale(1.1);
}

.gallery-nav-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-phone {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(34, 78, 161, 0.2);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-images {
        max-width: 400px;
    }

    .hero-image-overlay {
        bottom: -20px;
        right: -20px;
        width: 50%;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-org-requisites {
        font-size: 0.85rem;
    }

    .hero-venue {
        font-size: 1.35rem;
    }

    .hero-phone {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .prices-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-photo {
        width: 100%;
        max-width: 526px;
        height: auto;
        aspect-ratio: 526 / 744;
        margin: 0 auto;
    }

    .contact-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .map-container {
        width: 100%;
        max-width: 506px;
        height: auto;
        aspect-ratio: 506 / 400;
    }

    .map-wrapper #yandex-map {
        width: 100% !important;
        height: 100% !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-org-requisites {
        font-size: 0.8rem;
    }

    .hero-venue {
        font-size: 1.25rem;
    }

    .hero-phone {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .schedule-card,
    .price-card {
        padding: 20px;
    }

    .prices-section {
        padding: 25px;
    }

    .contact-photo {
        width: 100%;
        max-width: 526px;
        height: auto;
        aspect-ratio: 526 / 744;
        margin: 0 auto;
    }

    .map-container {
        width: 100%;
        max-width: 506px;
        height: auto;
        aspect-ratio: 506 / 400;
    }

    .contact-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

/* Улучшения для accessibility */
.nav-link:focus,
.btn:focus {
    outline: 2px solid #224EA1;
    outline-offset: 2px;
}
