/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
    /* Цветовая палитра */
    --color-bg-dark: #222229;
    --color-bg-card: #1a1a1f;
    --color-primary: #9d7b51;
	--color-primary-light: #bb9765;
    --color-primary-hover: #93734c;
    --color-primary-active: #856743;
    --color-accent-green: #37bf54;
	--color-accent-green-hover: #2e9e45;
    --color-text-light: #ffffff;
    --color-text-dark: #000000;
    --color-text-muted: #afafaf;
    --color-error: #e36363;
	
    --color-btn-lk: #222229;
    --color-btn-lk-hover: #2d2d37; /* Осветленный вариант для hover */
    --color-btn-lk-active: #18181d; /* Затененный вариант для клика */

    /* Шрифты */
    --font-main: 'Montserrat-Medium', sans-serif;
    --font-heading: 'Cambria', serif;
    --font-accent: 'Roboto Slab', serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: var(--color-text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
}

a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

img {
    display: block;
    max-width: 100%;
}

div[disabled] {
    pointer-events: none;
    opacity: 0.6;
}

/* ==========================================================================
   FONTS
   ========================================================================== */
@font-face {
    font-family: 'Gotham';
    src: url('/assets/fonts/Gotham.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'Montserrat-Medium';
    src: url('/assets/fonts/Montserrat-Medium.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'Cambria';
    src: url('/assets/fonts/cambria.ttf');
    font-weight: normal;
}
@font-face {
    font-family: 'Roboto Slab';
    src: url('/assets/fonts/roboto_slab.woff2') format('woff2');
    font-weight: normal;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    background: var(--color-bg-dark);
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header_logo {
    background: url('/assets/img/logo.png') no-repeat center / cover;
    height: 40px;
    width: 40px;
    margin-left: 15px;
}

.header_items {
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    font-family: var(--font-main);
    width: 100%;
    padding: 0 20px;
}

.header_button {
    padding: 8px 16px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
}

.header_button:hover {
    color: var(--color-primary-light);
}

.header_button:active {
    color: var(--color-primary);
}

.header_button_left {
    margin-left: auto;
}

.header_hamburger {
    display: block;
    width: 30px;
    height: 30px;
    margin: 10px 15px 10px auto;
    background: url('/assets/img/menu_hamburger.png') no-repeat center;
    cursor: pointer;
}

.header_items_mini {
    display: none;
}

.header_dropdown_mini {
    position: absolute;
    top: 50px;
    right: 0;
    width: 100%;
    background: var(--color-bg-dark);
    border-top: 1px solid #333;
}

.header_button_mini {
    display: block;
    padding: 12px 20px;
    color: #fff;
    border-bottom: 1px solid #2a2a33;
}

/* ==========================================================================
   AUTHENTICATION MODAL OVERLAY
   ========================================================================== */
.header_auth {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header_auth_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.header_auth_box {
    position: relative;
    z-index: 1001;
    width: 400px;
    background: var(--color-bg-dark);
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.8);
    border: 1px solid #333;
}

.header_auth_close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.header_auth_close:hover {
    color: #fff;
}

.form_header {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    font-family: var(--font-heading);
}

.form_text {
    color: #ccc;
    font-size: 13px;
    margin-top: 10px;
}

.form_input_field {
    width: 100%;
    height: 30px;
    padding: 0 12px;
    background-color: #fff;
    border: none;
    margin: 6px 0;
    font-size: 14px;
    outline: none;
    transition: background 0.2s ease;
}

.form_agreement {
	color: #ccc;
	font-size: 12px;
}

.registerpage_href {
	color: #fff;
	text-decoration: underline;
}

.form_input_field:focus {
    background-color: #e0e0e0;
}

.form_button {
    background: var(--color-primary);
    height: 30px;
    width: 100%;
    margin-top: 15px;
    border: none;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    font-family: var(--font-main);
    transition: background 0.2s ease;
}

.form_button:hover {
    background: var(--color-primary-hover);
}

.form_restore_lowbar {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
}

.form_restore_btn {
    color: #aaa;
    cursor: pointer;
    margin: 6px 0;
}

.form_restore_btn:hover {
    color: #fff;
}

/* Ноnеypоt */
.auth_hp_box {
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   MAIN PAGE / LANDING
   ========================================================================== */
.body_main {
    overflow: hidden;
    position: relative;
	height: calc(100vh - 50px);
	height: calc(100svh - 50px);
    max-height: 884px;
    width: 100%;
	background-color: #000;
}

/* Статичный постер */
.body_main_poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/video/background_video.webp') no-repeat center / cover;
    z-index: 1;
}
.body_main_poster_logo {
	max-width: 1380px;
    width: 100%;
    height: 100%;
	margin: auto;
	background: url('/assets/img/logo_text.webp') no-repeat center / 100% auto;
}

/* Видео (на ПК появится поверх постера только после загрузки) */
.body_main_video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.body_main_video.video-playing {
    opacity: 1;
}

.body_main_shadow {
    height: 77px;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,1) 100%);
    position: absolute;
    bottom: 0;
    z-index: 3;
}

.body_main_play {
    position: absolute;
    bottom: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 332px;
    height: 89px;
    background: url('/assets/img/playbutton.png') no-repeat center / contain;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 46px;
    color: #392c27;
    font-family: var(--font-accent, "Roboto Slab", serif);
    cursor: pointer;
    user-select: none;
    transition: filter 0.2s ease, transform 0.1s ease;
    z-index: 10;
}

.body_main_play_left {
    position: absolute;
    top: 0;
    left: -30px;
    width: 60px;
    height: 89px;
    background: url('/assets/img/playbutton left.png') no-repeat center / contain;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.body_main_play_right {
    position: absolute;
    top: 0;
    right: -30px;
    width: 60px;
    height: 89px;
    background: url('/assets/img/playbutton right.png') no-repeat center / contain;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.body_main_play:hover {
    filter: brightness(115%);
}

.body_main_play:hover .body_main_play_left {
    transform: translateX(-6px);
}

.body_main_play:hover .body_main_play_right {
    transform: translateX(6px);
}

.body_main_play:active {
    transform: translateX(-50%) scale(0.98);
    filter: brightness(90%);
}

.body_block1, .body_block2, .body_block3 {
	max-height: 768px;
	height: calc(100vh - 50px);
    height: calc(100svh - 50px);
    background-position: center;
    background-repeat: no-repeat;
}

/* --- ПЕРВАЯ СЕКЦИЯ С ФОНОМ --- */
/*.body_block1 {
    background-image: linear-gradient(360deg, #000 0%, rgba(0,0,0,0.25) 5%, transparent 10%, transparent 90%, rgba(0,0,0,0.25) 95%, #000 100%), url('/assets/img/main_img1.webp');
    display: flex;
    justify-content: flex-start;
    overflow: hidden; 
    width: 100%;
    position: relative;
    
    view-timeline: --section1-timeline block;
}*/

/* --- ВТОРАЯ СЕКЦИЯ С ФОНОМ --- */
/*.body_block2 {
    background-image: linear-gradient(360deg, #000 0%, rgba(0,0,0,0.25) 5%, transparent 10%, transparent 90%, rgba(0,0,0,0.25) 95%, #000 100%), url('/assets/img/main_img2.webp');
    display: flex;
    justify-content: flex-end;
    overflow: hidden; 
    width: 100%;
    position: relative;
    
    view-timeline: --section2-timeline block;
}*/

/* --- ПЕРВАЯ СЕКЦИЯ С ФОНОМ --- */
.body_block1 {
    background-image: url('/assets/img/main_img1.webp');
    display: flex;
    justify-content: flex-start;
    overflow: hidden; 
    width: 100%;
    position: relative;
    
    /* ВКЛЮЧАЕМ ЧИСТЫЙ CSS ПАРАЛЛАКС: */
    background-attachment: fixed;
    background-position: center;  
    background-size: cover;    
    
    /* Сохраняем ваши рабочие таймлайны для выезда плашек */
    view-timeline: --section1-timeline block;
	
	clip-path: polygon(0% 12%, 100% 4%, 92% 96%, 0% 88%);
}

/* --- ВТОРАЯ СЕКЦИЯ С ФОНОМ --- */
.body_block3 {
    background-image: url('/assets/img/main_img3.webp');
    display: flex;
    justify-content: space-between;
    overflow: hidden; 
    width: 100%;
    position: relative;
    
    /* ВКЛЮЧАЕМ ЧИСТЫЙ CSS ПАРАЛЛАКС: */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    
    /* Сохраняем таймлайн для второй плашки */
    view-timeline: --section3-timeline block;
	
	clip-path: polygon(0% 4%, 100% 12%, 100% 88%, 0% 96%);
	
	align-items: center;
}

.body_block_box1 {
    width: 340px;
    height: 100%; /* Заменяем height: 0 на нормальную высоту */
    background-color: rgba(34, 34, 41, 0.816); /* Возвращаем ваш цвет фона */
    
    /* Флексбокс для красивого выравнивания текста внутри */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Паддинги: делаем отступ справа побольше (например, 75px), */
    /* так как правый верхний угол теперь срезан */
    padding: 15px 75px 20px 20px; 
    
    /* Зеркальный clip-path: срезаем верхний правый угол */
    /* Координаты: (0% 0%), (X 0%) — где X это (ширина блока минус срез), т.е. 100% - 100px */
    clip-path: polygon(0% 0%, calc(100% - 100px) 0%, 100% 100%, 0% 100%);
    
    /* Ваши оригинальные анимации без изменений */
    animation-name: slideFromLeft;
    animation-timeline: --section1-timeline;
    animation-range: entry 0% entry 70%;
    animation-fill-mode: both;
	
	transition: width 0.3s ease-in-out; 
}

.body_block_box1:hover {
    width: 360px;
}

/* --- ТРЕТИЙ БЛОК (ВЫЕЗЖАЕТ СПРАВА) --- */
/*.body_block_box3 {
  border-bottom: 670px solid #222229d0;
  border-left: 100px solid transparent;
  width: 340px;
  height: 0;
  padding-top: 50px;
  
  animation-name: slideFromRight;
  animation-timeline: --section3-timeline;
  animation-range: entry 0% entry 70%; 
  animation-fill-mode: both;
}*/
.body_block_box3 {
    width: 340px;
    height: 100%;
	padding: 15px 20px 20px 75px;
	display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222229d0;
    clip-path: polygon(100px 0%, 100% 0%, 100% 100%, 0% 100%);
    animation-name: slideFromRight;
    animation-timeline: --section3-timeline;
    animation-range: entry 0% entry 70%;
    animation-fill-mode: both;
	transition: width 0.3s ease-in-out; 
}

.body_block_box3:hover {
    width: 360px;
}

/* --- ОПИСАНИЕ АНИМАЦИЙ (остается прежним) --- */
@keyframes slideFromLeft {
  from {
    opacity: 0;
    transform: translateX(-340px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  from {
    opacity: 0;
    transform: translateX(340px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.body_block_box_text {
	width: 245px; 
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    
    /* Убираем 234px. Делаем аккуратные внутренние отступы */
    /* Слева даем 40px, чтобы текст не заезжал под скос плашки */
    padding: 20px; 
    
    /* 1. Назначаем анимацию проявления текста */
    animation-name: fadeInText;
    animation-fill-mode: both;
}

/* Привязываем текст из ПЕРВОЙ секции к её таймлайну */
.body_block1 .body_block_box_text {
    animation-timeline: --section1-timeline;
    /* НАСТРОЙКА: Плашка заканчивает въезд на entry 50%. 
       Текст начнет плавно проявляться с 50% и станет полностью видимым на 80% */
    animation-range: entry 65% entry 95%;
}

/* Привязываем текст из ВТОРОЙ секции к её таймлайну */
.body_block3 .body_block_box_text {
    animation-timeline: --section3-timeline;
    /* Точно такие же настройки, но для второй секции */
    animation-range: entry 65% entry 95%;
}

/* --- АНИМАЦИЯ ДЛЯ ТЕКСТА --- */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px); /* Текст изначально скрыт и чуть опущен вниз для красоты */
  }
  to {
    opacity: 1;
    transform: translateY(0);    /* Плавно встает на свое место */
  }
}

/* --- ВТОРОЙ БЛОК (КАРТОЧКИ) --- */

/* --- ВТОРАЯ СЕКЦИЯ С ФОНОМ --- */
.body_block2 {
    background-image: linear-gradient(360deg, #000 0%, rgba(0,0,0,0.25) 5%, transparent 10%, transparent 90%, rgba(0,0,0,0.25) 95%, #000 100%), url('/assets/img/main_img2.webp');
	padding: 60px 20px;
    display: flex;
    justify-content: center;
    overflow: hidden; 
    width: 100%;
    position: relative;
	min-height: max-content;
    
    /* ВКЛЮЧАЕМ ЧИСТЫЙ CSS ПАРАЛЛАКС: */
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    
    /* Сохраняем таймлайн для второй плашки */
    view-timeline: --section2-timeline block;
	
	
}

/* Контейнер для центрирования и ограничения ширины */
.body_block_box2 {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Современный способ делать отступы между колонками */
    width: 100%;
    max-width: 1200px; /* Чтобы блоки не растягивались слишком сильно */
    margin: 0 auto;
    padding: 0;
    align-items: flex-end; /* Опускает карточки к нижней части экрана */
	margin-top: auto;
}

/* Стили карточек преимуществ */
.body_block_box_frame {
    flex: 1; /* Все карточки будут одинаковой ширины */
	height: 200px;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.75) 0%, rgba(10, 10, 12, 0.9) 100%);
    backdrop-filter: blur(4px); /* Эффект размытия стекла за карточкой */
	border: 1px solid #9d7b5177;
    color: #e0e0e0;
    font-family: var(--font-heading), sans-serif;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; 
}

/* 1. Создаем ключевые кадры для всплытия карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Начальное состояние карточек: они скрыты и опущены */
.body_block_box_frame {
    opacity: 0;
    transform: translateY(40px);
    
    /* Анимируем появление (всплытие) */
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.6s ease;
}

/* Эффект наведения (Hover) — оставляем его независимым */
.body_block_box_frame:not(.active):hover {
    /* Не активен ховер, пока идет появление */
}
.body_block_box_frame.active:hover {
    transform: translateY(-5px);
    border-color: #bb9765aa;
    box-shadow: 0 15px 35px #bb976520;
    background: linear-gradient(180deg, rgba(25, 25, 32, 0.85) 0%, rgba(15, 15, 18, 0.95) 100%);
    /* Для ховера используем быстрое время */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

/* Класс, который включит анимацию */
.body_block_box_frame.active {
    opacity: 1;
    transform: translateY(0);
}

/* Эффект домино: задаем независимую задержку во времени (секундах) */
.body_block_box_frame:nth-child(1) { transition-delay: 0s; }
.body_block_box_frame:nth-child(2) { transition-delay: 0.15s; }
.body_block_box_frame:nth-child(3) { transition-delay: 0.3s; }
.body_block_box_frame:nth-child(4) { transition-delay: 0.45s; }

/* Стили заголовков внутри карточек */
.body_block_box_frame h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #9d7b5177; /* Линия под заголовком */
    padding-bottom: 8px;
}

/* Стили описания */
.body_block_box_frame p {
	font-family: var(--font-main);
    font-size: 13px;
    line-height: 1.5;
    color: #b0b0b5;
    margin: 0;
}

/* Эффект при наведении мыши (Hover) */
.body_block_box_frame:hover {
    transform: translateY(-5px); /* Карточка слегка приподнимается */
    border-color: #bb9765aa; /* Рамка становится ярко-золотой */
    box-shadow: 0 15px 35px #bb976520; /* Мягкое золотое свечение снизу */
    background: linear-gradient(180deg, rgba(25, 25, 32, 0.85) 0%, rgba(15, 15, 18, 0.95) 100%);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
	.body_block1, .body_block2, .body_block3 {
        background-attachment: scroll;
        background-position: center center;
    }
	.body_block1 {
	    clip-path: none;
	}
	.body_block2 {
        height: auto;
        max-height: none;
        min-height: unset;
        padding: 60px 16px;
        
        /* СТАБИЛИЗАЦИЯ ФОНА: убираем fixed-параллакс, который дергал фон при скролле */
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
	
	/* 2. Контейнер: центрируем колонку и убираем прыгающий margin-top: auto */
    .body_block_box2 {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 0;
        width: 100%;
        max-width: 500px;
		padding: 20px;
    }
	
	    /* 3. Карточки: фиксированная высота 200px заменяется на авто-высоту по тексту */
    .body_block_box_frame {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: unset;
        padding: 24px 20px;
        
        /* На смартфонах карточки статичны и не сдвигают скролл анимацией translateY */
        opacity: 1;
        transform: none;
        transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    }
	
	/* Отключаем задержки домино на мобильных */
    .body_block_box_frame:nth-child(1),
    .body_block_box_frame:nth-child(2),
    .body_block_box_frame:nth-child(3),
    .body_block_box_frame:nth-child(4) {
        transition-delay: 0s;
    }

}

/* ==========================================================================
   FOOTER & SITEMAP
   ========================================================================== */
.footer {
    background: linear-gradient(360deg, #000 0%, rgba(0,0,0,0.25) 5%, transparent 10%, transparent 90%, rgba(0,0,0,0.25) 95%, #000 100%), var(--color-bg-dark);
}

.sitemap {
    display: flex;
    justify-content: space-between;
    padding: 40px 25px 20px 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.sitemap_col {
    display: flex;
    flex-direction: column;
    min-width: 190px;
}

.sitemap_haeader {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #fff;
    padding: 8px 0;
}

.sitemap_text {
    font-size: 14px;
    color: #ccc;
    padding: 4px 0;
}

.sitemap_link:hover {
    color: #fff;
}

.footer_inner {
    padding: 10px 25px 30px 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer_inner_block {
    display: flex;
    align-items: center;
}

.footer_inner_img {
    background: url('/assets/img/logo.png') no-repeat center / contain;
    height: 50px;
    min-width: 50px;
    margin-right: 15px;
}

.footer_inner_text {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1000px) {
    .header_items { display: none; }
    .header_items_mini { display: flex; }
}

@media (max-width: 760px) {
    .sitemap { flex-direction: column; }
    .sitemap_col { margin-bottom: 20px; }
}

/* ==========================================================================
   СТРАНИЦА ПРАВИЛ И ПОЛЬЗОВАТЕЛЬСКОГО СОГЛАШЕНИЯ
   ========================================================================== */

.rules_wrapper {
    min-height: calc(100vh - 313px);
	background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
        url('/assets/img/main_img3.webp'), 
        radial-gradient(circle at 50% 15%, #222229 0%, #0d0d11 75%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px 60px 20px;
    box-sizing: border-box;
}

.rules_container {
    max-width: 960px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid #333;
    padding: 35px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border-radius: 0;
}

@media (max-width: 768px) {
    .rules_container {
        padding: 20px;
    }
}

.rules_header_title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary-light, #bb9765);
    margin-bottom: 8px;
    text-align: center;
}

.rules_header_subtitle {
    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

/* Навигация по разделам (Оглавление) */
.rules_nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #111115;
    padding: 12px;
    border: 1px solid #282830;
    margin-bottom: 30px;
    border-radius: 0;
}

.rules_nav_link {
    font-size: 12px;
    color: #aaa;
    background: var(--color-bg-card);
    border: 1px solid #333;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
}

.rules_nav_link:hover {
    color: #fff;
    border-color: var(--color-primary, #9d7b51);
    background: #25252e;
}

/* Секции правил */
.rules_section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #282830;
}
.rules_section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rules_sec_title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules_sec_title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--color-primary, #9d7b51);
}

.rules_item {
    font-size: 13.5px;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.rules_item::before {
    content: "▪";
    position: absolute;
    left: 0;
    top: -1px;
    color: var(--color-primary, #9d7b51);
}

/* Выделительные информационные плашки (Callout) */
.rules_callout {
    background: #151518;
    border: 1px solid #333;
    border-left: 4px solid var(--color-primary, #9d7b51);
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 13px;
    color: #ddd;
    line-height: 1.5;
    border-radius: 0;
}

.rules_callout_warn {
    border-left-color: #e67e22;
    background: #1f1812;
    color: #f39c12;
}

.rules_callout_danger {
    border-left-color: var(--color-error, #e74c3c);
    background: #241414;
    color: #e74c3c;
}

/* Бейджи наказаний */
.rules_punish_badge {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 0;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.punish_mute { background: #2c2514; color: #f1c40f; border: 1px solid #f39c12; }
.punish_ban  { background: #2c1616; color: #e74c3c; border: 1px solid #c0392b; }
.punish_perm { background: #401010; color: #ff5555; border: 1px solid #e74c3c; }

/* ==========================================================================
   СТРАНИЦА СКАЧИВАНИЯ КЛИЕНТА (СТРОГО 0 BORDER-RADIUS)
   ========================================================================== */

.download_wrapper {
	min-height: calc(100vh - 313px);
	background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
        url('/assets/img/main_img3.webp'), 
        radial-gradient(circle at 50% 15%, #222229 0%, #0d0d11 75%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 20px 60px 20px;
    box-sizing: border-box;
}

.download_container {
    max-width: 1050px;
    margin: 0 auto;
    background: var(--color-bg-dark);
    border: 1px solid #333;
    padding: 35px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border-radius: 0;
}

.download_header {
    text-align: center;
    margin-bottom: 35px;
}

.download_title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--color-primary-light, #bb9765);
    margin-bottom: 10px;
}

.download_meta_bar {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background: var(--color-bg-card);
    border: 1px solid #333;
    padding: 8px 18px;
    font-size: 13px;
    color: #aaa;
    border-radius: 0;
}

.download_meta_bar b {
    color: #fff;
}

/* Сетка карточек загрузки (автоматически 1, 2 или 3 колонки) */
.download_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.download_card {
    background: var(--color-bg-card);
    border: 1px solid #333;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download_card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary, #9d7b51);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.download_badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--color-primary, #9d7b51);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 8px;
    letter-spacing: 0.5px;
    border-radius: 0;
}

.download_card_name {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.download_card_desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 25px;
    flex: 1;
}

.download_btn {
    background: var(--color-accent-green, #37bf54);
    color: #fff;
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    border-radius: 0;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
}

.download_btn:hover {
    background: var(--color-accent-green-hover, #2e9e45);
    color: #fff;
}

/* Двухколоночный блок полезной информации */
.download_info_grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
}

@media (max-width: 850px) {
    .download_info_grid {
        grid-template-columns: 1fr;
    }
}

.download_info_box {
    background: #1a1a1f;
    border: 1px solid #333;
    padding: 25px;
    border-radius: 0;
}

.download_info_title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download_info_title::before {
    content: "";
    width: 3px;
    height: 16px;
    background: var(--color-primary, #9d7b51);
    display: inline-block;
}

/* Пошаговая инструкция */
.install_steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.install_step_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: #ccc;
    line-height: 1.5;
}

.install_step_num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: #111115;
    border: 1px solid #444;
    color: var(--color-primary-light, #bb9765);
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

/* Блок решения проблем (Редистрибьюторы) */
.troubleshoot_btn_group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.troubleshoot_link {
    background: #111115;
    border: 1px solid #333;
    color: #ccc;
    padding: 10px 14px;
    font-size: 12.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    border-radius: 0;
}

.troubleshoot_link:hover {
    border-color: var(--color-primary, #9d7b51);
    color: #fff;
    background: #16161b;
}

.troubleshoot_link span {
    color: var(--color-primary-light, #bb9765);
    font-weight: bold;
}





.game-classes-section {
  display: flex;
  gap: 40px;
  background: #121214;
  padding: 40px;
  font-family: sans-serif;
  color: #fff;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Левый инфо-блок */
.info-block {
    flex: 1;
    min-width: 320px;
    max-width: 700px;
    margin: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid #b8860b;
    padding: 30px;
    height: 230px;
	min-height: min-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 5;
    background: linear-gradient(180deg, rgba(20, 20, 25, 0.75) 0%, rgba(10, 10, 12, 0.9) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.info-block:hover {
    box-shadow: 0 15px 35px #bb976520;
	background: linear-gradient(180deg, rgba(25, 25, 32, 0.85) 0%, rgba(15, 15, 18, 0.95) 100%);
}

.info-content { display: none; position: relative; }
.info-content.active { display: flex; flex-direction: column; height: 100%; }
.info-content h2 { color: #fff; font-size: 20px; font-weight: 600; margin: 0 0 12px 0; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #9d7b5177; padding-bottom: 8px; }
.info-content p { font-family: var(--font-main); font-size: 13px; line-height: 1.5; color: #b0b0b5; margin: 0 0 20px 0;}

/* Кнопки управления */
.btn { padding: 10px 22px; border: none; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.btn-main { width: 256px; margin-top: auto; background: var(--color-primary-light); color: #121214; font-family: var(--font-main); font-size: 18px; }
.btn-main:hover { background: var(--color-primary); }
.btn-main:active { background: var(--color-primary-active); }
.controls-nav { display: flex; gap: 10px; position: absolute; top: -2px; right: 0; }
.btn-nav { flex: 1; border: none; color: #fff; cursor: pointer; width: 30px; height: 30px; background: var(--color-bg-card); }
.btn-nav:hover { background: #3a3a42; }

/* Правый контейнер */
.carousel-arc-container {
  position: relative;
  padding: 0 20px 0 0;
  width: 250px;
  height: 600px;
  display: flex;
  align-items: center;
}

/* Затемненный фон по форме макета */
.arc-background {
	position: absolute;
    right: -660px;
    top: 50%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    background: #222229d0;
    backdrop-filter: blur(8px);
    border-radius: 50%;
    /* border-left: 2px solid rgba(255, 179, 0, 0.15); */
    z-index: 1;
    pointer-events: none;
}

.arc-track {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Карточка иконки (Не крутится, всегда вертикальна) */
.arc-item {
  position: absolute;
  width: 54px;
  height: 54px;
  /* Изначально выставляем в правую центральную точку трека */
  right: 40px;
  top: calc(50% - 27px);
  box-sizing: border-box;
  border-radius: 50%; /* Круглая аккуратная рамка как на скриншоте */
  border: 2px solid transparent;
  cursor: pointer;
  
  /* Плавный полет по координатам X и Y */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
              opacity 0.5s ease, 
              border-color 0.3s, 
              box-shadow 0.3s;
  
  opacity: 0;
  pointer-events: none;
}

/* Видимые на экране элементы */
.arc-item.visible {
  opacity: 1;
  pointer-events: auto;
}

.arc-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  border-color: var(--color-primary-hover);
}

/* Активный класс с золотым кольцом */
.arc-item.selected {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 15px rgba(255, 179, 0, 0.4);
}

/* Иконки из вертикального веб-спрайта */
.class-sprite {
  width: 40px;
  height: 40px;
  margin: 5px auto;
  background-image: url('/assets/img/classes_img.webp');
  background-repeat: no-repeat;
  background-size: 40px 400px;
}
.class-sprite[data-icon="0"] { background-position: 0 0; }
.class-sprite[data-icon="1"] { background-position: 0 -40px; }
.class-sprite[data-icon="2"] { background-position: 0 -80px; }
.class-sprite[data-icon="3"] { background-position: 0 -120px; }
.class-sprite[data-icon="4"] { background-position: 0 -160px; }
.class-sprite[data-icon="5"] { background-position: 0 -200px; }
.class-sprite[data-icon="6"] { background-position: 0 -240px; }
.class-sprite[data-icon="7"] { background-position: 0 -280px; }
.class-sprite[data-icon="8"] { background-position: 0 -320px; }
.class-sprite[data-icon="9"] { background-position: 0 -360px; }


@media (max-width: 920px) {
	.info-block {
		height: 250px;
	}
}

@media (max-width: 810px) {
	.info-block {
		height: 270px;
	}
}

@media (max-width: 768px) {
	.body_main_video {
        display: none !important; 
    }
	
	.body_main_play {
        bottom: 35px;
        transform: translateX(-50%) scale(0.85);
    }
	
    /* Перестраиваем секцию в колонку */
    .body_block3 {
        flex-direction: column;
        align-items: stretch;
        background-attachment: scroll;
        clip-path: none;
        padding: 20px;
    }

    /* Контейнер карусели – сверху, без фиксированных размеров */
    .carousel-arc-container {
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible; /* важно – не обрезаем содержимое */
        order: -1;
    }

    /* Скрываем декоративный полукруг */
    .arc-background {
        display: none;
    }

    /* Горизонтальный ряд иконок с прокруткой */
    .arc-track {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        padding: 10px 16px;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .arc-track::-webkit-scrollbar {
        display: none;
    }
	
    /* Сброс позиционирования иконок – все видны всегда */
    .arc-item {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-shrink: 0;
        width: 54px;
        height: 54px;
        margin: 0;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        bottom: auto !important;
    }

    /* Класс visible больше не нужен – все видны */
    .arc-item.visible {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Информационный блок – на всю ширину, без отступов */
    .info-block {
        min-width: unset;
        max-width: unset;
        width: 100%;
        margin: 20px 0 0 0;
        max-height: 230px;
        padding: 20px;
        border-left-width: 3px; /* сохраняем акцент */
    }

    /* Если внутри есть кнопка .btn-main – адаптируем её */
    .btn-main {
        margin: auto auto 0 auto;
    }
}