/* Общие элементы всех страниц: переключатель языков и баннер согласия на куки */

/* --- Переключатель языков (как в калькуляторе экипировки) --- */
#site-lang-switch {
	position: absolute;
	top: 10px;
	right: 30px;
	z-index: 1000;
	display: flex;
	gap: 4px;
}

.site-lang-icon {
	width: 28px;
	height: 18px;
	background: url('flags.png') no-repeat;
	cursor: pointer;
	display: block;
}

.site-lang-ru { background-position: 0 0; }
.site-lang-en { background-position: -28px 0; }

.site-lang-inactive {
	opacity: 0.3;
}

.site-lang-icon:hover:not(.site-lang-inactive) {
	box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

/* --- Баннер согласия на куки --- */
.site-cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	background: #1c1c1c;
	color: #ddd;
	border-top: 1px solid #444;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
	padding: 0.8rem 1.2rem;
	font-family: Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.site-cookie-text {
	max-width: 640px;
}

.site-cookie-buttons {
	display: flex;
	gap: 0.6rem;
}

.site-cookie-banner button {
	padding: 0.45rem 1.1rem;
	border-radius: 6px;
	border: 1px solid #555;
	background: rgba(255, 255, 255, 0.08);
	color: #eee;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
}

.site-cookie-banner button.site-cookie-accept {
	background: #3d6b47;
	border-color: #4e8a5b;
}

.site-cookie-banner button.site-cookie-accept:hover {
	background: #4a7f56;
}

.site-cookie-banner button.site-cookie-decline:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* --- Кнопка «Назад» (все страницы, кроме главной) --- */
.back-button {
	position: fixed;
	top: 20px;
	left: 20px;
	z-index: 1000;
	width: 56px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background-color: #3a3a4e;
	color: #ffd700;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
	background-color: #4a4a5e;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-button:active {
	transform: translateY(0);
}

/* стрелка — SVG, центрируется геометрически точно */
.back-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- Общий фон всех страниц: картинка из калькулятора стигм ---
   Затемнение сделано слоем linear-gradient вместо background-blend-mode:
   darken с полупрозрачным чёрным даёт тот же результат (изображение * 0.8),
   но blend-mode поддерживается/рендерится по-разному в старых браузерах,
   а градиент-слой работает одинаково везде. background-attachment: fixed
   привязывает фон к окну — на прокручиваемых страницах картинка не ползёт.
   Сплошной цвет #add0e8 остаётся запасным там, где webp не поддерживается. */
body {
	background-color: #add0e8;
	background-image:
		linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
		url('background.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}
