/*
Theme Name: Promedevus
Author: Promedevus
Description: Кастомная тема для разработчика игр
Version: 1.0
*/

/* Шрифт */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: #f0ece7;
    background-color: #000;
    overflow-x: hidden;
    font-size: var(--base-font-size);
}

/* Определение базовых переменных с относительными единицами */
:root {
    --base-font-size: clamp(14px, 1.5vw, 20px); /* Базовый размер шрифта для горизонтальных экранов */
    --logo-size: clamp(20px, 1.5vw, 70px); /* Размер логотипа */
    --menu-gap: 2vw; /* Отступы в меню */
    --central-image-width: 70vw; /* Ширина центрального изображения */
    --social-icon-size: clamp(12px, 1.2em, 32px); /* Привязка к высоте шрифта */
    --header-top: 3vh; /* Отступ заголовка сверху */
    --social-links-bottom: 4vh; /* Отступ соцсетей снизу */
	
}

/* Фон */
.bg-gradient,
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/wp-content/themes/promedevus/images/bg-gradient.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: transform;
}


/* Меню */
.menu {
    position: absolute;
    top: clamp(9vh, 13vh, 16vh); /* Сдвигаем меню ниже */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--menu-gap);
    padding: 0 2vw;
    justify-content: center;
    list-style: none;
    z-index: 9999;
    text-transform: uppercase;
    font-size: var(--base-font-size);
    white-space: nowrap;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0 15px;
    transition: all 0.3s ease;
    font-weight: 550;
}

.menu-item a {
    text-decoration: none;
    color: inherit;
}

.menu-item a:visited,
.menu-item a:link,
.menu-item a:active,
.menu-item a:hover {
    color: inherit;
    text-decoration: none;
}

.menu-item.current-menu-item a {
    font-weight: 900;
    color: #ff4500;
}

/* Стиль для пункта "Огненный Архив" */
#menu-item-31 a {
    background-color: #694c34 !important;
    border-radius: 0.5em !important; /* Относительно шрифта */
    padding: 0 calc(1em + 4px) !important; /* 1em + минимальный отступ */
    line-height: 1.8 !important; /* Безразмерный коэффициент */
    min-height: calc(1em * 2.2); /* Минимальная высота */
    
    /* Новые свойства для адаптации */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transform: scale(1);
    transition: 
        transform 0.3s ease,
        line-height 0.3s ease;
}

/* Горизонтальные экраны - синхронизация с меню */
@media (orientation: landscape) {
    #menu-item-31 a {
        line-height: calc(1em * 2) !important;
        padding: 0 1.2em !important;
    }
}

/* Фикс для экстремальных пропорций */
@media (max-aspect-ratio: 1/1) {
    #menu-item-31 a {
        line-height: 1.6 !important;
        padding: 0 0.8em !important;
    }
}

/* Градиентный блик */
.menu-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 69, 0, 0.3) 0%,
        rgba(255, 69, 0, 0.8) 30%,
        rgba(255, 165, 0, 0.6) 50%,
        transparent 70%
    );
    opacity: 0;
    transform: rotate(-45deg);
    transition: opacity 0.3s ease;
    z-index: 2;
}

.menu-item {
    overflow: hidden;
}

.menu-item:hover::before {
    opacity: 1;
    animation: gradient-shine 1s forwards, flicker 0.5s infinite alternate;
}

@keyframes gradient-shine {
    0% {
        transform: translateX(-100%) rotate(-45deg);
    }
    100% {
        transform: translateX(100%) rotate(-45deg);
    }
}

