/* Основні стилі */
:root {
    --primary: #4A7A5B;
    --primary-light: #6B9B7C;
    --primary-dark: #345945;
    --accent: #FC8A6A;
    --accent-light: #FFAD8B;
    --accent-dark: #E76E4E;
    --text-dark: #1D1D1D;
    --text-light: #FFFFFF;
    --text-gray: #7C7C7C;
    --background: #FFFFFF;
    --background-light: #F8F9FA;
    --background-dark: #E9ECEF;
    --border: #DFE3E6;
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Calistoga', cursive;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin: 0.5rem auto 2rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
    clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
    z-index: 1;
}

.btn:hover::before {
    transform: translateX(50%);
}

.primary-btn {
    background-color: var(--primary);
    color: var(--text-light);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

.secondary-btn {
    background-color: var(--accent);
    color: var(--text-light);
}

.secondary-btn:hover {
    background-color: var(--accent-dark);
    color: var(--text-light);
}

/* Шапка */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-family: 'Calistoga', cursive;
    font-size: 1.4rem;
    color: var(--primary);
}

.logo-icon {
    margin-right: 10px;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.nav-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.nav-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-link span {
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-link:hover .nav-icon-wrapper {
    transform: scale(1.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* Хіро секція */
.hero {
    padding: 0;
    position: relative;
    background-color: #F2F7F4;
    overflow: hidden;
}

.wave-divider {
    position: absolute;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.top-wave {
    top: 0;
}

.bottom-wave {
    bottom: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    width: 100%;
    height: 100%;
}

.hero-container {
    padding: 120px 20px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-left, .hero-right {
    flex: 1;
}

.hero-left h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero-left p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
}

.daily-menu {
    background-color: var(--background);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.daily-menu h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.daily-menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.menu-item-icon {
    flex-shrink: 0;
}

.menu-item-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.menu-item-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-gray);
}

.hero-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.main-image {
    width: 100%;
    height: auto;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.hero-image:hover .main-image {
    transform: scale(1.05);
}

.benefits-overview {
    background-color: var(--background);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefits-overview h2 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

/* Про нас */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-img {
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: -1;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Заміни */
.replace-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.replace-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--background-light);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.replace-item-image {
    flex: 0 0 300px;
}

.replace-img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.replace-item:hover .replace-img {
    transform: scale(1.05);
}

.replace-item-content {
    flex: 1;
}

.replace-item-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.replace-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.5rem;
}

.benefit-tag {
    background-color: var(--primary-light);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Послуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    flex-grow: 1;
}

.service-price {
    margin-bottom: 1.5rem;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Тижневе меню */
.menu-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.menu-row {
    display: grid;
    grid-template-columns: 0.7fr 1fr 1fr 1fr 1fr 1fr;
}

.header-row {
    background-color: var(--primary);
    color: var(--text-light);
    font-weight: 700;
}

.menu-cell {
    padding: 15px;
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-cell {
    background-color: var(--primary-light);
    color: var(--text-light);
    font-weight: 600;
}

.menu-note {
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-gray);
}

/* Порівняння дієт */
.compare-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.compare-cell {
    padding: 15px;
    border: 1px solid var(--border);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-cell {
    background-color: var(--primary-light);
    color: var(--text-light);
    font-weight: 600;
}

/* Режими харчування */
.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mode-card {
    background-color: var(--background-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
}

.mode-image {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.mode-img {
    transition: transform 0.3s ease;
}

.mode-card:hover .mode-img {
    transform: scale(1.05);
}

.mode-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.mode-card p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.mode-features {
    padding-left: 20px;
}

.mode-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 15px;
}

.mode-features li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Переваги */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--background-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Відгуки */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--background-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary);
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.testimonial-author h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.testimonial-author p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Контакти */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-gray);
    margin-bottom: 0.3rem;
}

.contact-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
}

.contact-form-container {
    background-color: var(--background-light);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Mulish', sans-serif;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-text {
    font-size: 0.9rem;
    font-weight: normal;
}

.checkbox-text a {
    text-decoration: underline;
}

/* Футер */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
}

.footer-logo {
    grid-column: 1;
    grid-row: 1;
}

.footer-nav {
    grid-column: 2;
    grid-row: 1;
}

.footer-info {
    grid-column: 3;
    grid-row: 1;
}

.footer-educational {
    grid-column: 1;
    grid-row: 2;
}

.footer-contact {
    grid-column: 2;
    grid-row: 2;
}

.footer-newsletter {
    grid-column: 3;
    grid-row: 2;
}

.footer .logo a {
    color: var(--text-light);
}

.footer-slogan {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer h3 {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--text-light);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex-grow: 1;
}

.footer-bottom {
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Сторінки політик */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.policy-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.policy-content h2 {
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content p {
    margin-bottom: 1.5rem;
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
}

.back-button {
    display: inline-block;
    margin-top: 2rem;
}

/* Сторінка "Дякуємо" */
.thankyou {
    text-align: center;
    padding: 80px 0;
}

.thankyou-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
}

.thankyou h1 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.thankyou p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Адаптивний дизайн */
@media (max-width: 1200px) {
    .hero-container {
        padding: 80px 20px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .replace-item {
        flex-direction: column;
    }
    
    .replace-item-image {
        flex: 0 0 100%;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-logo {
        grid-column: 1;
        grid-row: 1;
    }
    
    .footer-nav {
        grid-column: 2;
        grid-row: 1;
    }
    
    .footer-info {
        grid-column: 1;
        grid-row: 2;
    }
    
    .footer-educational {
        grid-column: 2;
        grid-row: 2;
    }
    
    .footer-contact {
        grid-column: 1;
        grid-row: 3;
    }
    
    .footer-newsletter {
        grid-column: 2;
        grid-row: 3;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-container {
        padding: 60px 20px;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--background);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .nav-list.active {
        transform: translateY(0);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .service-card {
        text-align: center;
    }
    
    .service-icon {
        display: flex;
        justify-content: center;
    }
    
    .benefit-card {
        text-align: center;
    }
    
    .benefit-icon {
        display: flex;
        justify-content: center;
    }
    
    .testimonial-card {
        align-items: center;
        text-align: center;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav, .footer-info, .footer-educational, .footer-contact, .footer-newsletter {
        grid-column: 1;
    }
    
    .footer-nav {
        grid-row: 2;
    }
    
    .footer-info {
        grid-row: 3;
    }
    
    .footer-educational {
        grid-row: 4;
    }
    
    .footer-contact {
        grid-row: 5;
    }
    
    .footer-newsletter {
        grid-row: 6;
    }
}

@media (max-width: 375px) {
    .btn {
        width: 100%;
    }
}