* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Oswald', sans-serif;
    color: #1a3c22;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: #f7f4ee; /* Цвет подложки на случай медленной загрузки */
}

/* Фиксированный фон, который не растягивается и не зависит от багов мобильных браузеров */
.site-background {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background-image: url('https://vmzgchqxuyibqxltkigu.supabase.co/storage/v1/object/public/venue-media/REU/fon.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1; /* Отправляем картинку на самый задний план за весь контент */
}

/* Если вы хотите оставить фиксированный фон на ПК, но отключить на телефонах, можно использовать медиазапрос: */
@media (min-width: 768px) {
    body {
        background-attachment: fixed;
    }
}
.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    /* Убираем фон из шапки, так как он теперь задан в body и шапка будет прозрачной */
    background-color: rgba(255, 255, 255, 0.85); /* Добавим легкий фон шапке, чтобы текст меню читался */
    border-bottom: 2px solid rgba(26, 60, 34, 0.2);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px 5px 15px;
}

.logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.main-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #0b3d20;
    text-transform: uppercase;
}

.lang-switch {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.lang {
    color: #8a9a86;
    cursor: pointer;
    margin-left: 3px;
}

.lang.active {
    color: #000;
    font-weight: 700;
    font-style: italic;
}

.categories-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    border-top: 1px solid #1a3c2233;
    border-bottom: 1px solid rgba(26, 60, 34, 0.2);
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-link {
    text-decoration: none;
    color: #0b3d20;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 4px;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
}

.content {
    padding-top: 130px; 
    padding-bottom: 50px;
}

/* ОБНОВЛЕННЫЕ СТИЛИ СЕКЦИЙ */
.category-section {
    scroll-margin-top: 140px; /* Спасает от обрезания заголовка шапкой */
    padding: 30px 15px 150px 15px; /* Увеличили нижний отступ до 150px, чтобы не видеть следующий раздел */
    text-align: center;
}

.category-title {
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.carousel-slides {
    width: 100%;
    position: relative;
    min-height: 480px;
}

.drink-card {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    padding: 20px 15px;
    box-shadow: 0 4px 13px #1D4A33;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 500px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.drink-card.active {
    display: flex;
    position: relative;
    opacity: 1;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: drop-shadow(0px 4px 13px #1D4A33); 
}

.drink-image {
    position: relative;
    z-index: 3;
    width: 85%;
    max-width: 300px;
    margin: 0 0 0 -40px;
    display: block;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.ingredients-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ingredient {
    position: absolute;
    object-fit: contain;
    transform: scale(1.35);
    transition: transform 0.3s ease;
}

.drink-info {
    position: relative;
    z-index: 4;
    text-align: left;
    margin-top: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.drink-name,
.drink-price {
    font-family: 'Philosopher', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.drink-price {
    margin-top: 4px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 38px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    box-shadow: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.carousel-btn:hover {
    background: transparent;
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}
/*Стили для ингредиентов базовые*/
/*Начинается с "." значит Class. Class - может быть 1 для многих */
/*Начинается с "#" значит Id. Id - может быть 1 для 1 */

.ing-basic-1 { top: 12%; right: 20%; width: 75px; }
.ing-basic-2 { top: 45%; right: 22%; width: 65px; }
.ing-basic-3 { top: 28%; right: 8%; width: 85px; }

.ing-milk { top: 20%; right: 2%; width: 100px; }
.ing-ice { top: 40%; right: 30%; width: 55px; }
.ing-matcha_pouder { top: 55%; right: 15%; width: 85px; }
.ing-salted_hat  { top: 11%; right: 23%; width: 65px; }
.ing-egg_cream  { top: 11%; right: 23%; width: 65px; }
.ing-cacao_beam  { top: 55%; right: 15%; width: 70px; }
.ing-milk_nestle { top: 20%; right: 5%; width: 100px; height: 100px;}
