body { 
            margin: 0;
            padding: 0;
            background-repeat: no-repeat; 
            background-attachment: fixed; 
            background-size: cover;
            font-family: Arial, sans-serif;
            font-weight: bold;
            color: #ffffff;
            display: flex;
            flex-direction: column;
        }
            

@font-face {
	
    font-family: 'arial'; /* Придумай любое имя */
    src: url('font/arialmt.ttf') format("truetype");
    font-weight: normal;
    font-style: normal;
	
}

.main-logo {
            
            height: auto;
            display: block;
            color: #ff0000; 
            text-shadow: -1px -1px 10px #000,
                1px -1px 10px #000,
                -1px 1px 10px #000,
                1px 1px 10px #000,
                -1px -1px 10px #000,
                1px -1px 10px #000,
                -1px 1px 10px #000,
                1px 1px 10px #000;
            width: 100%;
            font-size: 40px; 
            max-width: 100%;
            text-align: center;
        }
            
.Sample-Text {
            
            height: auto;
            display: block;
            color: #ffffff; 
            text-shadow: -1px -1px 10px #000,
                1px -1px 10px #000,
                -1px 1px 10px #000,
                1px 1px 10px #000,
                -1px -1px 10px #000,
                1px -1px 10px #000,
                -1px 1px 10px #000,
                1px 1px 10px #000;
            width: 100%;
            font-size: 40px; 
            max-width: 100%;
            text-align: center;
        }

.logo-wrapper {
    display: flex;
    justify-content: center; /* Логотип остается по центру */
    align-items: center;
    position: relative;      /* База для позиционирования кнопок */
    width: 100%;
    padding: 10px 0;
}

/* Блок, который уйдет в самый левый угол */
.height-badges {
    position: absolute;
    left: 20px;        /* Отступ от левого края экрана */
    display: flex;
    gap: 15px;         /* Расстояние между двумя кнопками слева */
    align-items: center;
}

/* Блок, который уйдет в самый правый угол */
.right-badges {
    position: absolute;
    right: 20px;       /* Отступ от правого края экрана */
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Общие стили для иконок в этих блоках, чтобы они не накладывались */
.height-badges img {
    width: 60px;
    height: auto;
    display: block;
    transition: 0.3s;
    border-radius: 5px;
}

.height-badges img:hover { 
    transform: scale(1.1); 
}

.right-badges img {
    width: 175px;       /* Настройте нужный размер */
    height: auto;
    display: block;
    transition: 0.3s;
    border-radius: 5px;
}

.right-badges img:hover { 
    transform: scale(1.1); 
}

.phone-img {
            width: 100%;
            max-width: 120px; /* Уменьшил, чтобы точно влезли в ряд внутри рамки */
            height: auto;
        }

.attention {
        color: #ff0000;
        font-size: 1em;
        margin-bottom: 10px;
        display: block;
        text-transform: uppercase;
    }

.attention-text {
        color: #ffffff;
        font-size: 0.75em;
        margin-bottom: 10px;
        display: block;
        text-transform: uppercase;
    }

/* По умолчанию скрываем вертикальный вид (для больших экранов) */
.vertically {
    display: none;
}

/* Когда ширина экрана 1080px или меньше */
@media screen and (max-width: 800px) {
    /* Прячем основной горизонтальный контент */
    .horizontally {
        display: none !important;
    }

    /* Показываем вертикальный контент */
    .vertically {
        display: flex !important; /* Или block, в зависимости от твоей верстки */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        text-align: center;
    }
}




/* Размеры для устроиств */

/* Для планшетов */
/* Для телефонов */

/*
@media (max-width: 1024px) {
    body {
        transform: scale(0.5);
        transform-origin: top center;
    }
    .trailer-badge {
        transform: scale(0.3);
        transform-origin: top center;
    }
}

@media (max-width: 768px) {
    body {
        transform: scale(0.3);
        transform-origin: top center;
    }
    .trailer-badge {
        transform: scale(0.1);
        transform-origin: top center;
    }
}
*/

/* index */

/* Весь экран в тумане */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.2); /* Легкое затемнение */
    backdrop-filter: blur(15px);    /* РАЗМЫТИЕ ВСЕГО ФОНА */
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    overflow-y: auto;   /* Включает прокрутку, если контент не влезает */
    overflow-x: auto; /* Отключает горизонтальную прокрутку */
}

