/* USER VARIABLES SECTION */

:root {
	--accent: #a32c30;
	--text: #333;
	--regular-text: 16px;
	--lineheight: 1.65;
	--userfont: roboto-st, sans-serif;
	--systemfont: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
	--padding: 120px;
	--transition: cubic-bezier(.4, 0, 0, 1);
}

/* BOOTSTRAP SETTINGS SECTION */

/* gutter 20px (10px + 10px). Comment this code for default gutter start at 1.5rem (24px) wide. */
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl { --bs-gutter-x: .625rem; }
.row, .row > * { --bs-gutter-x: 1.25rem; }

/* FONTS LOAD SECTION */

@font-face { src: url("../fonts/roboto-regular-webfont.woff2") format("woff2"); font-family: "roboto-st"; font-weight: 400; font-style: normal; }
@font-face { src: url("../fonts/roboto-italic-webfont.woff2") format("woff2"); font-family: "roboto-st"; font-weight: 400; font-style: italic; }
@font-face { src: url("../fonts/roboto-bold-webfont.woff2") format("woff2"); font-family: "roboto-st"; font-weight: 700; font-style: normal; }
@font-face { src: url("../fonts/roboto-bolditalic-webfont.woff2") format("woff2"); font-family: "roboto-st"; font-weight: 700; font-style: italic; }
@font-face { src: url("../fonts/assassin.woff2") format("woff2"); font-family: "assassin-st"; font-weight: 700; font-style: italic; }
@font-face { src: url("../fonts/a-monumento-demibold.woff2") format("woff2"); font-family: "monumento-st"; font-weight: 700; font-style: normal; }

/* GENERAL CSS SETTINGS */

