@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}
a {
    text-decoration: none;
}

body {
    font-family: Arial, sans-serif;
    background: white;
    color: black;
}

.container-main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 20px;
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 85px;
    z-index: 1; /* Низкий z-index для секции */
}

.content {
    text-align: center;
    z-index: 10; /* Высокий z-index для контента */
    flex: 0 0 auto;
    margin: 0 auto;
    pointer-events: auto; /* Включение событий мыши */
    position: relative; /* Для корректной работы z-index */
}

.title {
    font-size: 3rem;
    color: black;
    font-weight: 700;
    font-family: inter;
    white-space: nowrap;
}

.subtitle {
    font-size: 1.4rem;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
    font-family: inter;
    font-weight: normal;
    white-space: nowrap;
}

.hidden {
    opacity: 0;
}

.console-container {
    font-family: inter;
    font-weight: 700;
    font-size: 3rem;
    height: 58px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    margin: auto;
    white-space: nowrap;
    padding-left: 5%;
    margin-bottom: 30px;
}

.console-underscore {
    display: inline-block;
    width: 2px;
    height: 1.2em; /* Высота как у текста */
    background-color: black;
    margin-left: 5px;
    vertical-align: middle;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.order-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: inter;
    background: #3a0000;
    color: rgb(255 255 255);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 15; /* Высокий z-index для кнопки */
    position: relative; /* Для корректной работы z-index */
    pointer-events: auto; /* Включение событий мыши */
}

.order-btn2 {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: inter;
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #303030;
    z-index: 15; /* Высокий z-index для кнопки */
    position: relative; /* Для корректной работы z-index */
    pointer-events: auto; /* Включение событий мыши */
}

.order-btn:hover {
    background: #630606;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.photos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    pointer-events: none; /* Отключение событий мыши для контейнера */
    z-index: 5; /* Меньше, чем у .content */
}

.photo-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    pointer-events: auto; /* Включение событий для дочерних элементов */
    flex: 0 0 auto;
    z-index: 5; /* Меньше, чем у .content */
}

.left-column {
    align-items: flex-start;
    margin-left: 20px;
}

.right-column {
    align-items: flex-end;
    margin-right: 20px;
}

.photo-item {
    opacity: 1;
    transition: all 2s;
    z-index: 5; /* Меньше, чем у .content */
}

.photo-item.scroll-animate {
    z-index: 5; /* Меньше, чем у .content */
}

/* Начальные позиции - сразу смещены */
.photo-item[data-index="0"] { transform: translateX(-20px); }
.photo-item[data-index="1"] { transform: translateX(20px); }
.photo-item[data-index="2"] { transform: translateX(-20px); }
.photo-item[data-index="3"] { transform: translateX(20px); }
.photo-item[data-index="4"] { transform: translateX(-20px); }
.photo-item[data-index="5"] { transform: translateX(20px); }
.photo-item[data-index="6"] { transform: translateX(-20px); }
.photo-item[data-index="7"] { transform: translateX(20px); }

.photo-item img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.05);
}

/* Финальные позиции при разлете (улетают на ширину экрана 100vw) */
.photo-item.scroll-animate[data-index="0"] { 
    transform: translateX(-100vw) translateY(-40vh) rotate(-45deg); 
}
.photo-item.scroll-animate[data-index="1"] { 
    transform: translateX(-80vw) translateY(-30vh) rotate(-35deg); 
}
.photo-item.scroll-animate[data-index="2"] { 
    transform: translateX(-60vw) translateY(-20vh) rotate(-25deg); 
}
.photo-item.scroll-animate[data-index="3"] { 
    transform: translateX(-40vw) translateY(-10vh) rotate(-15deg); 
}
.photo-item.scroll-animate[data-index="4"] { 
    transform: translateX(100vw) translateY(-40vh) rotate(45deg); 
}
.photo-item.scroll-animate[data-index="5"] { 
    transform: translateX(80vw) translateY(-30vh) rotate(35deg); 
}
.photo-item.scroll-animate[data-index="6"] { 
    transform: translateX(60vw) translateY(-20vh) rotate(25deg); 
}
.photo-item.scroll-animate[data-index="7"] { 
    transform: translateX(40vw) translateY(-10vh) rotate(15deg); 
}

