/* Базові стилі */
:root {
    --primary-color: #0f4c33;
    --secondary-color: #9d1c3a;
    --light-color: #f5f7f6;
    --dark-color: #1a1a1a;
    --text-color: #333333;
    --background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 4rem 2rem;
    position: relative;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Хвилясті роздільники */
.wave-divider {
    position: relative;
    height: 100px;
    width: 100%;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.wave-divider.inverted {
    transform: rotate(180deg);
}

/* Хедер і навігація */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

nav {
    display: flex;
    align-items: center;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icons li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-icons li a:hover {
    transform: translateY(-5px);
    color: var(--secondary-color);
}

.nav-icons li a svg {
    margin-bottom: 0.3rem;
    width: 24px;
    height: 24px;
    transition: fill 0.3s ease;
}

.nav-icons li a:hover svg {
    fill: var(--secondary-color);
}

.nav-icons li a span {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-icons li a:hover span {
    opacity: 1;
}

/* Герой-секція */
.hero {
    background-color: var(--light-color);
    padding-top: 8rem;
    padding-bottom: 0;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-text h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
}

/* Кнопка у формі тарілки */
.plate-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(157, 28, 58, 0.3);
}

.plate-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 76, 51, 0.4);
}

.plate-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(15, 76, 51, 0.3);
}

.plate-button:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.plate-button:hover:before {
    width: 300px;
    height: 300px;
}

/* Секція раціонів */
.meals {
    background-color: var(--background-color);
}

