
:root {
	--glass-bg: rgba(255, 255, 255, 0.1);
	--glass-border: rgba(255, 255, 255, 0.2);
	--glass-blur: blur(12px);
	--primary-accent: #3b82f6;
	--text-main: #ffffff;
}

html.site-nav-pending .navbar {
	visibility: hidden !important;
}

/* Общие стили */
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
	background: url('img/building.jpg') no-repeat center center;
	background-size: cover;
	background-attachment: fixed;
	line-height: 1.6;
	min-height: 100vh;
	position: relative;
	color: var(--text-main);
	overflow-x: hidden;
}

body {
	opacity: 1;
	transition: opacity 220ms ease;
}

body.language-changing {
	opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
	body {
		transition-duration: 0.01ms;
	}
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.379);
	z-index: -1;
}

/* Header */
.header {
	background: rgba(15, 23, 42, 0.6);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	position: fixed;
	width: 100%;
	height: 72px;
	top: 0;
	z-index: 100;
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border-bottom: 1px solid var(--glass-border);
	transition: all 0.3s ease;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
}

.logo-container {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #fff;
	overflow: hidden;
}

.logo-img {
	width: 40px;
	height: auto;
	max-height: 100%;
	margin-right: 10px;
}

.logo-text {
	font-size: 22px;
	font-weight: bold;
	white-space: nowrap;
	color: #fff;
}

/* Навигация */
.navbar {
	margin-right: 150px;
}

.navbar ul {
	display: flex;
	gap: 2rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.navbar ul li {
	position: relative;
	padding-bottom: 15px;
}

.navbar ul li a {
	text-decoration: none;
	font-size: 0.95rem;
	color: #fff;
	padding: 8px 12px;
	border-radius: 5px;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.navbar ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--primary-accent);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.navbar ul li a:hover::after {
	width: 70%;
}

.navbar ul li a:hover {
	color: var(--primary-accent);
	transform: translateY(-2px);
}

/* Dropdown меню */
.navbar ul li ul.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	display: block;
	visibility: hidden;
	opacity: 0;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: var(--glass-blur);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	border: 1px solid var(--glass-border);
	border-radius: 12px;
	z-index: 1000;
	padding: 10px 0;
	white-space: normal;
	min-width: 250px;
	max-width: 320px;
	max-height: 80vh;
	overflow-y: auto;
	overflow-x: hidden;
	transform: translateY(0);
	transition: opacity 0.3s ease, visibility 0.3s ease;
	direction: rtl; /* Move scrollbar to the left */
}

.navbar ul li ul.dropdown > li {
	direction: ltr; /* Restore normal left-to-right text layout */
}

/* Стилизация ползунка для выпадающего меню */
.navbar ul li ul.dropdown::-webkit-scrollbar {
	width: 6px;
}

.navbar ul li ul.dropdown::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
}

.navbar ul li ul.dropdown::-webkit-scrollbar-thumb {
	background: var(--primary-accent);
	border-radius: 10px;
}

.navbar ul li ul.dropdown::-webkit-scrollbar-thumb:hover {
	background: #60a5fa;
}

