/* -------------------- header -------------------- */

.header {
    padding-top: 20px;
    background-color: var(--background-color-second);
}

main {
    overflow-x: hidden;
}

@media screen and (min-width: 1280px) {
    .header {
        position: absolute;
        width: 100%;
        padding: 32px 0;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    text-align: center;
}

@media screen and (min-width: 1280px) {
    .navigation-list {
        flex-direction: row;
        gap: 32px;
        margin-bottom: 0;
    }
}

.navigation-item {
    color: var(--main-text);
    text-transform: capitalize;
}

.navigation-link {
    display: block;
    padding: 12px;

    font-size: 14px;
    line-height: 1.28;

    color: currentColor;
    border-radius: 12px;
    border: var(--border-link);

    transition: color var(--time) var(--cubic),
        background-color var(--time) var(--cubic);
}

@media screen and (min-width: 768px) {
    .navigation-link {
        font-size: 16px;
    }
}

.navigation-link:hover,
.navigation-link:focus {
    color: var(--accent-color-first);
    background-color: var(--background-color-third);
}

@media screen and (max-width: 1279px) {
    .current {
        color: var(--accent-color-first);
        background-color: var(--background-color-third);
        border: var(--border-link);
    }
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 155px;
    padding: 16px 0;

    font-weight: 600;
    font-size: 14px;
    line-height: 1.29;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-align: center;

    color: var(--accent-color-first);
    background-color: var(--background-color-third);
    border-radius: 30px;
    border: none;
    cursor: pointer;

    transition: background-color var(--time) var(--cubic),
        color var(--time) var(--cubic), outline var(--time) var(--cubic);
    animation: swing 6s ease-in-out infinite forwards;
}

.btn:hover,
.btn:focus {
    background-color: transparent;
    color: var(--main-text);
    outline: 1px solid rgba(251, 251, 251, 0.4);
}

@media screen and (min-width: 768px) {
    .btn {
        width: 157px;
        margin-right: auto;
        margin-left: auto;
        font-size: 18px;
        line-height: 1.11;
        letter-spacing: -0.01em;
    }
}

@media screen and (min-width: 1280px) {
    .btn {
        margin-right: 0;
        margin-left: 0;
        color: var(--main-text);
        background-color: var(--background-color-first);
    }

    .btn:hover,
    .btn:focus {
        background-color: var(--background-color-third);
        color: var(--accent-color-first);
    }
}


/* -------------------- hero -------------------- */

.hero,
.works {
    background-color: var(--background-color-second);
}

.hero-container {
    padding: 0;
}

.hero-title {
    margin-bottom: 20px;

    font-weight: 600;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;

    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .hero-title {
        margin-bottom: 25px;
        font-size: 76px;
    }
}

@media screen and (min-width: 1280px) {
    .hero-title {
        margin-bottom: 128px;
        font-size: 76px;
    }
}

.title-accent-alfa {
    color: var(--accent-alfa-color);
}

.hero-description {
    max-width: 316px;

    font-size: 14px;
    line-height: 1.29;
    text-align: left;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .hero-description {
        max-width: 603px;
        font-size: 16px;
    }
}

@media screen and (min-width: 1280px) {
    .hero-description {
        max-width: 446px;
    }
}

.hero-text-conainer {
    padding: 48px 20px 40px 20px;
}

@media screen and (min-width: 768px) {
    .hero-text-conainer {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

@media screen and (min-width: 1280px) {
    .hero-text-conainer {
        width: 502px;
        padding: 0;
        margin: 228px 44px 50px 83px;
    }
}

@media screen and (min-width: 1280px) {
    .hero-container {
        display: flex;
        width: 1280px;
    }
}

.background-container {
    position: relative;
    max-width: 375px;
    height: auto;
}

@media screen and (min-width: 768px) {
    .background-container {
        max-width: 768px;
    }
}

@media screen and (min-width: 1280px) {
    .background-container {
        max-width: 650px;
        max-height: 800px;
    }
}

.background-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
}


/* -------------------- works -------------------- */

.works-container {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

@media screen and (min-width: 1280px) {
    .works-container {
        width: 1280px;
        display: flex;
    }
}

.violet-container {
    padding-top: 40px;
    padding-bottom: 40px;
    background-image: var(--gradient-second);
}

@media screen and (min-width: 768px) {
    .violet-container {
        padding-top: 100px;
        padding-bottom: 100px;
    }
}

@media screen and (min-width: 1280px) {
    .violet-container {
        display: flex;
        width: 630px;
        padding-right: 100px;
        padding-left: 100px;
    }
}

@media screen and (min-width: 1280px) {
    .green-container {
        display: flex;
        width: 650px;
        padding: 100px;
    }
}

.image-container {
    position: relative;
    max-width: 335px;
    margin: 0 auto;
    border-radius: 34px;
    overflow: hidden;
}

@media screen and (min-width: 768px) {
    .image-container {
        max-width: 640px;
    }
}

.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1414144d;
    border-radius: 34px;
}

.text-container {
    max-width: 335px;
    margin: 0 auto;
    padding: 80px 20px;
}

@media screen and (min-width: 768px) {
    .text-container {
        max-width: 450px;
        padding: 100px 0;
    }
}

@media screen and (min-width: 1280px) {
    .text-container {
        padding: 0;
    }
}

.how-title {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .how-title {
        margin-bottom: 25px;
        font-size: 32px;
    }
}

.how-desc {
    margin-bottom: 40px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.29;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .how-desc {
        margin-bottom: 50px;
        font-size: 16px;
        color: var(--main-text);
    }
}

@media screen and (min-width: 768px) {
    .how-list {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
}

.how-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 13px;
    margin-bottom: 20px;
    background-color: var(--background-color-third);
    border-radius: 15px;
    counter-increment: number;
}

.how-item:last-child {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .how-item {
        padding: 12px 25px 12px 24px;
        gap: 24px;
        margin-bottom: 0;
    }
}

.how-item::before {
    content: counter(number);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 47px;
    height: 47px;

    font-size: 20px;
    font-weight: 600;
    line-height: 1;

    color: var(--main-text);
    background-color: var(--background-color-first);
    border-radius: 50%;
    border: 5px solid #d3bec4;
    animation: heartbeat 5s infinite;
}

@media screen and (min-width: 768px) {
    .how-item::before {
        width: 52px;
        height: 52px;
    }
}

.how-text {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.17;
    color: rgba(20, 20, 20, 0.6);
}

@media screen and (min-width: 768px) {
    .how-text {
        font-size: 16px;
    }
}

.how-text span {
    font-weight: 700;
    color: var(--black-text);
}


/* -------------------- reviews -------------------- */

.advert,
.reviews {
    background-color: var(--background-color-third);
}

.advert-text {
    font-weight: 600;
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--black-text);
}

@media screen and (min-width: 768px) {
    .advert-text {
        font-size: 64px;
        line-height: 1.09;
    }
}

@media screen and (min-width: 1280px) {
    .advert-text {
        font-size: 74px;
        line-height: 1.05;
        max-width: 1032px;
    }
}

.advert-sale {
    display: inline-block;
    color: transparent;
    background: 50% 100% / 50% 50% no-repeat radial-gradient(ellipse at bottom, #576f35, transparent, transparent);
    background-clip: text;

    animation: reveal 3000ms ease-in-out forwards 200ms,
        glow 3500ms linear infinite 4000ms;
}


/* -------------------- vegetables -------------------- */

.vegetables {
    background-color: var(--background-color-first);
}

.vegetables-title {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .vegetables-title {
        margin-bottom: 50px;
        font-size: 64px;
        line-height: 1;
    }
}

@media screen and (min-width: 1280px) {
    .vegetables-title {
        margin-bottom: 25px;
        font-size: 64px;
        line-height: 1;
    }
}

.vegetables-text {
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 1.29;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .vegetables-text {
        font-size: 16px;
    }
}

@media screen and (min-width: 1280px) {
    .vegetables-title-container {
        max-width: 626px;
        margin-bottom: 50px;
    }
}

.vegetables-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media screen and (min-width: 768px) {
    .vegetables-list {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 28px 20px;
    }
}

@media screen and (min-width: 768px) {
    .vegetables-item {
        width: calc((100% - 20px) / 2);
    }
}

@media screen and (min-width: 1280px) {
    .vegetables-item {
        width: calc((100% - 40px) / 3);
    }
}

.card {
    position: relative;
    perspective: 600px;
    transform-style: preserve-3d;
    transform-origin: 100%;
    transition: transform 1s;
    cursor: pointer;
}

.card.is-flipped {
    transform: translate(-100%) rotateY(-180deg);
}

.product-card-front {
    width: 100%;
    height: 100%;
    padding: 32px 26px;
    backface-visibility: hidden;
    background-color: var(--background-color-third);
    border-radius: 40px;
}

@media screen and (min-width: 768px) {
    .product-card-front {
        padding: 32px 30px;
    }
}

@media screen and (min-width: 1280px) {
    .product-card-front {
        padding: 32px;
    }
}

.product-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 32px 26px;

    background-color: var(--background-color-second);
    backface-visibility: hidden;
    border-radius: 40px;
    transform: rotateY(180deg);
    overflow-y: auto;
}

.product-card-title {
    margin-bottom: 10px;
}

.products-card-item:not(:last-child) {
    margin-bottom: 10px;
}

.products-card-list {
    margin-bottom: 20px;
}

.vegetables-item-title {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--accent-color-first);
}

