@import 'https://fonts.googleapis.com/css?family=Tektur';

body {
	font-family: "Tektur";
		background-color: black;
	user-select: none;
}

:root {
	--content-width: 650px;
}

.blockTitle {
	display: flex;
	margin: 0 auto;
	align-items: center;
	width: var(--content-width);
}

.blockTitle .leftLine,
.blockTitle .rightLine {
	flex-grow: 1;
	height: 2px;
	border: none;
}

.blockTitle .leftLine {
	background: linear-gradient(
		to right,
		rgba(190, 45, 50, 0),
		rgba(190, 45, 50, .7)
	);
}

.blockTitle .rightLine {
	background: linear-gradient(
		to right,
		rgba(190, 45, 50, .7),
		rgba(190, 45, 50, 0)
	);
}

.blockTitle .text {
	margin: 0 10px;
	color: rgb(140, 140, 140);
	font-size: calc(1.25rem + .6vmin);
	font-weight: bold;
	text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(100, 20, 25, .3);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(190, 45, 50, .8), rgba(255, 100, 100, .8));
    transition: width 0.1s ease-in-out;
    box-shadow: 0 0 10px rgba(190, 45, 50, .8);
}

/* Панель навигации */
#navBar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	z-index: 999;
	top: 0;
	width: 100%;
	border-bottom: 2px solid rgb(100, 20, 25);
	background: linear-gradient(
		to bottom,
		rgba(25, 25, 25, .8) 0%,
		rgba(20, 20, 20, .8) 50%,
		rgba(15, 15, 15, .8) 51%,
		rgba(10, 10, 10, .8) 100%
	);
	box-shadow: 0 4px 15px rgba(0, 0, 0, .5);
	backdrop-filter: blur(6px);
}

#navBar > .navLogo {
	opacity: 0;
	transition: opacity .7s;
}

#navBar > .navLogo > img {
	display: block;
	width: calc(32px + .8vmin);
	height: calc(32px + .8vmin);
	margin: auto 15px;
}

#navBar > .navMenu {
	display: flex;
	font-size: calc(0.65rem + .8vmin);
}

#navBar > .navMenu > a {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: auto;
	padding: 10px 12px;
	color: rgb(140, 140, 140);
	text-transform: uppercase;
	font-weight: bold;
	/* color: rgb(206, 192, 151); Желтый цвет с логотипа */
	text-decoration: none;
	border-bottom: none;
	cursor: pointer;
	transition:
		background .35s ease-in-out,
		color .35s ease-in-out; /* Добавляем плавность переходов */
	text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

#navBar > .navMenu > a:hover {
	color: rgb(175, 175, 175);
	border-bottom: none;
	background: linear-gradient(
		to bottom,
		rgba(35, 35, 35, .6) 0%,
		rgba(30, 30, 30, .6) 50%,
		rgba(25, 25, 25, .6) 51%,
		rgba(20, 20, 20, .6) 100%
	);
}

#navBar > .navMenu > a.active {
	z-index: 1;
	color: rgb(200, 200, 200);
	border-bottom: none;
	background: linear-gradient(
		to bottom,
		rgb(190, 45, 50) 0%,
		rgb(150, 35, 40) 50%,
		rgb(140, 30, 35) 51%,
		rgb(100, 20, 25) 100%
	);
	box-shadow: 0 0px 10px 3px rgb(100, 20, 25);
	cursor: default;
}

#navLang {
	margin: auto 15px;
	font-size: calc(.8rem + .8vmin);
	user-select: none;
}

/* Шапка с логотипами */
.kfLogo > img {
	display: block;
	width: calc(400px + 40vmin);
	height: 100%;
	margin: 70px auto 0px;
	animation: kfLogo 2.5s infinite; /* Скорость анимации логотипа */
}

@keyframes kfLogo {
	0% { opacity: .7; transform: scale(.98); }
	50% { opacity: 1; transform: scale(1); }
	100% { opacity: .7; transform: scale(.98); }
}

.kfProLogo > img {
	display: block;
	width: calc(200px + 20vmin);
	height: 100%;
	margin: -30px auto 40px;
}

/* Многослойный фон */
#bgLayers {
	position: fixed;
	z-index: -1;
	top: 0;
	width: 100vw;
	perspective: 1000px;
	overflow: hidden;
}