/* Мобильная версия */
@media (max-width: 768px) {
    .container-main {
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        min-height: auto;
        gap: 30px;
        z-index: 1; /* Сохранение z-index */
    }
    .console-container{
        height: 40px;
    }
    
    .content {
        order: 1;
        margin-bottom: 30px;
        flex: 0 0 auto;
        z-index: 10; /* Высокий z-index */
        pointer-events: auto; /* Включение событий мыши */
        position: relative;
    }
    
    .photos-container {
        order: 2;
        margin-bottom: 40px;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        position: relative;
        z-index: 5; /* Меньше, чем у .content */
        pointer-events: none;
    }
    
    .photo-column {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
        margin: 0;
        z-index: 5;
        pointer-events: auto;
    }
    
    .button-main {
        display: flex;
        font-size: 1.2rem;
        flex-direction: column;
    }
    
    .left-column, .right-column {
        align-items: center;
    }
    
    .photo-item {
        flex: 0 0 auto;
        position: relative;
        z-index: 5;
    }
    
    /* Начальные позиции для мобильных */
    .photo-item[data-index="0"] { 
        transform: translateX(-100px) translateY(-5px) rotate(-5deg);
    }
    .photo-item[data-index="1"] { 
        transform: translateX(-40px) translateY(0px) rotate(3deg);
    }
    .photo-item[data-index="2"] { 
        transform: translateX(0px) translateY(0px) rotate(-8deg);
    }
    .photo-item[data-index="3"] { 
        display: none;
    }
    .photo-item[data-index="4"] { 
        transform: translateX(10px) translateY(-16px) rotate(-3deg);
    }
    .photo-item[data-index="5"] { 
        transform: translateX(29px) translateY(9px) rotate(8deg);
    }
    .photo-item[data-index="6"] { 
        transform: translateX(55px) translateY(3px) rotate(-6deg);
    }
    .photo-item[data-index="7"] { 
        transform: translateX(55px) translateY(-37px) rotate(4deg);
    }
    
    .order-btn {
        padding: 10px 25px;
        margin-bottom: 6px;
        z-index: 15;
        pointer-events: auto;
    }
    
    .order-btn2 {
        padding: 10px 25px;
        z-index: 15;
        pointer-events: auto;
    }
    
    .photo-item img {
        max-width: 80px;
        height: auto;
    }
    
    .console-container {
        font-size: 2rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    /* Мобильная анимация разлетания (уменьшены значения translate) */
    .photo-item.scroll-animate[data-index="0"] { 
        transform: translateX(-50vw) translateY(-40vh) rotate(-45deg);
    }
    .photo-item.scroll-animate[data-index="1"] { 
        transform: translateX(-20vw) translateY(-30vh) rotate(-35deg);
    }
    .photo-item.scroll-animate[data-index="2"] { 
        transform: translateX(20vw) translateY(-25vh) rotate(-25deg);
    }
    .photo-item.scroll-animate[data-index="3"] { 
        display: none;
    }
    .photo-item.scroll-animate[data-index="4"] { 
        transform: translateX(-40vw) translateY(-40vh) rotate(-45deg);
    }
    .photo-item.scroll-animate[data-index="5"] { 
        transform: translateX(10vw) translateY(-30vh) rotate(35deg);
    }
    .photo-item.scroll-animate[data-index="6"] { 
        transform: translateX(30vw) translateY(-25vh) rotate(25deg);
    }
    .photo-item.scroll-animate[data-index="7"] { 
        transform: translateX(40vw) translateY(-30vh) rotate(15deg);
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .photo-item img {
        max-width: 60px;
    }
    
    .photos-container {
        gap: 10px;
        z-index: 5;
    }
    
    .photo-column {
        gap: 10px;
        z-index: 5;
    }
    
    /* Начальные позиции для мобильных */
    .photo-item[data-index="0"] { 
        transform: translateX(-60px) translateY(-5px) rotate(-5deg);
    }
    .photo-item[data-index="1"] { 
        transform: translateX(-15px) translateY(0px) rotate(3deg);
    }
    .photo-item[data-index="2"] { 
        transform: translateX(-15px) translateY(0px) rotate(-8deg);
    }
    .photo-item[data-index="3"] { 
        display: none;
    }
    .photo-item[data-index="4"] { 
        transform: translateX(30px) translateY(-16px) rotate(-3deg);
    }
    .photo-item[data-index="5"] { 
        transform: translateX(29px) translateY(9px) rotate(8deg);
    }
    .photo-item[data-index="6"] { 
        transform: translateX(31px) translateY(3px) rotate(-6deg);
    }
    .photo-item[data-index="7"] { 
        transform: translateX(34px) translateY(-37px) rotate(4deg);
    }
}