.contacts-inner {
	height: 586px;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
}

.contacts-map-wrapper {
	position: relative;
	height: 100%;
}

.contacts-map {
	position: absolute;
	inset: 0;
}

.contacts-map-btn {
	position: absolute;
	bottom: 40px;
	left: 26px;
	max-width: max-content;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 27px;
	height: 50px;
}

.contacts-info {
	padding: 12px 12px 22px;
	width: 478px;
	height: 524px;
	border-radius: 5px;
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	background-color: var(--color-white);
	box-shadow: 0px 4px 12.3px 0px rgba(52, 52, 52, 0.25);
	display: flex;
	flex-direction: column;
}

.contacts-slider {
	height: 246px;
	border-radius: 5px;
	overflow: hidden;
}

.contacts-slider-swiper {
	width: 100%;
	height: 100%;
}

.contacts-slider-swiper .swiper-slide {
	width: 100%;
	height: 100%;
}

.contacts-slider-swiper .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.contacts-slider-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 27px;
	height: 27px;
	border-radius: 4px;
	border: none;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: opacity 0.3s ease;
}

@media (hover: hover) {
	.contacts-slider-nav-btn:hover {
		opacity: 0.8;
	}
}

.contacts-slider-nav-btn--prev {
	left: 8px;
}

.contacts-slider-nav-btn--prev svg {
	transform: rotate(180deg);
}

.contacts-slider-nav-btn--next {
	right: 8px;
}

.contacts-slider-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.contacts-slider-pagination {
	position: absolute;
	bottom: 6px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	z-index: 10;
}

.contacts-slider-pagination .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: rgba(217, 217, 217, 0.2);
	opacity: 1;
	margin: 0;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.contacts-slider-pagination .swiper-pagination-bullet-active {
	background-color: var(--color-white);
}

.contacts-slider-swiper .swiper-horizontal > .contacts-slider-pagination .swiper-pagination-bullet,
.contacts-slider-pagination.swiper-pagination-horizontal .swiper-pagination-bullet {
	margin: 0;
}

.contacts-info-details {
	margin-top: 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	row-gap: 35px;
	column-gap: 54px;
	padding-bottom: 27px;
	border-bottom: 1px solid #e5e5e5;
}

.contacts-info-details-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contacts-info-details-label {
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: rgba(0, 0, 0, 0.5);
}

.contacts-info-details-value {
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	color: var(--color-black);
	text-decoration: none;
}

.contacts-info-details-value--email {
	color: var(--color-accent);
}

.contacts-info-rating {
	margin-top: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 54px;
}

@media screen and (max-width: 1540px) {
	.contacts-inner {
		height: 484px;
	}
	.contacts-slider {
		height: 210px;
	}
	.contacts-info {
		height: auto;
		width: 410px;
		top: 10px;
		right: 10px;
	}
	.contacts-info-details {
		margin-top: 20px;
		row-gap: 26px;
		padding-bottom: 20px;
	}
	.contacts-info-details-item {
		gap: 10px;
	}
	.contacts-info-rating {
		margin-top: 20px;
	}
	.contacts-info {
		padding: 12px;
	}
}

@media screen and (max-width: 992px) {
	.contacts-inner {
		display: flex;
		flex-direction: column;
		height: auto;
		gap: 20px;
	}
	.contacts-info {
		position: static;
		width: 100%;
		box-shadow: none;
	}
	.contacts-map-wrapper {
		height: 236px;
	}
	.contacts-slider {
		height: 100%;
	}
	.contacts-info-details {
		row-gap: 8px;
	}
	.contacts-info-details-value {
		font-size: 14px;
		text-wrap: nowrap;
	}
	.contacts-info-details-label {
		font-size: 12px;
	}

	.contacts-info-rating img {
		max-width: 124px;
	}
	.contacts-info-details-item {
		gap: 5px;
	}

	.contacts-info-details-item--address {
		order: 1;
	}

	.contacts-info-details-item--phone {
		order: 3;
	}
	.contacts-info-details-item--email {
		order: 4;
	}
	.contacts-info-details-item--schedule {
		order: 2;
	}
	.contacts-info-rating,
	.contacts-info-details {
		column-gap: 40px;
		grid-template-columns: 50% auto;
	}
	.footer-form {
		gap: 10px;
	}
	.contacts-map {
		border-radius: 8px;
	}
	.contacts-info-details-value--email {
		color: var(--color-black);
	}
}

@media screen and (max-width: 540px) {
	.contacts-map-btn {
		max-width: none;
		width: auto;
		bottom: 10px;
		left: 10px;
		right: 10px;
		font-size: 16px;
		height: 43px;
	}
}
@media screen and (max-width: 380px) {
	.contacts-info-details,
	.contacts-info-rating {
		padding-right: 0px;
	}
}