#bgLayers > .container {
	height: 100vh;
	min-height: 500px;
	transform-style: preserve-3d;
	transition: transform 1.5s cubic-bezier(.05, .5, 0, 1);
	will-change: transform;
}

#bgLayers > .container > .item {
	display: flex;
	justify-content: center;
	position: fixed;
	inset: -5vw;
		background-size: cover;
		background-position: center;
}

#bgLayers > .container > .layer-1 {
	transform: translateZ(-55px) scale(1.06);
		background-image: url("../img/layer-1.avif");
}

#bgLayers > .container > .layer-2 {
	transform: translateZ(80px) scale(.88);
		background-image: url("../img/layer-2.webp");
}

/* Глобальный счётчик убийств — простой, как у других блоков */
#totalKills {
	display: block;
	margin: -15px auto 50px;
	text-align: center;
	width: var(--content-width);
}

.totalKills-number {
	font-size: 6rem;
	font-weight: bold;
	color: rgba(190, 45, 50, .8);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 15px rgba(190, 45, 50, .4);
	animation: kfPulse 2.5s infinite;
	line-height: 1;
}

@keyframes kfPulse {
	0% { text-shadow: 0 0 15px rgba(190, 45, 50, .4); }
	50% { text-shadow: 0 0 30px rgba(190, 45, 50, .7); }
	100% { text-shadow: 0 0 15px rgba(190, 45, 50, .4); }
}

.totalKills-label {
	font-size: 1.2rem;
	font-weight: bold;
	color: rgba(190, 190, 190, .8);
	text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

/* Секции с контентом */
.content-section {
	width: var(--content-width);
	margin: 3vmin auto;
	padding: 10px;
	border-radius: 6px;
	background: linear-gradient(145deg, rgba(7, 7, 7, 1), rgba(2, 2, 2, .5));
	backdrop-filter: blur(2px);
	scroll-margin-top: 90px; /* Отступ для якорных ссылок */
	box-sizing: border-box;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
	border: 1px solid rgba(100, 20, 25, .3);
	transition:
		transform .3s ease-in-out,
		box-shadow .3s ease-in-out;
}

/* Галерея */
#gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	justify-items: center;
}

#gallery .thumbnail {
	width: 100%;
	height: 120px;
	object-fit: cover;
	cursor: pointer;
	border-radius: 6px;
	border: 2px solid rgba(100, 20, 25, .3);
	transition: all .3s ease-in-out;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

#gallery .thumbnail:hover {
	transform: translateY(-5px) scale(1.07);
	border-color: rgba(190, 45, 50, .8);
	box-shadow: 0 4px 15px rgba(190, 45, 50, .4);
}

/* Полноэкранный просмотр */
#fullscreen-image-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, .95);
	z-index: 10000;
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: all .3s ease-in-out;
}

#fullscreen-image-container.fullscreen-visible {
	opacity: 1;
	visibility: visible;
}

#fullscreen-image-container.fullscreen-hidden {
	display: none;
}

#fullscreen-image {
	max-width: 95vw;
	max-height: 95vh;
	object-fit: contain;
	border-radius: 8px;
	border: 2px solid rgba(190, 45, 50, .3);
	box-shadow: 0 0 15px rgba(190, 45, 50, .4);
}

.close-button {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 2.5rem;
	color: rgb(140, 140, 140);
	cursor: pointer;
	background: none;
	border: none;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .3s ease-in-out;
	z-index: 10001;
}

.close-button:hover {
	color: rgb(190, 45, 50);
	transform: scale(1.1);
}

.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(190, 45, 50, .8);
	border: none;
	color: white;
	font-size: 2rem;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .3s ease-in-out;
	z-index: 10001;
	box-shadow: 0 0 5px rgba(0, 0, 0, .5);
}

.arrow:hover {
	background: rgb(190, 45, 50);
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 0 10px rgba(190, 45, 50, .8);
}

.prev {
	left: 30px;
}

.next {
	right: 30px;
}

.image-counter {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 1.25rem;
	background: rgba(0, 0, 0, .7);
	padding: 10px 20px;
	border-radius: 25px;
	z-index: 10001;
	border: 1px solid rgba(190, 45, 50, .5);
}

/* Информация о сервере */
#serverInfo {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
	position: relative;
	text-align: center;
}

