html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: GilroyRegular;
    src: url("../font/gilroy-regular.ttf");
}

@font-face {
    font-family: GilroyMedium;
    src: url("../font/gilroy-medium.ttf");
}

@font-face {
    font-family: GilroyBold;
    src: url("../font/gilroy-bold.ttf");
}

@font-face {
    font-family: GilroyExtraBold;
    src: url("../font/gilroy-extrabold.ttf");
}

@font-face {
    font-family: TavolgaFree;
    src: url("../font/tavolga-free.ttf");
}

body {
    background-color: #f0e8e1;
}

/* Шапка */
.header {
    background-color: #5f463e;
    padding: 36px 0 25px 0;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.menu ul {
    list-style: none;
    display: flex;
    max-width: 353px;
    justify-content: space-between;
}

.menu ul li {
    padding-bottom: 3px;
    margin: 0 20px;
    border-bottom: 2px solid transparent;
    transition: all .5s ease;
}

.menu ul li:hover {
    border-bottom: 2px solid #ffffff;
}

.menu ul li a {
    font-size: 14px;
    font-family: GilroyMedium, sans-serif;
    color: #ffffff;
    text-decoration: none;
}

.phone {
    font-size: 16px;
    font-family: GilroyBold, sans-serif;
    color: rgb(255, 255, 255);
    text-decoration: none;
}


/* Первый экран */
.first-screen {
    padding: 127px 0 108px 0;
    overflow: hidden;
}

.first-screen .container {
    display: grid;
    grid-column-gap: 10px;
    grid-template-columns: 1fr 1fr;

}

.first-screen-title {
    font-size: 55px;
    font-family: TavolgaFree, sans-serif;
    color: #331907;
    line-height: 1.091;
    width: 585px;
    margin-top: 16px;
    margin-bottom: 61px;
}

.first-screen-description {
    font-size: 18px;
    font-family: TavolgaFree, sans-serif;
    color: rgb(51 25 7);;
    line-height: 1.389;
    max-width: 349px;
    margin-bottom: 80px;
}

.btn {
    border: 0;
    border-radius: 30px;
    background-image: -moz-linear-gradient(145deg, #d5abc9 0%, #874267 100%);;
    background-image: -webkit-linear-gradient(145deg, #d5abc9 0%, #874267 100%);;
    background-image: -ms-linear-gradient(145deg, #d5abc9 0%, #874267 100%);;
    font-family: GilroyBold, sans-serif;
    color: rgb(255, 255, 255);
    font-size: 18px;
    cursor: pointer;
    transition: all .3s ease;
}

.first-screen-btn {
    width: 240px;
    height: 60px;
}

.btn:hover {
    box-shadow: 0px 5px 9px 1px #a96e8e80;
}

.first-screen-image {
    grid-column: 2 / 3;
    grid-row: 1 / 5;
    position: relative;
}

.first-screen-image img, .first-screen-btn, .first-screen-title, .first-screen-description  {
    position: relative;
    z-index: 2;
}

.first-screen-image::before {
    content: '';
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    bottom: calc(50% - 100px);
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1;
    border: 1px solid rgba(130, 19, 40);
    animation: pulse 3s ease-out infinite;
}

.first-screen-image::after {
    content: '';
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    bottom: calc(50% - 100px);
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1;
    border: 1px solid rgba(130, 19, 40);
    animation: pulse 3s ease-out .5s infinite;
}


@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Второй блок. Информация */

.info {
    padding: 119px 0 25px 0;
}

.info .container {
    display: grid;
    grid-column-gap: 150px;
    grid-template-columns: 1fr 1fr;
}

.title {
    font-size: 45px;
    font-family: TavolgaFree, sans-serif;
    color: rgb(51, 25, 7);
}


.info-title {
    line-height: 1.222;
    margin-bottom: 60px;
}

.description {
    font-size: 18px;
    font-family: GilroyRegular, sans-serif;
    color: rgb(51, 25, 7);
    line-height: 1.556;
}

.info-description {
    max-width: 397px;
    margin-bottom: 5px;
}


.info-image {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    align-self: end;
}

.info-image img {
    width: 100%;
} 

/* Третий блок. Преимущества */

.advantages {
    padding: 58px 0 120px 0;
}

.advantages .container {
    display: grid;
    grid-column-gap: 88px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.advantage {
    max-width: 220px;
}

.advantage-number {
    border-radius: 50%;
    background-color: rgb(155 106 141);
    width: 70px;
    height: 70px;
    text-align: center;
    margin-bottom: 13px;
    transition: all .5s ease;
}

.advantage-number span {
    font-size: 60px;
    font-family: GilroyExtraBold, sans-serif;
    color: rgb(255, 255, 255);
    line-height: 100px;
    transition: all .5s ease;
}

.advantage:hover .advantage-number {
    background-color: #d5abc9;
}

.advantage:hover .advantage-number span {
    color: #331907;
}

.advantage-title {
    font-size: 20px;
    font-family: GilroyExtraBold, sans-serif;
    color: rgb(51, 25, 7);
    margin-bottom: 19px;
}

.advantage-description {
    font-size: 15px;
    font-family: GilroyMedium, sans-serif;
    color: rgb(51, 25, 7);
    line-height: 1.333;
}

/* Четвертый блок. Карточки продуктов */

.products {
    background-color: #9b6a8d;
    padding: 120px 0;

}

.products .container {
    text-align: center;
}

.products-title {
    color: rgb(255, 255, 255);
    margin-bottom: 81px;
}

.sets-title {
    margin-top: 81px;
    font-size: 36px;
}

.products-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: space-between;
    grid-row-gap: 30px;
}


.product-item {
    height: 291px;
    display: grid;
    align-items: end;
}

.product-item-container {
    display: grid;
    color: rgb(18, 10, 6);
    background-color: #ffffff91;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 20px;
    width: 263px;
    height: 229px;
    padding: 25px 19px;
    box-sizing: border-box;
    align-items: end;
    position: relative;
}

.product-image {
    height: 124px;
    width: 259px;
    display: grid;
    align-items: end;
    justify-items: center;
    position: absolute;
    top: -65px;
    transition: all .5s ease;
}

.product-item:hover .product-image {
    transform: scale(1.1);
}

.product-image .dop-image {
    height: 124px;
}

.product-image.sets {
    height: 200px;
    top: -120px;
}


.product-info {
    display: grid;
    grid-template-columns: 91px 130px;
    grid-template-rows: 46px 50px;
}

.product-title {
    font-size: 18px;
    font-family: TavolgaFree, sans-serif;
    text-align: center;
    margin-bottom: 26px;
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}


.product-details span {
    display: block;
    font-size: 15px;
    font-family: GilroyRegular, sans-serif;
    text-align: left;
    padding: 4px 0 4px 0;
    box-sizing: border-box;
}

.product-btn {
    width: 130px;
    height: 50px;
    font-size: 16px;
}

/* Пятый блок. Форма заказа */


.orders {
    padding: 98px 0 120px 0;
}

.orders .container {
    display: flex;
    position: relative;
    align-items: end;
}

.order-image {
    padding: 0 16px;
    margin-right: 145px;
}

.order-image-animate {
    position: absolute;
    top: 44px;
    left: 3px;
    animation: strawberries 3s ease infinite;
}

@keyframes strawberries {
    0% {
        transform: translateY(10px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(10px);
    }
}

.order-info-form {
    max-width: 406px;
}

.order-title {
    margin-bottom: 41px;
}

.order-description {
    margin-bottom: 48px;
}

.order-form {
    display: grid;
    grid-template-rows: 38px minmax(100px, max-content) 38px minmax(75px, max-content) minmax(75px, max-content) 60px;
    align-items: start;
}

.order-form label {
    display: block;
    font-size: 18px;
    font-family: GilroyBold, sans-serif;
    color: rgb(18, 10, 6);
}


.order-form input {
    border: 1px solid rgb(155 106 141);
    border-radius: 30px;
    width: 295px;
    height: 59px;
    font-size: 15px;
    font-family: GilroyBold, sans-serif;
    padding: 0 25px 0 25px;
    outline: none;
    box-sizing: border-box;
}

.order-form input::placeholder {
    color: rgb(75 31 62);
}

.btn-order {
    width: 295px;
    height: 61px;
    font-size: 18px;
}

.order-image-dop {
    position: absolute;
    right: 153px;
    bottom: 75px;
    animation: strawberries 3s ease .5s infinite;
}

form .error-input {
    color: #b60507;
    font-size: 15px;
    margin: 5px 0 15px 30px;
    display: none;
}

.order-message {
    height: 386px;
    top: 0;
    left: 0;
    /*display: flex;*/
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-family: GilroyRegular, sans-serif;
    color: rgb(51, 25, 7);
    line-height: 1.556;
    display: none;

}

/* Подвал */

.footer {
    background-color: #9b6a8d;
    padding: 72px 0 60px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0;
}

.footer .logo {
    display: block;
    margin-bottom: 19px;
}

.copyright, .logo-copyright-mob {
    font-size: 12px;
    font-family: GilroyRegular, sans-serif;
    color: rgb(75 31 62);
}

.icon-social {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.icon-social img {
    margin-bottom: 15px;
}

.icon-social span {
    display: block;
    font-size: 16px;
    font-family: GilroyBold, sans-serif, sans-serif;
    color: rgb(255, 255, 255);
}

.footer .phone {
    margin-left: 11px;
}

/* Фиксированный блок с презентом */

.fix-block {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    z-index: 999;
}

.fix-block-btn {
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(rgb(47 8 34), rgb(153 69 129));
    cursor: pointer;
}


.fix-block-text {
    width: 172px;
    height: 64px;
    border: 2px solid rgb(86 30 69);
    background-color: rgb(240 232 225);
    border-radius: 10px;
    font-size: 15px;
    font-family: GilroyMedium, sans-serif;
    color: rgb(86 30 69);
    line-height: 1.333;
    padding: 13px 8px;
    box-sizing: border-box;
    position: relative;
    right: 26px;
    transform: translate(0, 100%);
    opacity: 0;
    transition: all .5s;
}

.fix-block-text::before, .fix-block-text::after {
    content: '';
    position: absolute;
    right: -28px;
    top: 18px;
    border: 12px solid transparent;
    border-left: 15px solid rgb(86 30 69);
}

.fix-block-text::after {
    right: -26px;
    border-left: 15px solid rgb(240 232 225);
}

.fix-block-btn:hover {
    box-shadow: 0px 0px 12.6px 2.4px rgba(153, 69, 129, 0.5);
}

.fix-block:hover .fix-block-text {
    transform: translate(0, 0);
    opacity: 100%;
}

.logo-copyright-mob, .burger, .close {
    display: none;
}

.break-before::before {
    content: "\A";
    white-space: pre;
}

.loader {
    position: fixed;
    background: rgba(0, 0, 0, 0.6);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    display: none;
}

.lds-roller {
    /* change color here */
    color: rgb(118, 12, 34);
}

.lds-roller,
.lds-roller div,
.lds-roller div:after {
    box-sizing: border-box;
}
.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-roller div {
    animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 40px 40px;
}
.lds-roller div:after {
    content: " ";
    display: block;
    position: absolute;
    width: 7.2px;
    height: 7.2px;
    border-radius: 50%;
    background: currentColor;
    margin: -3.6px 0 0 -3.6px;
}
.lds-roller div:nth-child(1) {
    animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
    top: 62.62742px;
    left: 62.62742px;
}
.lds-roller div:nth-child(2) {
    animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
    top: 67.71281px;
    left: 56px;
}
.lds-roller div:nth-child(3) {
    animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
    top: 70.90963px;
    left: 48.28221px;
}
.lds-roller div:nth-child(4) {
    animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
    top: 72px;
    left: 40px;
}
.lds-roller div:nth-child(5) {
    animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
    top: 70.90963px;
    left: 31.71779px;
}
.lds-roller div:nth-child(6) {
    animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
    top: 67.71281px;
    left: 24px;
}
.lds-roller div:nth-child(7) {
    animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
    top: 62.62742px;
    left: 17.37258px;
}
.lds-roller div:nth-child(8) {
    animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
    top: 56px;
    left: 12.28719px;
}
@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* padding-bottom and top for image */
img.mfp-img {
    padding: 70px;
    width: 400px;
    background-color: #ffefef;
    border-radius: 20px;
}








