/* Основні стилі */
:root {
    --primary-color: #1F4E2A;
    --secondary-color: #000000;
    --accent-color: #6AACCD;
    --light-color: #f5f8ff;
    --text-color: #333333;
    --background-color: #ffffff;
    --header-font: 'Spectral', serif;
    --body-font: 'IBM Plex Sans', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70%;
    height: 3px;
    background-color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Хедер і навігація */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.logo-svg {
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    display: inline-block;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-group {
    position: relative;
}

.nav-group span {
    display: block;
    font-weight: 500;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-group span:hover {
    color: var(--primary-color);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-group:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    display: block;
    width: 100%;
}

.submenu a {
    display: block;
    padding: 8px 20px;
    width: 100%;
}

.mobile-menu-icon {
    display: none;
    cursor: pointer;
}

/* Герой-секція */
.hero-section {
    padding: 0;
    background: linear-gradient(135deg, #1F4E2A 0%, #000000 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero-content {
    padding: 6rem 0 9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
    min-width: 300px;
}

.hero-text h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-calendar {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.hero-calendar:hover {
    transform: rotate(0) scale(1.02);
}

.hero-calendar h2 {
    color: white;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-calendar:after {
    display: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.calendar-day {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
}

.day-title {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.day-event {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.day-event.beginner {
    background-color: rgba(106, 172, 205, 0.3);
}

.day-event.intermediate {
    background-color: rgba(31, 78, 42, 0.3);
}

.day-event.advanced {
    background-color: rgba(0, 0, 0, 0.3);
}

.time {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.event-name {
    display: block;
}

.view-full {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: white;
    font-weight: 500;
    text-decoration: underline;
}

/* Секція про нас */
.about-section {
    text-align: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.benefits-list {
    margin-top: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.about-image {
    flex: 1;
    min-width: 300px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.about-image img {
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Календар занять */
.calendar-section {
    text-align: center;
}

.level-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.level {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.level:hover, .level.active {
    background-color: var(--primary-color);
    color: white;
}

.level:hover .level-icon path, .level.active .level-icon path {
    stroke: white;
}

.level-icon {
    margin-right: 10px;
}

.full-calendar {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.weekday-headers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    font-weight: 600;
}

.calendar-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.day {
    padding: 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.day:nth-child(6n) {
    border-right: none;
}

.timeslot {
    margin-bottom: 20px;
}

.timeslot:last-child {
    margin-bottom: 0;
}

.time {
    font-size: 0.9rem;
    color: var(--text-color);
}

.event {
    background-color: rgba(106, 172, 205, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 10px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin-top: 5px;
}

.event h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.event p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.event.beginner {
    background-color: rgba(106, 172, 205, 0.1);
    border-left-color: var(--accent-color);
}

.event.intermediate {
    background-color: rgba(31, 78, 42, 0.1);
    border-left-color: var(--primary-color);
}

.event.advanced {
    background-color: rgba(0, 0, 0, 0.05);
    border-left-color: var(--secondary-color);
}

.trainer {
    font-size: 0.8rem;
    font-style: italic;
    display: block;
}

/* Секція видів тренування */
.training-types-section {
    text-align: center;
}

.training-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.training-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: left;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.training-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.training-card:hover img {
    transform: scale(1.05);
}

.training-card h3 {
    padding: 15px 20px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.training-benefits {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 20px;
    font-size: 0.9rem;
}

.training-card p {
    padding: 15px 20px 20px;
    font-size: 0.95rem;
}

/* Історії успіху */
.success-stories-section {
    text-align: center;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.story-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.story-image {
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.story-card:hover .story-image img {
    transform: scale(1.05);
}

.story-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.story-duration {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.story-quote {
    background-color: rgba(31, 78, 42, 0.05);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.1;
    width: 30px;
    height: 30px;
}

.story-quote p {
    font-style: italic;
    position: relative;
    z-index: 1;
}

.story-progress {
    margin-top: auto;
    font-weight: 500;
}

/* Галерея */
.gallery-section {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    color: white;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* FAQ секція */
.faq-section {
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    padding-right: 20px;
}

.faq-icon {
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item:hover .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    text-align: left;
}

/* Контактна форма */
.contact-section {
    text-align: center;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form-container {
    flex: 1;
    min-width: 320px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(31, 78, 42, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 4px;
}

.contact-info {
    flex: 1;
    min-width: 320px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-experts {
    grid-column: span 2;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.experts-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.expert {
    display: flex;
    align-items: center;
    gap: 15px;
}

.expert-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-info h4 {
    margin-bottom: 5px;
}

.expert-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Футер */
.site-footer {
    background: linear-gradient(135deg, #000000 0%, #1F4E2A 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
}

.footer-logo {
    grid-column: span 3;
    margin-bottom: 2rem;
}

.footer-logo p {
    max-width: 400px;
    margin-top: 1rem;
}

.footer-nav, .footer-programs, .footer-contacts {
    grid-column: span 1;
}

.footer-docs {
    grid-column: span 3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
}

.site-footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.site-footer h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: white;
}

.site-footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: white;
}

.footer-email {
    color: white;
    font-weight: 500;
}

.footer-docs ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптивність */
@media (max-width: 1200px) {
    .calendar-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .weekday-headers {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .day:nth-child(3n) {
        border-right: none;
    }
    
    .day:nth-child(6n) {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        margin-bottom: 2rem;
        padding-right: 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        grid-column: span 2;
    }
    
    .footer-contacts {
        grid-column: span 2;
    }
    
    .footer-docs {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-icon {
        display: block;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-content, .weekday-headers {
        grid-template-columns: 1fr;
    }
    
    .day {
        border-right: none;
    }
    
    .day:nth-child(6n) {
        border-right: none;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-logo, .footer-contacts, .footer-docs {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content {
        padding: 4rem 0 7rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .training-cards, .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-experts {
        grid-column: span 1;
    }
    
    .experts-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
}