#serverInfo > .col {
	padding: 15px 10px;
	color: rgb(140, 140, 140);
	font-size: calc(0.8rem + .6vmin);
	text-transform: uppercase;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	border-radius: 6px;
	cursor: pointer;
	background: rgba(100, 20, 25, .1);
	border: 1px solid rgba(100, 20, 25, .2);
	transition: all 0.3s ease-in-out;
	box-shadow: 0 2px 15px rgba(0, 0, 0, .3);
}

#serverInfo > .col:hover {
	background: rgba(190, 45, 50, .1);
	border-color: rgba(190, 45, 50, .4);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(190, 45, 50, .2);
}

#serverInfo .col.active {
	cursor: default;
    background: rgba(190, 45, 50, .2);
    border-color: rgba(190, 45, 50, .9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(190, 45, 50, .5);
}

#serverInfo > .col > i {
	color: rgb(190, 45, 50);
	font-size: calc(3rem + .6vmin);
	margin-bottom: 10px;
	transform: scale(.8);
	transition: transform 0.3s ease-in-out;
}

#serverInfo > .col:hover > i {
	transform: scale(1);
}

#serverInfo > .col.active > i {
	transform: scale(1);
}

#serverInfo > .col > .num {
	margin: 10px 0;
	font-size: calc(1.6rem + .6vmin);
	font-weight: bold;
	color: rgb(200, 200, 200);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 10px rgba(190, 45, 50, .5);
}

#serverInfo .info-details {
    grid-column: 1 / -1; /* растянуть на всю ширину сетки */
    background: rgba(15, 15, 15, .5);
    border-radius: 6px;
    border: 1px solid rgba(190, 45, 50, .2);
    overflow: hidden;
    transition: all .3s ease-out;
    max-height: 0;
    opacity: 0;
    padding: 0 15px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

#serverInfo .info-details.open {
    max-height: 500px;
    opacity: 1;
    padding: 10px;
}

#serverInfo .details-content {
    color: rgb(180, 180, 180);
    font-size: 0.95rem;
    line-height: 1.5;
	animation: kfFadeSlideUp .3s ease-out;
}

@keyframes kfFadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#serverInfo .details-content strong {
    color: rgb(190, 45, 50);
    display: block;
    font-size: 1.1rem;
}

/* Стили для раздела загрузок */
#downloads {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

#downloads .download-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(145deg, rgba(25, 25, 25, .8), rgba(15, 15, 15, .5));
	border-radius: 8px;
	padding: 20px;
	border: 1px solid rgba(100, 20, 25, .3);
	transition: all .3s ease-in-out;
	box-shadow: 0 3px 15px rgba(0, 0, 0, .3);
}

#downloads .download-card:hover {
	transform: translateY(-5px);
	border-color: rgba(190, 45, 50, 0.6);
	box-shadow: 0 5px 15px rgba(190, 45, 50, .3);
}

#downloads .download-card > i {
	text-align: center;
	margin-bottom: 5px;
	color: rgb(190, 45, 50);
	font-size: calc(4rem + .6vmin);
	transform: scale(.8);
	transition: transform .3s ease-in-out;
}

#downloads .download-card:hover > i {
	transform: scale(1);
}

#downloads .download-info {
	flex-grow: 1;
	margin-bottom: 15px;
}

#downloads .download-info h3 {
	color: rgb(200, 200, 200);
	font-size: 1.3rem;
	margin-bottom: 10px;
	text-transform: uppercase;
}

#downloads .download-info p {
	color: rgb(140, 140, 140);
	font-size: .9rem;
	line-height: 1.4;
	margin-bottom: 15px;
}

#downloads .file-info {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

#downloads .file-format {
	background: rgba(190, 45, 50, 0.2);
	color: rgb(190, 45, 50);
	padding: 3px 8px;
	border-radius: 4px;
	font-size: .9rem;
	font-weight: bold;
}

#downloads .file-size {
	color: rgb(160, 160, 160);
	font-size: .9rem;
	font-weight: bold;
}

.btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(
		to bottom,
		rgb(190, 45, 50) 0%,
		rgb(150, 35, 40) 50%,
		rgb(140, 30, 35) 51%,
		rgb(100, 20, 25) 100%
	);
	color: rgb(200, 200, 200);
	text-decoration: none;
	padding: 10px 15px;
	border-radius: 6px;
	font-size: 1.4rem;
	font-weight: bold;
	text-transform: uppercase;
	transition: all .3s ease-in-out;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
	text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
	opacity: .8;
}

