/* Загальні стилі */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #FF8A65;
    --text-color: #333333;
    --light-color: #FFFFFF;
    --bg-color: #F8F9FA;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 10px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.primary-btn:hover {
    background-color: #1B5E20;
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

/* Декоративні елементи */
.corner-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.15;
    border: 3px solid var(--primary-color);
    z-index: 0;
}

.top-right {
    top: 30px;
    right: 30px;
    border-top: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
    border-bottom: none;
    border-left: none;
}

.bottom-left {
    bottom: 30px;
    left: 30px;
    border-bottom: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
    border-top: none;
    border-right: none;
}

blockquote {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.2rem;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    margin: 20px 0;
}

/* Хедер і навігація */
header {
    background-color: var(--light-color);
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav li a {
    position: relative;
    font-weight: 600;
    padding: 5px 0;
}

.main-nav li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav li a:hover:after,
.main-nav li a.active:after {
    width: 100%;
}

/* Герой-секція */
.hero-section {
    padding: 60px 0 120px;
    position: relative;
    background-image: linear-gradient(to bottom, rgba(46, 125, 50, 0.05), rgba(46, 125, 50, 0.1));
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-left {
    width: 50%;
    padding-right: 40px;
}

.hero-left p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-right {
    width: 50%;
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px var(--shadow-color);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-image-container:hover {
    transform: rotate(0);
}

.hero-image-container img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-image-container:hover img {
    transform: scale(1.05);
}

.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: 60px;
}

/* Про нас */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1;
}

.about-text {
    flex: 1;
}

/* Програми */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.program-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary-color);
    z-index: -1;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.program-icon {
    margin-bottom: 20px;
}

.program-card h3 {
    margin-bottom: 15px;
}

.program-card p {
    margin-bottom: 25px;
}

.program-card .btn {
    margin-top: auto;
}

/* Переваги */
.benefits-infographic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 16px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Харчування */
.nutrition-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nutrition-text {
    flex: 1;
}

.nutrition-image {
    flex: 1;
}

.nutrition-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.list-icon {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Рекомендації */
.precautions-infographic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.precaution-item {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 16px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.precaution-item:hover {
    transform: translateY(-5px);
}

.precaution-icon {
    margin-bottom: 15px;
}

.precaution-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 16px var(--shadow-color);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Контакти */
.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.contact-form {
    flex: 1;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Відгуки */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 20px var(--shadow-color);
    text-align: center;
    position: relative;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-card blockquote {
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* Футер */
footer {
    background-color: #222;
    color: var(--light-color);
    padding: 60px 0 30px;
}

footer h3 {
    color: var(--light-color);
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

footer h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-item.schedule {
    grid-column: 1;
    grid-row: 1;
}

.footer-item.quick-links {
    grid-column: 2;
    grid-row: 1;
}

.footer-item.info {
    grid-column: 1;
    grid-row: 2;
}

.footer-item.policies {
    grid-column: 2;
    grid-row: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.schedule-list li {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-list li:last-child {
    border-bottom: none;
}

.schedule-list .day {
    width: 30%;
    font-weight: 700;
}

.schedule-list .time {
    width: 30%;
    color: var(--secondary-color);
}

.schedule-list .program {
    width: 40%;
}

.footer-nav li, .policy-links li {
    margin-bottom: 10px;
}

.footer-nav a, .policy-links a {
    color: var(--light-color);
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-nav a:hover, .policy-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    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.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-left, .hero-right {
        width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .about-content, .nutrition-content {
        flex-direction: column-reverse;
    }
    
    .about-image, .about-text, .nutrition-text, .nutrition-image {
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
    
    .footer-item.schedule, .footer-item.quick-links, .footer-item.info, .footer-item.policies {
        grid-column: 1;
    }
    
    .footer-item.schedule {
        grid-row: 1;
    }
    
    .footer-item.quick-links {
        grid-row: 2;
    }
    
    .footer-item.info {
        grid-row: 3;
    }
    
    .footer-item.policies {
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .schedule-list .day, .schedule-list .time, .schedule-list .program {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .main-nav ul {
        gap: 10px;
    }
    
    .main-nav li a {
        font-size: 0.9rem;
    }
    
    .hero-left p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .corner-decoration {
        width: 100px;
        height: 100px;
    }
}

/* Ховер-ефекти з мікроанімаціями */
.primary-btn, .secondary-btn {
    position: relative;
    overflow: hidden;
}

.primary-btn::after, .secondary-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.primary-btn:hover::after, .secondary-btn:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.gallery-item {
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.program-card {
    position: relative;
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(46, 125, 50, 0.05), transparent);
    transition: height 0.3s ease;
    z-index: -1;
}

.program-card:hover::after {
    height: 100%;
}

.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-avatar {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.1);
}

/* Додаткові стилі для спеціальних ефектів */
.benefit-icon, .precaution-icon, .program-icon {
    transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon,
.precaution-item:hover .precaution-icon,
.program-card:hover .program-icon {
    transform: rotate(10deg);
}

/* Спеціальні стилі для кнопок при фокусі */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3);
}

input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Стилі для політик */
.policy-page {
    padding: 80px 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 10px 20px var(--shadow-color);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 40px;
}

.policy-container p {
    margin-bottom: 20px;
}

.policy-container ul, .policy-container ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-container ul li, .policy-container ol li {
    margin-bottom: 10px;
}

.policy-container h2 {
    margin-top: 40px;
    font-size: 1.8rem;
    text-align: left;
}

.policy-container h2:after {
    margin: 15px 0 0;
}

.back-home {
    display: inline-flex;
    align-items: center;
    margin-top: 40px;
    font-weight: 600;
    gap: 8px;
}

.back-home svg {
    transition: transform 0.3s ease;
}

.back-home:hover svg {
    transform: translateX(-5px);
}

/* Спасибо-страница */
.thank-you-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

.thank-you-container {
    max-width: 600px;
    padding: 60px;
    background-color: var(--light-color);
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 15px 30px var(--shadow-color);
}

.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you-container h1 {
    margin-bottom: 20px;
}

.thank-you-container p {
    margin-bottom: 30px;
}

/* Додаткові анімаційні ефекти */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.program-icon {
    animation: float 5s ease-in-out infinite;
}

.program-card:nth-child(2) .program-icon {
    animation-delay: 1s;
}

.program-card:nth-child(3) .program-icon {
    animation-delay: 2s;
}

.program-card:nth-child(4) .program-icon {
    animation-delay: 3s;
}

/* Спеціальні ефекти для заголовків */
h2 {
    position: relative;
}

h2::before, h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

h2::before {
    width: 120px;
    height: 1px;
    background-color: rgba(46, 125, 50, 0.3);
    bottom: -5px;
}

h2::after {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -6px;
}

section:hover h2::before {
    width: 150px;
}

section:hover h2::after {
    width: 100px;
}

/* Ефект обертання для іконок в футері */
.footer-logo svg {
    transition: transform 0.5s ease;
}

.footer-logo:hover svg {
    transform: rotate(360deg);
}

/* Специфічні стилі для мобільних пристроїв */
@media (max-width: 425px) {
    .hero-section {
        padding-top: 40px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .wave-divider {
        height: 40px;
    }
    
    .schedule-list li {
        display: block;
    }
}