/* custom.css */

/* Jacoby ICG Black Cyrillic Font */
@font-face {
    font-family: 'Jacoby ICG Black Cyrillic';
    src: url('../fonts/JacobyICGBlackCyrillic.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Применение шрифта к названиям пунктов меню */
.fpnav__item-name {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Применение шрифта к заголовкам hero */
.hero__title,
.hero__subtitle {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}

.resources__heading-txt {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}
.resource__title {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}
.resource__content {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}
.resources__btn {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}
.help__title {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}
.help__desc {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}
.help__link {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
}
/* Применение шрифта к кнопкам в футере */
.footer__nav .menu__link {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
    letter-spacing: 0.05em;
    z-index: 1;
    font-size: 1.5em;
    color: #c4b541;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer__nav .menu__link:hover {
    color: #f3c85a;
    text-shadow: 0 0 8px rgba(255, 213, 44, 0.6);
}

/* Стили для блока с анонсом */
.resources__announcement {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
    color: #e8d1a6;
    font-size: 1rem;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #9b6635 rgba(0, 0, 0, 0.4);
}

/* Стили для скроллбара в WebKit браузерах */
.resources__announcement::-webkit-scrollbar {
    width: 0.5rem;
}

.resources__announcement::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.625rem;
}

.resources__announcement::-webkit-scrollbar-thumb {
    background: #9b6635;
    border-radius: 0.625rem;
}

.resources__announcement::-webkit-scrollbar-thumb:hover {
    background: #c29739;
}

.resources__announcement p {
    margin: 0;
}

.resources__announcement h3 {
    text-shadow: 0 0 0.625rem #ffd52c;
    font-weight: bold;
    text-transform: uppercase;
}

.resources__announcement ul {
    margin: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 840px) {
    .resources__announcement {
        font-size: 0.875rem;
        max-height: 60vh;
    }
    
    .resources__announcement h3 {
        font-size: 1.25rem !important;
    }
}

/* Цвет текста в разделе файлов */
.resource__desc,
.help__desc {
    color: #e8d1a6 !important;
}

/* Новый стиль переключателя языка */
.lang {
    position: relative;
    z-index: 36;
}

.lang::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    z-index: 35;
}

.lang_pos {
    position: absolute !important;
    right: 1.5rem !important;
    top: 1.5rem !important;
}

.lang__current {
    position: relative;
    background: linear-gradient(135deg, rgba(85, 71, 62, 0.9), rgba(42, 35, 30, 0.95));
    border: 2px solid #9b6635;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: fit-content;
}

.lang__current:hover {
    border-color: #c29739;
    box-shadow: 0 0 20px rgba(194, 151, 57, 0.5);
    transform: translateY(-2px);
}

.lang__current:after {
    display: none !important;
    background-image: none !important;
}

.lang__item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.5rem;
    text-decoration: none;
    color: #e8d1a6;
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    width: 100% !important;
    height: auto !important;
    padding: 0;
}

.lang__item:before {
    display: none !important;
}

.lang__item:after {
    display: none !important;
}

.lang__item:hover {
    color: #ffd52c;
}