::placeholder { color: #666; }
::selection { background-color: var(--accent); color: #fff; }
input, textarea { outline: none; }
input:focus:required:invalid, textarea:focus:required:invalid { border-color: red; }
input:required:valid, textarea:required:valid { border-color: green; }

body {
	font-family: var(--userfont);
	font-size: var(--regular-text);
	line-height: var(--lineheight);
	color: var(--text);
	min-width: 320px;
	position: relative;
	overflow-x: hidden;
	background-color: #000;
}

/* USER STYLES */

body, html {
	height: 100%;
	background-color: #000;

}


/* ОСНОВНОЙ КОНТЕЙНЕР */
.showcase {
    background-color: #000;
    height: 100vh;
    position: relative;
    color: #fff;
    overflow: hidden;
}

/* ФИКСИРОВАННЫЙ ФОН - КРИТИЧЕСКИЕ ИЗМЕНЕНИЯ */
.showcase__background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Предотвращаем пикселизацию */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.showcase__background::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
    box-shadow: inset 0 0 500px #000;
    /* Улучшаем качество рендеринга */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.showcase__background::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(../images/light.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center -65px;
    animation: k-light 3s ease-in-out infinite;
    
    /* ИСПРАВЛЕНИЯ: */
    z-index: 2; /* Увеличиваем z-index */
    transform: translateZ(0); /* Создаем новый stacking context */
    -webkit-transform: translateZ(0); /* Для Safari */
}


/* ВИДЕО ФОН и УЛУЧШЕНИЕ КАЧЕСТВА */
.showcase__video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
    
    /* Учет безопасных зон */
    top: env(safe-area-inset-top);
    left: env(safe-area-inset-left);
    width: calc(100vw - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: calc(100vh - env(safe-area-inset-top));
}

/* КОНТЕЙНЕР КОНТЕНТА */
.showcase__content-container {
    position: relative;
    height: calc(100vh - 150px); /* Вычел высоту заголовков */
    overflow-y: auto;
    z-index: 2;
    margin-top: 150px; /* Отступ сверху для заголовков */
    padding: 20px 0;
		 scrollbar-width: none;
    -ms-overflow-style: none;
}

.showcase__content-wrapper {
    position: relative;
    z-index: 3;
    min-height: auto; /* Убирал min-height: 100vh */
    padding: 0;
}


.showcase__content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url(../images/glow.png);
    /* ФИКС ДЛЯ GLOW ИЗОБРАЖЕНИЯ */
    background-size: contain; /* Меняем с cover на contain */
    background-position: center;
    background-repeat: no-repeat;
    animation: k-glow 1.6s ease-in-out infinite;
    z-index: -1;
    /* Улучшаем качество */
    image-rendering: optimizeQuality;
}
/* Стиль для главной страницы через class*/
.slider-page .showcase__content-wrapper {
	position: relative;
	z-index: 2;
	height: 100%;
	padding: var(--padding) 0;
}



/* ЗАГОЛОВКИ */
.showcase__header {
    position: fixed;
    text-align: center;
    width: 100%;
    z-index: 4;
    top: 40px;
    font-family: monumento-st, sans-serif;
    font-size: 40px;
    color: rgba(255, 255, 255, .75);
    /* Улучшаем четкость текста */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.showcase_title {
    position: fixed;
    text-align: center;
    width: 100%;
    z-index: 4;
    top: 80px;
    font-family: monumento-st, normal;
    font-size: 20px;
    color: rgba(255, 255, 255, .75);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.showcase__header span {
    color: var(--accent);
}


.showcase-carousel .swiper-wrapper {
	transition: var(--transition);
	z-index: 3;
}
.showcase-carousel__item {
	position: relative;
	height: calc(100vh - var(--padding)*2);
	text-align: center;
	opacity: .25;
	transform: scale(.75);
	transition: opacity 1.8s var(--transition), transform 1.8s var(--transition)
}
.showcase-carousel__item::after {
	content: '';
	width: 120px;
	height: 0;
	position: absolute;
	box-shadow: 0 0 45px 10px #010101;
	bottom: 5px;
	left: calc(50% - 60px);
	overflow-y: auto;
}
.showcase-carousel__item p {
	position: absolute;
	bottom: -85px;
	width: 100%;
	font-family: monumento-st, sans-serif;
	font-size: 32px;
	color: rgba(255, 255, 255, .8);
	text-shadow: rgb(58 78 94) 0 0 10px;
}
.showcase-carousel__item.swiper-slide-active {
	opacity: .8;
	transform: scale(1);
}
.showcase-carousel__image-wrapper > * {
	position: absolute;
	width: 100%;
	height: 100%;
	perspective: 150px;
	transform-style: preserve-3d;
}
.showcase-carousel__image {
	position: absolute;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
.showcase-carousel__image-left {
	perspective-origin: left center;
	clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.showcase-carousel__image-right {
	perspective-origin: right center;
	clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
	/* Фикс вертикальной полосы на некоторых дисплеях */
	margin-left: -.55px
}
.showcase-carousel__image-left .showcase-carousel__image {
	animation: k-left-side 2s ease-in-out infinite;
	animation-direction: alternate;
}
.showcase-carousel__image-right .showcase-carousel__image {
	animation: k-right-side 2s ease-in-out infinite;
	animation-direction: alternate;
}


/* NAVIGATION */

.showcase-navigation {
	overflow: hidden;
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}
.showcase-navigation > * {
	position: absolute;
	height: 100%;
	width: 50%;
	outline: none;
	cursor: pointer;
}
.showcase-navigation__next {
	right: 0;
}
.showcase-navigation > *::before {
	content: '^';
	font-family: monumento-st;
	opacity: 0.4;
	transition: opacity .75s ease-out;
	position: absolute;
	transform: rotate(-90deg);
	left: 20px;
	top: 50%;
	font-size: 75px;
}
.showcase-navigation > *:hover::before {
	opacity: 0.4;
}
.showcase-navigation__next::before {
	transform: rotate(90deg);
	right: 20px;
	left: auto;
}


/* СТИЛИ ДЛЯ СТРАНИЦЫ чапта*/
.images-2-line {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 5px auto;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
    background: none !important;
}

.image-item {
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none !important;
}

.image-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none !important;
}

/* Убираем возможные тени и overlay эффекты */
* {
    box-shadow: none !important;
    text-shadow: none !important;
}

.grid-image {
    max-width: 100%; /* Ограничиваем максимальную ширину */
    max-height: 300px; /* Ограничиваем максимальную высоту */
    width: auto; /* Сохраняем пропорции */
    height: auto; /* Сохраняем пропорции */
    display: block;
    border-radius: 8px;
		z-index: 20;
		opacity: 0.7;
}

/* Страница чапт */
.str_info {
	margin-top: 70px;
		opacity: 0.7;
		top: 100px;
		border-radius: 15px;
		float: left;
		display: block;
		margin-left: 300px;
		margin-right: auto;
		max-width: 18%;
		height:auto;
}

.str_info_junior {
display: block;
	margin-top: 70px;
		opacity: 0.7;
		top: 100px;
		border-radius: 15px;
		float: left;
		display: block;
		margin-left: 300px;
		margin-right: auto;
		max-width: 18%;
		height:auto;
}

.centered-text {
            line-height: 1.6;
            margin-top: 150px;
						font-size: 18px;
						color: rgba(255, 255, 255, .75);
						float: right;
						margin-right: 290px;
						max-width: 50%;
						text-align: center;
        }


				/* Старница история, конбедерация, лига кавказа */
.str_otdelnie {
	margin-top: 160px;
		opacity: 0.7;
		top: 100px;
		border-radius: 15px;
		float: left;
		display: block;
		margin-left: 150px;
		margin-right: 10px;
		max-width: 25%;
		height:auto;
}



				/* Копирайт */
.copyright {
            text-align: center;
            padding: 20px;
            background-color: rgba(0, 0, 0, 0.2);
            font-family: 'monumento-st', sans-serif;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(4px);
            border-radius: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            width: auto;
            margin: 40px auto;
            max-width: 300px;
        }

        
        /* Добавляем отступ для основного контента, чтобы копирайт не перекрывал его */
        .showcase__content-container {
            padding-bottom: 50px;
        }

				/* Стили для книги памяти новости календарь */
        .image-description-block {
display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px auto; /* центрирование */
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 900px; /* ограничение ширины */
    width: 90%; /* адаптивная ширина */
}
        
        .image-description-block img {
            width: 220px;
            height: 280px;
            object-fit: cover;
            border-radius: 10px;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }
        
        .description-content {
            flex: 1;
        }

	/* Кнопка читать дальше , подробнее */

	 .button-read-more {
	position: fixed;
	left: 60%;
    transform: translateX(-50%);
    background-color: transparent;
    color: #c8cccf;
    padding: 1px 24px;
    border: 1px solid #c8cccf;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    font-family: monumento-st, normal;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.button-read-more:hover {
	background-color: rgba(234,31,35, 0.4);
    transform: translateX(-50%) scale(1.05);
}
/* шильд календаря завершено-предстоящие */
.completed-badge {
position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    height: 20px;
    background-color: rgba(234,31,35, 0.3);
    color: #c8cccf;
    border: 1px solid #c8cccf;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-family: 'monumento-st', normal;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Отдельные страницы контакты и с одним лого посередине */

.dopolnitelno {
	margin-top: 40px;
	 top: 200px;
 border-radius: 15px;
	display: block;
	 margin-left: 42%;
	margin-right: auto;
		max-width: 20%;
	height: 400;
	opacity: 0.7;
}

.kontakt-block {
	display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    align-items: center;
}

.image-kontakt {
	width: 40%; /* Занимает всю ширину ссылки */
    height: auto; /* Сохраняем пропорции */
    object-fit: cover; /* Обрезаем изображение */
    border-radius: 10px; /* Скругляем углы */
		opacity: 0.7;
}


/* ANIMATIONS */

@keyframes k-light {
	0% {
		opacity: .2;
	}
	50% {
		opacity: .3;
	}
	100% {
		opacity: .2;
	}
}
@keyframes k-glow {
	0% {
		opacity: .6;
	}
	50% {
		opacity: .8;
	}
	100% {
		opacity: .6;
	}
}
@keyframes k-left-side {
	0% {
		transform: rotateY(-1deg) scaleX(.92);
	}
	100% {
		transform: rotateY(0deg) scaleX(1);
	}
}
@keyframes k-right-side {
	0% {
		transform: rotateY(0deg) scaleX(1);
	}
	100% {
		transform: rotateY(1deg) scaleX(.92);
	}
}