html {
    box-sizing: border-box;

    cursor: url('../images/cursor/cursor.svg') 8 8, auto;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

:root {
    --background-green-color: #84A178;
    --accent-yellow-color: #F8D24E;
    --primary-white-color: #FCFCFC;
    --primary-black-color: #131313;
    --white-color: #ffffff;
    --black-color: #000000;
    --green-color: #AEC6A5;
    --yellow-color: #EFD478;
    --red-color: #D6936D;
    --grey-color: #7A7A7A;
    --light-grey-color: #ABABAB;
    --hover-green-color: #0A8817;
    --line-grey: #E1E1E1;
}

body {
    min-width: 320px;
    margin: 0;
    padding: 0;
    
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--primary-white-color);

    background-color: var(--background-green-color);
}

h1, h2, h3, h4, h5, h6, ul, p {
    margin: 0;
    padding: 0;
}

img {
    display: block;
}

button:hover, 
a:hover {
    cursor: url('../images/cursor/cursor_yellow.svg') 8 8, pointer;
}

button:hover {
    animation: pulse 0.5s ease-in-out 2 both;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    } 
}

.list {
    list-style: none;
}

.link {
    text-decoration: none;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.28;
    color: var(--black-color);

    border-radius: 10px;
}

.btn-menu {
    width: 32px;
    height: 32px;
    padding: 0;
    
    background-color: transparent;
    border: none;
}

.icon-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;

    fill: var(--white-color);
}

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    
    border: 0;

    overflow: hidden;
    clip: rect(0 0 0 0);
}

.container {
    padding: 0 20px;
    margin: 0 auto;
}


/* Header */

.header {
    position: relative;

    padding-top: 12px;
}

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

.header-container .wrapper {
    display: flex;
    margin-left: auto;
}

.nav-list {
    display: flex;
}

.nav-list li:not(:last-child) {
    margin-right: 28px;
}

.nav-list .link {
    display: block;
    padding-top: 12px;
    padding-bottom: 10px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

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

.primary-btn {
    height: 42px;
    padding: 12px 34px;

    background-color: var(--accent-yellow-color);
    border: transparent;
}

.primary-btn:hover,
.primary-btn:focus {
    background-color: var(--hover-green-color);
}

.primary-btn:focus {
    color: var(--white-color);
}

.primary-btn:focus .icon-arrow {
    fill: currentColor;
}

.header-container .primary-btn {
    min-width: 152px;
    padding-left: 36px;
    padding-right: 35px;
    margin-left: 32px;
}

.icon-arrow {
    width: 12px;
    height: 12px;
    margin-left: 4px;
}


/* Mobile-menu */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    flex-direction: column;
    align-items: center;
    
    width: 100vw;
    height: 100vh;
    min-width: 320px;
    padding-top: 12px;
    padding-bottom: 64px;

    background-color: var(--background-green-color);

    transform: translateX(-100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);

    overflow: auto;
}

.mobile-menu.is-open {
    display: flex;

    transform: translateX(0);
}

.mobile-menu .logo {
    display: flex;
    align-self: flex-start;
    margin-bottom: 50px;
    margin-left: 32px;
}

.mobile-menu-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 110px;
}

.mobile-menu-nav-list li:not(:last-child) {
    margin-bottom: 32px;
}

.mobile-menu-nav-list .link {
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: var(--white-color);
}

.mobile-menu-nav-list .link:hover,
.mobile-menu-nav-list .link:focus {
    color: var(--black-color);
}

.menu-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;

    width: 32px;
    height: 32px;
    padding: 0;

    background-color: transparent;
    border: none;
}

.icon-menu-close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;

    fill: var(--white-color);
}

.mobile-menu .open-modal-btn {
    margin-top: auto;
}


/* Hero */

.hero-container {
    position: relative;

    padding-top: 50px;

    background-repeat: no-repeat;
    background-position: right bottom;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 237px;
}

.statistics {
    padding-top: 14px;
}

.hero-title,
.products .title,
.how-its-made .title {
    font-family: "Seymour One", sans-serif;
}

.hero-title {
    width: 247px;
    margin-bottom: 32px;

    font-size: 26px;
    letter-spacing: 0.04em;
}

.hero-title-word {
    font-size: 33px;
}

.hero .list {
    display: flex;
    align-items: center;
}

.hero li:not(:last-child) {
    margin-right: 12px;
}

.secondary-btn {
    display: flex;
    height: 38px;
    padding: 9px 24px;

    border: 2px solid var(--accent-yellow-color);
}

.hero .secondary-btn {
    min-width: 108px;
}

.secondary-btn:hover {
    border-color: var(--hover-green-color);
}

.secondary-btn:focus {
    color: var(--primary-white-color);

    border-color: var(--hover-green-color);
}

.hero-link {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.21;
    color: var(--accent-yellow-color);
}

.hero-link:hover {
    color: var(--hover-green-color);
}

.hero-link:focus {
    color: var(--primary-white-color);
}

.hero .statistics-cafe,
.hero .statistics-food-trucks{
    font-size: 8px;
    text-align: right;
}

