:root {
    --primary-color: #1e3a29;
    --accent-color: #a02c2c;
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-color: #f8f8f8;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PT Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rufina', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn:hover::before {
    width: 100%;
}

.btn:active {
    transform: translateY(0);
}

.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 15px 0;
    z-index: 1000;
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__text {
    font-family: 'Rufina', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo__text--white {
    color: #fff;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-weight: 700;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--accent {
    color: var(--accent-color);
}

.nav__link--accent:hover {
    color: var(--primary-color);
}

.nav__link--accent::after {
    background-color: var(--primary-color);
}

.hero {
    padding: 80px 0 40px;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 58, 41, 0.05) 0%, rgba(160, 44, 44, 0.05) 100%);
}

.hero__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__title {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero__description {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero__btn {
    margin-top: 20px;
}

.hero__image-wrapper {
    position: relative;
}

.hero__image {
    border-radius: 10px;
    box-shadow: 0 20px 40px var(--shadow-color);
}

.hero__testimonial {
    margin-top: 60px;
}

.testimonial {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.testimonial__avatar {
    flex-shrink: 0;
}

.testimonial__image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__text {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial__author {
    font-weight: 700;
    color: var(--primary-color);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.about {
    padding: 80px 0;
}

.about__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about__text {
    margin-bottom: 20px;
}

.about__text:last-child {
    margin-bottom: 0;
}

.about__image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.services {
    padding: 80px 0;
    background-color: var(--light-color);
}

.services__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card__icon {
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 20px;
    margin-bottom: 15px;
}

.ingredient {
    padding: 80px 0;
}

.ingredient__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.ingredient__image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.ingredient__title {
    font-size: 28px;
    margin-bottom: 30px;
}

.ingredient__facts {
    display: grid;
    gap: 20px;
}

.ingredient__fact-title {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 10px;
}

.ingredient__fact-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.ingredient__fact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.ingredient__nutrition-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.ingredient__nutrition-list li {
    background-color: var(--light-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.gallery {
    padding: 80px 0;
    background-color: var(--light-color);
}

.gallery__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery__item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    height: 300px;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.gallery__title {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.gallery__calories {
    font-size: 14px;
    opacity: 0.8;
}

.portions {
    padding: 80px 0;
}

.portions__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.portions__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
}

.portions__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.portions__icon {
    margin-bottom: 20px;
}

.portions__title {
    font-size: 20px;
    margin-bottom: 15px;
}

.myths {
    padding: 80px 0;
    background-color: var(--light-color);
}

.myths__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.myths__item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    display: flex;
    gap: 20px;
}

.myths__icon {
    flex-shrink: 0;
}

.myths__title {
    font-size: 20px;
    margin-bottom: 15px;
}

.swap {
    padding: 80px 0;
}

.swap__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.swap__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.swap__bad,
.swap__good {
    width: 100%;
    text-align: center;
}

.swap__title {
    font-size: 20px;
    margin-bottom: 15px;
}

.swap__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.swap__arrow {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.contact {
    padding: 80px 0;
    background-color: var(--light-color);
}

.contact__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact__text {
    margin-bottom: 20px;
}

.contact__info {
    margin-top: 40px;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact__info-icon {
    flex-shrink: 0;
}

.contact__form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 41, 0.2);
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-link {
    text-decoration: underline;
}

.form-btn {
    width: 100%;
}

.newsletter {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #fff;
}

.newsletter__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter__title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}

.newsletter__description {
    opacity: 0.8;
}

.newsletter__form-group {
    display: flex;
    gap: 10px;
}

.newsletter__input {
    padding: 12px;
    border: none;
    border-radius: 4px;
    min-width: 300px;
    font-family: inherit;
    font-size: 16px;
}

.newsletter__input:focus {
    outline: none;
}

.newsletter__btn {
    background-color: var(--accent-color);
}

.newsletter__btn:hover::before {
    background-color: var(--primary-color);
}

.footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 20px;
}

.footer__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 40px;
}

.footer__about {
    grid-column: 1;
    grid-row: 1;
}

.footer__nav {
    grid-column: 2;
    grid-row: 1;
}

.footer__legal {
    grid-column: 1;
    grid-row: 2;
}

.footer__newsletter {
    grid-column: 2;
    grid-row: 2;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__description {
    opacity: 0.8;
    max-width: 300px;
}

.footer__title {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer__link:hover {
    color: #fff;
}

.footer__form {
    display: flex;
    gap: 10px;
}

.footer__input {
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    flex-grow: 1;
    font-family: inherit;
    font-size: 16px;
}

.footer__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer__input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.footer__btn {
    background-color: var(--accent-color);
    white-space: nowrap;
}

.footer__btn:hover::before {
    background-color: #fff;
}

.footer__btn:hover {
    color: var(--primary-color);
}

.footer__bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    opacity: 0.6;
    font-size: 14px;
}

@media screen and (max-width: 991px) {
    .hero__title {
        font-size: 36px;
    }
    
    .hero__wrapper,
    .about__wrapper,
    .ingredient__wrapper,
    .contact__wrapper {
        grid-template-columns: 1fr;
    }
    
    .newsletter__wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter__form-group {
        justify-content: center;
    }
    
    .footer__wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
    }
    
    .footer__about,
    .footer__nav,
    .footer__legal,
    .footer__newsletter {
        grid-column: 1;
    }
    
    .footer__about {
        grid-row: 1;
    }
    
    .footer__nav {
        grid-row: 2;
    }
    
    .footer__legal {
        grid-row: 3;
    }
    
    .footer__newsletter {
        grid-row: 4;
    }
}

@media screen and (max-width: 767px) {
    .section-title {
        font-size: 28px;
    }
    
    .hero {
        padding: 60px 0 30px;
    }
    
    .nav__list {
        gap: 15px;
    }
    
    .nav__link {
        font-size: 14px;
    }
    
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
    
    .myths__item {
        flex-direction: column;
    }
    
    .swap__item {
        flex-direction: column;
    }
    
    .newsletter__input {
        min-width: auto;
    }
}

@media screen and (max-width: 575px) {
    .hero__title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .header__wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        text-align: center;
    }
    
    .newsletter__form-group {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter__input {
        width: 100%;
    }
}

@media screen and (max-width: 375px) {
    .nav__list {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact__form-wrapper {
        padding: 20px;
    }
}