/* Базові стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #8B0000;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666666;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
    color: var(--text-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.decoration {
    margin: 0 auto;
    width: 200px;
    height: 30px;
}

/* Хвилі для секцій */
.wave-top, .wave-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-top {
    top: 0;
}

.wave-bottom {
    bottom: 0;
}

.wave-top svg, .wave-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.wave-top path, .wave-bottom path {
    fill: var(--light-gray);
}

/* Хедер і навігація */
header {
    background-color: var(--background-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 1rem;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.main-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-nav a:hover .nav-icon {
    transform: translateY(-5px);
}

/* Герой-секція */
.hero {
    background-color: var(--light-gray);
    padding: 6rem 0 3rem;
    position: relative;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    max-width: 600px;
    margin-left: 2rem;
}

.collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 1rem;
    position: relative;
}

.collage-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.collage-item:hover {
    transform: scale(1.05);
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background-color: #3c9a3f;
    color: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 10px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(139, 0, 0, 0.3);
}

.btn-secondary:hover {
    background-color: #790000;
    color: white;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 10px rgba(139, 0, 0, 0.4);
}

/* Секція "Про нас" */
.about {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    margin-bottom: 1.5rem;
}

.feature-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Секція "Послуги" */
.services {
    background-color: var(--light-gray);
    padding: 6rem 0;
    position: relative;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin: 0 auto 1.5rem;
}

/* Секція "Графік харчування" */
.timeline {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 100px;
}

.timeline-point {
    position: absolute;
    top: 0;
    left: 50px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-time {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Секція "Міфи" */
.myths {
    background-color: var(--light-gray);
    padding: 6rem 0;
    position: relative;
}

.myths-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.myth-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.myth-card:hover {
    transform: translateY(-10px);
}

.myth-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}

.myth-icon {
    margin-right: 1rem;
    flex-shrink: 0;
}

.myth-header h3 {
    color: white;
    margin: 0;
}

.myth-content {
    padding: 1.5rem;
}

.myth, .reality {
    margin-bottom: 1rem;
}

.reality {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

/* Секція "Рецепти" */
.recipes {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recipes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-10px);
}

.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.1);
}

.recipe-difficulty {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.easy {
    background-color: var(--primary-color);
}

.medium {
    background-color: #FF9800;
}

.hard {
    background-color: var(--secondary-color);
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.recipe-time, .recipe-calories {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.recipe-time svg, .recipe-calories svg {
    margin-right: 0.5rem;
}

/* Секція "Галерея" */
.gallery {
    background-color: var(--light-gray);
    padding: 6rem 0;
    position: relative;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-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;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image {
    height: 200px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
}

.gallery-caption h3 {
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Секція "Контакти" */
.contact {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-email {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.contact-email svg {
    margin-right: 0.5rem;
}

.contact-form {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Футер */
footer {
    background-color: var(--light-gray);
    position: relative;
    padding-top: 6rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 1rem;
}

.footer-links, .footer-nav, .footer-contact {
    padding: 1.5rem;
}

.footer-links h3, .footer-nav h3, .footer-contact h3 {
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links h3::after, .footer-nav h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul, .footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-form {
    margin-top: 1.5rem;
}

.footer-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    margin-bottom: 1rem;
}

.footer-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.footer-bottom {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* Адаптивний дизайн */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero-image {
        max-width: 100%;
    }

    .hero-image {
        margin-left: 0;
        margin-top: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        gap: 1rem;
    }

    .nav-icon {
        width: 50px;
        height: 50px;
    }

    .myths-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-container::before {
        left: 35px;
    }

    .timeline-point {
        left: 35px;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo-container {
        margin-bottom: 1rem;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
    }

    .main-nav ul {
        padding: 0.5rem 0;
        width: max-content;
    }

    .main-nav span {
        font-size: 0.8rem;
    }

    .nav-icon {
        width: 40px;
        height: 40px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .services-container, .recipes-container, .gallery-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 375px) {
    .nav-icon {
        width: 35px;
        height: 35px;
    }

    .main-nav span {
        font-size: 0.7rem;
    }

    .hero {
        padding: 4rem 0 2rem;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-container::before {
        left: 25px;
    }

    .timeline-point {
        left: 25px;
    }
}