@keyframes flicker {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.menu-item:hover {
    transform: scale(1.1);
    color: #ff4500;
}

/* Соцсети */
.social-links {
    position: absolute;
    bottom: var(--social-links-bottom);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    z-index: 10;
    text-align: center;
}

.social-text {
    font-size: var(--base-font-size);
    margin-right: 1vw;
    white-space: nowrap;
}

.social-icon {
    display: inline-block;
    width: var(--social-icon-size);
    height: var(--social-icon-size);
    cursor: pointer;
    transition: all 0.3s ease;
	
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
	transition: inherit;
}

.social-icon:hover img {
    transform: scale(1.4);
}

/* Копирайт */
.copyright {
    font-size: calc(var(--base-font-size) * 0.7);
    color: #5d533b;
    margin-top: 12px;
    width: 100%;
    text-align: center;
}

/* Искры */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    bottom: auto;
    border-radius: 50%;
    background: radial-gradient(circle, #ff4500, #ff6300);
    opacity: 0.8;
    pointer-events: none;
    will-change: transform;
}

.sparkle-glow {
    animation: glow-pulse 0.6s infinite alternate;
    box-shadow: 0 0 8px #ff4500, 0 0 16px #ff6300;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 6px #ff4500, 0 0 12px #ff6300;
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 12px #ff4500, 0 0 24px #ff6300;
        opacity: 1;
    }
}

/* Курсор и удаление бара прокрутки */
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

body,
a, button, input, textarea,
.menu-item, .social-icon, .modal-button,
.fire-archive,
#fire-archive {
}

.effects-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 9997;
    will-change: transform;
	transform: translateZ(0); /* Фикс для позиционирования */
}


.tail-spark {
    position: absolute;
    transform: translate(var(--x), var(--y)); /* Динамические координаты */
}




/* Центральное изображение */
.central-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--central-image-width);
    max-height: 80vh;
    z-index: 1;
    object-fit: contain;
    display: block;
}

/* Логотип */
.logo {
    position: absolute;
    top: clamp(3vh, 5vh, 7vh);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--logo-size);
    color: #776046;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    z-index: 9999;
    transition: transform 0.3s ease, font-size 0.3s ease;
}

.logo span {
    color: #f7f7f7;
}

.logo:hover {
    transform: translateX(-50%) scale(1.1);
    color: #ff4500;
    opacity: 0.9;
}

/* Корректировка шрифта меню для больших экранов */
@media (min-width: 2560px) {
    :root {
        --base-font-size: 1vw;
    }
}

@media (min-width: 3840px) {
    :root {
        --base-font-size: 1vw;
    }
}

/* Стили для горизонтальных экранов (и квадратных) */
@media (max-width: 480px) and (orientation: landscape) {
    .header-container {
        grid-template-columns: 1fr auto 1fr;
    }
.menu {
        gap: clamp(4px, 1vw, 8px);
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0 clamp(5px, 1vw, 10px);
    }
    .social-links {
        flex-direction: row;
    }
    .central-image {
        width: var(--central-image-width);
        max-height: 80vh;
    }
	
.menu-item {
        font-size: clamp(8px, 1.5vw, 12px);
        padding: 0 clamp(4px, 1vw, 8px);
        white-space: nowrap;
	    height: auto; 
    }
	
	
	
}


/* медиа-запрос для экстремальных разрешений */
@media (max-width: 480px) and (orientation: landscape),
       (max-height: 320px) {
    .logo {
        top: max(4vh, 20px) !important; /* Гарантированный минимум */
        font-size: calc(var(--logo-size) * 0.9);
    }
    
    .menu {
        top: clamp(12vh, 18vh, 24vh) !important; /* Было 10% */
        gap: 1.2vh !important;
    }

    /* Форсируем минимальный отступ между лого и меню */
    .logo + .menu {
        margin-top: min(5vh, 40px) !important;
    }
		   
    .social-icon {
        --social-icon-size: clamp(10px, 1.5vh, 24px) !important; /* Уменьшаем минимальный размер */
        transform: scale(0.85);
    }

	.social-text {
        font-size: calc(var(--base-font-size) * 0.8) !important; /* Уменьшаем на 20% */
        margin-right: 0.5vw !important;
    }
		   
}




