/* ===== ОПТИМИЗИРОВАННЫЙ CSS - МИНИМУМ АНИМАЦИЙ, МАКСИМУМ ПРОИЗВОДИТЕЛЬНОСТИ ===== */

/* Подключение шрифта */
@font-face {
    font-family: 'Forque';
    src: url('/fonts/Forque.ttf') format('truetype');
    font-display: swap;
}

/* БАЗОВЫЕ СТИЛИ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* УПРОЩЕННЫЙ ФОН БЕЗ АНИМАЦИИ */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #ff00ff, #1e90ff); /* УПРОЩЕННЫЙ ГРАДИЕНТ */
    font-family: Arial, sans-serif;
    padding: 20px;
    overflow-x: hidden;
}

/* УБИРАЕМ ВСЕ СЛОЖНЫЕ АНИМАЦИИ И ЭФФЕКТЫ ИЗ body */
body::before {
    display: none; /* УБИРАЕМ ЧАСТИЦЫ */
}

/* ОСНОВНОЙ КОНТЕЙНЕР САЙТА */
.site-wrapper {
    width: 886px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border: 3px solid rgba(255, 0, 255, 0.5); /* ПРОСТАЯ РАМКА БЕЗ ГРАДИЕНТА */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4); /* УМЕНЬШАЕМ ТЕНИ */
    background: white;
    position: relative;
    z-index: 1;
}

/* УБИРАЕМ ВСЕ ПСЕВДОЭЛЕМЕНТЫ С АНИМАЦИЯМИ */
.site-wrapper::before,
.site-wrapper::after {
    display: none;
}

/* ШАПКА САЙТА */
.site-header {
    width: 100%;
}

.header-top {
    width: 100%;
}

/* КОНТЕЙНЕР ДЛЯ ЛИЦА И ТЕКСТА */
.face-container {
    position: relative;
    width: 100%;
}

/* ИЗОБРАЖЕНИЯ ЧЕРЕЗ CSS - ОПТИМИЗИРОВАННЫЕ */
.menu-image {
    width: 886px;
    max-width: 100%;
    display: block;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    background: url('/img/menuhead.avif') no-repeat center top;
    background-size: 886px 86px;
    height: 86px;
    position: relative;
    pointer-events: none;
}

.face-image {
    width: 886px;
    max-width: 100%;
    display: block;
    background: url('/img/facehead.avif') no-repeat center top;
    background-size: 886px 704px;
    height: 704px;
    position: relative;
    pointer-events: none;
}

/* КОНТЕЙНЕР ДЛЯ ТЕКСТА В ШАПКЕ */
.header-text {
    position: absolute;
    top: 133px;
    left: 0;
    width: 886px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-sizing: border-box;
    z-index: 2;
    padding: 0 35px;
    pointer-events: auto;
}

/* НАДПИСИ В ШАПКЕ */
.text-left,
.text-right {
    font-family: 'Forque', sans-serif;
    font-size: 77px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* УПРОЩАЕМ ТЕНИ */
    line-height: 1;
    letter-spacing: 1px;
    text-transform: lowercase;
    white-space: nowrap;
    pointer-events: auto;
}