.hero .statistics-cafe {
    margin-bottom: 20px;
}

.number {
    display: block;
    margin-bottom: 4px;

    font-weight: 900;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    color: var(--primary-black-color);
}

.hero-details {
    display: flex;
    padding-bottom: 12px;
}

.hero-info {
    margin-left: 32px;
    padding-top: 27px;

    overflow: hidden;
}

.hero-text {
    width: 165px;
    margin-bottom: 24px;

    font-size: 11px;
    line-height:1.4;

    transform: translateX(-100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-text.show {
    transform: translateX(1%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.arrow-btn {
    width: 42px;
    height: 16px;
    
    background-color: transparent;
    border: none;
}

.icon-long-arrow.rotate {
    transform: rotate(180deg);
}

.icon-long-arrow {
    width: 40px;
    height: 16px;
}

.hero .icon-long-arrow {
    fill: var(--white-color);
}

.big-ice-cream {
    position: absolute;
    right: 60px;
    bottom: 0;
}


/* Products */

.products {
    padding-top: 60px;
    padding-bottom: 60px;

    color: var(--primary-black-color);

    background-image: image-set(
        url(../images/bg-mobile.png) 1x,
        url(../images/bg-mobile@2x.png) 2x
    );
    background-position: center center;
    background-repeat: repeat;
}

.pre-title {
    margin-bottom: 12px;

    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
}

.products .title {
    margin-bottom: 148px;

    font-size: 30px;
    letter-spacing: 0.04em;
    text-align: center;
}

.product-list-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    min-height: 420px;
    padding: 123px 40px 16px;

    text-align: center;

    border-radius: 24px;
}

.product-list-item:nth-child(1) {
    background-color: var(--green-color);
}

.product-list-item:nth-child(2) {
    background-color: var(--yellow-color);
}

.product-list-item:nth-child(3) {
    background-color: var(--red-color);
}

.product-list-item::before,
.product-list-item::after {
    content: '';
    
    position: absolute;
    left: 50%;
    
    display: flex;
    width: 200px;
    height: 200px;

    border-radius: 50%;

    transform: translateX(-50%);
} 

.product-list-item::before {
    top: -97px;
}

.product-list-item:nth-child(1)::before {
    background-color: var(--green-color);

    box-shadow: 0 8px 30px rgba(10, 136, 23, 0.25);
}

.product-list-item:nth-child(2)::before {
    background-color: var(--yellow-color);

    box-shadow: 0 8px 30px rgba(153, 114, 23, 0.25);
}

.product-list-item:nth-child(3)::before {
    background-color: var(--red-color);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.product-list-item::after {
    top: -108px;
}

.product-list-item:nth-child(1)::after {
    background-image: image-set(
        url(../images/product1-200.png) 1x,
        url(../images/product1-200@2x.png) 2x
    );
}

.product-list-item:nth-child(2)::after {
    background-image: image-set(
        url(../images/product2-200.png) 1x,
        url(../images/product2-200@2x.png) 2x
    );
}

.product-list-item:nth-child(3)::after {
    background-image: image-set(
        url(../images/product3-200.png) 1x,
        url(../images/product3-200@2x.png) 2x
    );
}

.product-name {
    margin-bottom: 40px;

    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.product-list p {
    font-size: 14px;
    line-height: 1.76;
    letter-spacing: 0.04em;
}

.products .arrow-btn {
    margin-top: auto;
}

.products .icon-long-arrow {
    fill: var(--primary-black-color);
}


/* How its made */

.how-its-made {
    padding-top: 60px;
    padding-bottom: 50px;
}

.how-its-made .title {
    min-height: 45px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;

    text-align: center;
    font-size: 30px;
    letter-spacing: 0.06em;
}

.how-its-made .content {
    position: relative;
}

.content::before,
.content::after {
    content: '';

    display: flex;
    width: 279px;
    height: 278px;
}

.content::before {
    background-color: rgba(248, 210, 78, 0.7);
    border-radius: 50%;
}

.content::after {
    position: absolute;
    top: 22px;
    
    background-image: image-set(
        url(../images/cow-279.png) 1x,
        url(../images/cow-279@2x.png) 2x
    );
    background-size: contain;  
}

.how-its-made .description-text {
    width: 220px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

.description-text .text {
    line-height: 1.62;
}

.description-text .text:first-child {
    line-height: 1.76;
    letter-spacing: 0.04em;
}

.description-text .text:not(:last-child) {
    margin-bottom: 4px;
}

.how-its-made .primary-btn {
    min-width: 164px;
    padding-right: 35px;
}


/* Advantages */

.advantage-list {
    margin-left: 0;
    margin-right: 0;

    text-align: center;
}

.advantage-list > .item {
    margin-left: 0;
    margin-right: 0;

    text-align: center;
}

.advantage-list > .item::before {
    content: '';

    display: flex;
    width: 50px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;

    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--accent-yellow-color);
    border-radius: 50%;
}

.advantage-list > .item:nth-child(1)::before {
    background-image: url(../images/icon-cow.png);
}

.advantage-list > .item:nth-child(2)::before {
    background-image: url(../images/icon-weight.png);
}

.advantage-list > .item:nth-child(3)::before {
    background-image: url(../images/icon-ice-cream.png);
}

.advantage-list .numbers {
    margin-bottom: 16px;

    font-weight: 700;
    font-size: 36px;
    line-height: 1.22;
    letter-spacing: 0.04em;
}

.advantage-list .description {
    width: 230px;
    margin-left: auto;
    margin-right: auto;

    font-size: 12px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-align: center;
}


/* Gallery */

.gallery {
    padding-top: 32px;
    padding-bottom: 380px;

    text-align: center;

    background: linear-gradient(to bottom, var(--background-green-color) 64px, transparent 0),
    image-set(
        url(../images/bg-mobile.png) 1x,
        url(../images/bg-mobile@2x.png) 2x
    );
    background-position: left bottom;
}

.photoSwiper {
    width: 280px; 
    height: 130px;
    margin-bottom: 80px;
}

.photoSwiper .swiper-slide {
    margin-right: 100px;
}

.photoSwiper img {
    width: 100%;
    height: 100%;

    border-radius: 8px;
}

.reviewSwiper {
    width: 280px;
}

.reviewSwiper .swiper-wrapper {
    margin-bottom: 32px;
}

.review img {
    width: 85px;
    height: 85px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 32px;

    border-radius: 50%;
}

.review-text {
    padding: 35px 39px;
    margin-bottom: 32px;

    font-size: 12px;
    line-height: 2.55;
    text-align: center;

    background-color: var(--background-green-color);
    border-radius: 10px;
}

.customer-name {
    margin-bottom: 12px;

    font-weight: 500;
    font-size: 20px;
    line-height: 1.86;
    color: var(--primary-black-color);
} 

.reviewSwiper .swiper-pagination {
    position: static;

    display: flex;
    justify-content: center;
    gap: 18px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background-color: var(--background-green-color);
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: url('../images/cursor/cursor_yellow.svg') 8 8, pointer;
}


/* Contacts */

.contacts {
    margin-top: -353px;
    padding-bottom: 60px;

    font-weight: 500;
    font-size: 12px;
    color: var(--primary-black-color);
}

.contact-list {
    margin-bottom: 20px;
}

.contact-list-item {
    width: 280px;
    padding: 40px 32px 24px;
    margin-left: auto;
    margin-right: auto;

    background-color: var(--white-color);
    border-radius: 24px;

    box-shadow: 0 8px 30px rgba(212, 20, 67, .1);
}

.contact-list-item > p {
    display: inline-block;
    margin-bottom: 20px;
    padding: 4px 22px;

    letter-spacing: 0.04em;
    line-height: 1.2;
    
    background-color: var(--accent-yellow-color);
    border-radius: 4px;
}

.city {
    margin-bottom: 8px;

    letter-spacing: 0.04em;
    line-height: 1.86;
}

.address {
    margin-bottom: 48px;

    font-style: normal;
    line-height: 1.83;
    letter-spacing: 0.04em;
    color: var(--red-color);
}

.work-hour-list {
    position: relative;

    margin-bottom: 48px;

    line-height: 1.86;
}

.work-hour-list > li:first-child {
    margin-bottom: 8px;
}

.work-hours {
    color: var(--light-grey-color);
}

.work-hour-list::before,
.work-hour-list::after {
    content: '';

    position: absolute;

    display: block;
    width: 100%;
    height: 1px;
    
    background-color: var(--line-grey);
}

.work-hour-list::before {
    top: -24px;
}

.work-hour-list::after {
    bottom: -24px;
}

.contact-list .link {
    line-height: 1.6;
    color: inherit;
}

.contact-link-list > a {
    margin-bottom: 6px;
}

.button-list {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-list .primary-btn {
    min-width: 196px;
    padding-left: 40px;
    padding-right: 39px;
}

.button-list .secondary-btn {
    height: 42px;
    min-width: 196px;
    padding: 12px 54px 12px 55px;

    background-color: var(--background-green-color);
}

.secondary-btn:focus .icon-arrow {
    fill: currentColor;
}


/* Footer */

.footer-content {
    margin-bottom: 60px;
}

.footer .title {
    width: 232px;
    margin-bottom: 16px;

    font-size: 18px;
    line-height: 1.2;
}

.footer .title-end {
    width: 200px;

    font-weight: 700;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 0.04em;
}

.social-media-list {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.social-media-list .item:not(:last-child) {
    margin-right: 20px;
}

.social-media-link {
    display: flex; 
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    
    background-color: var(--accent-yellow-color);
    border-radius: 50%;
}

.social-media {
    fill: var(--background-green-color);
}

.social-media-link:hover {
    animation: rotate-scale-up 0.4s linear both;
}

@keyframes rotate-scale-up {
    0% {
        transform: scale(1) rotateZ(0);
    }

    50% {
        transform: scale(2) rotateZ(180deg);
    }

    100% {
        transform: scale(1) rotateZ(360deg);
    }
}

.social-media-link:hover .social-media,
.social-media-link:focus .social-media {
    fill: var(--white-color);
}

.footer-contact {
    display: flex; 
    justify-content: flex-end;

    font-weight: 700;
    line-height: 1.86;
    color: var(--primary-black-color);
}

.footer-tel {
    color: var(--white-color);
}

.all-rights { 
    position: relative;

    padding-bottom: 20px;

    text-align: center;
}    

.all-rights::before {
    content: '';

    position: absolute;
    top: -20px;

    display: block;
    height: 1px;
    width: 100%;
    
    background-color: var(--line-grey);
}

.copyright {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.52;
    color: var(--grey-color);
}

.btn-up {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;

    display: none;
    width: 50px;
    height: 50px;
    
    background-color: var(--green-color);
    border: 3px solid var(--hover-green-color);
    border-radius: 50%;
}

.btn-up:hover {
    background-color: var(--accent-yellow-color);
}

.btn-up:hover .btn-up-icon {
    fill: rgba(46, 47, 66, 0.9);
}

.btn-up-icon {
    width: 25px;
    height: 25px;

    transform: rotate(-90deg);

    fill: rgba(46, 47, 66, 0.6);
}


/* Modals */

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;

    width: 100%;
    height: 100%;

    background-color: rgba(46, 47, 66, 0.4);

    opacity: 0;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
    
    pointer-events: none;
}

.backdrop.active {
    opacity: 1;

    pointer-events: auto;
}

.modal {
    position: fixed;
    top: 50px;
    left: 50%;
    z-index: 1000;

    width: 280px;
    max-height: calc(100vh - 50px);
    padding: 26px;
    overflow-y: auto;
    overflow-x: hidden;

    color: var(--primary-black-color);
    text-align: center;
    
    background-color: var(--primary-white-color);
    border: 2px solid var(--accent-yellow-color);
    border-radius: 10px;
    
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);

    pointer-events: none;
    scrollbar-width: thin;
}

.modal.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity  250ms cubic-bezier(0.4, 0, 0.2, 1);

    pointer-events: auto;
}

.close-modal-btn {
    position: absolute;
    top: 12px;
    right: 12px;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    padding: 0;

    background-color: transparent;
    border: none;
}

.icon-close {
    display: block;
    width: 20px;
    height: 20px;
}

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

    font-family: "Seymour One", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.form {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}

input, textarea {
    padding: 8px 12px;

    color: var(--primary-black-color);

    background-color: rgba(248, 210, 78, 0.1);
    border: 1px solid var(--background-green-color);
    border-radius: 10px;
}

input {
    min-height: 42px;
    margin-bottom: 12px;
}

textarea {
    min-height: 84px;
    margin-bottom: 24px;
    resize: none;
}

input::placeholder, textarea::placeholder {
    color: var(--primary-black-color);
}

input:focus, textarea:focus {
    border: 1px solid var(--yellow-color);
    outline: none;
}

.form input.invalid:not(:placeholder-shown) {
    border: 2px solid red;
}


/* Buynow-modal */

.modal-buynow .modal-title {
    margin-bottom: 83px;
}

.modal-buynow  .buynow-products-list {
    margin-bottom: 32px;
}

.buynow-products-item {
    position: relative;
}

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

.checkbox {
    position: absolute;
    -webkit-appearance: none; 
    -moz-appearance: none;   
    appearance: none;
}

.product-checkbox {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 132px;
    height: 135px;
    padding-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
    
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    
    border: 2px solid black;
    border-radius: 15px;

    cursor: url('../images/cursor/cursor_yellow.svg') 8 8, pointer;
}

.checkbox-icecream {
    border: 2px solid var(--green-color);
}

.checkbox-icecoffee {
    border: 2px solid var(--yellow-color);
}

.checkbox-milkshake {
    border: 2px solid var(--red-color);
}

.checkbox:checked + .checkbox-icecream {
    background-color: var(--green-color);
}

.checkbox:checked + .checkbox-icecoffee {
    background-color: var(--yellow-color);
}

.checkbox:checked + .checkbox-milkshake {
    background-color: var(--red-color);
}

.product-checkbox::before,
.product-checkbox::after {
    content: '';

    position: absolute;

    width: 132px;
    height: 132px;

    border-radius: 50%;

    cursor: url('../images/cursor/cursor_yellow.svg') 8 8, pointer;
}

.product-checkbox::before {
    bottom: 59px;
}

.product-checkbox::after {
    bottom: 66px;

    background-size: cover;
}

.checkbox-icecream::before {
    box-shadow: 0 5.26px 19.73px rgba(10, 136, 23, 0.25);
}

.checkbox-icecream::before,
.checkbox-icecream::after {
    background-color: var(--green-color);
}

.checkbox-icecream::after  {
    background-image: image-set(
        url(../images/product1-132.png) 1x,
        url(../images/product1-132@2x.png) 2x
    );
}

.checkbox-icecoffee::before {
    box-shadow: 0 5.26px 19.73px rgba(153, 114, 23, 0.25);
}

.checkbox-icecoffee::before,
.checkbox-icecoffee::after {
    background-color: var(--yellow-color);
}

.checkbox-icecoffee::after  {
    background-image: image-set(
        url(../images/product2-132.png) 1x,
        url(../images/product2-132@2x.png) 2x
    );
}

.checkbox-milkshake::before {
    box-shadow: 0 5.26px 19.73px rgba(0, 0, 0, 0.25);
}

.checkbox-milkshake::before,
.checkbox-milkshake::after {
    background-color: var(--red-color);
}

.checkbox-milkshake::after  {
    background-image: image-set(
        url(../images/product3-132.png) 1x,
        url(../images/product3-132@2x.png) 2x
    );
}

.buynow-modal-form-inputs {
    width: 224px;
    margin-left: auto;
    margin-right: auto;
}

.buynow-modal-form-inputs:focus {
    border: 1px solid var(--yellow-color);
}


/* Product-modals */

.modal-product {
    padding-left: 18px;
    padding-right: 18px;
}

.modal-product > .modal-title {
    margin-bottom: 20px;
}

.product-background {
    width: 132px;
    height: 132px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;

    border-radius: 50%;
}

.product-background-image {
    position: relative;
    bottom: 7px;
}

.product-info-list {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 72px;
    width: 53px;
    padding-bottom: 6px;
    padding-left: 6px;
    padding-right: 6px;

    border-radius: 40px;
}

.product-info > p {
    font-size: 10px;
    line-height: 1.2;
}

.product-info > .product-info-number {
    position: relative;
    bottom: 1px;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 43px;
    height: 43px;
    margin-bottom: 8px;

    font-weight: 500;
    line-height: 2.33;

    border-radius: 50%;
}

.ingredient-title {
    margin-bottom: 24px;

    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
}

.ingredient-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
}

.ingredient-item:not(:last-child) {
    margin-bottom: 11px;
}

.modal-ice-cream .product-background, 
.modal-ice-cream .product-info-number {
    background-color: var(--green-color);
}

.modal-ice-cream .product-info {
    border: 2px solid var(--green-color);
}

.modal-ice-coffee .product-background, 
.modal-ice-coffee .product-info-number {
    background-color: var(--yellow-color);
}

.modal-ice-coffee .product-info {
    border: 2px solid var(--yellow-color);
}

.modal-milkshakes .product-background, 
.modal-milkshakes .product-info-number {
    background-color: var(--red-color);
}

.modal-milkshakes .product-info {
    border: 2px solid var(--red-color);
}

 
/* Readmore-modal */

.video {
    width: 224px;
    height: 199px;
    margin-bottom: 20px;

    background-color: var(--black-color);
    border: none;
    border-radius: 10px;
}

.modal .description {
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}


/* Google-map-modal */

.google-map {
    width: 224px;
    height: 199px;
    margin-bottom: 24px;

    border-radius: 10px;
}

.modal-btn {
    padding: 12px 34px;
    margin-left: auto;
    margin-right: auto;

    font-family: inherit;
    font-weight: 600;
    color: var(--primary-black-color);
    text-align: center;

    background-color: var(--accent-yellow-color);
    border: none;
    border-radius: 10px;
}

.modal-btn:hover { 
    background-color: var(--hover-green-color);
}

.map-btn {
    display: inline-block;

    text-decoration: none;
}


/* Franchise-modal */

.franchise > .modal-title {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.franchise > .description {
    margin-bottom: 24px;

    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}



@media screen and (min-width: 480px) {
    .header {
        padding-top: 14px;
    }

    .container {
        width: 480px;
    }

    .header-container {
        align-items: flex-start;
    }

    .mobile-menu {
        padding-top: 20px;
        padding-bottom: 88px;
    }  

    .mobile-menu .logo {
        margin-left: 20px;
        margin-bottom: 40px;
    }

    .menu-close-btn {
        top: 20px;
    }

    .big-ice-cream {
        right: 20px;
    }

    .hero-container {
        padding-top: 40px;
    }

    .hero-content {
        padding-bottom: 150px;
    }

    .product-list-item {
        height: 428px;
    }

    .product-list-item::before {
        top: -94px;
    }

    .product-list-item::after {
        top: -105px;
    }

    .how-its-made {
        padding-bottom: 60px;
    }

    .gallery {
        padding-bottom: 409px;

        background: linear-gradient(to bottom, var(--background-green-color) 81px, transparent 0),
        image-set(
            url(../images/bg-mobile.png) 1x,
            url(../images/bg-mobile@2x.png) 2x
        );
    }

    .photoSwiper {
        width: 440px; 
        height: 204px;
    }

    .contacts {
        margin-top: -349px;
    }

    .contact-list {
        margin-bottom: 24px;
    }

    .all-rights {
        padding-bottom: 24px;
    }
}



@media screen and (max-width: 767px) {
    .header-container .open-modal-btn {
        display: none;
    }

    .hero-container {
        background-image: image-set(
            url(../images/dots-mobile.png) 1x,
            url(../images/dots-mobile@2x.png) 2x
        );
    }

    .hero .statistics, .hero .hero-details {
        display: none;
    }

    .product-list-item {
        margin-left: auto;
        margin-right: auto;
    }

    .product-list-item:not(:last-child) {
        margin-bottom: 168px;
    }

    .product-list p {
        width: 200px;
    }

    .content::before,
    .content::after {
        margin: 0 auto;
    }

    .content::before {
        margin-bottom: 62px;
    }

    .content::after {
        left: 50%;

        transform: translateX(-50%);
    }

    .how-its-made {
        text-align: center;
    }

    .how-its-made .title {
        width: 210px;
    }

    .how-its-made .description {
        margin-left: auto;
        margin-right: auto;
    }

    .how-its-made .description-text {
        text-align: center;
    }

    .how-its-made .primary-btn {
        margin-left: auto;
        margin-right: auto;
    }

    .advantage-list > .item:not(:last-child) {
        margin-bottom: 32px;
    }

    .contact-list-item:not(:last-child) {
        margin-bottom: 16px;
    }

    .button-list {
        flex-direction: column;
    }

    .button-list > li:not(:last-child) {
        margin-bottom: 16px;
    }

    .footer .title-end {
        margin-bottom: 60px;
    }

    .modal-product > .modal-title {
        max-width: 142px;
        margin-left: auto;
        margin-right: auto;
    }
}



@media screen and (min-width: 768px) {
    .header {
        padding-top: 20px;
        
    }
    
    .container {
        width: 768px;
        padding-left: 32px;
        padding-right: 32px;
    }

    .header-container .wrapper {
        justify-content: center;
        align-items: center;
        align-self: flex-end;
    }
    
    .mobile-menu .logo {
        margin-left: 32px;
        margin-bottom: 76px;
    }

    .mobile-menu .menu-close-btn {
        top: 32px;
        right: 32px;
    }

    .mobile-menu-nav-list .link {
        font-size: 48px;
    }

    .mobile-menu-nav-list li:not(:last-child) {
        margin-bottom: 40px;
    }

    .mobile-menu .open-modal-btn {
        display: none;
    }

    .hero-container {
        padding-top: 14px;

        background-image: image-set(
            url(../images/dots-tablet.png) 1x,
            url(../images/dots-tablet@2x.png) 2x
        );
    }

    .hero-title {
        margin-bottom: 24px;
    }

    .hero-content {
        padding-bottom: 0;
        margin-bottom: 12px;
    }

    .big-ice-cream {
        right: 92px;
    }

    .products {
        background-image: image-set(
            url(../images/bg-tablet.png) 1x,
            url(../images/bg-tablet@2x.png) 2x
        );
    }

    .pre-title {
        font-size: 22px;
        font-weight: 800;
    }

    .products .title {
        margin-bottom: 200px;

        font-size: 34px;
    }

    .product-list {
        display: flex;
        justify-content: space-between;
    }
    
    .product-list-item {
        width: 224px;
        padding: 108px 26px 12px;
    }

    .product-name {
        font-size: 22px;
    }

    .product-list-item::before {
        top: -108px;
    }

    .product-list-item::after {
        top: -120px;
    }

    .how-its-made {
        padding-bottom: 80px;
    }

    .content::before,
    .content::after {
        width: 330px;
        height: 330px;
    }

    .content::before {
        margin-right: 38px;
    }

    .content::after {
        top: 26px;

        background-image: image-set(
            url(../images/cow-330.png) 1x,
            url(../images/cow-330@2x.png) 2x
        );
    }

    .how-its-made .title {
        margin-bottom: 72px;

        font-size: 34px;
    }

    .how-its-made .content {
        display: flex;
        flex-direction: row;
    }

    .how-its-made .description {
        padding-top: 8px;
    }

    .how-its-made .description-text {
        width: 334px;
        margin-bottom: 32px;
    }

    .description-text .text:not(:last-child) {
        margin-bottom: 8px;
    }

    .description-text .text {
        line-height: 1.76;
    }
    
    .description-text .text:last-child {
        line-height: 1.94;
    }

    .advantage-list {
        display: flex;
        justify-content: space-between;
    }

    .advantage-list > .item {
        width: 152px;
    }

    .advantage-list > .item::before {
        margin-bottom: 32px;
    }

    .advantage-list .numbers {
        margin-bottom: 12px;

        font-size: 48px;
    }

    .advantage-list .description {
        width: 152px;

        font-size: 14px;
        line-height: 1.74;
    }

    .gallery {
        padding-top: 60px;
        padding-bottom: 379px;

        background: linear-gradient(to bottom, var(--background-green-color) 204px, transparent 0),
        image-set(
            url(../images/bg-tablet.png) 1x,
            url(../images/bg-tablet@2x.png) 2x
        );
    }

    .photoSwiper {
        width: 704px; 
        height: 327px;
        margin-bottom: 100px;
    }

    .photoSwiper img {
        border-radius: 18px;
    }

    .reviewSwiper {
        width: 704px;
    }

    .review-text {
        padding: 28px 80px;

        font-size: 14px;
        line-height: 1.86;
        letter-spacing: 0.04em;

        border-radius: 24px;
    }

    .customer-name {
        margin-bottom: 32px;

        font-size: 16px;
    }

    .contacts {
        margin-top: -299px;
        padding-bottom: 40px;

        font-size: 14px;
    }

    .contact-list {
        display: flex;
        justify-content: space-between;
        margin-bottom: 40px;
    }

    .contact-list-item {
        width: 224px;
        padding: 40px 24px;
    }

    .contact-list-item > p {
        margin-bottom: 32px;

        font-size: 16px;
        line-height: 1.4;
    }

    .city {
        margin-bottom: 12px;

        font-size: 14px;
    }

    .address {
        margin-bottom: 64px;

        font-size: 14px;
    }

    .work-hour-list {
        margin-bottom: 64px;

        font-size: 14px;
    }

    .contact-list .link {
        font-size: 14px;
        line-height: 1.5;
    }

    .contact-link-list > a {
        margin-bottom: 4px;
    }

    .button-list > li:not(:last-child) {
        margin-right: 16px;
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        margin-bottom: 44px;
    }

    .footer .title {
        width: 352px;
        margin-bottom: 14px;

        font-size: 26px;
        letter-spacing: 0.04em;
    }

    .footer .title-end {
        font-size: 48px;
        letter-spacing: 0.06em;
    }

    .footer-content .wrapper {
        padding-top: 61px;
    }

    .social-media-list {
        margin-bottom: 34px;
    }

    .social-media-list .item:not(:last-child) {
        margin-right: 30px;
    }

    .footer-contact {
        font-size: 14px;
    }

    .all-rights { 
        padding-bottom: 12px;
    }

    .copyright {
        display: inline-block;

        line-height: 1.86;
        letter-spacing: 0.02em;
    }
    
    .modal {
        top: 50%;

        width: 568px;
        padding: 30px 58px;

        transform: translate(-50%, -50%) scale(0.9);
    }

    .modal.active {
        transform: translate(-50%, -50%) scale(1);
    }

    .close-modal-btn {
        width: 24px;
        height: 24px;
    }

    .icon-close {
        width: 24px;
        height: 24px;
    }

    .modal-title {
        margin-bottom: 40px;

        font-size: 20px;
        line-height: 1.4;
    }

    .modal-buynow {
        padding-left: 52px;
        padding-right: 52px;
    }

    .modal-buynow .form {
        width: 460px;
    }

    .modal-buynow .modal-title {
        margin-bottom: 103px;
    }

    .modal-buynow  .buynow-products-list {
        display: flex;
        margin-bottom: 40px;
    }

    .buynow-modal-form-inputs {
        width: 368px;
    }

    input, textarea {
        padding: 11px 16px;
    }

    input {
        margin-bottom: 16px;
    }

    textarea {
        margin-bottom: 32px;
    }

    .buynow-products-item:not(:last-child) {
        margin-right: 32px;
        margin-bottom: 0;
    }

    .modal-product {
        padding-left: 38px;
        padding-right: 38px;
    }

    .modal-product > .modal-title {
        margin-bottom: 24px;
    }

    .product-background {
        margin-bottom: 24px;
    }

    .product-info-list {
        justify-content: center;
        margin-bottom: 48px;
    }

    .product-info {
        height: 90px;
        width: 60px;
        padding-bottom: 12px;
    }

    .product-info:not(:last-child) {
        margin-right: 20px;
    }

    .product-info > .product-info-number {
        width: 53px;
        height: 53px;
    }

    .ingredient-list {
        margin-bottom: 48px;
    }

    .modal-product .form {
        width: 368px;
    }

    .video {
        width: 448px;
        height: 205px;
        margin-bottom: 32px;
    }

    .modal .description {
        font-size: 16px;
    }

    .google-map {
        width: 448px;
        height: 260px;
        margin-bottom: 32px;
    }

    .franchise > .modal-title {
        width: 322px;
        margin-bottom: 24px;
    }

    .franchise > .description {
        width: 448px;
        margin-bottom: 32px;

        font-size: 16px;
    }
}



@media screen and (max-width: 1199px) {
    .header-container .header-nav {
        display: none;
    }

    .footer .title {
        font-weight: 700;
    }
}



@media screen and (min-width: 1200px) {
    .header {
        padding-top: 8px;
    }

    .container {
        width: 1200px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .header-container .primary-btn {
        margin-left: 204px;
    }

    .header-container .wrapper {
        margin-bottom: 3px;
    }

    .mobile-menu {
        display: none;
    }
    
    .hero-container {
        padding-top: 45px;
    }

    .hero-title {
        width: 367px;
        margin-bottom: 28px;

        font-size: 38px;
    }

    .hero-content {
        margin-bottom: 42px;
    }

    .hero li:not(:last-child) {
        margin-right: 34px;
    }

    .hero .secondary-btn {
        height: 42px;
        min-width: 134px;
        padding: 10px 32px;

        font-size: 14px;
    }

    .hero-link {
        font-size: 14px;
    }

    .hero-details {
        padding-bottom: 65px;
    }

    .hero-text {
        width: 200px;
        margin-bottom: 32px;

        font-size: 13px;
    }

    .js-open-menu {
        display: none;
    }

    .hero-container {
        background-image: image-set(
            url(../images/dots-desktop.png) 1x,
            url(../images/dots-desktop@2x.png) 2x
        );
    }

    .hero-info {
        margin-left: 16px;
        padding-top: 77px;
    }

    .statistics {
        padding-top: 8px;
    }

    .hero .statistics-cafe,
    .hero .statistics-food-trucks {
        font-size: 14px;
    }

    .number {
        font-size: 46px;
    }

    .products {
        background-image: image-set(
            url(../images/bg-desktop.jpg) 1x,
            url(../images/bg-desktop@2x.jpg) 2x
        );
    }

    .pre-title {
        font-size: 30px;
    }

    .products .title {
        margin-bottom: 303px;

        font-size: 36px;
    }

    .product-list-item {
        min-width: 370px;
        min-height: 536px;
        padding: 165px 64px 60px;
    }

    .product-list-item::before,
    .product-list-item::after {
        width: 302px;
        height: 302px;
    }

    .product-list-item::before {
        top: -167px;
    }

    .product-list-item::after {
        top: -183px;
    }

    .product-name {
        margin-bottom: 66px;

        font-size: 30px;
    }

    .product-list p {
        font-size: 16px;
    }

    .product-list-item:nth-child(1)::after {
        background-image: image-set(
            url(../images/product1-302.png) 1x,
            url(../images/product1-302@2x.png) 2x
        );
    }

    .product-list-item:nth-child(2)::after {
        background-image: image-set(
            url(../images/product2-302.png) 1x,
            url(../images/product2-302@2x.png) 2x
        );
    }

    .product-list-item:nth-child(3)::after {
        background-image: image-set(
            url(../images/product3-302.png) 1x,
            url(../images/product3-302@2x.png) 2x
        );
    }

    .how-its-made {
        padding-bottom: 100px;
    }

    .how-its-made .title {
        margin-bottom: 82px;

        font-size: 36px;
    }

    .content::before,
    .content::after {
        width: 490px;
        height: 490px;
    }

    .content::before {
        margin-right: 109px;
    }

    .content::after {
        top: 40px;

        background-image: image-set(
            url(../images/cow-490.png) 1x,
            url(../images/cow-490@2x.png) 2x
        );
    }

    .how-its-made .description {
        padding-top: 90px;
    }

    .how-its-made .description-text {
        width: 463px;
        margin-bottom: 54px;
    }

    .description-text .text {
        font-size: 14px;
        line-height: 1.94;
    }

    .description-text .text:first-child {
        font-size: 16px;
        line-height: 1.76;
    }

    .advantage-list > .item {
        width: 368px;
    }

    .advantage-list > .item::before {
        margin-bottom: 40px;
    }

    .advantage-list .numbers {
        font-size: 58px;
    }

    .advantage-list .description {
        width: 368px;

        font-size: 16px;
        line-height: 1.76;
    }

    .gallery {
        padding-top: 80px;
        padding-bottom: 228px;

        background: linear-gradient(to bottom, var(--background-green-color) 178px, transparent 0),
        image-set(
            url(../images/bg-desktop.jpg) 1x,
            url(../images/bg-desktop@2x.jpg) 2x
        );
    }

    .gallery .container {
        padding-left: 93px;
        padding-right: 94px;
    }

    .photoSwiper {
        width: 1013px; 
        height: 422px;
        margin-bottom: 140px;
    }

    .photoSwiper img {
        border-radius: 24px;
    }

    .reviewSwiper {
        width: 968px;
    }

    .review-text {
        padding: 42px 74px;

        font-size: 16px;
    }

    .contacts {
        margin-top: -128px;
        padding-bottom: 120px;

        font-size: 16px;
    }

    .contact-list {
        margin-bottom: 60px;
    }

    .contact-list-item {
        width: 368px;
        padding: 40px;
    }

    .city {
        margin-bottom: 8px;

        font-size: 16px;
    }

    .address {
        font-size: 16px;
    }

    .work-hour-list {
        font-size: 16px;
    }

    .work-hour-list > li:first-child {
        margin-bottom: 12px;
    }

    .contact-list .link {
        font-size: 16px;
    }

    .footer-content {
        margin-bottom: 72px;
    }

    .footer .title {
        width: 504px;
        margin-bottom: 14px;

        font-size: 30px;
    }

    .footer .title-end {
        width: 504px;

        font-size: 58px;
    }

    .social-media-list {
        margin-bottom: 40px;
    }

    .footer-contact {
        font-size: 16px;
        letter-spacing: 0.02em;
    }

    .footer-content .wrapper {
        padding-top: 18px;
    }

    .copyright {
        font-size: 12px;
    }
}