/* Основные настройки */
body {
    background-color: #FFD200; /* Тот самый желтый цвет */
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #000;
    overflow-x: hidden;
}

a { color: #0044BB; text-decoration: none; border-bottom: 1px solid rgba(0,68,187,0.3); }
a:hover { border-bottom-color: #0044BB; }

/* Контейнер */
.kitchen-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 1800px; /* Высота страницы, чтобы все влезло */
}

/* Общий класс для элементов */
.element {
    position: absolute;
    z-index: 1;
}

/* --- СТИЛИ ДЛЯ ГАЛЕРЕИ --- */

.gallery-wrapper {
    /* Используем те же координаты, что были у .el-phone */
    top: 600px;
    right: 5%;
    width: 320px; /* Фиксированная ширина (как у iPhone) */
    background: #fff;
    padding: 15px; /* Чуть больше отступ */
    border-radius: 40px; /* Закругления как у телефона */
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-track {
    display: flex;
    overflow-x: auto; /* Разрешаем скролл по горизонтали */
    scroll-snap-type: x mandatory; /* Магия: картинки будут "прилипать" */
    gap: 15px; /* Расстояние между скринами */
    width: 100%;
    
    /* Скрываем полосу прокрутки */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
    scroll-behavior: smooth; /* Плавность */
}

/* Скрываем полосу прокрутки для Chrome/Safari */
.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track img {
    /* Каждая картинка занимает 100% ширины контейнера */
    flex: 0 0 100%; 
    scroll-snap-align: center; /* Центрирование при остановке скролла */
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 9/19.5; /* Пропорции современного смартфона */
}

/* Кнопки навигации (стрелочки) */
.nav-btn {
    position: absolute;
    top: 40%; /* По вертикали по центру картинок */
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
    opacity: 0.8;
}

.nav-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* На мобильном стрелки не нужны, там пальцем свайпают */
@media (max-width: 900px) {
    .nav-btn { display: none; }
    .gallery-wrapper { width: 100%; max-width: 300px; margin: 0 auto; }
}

/* Стили картинок */
img {
    max-width: 100%;
    display: block;
    border-radius: 4px;
}
.img-shadow {
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Стили пузырей текста */
.bubble-tag {
    background: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 5px 0;
}

.bubble-message {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    font-size: 18px;
    line-height: 1.5;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 300px;
}

.large-msg {
    font-size: 20px;
    max-width: 400px;
}

.caption {
    font-size: 14px;
    margin-top: 5px;
    color: #333;
}

/* --- ПОЗИЦИОНИРОВАНИЕ (Координаты) --- */

/* Левая часть */
.el-rdr {
    top: 300px;
    left: 5%;
    width: 20vw;
    transform: rotate(-2deg);
}

.el-plastic {
    top: 100px;
    left: 10%;
    width: 150px;
    transform: rotate(5deg);
}

.el-wrap-photo {
    top: 900px;
    left: 5%;
    width: 25vw;
}

/* Центр */
.el-bubbles-top {
    top: 50px;
    left: 35%;
}

.el-choco-img {
    top: 150px;
    left: 25%;
    width: 150px;
    z-index: 0;
    transform: rotate(-10deg);
}

.el-draw-food {
    top: 400px;
    left: 30%;
}

.el-big-text {
    top: 550px;
    left: 35%;
    z-index: 5;
}

.el-student {
    top: 1100px;
    left: 30%;
    width: 30vw;
}

/* Правая часть */
.el-shawarma {
    top: 50px;
    right: 15%;
    width: 200px;
    text-align: center;
}

.el-video-text {
    top: 400px;
    right: 20%;
}

.el-phone {
    top: 600px;
    right: 5%;
    width: 300px;
    background: #fff; /* Фон под скрином */
    padding: 10px;
    border-radius: 30px;
}
.phone-desc {
    padding: 15px;
    font-size: 16px;
}

/* Кнопка НАЗАД (Стикер) */
.sticker-back {
    position: fixed;
    bottom: 50px;
    left: 10%;
    background: #fff;
    color: #000;
    padding: 20px 30px;
    font-size: 24px;
    font-weight: bold;
    transform: rotate(-15deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 100;
    border-bottom: none;
    transition: transform 0.3s;
}
.sticker-back:hover {
    transform: rotate(0deg) scale(1.1);
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ --- */
@media (max-width: 900px) {
    .kitchen-container {
        display: flex;
        flex-direction: column;
        padding: 20px;
        min-height: auto;
    }

    .element {
        position: static; /* Отключаем координаты */
        width: 100%;
        max-width: 100%;
        margin-bottom: 40px;
        transform: none !important; /* Убираем повороты */
    }

    .sticker-back {
        position: static;
        display: block;
        text-align: center;
        transform: none;
        margin-bottom: 40px;
        width: auto;
    }

    .el-choco-img, .el-plastic { width: 100%; }
    .el-shawarma { width: 100%; text-align: left; }
    .bubble-message { max-width: 100%; }
    .el-phone { width: 100%; box-sizing: border-box; }
}