/* Контакты / Наши магазины — макет Figma Contacts */
.dv-contacts {
	--dv-c-text: #212121;
	--dv-c-muted: rgba(33, 33, 33, 0.5);
	--dv-c-green: #28a745;
	--dv-c-tab-active: #212121;
	--dv-c-tab-border: #d5d5d5;
	--dv-c-icon-bg: #f5f5f5;
	font-family: "Segoe UI", Tahoma, sans-serif;
	color: var(--dv-c-text);
	margin-bottom: 2rem;
}

.dv-contacts__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.dv-contacts__title {
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

.dv-contacts--home .dv-contacts__title {
	font-size: 32px;
}

.dv-contacts__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}

.dv-contacts__tab {
	border: 1px solid var(--dv-c-tab-border);
	border-radius: 5px;
	padding: 16px 32px;
	font-size: 18px;
	line-height: 1.2;
	background: #fff;
	color: var(--dv-c-text);
	cursor: pointer;
	user-select: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dv-contacts__tab.is-active {
	background: var(--dv-c-tab-active);
	border-color: var(--dv-c-tab-active);
	color: #fff;
}

.dv-contacts__tab:hover:not(.is-active) {
	border-color: #999;
}

.dv-contacts__info {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px 20px;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.dv-contacts__info {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1200px) {
	.dv-contacts__info {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.dv-contacts__label {
	font-size: 16px;
	line-height: 1.2;
	color: var(--dv-c-muted);
	margin: 0 0 10px;
}

.dv-contacts__address {
	font-size: 21px;
	line-height: 1.4;
	margin: 0;
	word-break: break-word;
}

.dv-contacts__phones {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dv-contacts__phones a {
	display: block;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--dv-c-green);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dv-contacts__phones a:hover {
	color: #1e7e34;
}

.dv-contacts__hours {
	font-size: 21px;
	line-height: 1.4;
}

.dv-contacts__hours strong,
.dv-contacts__hours b {
	font-weight: 700;
}

.dv-contacts__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.dv-contacts__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: var(--dv-c-icon-bg);
	border-radius: 4px;
	flex-shrink: 0;
}

.dv-contacts__social img {
	max-width: 28px;
	max-height: 28px;
	object-fit: contain;
}

.dv-contacts__map-title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 1rem;
}

.dv-contacts__map-wrap {
	position: relative;
	width: 100%;
	margin-bottom: 2.5rem;
	border-radius: 4px;
	overflow: hidden;
	background: #eee;
	min-height: 280px;
}

.dv-contacts__map-wrap iframe {
	display: block;
	width: 100%;
	min-height: 280px;
	border: 0;
}

@media (min-width: 992px) {
	.dv-contacts__map-wrap {
		min-height: 500px;
	}
	.dv-contacts__map-wrap iframe {
		min-height: 500px;
	}
}

.yandex-map-host.yandex-map-pending {
	min-height: 280px;
	background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

@media (min-width: 992px) {
	.yandex-map-host.yandex-map-pending {
		min-height: 500px;
	}
}

.dv-contacts__gallery {
	position: relative;
}

.dv-contacts__gallery-track-wrap {
	overflow: hidden;
}

@media (max-width: 991px) {
	.dv-contacts__gallery-track-wrap {
		overflow: visible;
	}
}

.dv-contacts__gallery-track {
	display: flex;
	gap: 20px;
	transition: transform 0.35s ease;
	will-change: transform;
}

@media (max-width: 991px) {
	.dv-contacts__gallery-track {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		transform: none !important;
		transition: none;
	}
}

.dv-contacts__gallery-slide {
	flex: 0 0 calc(50% - 10px);
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #f5f5f5;
	cursor: pointer;
	border: none;
	padding: 0;
	position: relative;
}

@media (max-width: 991px) {
	.dv-contacts__gallery-slide {
		flex: none;
		width: auto;
	}
}

.dv-contacts__gallery-slide--wide {
	grid-column: 1 / -1;
	aspect-ratio: 456 / 220;
}

@media (min-width: 992px) {
	.dv-contacts__gallery-slide--wide {
		grid-column: auto;
		aspect-ratio: 1 / 1;
	}
}

.dv-contacts__gallery-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.2s ease;
	pointer-events: none;
}

.dv-contacts__gallery-eye {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	z-index: 1;
}

.dv-contacts__gallery-eye-inner {
	position: relative;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
}

.dv-contacts__gallery-eye-frame {
	position: absolute;
	inset: 0;
	width: 36px;
	height: 36px;
	max-width: none;
	max-height: none;
	display: block;
	pointer-events: none;
}

.dv-contacts__gallery-eye-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 10px;
	max-width: none;
	max-height: none;
	transform: translate(-50%, -50%);
	display: block;
	pointer-events: none;
}

@media (min-width: 992px) {
	.dv-contacts__gallery-slide:hover::after {
		background: rgba(0, 0, 0, 0.3);
	}
	.dv-contacts__gallery-slide:hover .dv-contacts__gallery-eye {
		opacity: 1;
	}
}

.dv-contacts__gallery-nav img {
	display: block;
	width: 40px;
	height: 40px;
}

.dv-contacts__gallery-slide > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (min-width: 992px) {
	.dv-contacts__gallery-track {
		display: flex;
	}

	.dv-contacts__gallery-slide {
		flex: 0 0 calc(25% - 15px);
		flex-shrink: 0;
		cursor: pointer;
	}
}

.dv-contacts__gallery--static .dv-contacts__gallery-nav {
	display: none !important;
}

.dv-contacts__gallery-nav {
	display: none;
}

@media (min-width: 992px) {
	.dv-contacts__gallery-nav {
		display: flex;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
		height: 40px;
		align-items: center;
		justify-content: center;
		border: none;
		background: transparent;
		cursor: pointer;
		padding: 0;
		z-index: 2;
	}
	.dv-contacts__gallery-nav--prev {
		left: -12px;
	}
	.dv-contacts__gallery-nav--next {
		right: -12px;
	}
	.dv-contacts__gallery-nav img {
		width: 40px;
		height: 40px;
	}
}

.dv-contacts__panel[hidden] {
	display: none !important;
}

/* Lightbox (мобила + по клику на десктопе при узком окне) */
.dv-contacts-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10050;
	background: rgba(0, 0, 0, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.dv-contacts-lightbox.is-open {
	display: flex;
}

.dv-contacts-lightbox__img {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
}

.dv-contacts-lightbox__close,
.dv-contacts-lightbox__arrow {
	position: absolute;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dv-contacts-lightbox__close {
	top: 16px;
	right: 16px;
}

.dv-contacts-lightbox__arrow--prev {
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
}

.dv-contacts-lightbox__arrow--next {
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
}

/* Скрыть старый блок CMS, если остался в админке */
.dv-contacts-legacy-cms {
	display: none !important;
}
