/* Основні стилі */
:root {
    --primary-color: #1D4D4F;
    --secondary-color: #4A7C59;
    --accent-color: #9CC5A1;
    --light-color: #E9F5EA;
    --dark-color: #333333;
    --grey-color: #F8F9FA;
    --text-color: #333333;
    --body-font: 'PT Sans', sans-serif;
    --heading-font: 'PT Serif', serif;
}

* {
    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;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--grey-color);
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    margin: 10px 5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

/* Хедер і навігація */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-svg {
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin: 0 10px;
}

.main-nav ul li a {
    position: relative;
    padding: 5px 2px;
    font-weight: 600;
}

.main-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover:after,
.main-nav ul li a.active:after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    border-radius: 3px;
}

/* Герой секція */
.hero {
    padding: 180px 0 120px;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Секція "Про нас" */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Секція програм */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.program-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 50%;
}

.programs-image {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Секція переваг */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 50%;
}

/* Секція розкладу */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.schedule-day {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.schedule-day h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.schedule-item:last-child {
    border-bottom: none;
}

.time {
    font-weight: 700;
    color: var(--primary-color);
}

.class {
    color: var(--secondary-color);
}

.schedule-note {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
}

/* Секція приміщень */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.facility-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-8px);
}

.facility-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.facility-item h3, 
.facility-item p {
    padding: 0 20px;
}

.facility-item h3 {
    margin-top: 20px;
}

.facility-item p {
    padding-bottom: 20px;
}

/* Секція рекомендацій */
.recommendations-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.recommendations-text {
    flex: 1.5;
}

.recommendations-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.recommendations-text h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.recommendations-text ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.recommendations-text li {
    margin-bottom: 10px;
}

/* Секція відгуків */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial-item {
    display: flex;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
    border: 3px solid var(--accent-color);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
}

.testimonial-author {
    text-align: right;
    font-weight: 700;
    color: var(--primary-color);
}

/* Секція заходів */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-8px);
}

.event-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-item h3, 
.event-item p {
    padding: 0 20px;
}

.event-item h3 {
    margin-top: 20px;
}

.event-item p {
    margin-bottom: 20px;
}

/* Секція карти */
.map-container {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.location-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.location-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Секція FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Секція контактів */
.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-email {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.contact-email svg {
    margin-right: 10px;
}

.contact-form {
    flex: 2;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
}

.checkbox-label span {
    font-size: 0.9rem;
}

/* Футер */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-areas:
        "logo nav"
        "gallery links";
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    grid-area: logo;
}

.footer-logo a {
    color: white;
    display: flex;
    align-items: center;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-nav {
    grid-area: nav;
}

.footer-gallery {
    grid-area: gallery;
}

.footer-links {
    grid-area: links;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white;
    text-decoration: underline;
}

.footer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.footer-gallery-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.footer-gallery-grid img:hover {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Адаптивний дизайн */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    .hero {
        padding: 150px 0 100px;
    }
    .hero-container {
        flex-direction: column;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-content,
    .recommendations-content,
    .contact-content {
        flex-direction: column;
    }
    .about-image,
    .recommendations-image {
        margin-top: 30px;
    }
    .footer-grid {
        grid-template-areas:
            "logo"
            "nav"
            "gallery"
            "links";
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .main-nav {
        display: none;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .program-card,
    .benefit-item,
    .faq-item {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .btn {
        width: 100%;
        margin: 10px 0;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .testimonial-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .testimonial-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .testimonial-author {
        text-align: center;
    }
    .schedule-item {
        flex-direction: column;
        text-align: center;
    }
    .time {
        margin-bottom: 5px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .program-icon,
    .benefit-icon {
        width: 60px;
        height: 60px;
    }
}