/* УБИРАЕМ ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ */
.text-left::after,
.text-right::after {
    display: none;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ОСНОВНОЙ КОНТЕНТ */
.site-content {
    flex: 1;
    background: white;
    padding: 40px;
    min-height: 300px;
    overflow: hidden;
}

/* УБИРАЕМ ЭФФЕКТ ДЛЯ КОНТЕНТНОЙ ЧАСТИ */
.site-content::before {
    display: none;
}

.content-wrapper {
    width: 100%;
    min-height: 200px;
}

/* СТИЛИ ДЛЯ ТЕКСТА В КОНТЕНТЕ */
h1 {
    color: #ff1493;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #00bfff;
}

p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(30, 144, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #00bfff;
}

/* ФУТЕР САЙТА */
.site-footer {
    width: 100%;
    margin-top: auto;
}

.footer-image {
    width: 886px;
    max-width: 100%;
    display: block;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
    background: url('/img/footerhead.avif') no-repeat center top;
    background-size: 886px 178px;
    height: 178px;
    position: relative;
    pointer-events: none;
}

/* УБИРАЕМ ЭФФЕКТ СВЕЧЕНИЯ ФУТЕРА */
.footer-image::after {
    display: none;
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 886px) {
    .site-wrapper {
        border-radius: 15px;
        width: 100%;
        max-width: 886px;
        box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    }
    
    /* ИЗОБРАЖЕНИЯ НА МОБИЛЬНЫХ */
    .menu-image,
    .face-image,
    .footer-image {
        width: 100%;
        background-size: 100% auto;
        background-position: center top;
        height: 0;
    }
    
    .menu-image {
        padding-top: 9.71%;
        border-top-left-radius: 13px;
        border-top-right-radius: 13px;
    }
    
    .face-image {
        padding-top: 79.46%;
    }
    
    .footer-image {
        padding-top: 20.09%;
        border-bottom-left-radius: 13px;
        border-bottom-right-radius: 13px;
    }
    
    /* ТЕКСТ В ШАПКЕ */
    .header-text {
        width: 100%;
        top: 19.9%;
        padding: 0 4%;
    }
    
    .text-left,
    .text-right {
        font-size: 8.7vw;
    }
    
    body {
        padding: 15px;
    }
    
    .site-content {
        padding: 25px 20px;
    }
}

/* ДЛЯ ПЛАНШЕТОВ */
@media (max-width: 768px) {
    .text-left,
    .text-right {
        font-size: 9vw;
    }
}

/* ДЛЯ МОБИЛЬНЫХ ТЕЛЕФОНОВ */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .site-wrapper {
        border-radius: 12px;
    }
    
    .site-content {
        padding: 20px 15px;
    }
    
    .menu-image {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    
    .footer-image {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    
    .header-text {
        top: 19.9%;
        padding: 0 1%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .text-left,
    .text-right {
        font-size: 8.7vw;
    }
    
    h1 {
        font-size: 1.5em;
    }
}

/* ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ТЕЛЕФОНОВ */
@media (max-width: 360px) {
    .text-left,
    .text-right {
        font-size: 7.5vw;
    }
}

/* ДЛЯ ЭКРАНОВ МЕНЬШЕ 320px */
@media (max-width: 320px) {
    .text-left,
    .text-right {
        font-size: 7vw;
        letter-spacing: 0.5px;
    }
}

/* ЗАПАСНЫЕ СТИЛИ ЕСЛИ ИЗОБРАЖЕНИЯ НЕ ЗАГРУЗИЛИСЬ */
.menu-image::before,
.face-image::before,
.footer-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #ff00ff, #1e90ff);
    opacity: 0.3;
    z-index: -1;
}

/* ===== СТИЛИ ДЛЯ МЕНЮ - ОПТИМИЗИРОВАННЫЕ ===== */

.main-menu {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.menu-image .main-menu {
    pointer-events: auto;
}

.menu-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    flex-wrap: nowrap;
    max-width: 100%;
}

.menu-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ССЫЛКИ МЕНЮ */
.menu-link {
    font-family: 'Forque', sans-serif;
    font-size: 24px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    white-space: nowrap;
    padding: 5px 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 30px;
    -webkit-tap-highlight-color: transparent;
}

/* УПРОЩЕННЫЙ ХОВЕР */
.menu-link:hover {
    color: #ff00ff;
}

/* РАЗДЕЛИТЕЛИ */
.menu-item:not(:last-child)::after {
    content: '/';
    font-family: 'Forque', sans-serif;
    font-size: 20px;
    color: white;
    margin: 0 10px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* АДАПТИВНОСТЬ МЕНЮ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 886px) {
    .menu-list {
        padding: 0 5px;
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .menu-list::-webkit-scrollbar {
        display: none;
    }
    
    .menu-link {
        font-size: 16px;
        padding: 8px 6px;
        min-height: 36px;
    }
    
    .menu-item:not(:last-child)::after {
        font-size: 16px;
        margin: 0 8px;
    }
}

@media (max-width: 768px) {
    .menu-link {
        font-size: 15px;
        padding: 7px 5px;
    }
    
    .menu-item:not(:last-child)::after {
        font-size: 15px;
        margin: 0 7px;
    }
}

@media (max-width: 480px) {
    .menu-list {
        padding: 0 4px;
        justify-content: center;
    }
    
    .menu-link {
        font-size: 14px;
        padding: 6px 4px;
        min-height: 34px;
    }
    
    .menu-item:not(:last-child)::after {
        font-size: 14px;
        margin: 0 6px;
    }
}

@media (max-width: 360px) {
    .menu-list {
        padding: 0 3px;
        justify-content: center;
    }
    
    .menu-link {
        font-size: 13px;
        padding: 5px 3px;
        min-height: 32px;
    }
    
    .menu-item:not(:last-child)::after {
        font-size: 13px;
        margin: 0 5px;
    }
}

@media (max-width: 320px) {
    .menu-list {
        padding: 0 2px;
        justify-content: center;
    }
    
    .menu-link {
        font-size: 12px;
        padding: 4px 2px;
        min-height: 30px;
    }
    
    .menu-item:not(:last-child)::after {
        font-size: 12px;
        margin: 0 4px;
    }
}

/* ДЕСКТОП */
@media (min-width: 887px) {
    .menu-list {
        justify-content: center;
        padding: 0;
    }
    
    .menu-link {
        font-size: 28px;
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .menu-item:not(:last-child)::after {
        font-size: 28px;
        margin: 0 15px;
    }
}

/* ОТКЛЮЧАЕМ ВСЕ НЕНУЖНЫЕ СВОЙСТВА ДЛЯ ПРОИЗВОДИТЕЛЬНОСТИ */
.menu-image,
.face-image,
.footer-image {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* УБИРАЕМ ВСЕ !important КРОМЕ САМЫХ НЕОБХОДИМЫХ */
.menu-image .main-menu,
.menu-image .main-menu * {
    pointer-events: auto;
}
