@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

: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;
}

/* Общие стили */
body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 0;
	background: url('static/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::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;
}

.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;
}

.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: nowrap;
	transform: translateY(15px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar ul li:hover>ul.dropdown {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.navbar ul li ul.dropdown li ul.dropdown {
	left: 100%;
	top: 0;
	margin-left: 2px;
}

.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: nowrap;
	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 {
	background-color: var(--primary-accent);
	padding-left: 30px;
}

/* Центрирование контента */
.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('static/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: 50%;
	height: 50%;
	border-radius: 45px;
	color: #000;
	font-size: 35px;
	padding: 5px
}
.back {
	display: inline-block;
	padding: 40px 15rem;
	background-color: #8797ab;
	color: #fff;
	text-decoration: none;
	font-size: 30px;
	border-radius: 8px;
	transition: background-color 0.3s, transform 0.3s;
}

.back:hover {
	background-color: #97b9d9;
	transform: scale(1.05);
}