/* Стили для вертикальных экранов */
@media (orientation: portrait) {
    :root {
        --base-font-size: 3vw;
        --logo-size: 5vw;
        --menu-gap: 2vw;
        --central-image-width: 90vw;
        --social-icon-size: 4vw;
    }
	

    .logo {
        top: clamp(3vh, 5vh, 7vh); /* Динамический отступ для лого */
        transform: translateX(-50%);
    }
	
    .header-container {
        grid-template-columns: 1fr;
    }
    .menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1vh, 2vh, 3vh);    /* Адаптивный промежуток между строками */
		row-gap: clamp(2vh, 3vh, 4vh); /* Отступ между первой и второй линией меню */
        width: 90%;
        margin: clamp(5px, 1vh, 10px) auto 0; /* Уменьшенный margin */
        padding: 0 clamp(20px, 2vw, 70px); /* Компактные отступы */
        position: relative;
        top: clamp(15vh, 17vh, 35vh); /* Плавное изменение отступа сверху */
        left: auto;
        transform: none;
    }
    .menu-item {
        width: 100%;
        height: clamp(20px, 4vh, 40px); /* Пропорциональная высота */
        padding: 0 clamp(5px, 2vw, 10px); /* Компактные отступы */
        font-size: clamp(4px, 3.5vw, 16px);
        text-align: center;
    }
    .social-links {
        flex-direction: column;
		bottom: clamp(3vh, 5vh, 7vh);
        gap: 2vw;
    }
    .central-image {
        width: var(--central-image-width);
        max-height: 60vh;
        padding: 0 8px;
        transform: translate(-50%, -50%);
    }
}


.about-dev-container > *:last-child {
    margin-bottom: 5vh; /* Регулируемый отступ */
}


/* Для 8K+ мониторов */
@media (min-width: 7680px) {
    :root {
        --logo-size: 1vw;
        --base-font-size: 0.8vw; /* Уменьшаем базовый шрифт */
        --central-image-width: 40vw; /* Уменьшаем изображение */
    }
    
    .social-text {
        font-size: 0.8em !important; /* Уменьшаем текст "Где найти:" */
		
    }
	
	.social-icon {
		height: 1em;
		width: 1em;
		transform: scale(0.9);
	}
	
}





/* Медиа-запрос для экранов шире 21:9 */
@media (min-aspect-ratio: 21/9) {
    :root {
        --base-font-size: clamp(18px, 2.2vh, 28px); /* Увеличиваем базовый размер */
        --logo-size: clamp(40px, 3vh, 100px); /* Крупнее лого */
        --menu-gap: 3vh; /* Больше отступов */
        --social-icon-size: clamp(20px, 2.5vh, 48px); /* Увеличиваем иконки */
        --central-image-width: min(80vh, 1500px); /* Ограничение по высоте + максимум */
    }

    .menu-item {
        padding: 0 2.5vh !important; /* Более крупные пункты меню */
        font-weight: 600 !important; /* Жирный шрифт */
    }

    .central-image {
        transform: translate(-50%, -50%) scale(1.4) !important; /* Увеличение на 20% */
    }

    .social-text {
        font-size: calc(var(--base-font-size) * 1.0) !important; /* Крупнее текст */
    }

    /* Адаптивный ховер-эффект */
    .menu-item:hover {
        transform: scale(1.1) !important; /* Усиленная реакция */
    }
}

/* Дополнительно для 3440px ширины */
@media (min-width: 3440px) and (min-aspect-ratio: 21/9) {
    :root {
        --logo-size: 3vh; /* Динамическое увеличение */
        --central-image-width: min(90vh, 1800px);
    }
    
    .menu {
        top: 15vh !important; /* Сдвигаем меню ниже */
    }
}


/* Прижимаем копирайт к низу футера */
footer {
    position: relative;
    min-height: 100vh; /* Для демонстрации, замените на актуальную высоту */
}

.copyright {
    position: absolute;
    bottom: 20px; /* Отступ 20px от низа */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding-bottom: 10px; /* Дополнительный внутренний отступ */
	color: #755138;
}




/* Вертикальные экраны (обычный мобильный вид) */
@media (max-width: 767px) and (orientation: portrait) {
    :root {
        --logo-size: 7vw;
        --menu-font-size: 3.5vw;
        --social-text-size: 3vw;
    }
}

