@import url('https://fonts.googleapis.com/css2?family=Roboto:wdth,wght@75..100,500&display=swap');

/*! ОБЩИЕ СТИЛИ */

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    background-color: #1C1C1C;
    color: #fff;
}

a {
    color: #fff;
    text-decoration: none;
}

p  {
    margin: 0;
}

p + p{
    margin-top: 15px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


h1,h2,h3,h4,h5,h6 {
    font-weight: 500;
    margin: 0;
}

.container {
    box-sizing: border-box;

    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 165px;
    height: 50px;

    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;

    background: #F6762C;
    border-radius: 5px;
    transition: opacity 0.3s;

}

.btn:hover {
    opacity: 0.8;
}

.btn--small {
    width: 140px;
    height: 40px;
    font-size: 12px;
}

/*! ШАПКА*/

.header {
    padding: 25px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
} 



.header__list {
    display: flex;
    gap: 30px; 
}

.header__nav a {
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.header__nav a.active {
    opacity: 1;
}

.header__nav a:hover {
    opacity: 0.9;
}



/*!WELCOME */

.welcome {
    box-sizing: border-box;
    min-height: 100vh;

    margin-top: -100px;
    padding: 240px 0;
    
    background-image: url("./images/welcome-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    

}

.welcome__text {
width: 550px;
}

.welcome__subtitle {
    margin-bottom: 7px;
    font-size: 14px;
    letter-spacing: 0.1em;
}

.welcome__title {
    font-size: 58px;
}

.welcome__desc {
    margin: 40px 0;
    font-size: 18px;
    opacity: 0.7;
}



/*! СПИСОК ЕДЫ */
.food-list {
    padding: 100px 0;
}

.food-list .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px 10px;
}


.food-list__card {
    width: 260px;

    overflow: hidden;
    text-align-last: center;

    background-color: #312F30;
    border-radius: 10px;
}

.food-list__img {
    width: 100%;
    height: 175px;
    object-fit: cover;
}

.food-list__text-wrapper {
    padding: 30px 20px;
}

.food-list__title {
    margin-bottom: 15px;
    font-size: 20px;
}

.food-list__desc {
    font-size: 16px;
    opacity: 0.7;
}

/*! Order */

.order {
    background: #312F30;
    padding: 60px 0;
}

.order .container {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-right: 90px;
}

.order__img {
    max-width: 470px;
}

.order__text {
    max-width: 360px;
}

.order__title {
    margin-bottom: 25px;
    font-size: 45px;
}

.order__desc {
    margin-bottom: 15px;
    opacity: 0.7;
}

.order__price {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.1em;
    color: #F6762C;
}

.order__price--old {
    font-size: 16px;
    text-decoration: line-through; /*перечеркнутая цена*/
    opacity: 0.5;
}

.order__price + .order__price {
    margin-left: 2px;
}

.order .btn {
    margin-top: 10px;
}


/*!Меню */


.product {
    padding: 150px 0;
}

.product .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.product__card {
    box-sizing: border-box;

    width: 555px;
    min-height: 300px;

    padding: 60px 30px 60px 290px;

    background-color: #2c2a2ab0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position:center;
}

.product__card:nth-child(even) {
    padding-left: 30px;
    padding-right: 290px;
}

.product__title {
    margin-bottom: 20px;
    font-size: 30px;
}

.product__desc {
    margin-bottom: 10px;
    opacity: 0.7;
}

.product__price {
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #F6762C;
}

.product__price + .product__price {
    margin-left: 5px;
}

.product__price--old {
    text-decoration: line-through;
    opacity: 0.5;
}

.product .btn {
    margin-top: 10px;
}

.card-queen {
    background-image: url("./images/product-1.jpg");
}

.card-hut {
    background-image: url("./images/product-2.jpg");
}
.card-king {
    background-image: url("./images/product-3.jpg");
}
.card-papa {
    background-image: url("./images/product-4.jpg");
}




/* ! FEEDBACK */


.feedback {
    padding-bottom: 200px;
}

.feedback .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 880px;
}

.feedback__img {

}

.feedback__text {
    margin: 0;
    width: 370px;
    text-align: center;

}

.feedback__text::before {
    content: url(./images/icons/quote.svg);
}

.feedback__desc {
    opacity: 0.7;

    margin: 30px 0;
}

.feedbacl__author {
    font-style:normal;
    font-weight: 500;
    font-size: 24px;

}

.feedback__subauthor {
    font-weight: 500;
    font-size: 12px;
    opacity: 0.7;

    display: block;
}


/* ! DOWNLOAD */


.download {
    padding: 60px 0;
    background: #312F30;
}

.download .container {
    display: flex;
    justify-content: space-around;
}

.download__title {
    font-weight: 500;
    font-size: 40px;
}

/*! FOOTER  */

.footer {
    padding: 120px 0;
}

.footer a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

.footer a:hover {
    font-size: 12px;
    color: rgba(255, 255, 255, 1)
}

.footer .footer_title {
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 16px;
    color: white;
}

.footer .container {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer__logo {
    /* display: inline-block; */
    width: 70px;
    margin-bottom: 20px;
}

.footer_link{
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer_link + .footer_link {
    margin-top: 10px;
}
.footer_link::before {
    width: 12px;
    height: 12px;
}

.footer_link-mail::before {
    content: url(./images/icons/mail.svg);
}

.footer_link-web::before {
content: url(./images/icons/global.svg)
}

.footer__nav {

}

.footer__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footer_list-title {

}

.footer__inner-list {

}

.footer__list-item + .footer__list-item {
    margin-top: 15px;
}

.footer__socials {

}

.footer__socials-link + .footer__socials-link  {
    margin-left: 7px;
}

/* !АДАПТИВ */

/* ! АДАПТИВ ДЛЯ ВСЕХ УСТРОЙСТВ */

/* ПЛАНШЕТЫ (iPad 768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    
    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .welcome {
        padding: 180px 0;
        min-height: auto;
    }
    
    .welcome__title {
        font-size: 44px;
    }
    
    .food-list .container {
        justify-content: center;
    }
    
    .order .container {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }
    
    .order__img {
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    .product .container {
        justify-content: center;
    }
    
    .product__card {
        width: 48%;
        min-height: 280px;
        padding: 40px 20px 40px 220px;
    }
    
    .product__card:nth-child(even) {
        padding-left: 220px;
        padding-right: 20px;
    }
    
    .feedback .container {
        flex-direction: column;
        text-align: center;
    }
    
    .feedback__img {
        margin-bottom: 30px;
        max-width: 300px;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer__contacts {
        align-items: center;
    }
    
    .footer__list {
        justify-content: center;
        gap: 30px;
    }
    
    .footer__socials-icons {
        display: flex;
        justify-content: center;
    }
}

/* iPhone SE (375x667) и все узкие телефоны до 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Шапка */
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header__list {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .header__nav a {
        font-size: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    /* Welcome секция */
    .welcome {
        margin-top: 0;
        padding: 100px 0;
        min-height: auto;
        background-position: 70% center;
    }
    
    .welcome__text {
        width: 100%;
        text-align: center;
    }
    
    .welcome__title {
        font-size: 32px;
    }
    
    .welcome__subtitle {
        font-size: 12px;
    }
    
    .welcome__desc {
        font-size: 14px;
        margin: 20px 0;
    }
    
    /* Food list */
    .food-list {
        padding: 50px 0;
    }
    
    .food-list .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .food-list__card {
        width: 100%;
        max-width: 300px;
    }
    
    /* Order секция */
    .order {
        padding: 40px 0;
    }
    
    .order .container {
        flex-direction: column;
        padding: 0 15px;
        text-align: center;
    }
    
    .order__img {
        max-width: 280px;
        margin-bottom: 25px;
    }
    
    .order__title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .order__desc {
        font-size: 14px;
    }
    
    /* Product карточки */
    .product {
        padding: 50px 0;
    }
    
    .product .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .product__card {
        width: 100%;
        max-width: 320px;
        min-height: auto;
        padding: 20px;
        text-align: center;
        background-position: center top;
        background-size: cover;
        padding-top: 180px;
    }
    
    .product__card:nth-child(even) {
        padding: 20px;
        padding-top: 180px;
    }
    
    .product__title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .product__desc {
        font-size: 14px;
    }
    
    /* Feedback */
    .feedback {
        padding-bottom: 50px;
    }
    
    .feedback .container {
        flex-direction: column;
        text-align: center;
    }
    
    .feedback__img {
        max-width: 200px;
        margin-bottom: 20px;
    }
    
    .feedback__text {
        width: 100%;
    }
    
    .feedback__desc {
        font-size: 14px;
        margin: 20px 0;
    }
    
    .feedbacl__author {
        font-size: 18px;
    }
    
    /* Download */
    .download {
        padding: 40px 0;
    }
    
    .download .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .download__title {
        font-size: 28px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    
    .footer__contacts {
        align-items: center;
    }
    
    .footer__logo {
        margin-bottom: 15px;
    }
    
    .footer__list {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer_list-title {
        text-align: center;
    }
    
    .footer__socials-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
}

/* iPhone X, 15 Pro (390px - 430px) - уточнения */
@media (min-width: 375px) and (max-width: 430px) {
    /* Учет выреза (notch) для iPhone X и новее */
    .header {
        padding-top: constant(safe-area-inset-top);
        padding-top: env(safe-area-inset-top);
    }
    
    .footer {
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* iPhone 15 Pro Max (430px) - чуть больше отступов */
@media (min-width: 425px) and (max-width: 440px) {
    .container {
        padding: 0 20px;
    }
    
    .welcome__title {
        font-size: 36px;
    }
    
    .product__card {
        max-width: 360px;
    }
}

/* Модальное окно - адаптив */
@media (max-width: 480px) {
    .modal__content {
        width: 90%;
        margin: 30% auto;
        padding: 20px;
    }
    
    .modal__content h2 {
        font-size: 20px;
    }
    
    .modal__content p {
        font-size: 14px;
    }
}


/* Модальное окно - стили (добавьте в конец, если отсутствуют) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal__content {
    background-color: #1C1C1C;
    margin: 15% auto;
    padding: 30px;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.modal__close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #F6762C;
}

.modal__close:hover {
    color: #fff;
}

/* ! МОДАЛЬНОЕ ОКНО */

.modal { 
    display: none;  
    position: fixed;  
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height : 100%; 
    overflow:auto; 
    background-color: rgba(0, 0, 0, 0.8); 
}