/* Base styles */
:root {
    --primary-color: #4A7C59; /* Авокадо-зелений */
    --secondary-color: #FF6B6B; /* Коралловий */
    --dark-color: #1E2D24;
    --light-color: #f5f5f5;
    --white-color: #ffffff;
    --gray-color: #808080;
    --light-gray: #e0e0e0;
    --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: 'PT Sans', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rufina', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

ul {
    list-style: none;
}

section {
    padding: 5rem 2rem;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider.inverted {
    transform: rotate(0);
    top: -1px;
    bottom: auto;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 0.75rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo h1 span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 1.5rem;
    position: relative;
}

nav a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: bold;
}

nav a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover:before {
    width: 100%;
}

.nav-low a {
    color: var(--primary-color);
}

.nav-medium a {
    color: #38603F; /* Средняя калорийность */
}

.nav-high a {
    color: var(--secondary-color); /* Высокая калорийность */
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), #65A474);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(45deg, #65A474, var(--primary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}

.secondary-btn {
    background: linear-gradient(45deg, var(--secondary-color), #FF8C8C);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.secondary-btn:hover {
    background: linear-gradient(45deg, #FF8C8C, var(--secondary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Hero section */
.hero {
    padding: 0 0 7rem 0;
    background-color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 124, 89, 0.1) 0%, transparent 200px),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 107, 0.1) 0%, transparent 200px);
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero-text h2 {
    font-size: 2.8rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.hero-text h2:after {
    margin: 15px 0 0;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image:before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
}

.hero-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* About section */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Services section */
.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(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

/* Replacement section */
.replacement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.replacement-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.replacement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.replacement-text {
    flex: 1;
}

.replacement-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.arrow-icon {
    margin: 0.5rem 0;
}

/* Recipe section */
.recipe-showcase {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.recipe-image {
    flex: 1 1 300px;
    position: relative;
}

.recipe-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.recipe-details {
    flex: 1 1 300px;
    padding: 2rem;
}

.recipe-benefits {
    margin: 1.5rem 0;
}

.recipe-benefits li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.recipe-benefits li svg {
    margin-right: 0.5rem;
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item svg {
    margin-right: 0.5rem;
}

/* Snacks gallery */
.snacks-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.snack-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.snack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.snack-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.snack-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.calorie-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Guide section */
.guide-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.guide-image {
    flex: 1 1 300px;
}

.guide-text {
    flex: 1 1 400px;
}

.guide-item {
    margin-bottom: 1.5rem;
}

.guide-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Calories section */
.calories-infographic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.calorie-item {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.calorie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.calorie-item h3 {
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
}

.calorie-value {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.calorie-bar {
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.calorie-item.low .calorie-bar {
    background-color: var(--primary-color);
}

.calorie-item.medium .calorie-bar {
    background-color: #F9A826; /* Оранжевый для средней калорийности */
}

.calorie-item.high .calorie-bar {
    background-color: var(--secondary-color);
}

/* Portions section */
.portions-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portion-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.portion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portion-icon {
    margin-bottom: 1.5rem;
}

.portion-description h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Plans section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    padding: 2rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-tag {
    position: absolute;
    top: 12px;
    right: -30px;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 2rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-header {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.plan-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.plan-features {
    margin-bottom: 1.5rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.plan-features li svg {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.plan-card .btn {
    width: 100%;
}

/* Testimonials section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.testimonial-content {
    padding: 1.5rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1 1 300px;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.contact-method svg {
    margin-right: 0.75rem;
}

.contact-form {
    flex: 1 1 400px;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
    margin-right: 0.5rem;
}

/* Footer styles */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    margin-bottom: 0;
    color: var(--white-color);
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--light-gray);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media queries for responsive design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 2.4rem;
    }
    
    .about-content, .hero-content {
        flex-direction: column;
    }
    
    .about-text, .hero-text {
        order: 2;
    }
    
    .about-image, .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-text {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }
    
    header {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .recipe-showcase {
        flex-direction: column;
    }
    
    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .replacement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .guide-content, .contact-wrapper {
        gap: 1.5rem;
    }
}

/* Стили для страниц политик */
.policy-hero {
    background-color: var(--light-color);
    padding: 4rem 2rem;
    text-align: center;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.policy-content h2 {
    text-align: left;
}

.policy-content h2:after {
    margin: 15px 0 0;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.policy-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
}

.back-home {
    display: inline-block;
    margin-top: 2rem;
}

/* Thank you page */
.thankyou-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.thankyou-icon {
    margin: 0 auto 2rem;
}

.thankyou-content h2 {
    margin-bottom: 1.5rem;
}

.thankyou-content p {
    margin-bottom: 2rem;
}