/* Горизонтальные экраны (мобильный альбомный режим) */
@media (max-width: 900px) and (orientation: landscape) {
    :root {
        --logo-size: clamp(20px, 3vh, 40px) !important;
        --menu-font-size: clamp(12px, 2vh, 16px) !important;
        --social-text-size: clamp(12px, 2vh, 14px) !important;
    }

    .logo {
        top: 2vh !important;
        font-size: var(--logo-size) !important;
    }

    .menu {
        top: 10vh !important;
        gap: 1vh !important;
    }

    .menu-item {
        font-size: var(--menu-font-size) !important;
        padding: 0 8px !important;
    }

    .social-text {
        font-size: var(--social-text-size) !important;
        margin-right: 0.5vh !important;
    }

    .social-icon {
        width: clamp(16px, 3vh, 24px) !important;
        height: clamp(16px, 3vh, 24px) !important;
    }

    .central-image {
        width: 90vh !important;
        max-height: 60vh !important;
    }
}

/* Для очень узких экранов (например, iPhone SE в альбомном режиме) */
@media (max-width: 568px) and (orientation: landscape) {
    :root {
        --menu-font-size: clamp(10px, 1.8vh, 12px) !important;
    }

    .menu {
        top: 8vh !important;
        flex-wrap: wrap !important;
    }
}


/* Скрываем элементы на всех НЕ главных страницах */
body:not(.home) .central-image,
body:not(.home) .social-links {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}






















/* ===== ШАБЛОН страниц "О РАЗРАБОТЧИКЕ" и "ТЕКУЩАЯ ИГРА" ===== */

/* 1. Скрытие элементов */
body.page-id-20 .central-image,
body.page-id-20 .social-links {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* 2. Основной контейнер - позиционируем относительно меню */
.content-under-menu {
    position: absolute;
    top: calc(clamp(9vh, 13vh, 16vh) + 8vh);
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    max-width: 1200px;
    padding: 20px;
    z-index: 20 !important;
    isolation: isolate;
    opacity: 0;
    animation: fade-in 0.5s ease forwards;
    pointer-events: auto;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 3. Стили контента с кастомным курсором */
.about-dev-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 60px;
    position: relative;
    z-index: 21 !important;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.5) transparent;

}
/* 4. Обновленная структура контента */
.about-content {
    position: relative;
    z-index: 22 !important;
    display: flow-root;
}

.about-text {
    color: #f0ece7;
    font-size: 1em;
    line-height: 1.6;
    position: relative;
    z-index: 23 !important;
    /*text-align: justify;*/
    overflow: hidden
}



/* Специальный класс для первого абзаца */
.text-float-wrap {
    margin-top: 0;
}

.about-text::after {
    content: "";
    display: table;
    clear: both;
}

