/* Общие стили */
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;

	display: grid;
	grid-gap: 20px; /* Расстояние между блоками */
	grid-template-columns: repeat(5	, 1fr);

}


/* Блоки с окнами */
.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: 300px;
	height: 600px;
	flex-shrink: 0;
}

.window.visible {
	transform: scale(1);
	opacity: 1;
	margin-top: 1%;
}

.window.visible2 {
	transform: scale(1);
	opacity: 1;
	margin-top: 10%;
	width: 50%;
}



/* Текст внутри окон */
.window p {
	padding: 20px;
	font-size: 18px;
	color: #000;
	line-height: 1.6;
}

/* Кнопка */
.butt {
	display: inline-block;
	margin: 10px 0;
	padding: 10px 20px;
	background-color: #8797ab;
	color: #fff;
	text-decoration: none;
	font-size: 30px;
	border-radius: 8px;
	transition: background-color 0.3s, transform 0.3s;
}

.butt:hover {
	background-color: #97b9d9;
	transform: scale(1.05);
}

/* Ссылки внутри окон */
.window a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.window a:hover {
	transform: scale(1.05);
	transition: transform 0.3s ease;
}

/* Флаги */
.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%;
		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.75rem;
	background-color: #2d2d2d;
}

.divider {
	width: 2px;
	background-color: #fff;
}
.map {
	border-radius: 10px;
	flex: 2;
}

.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: 3% 1.5%;
	height: 18vh;
	width: auto;
}

.foot.cont {
	color: white;
	margin-top: 0;
	margin-left: 2.5%;
}

.foot.adres {
	color: white;
	margin-top: 1%;
	margin-left: 2.5%;
}

.foot.social {
	color: white;
	margin-top: 1%;
	margin-left: 2.5%;
}

.foot.email {
	color: white;
	margin-top: 4%;
	margin-left: 2.5%;
}

.footabout {
	color: white;
	margin-left: 25%;
	margin-top: -2.5%;
}

/* ===================================card===================================================== */
.card {
	display: flex;
	gap: 1rem;
}

/* for all social containers*/
.socialContainer {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgb(44, 44, 44);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition-duration: 1s;
}

/* 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;
}

/* WhatsApp */
.containerFour:hover {
	background-color: #128c7e;
	transition-duration: 0.3s;
}

.socialContainer:active {
	transform: scale(0.9);
	transition-duration: 0.3s;
}

.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: 18px;
	margin-bottom: 10px;
	color: #f4a261;
}

.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: 10rem;
	object-fit: cover;
	border-bottom: 2px solid #ddd;
	border-radius: 10px;
}
.window.visible.home{
	height: 25rem;
}

