/* Основные стили */
:root {
    --color-primary: #4CAF50;
    --color-primary-dark: #2E7D32;
    --color-primary-light: #E8F5E9;
    --color-secondary: #9C27B0;
    --color-secondary-dark: #7B1FA2;
    --color-accent: #E91E63;
    --color-accent-dark: #C2185B;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-gray: #f5f5f5;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-title: 'Amatic SC', cursive;
    --font-text: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.5rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--color-primary-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
    transform: scale(1.2);
}

.btn-primary {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--color-secondary), var(--color-secondary-dark));
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.5);
    transform: translateY(-2px);
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 45px;
}

/* Навигация */
.nav__list {
    display: flex;
    align-items: center;
}

.nav__item {
    margin-left: 30px;
}

.nav__link {
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    padding-bottom: 5px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--accent {
    color: var(--color-accent);
}

.nav__link--accent:hover {
    color: var(--color-accent-dark);
}

/* Секция герой */
.hero {
    position: relative;
    padding: 160px 0 120px;
    background: linear-gradient(135deg, #f5f7fa, #e5e9f0);
    overflow: hidden;
}

.wave-top, .wave-bottom {
    position: absolute;
    width: 100%;
    height: 120px;
    left: 0;
}

.wave-top {
    top: -5px;
}

.wave-bottom {
    bottom: -5px;
}

.wave-top svg, .wave-bottom svg {
    width: 100%;
    height: 100%;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero__content {
    flex: 1;
    max-width: 600px;
    padding-right: 30px;
}

.hero__title {
    color: var(--color-primary-dark);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero__image {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.hero__image img {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transform: perspective(800px) rotateY(-5deg);
    transition: var(--transition);
}

.hero__image:hover img {
    transform: perspective(800px) rotateY(0deg);
}

/* Преимущества */
.benefits {
    padding: 80px 0;
    background-color: var(--color-white);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--color-gray);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card__icon {
    margin-bottom: 20px;
}

.benefit-card__title {
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

.benefit-card__text {
    color: var(--color-text-light);
}

/* Рецепт дня */
.recipe-day {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.recipe-day__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.recipe-day__inner--reverse {
    flex-direction: row-reverse;
}

.recipe-day__image {
    flex: 1;
    min-width: 300px;
}

.recipe-day__image img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.recipe-day__image img:hover {
    transform: scale(1.03);
}

.recipe-day__content {
    flex: 1;
    min-width: 300px;
}

.recipe-day__title {
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.recipe-day__ingredients {
    margin-bottom: 25px;
}

.recipe-day__ingredients h4 {
    margin-bottom: 10px;
    color: var(--color-primary-dark);
}

.recipe-day__ingredients ul {
    padding-left: 20px;
}

.recipe-day__ingredients li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

.recipe-day__ingredients li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.recipe-day__nutrition {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nutrition-circle {
    flex-shrink: 0;
}

.nutrition-info p {
    margin-bottom: 5px;
}

/* Сезонные продукты */
.seasonal-products {
    padding: 80px 0;
    background-color: var(--color-white);
}

.seasonal-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.season {
    background-color: var(--color-gray);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.season:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.season__title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary-dark);
}

.season__products {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.product-icon {
    transition: var(--transition);
}

.product:hover .product-icon {
    transform: scale(1.1);
}

/* Сравнение диет */
.diet-comparison {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.comparison-table {
    max-width: 100%;
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--color-white);
}

.comparison-table__header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(45deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-black);
    font-weight: 600;
}

.comparison-table__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table__row:last-child {
    border-bottom: none;
}

.comparison-table__row:nth-child(even) {
    background-color: var(--color-gray);
}

.comparison-table__cell {
    padding: 15px;
    font-size: 0.95rem;
}

/* Недельное меню */
.weekly-menu {
    padding: 80px 0;
    background-color: var(--color-white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-day {
    background-color: var(--color-gray);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.menu-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.menu-day__title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary-dark);
}

.menu-day__meals {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meal {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.meal h4 {
    margin-bottom: 5px;
    color: var(--color-primary);
}

.meal p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Замена продуктов */
.food-swap {
    padding: 80px 0;
    background-color: var(--color-gray);
}

.food-swap__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.food-swap__item {
    display: flex;
    align-items: center;
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.food-swap__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.food-swap__from,
.food-swap__to {
    flex: 1;
    text-align: center;
}

.food-swap__from img,
.food-swap__to img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.food-swap__arrow {
    margin: 0 15px;
    animation: arrowPulse 2s infinite;
}

@keyframes arrowPulse {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Контактная форма */
.contact-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.contact-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    margin-right: 10px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--color-gray);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-checkbox label {
    margin-bottom: 0;
}

/* Футер */
.footer {
    position: relative;
    padding: 80px 0 30px;
    background: linear-gradient(135deg, #333333, #111111);
    color: var(--color-white);
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer__item {
    position: relative;
}

.footer__logo {
    grid-column: span 2;
}

.footer__description {
    max-width: 400px;
    margin-top: 20px;
    color: #aaa;
}

.footer__title {
    margin-bottom: 20px;
    color: var(--color-white);
    position: relative;
    display: inline-block;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__list a {
    color: #aaa;
    transition: var(--transition);
}

.footer__list a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__form input {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-text);
    font-size: 0.9rem;
}

.footer__form input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.footer__bottom {
    margin-top: 60px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

/* Капли воды */
.water-drop {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0.5;
    z-index: -1;
}

/* Страницы политик */
.policy-page {
    padding: 120px 0 80px;
}

.policy-content {
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.policy-title {
    margin-bottom: 30px;
    color: var(--color-primary-dark);
    position: relative;
}

.policy-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h3 {
    margin-bottom: 15px;
    color: var(--color-primary-dark);
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
    font-weight: 500;
}

.back-to-home svg {
    transition: var(--transition);
}

.back-to-home:hover svg {
    transform: translateX(-5px);
}

/* Thank you page */
.thank-you {
    padding: 120px 0 80px;
    text-align: center;
}

.thank-you__inner {
    background-color: var(--color-white);
    border-radius: 15px;
    padding: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.thank-you__icon {
    margin-bottom: 30px;
}

.thank-you__title {
    margin-bottom: 20px;
    color: var(--color-primary-dark);
}

.thank-you__text {
    margin-bottom: 30px;
}

/* Адаптивный дизайн */
@media (max-width: 991px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 140px 0 100px;
    }
    
    .hero__inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .hero__content {
        padding-right: 0;
        max-width: 100%;
        text-align: center;
    }
    
    .hero__buttons {
        justify-content: center;
    }
    
    .hero__image {
        max-width: 100%;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
    
    .comparison-table__header,
    .comparison-table__row {
        min-width: 800px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .header__inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    .nav {
        margin-top: 15px;
        width: 100%;
        overflow-x: auto;
    }
    
    .nav__list {
        width: max-content;
        padding-bottom: 10px;
    }
    
    .nav__item {
        margin-left: 20px;
    }
    
    .nav__item:first-child {
        margin-left: 0;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .food-swap__item {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-inner,
    .recipe-day__inner {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form,
    .recipe-day__content,
    .recipe-day__image {
        min-width: 100%;
    }
    
    .recipe-day__inner--reverse {
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
    
    .policy-content {
        padding: 25px;
    }
    
    .thank-you__inner {
        padding: 30px;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }
    
    .benefit-card,
    .season,
    .menu-day,
    .contact-form {
        padding: 20px;
    }
    
    .recipe-day,
    .seasonal-products,
    .diet-comparison,
    .weekly-menu,
    .food-swap,
    .contact-section {
        padding: 60px 0;
    }
}