/*Общие настройки*/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --primary-color: #151611;
    --white: #fff;
    --btn-gray-color: rgba(255, 255, 255, 0.733);
}


* {
    margin: 0;
    padding: 0;
}

/* Убираем обводку вокруг ссылок и кнопок */
a:focus, button:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent; /* Для мобильных устройств (например, Android) */
}


body {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 16px;

    background: var(--primary-color);

    position: relative;


    margin-bottom: 100px;
    padding-bottom: 100px;
}




header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    align-items: center;
    flex-direction: column;
    background: var(--primary-color);
    z-index: 100;
}

.logoAndBtns {
    display: flex;
    justify-content: space-between;
    width: 1000px;
    margin: 20px 0;
}


.logoAndBtns > h1 {
    color: var(--white);
}



.btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-bar-pc {
    width: 100%;
    max-width: 1000px;
}

.nav-bar-pc > ul {
    margin: 10px 50px;
    list-style-type: none;
    padding-left: 0; /* Убирает отступ слева, если нужно */
    padding: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.nav-bar-pc > ul > li {
    text-decoration: none;
}

.nav-bar-pc > ul li > button {
    border: none;
    background: none;
    color: white;
    transition: all 0.3s ease-in-out;
    font-weight: 500;
    font-size: 0.8rem;
    margin-right: 1.1rem;
}
.nav-bar-pc > ul li a {
    text-decoration: none;
    display: inline-block;
    margin-right: 1.1rem;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease-in-out;
}
.nav-bar-pc > ul li > button:hover,
.nav-bar-pc > ul li a:hover {
    color: var(--btn-gray-color);
    transform: translateY(-1px); /* Поднимаем текст на 2 пикселя при наведении */
}
.last-link {
    margin-right: 1rem;
}

.language-selector {
    position: relative;
    display: inline-block;
    font-size: 12px;
    margin-right: 5px;
    transition: all 0.5s ease-in-out;
}

.language-selector:hover {
    transform: translateY(-2px);
}

.selected-language {
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
    width: 40.5px;
    height: 40.5px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    position: relative;
    z-index: 11;
    padding: auto auto;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .selected-language {
    background-color: var(--white);
    color: var(--primary-color);
}

.selected-language:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}


.language-dropdown {
    position: absolute;
    top: 40%;
    font-size: 12px;
    color: var(--primary-color);
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 5px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.language-dropdown > :first-child {
    padding-top: 30px;
}

.language-dropdown li {
    padding: 7px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
}

.language-dropdown li:hover {
    background-color: #f0f0f0;
}

.language-dropdown.hidden {
    max-height: 0;
    opacity: 0;
    max-width: 40.5px;
    min-width: 40.5px;
    pointer-events: none;
}

.language-dropdown.visible {
    max-height: 300px;
    max-width: 40.5px;
    min-width: 40.5px;
    opacity: 1;
    pointer-events: auto;
}





.btn-hamburger {
    background: #00000000;
    border: none;
    cursor: pointer;
    height: 40px;
    display: none;
    transition: all 0.5s ease-in-out;
}

.btns > a {
    width: 41px;
    height: 40px;
    transition: all 0.3s ease-in-out;
    border-radius: 50%;
    background: var(--primary-color);
    color: #544;
    transition: all 0.5s ease-in-out;
}

.btns > a:hover {
    transform: translateY(-2px);
}

.nav-bar-phone {
    display: none;
}





.affiche {
    display: none;
}

.nav-button.btn-affiche {
    display: none;
}
.slider {
    display: none;
}








/*Для Скроллбара*/
.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: 100%;
    max-width: 1000px;
    position: relative;
}
.nav-button {
    position: absolute;
    top: 138px; /* Отступ от верхнего края контейнера */
    color: var(--btn-gray-color);
    border: none;
    width: 40px;
    height: 40px;
    background-color: #ffffff00;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.nav-button.left {
    left: -10px; /* Расположение кнопки слева от контейнера */
}
.nav-button.right {
    right: -10px; /* Расположение кнопки справа от контейнера */
}


.nav-button[style*="display: none"] {
    opacity: 0;
    pointer-events: none;
}




/*Стили для карточек и секции*/
section {
    padding-top: 120px;
}

.section > h3 {
    margin: 30px 0;
    font-size: 24px;
    color: var(--white);
    font-weight: 700;
}   

.drinks-container {
    width: 1200px;
}

.horisontal-panel {
    display: flex;
    justify-content: space-between;
    
}

.scrollable {
    padding: 5px 0;
}

.card {
    transition: all 0.5s ease;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    min-width: 216px;
    height: 288px;
    border-radius: 15px;
    background: linear-gradient(to bottom, #ffffff05, #8181810b);
    margin-right: 5px;
    transition: all 0.5s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card.active {
    height: auto;
}

.card > .cardPhoto {
    width: 200px;
    height: 230px;
    margin-top: 8px;
    border-radius: 10px;
    background-color: #ffffff00;
}

.card > .text {
    width: 200px;
    font-size: 18px;
    color: #FFF;
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    margin-bottom: 12px;
}

#h4-section {
    font-size: 12px;
    color: #ffffff7e;
    margin-top: -20px;
    margin-bottom: 12px;
}

.card > .text > .name {
    font-weight: 500;
}

.card > .text > .price {
    font-weight: 300;
}

.card > .text-wrapper > .textDesc {
    margin-left: 3px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #FFF;
    width: 200px;

    /* Начальные стили для скрытого состояния */
    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;
}












.h4 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 3rem 0;
}

.h4 h4 {
    color: white;
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
}




.text-section {
    margin-top: 30px;
}

.a-b {
    display: flex;
}

.a-b > .grid-left {
    border-left: solid 2px #FFF;
    margin-right: 20px;
    margin-left: 20px;
}

.grid-div {
    width: 940px;
}

.text-section >  h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 30px;
    margin-top: 50px;
}