.navbar ul li:hover>ul.dropdown,
.navbar ul li.submenu-active > ul.dropdown {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.navbar ul li ul.dropdown li ul.dropdown {
	left: 100%;
	top: 0;
	margin-left: 2px;
	max-height: 350px;
	overflow-y: auto;
	direction: ltr;
}

.navbar ul li ul.dropdown li {
	width: auto;
}

.navbar ul li ul.dropdown li a {
	padding: 12px 24px;
	display: block;
	text-align: left;
	white-space: normal;
	color: #fff !important;
	font-weight: 500;
	transition: all 0.3s ease;
	border-radius: 8px;
	margin: 0 10px;
}

.navbar ul li ul.dropdown li a:hover,
.navbar ul li ul.dropdown li.submenu-open > a {
	background-color: var(--primary-accent);
	padding-left: 20px;
}

/* Подменю открываются вниз внутри списка с плавной анимацией (для мобильных/дефолта) */
.navbar ul li ul.dropdown li ul.dropdown {
	position: static;
	visibility: visible;
	opacity: 0;
	display: block;
	max-height: 0;
	overflow: hidden;
	transform: none;
	box-shadow: none;
	border: none;
	background: rgba(255, 255, 255, 0.05);
	margin: 0 10px;
	padding: 0;
	min-width: 0;
	transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
	            opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
	            margin 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
	            padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback/Default hover states for accordion */
.navbar ul li ul.dropdown li:hover > ul.dropdown,
.navbar ul li ul.dropdown li.submenu-open > ul.dropdown,
.navbar ul li ul.dropdown li:focus-within > ul.dropdown {
	opacity: 1;
	max-height: 350px;
	padding: 5px 0;
	margin: 5px 10px;
}

@media (min-width: 1201px) {
	/* Prevent vertical accordion expansion on desktop, let JS float it instead */
	.navbar ul li ul.dropdown li:hover > ul.dropdown,
	.navbar ul li ul.dropdown li.submenu-open > ul.dropdown,
	.navbar ul li ul.dropdown li:focus-within > ul.dropdown {
		max-height: 0;
		opacity: 0;
		padding: 0;
		margin: 0 10px;
	}

	/* Keep the compact desktop size for items so they fit screens elegantly */
	.navbar ul li ul.dropdown li a {
		padding: 6px 16px;
		font-size: 0.85rem;
		line-height: 1.4;
		margin: 2px 8px;
	}

	.navbar ul li ul.dropdown li ul.dropdown li a {
		padding: 5px 12px;
		font-size: 0.8rem;
		line-height: 1.3;
	}

	/* Floating submenu on body styling */
	body > ul.dropdown {
		position: fixed;
		background: rgba(15, 23, 42, 0.95);
		backdrop-filter: var(--glass-blur);
		border: 1px solid var(--glass-border);
		border-radius: 12px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
		padding: 10px 0;
		margin: 0;
		list-style: none;
		min-width: 250px;
		max-width: 320px;
		z-index: 9999;
		direction: ltr; /* Ensure text layouts left-to-right */
		
		/* Smooth fade and slide transition state */
		display: block !important;
		opacity: 0;
		visibility: hidden;
		transform: translateX(15px);
		transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
		            transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
		            visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	}

	body > ul.dropdown.visible-floating {
		opacity: 1;
		visibility: visible;
		transform: translateX(0);
	}

	body > ul.dropdown li {
		width: auto;
	}

	body > ul.dropdown li a {
		padding: 8px 16px;
		font-size: 0.85rem;
		line-height: 1.4;
		margin: 2px 8px;
		display: block;
		text-align: left;
		white-space: normal;
		color: #fff !important;
		font-weight: 500;
		text-decoration: none;
		border-radius: 8px;
		transition: all 0.3s ease;
	}

	body > ul.dropdown li a:hover {
		background-color: var(--primary-accent);
		padding-left: 20px;
	}
}

/* Центрирование контента */
.center-container {
	display: grid;
	place-items: center;
	min-height: 100vh;
	text-align: center;
	margin: 4rem 0;
}

/* Контейнер для окон */
.windows {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	/* Окна могут переноситься на новые строки */
	justify-content: center;
	align-items: center;
	padding: 20px;

	display: grid;
	grid-gap: 20px;
	grid-template-columns: repeat(5, 1fr);
}


/* Блоки с окнами */
.window {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: var(--glass-blur);
	-webkit-backdrop-filter: var(--glass-blur);
	border: 1px solid var(--glass-border);
	border-radius: 16px;
	box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
	overflow: hidden;
	text-align: center;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 0;
	transform: translateY(30px);
	width: 100%;
	max-width: 350px;
	height: 600px;
	flex-shrink: 0;
}

.window.visible {
	opacity: 1;
	transform: translateY(0);
	margin-top: 1%;
}

.window:hover {
	transform: translateY(-10px) scale(1.02);
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

.window.visible2 {
	transform: scale(1);
	opacity: 1;
	margin-top: 10%;
	width: 50%;
}



/* Текст внутри окон */
.window p {
	padding: 20px;
	font-size: 16px;
	color: #fff;
	line-height: 1.6;
	font-weight: 400;
}

/* Кнопка */
.butt {
	display: inline-block;
	margin: 20px 0;
	padding: 12px 30px;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #fff;
	text-decoration: none;
	font-size: 24px;
	font-weight: 600;
	border-radius: 12px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.butt:hover {
	transform: translateY(-3px) scale(1.05);
	box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
	background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

/* Ссылки внутри окон */
.window a {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

/* Флаги */
.flag {
	width: 24px;
	height: auto;
	vertical-align: middle;
	margin: 0 5px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
	.windows {
		grid-template-columns: repeat(1, 1fr);
		/* Две колонки для экранов до 768px */
		flex-direction: column;
		/* Располагаем окна вертикально */
		align-items: center;
		/* Центрируем окна по горизонтали */
		gap: 20px;
		/* Увеличиваем расстояние между окнами */
	}

	.window {
		width: 90%;
		/* Окна занимают 90% ширины экрана */
		margin-bottom: 20px;
	}

	.window img {
		height: auto;
		/* Автоматическая высота изображений */
	}
}

@media (max-width: 480px) {
	.window {
		width: 100%;
		/* Окна занимают всю ширину экрана */
		margin-bottom: 15px;
		/* Уменьшаем отступы для узких экранов */
	}

	.window p {
		font-size: 14px;
		/* Уменьшаем размер текста внутри окон */
	}
}

/* Кнопка меню для мобильных устройств */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
}

/* Мобильные стили */
@media (max-width: 1200px) {
	.menu-toggle {
		display: block;
		/* Показываем кнопку бургер-меню */
	}

	/* Дополнение к CSS для меню */
	.navbar {
		display: none;
		/* Скрываем меню по умолчанию */
		flex-direction: column;
		width: 100%;
		margin-right: 0;
		background-color: rgb(179, 202, 231);
		/* Темный фон для меню */
		position: absolute;
		top: 8vh;
		/* Ниже заголовка */
		left: 0;
		z-index: 1000;
	}

	.navbar.active {
		display: flex;
		/* Показываем меню, если оно активно */
	}

	.navbar ul {
		flex-direction: column;
		/* Размещаем элементы вертикально */
		gap: 10px;
		padding: 10px;
	}

	.navbar ul li {
		width: 100%;
		/* Элементы занимают всю ширину */
	}

	.navbar ul li a {
		padding: 10px 20px;
		text-align: left;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.navbar li {
		width: 100%;
		position: relative;
	}

	.navbar li a {
		padding: 10px;
		border-bottom: 1px solid #444;
		color: white;
		display: block;
		text-decoration: none;
	}

	.navbar li a:hover {
		background-color: #444;
	}
}

/* ================================footer================================================ */
.footer {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	padding: 1.5rem 2rem;
	background-color: #0f172a;
	border-top: 1px solid var(--glass-border);
}

.divider {
	width: 1px;
	background-color: var(--glass-border);
}

.map {
	border-radius: 12px;
	flex: 1.5;
	height: 300px !important;
	border: 1px solid var(--glass-border);
}

.fnav {
	min-width: 320px;
}

@media (max-width: 1100px) {
	.divider:last-of-type {
		display: none;
	}

	.map {
		width: 100%;
		min-height: 60vh;
	}
}

@media (max-width: 768px) {
	.footer {
		flex-direction: column;
	}

	.fnav {
		min-width: min-content;
	}

	.divider {
		display: none;
	}

	.map {
		width: 100%;
	}
}

.fcont {
	height: 50%;
}

.ram {
	margin-top: -5%;
}

.footlog {
	margin-bottom: 1rem;
	height: 80px;
	width: auto;
}

/* Remove Social Bar from Top */
.social-bar {
	display: none;
}

.center-container {
	margin-top: 80px !important;
	/* Revert to standard header height */
}

/* Footer Reconfiguration */
.footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	padding: 2.5rem;
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: var(--glass-blur);
	border-top: 1px solid var(--glass-border);
}

.footer>div,
.footer .foot-info,
.footer .fnav {
	flex: 1;
	min-width: 250px;
}

.footer .map {
	flex: 0.4;
	/* Even narrower */
	height: 150px !important;
	/* Shorter height */
	border-radius: 12px;
	order: 3;
	/* Right side */
}

.footer .foot-info {
	order: 1;
	/* Left side */
	flex: 1.2;
}

.footer .fnav {
	order: 2;
	/* Middle now */
	flex: 0.8;
}

/* Footer Social Icons - Modern & Subtle */
.footer-social {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.footer-social .socialContainer {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border: 1px solid var(--glass-border);
}

.footer-social .socialContainer:hover {
	transform: translateY(-3px);
	background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
	.footer {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
	}

	.footer .map,
	.footer .foot-info,
	.footer .fnav {
		order: unset !important;
		width: 100% !important;
	}

	.footer-social {
		justify-content: center !important;
	}
}

.footabout {
	color: white;
	margin-left: 25%;
	margin-top: -2.5%;
}

/* ===================================card===================================================== */
.card {
	display: flex;
	gap: 1rem;
}

/* for all social containers*/
.socialContainer {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition-duration: 0.5s;
	border: 1px solid var(--glass-border);
}

/* Instagram */
.containerOne:hover {
	background-color: #d62976;
	transition-duration: 0.3s;
}

/* Twitter */
.containerTwo:hover {
	background-color: #ee0000;
	transition-duration: 0.3s;
}

/* LinkedIn */
.containerThree:hover {
	background-color: #0072b1;
	transition-duration: 0.3s;
}

/* TikTok */
.containerFive:hover {
	background-color: #000000;
	transition-duration: 0.3s;
}

.socialContainer {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	/* Square with rounded corners for modern look */
	background-color: rgba(255, 255, 255, 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	border: 1px solid var(--glass-border);
}

.socialContainer:hover {
	transform: scale(1.1);
}

.socialSvg {
	width: 20px;
}

.socialSvg path {
	fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
	animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
	0% {
		transform: translateY(-50px);
		opacity: 0;
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* ================================footer nav===================================================== */
.footer-nav {
	display: flex;
	flex-direction: column;
}

.footer-nav h3 {
	font-size: 16px;
	margin-bottom: 12px;
	color: var(--primary-accent);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.footer-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-nav ul li {
	margin-bottom: 5px;
}

.footer-nav ul li a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s;
}

.footer-nav ul li a:hover {
	color: #fff;
}

/* ===============================slider=================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: Arial, sans-serif;
}

.slider-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 1200px;
	/* Увеличьте значение для большего размера */
	width: 100%;
	background-color: white;
	border: 2px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	display: none;
	overflow: hidden;
	z-index: 9999;
}

.slider-wrapper {
	display: flex;
	transition: transform 0.5s ease-in-out;
}

.slide {
	min-width: 100%;
}

iframe {
	width: 100%;
	height: 700px;
	/* Увеличьте значение для большего размера */
	border: none;
}

.nav-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 24px;
}

.prev {
	left: 10px;
}

.next {
	right: 10px;
}

.overlay {
	position: absolute;
	display: none;
	width: 100vw;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 3;
}

/* ----------------------------------ЗАКАНЧИВААЕТСЯ-ТУТ------------------------------------------------ */

.window {

	overflow: hidden;
	/* Скрываем прокрутку у всего блока */
	border: 1px solid #ccc;
	padding: 10px;
	position: relative;
}

.text-container {
	max-height: 290px;
	/* Ограничение высоты только для текста */
	overflow: auto;
	/* Прокрутка только для текста */
	scrollbar-width: thin;
	/* Тонкая полоса прокрутки */
	scrollbar-color: #888 #f1f1f1;
	/* Цвет полосы прокрутки */
}

/* Изображение внутри окна */
.window img {
	width: 100%;
	height: 12rem;
	object-fit: cover;
	border-bottom: 1px solid var(--glass-border);
}

.window.visible.home {
	height: 28rem;
}

/* Entry Animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.center-container {
	animation: fadeIn 1s ease-out;
}

/* Cleanup: Removed the unsuccessful grid layout and and reverted to a polished drop-up behavior */

/* Drop-up menu positioning for specific items near bottom of screen */
.navbar ul li ul.dropdown.drop-up-menu {
	top: auto !important;
	bottom: 0 !important;
	transform: translateY(0) !important;
	transform-origin: bottom left;
}

/* Ensure hover state maintains visibility for drop-up */
.navbar ul li:hover>ul.dropdown.drop-up-menu {
	transform: translateY(0) !important;
}
/* Общие стили */
body {
	font-family: sans-serif;
	margin: 0;
	padding: 0;
	background: url('img/building.jpg') no-repeat center center;
	background-size: cover;
	background-attachment: fixed;
	line-height: 1.6;
	min-height: 100vh;
	position: relative;
	color: #fff;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.379);
	z-index: -1;
}

/* Header */
.header {
	background: rgba(179, 202, 231, 0.7);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
	position: fixed;
	width: 100%;
	height: 64px;
	top: 0;
	z-index: 1;
	backdrop-filter: blur(8px);
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
}

.logo-container {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: #fff;
	overflow: hidden;
}

.logo-img {
	width: 40px;
	height: auto;
	max-height: 100%;
	margin-right: 10px;
}

.logo-text {
	font-size: 24px;
	font-weight: bold;
	white-space: nowrap;
	color: #fff;
}

/* Навигация */
.navbar ul {
	display: flex;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.navbar ul li {
	position: relative;
}

.navbar ul li a {
	text-decoration: none;
	font-size: 1rem;
	color: #fff;
	padding: 10px 15px;
	border-radius: 5px;
	transition: background-color 0.3s;
}

.navbar ul li a:hover {
	background-color: rgba(255, 255, 255, 0.5);
	color: #000;
}

/* Dropdown меню */
.navbar ul li ul.dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	background: rgba(235, 232, 232, 0.837);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	z-index: 1000;
	padding: 5px 0;
	white-space: nowrap;
}

.navbar ul li:hover>ul.dropdown {
	display: block;
}

.navbar ul li ul.dropdown li ul.dropdown {
	display: none;
	position: absolute;
	top: 0;
	left: 100%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
}

.navbar ul li ul.dropdown li:hover>ul.dropdown {
	display: block;
}

.navbar ul li ul.dropdown li {
	width: auto;
}

.navbar ul li ul.dropdown li a {
	padding: 10px 20px;
	display: block;
	text-align: left;
	white-space: nowrap;
	color: #000;
}

.navbar ul li ul.dropdown li a:hover {
	background-color: rgba(179, 202, 231, 0.7);
	color: #fff;
}

/* Центрирование контента */
.center-container {
	display: grid;
	place-items: center;
	min-height: 100vh;
	text-align: center;
	margin: 4rem 0;
}

/* Контейнер для окон */
.windows {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	/* Окна могут переноситься на новые строки */
	justify-content: center;
	align-items: center;
	padding: 20px;
}

/* Блоки с окнами */
.window {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	text-align: center;
	transition: transform 0.5s ease, opacity 0.5s ease;
	transform: scale(0.9);
	opacity: 0;
	width: 450px;
	height: auto;
	flex-shrink: 0;
}


/* Флаги */
.flag {
	width: 24px;
	height: auto;
	vertical-align: middle;
	margin: 0 5px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
	.windows {
		flex-direction: column;
		/* Располагаем окна вертикально */
		align-items: center;
		/* Центрируем окна по горизонтали */
		gap: 20px;
		/* Увеличиваем расстояние между окнами */
	}

	.window {
		width: 90%;
		/* Окна занимают 90% ширины экрана */
		margin-bottom: 20px;
	}

	.window img {
		height: auto;
		/* Автоматическая высота изображений */
	}
}

@media (max-width: 480px) {
	.window {
		width: 100%;
		/* Окна занимают всю ширину экрана */
		margin-bottom: 15px;
		/* Уменьшаем отступы для узких экранов */
	}

	.window p {
		font-size: 14px;
		/* Уменьшаем размер текста внутри окон */
	}
}

/* Кнопка меню для мобильных устройств */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
}

/* Мобильные стили */
@media (max-width: 1200px) {
	.menu-toggle {
		display: block;
		/* Показываем кнопку бургер-меню */
	}

	/* Дополнение к CSS для меню */
	.navbar {
		display: none;
		/* Скрываем меню по умолчанию */
		flex-direction: column;
		width: 100%;
		background-color: rgb(179, 202, 231);
		/* Темный фон для меню */
		position: absolute;
		top: 8vh;
		/* Ниже заголовка */
		left: 0;
		z-index: 1000;
	}

	.navbar.active {
		display: flex;
		/* Показываем меню, если оно активно */
	}

	.navbar ul {
		flex-direction: column;
		/* Размещаем элементы вертикально */
		gap: 10px;
		padding: 10px;
	}

	.navbar ul li {
		width: 100%;
		/* Элементы занимают всю ширину */
	}

	.navbar ul li a {
		padding: 10px 20px;
		text-align: left;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.navbar li {
		width: 100%;
		position: relative;
	}

	.navbar li a {
		padding: 10px;
		border-bottom: 1px solid #444;
		color: white;
		display: block;
		text-decoration: none;
	}

	.navbar li a:hover {
		background-color: #444;
	}
}

/* ********************************************************* */

.warn {
	background-color: #fff;
	width: 70rem;
	height: auto;
	border-radius: 45px;
	color: #000;
	font-size: 35px;
	padding: 5px
}

.docmem {
	display: block;
	text-decoration: none;
}

/* Стили для видео секции - компактный grid layout */
.video-section {
	max-width: 1200px;
	margin: 30px auto;
	padding: 25px;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.video-section-title {
	color: #333;
	font-size: 24px;
	margin: 0 0 20px 0;
	text-align: center;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 20px;
}

.video-item {
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.compact-video {
	width: 100%;
	height: auto;
	max-height: 350px;
	display: block;
	object-fit: contain;
	background-color: #000;
}

/* Адаптивность для планшетов */
@media (max-width: 900px) {
	.video-section {
		padding: 20px;
		margin: 20px 10px;
	}

	.video-section-title {
		font-size: 20px;
	}

	.video-grid {
		gap: 15px;
	}

	.compact-video {
		max-height: 280px;
	}
}

/* Адаптивность для мобильных */
@media (max-width: 650px) {
	.video-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.video-section {
		padding: 15px;
		margin: 15px 5px;
	}

	.video-section-title {
		font-size: 18px;
	}

	.compact-video {
		max-height: 400px;
	}
}

/* Keep the older fixed-width memorandum layout readable on phones too. */
@media (max-width: 760px) {
	.center-container {
		box-sizing: border-box;
		width: 100%;
		max-width: 100%;
		min-height: 0;
		margin: 16px auto 24px;
		padding: 12px;
		grid-template-columns: minmax(0, 1fr);
		place-items: stretch;
	}

	.warn,
	.text1,
	.Mukash,
	.winner {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		height: auto !important;
		margin: 12px auto !important;
		padding: 16px !important;
		border-radius: 14px;
		font-size: 16px;
	}

	.text1img,
	.img1,
	.img2 {
		box-sizing: border-box;
		width: calc(100vw - 24px) !important;
		max-width: calc(100vw - 24px) !important;
		height: clamp(240px, 62vh, 360px) !important;
		margin: 12px auto !important;
		background-attachment: scroll;
	}

	.grid,
	.video-grid {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		max-width: 100%;
	}

	.grid > * {
		grid-column: 1 !important;
		grid-row: auto !important;
	}

	img,
	video,
	iframe {
		max-width: 100%;
	}

	img {
		height: auto;
	}
}

/* Consistent touch-friendly layout for legacy pages and standalone viewers. */
@media (max-width: 1024px) {
  img,
  video,
  canvas,
  svg,
  iframe,
  object,
  embed {
    max-width: 100%;
  }

  main,
  .center-container,
  .container,
  .content,
  .content-wrapper,
  .page-content,
  .main-content,
  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn,
  .rating-container,
  .info-card,
  .video-section {
    box-sizing: border-box;
    max-width: 100%;
  }

  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn {
    width: min(100%, calc(100vw - 32px));
  }

  .center-container > *,
  .container > *,
  .content > * {
    min-width: 0;
    max-width: 100%;
  }

  .window,
  .card,
  .rating-card,
  .image-block {
    min-width: 0;
    max-width: 100%;
  }

  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 320px;
  }

  main,
  .center-container,
  .container,
  .content,
  .content-wrapper,
  .page-content,
  .main-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .center-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-content: start;
    gap: 14px;
    min-height: 0;
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 12px;
  }

  .center-container > *,
  .container > *,
  .content > * {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn,
  .rating-container,
  .info-card,
  .video-section,
  .window,
  .card,
  .image-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin-right: 0;
    margin-left: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .block.img,
  .block.img2,
  .block.img4,
  .text1img,
  .img1,
  .img2 {
    height: clamp(240px, 62vh, 360px);
    min-height: 240px;
    background-attachment: scroll;
  }

  .block img,
  .window img,
  .info img,
  .winner img,
  .image-block img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .windows,
  .image-gallery,
  .rating-cards,
  .video-grid,
  .cards,
  .gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
  }

  .rating-card-img-wrap {
    height: 230px;
  }

  .rating-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .grid > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  img,
  video,
  canvas,
  svg,
  iframe,
  object,
  embed {
    max-width: 100%;
  }

  img {
    height: auto;
  }

  iframe,
  object,
  embed {
    display: block;
    width: 100%;
  }

  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  pre {
    max-width: 100%;
    overflow-x: auto;
  }

  input,
  select,
  textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  button,
  .butt,
  .btn,
  .btn-primary,
  .btn-secondary,
  .nav-button,
  .navbar .nav-trigger,
  .tab-btn {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
  }

  .lang-tab,
  .back-btn,
  .site-language a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(21px, 5.5vw, 28px);
    line-height: 1.25;
  }

  p,
  li,
  a,
  button {
    overflow-wrap: anywhere;
  }

  .lang-quick-nav,
  .tabs-nav,
  .viewer-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .viewer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    padding: 24px 16px;
  }
}

@media (max-width: 420px) {
  .center-container {
    padding: 8px;
  }

  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn,
  .rating-container,
  .info-card,
  .video-section,
  .window,
  .card,
  .image-block {
    padding: 12px;
    border-radius: 12px;
  }
}

/* Kazakh-capable Times New Roman typography across site pages. */
body {
  font-family: "Times New Roman", Times, "Noto Serif", "DejaVu Serif", Arial, sans-serif !important;
}

body *:not(i):not(svg) {
  font-family: inherit !important;
}
