/* Базові стилі */
:root {
    --primary-color: #4CAF50;
    --primary-light: rgba(76, 175, 80, 0.1);
    --accent-color: #FF7F50;
    --accent-light: rgba(255, 127, 80, 0.1);
    --dark-color: #333333;
    --light-color: #FFFFFF;
    --grey-color: #F5F5F5;
    --grey-dark: #AAAAAA;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

ul {
    list-style: none;
}

section {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.utensil-divider {
    margin: 1rem auto;
    text-align: center;
}

/* Заголовок */
header {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Хвилясті розділювачі */
.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: 50px;
    transform: rotateY(180deg);
}

.wave-divider path {
    fill: var(--light-color);
}

.wave-divider.inverted {
    top: 0;
    bottom: auto;
}

.wave-divider.inverted svg {
    transform: rotate(180deg);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn.primary:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Герой-секція */
.hero {
    background-color: var(--light-color);
    padding: 6rem 5% 6rem;
    margin-bottom: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 20px;
    right: -20px;
    bottom: -20px;
    z-index: 0;
    opacity: 0.1;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    background-color: var(--accent-color);
    border-radius: 20px;
    left: -20px;
    top: -20px;
    z-index: 0;
    opacity: 0.1;
}

/* Про нас */
.about {
    background-color: var(--grey-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 20px;
    left: -20px;
    bottom: -20px;
    z-index: 0;
    opacity: 0.1;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Послуги */
.services {
    background-color: var(--light-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Замени це на те */
.replace-section {
    background-color: var(--grey-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.replace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.replace-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.replace-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.replace-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.replace-icon-left,
.replace-icon-right {
    background-color: var(--light-color);
    border-radius: 50%;
    padding: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.replace-arrow {
    margin: 0 1rem;
}

.replace-text {
    text-align: center;
}

.replace-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Рецепти дня */
.recipes {
    background-color: var(--light-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-card {
    background-color: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:var(--transition);
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.recipe-image {
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--grey-dark);
}

.recipe-info span {
    display: flex;
    align-items: center;
}

.recipe-info i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.recipe-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--grey-dark);
}

.nutrition-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nutrition-info span {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Сезонне меню */
.seasonal {
    background-color: var(--grey-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.seasonal-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.seasonal-tab {
    padding: 0.8rem 1.5rem;
    background-color: var(--light-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.seasonal-tab:hover,
.seasonal-tab.active {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.seasonal-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.seasonal-content.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.seasonal-images {
    display: flex;
    gap: 2rem;
}

.seasonal-image {
    flex: 1;
    text-align: center;
}

.seasonal-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 0.5rem;
}

.seasonal-image p {
    font-weight: 600;
    color: var(--primary-color);
}

.seasonal-text {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.seasonal-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.seasonal-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.seasonal-products li {
    position: relative;
    padding-left: 1.5rem;
}

.seasonal-products li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Порівняння дієт */
.compare {
    background-color: var(--light-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.compare-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.compare-table thead {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-color);
}

.compare-table tr:nth-child(even) {
    background-color: var(--primary-light);
}

.compare-table tr:hover {
    background-color: var(--accent-light);
}

/* Календар сезонних продуктів */
.calendar {
    background-color: var(--grey-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-card {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.calendar-icon {
    margin-bottom: 1rem;
    text-align: center;
}

.calendar-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.calendar-list {
    padding-left: 1.5rem;
}

.calendar-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.calendar-list li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

/* Контакти */
.contact {
    background-color: var(--light-color);
    padding: 6rem 5% 8rem;
    position: relative;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-text {
    background-color: var(--primary-light);
    padding: 2rem;
    border-radius: 12px;
}

.contact-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    margin-right: 1rem;
}

.contact-image {
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--grey-dark);
    border-radius: 6px;
    font-family: 'Source Sans Pro', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--light-color);
    border: 1px solid var(--grey-dark);
    border-radius: 4px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Футер */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 5% 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-item {
    padding: 1rem;
}

.footer-item h4 {
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-item ul li {
    margin-bottom: 0.5rem;
}

.footer-item ul li a {
    color: var(--grey-color);
}

.footer-item ul li a:hover {
    color: var(--primary-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo svg {
    margin-right: 1rem;
}

.footer-logo h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--grey-dark);
}

/* Ефект водяних крапель */
.water-drop {
    filter: url(#water-drop);
}

/* Адаптивні стилі */
@media screen and (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .seasonal-images {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero {
        padding: 4rem 5% 6rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-item {
        grid-column: span 2;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .seasonal-tabs {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .logo-item {
        grid-column: span 1;
    }
}

@media screen and (max-width: 375px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .service-card,
    .replace-card,
    .recipe-card,
    .calendar-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .seasonal-tab {
        padding: 0.6rem 1rem;
    }
}