.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;
}

.text-section .list-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.text-section .list-item .name-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.text-section .list-item .name {
    font-weight: 600;
}

.text-section .list-item .price {
    font-weight: 400;
}

.text-section .list-item .description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}



.text-section {
    margin-top: 30px;
}

.a-b {
    display: flex;
}

.a-b > .grid-left {
    border-left: solid 2px #FFF;
    margin-right: 20px;
    margin-left: 20px;
}

.grid-div {
    width: 940px;
}

.text-section > h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 30px;
    margin-top: 50px;
}

.text-section .list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0px 0;
    color: var(--white);
}

.text-section .list-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.text-section .list-item .name-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.text-section .list-item .name {
    font-weight: 600;
}

.text-section .list-item .price {
    font-weight: 400;
}

.text-section .list-item .description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
    margin-bottom: 5px;
}

.DSH .price {
    margin-bottom: -100px;
}


@media (min-width: 601px) and (max-width: 1100px) {
    body {
        font-size: 2vw;

        margin-bottom: 6.25rem;
        padding-bottom: 6.25rem;
    }
    
    
    
    
    header {
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 100;
    }
    
    .logoAndBtns {
        width: 60rem;
        margin: 1.25rem 0;
    }
    

    
    .nav-bar-pc {
        width: 100%;
        max-width: 62.5rem;
    }
    
    .nav-bar-pc > ul {
        margin: 0.625rem 3.125rem;
        padding-left: 0;
        max-width: 100%;
    }
    

    .nav-bar-pc > ul li > button {
        font-weight: 500;
        font-size: 0.8rem;
        margin-right: 1.1rem;
    }
    .nav-bar-pc > ul li a {
        margin-right: 1.1rem;
        font-weight: 500;
        font-size: 0.8rem;
    }
    .last-link {
        margin-right: 1rem;
    }
    
    .language-selector {
        font-size: 0.75rem;
        margin-right: 0.3125rem;
    }
    
    .language-selector:hover {
        transform: translateY(-2px);
    }
    
    .selected-language {
        width: 2.53125rem;
        height: 2.53125rem;
        border-radius: 50%;
        font-size: 0.75rem;
        z-index: 11;
    }
    
    
    
    .language-dropdown {
        top: 40%;
        font-size: 0.75rem;
        left: 0;
        box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.2);
        margin: 0;
        padding: 0;
        border-radius: 0.3125rem;
        max-height: 0;
        opacity: 0;
        z-index: 10;
    }
    
    .language-dropdown > :first-child {
        padding-top: 30px;
    }
    
    .language-dropdown li {
        padding: 0.4375rem 0;
        
    }
    
    
    .language-dropdown.hidden {
        max-height: 0;
        opacity: 0;
        max-width: 2.53125rem;
        min-width: 2.53125rem;
    }
    
    .language-dropdown.visible {
        max-height: 18.75rem;
        max-width: 2.53125rem;
        min-width: 2.53125rem;
        opacity: 1;
    }
    
    
    .btn-hamburger {
        height: 2.5rem;
        transition: all 0.5s ease-in-out;
    }
    
    .btns > a {
        width: 2.5625rem;
        height: 2.5rem;
        transition: all 0.3s ease-in-out;
        border-radius: 50%;
        transition: all 0.5s ease-in-out;
    }

 
    /* Навигационные кнопки */
    .drinks-container {
        width: 100%;
        max-width: 62.5rem;
        position: relative;
    }
    .nav-button {
        top: 8.625rem;
        width: 2.5rem;
        height: 2.5rem;
        background-color: #ffffff00;
        font-size: 1.5rem;
        z-index: 1;
        transition: opacity 0.3s ease;
    }
    .nav-button.left {
        left: -0.625rem; /* Расположение кнопки слева от контейнера */
    }
    .nav-button.right {
        right: -0.625rem; /* Расположение кнопки справа от контейнера */
    }  
    
    
    
    /*Стили для карточек и секции*/
    section {
        padding-top: 7.5rem;
    }
    
    .section > h3 {
        margin: 1.875rem 0;
        font-size: 1.5rem;
        color: var(--white);
        font-weight: 700;
    }   
    
    .drinks-container {
        width: 75rem;
    }

    .scrollable {
        padding: 0.3125rem 0;
    }
    
    .card {
        transition: all 0.5s ease;
        min-width: 13.5rem;
        height: 18rem;
        border-radius: 0.938rem;
        background: linear-gradient(to bottom, #ffffff05, #8181810b);
        margin-right: 0.3125rem;
        transition: all 0.5s ease-in-out;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
 
    .card > .cardPhoto {
        width: 12.5rem;
        height: 14.375rem;
        margin-top: 0.5rem;
        border-radius: 0.625rem;
        background-color: #ffffff00;
    }
    
    .card > .text {
        width: 12.5rem;
        font-size: 1.125rem;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    #h4-section {
        font-size: 0.75rem;
        margin-top: -1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .card > .text > .name {
        font-weight: 500;
    }
    
    .card > .text > .price {
        font-weight: 300;
    }
    
    .card > .text-wrapper > .textDesc {
        margin-left: 0.1875rem;
        margin-bottom: 0.375rem;
        font-size: 0.8125rem;
        width: 12.5rem;
    
        /* Начальные стили для скрытого состояния */
        opacity: 0;
        transition: all 0.5s ease;
        position: absolute; /* Расположим текст поверх карточки */
        left: 0;
    }
    

    
    .h4 {
        width: 100%;
        margin: 2rem 0 3rem 0;
    }
    
    .h4 h4 {
        font-weight: 600;
        font-size: 2rem;
    }
    
    
    .text-section {
        margin-top: 1.875rem;
    }
 
    .a-b > .grid-left {
        border-left: solid 2px #FFF;
        margin-right: 1.25rem;
        margin-left: 1.25rem;
    }
    
    .grid-div {
        width: 58.75rem;
    }
    
    .text-section >  h3 {
        color: #fff;
        font-size: 1.5rem;
        margin-bottom: 1.875rem;
        margin-top: 3.125rem;
    }
    
    .text-section .list {
        gap: 0.625rem;
        margin: 0 0;
        color: var(--white);
    }
    
    .text-section .list-item {
        font-size: 1.125rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0.3125rem 0;
    }
    
    .text-section .list-item .name {
        font-weight: 600;
        margin-bottom: 0.3125rem;
    }
    
    .text-section .list-item .price {
        font-weight: 400;
    }
    
    .text-section .list-item {
        gap: 0.3125rem;
        padding: 0.625rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
     
    .text-section .list-item .name {
        font-weight: 600;
    }
    
    .text-section .list-item .price {
        font-weight: 400;
    }
    
    .text-section .list-item .description {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 0.3125rem;
    }
    
    
    
    .text-section {
        margin-top: 1.875rem;
    }
    
    .a-b > .grid-left {
        border-left: solid 2px #FFF;
        margin-right: 1.25rem;
        margin-left: 1.25rem;
    }
    
    .grid-div {
        width: 58.75rem;
    }
    
    .text-section > h3 {
        color: #fff;
        font-size: 1.5rem;
        margin-bottom: 1.875rem;
        margin-top: 3.125rem;
    }
    
    .text-section .list {
        gap: 0.625rem;
        margin: 0px 0;
        color: var(--white);
    }
    
    .text-section .list-item {
        gap: 0.3125rem;
        padding: 0.625rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .text-section .list-item .name {
        font-weight: 600;
    }
    
    .text-section .list-item .price {
        font-weight: 400;
    }
    
    .text-section .list-item .description {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 0.3125rem;
        margin-bottom: 0.3125rem;
    }
    
    .DSH .price {
        margin-bottom: -100px;
    }
}