/* 5. Анимации */
@keyframes fire-border {
    0% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.8; transform: scale(1); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 6. Управление слоями */
.sparkles {
    z-index: 10 !important;
    pointer-events: none;
}

.cursor-container,
.tail-spark,
.sparkle-glow {
    z-index: 2147483647 !important;
    pointer-events: none !important;
}

/* 7. Адаптация для мобильных */
@media (orientation: portrait) {
    .content-under-menu {
        width: 95%;
        padding: 10px;
        top: calc(clamp(15vh, 17vh, 35vh) + 
             (2 * clamp(20px, 4vh, 40px)) +  
             clamp(2vh, 3vh, 4vh) +          
             3vh);                           
        bottom: 70px;
    }
    
    .about-image {
        float: none;
        width: 100%;
        max-width: none;
        margin: 20px 0;
        display: block;
    }
    
    .about-dev-container {
        padding: 20px;
    }
    
    .about-text {
        font-size: 0.95em;
    }
    
    /* Скрываем оверлей на мобильных */
    .scrollbar-overlay {
        display: none;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .content-under-menu {
        top: calc(clamp(12vh, 18vh, 24vh) + 
                 (1.5 * clamp(20px, 4vh, 40px)) + 
                 2vh);                            
        bottom: 60px;
        width: 90%;
    }
    
    .about-image {
        width: 50%;
        margin: 0 0 15px 20px;
    }
    
    .about-dev-container {
        padding: 25px;
    }
}

@media (max-width: 480px) and (orientation: landscape) {
    .content-under-menu {
        top: calc(clamp(8vh, 12vh, 18vh) + 
                 clamp(20px, 4vh, 40px) + 
                 1vh);                    
        bottom: 50px;
    }
    
    .about-image {
        width: 45%;
        margin: 0 0 10px 15px;
    }
    
    .about-dev-container {
        padding: 15px;
    }
    
    .about-text {
        font-size: 0.9em;
    }
}

/* 8. Гарантия позиционирования */
body.page-id-20 {
    position: relative;
    min-height: 100vh;
}



.menu.centered {
    position: relative;
    z-index: 30;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

/* СТИЛИ КОПИРАЙТА */
.copyright {
    z-index: 25 !important;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding-bottom: 10px;
    color: #755138;
    font-size: calc(var(--base-font-size) * 0.7);
    text-align: center;
}

@media (orientation: portrait) {
    .copyright {
        bottom: 30px !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .copyright {
        bottom: 25px !important;
    }
}

.float-clear {
    clear: both;
}


















/* ===== ШАБЛОН страницы "ЧАВО" ===== */



/* Контейнер FAQ */
.faq-main-container {
    bottom: 60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    padding: 40px 5%;
    z-index: 20;
    animation: fade-in 0.5s ease forwards;
	display: block
	max-height: 100%;
	color: #f0ece7;
}

/* Разделы FAQ */
.faq-section {
    margin-bottom: 25px;
}

/* Заголовок раздела */
.section-header {
	font-family: 'Montserrat', sans-serif;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1.2em;
    color: #f0ece7;
    text-align: left;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
    transition: background 0.3s ease;
}

.section-header:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Контент раздела */
.section-content {
    overflow: auto;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-left: 2px solid rgba(255, 69, 0, 0.5);
    margin-left: 15px;
}

.section-header.active + .section-content {
    max-height: 1000px; /* Ограничьте под ваш контент */
}

/* Вопросы */
.faq-item {
    margin-top: 10px;
}

.question {
	font-family: 'Montserrat', sans-serif;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 1em;
    color: #f0ece7;
    text-align: left;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.15);
    transition: background 0.3s ease;
	overflow-x: auto;
}

.question:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Ответы */
.answer {
    overflow: auto;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: #ccc;
}

.question.active + .answer {
 	overflow-y: auto;
}

/* Стрелки */
.arrow {
    float: right;
    transition: transform 0.3s ease;
}

.section-header.active .arrow {
    transform: rotate(90deg);
}

.question.active .arrow {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .faq-container {
        padding: 20px 10px;
    }
    .section-header,
    .question {
        font-size: 1em;
        padding: 10px 15px;
    }
}

.faq-container,
.faq-section,
.section-header,
.section-content,
.faq-item,
.question,
.answer {
    box-sizing: border-box;
}










/* Ответы */

.question.active + .answer {
    max-height: 10000px; /* Позволяет развернуться */
    overflow-y: auto; /* Включаем скролл при необходимости */
    /* Копируем стили из .about-dev-container */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.5) transparent;
}

/* Стили для скроллбара (WebKit: Chrome, Safari, Edge) */
.question.active + .answer::-webkit-scrollbar {
    width: 8px;
}

.question.active + .answer::-webkit-scrollbar-track {
    background: transparent;
}

.question.active + .answer::-webkit-scrollbar-thumb {
    background: rgba(255, 69, 0, 0.5); /* Цвет ползунка */
    border-radius: 4px;
}



.section-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-left: 2px solid rgba(255, 69, 0, 0.5);
    margin-left: 15px;
}

.answer {
    overflow: auto;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: #ccc;
}

.answer.animating {
    overflow-y: hidden; /* Скрываем скролл во время анимации */
}

.question.active + .answer {
    overflow-y: auto; /* Скролл появляется только если нужен */
}



/* Прозрачность контейнера только на странице ЧАВО */
.page-id-22 .about-dev-container {
    background: rgba(0, 0, 0, 0.1); /* Прозрачность 60% (0.6) */
    backdrop-filter: blur(12px); /* Сохраните фильтр */
    border-radius: 15px; /* Сохраните скругление */
}


/* Уменьшение отступов на мобильных устройствах страницы ЧАВО */
@media (max-width: 768px) {
    .page-id-22 .faq-container {
        padding: 5px; /* Уменьшенные отступы */
    }
    .page-id-22 .faq-main-container {
        padding: 5px; /* Уменьшенные внешние отступы */
    }
}





/* ===== ШАБЛОН страницы "ОГНЕННЫЙ АРХИВ" ===== */


/* Обертка формы */
.fire-archive-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Основная форма */
.fire-archive-form {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
    animation: fire-border 2s infinite alternate;
}

/* Заголовок формы */
.fire-archive-form h2 {
    color: #ff4500;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
    position: relative;
    z-index: 2;
}

.fire-archive-form h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4500, transparent);
    z-index: 1;
}