.vegetables-item-text {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.29;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--black-text);
}


/* -------------------- reviews -------------------- */

.reviews-title {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--black-text);
}

@media screen and (min-width: 768px) {
    .reviews-title {
        margin-bottom: 25px;
        font-size: 64px;
        line-height: 1;
    }
}

.reviews-title span {
    color: var(--accent-color-second);
}

.reviews-text {
    margin-bottom: 40px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.29;
    color: var(--black-text);
}

@media screen and (min-width: 768px) {
    .reviews-text {
        margin-bottom: 50px;
        font-size: 16px;
    }
}

@media screen and (min-width: 1280px) {
    .reviews-text-container {
        max-width: 553px;
        margin-bottom: 50px;
    }
}

.reviews-item-image {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

.reviews-item-title {
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #040306;
}

@media screen and (min-width: 768px) {
    .reviews-item-title {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 1.1;
    }
}

.reviews-item-text {
    font-size: 14px;
    line-height: 1.29;
    text-align: center;
    color: rgba(4, 3, 6, 0.4);
    margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
    .reviews-item-text {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 50px;
    }
}


/* -------------------- order ------------------- */

@media screen and (min-width: 768px) and (max-width: 1279px) {
    .order-main-container {
        padding: 0;
    }
}

.order-text-container {
    margin-bottom: 40px;
}

@media screen and (min-width: 768px) and (max-width: 1279px) {
    .order-text-container {
        padding: 0 32px;
    }
}

@media screen and (min-width: 768px) {
    .order-text-container {
        margin-bottom: 50px;
    }
}

@media screen and (min-width: 1280px) {
    .order-text-container {
        width: 751px;
    }
}

.order-title {
    margin-bottom: 29px;
    font-weight: 600;
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .order-title {
        margin-bottom: 25px;
        font-size: 64px;
        line-height: 1;
    }
}

.order-text {
    font-size: 14px;
    line-height: 1.29;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .order-text {
        font-size: 16px;
        max-width: 612px;
    }
}

@media screen and (min-width: 1280px) {
    .order-text {
        max-width: 742px;
    }
}

@media screen and (min-width: 768px) {
    .wrap-order {
        padding: 0 70px;
    }
}

@media screen and (min-width: 1280px) {
    .wrap-order {
        display: flex;
        gap: 24px;
        padding: 0;
    }
}

.order-container {
    padding: 40px 20px;
    margin-bottom: 20px;
    background-color: var(--background-color-third);
    border-radius: 30px;
}

@media screen and (min-width: 768px) {
    .order-container {
        padding: 50px 100px;
        margin-bottom: 25px;
    }
}

@media screen and (min-width: 1280px) {
    .order-container {
        max-width: 529px;
        height: 534px;
        padding: 50px;
        margin-bottom: 0;
    }
}

.order-form-title {
    margin-bottom: 50px;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--black-text);
}