.meal-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.meal-plan {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meal-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.meal-plan img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.meal-plan h3 {
    padding: 1.5rem 1.5rem 0.5rem;
}

.meal-plan p {
    padding: 0 1.5rem;
}

.meal-features {
    padding: 0 1.5rem 1rem;
}

.meal-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.meal-features li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.meal-plan .plate-button {
    margin: 0 1.5rem 1.5rem;
}

/* Візуальний гід по розмірах порцій */
.portions {
    background-color: var(--light-color);
}

.portions-guide {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.portion-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    background-color: var(--background-color);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portion-item:hover {
    transform: translateY(-10px);
}

.portion-image {
    margin-bottom: 1.5rem;
}

.portion-item h3 {
    margin-bottom: 0.5rem;
}

.portion-item p {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.portion-description {
    font-weight: normal;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Переваги */
.benefits {
    background-color: var(--background-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    margin-bottom: 1rem;
}

/* Рецепти дня */
.recipes {
    background-color: var(--light-color);
}

.recipes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--background-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-level {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.level-text {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.level-dots {
    display: flex;
    gap: 0.2rem;
    margin-right: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
}

.dot.active {
    background-color: var(--secondary-color);
}

.level-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.recipe-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.info-item svg {
    margin-right: 0.5rem;
}

/* Заміна продуктів */
.replacement {
    background-color: var(--background-color);
}

.replacement-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.replacement-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.replacement-part {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.replacement-part h3 {
    margin-bottom: 1.5rem;
}

.food-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

.replacement-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Як читати етикетки */
.labels {
    background-color: var(--light-color);
}

.labels-guide {
    max-width: 1000px;
    margin: 0 auto;
}

.label-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    background-color: var(--background-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.label-image {
    flex: 1;
    min-width: 300px;
}

.label-tips {
    flex: 1;
    min-width: 300px;
}

.label-list li {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.label-list li svg {
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Контактна форма */
.contact {
    background-color: var(--background-color);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.process-steps {
    margin-bottom: 2rem;
}

.process-step {
    display: flex;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item svg {
    margin-right: 1rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-label input {
    width: auto;
    margin-right: 0.5rem;
}

button[type="submit"] {
    width: 100%;
}

/* Футер */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-item h3 {
    color: white;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-style: italic;
    text-align: right;
    margin-bottom: 0;
}

.footer-item ul li {
    margin-bottom: 0.8rem;
}

.footer-item ul li a {
    color: white;
    transition: color 0.3s ease;
}

.footer-item ul li a:hover {
    color: var(--secondary-color);
}

.result-item {
    margin-bottom: 1.5rem;
}

.result-number {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

/* Адаптивність */
@media (max-width: 1200px) {
    .hero-text h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    section {
        padding: 3rem 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-text h2 {
        text-align: center;
    }
    
    .stats {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .nav-icons {
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
    }
    
    .nav-icons li a span {
        display: none;
    }
    
    .hero {
        padding-top: 7rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .wave-divider {
        height: 70px;
    }
    
    .portion-item, .benefit-item, .recipe-card {
        min-width: 250px;
    }
    
    .replacement-container {
        gap: 2rem;
    }
    
    .replacement-item {
        flex-direction: column;
    }
    
    .replacement-arrow {
        transform: rotate(90deg);
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 2rem 1rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .hero-text h2 {
        font-size: 1.6rem;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .meal-plan, .portion-item, .benefit-item, .recipe-card {
        min-width: 100%;
    }
    
    .portions-guide, .benefits-grid, .recipes-grid {
        gap: 1.5rem;
    }
    
    .label-container {
        padding: 1.5rem;
    }
    
    .plate-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav-icons svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-text h2 {
        font-size: 1.4rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .process-step {
        gap: 0.5rem;
    }
}

/* Анімація фонового декору */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Анімація хвилястих ліній */
@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25px) translateY(5px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

/* Анімація крапель води */
@keyframes drop {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(20px) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
}

/* Стилі для сторінок політик */
.policy-page {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.policy-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.policy-page h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    text-align: left;
}

.policy-page p {
    margin-bottom: 1.5rem;
}

.policy-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-page ul li {
    margin-bottom: 0.5rem;
}

.home-button {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
}

/* Стилі для сторінки подяки */
.thankyou-page {
    max-width: 600px;
    margin: 150px auto 50px;
    padding: 3rem 2rem;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.thankyou-page h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.thankyou-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.thankyou-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
}

.thankyou-icon svg {
    width: 100%;
    height: 100%;
}

/* Favicon */
link[rel="icon"] {
    display: inline-block;
    width: 32px;
    height: 32px;
}

/* Стилізація елементів форми при фокусі */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(15, 76, 51, 0.2);
}

/* Додаткові стилі для hover-ефектів */
.meal-plan img, .recipe-card img {
    transition: transform 0.5s ease;
}

.meal-plan:hover img, .recipe-card:hover img {
    transform: scale(1.05);
}

.benefit-icon svg, .portion-image svg {
    transition: transform 0.3s ease;
}

.benefit-item:hover .benefit-icon svg, .portion-item:hover .portion-image svg {
    transform: rotate(10deg);
}

/* Додаткові анімації для елементів */
.replacement-arrow svg {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.food-item img {
    transition: all 0.3s ease;
}

.food-item img:hover {
    transform: scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(157, 28, 58, 0.3);
}

/* Нестандартні стилі для херо-секції */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: float 6s infinite ease-in-out;
}

.hero-content::after {
    content: "";
    position: absolute;
    bottom: 20%;
    left: 0;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: float 8s infinite ease-in-out reverse;
}

/* Декоративні елементи у вигляді пару від їжі */
.recipes::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 10%;
    width: 100px;
    height: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.5;
    animation: wave 8s infinite ease-in-out;
}

.recipes::after {
    content: "";
    position: absolute;
    top: 40px;
    right: 10%;
    width: 80px;
    height: 15px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.5;
    animation: wave 6s infinite ease-in-out reverse;
}

/* Декоративні елементи у вигляді капель води */
.portions::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 5%;
    width: 15px;
    height: 25px;
    background: var(--secondary-color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.2;
    animation: drop 5s infinite ease-in-out;
}

.portions::after {
    content: "";
    position: absolute;
    top: 10%;
    right: 10%;
    width: 20px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.2;
    animation: drop 7s infinite ease-in-out 1s;
}

/* Стилізовані зображення кухонної утварі */
.benefits::before {
    content: "";
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    opacity: 0.1;
    clip-path: polygon(50% 0%, 80% 30%, 100% 60%, 70% 100%, 30% 100%, 0 60%, 20% 30%);
    animation: float 7s infinite ease-in-out;
}