/* Контакты */
/* MOBILE STYLE  */

h1 {
	letter-spacing: -0.01rem;
	font: var(--heading-h2-desktop);
	margin-bottom: 40px;
}

.contacts__wrapper {
	margin-bottom: 80px;
}
.contacts__text {
	margin-bottom: 40px;
}
.contacts__right {
	display: flex;
	flex-direction: column;
	row-gap: 24px;
}
.title-item {
	color: var(--Gray_800);
	font: var(--body-mobile);
}
.description-item {
	color: var(--Gray_800);
	font: var(--bold18);
}
.contacts__image {
	width: 100%;
	height: 490px;
	border: 1px solid #e0e0e0;
	border-radius: 16px;
	overflow: hidden;
}

.contacts__map {
	width: 100%;
	height: 500px;
	border-radius: 16px;
	background: #f7fefa;
	overflow: hidden;
}

.contacts__map iframe {
	width: 100%;
	height: 100%;
}

.contacts__cards {
	display: flex;
	flex-direction: column;
	width: 100%;
	row-gap: 32px;
	text-align: center;
	margin-bottom: 32px;
}
.progress-container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 6px;
	background: #f3f3f3;
	border-radius: 3px;
	overflow: hidden;
	z-index: 10;
}

.progress-bar {
	height: 100%;
	background: #3498db;
	width: 0%;
	border-radius: 3px;
	transition: width 0.1s ease;
	position: relative;
}

/* Опционально: добавить анимацию полосы */
.progress-bar::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-image: linear-gradient(
		-45deg,
		rgba(255, 255, 255, 0.2) 25%,
		transparent 25%,
		transparent 50%,
		rgba(255, 255, 255, 0.2) 50%,
		rgba(255, 255, 255, 0.2) 75%,
		transparent 75%,
		transparent
	);
	background-size: 50px 50px;
	animation: moveStripes 2s linear infinite;
}

@keyframes moveStripes {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 50px 50px;
	}
}

.contacts__map.loading {
	min-height: 200px;
	background: #f5f5f5;
}

.contacts__item {
	background: #fff;
	width: 100%;
	height: 127px;
	padding: 32px 5px 24px 5px;
	border-radius: 16px;
	box-sizing: border-box;
	position: relative;
	gap: 16px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	box-shadow: 0 0 16px rgba(65, 65, 65, 0.15);
}

.contacts__icon {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--primary_400);
	display: flex;
	align-items: center;
	justify-content: center;
}

.contacts__socials {
	display: flex;
	flex-direction: column;
	row-gap: 24px;
	text-align: center;
	align-items: center;
	border-radius: 16px;
	box-shadow: 0 0 16px rgba(65, 65, 65, 0.15);
	background: #fff;
	padding: 40px 28px;
}

.contacts__socials .h4 {
	text-align: center;
}

.socials__wrapper {
	display: flex;
	column-gap: 8px;
	align-items: center;
}
.socials__wrapper a {
	width: 48px;
	height: 48px;
	border-radius: 30px;
	border: 1px solid var(--Gray_800);
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	transition: all 0.3s ease;
}
.socials__wrapper a:hover {
	border: 1px solid var(--primary_400);
	background-color: var(--bg);
}
.socials__wrapper a path {
	transition: all 0.3s ease;
}
.socials__wrapper a:hover path {
	fill: var(--primary_400);
}
.contacts__text__image {
	display: none;
}

img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	display: block;
	object-position: center;
}

p {
	letter-spacing: -0.02rem;
	font: var(--body-mobile);
	color: var(--Gray_800);
}

.contacts__text p strong {
	color: var(--primary_400);
	font: var(--bold16);
}

.h4 {
	letter-spacing: -0.01rem;
	color: var(--primary_400);
	font: var(--heading-h6);
}

.contacts {
	margin-bottom: 80px;
}

/* TABLE STYLE  */
@media (min-width: 767px) {
	.contacts__wrapper {
		display: flex;
		flex-direction: column-reverse;
	}
	.contacts__right {
		flex-direction: row;
		column-gap: 24px;
		margin: 0;
	}
	.contacts__cards {
		flex-direction: row;
		flex-wrap: wrap;
		column-gap: 24px;
	}
	.contacts__item {
		width: 48%;
	}
	.contacts__map {
		height: 248px;
	}
	.contacts__image {
		min-width: 166px;
		width: 166px;
		height: 248px;
	}
	.contacts__right {
		margin-bottom: 40px;
	}
	.contacts__text {
		margin-bottom: 0;
	}
	.description-contacts p:not(:last-child) {
		margin-bottom: 24px;
	}
	.description-contacts p {
		font: var(--body-desktop);
	}
	.contacts__text p strong {
		font: var(--bold20);
	}
}

/* LAPTOP STYLE  */
@media (min-width: 1000px) {
	.contacts__cards .contacts__item:nth-child(2) .description-item {
		max-width: 160px;
	}
	.contacts__cards .contacts__item:nth-child(3) .description-item {
		max-width: 190px;
	}
	.contacts__image {
		min-width: 279px;
		width: 279px;
		height: 416px;
	}
	.contacts__map {
		height: 416px;
	}
	.contacts__cards {
		flex-wrap: nowrap;
		margin-top: 120px;
	}
	.contacts__item {
		width: 100%;
		height: auto;
	}
	.contacts__socials {
		flex-direction: row;
		justify-content: space-between;
		padding: 48px;
	}
}

/* PC STYLE  */
@media (min-width: 1280px) {
	.contacts__cards .contacts__item:nth-child(2) .description-item {
		max-width: 100%;
	}
	.contacts__image {
		min-width: 340px;
		width: 340px;
		height: 508px;
	}
	.contacts__map {
		height: 508px;
	}
	.contacts__text__image {
		display: flex;
	}
	.contacts__text {
		display: flex;
		align-items: center;
		margin-top: 64px;
		margin-left: 32px;
	}
	.contacts__text p {
		margin: 0 0 0 166px;
	}
}