.order-form-title .violet {
    color: var(--accent-color-first);
}

.order-form-title .green {
    color: var(--accent-color-second);
}

.order-form-container {
    margin-bottom: 15px;
}

.order-form-comments-container {
    margin-bottom: 25px;
}

.order-form-input,
.order-form-comments {
    display: block;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(20, 20, 20, 0.2);
    border-radius: 30px;
    transition: outline var(--time) var(--cubic);
}

.order-form-input::placeholder,
.order-form-comments::placeholder {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.order-form-input:focus-within,
.order-form-input:focus,
.order-form-input:hover,
.order-form-comments:focus-within,
.order-form-comments:focus,
.order-form-comments:hover {
    outline: 1px solid #3cbc81;
}

.order-form-comments {
    resize: none;
    height: 95px;
}

.order-form-btn {
    width: 100%;
    height: 52px;
    padding: 16px;

    font-weight: 600;
    font-size: 18px;
    line-height: 1.11;
    letter-spacing: -0.01em;
    text-transform: uppercase;

    color: var(--main-text);
    background-color: var(--background-color-second);
    border-radius: 30px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color var(--time) var(--cubic);
}

.order-form-btn:hover,
.order-form-btn:focus {
    background-color: var(--background-color-first);
}

.social-container {
    padding: 40px 20px;
    background-color: var(--background-color-second);
    border-radius: 30px;
}

@media screen and (min-width: 768px) {
    .social-container {
        padding: 50px;
    }
}

.social-picture {
    position: relative;
    overflow: hidden;
}

.social-picture::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1414144d;
    border-radius: 15px;
}

