/* Base Styles */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #5D4037;
    --accent-color: #80DEEA;
    --background-color: #ffffff;
    --light-background: #f5f5f5;
    --text-color: #333333;
    --light-text: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px 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: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

ul {
    list-style: none;
    padding-left: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 0 rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(93, 64, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(93, 64, 55, 0.3);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 0 rgba(128, 222, 234, 0.3);
}

.btn-accent:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(93, 64, 55, 0.3);
}

.btn-accent:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(93, 64, 55, 0.3);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo-svg {
    display: block;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    position: relative;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 0;
}

.nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover:before {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background-color: #e8f5e9;
    overflow: hidden;
}

.hero-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.hero-wave-top svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.hero-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.hero-wave-bottom svg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.hero-content .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transform: rotate(2deg);
}

/* About Section */
.about {
    background-color: var(--light-background);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transform: rotate(-2deg);
}

.fruit-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.fruit-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234CAF50'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* Services Section */
.services {
    background-color: var(--background-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Substitute Section */
.substitute {
    background-color: var(--light-background);
}

.substitute-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.substitute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.substitute-item {
    text-align: center;
}

.substitute-arrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.substitute-from, .substitute-to {
    flex: 1;
}

.substitute-from img, .substitute-to img {
    border-radius: 50%;
    object-fit: cover;
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
    box-shadow: var(--box-shadow);
}

.arrow-svg {
    flex: 0 0 50px;
}

/* Menu Section */
.menu {
    background-color: var(--background-color);
}

.seasonal-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.seasonal-tab {
    padding: 12px 24px;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.seasonal-tab.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.menu-season {
    display: none;
}

.menu-season.active {
    display: block;
}

.menu-day h3 {
    text-align: center;
    margin-bottom: 30px;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.meal-card {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.meal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.meal-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.meal-card h4, .meal-card p {
    padding: 0 20px;
}

.meal-card h4 {
    margin-top: 15px;
}

.meal-card p {
    padding-bottom: 20px;
}

/* Nutrition Section */
.nutrition {
    background-color: var(--light-background);
}

.nutrition-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nutrition-text {
    flex: 1;
}

.nutrition-plate {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nutrition-list li {
    margin-bottom: 15px;
}

/* Myths Section */
.myths {
    background-color: var(--background-color);
}

.myths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.myth-card {
    display: flex;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    gap: 20px;
}

.myth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.myth-icon {
    flex: 0 0 60px;
}

.myth-content {
    flex: 1;
}

.myth-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-background);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar {
    display: inline-block;
    margin-bottom: 15px;
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star, .star-half {
    display: block;
}

/* Contact Section */
.contact {
    background-color: var(--background-color);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-mail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.contact-form {
    flex: 1;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 80px 0 30px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
}

.footer-wave svg {
    position: absolute;
    bottom: 0;
    width: 100;
    height: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-logo p {
    margin-top: 15px;
    opacity: 0.8;
}

.footer h3 {
    color: var(--light-text);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-nav ul,
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .hero-content .container {
        flex-direction: column;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .nutrition-content {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .hero {
        padding: 130px 0 70px;
    }
    
    .substitute-arrow {
        flex-direction: column;
        gap: 20px;
    }
    
    .arrow-svg {
        transform: rotate(90deg);
    }
    
    .meal-grid {
        grid-template-columns: 1fr;
    }
    
    .myth-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-item {
        margin-bottom: 5px;
    }
    
    .service-card, .substitute-item, .meal-card, .myth-card, .testimonial-card {
        padding: 20px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

/* CSS для сторінок політик */
.policy-page {
    padding: 120px 0 80px;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.policy-title {
    text-align: center;
    margin-bottom: 40px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.policy-section p, .policy-section ul {
    margin-bottom: 15px;
}

.policy-section ul {
    padding-left: 20px;
}

.policy-section ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.policy-section ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.back-btn {
    display: inline-block;
    margin-top: 30px;
}

/* CSS для сторінки Дякуємо */
.thankyou-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--light-background);
}

.thankyou-content {
    max-width: 600px;
    padding: 50px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thankyou-icon {
    margin-bottom: 30px;
}

.thankyou-title {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.thankyou-text {
    margin-bottom: 30px;
}

/* Анимація при наведенні для кнопок */
.btn {
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}