.btn:hover {
	background: linear-gradient(
	to bottom,
	rgb(200, 55, 60) 0%,
	rgb(160, 45, 50) 50%,
	rgb(150, 40, 45) 51%,
	rgb(110, 30, 35) 100%
	);
	color: white;
	box-shadow: 0 3px 10px rgba(190, 45, 50, .5);
	transform: translateY(-2px);
	opacity: 1;
}

/* Ссылки на ресурсы */
.links {
	margin: 12vmin auto;
	text-align: center;
}

.links .fa-brands {
	margin: 0 5px;
	color: rgb(190, 45, 50);
	font-size: calc(3rem + .6vmin);
	text-decoration: none;
	opacity: .7; /* Степень прозрачности */
	transition: opacity .3s ease-in-out; /* Скорость анимации */
}

.links .fa-brands:hover {
	opacity: 1; /* Степень прозрачности */
}

.copyright {
	margin: 2vmin auto;
	color: rgb(140, 140, 140);
	font-size: calc(0.8rem + .6vmin);
	text-align: center;
}

.copyright a {
	color: rgb(150, 150, 150);
	text-decoration: none;
	cursor: pointer;
}

.copyright a:hover {
	color: rgb(170, 170, 170);
	border-bottom: 1px dashed;
}

.copyright h3 {
	margin: 0;
}

/* Скроллбар */
*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
    height: 56px;
    border: 4px solid transparent;
    border-radius: 8px;
		background-clip: content-box;
		background-color: #888;
}

*::-webkit-scrollbar-thumb:hover {
		background-color: #555;
}

/* Улучшенные стили для навигационных ссылок */
.nav-link {
	transition: all .3s ease-in-out;
	position: relative;
	border-bottom: none;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	width: 0;
	height: 2px;
	background: linear-gradient(
		to right,
		rgb(190, 45, 50) 0%,
		rgb(150, 35, 40) 100%
	);
	transition: all .3s ease-in-out;
	transform: translateX(-50%);
}

.nav-link.active::after {
	width: 80%;
}

.nav-link:hover::after {
	width: 60%;
}

/* Плавная прокрутка */
html {
	scroll-behavior: smooth;
}

/* Адаптивность */
@media (max-width: 650px) {
	#totalKills,
    .blockTitle,
    .kfLogo > img,
    .content-section {
        width: 100%;
    }

	.totalKills-number {
		font-size: 4.5rem;
	}

    .arrow {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .prev {
        left: 15px;
    }

    .next {
        right: 15px;
    }

    .close-button {
        top: 15px;
        right: 15px;
        font-size: 2.1rem;
    }

    #fullscreen-image {
        max-width: 98vw;
        max-height: 98vh;
    }

	#gallery .thumbnails {
		grid-template-columns: repeat(2, 1fr);
	}

	#serverInfo {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    #serverInfo > .col {
        padding: 10px 5px;
    }

    #downloads {
		grid-template-columns: repeat(2, 1fr);
	}

	#downloads .download-card {
		padding: 15px;
	}
}

@media (max-width: 480px) {
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .thumbnail {
        height: 100px;
    }

    #serverInfo {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #serverInfo > .col {
        padding: 15px 10px;
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }

    #serverInfo > .col > i {
        margin-bottom: 0;
        font-size: calc(1.5rem + .6vmin);
        flex-shrink: 0;
    }

    #serverInfo > .col > .num {
        margin: 0 10px 0 0;
        font-size: calc(1.25rem + .6vmin);
        flex-shrink: 0;
    }
}

/* Адаптивность для навигации */
@media (max-width: 850px) {
	#navBar > .navMenu > a .nav-text {
		display: none;
	}

	#navBar > .navMenu > a {
		padding: 10px 10px;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		min-width: 30px;
	}

	#navBar > .navMenu > a i {
		font-size: calc(1rem + .7vmin);
		margin-bottom: 2px;
	}

	#navBar > .navLogo > img {
		width: calc(28px + .7vmin);
		height: calc(28px + .7vmin);
	}

	#navBar > .navMenu > a.active::after {
		width: 60%; /* Уменьшаем подчеркивание для мобильных */
	}
}

@media (max-width: 480px) {
	#navBar > .navLogo {
		display: none;
	}
}