.lang__flag {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: cover;
    border-radius: 0.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.lang__name {
    font-weight: bold;
    text-transform: uppercase;
}

.lang__list {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    right: 0;
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    padding-top: 0.5rem;
    z-index: 10;
}

.lang:hover .lang__list {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.lang__list .lang__item {
    background: linear-gradient(135deg, rgba(85, 71, 62, 0.95), rgba(42, 35, 30, 0.98));
    border: 2px solid #9b6635;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lang__list .lang__item:hover {
    border-color: #c29739;
    box-shadow: 0 0 20px rgba(194, 151, 57, 0.5);
    transform: translateX(5px);
    color: #ffd52c;
}

.lang__list .lang__item:hover .lang__flag {
    filter: drop-shadow(0 0 8px rgba(255, 213, 44, 0.6));
}

.lang__list:after {
    display: none !important;
}

/* Адаптация для мобильных устройств */
@media (max-width: 840px) {
    .lang_pos {
        right: 1rem !important;
        top: 1rem !important;
    }
    
    .lang__current {
        padding: 0.5rem 0.75rem;
    }
    
    .lang__item {
        font-size: 0.9rem;
    }
    
    .lang__flag {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Стили для страницы партнёров */
.partners {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10rem 0 2rem 0;
}

.partners__header {
    text-align: center;
    margin-bottom: 2rem;
}

.partners__content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 1rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: #9b6635 rgba(0, 0, 0, 0.4);
}

.partners__content::-webkit-scrollbar {
    width: 0.5rem;
}

.partners__content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.625rem;
}

.partners__content::-webkit-scrollbar-thumb {
    background: #9b6635;
    border-radius: 0.625rem;
}

.partners__content::-webkit-scrollbar-thumb:hover {
    background: #c29739;
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(100px, 150px)); /* По умолчанию 7 колонок с фиксированным размером */
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-top: 10px;
    justify-content: center; /* Центрируем сетку */
}

.partners__item {
    position: relative;
    display: block;
    background: linear-gradient(135deg, rgba(85, 71, 62, 0.6), rgba(42, 35, 30, 0.7));
    border: 2px solid #9b6635;
    border-radius: 0.5rem;
    padding: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.partners__item:hover {
    transform: translateY(-3px);
    border-color: #c29739;
    box-shadow: 0 6px 20px rgba(194, 151, 57, 0.5), 0 0 25px rgba(255, 213, 44, 0.3);
    background: linear-gradient(135deg, rgba(85, 71, 62, 0.8), rgba(42, 35, 30, 0.9));
}

.partners__item img {
    width: 100%;
    height: auto;
    min-height: 30px;
    max-height: 40px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
    filter: brightness(0.95) contrast(1.05);
}

.partners__item:hover img {
    filter: brightness(1.1) contrast(1.1) drop-shadow(0 0 10px rgba(255, 213, 44, 0.4));
}

.partners__footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(155, 102, 53, 0.5);
}

.partners__description {
    font-family: 'Jacoby ICG Black Cyrillic', var(--font-1), serif;
    color: #e8d1a6;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .partners__grid {
        gap: 0.65rem;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 840px) {
    .partners {
        padding: 1rem 0;
    }
    
    .partners__header {
        margin-bottom: 1.5rem;
    }
    
    .partners__grid {
        gap: 0.5rem;
    }
    
    .partners__item {
        padding: 0.4rem;
    }
    
    .partners__item img {
        min-height: 25px;
        max-height: 35px;
    }
    
    .partners__description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .partners__grid {
        gap: 0.4rem;
    }
    
    .partners__item {
        padding: 0.3rem;
        border-width: 1px;
    }
    
    .partners__item img {
        min-height: 20px;
        max-height: 30px;
    }
    
    .partners__description {
        font-size: 0.875rem;
    }
}

/* ============================================ */
/* ДОПОЛНИТЕЛЬНЫЙ КЛАСС ДЛЯ МОБИЛЬНОГО РЕЖИМА */
/* ============================================ */

body.mobile-layout {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.mobile-layout [data-slider="fp"] {
    height: auto !important;
    overflow: visible !important;
}

body.mobile-layout .swiper-wrapper {
    display: block !important;
    transform: none !important;
}

body.mobile-layout .fp__swiper-slide,
body.mobile-layout .swiper-slide {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.mobile-layout .fpnav {
    display: none !important;
}

body.mobile-layout [data-fp-parallax] {
    transform: none !important;
    opacity: 1 !important;
}

/* ========================================= */
/* ПОЛНАЯ ПЕРЕДЕЛКА МОБИЛЬНОГО ОТОБРАЖЕНИЯ */
/* ========================================= */

/* Для планшетов и мобильных */
@media (max-width: 840px) {
    
    /* ============================================ */
    /* КРИТИЧЕСКИ ВАЖНО: ОТКЛЮЧЕНИЕ SWIPER РЕЖИМА */
    /* ============================================ */
    
    body, html {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    
    /* Убираем всю логику Swiper слайдера */
    [data-slider="fp"] {
        height: auto !important;
        overflow: visible !important;
        display: block !important;
        position: relative !important;
    }
    
    .swiper-wrapper {
        display: block !important;
        transform: none !important;
        transition: none !important;
        height: auto !important;
        width: 100% !important;
    }
    
    .fp__swiper-slide,
    .swiper-slide {
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .fp__section,
    .section {
        height: auto !important;
        min-height: 50vh !important;
        position: relative !important;
        overflow: visible !important;
        padding: 3rem 0 !important;
    }
    
    /* Скрываем навигацию fullpage */
    .fpnav,
    [data-slider-dots="fp"],
    [data-fpnav-marker] {
        display: none !important;
    }
    
    /* Скрываем стрелки навигации */
    [data-slider-next],
    [data-slider-prev] {
        display: none !important;
    }
    
    /* ============================================ */
    /* ПОЗИЦИОНИРОВАНИЕ И СТРУКТУРА */
    /* ============================================ */
    
    /* Убираем фиксированное позиционирование */
    .fp__box {
        position: relative !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
    
    /* Контейнеры секций */
    [data-container] {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Убираем параллакс эффекты */
    [data-fp-parallax],
    [data-swiper-parallax],
    [data-swiper-parallax-y],
    [data-swiper-parallax-opacity],
    [data-swiper-parallax-scale] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* ============================================ */
    /* ФОНОВЫЕ ИЗОБРАЖЕНИЯ */
    /* ============================================ */
    
    [data-section-bg] {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        z-index: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Контент поверх фона */
    .container {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* ============================================ */
    /* КОНКРЕТНЫЕ СЕКЦИИ */
    /* ============================================ */
    
    /* Hero секция */
    .hero {
        padding: 8rem 0 4rem !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .hero__body {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Секция новостей/событий */
    .news {
        padding: 4rem 0 3rem !important;
        min-height: auto !important;
    }
    
    .news__slider,
    .news__list {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .news__swiper-slide .post {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Секция информации */
    .info {
        padding: 4rem 0 3rem !important;
        min-height: auto !important;
    }
    
    .info__body {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        transform: none !important;
    }
    
    /* Вкладки */
    .info__btns {
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-bottom: 2rem !important;
    }
    
    .info__tab {
        display: none !important;
    }
    
    .info__tab[data-tab-active="true"] {
        display: block !important;
    }
    
    /* Streams секция */
    .streams {
        padding: 4rem 0 3rem !important;
    }
    
    .streams__list {
        padding: 2rem 0 !important;
    }
    
    .streams__stream {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: all !important;
    }
    
    /* Секция партнёров */
    .partners {
        padding: 4rem 0 3rem !important;
    }

    /* Улучшенное отображение файлов на мобильных */
    .file {
        min-height: auto !important;
        padding: 1.5rem 1rem !important;
        font-size: 1rem !important;
        background: linear-gradient(135deg, rgba(60, 48, 30, 0.9) 0%, rgba(80, 64, 40, 0.95) 100%) !important;
        border: 2px solid #d4a853 !important;
        border-radius: 1rem !important;
        box-shadow: 
            0 0 1.5rem rgba(212, 168, 83, 0.4),
            inset 0 0 1rem rgba(0, 0, 0, 0.3) !important;
    }
    
    .file__content {
        font-size: 1.1rem !important;
        color: #ffeba5 !important;
        margin-bottom: 1rem !important;
    }
    
    .file__btn {
        --btn-scale: 1 !important;
        min-height: 3rem !important;
        padding: 0.75rem 1.5rem !important;
    }
    
    .files {
        gap: 1.25rem !important;
    }
    
    /* Улучшенное отображение ресурсов на мобильных */
    .resource {
        padding: 2rem 1.5rem !important;
        background: linear-gradient(135deg, rgba(60, 48, 30, 0.9) 0%, rgba(80, 64, 40, 0.95) 100%) !important;
        border: 2px solid #d4a853 !important;
        border-radius: 1rem !important;
        margin-bottom: 1.5rem !important;
        box-shadow: 
            0 0 1.5rem rgba(212, 168, 83, 0.4),
            inset 0 0 1rem rgba(0, 0, 0, 0.3) !important;
    }
    
    .resource__ico {
        width: 4rem !important;
        height: auto !important;
        margin-bottom: 1rem !important;
    }
    
    .resource__title {
        font-size: 1.5rem !important;
        color: #ffeba5 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .resource__desc {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }
    
    .resource__btn {
        --btn-scale: 1 !important;
        min-height: 3rem !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .resources__list {
        margin-top: 2rem !important;
    }
    
    .resources__resource {
        padding-bottom: 0 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .resources__resource::after {
        display: none !important;
    }
    
    /* Улучшенное отображение контента событий */
    .defcontent {
        background: linear-gradient(135deg, rgba(60, 48, 30, 0.9) 0%, rgba(80, 64, 40, 0.95) 100%) !important;
        border: 2px solid #d4a853 !important;
        border-radius: 1rem !important;
        padding: 2rem 1.5rem !important;
        box-shadow: 
            0 0 1.5rem rgba(212, 168, 83, 0.4),
            inset 0 0 1rem rgba(0, 0, 0, 0.3) !important;
    }
    
    .defcontent__subtitle {
        font-size: 0.9rem !important;
        color: #c79f47 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .defcontent__title {
        font-size: 2rem !important;
        color: #ffeba5 !important;
        margin-bottom: 1rem !important;
    }
    
    .defcontent__desc {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        color: #e8d1a6 !important;
    }
    
    .defcontent__desc strong {
        color: #ffd52c !important;
    }
    
    /* Улучшение модальных окон */
    .mdl__body {
        padding: 1.5rem !important;
    }
    
    .mdl__inner {
        background: linear-gradient(135deg, rgba(30, 24, 16, 0.98) 0%, rgba(45, 36, 25, 0.98) 100%) !important;
        border: 2px solid #d4a853 !important;
    }
    
    /* Улучшение вкладок и info блока */
    .info__btns {
        margin-bottom: 2rem !important;
        gap: 0.75rem !important;
    }
    
    .info__btns .bt {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        min-width: auto !important;
        background: linear-gradient(135deg, rgba(60, 48, 30, 0.9) 0%, rgba(80, 64, 40, 0.95) 100%) !important;
        border: 2px solid #d4a853 !important;
        box-shadow: 0 0 1rem rgba(212, 168, 83, 0.3) !important;
    }
    
    .info__btns .bt:hover,
    .info__btns .bt[data-open-tab-active="true"] {
        background: linear-gradient(135deg, rgba(80, 65, 45, 1) 0%, rgba(107, 71, 37, 1) 100%) !important;
        border-color: rgba(248, 151, 24, 0.8) !important;
        box-shadow: 0 0 1.5rem rgba(255, 213, 44, 0.6) !important;
    }
    
    .info__tab {
        min-height: 40vh !important;
    }
    
    /* Улучшение секции resources */
    .resources {
        padding: 8rem 0 3rem !important;
    }
    
    .resources__container {
        padding: 2.5rem 1.5rem !important;
        width: 95% !important;
        max-width: none !important;
        background: linear-gradient(135deg, rgba(30, 24, 16, 0.95) 0%, rgba(45, 36, 25, 0.95) 100%) !important;
        border: 2px solid #d4a853 !important;
    }
    
    .resources__heading {
        margin-bottom: 2rem !important;
    }
    
    .resources__heading-txt {
        font-size: 2rem !important;
    }
    
    /* Добавление декоративных элементов для лучшей видимости */
    .defcontent__decor {
        height: 0.25rem !important;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(212, 168, 83, 0.5) 20%, 
            rgba(212, 168, 83, 0.9) 50%, 
            rgba(212, 168, 83, 0.5) 80%, 
            transparent 100%) !important;
        margin: 1rem 0 !important;
    }
    
    /* Улучшенная видимость кнопок */
    .btn {
        background: linear-gradient(135deg, rgba(60, 48, 30, 0.9) 0%, rgba(80, 64, 40, 0.95) 100%) !important;
        border: 2px solid #d4a853 !important;
        color: #ffeba5 !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
        font-weight: 600 !important;
    }
    
    .btn:hover {
        background: linear-gradient(135deg, rgba(80, 64, 40, 1) 0%, rgba(100, 80, 50, 1) 100%) !important;
        border-color: #ffeba5 !important;
        box-shadow: 0 0 2rem rgba(255, 235, 165, 0.6) !important;
        transform: translateY(-2px) !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .file {
        padding: 1.25rem 0.875rem !important;
        font-size: 0.95rem !important;
    }
    
    .file__content {
        font-size: 1rem !important;
    }
    
    .file__btn {
        min-height: 2.75rem !important;
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .resource {
        padding: 1.75rem 1.25rem !important;
    }
    
    .resource__ico {
        width: 3.5rem !important;
    }
    
    .resource__title {
        font-size: 1.3rem !important;
    }
    
    .resource__desc {
        font-size: 0.95rem !important;
    }
    
    .resource__btn {
        min-height: 2.75rem !important;
        padding: 0.625rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .defcontent {
        padding: 1.5rem 1rem !important;
    }
    
    .defcontent__title {
        font-size: 1.75rem !important;
    }
    
    .defcontent__desc {
        font-size: 0.95rem !important;
    }
    
    .info__btns .bt {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
    
    .resources {
        padding: 6rem 0 2rem !important;
    }
    
    .resources__container {
        padding: 2rem 1rem !important;
    }
    
    .resources__heading-txt {
        font-size: 1.75rem !important;
    }
}