/* Чистое прозрачное окно в центре */
.modal-overlay .warning-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05); /* Почти прозрачное */
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 30px;
    max-width: 75%;
    width: 85%;
    text-align: center;
    /* Убираем размытие ВНУТРИ самого окна, чтобы контент был четким */
    backdrop-filter: blur(0px) !important; 
    box-shadow: 0 0 0 5000px rgba(0,0,0,0.1); /* Дополнительный слой глубины */
}

/* Класс для активации */
.modal-overlay.active {
    display: flex;
}

/* Стиль кнопки внутри окна */
.close-warning {
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.close-warning:hover {
    transform: scale(1.1);
    background: #cc0000;
}

.arrow {
            background: rgba(0,0,0,0.6);
            color: rgba(255, 255, 255, 0.5); /* Цвет стрелки по умолчанию (полупрозрачный белый) */
            border: 2px solid #fff;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            user-select: none;
            transition: 0.3s; /* Чтобы менялось плавно */
        }

.arrow:hover {
            background: #fff;       /* Фон становится белым */
            color: #000;            /* Сама стрелка становится черной (на белом фоне) */
            box-shadow: 0 0 15px #fff; /* Добавим свечение для красоты */
        }

.main-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            min-height: auto;
            box-sizing: border-box;
        }

.warning-box {
            text-align: center;
            max-width: 75vw;
            margin-bottom: 30px;
            background: rgba(0,0,0,0.3);
            backdrop-filter: blur(10px); /* Размытие фона под карточкой */
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 40px 20px;
            border-radius: 20px;
            max-height: 75%;  /* Максимальная высота, после которой начнется прокрутка */
            overflow-y: auto;   /* Позволяет крутить вверх-вниз */
            overflow-x: auto;
            box-shadow: 0 15px 35px rgba(0,0,0,0.5);
        }
.warning-box a { color: #ffcc00; text-decoration: none; }

.small-div {
    transform: scale(1); /* Уменьшает всё внутри до 80% от оригинала */
}

        /* ИСПРАВЛЕНО: Секции теперь всегда в центре */
.main-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: flex-start;
            gap: 40px;
            width: 100%;
            max-width: 1000px;
            margin: 40px auto;
            position: relative; /* Чтобы не было фиксации */
        }

.slider-section {
            display: flex;
            flex-direction: column;
            align-items: center; /* Центрирует заголовок над слайдером */
        }

.section-title { 
            font-size: 32px; 
            margin-bottom: 20px; 
            display: block; 
            text-transform: uppercase; 
            text-align: center; /* Центровка текста заголовка */
        }

