/* Для мобильных и сенсорных устройств убираем фокус */
@media (pointer: coarse) {
    button:focus {
        outline: none;
    }
}

:root {
    --primary-color: #151611;
    --white: #fff;
    --btn-gray-color: rgba(255, 255, 255, 0.733);
}


@media (max-width: 600px) {
    body {
        display: flex;
        width: 100vw;
        justify-content: start;
        align-items: start;
    }

    .slider {
        display: none;
    }

    header {
        display: flex;
        justify-content: space-between;
        width: 100vw;
        max-width: 100vw;
        margin: 0 0;
        filter: drop-shadow(0 4px 6px var(--primary-color));
    }

    header > .logoAndBtns > h1 {
        color: var(--white);
        margin-left: 0.8rem;
        font-size: 1.6rem;
        padding: 0.3rem 0 0 0 ;
    }
    
    .logoAndBtns {
        display: flex;
        justify-content: space-between;
        align-content: center;
        flex-wrap: wrap;
        width: 100vw;
        margin: 1rem 0;
    }

    .nav-bar-pc {
        display: none;
    }

    .btns {
        margin-right: 0.8rem;
    }

    .btns > a:hover {
        transform: translateY(0px);
    }

    .card:hover {
        transform: translateY(0px);
    }

    .btns > a {
        display: none;
    }

    .btn-hamburger {
        display: block;
    }

    .nav-bar-phone {
        display: flex;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 100vw;

        width: 100vw;
        height: 1000vh;

        z-index: 100;

        transition: all 0.3s ease-out;
    }

    .nav-bar-phone > .btn-nav-bar-phone {
        width: 48vw;
        height: 100vh;
        border: none;
        background: #00ffe500;
    }

    .nav-bar-phone > .content-nav-bar-phone {
        width: 52vw;
        height: 100vh;
        background: var(--primary-color);
        border-left: 2px solid white;
    }

    .content-nav-bar-phone > ul {
        list-style-type: none;
        margin: 4.5rem 1.2rem 0 1rem;
    }

    .content-nav-bar-phone > ul > li > hr {
        margin-top: 0.7rem;
        width: 100%;
        background: #fff;
        border-width: 0.5px;
    }
 
    .content-nav-bar-phone > ul > li {
        margin-top: 0.7rem;
        border: none;
        text-align: left;
    }

    .content-nav-bar-phone > ul > li > button{
        border: none;
        background: none;
        font-size: 0.8rem;
        color: white;
        font-weight: 600;
        text-align: left;
    }
    .content-nav-bar-phone > ul > li > a {
        text-decoration: none;
        color: white;
        font-weight: 600;
        font-size: 0.8rem;
        text-align: left;
    }
    
    .nav-bar-phone.active {
        left: 0vw;
    }















    

    /*Для Скроллбара*/
    .scrollable {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        scrollbar-width: none; /* Скрыть скроллбар для Firefox */
        -ms-overflow-style: none; /* Скрыть скроллбар для IE и Edge */
    }
    .scrollable::-webkit-scrollbar {
        display: none; /* Скрыть скроллбар для Chrome, Safari и Opera */
    }

    /* Навигационные кнопки */
    .drinks-container {
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
        width: calc(100vw - 3rem);
        max-width: 100vw;
        position: relative;
    }
    .nav-button {
        position: absolute;
        top: 8.63rem; /* Отступ от верхнего края контейнера */
        color: var(--btn-gray-color);
        border: none;
        width: 2.5rem;
        height: 2.5rem;
        background-color: #ffffff00;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1;
        transition: opacity 0.3s ease;
    }
    .nav-button.left {
        left: -0.45rem; /* Расположение кнопки слева от контейнера */
    }
    .nav-button.right {
        right: 0.1rem; /* Расположение кнопки справа от контейнера */
    }


    .nav-button[style*="display: none"] {
        opacity: 0;
        pointer-events: none;
    }




    /*Стили для карточек и секции*/

    section {
        padding-top: 4.5rem;

    }

    .section > h3 {
        margin: 2rem 0;
        margin-left: 0.8rem;
        font-size: 1.5rem;
        color: var(--white);
        font-weight: 700;
    }   


    .affiche {
        display: block;

        background-image: url('../data/afficheImages/affiche-1.png'); /* Укажите путь к вашей картинке */
        background-size: cover; /* Обеспечивает, чтобы картинка полностью покрывала весь элемент */
        background-position: center; /* Центрирует картинку в элементе */
        background-repeat: no-repeat; /* Запрещает повторение картинки */
        width: 100vw;
        height: 60vh;

        position: relative;
    }

    .textGroup {
        position: absolute;
        bottom: 3rem;
        left: 0.8rem;
        z-index: 15;
        max-width: 84vw;
    }
    
    .textGroup > h2 {
        color: white;
        font-weight: 900;
        font-size: 2.1rem;
    }

    .data-textGroup {
        color: #DDDDDD;
        font-weight: 300;
        font-size: 1.4rem;
    }
    
    .desc-textGroup {
        color: #DDDDDD;
        font-weight: 500;
        font-size: 1.4rem;
    }

    .gradient {
        position: absolute;
        background: linear-gradient(to bottom, #15161100, #151611);
        width: 100%;
        height: 10vh;
        bottom: -2px;
        left: 0;
        z-index: 14;
    }



    .slider {
        display: block;
        position: relative;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .affiche-container {
        display: flex;
        overflow: hidden;
        position: relative;
        max-width: 100vw;
        width: 100%;
    }
    
    .affiche-track {
        display: flex;
        transition: transform 0.3s ease-in-out;
        will-change: transform;
        max-width: 100vw;
    }
    
    .affiche {
        flex: 0 0 100%; /* Каждая афиша занимает 100% ширины контейнера */
        box-sizing: border-box;
        max-width: 100vw;
    }

    .dots-container {
        display: flex;
        justify-content: center;
        gap: 8px;
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #ccc;
        background: #333;
        cursor: pointer;
    }
    
    .dot.active {
        background: #333;
        background: #ccc;
    }
    
    .nav-button.btn-affiche {
        top: 40%;
        height: 120px;
    }
    .nav-button.btn-affiche.right {
        margin-right: 0rem;
    }














    .drinks-container {
        width: 100vw;
    }

    .horisontal-panel {
        display: flex;
        justify-content: space-between;
    }

    .scrollable > :first-child {
        margin-left: 0.5rem;
    }

    .card {
        transition: all 0.5s ease;
        display: flex;
        justify-content: start;
        align-items: center;
        flex-direction: column;
        min-width: 13.5rem;
        height: 18rem;
        border-radius: 15px;
        background: linear-gradient(to bottom, #ffffff0c, #ffffff06);
        margin-right: 0.35rem;
    }

    .card.active {
        height: auto;
    }

    .card > .cardPhoto {
        width: 12.5rem;
        height: 14.4rem;
        margin-top: 0.5rem;
        border-radius: 0.63rem;
        background-color: #ffffff00;
    }

    .card > .text {
        width: 12.5rem;
        font-size: 1.12rem;
        color: #FFF;
        display: flex;
        justify-content: space-between;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }


    #h4-section {
        font-size: 12px;
        color: #ffffff7e;
        margin-top: -1.4rem;
        margin-bottom: 0.8rem;
        margin-left: 0.8rem;
    }

    .card > .text > .name {
        font-weight: 500;
    }

    .card > .text > .price {
        font-weight: 300;
    }

    .card > .text-wrapper > .textDesc {
        margin-left: 0.19rem;
        margin-bottom: 0.38rem;
        font-size: 0.81rem;
        color: #FFF;
        width: 12.5rem;

        /* Начальные стили для скрытого состояния */
        opacity: 0;
        transition: all 0.5s ease;
        position: absolute; /* Расположим текст поверх карточки */
        left: 0;
    }

    .card.active >  .text-wrapper > .textDesc {
        /* Стили для активного состояния */
        opacity: 1;
        transform: translateY(0); /* Возвращаем текст в исходное положение */
        position: static; /* Отменяем абсолютное позиционирование */
    }

    .text-wrapper {
        position: relative;
        overflow: hidden; /* Скрываем контент, если текст анимирован */
    }

    .card.active >  .text-wrapper > .textDesc {
        opacity: 1;
        transition: all 0.5s ease;
    }



    .text-section {
        margin-top: 30px;
    }
    
    .a-b {
        display: flex;
    }
    
    .a-b > .grid-left {
        border-left: solid 1px #FFF;
        margin-right: 0.8rem;
        margin-left: 0.8rem;
    }
    
    .grid-div {
        width: 90%;
    }
    
    .text-section >  h3 {
        color: #fff;
        font-size: 24px;
        margin-bottom: 30px;
        margin-left: 0.8rem;
    }
    
    .text-section .list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0px 0;
        color: var(--white);
    }
    
    .text-section .list-item {
        display: flex;
        justify-content: space-between;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 5px 0;
    }
    
    .text-section .list-item .name {
        font-weight: 600;
        margin-bottom: 5px;
    }
    
    .text-section .list-item .price {
        font-weight: 400;
    }
}