.social-img {
    margin-bottom: 50px;
    border-radius: 15px;
}

.social-text {
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.11;
    letter-spacing: -0.01em;
    color: var(--accent-alfa-input-color);
}

@media screen and (min-width: 768px) {
    .social-text {
        margin-bottom: 15px;
    }
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    margin-right: 8px;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--main-text);
    transition: color var(--time) var(--cubic);
}

@media screen and (min-width: 768px) {
    .social-link {
        font-size: 32px;
        line-height: 1;
    }
}

.social-link:hover,
.social-link:focus {
    color: var(--accent-color-first);
}

.social-slesh {
    font-weight: 600;
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

@media screen and (min-width: 768px) {
    .social-slesh {
        font-size: 32px;
        line-height: 1;
    }
}


/* -------------------- footer -------------------- */

.footer {
    padding-bottom: 40px;
    padding-top: 40px;
}

@media screen and (min-width: 768px) {
    .footer {
        padding-bottom: 32px;
        padding-top: 32px;
    }
}

@media screen and (min-width: 1280px) {
    .footer {
        padding-bottom: 50px;
        padding-top: 50px;
    }
}

.footer-main-container {
    margin-bottom: 80px;
}

@media screen and (min-width: 768px) {
    .footer-main-container {
        display: flex;
        margin-bottom: 100px;
    }
}

@media screen and (min-width: 1280px) {
    .footer-main-container {
        margin-bottom: 125px;
    }
}

.logo-text-container {
    margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
    .logo-text-container {
        max-width: 265px;
        margin-bottom: 0;
        margin-right: auto;
    }
}

.footer-logo {
    padding: 0;
    margin-bottom: 14px;
}

@media screen and (min-width: 768px) {
    .footer-logo {
        margin-bottom: 25px;
    }
}

.footer-svg {
    transition: fill var(--time) var(--cubic);
}

.footer-svg:hover,
.footer-svg:focus {
    fill: var(--accent-color-second);
}

.footer-text {
    font-size: 14px;
    line-height: 1.29;
    color: var(--main-text);
}

@media screen and (min-width: 768px) {
    .footer-text {
        font-size: 16px;
    }
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
    .footer-nav-list {
        gap: 25px;
        margin-bottom: 64px;
    }
}

@media screen and (min-width: 1280px) {
    .footer-nav-list {
        margin-bottom: 0;
    }
}

.footer-nav-link {
    font-weight: 600;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.01em;
    text-transform: lowercase;
    color: var(--main-text);
    transition: color var(--time) var(--cubic);
}

@media screen and (min-width: 768px) {
    .footer-nav-link {
        font-size: 32px;
    }
}

.footer-nav-link:hover,
.footer-nav-link:focus {
    color: var(--accent-color-second);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media screen and (min-width: 768px) {
    .address-list {
        gap: 25px;
    }
}

.address-link {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.29;
    letter-spacing: -0.01em;
    font-style: normal;
    color: var(--main-text);
    transition: color var(--time) var(--cubic);
}

@media screen and (min-width: 768px) {
    .address-link {
        font-size: 18px;
        line-height: 1.11;
    }
}

.address-link:hover,
.address-link:focus {
    color: var(--accent-color-second);
}

@media screen and (min-width: 1280px) {
    .connection-container {
        display: flex;
        gap: 121px;
        margin-bottom: 0;
    }
}

@media screen and (min-width: 1280px) {
    .footer-container {
        display: flex;
        flex-direction: column;
    }
}

.footer-policy-container {
    display: flex;
    align-items: center;
}

.policy-list {
    margin-right: auto;
}

.policy-list {
    display: flex;
    gap: 8px;
}

.policy-link,
.policy-slesh {
    font-size: 12px;
    line-height: 1.33;
    letter-spacing: -0.01em;
    color: var(--accent-alfa-input-color);
}

.policy-link {
    transition: color var(--time) var(--cubic);
}

@media screen and (min-width: 768px) {

    .policy-link,
    .policy-slesh {
        font-size: 18px;
        line-height: 1.11;
    }
}

.policy-link:hover,
.policy-link:focus {
    color: var(--accent-color-second);
}

.policy-slesh {
    margin-left: 8px;
}

.copyrights {
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: -0.01em;
    color: var(--accent-alfa-input-color);
}

@media screen and (min-width: 768px) {
    .copyrights {
        font-size: 18px;
        line-height: 1.11;
    }
}