/* Остальные стили без изменений */
.slider-wrapper { display: flex; align-items: center; justify-content: center; gap: 15px; }
.cards-container { position: relative; width: 240px; height: 360px; perspective: 1200px; }
.card { position: absolute; width: 100%; height: 100%; border-radius: 20px; background-size: cover; background-position: center; box-shadow: 0 10px 25px rgba(0,0,0,0.5); transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1); border: 6px solid #000000; box-sizing: border-box; display: block; opacity: 0; pointer-events: none; transform: scale(0.5); }
.card.active { z-index: 10; opacity: 1; transform: rotate(0) scale(1); pointer-events: auto; }
.card.back-1 { z-index: 5; opacity: 0.7; transform: translateX(25px) rotate(5deg) scale(0.9); }
.card.back-2 { z-index: 2; opacity: 0.4; transform: translateX(-25px) rotate(-5deg) scale(0.85); }
.arrow { background: rgba(0,0,0,0.6); color: #fff; border: 2px solid #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 100; }

.rytp-grid { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap;
    order: 1; /* Устанавливаем первым */
}
.views-layout { 
    display: flex; 
    flex-direction: column; /* Элементы теперь один под другим */
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px; 
}
.rytp-side-col { 
    display: flex; 
    flex-direction: row; /* Кнопки теперь лежат горизонтально */
    gap: 20px; 
    flex-shrink: 0; 
    order: 2; /* Устанавливаем вторым (после сетки) */
}
.rytp-side-col img:hover { 
    transform: scale(1.1); 
}
.rytp-img1{ 
    width: 650px;
    border-radius: 8px; 
    transition: 0.3s; 
    border: 2px solid #000; 
}
.rytp-img2{
    width: 320px;
    border-radius: 8px; 
    transition: 0.3s; 
    border: 2px solid #000; 
}
.rytp-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.rytp-grid img { width: 315px; border-radius: 10px; transition: 0.3s; border: 4px solid #000; }
.rytp-grid img:hover { transform: scale(1.1); }

.rytp-mobile-alt {
    display: none;
}

/* -mobile */

.section-title-mobile { 
    font-size: 22px; 
    margin-bottom: 20px; 
    display: block; 
    text-transform: uppercase; 
    text-align: center; /* Центровка текста заголовка */
}
.views-layout-mobile { 
    display: flex; 
    flex-direction: column; /* Элементы теперь один под другим */
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 20px; 
}
.rytp-side-col-mobile { 
    display: flex; 
    flex-direction: row; /* Кнопки теперь лежат горизонтально */
    gap: 20px; 
    flex-shrink: 0; 
    order: 2; /* Устанавливаем вторым (после сетки) */
}
.rytp-side-col-mobile img:hover { 
    transform: scale(1.1); 
}
.rytp-img1-mobile{ 
    width: 425px;
    border-radius: 8px; 
    transition: 0.3s; 
    border: 2px solid #000; 
}
.rytp-img2-mobile{
    width: 200px;
    border-radius: 8px; 
    transition: 0.3s; 
    border: 2px solid #000; 
}
.rytp-grid-mobile { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.rytp-grid-mobile img { width: 200px; border-radius: 10px; transition: 0.3s; border: 4px solid #000; }
.rytp-grid-mobile img:hover { transform: scale(1.03); }

@media (max-width: 1080px) {
    .views-layout { flex-direction: column; align-items: center; }
    .rytp-side-col { flex-direction: row; justify-content: center; }
    .main-grid { flex-direction: column; align-items: center; }
    .trailer-badge { width: 80px; right: 0; }

    .rytp-views {
        display: none !important;
    }
    .rytp-mobile-alt {
        display: flex;             /* Включаем flex для выравнивания содержимого */
        flex-direction: column;    /* Текст сверху, кнопки под ним */
        align-items: center;       /* Центровка по горизонтали */
        
        /* Внешний вид */
        width: 90%;                /* Ширина блока */
        max-width: 1000px;
        height: 200px;
        padding: 5px;
        z-index: 1000;             /* Чтобы был поверх всего */
        box-sizing: border-box;
        
        display: block;

        .rytp-mobile-alt .section-title {
        font-size: 14px; /* Уменьшаем размер заголовка */
    }

}

.card.exit-right { transform: translateX(120%) rotate(15deg) scale(0.8); opacity: 0 !important; }
.card.exit-left { transform: translateX(-120%) rotate(-15deg) scale(0.8); opacity: 0 !important; }
}

/* news */

.main-logo-news {
            width: 100%;
            height: auto;
            margin: 20px 0;
            position: relative;
            z-index: 10;
            color: #ff0000; 
            text-shadow: -1px -1px 10px #000,
                1px -1px 10px #000,
                -1px 1px 10px #000,
                1px 1px 10px #000,
                -1px -1px 10px #000,
                 1px -1px 10px #000,
                -1px 1px 10px #000,
                 1px 1px 10px #000;
                        width: 100%;
            font-size: 5vw; 
            max-width: 100%;
            text-align: center;
        }

/* Контейнер-рамка */
.news-plate {
            position: relative;
            width: 92%; /* Чуть сузил, чтобы влезло в экраны */
            max-width: 850px;
            background-image: url('texture/image3.png');
            background-size: 100% 100%; /* Картинка четко по размеру блока */
            background-repeat: no-repeat;

            border-radius: 10px;
            
            /* ГЛАВНОЕ: Увеличил отступы, чтобы контент был только ВНУТРИ */
            padding: 80px 60px; 
            box-sizing: border-box;
            
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 50px;
        }

.news-gallery {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            margin: 20px 0;
            width: 100%;
        }

.news-img {
            width: 100%;
            max-width: 320px; /* Уменьшил, чтобы точно влезли в ряд внутри рамки */
            height: auto;
            border-radius: 15px;
            border: 2px solid rgba(255,255,255,0.2);
        }

.icon-btn {
            width: 90px;
            height: 90px;
            border-radius: 10px;
            transition: 0.3s;
        }
.icon-btn:hover { transform: scale(1.1); }

h1 { font-size: 28px; margin: 10px 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
p { font-size: 18px; margin: 10px 0; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
a { text-decoration: none; color: inherit; }

/* Адаптация для мобилок, чтобы рамка не сплющила текст */
@media (max-width: 600px) {
    .news-plate { 
                padding: 50px 30px; /* На мобилках отступы меньше, но всё еще внутри */
                width: 98%;
                }
h1 { font-size: 20px; }
p { font-size: 16px; }
.icon-btn { width: 70px; height: 70px; }
        }

/* RYTP */

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Логотип сверху */
.main-logo-rytp {
    width: 100%;
    max-width: 515px;
    height: auto;
    margin-bottom: 20px;
}

/* Кнопка "Назад" (домик) */
.home-btn {
    width: 100px;
    height: 100px;
    border-radius: 5px; /* Закругление */
    transition: 0.3s;
    margin-bottom: 10px;
}
.home-btn:hover { transform: scale(1.15) rotate(5deg); }

/* Кнопка "Назад" (домик) */
.home-btn-windows {
    width: 75px;
    height: 75px;
    border-radius: 5px; /* Закругление */
    transition: 0.3s;
    margin-bottom: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
}
.home-btn-windows:hover { transform: scale(1.15) rotate(5deg); }

/* Эмблема RYTP */
.rytp-logo {
    width: 200px;
    height: auto;
    border-radius: 25px; /* Закругление */
    margin-bottom: 20px;
}

/* Блок с текстом */

/* Ссылки внизу */
.bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.bottom-links a {
    color: #ff0000;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 15px; /* Закругление ссылок */
    border: 2px solid #ff0000;
    transition: 0.3s;
}

.bottom-links a:hover {
    background: #ff0000;
    color: #000;
}

/* COLLAB */

.home-btn { width: 100px; height: 100px; transition: 0.3s; margin-bottom: 15px; cursor: pointer; }
.home-btn:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Декорации */
.header-decor {
    position: relative;
    width: 100%;
    line-height: 0;
}

.top-wall {
    width: 100%;
    height: auto;
    display: block;
}

.top-front {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    height: auto;
}

/* Контент */
.content {
    padding: 20px;
    box-sizing: border-box;
}

/* Заголовки */
.big-text {
    font-size: clamp(24px, 5vw, 40px);
    color: #ff0000;
    margin: 20px 0;
}

.section-title {
    font-size: clamp(20px, 4vw, 40px);
    display: block;
    margin-bottom: 10px;
}

/* Таблица превращается в гибкий блок */
.responsive-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.table-cell {
    flex: 1;
    min-width: 300px; /* Чтобы на телефонах они падали друг под друга */
    max-width: 600px;
    padding: 10px;
}

/* Error */

/* Красивая карточка с эффектом стекла */
.content-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px); /* Размытие фона под карточкой */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 20px;
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.error-img {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    padding: 0;
}

.status-text {
    font-size: 24px;
    color: #ffcc00; /* Золотистый акцент */
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.desc-text {
    font-weight: normal;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}