/* Группы полей */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f0ece7;
    font-weight: 500;
    font-size: 0.95em;
}

/* Поля ввода */
.form-group input {
    width: 90%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #f0ece7;
    font-size: 1em;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.5);
    z-index: 3;
}

/* Группы чекбоксов */
.consent-group {
    display: flex;
    align-items: center;
    margin: 15px 0;
    position: relative;
    z-index: 2;
}

.consent-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #ff4500;
}

.consent-group label {
    color: #ccc;
    cursor: pointer;
    font-size: 0.7em;
}

/* Кнопка отправки */
.fire-archive-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff4500, #ff6300);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    position: relative;
    z-index: 2;
}

.fire-archive-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.7);
}

.fire-archive-submit:disabled {
    background: #777;
    cursor: not-allowed;
    box-shadow: none;
}

/* Сообщение об ошибке/успехе */
#auth-result {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.2);
    border-left: 4px solid #ff4500;
    color: #ff4500;
    animation: shake 0.5s;
}

/* Анимация ошибок */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Анимация границы огня */
@keyframes fire-border {
    0% { box-shadow: 0 0 10px rgba(255, 69, 0, 0.5); }
    100% { box-shadow: 0 0 15px rgba(255, 69, 0, 0.8); }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .fire-archive-form {
        padding: 20px;
    }
    
    .fire-archive-form h2 {
        font-size: 1.5em;
    }
}

.page-id-23 .about-dev-container {
    background: rgba(0, 0, 0, 0.05); /* Прозрачность 60% (0.6) */
    backdrop-filter: blur(12px); /* Сохраните фильтр */
    border-radius: 15px; /* Сохраните скругление */
}


/* === Адаптация формы для мобильных === */
@media (max-width: 768px) {
    /* Уменьшаем размер формы */
    .fire-archive-form-wrapper {
        max-width: 95%;
        padding: 20px 10px;
    }

    /* Форма занимает весь экран */
    .fire-archive-form {
        padding: 20px 15px;
        border-radius: 10px;
    }

    /* Заголовок формы */
    .fire-archive-form h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    /* Поля ввода */
    .form-group input {
        font-size: 1em;
        padding: 10px 12px;
    }

    /* Чекбоксы */
    .consent-group {
        flex-direction: column;
        align-items: flex-start;
        margin: 10px 0;
    }

    /* Кнопка */
    .fire-archive-submit {
        padding: 12px;
        font-size: 1em;
    }

    /* Сообщение об ошибке */
    #auth-result {
        font-size: 0.9em;
        padding: 8px;
    }
}


/* Центрирование контейнера FAQ */
.page-id-22 .about-dev-container {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 40px 0 !important; /* Вертикальные отступы */
    box-sizing: border-box;
    overflow: hidden;
}

.page-id-22 .faq-main-container {
    width: 100%;
    max-height: 100%;
    overflow: auto;
    padding: 0 5%;
    box-sizing: border-box;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 69, 0, 0.5) transparent;
}



/* Адаптация под мобильные */
@media (max-width: 768px) {
    .page-id-22 .about-dev-container {
        padding: 20px 0 !important;
    }
    
    .page-id-22 .faq-main-container {
        padding: 0 3% !important;
    }
}

@media (max-width: 480px) {
    .page-id-22 .about-dev-container {
        padding: 10px 0 !important;
    }
    
    .page-id-22 .faq-main-container {
        padding: 0 2% !important;
    }
}