/* /contacts/ — 1:1 к макету */

:root {
	--c-bordo: #9D283A;
	--c-bordo-hover: #B0173A;
	--c-text: #1a1a1a;
	--c-muted: #7a7a7a;
	--c-label: #9a9a9a;
	--c-map-bg: #f3f5f7;
	--c-card-border: #ebebeb;
}

.contacts-offices,
.contacts-map,
.contacts-ask {
	font-family: Roboto, Arial, Helvetica, sans-serif;
}

.contacts-offices .standart_width,
.contacts-map .standart_width,
.contacts-ask .standart_width {
	max-width: 1470px;
	width: 100%;
	padding: 0 85px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* ===== Офисы ===== */
.contacts-offices {
	padding: 72px 0 64px;
	background: #fff;
}

.contacts-offices__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
	margin-bottom: 40px;
}

.contacts-offices__label,
.contacts-map__label {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--c-label);
	line-height: 1.2;
}

.contacts-offices__title,
.contacts-map__title {
	margin: 0;
	padding: 0;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--c-text);
	text-align: left;
}

.contacts-offices__title:before,
.contacts-offices__title:after,
.contacts-map__title:before,
.contacts-map__title:after,
.contacts-ask__title:before,
.contacts-ask__title:after {
	display: none !important;
	content: none !important;
}

.contacts-offices__lead {
	margin: 0;
	max-width: 360px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--c-muted);
	text-align: right;
}

.contacts-offices__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.contacts-office {
	background: #fff;
	border: 1px solid var(--c-card-border);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(20, 20, 20, 0.05);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	overflow: hidden;
}

.contacts-office:hover {
	border-color: #e2c8ce;
	box-shadow: 0 12px 34px rgba(157, 40, 58, 0.08);
}

.contacts-office.is-active {
	border-color: var(--c-bordo);
	border-top-width: 3px;
	box-shadow: 0 12px 34px rgba(157, 40, 58, 0.1);
}

.contacts-office__inner {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 20px;
	padding: 20px;
	align-items: stretch;
	box-sizing: border-box;
}

.contacts-office__media {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #2a1018;
	min-height: 220px;
}

.contacts-office__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
}

.contacts-office__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 6px 11px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--c-bordo);
	background: #ffe8ee;
	border-radius: 999px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
	white-space: nowrap;
}

.contacts-office.is-active .contacts-office__badge {
	opacity: 1;
}

.contacts-office__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 4px 4px 2px 0;
}

.contacts-office__city {
	margin: 0 0 14px;
	padding: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-text);
	text-align: left;
}

.contacts-office__meta {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.contacts-office__meta li,
.contacts-office__meta.not_style > li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #555;
	position: relative;
}

.contacts-office__meta li:before,
.contacts-office__meta.not_style > li:before {
	display: none !important;
	content: none !important;
}

.contacts-office__meta a {
	color: #555;
	text-decoration: none;
}

.contacts-office__meta a:hover {
	color: var(--c-bordo);
}

.contacts-office__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.contacts-office__icon img {
	display: block;
	width: 18px;
	height: 18px;
	object-fit: contain;
}

.contacts-office__btn-icon {
	flex-shrink: 0;
	display: block;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.contacts-office__btn-icon--light {
	filter: brightness(0) invert(1);
}

.contacts-office__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
}

.contacts-office__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 8px;
	transition: 0.2s;
	white-space: nowrap;
	box-sizing: border-box;
}

.contacts-office__btn svg,
.contacts-office__btn-icon {
	flex-shrink: 0;
}

.contacts-office__btn--primary {
	color: #fff;
	background: var(--c-bordo);
	border: 1px solid var(--c-bordo);
}

.contacts-office__btn--primary:hover {
	background: var(--c-bordo-hover);
	border-color: var(--c-bordo-hover);
	color: #fff;
}

.contacts-office__btn--outline {
	color: var(--c-bordo);
	background: #fff;
	border: 1px solid var(--c-bordo);
}

.contacts-office__btn--outline:hover {
	background: rgba(157, 40, 58, 0.05);
	color: var(--c-bordo);
}

/* ===== Карта ===== */
.contacts-map {
	padding: 56px 0 0;
	background: var(--c-map-bg);
}

.contacts-map__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.contacts-map__tabs {
	display: inline-flex;
	padding: 4px;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 12px;
	gap: 4px;
}

.contacts-map__tab {
	appearance: none;
	border: 0;
	background: transparent;
	min-height: 38px;
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	color: #555;
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s;
}

.contacts-map__tab:hover {
	color: var(--c-bordo);
}

.contacts-map__tab.is-active {
	color: #fff;
	background: var(--c-bordo);
}

.contacts-map__frame-wrap {
	position: relative;
	width: 100%;
	border-radius: 0;
	overflow: hidden;
	background: #e6e9ed;
	min-height: 480px;
}

.contacts-map__frame {
	display: block;
	width: 100%;
	height: 480px;
	border: 0;
	background: #e6e9ed;
}

.contacts-map__open {
	position: absolute;
	left: max(16px, calc((100% - 1470px) / 2 + 85px));
	bottom: 20px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #222;
	background: #fff;
	border-radius: 8px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.contacts-map__open:hover {
	color: var(--c-bordo);
}

/* ===== Остались вопросы ===== */
.contacts-ask {
	padding: 8px 0 8px;
	background: var(--c-map-bg);
}

.contacts-ask__row {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 26px 32px;
	background: #eceff2;
	border-radius: 14px;
}

.contacts-ask__title {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-text);
	text-align: left;
	white-space: nowrap;
}

.contacts-ask__divider {
	flex: 0 0 auto;
	width: 1px;
	height: 42px;
	background: #cfd4d9;
}

.contacts-ask__text {
	margin: 0;
	flex: 1 1 auto;
	max-width: 280px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--c-muted);
}

.contacts-ask__btn {
	appearance: none;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	color: #fff;
	background: var(--c-bordo);
	border: 1px solid var(--c-bordo);
	border-radius: 8px;
	cursor: pointer;
	transition: 0.2s;
	white-space: nowrap;
	margin-left: auto;
}

.contacts-ask__btn:hover {
	background: var(--c-bordo-hover);
	border-color: var(--c-bordo-hover);
}

.contacts-ask__note {
	margin: 0;
	flex: 0 0 auto;
	max-width: 120px;
	font-size: 12px;
	line-height: 1.4;
	color: #8a8a8a;
}

.contacts-ask__note span {
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (max-width: 1200px) {
	.contacts-office__inner {
		grid-template-columns: 150px minmax(0, 1fr);
		gap: 16px;
		padding: 16px;
	}

	.contacts-ask__row {
		flex-wrap: wrap;
		gap: 14px 20px;
	}

	.contacts-ask__btn {
		margin-left: 0;
	}

	.contacts-ask__note {
		max-width: none;
	}
}

@media (max-width: 991px) {
	.contacts-offices .standart_width,
	.contacts-map .standart_width,
	.contacts-ask .standart_width {
		padding: 0 30px;
	}

	.contacts-map__open {
		left: 30px;
	}

	.contacts-offices__head,
	.contacts-map__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.contacts-offices__lead {
		text-align: left;
		max-width: none;
	}

	.contacts-offices__grid {
		grid-template-columns: 1fr;
	}

	.contacts-offices__title,
	.contacts-map__title {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	.contacts-offices {
		padding: 44px 0 36px;
	}

	.contacts-map {
		padding: 36px 0 0;
	}

	.contacts-map__open {
		left: 20px;
	}

	.contacts-ask {
		padding: 8px 0;
	}

	.contacts-offices .standart_width,
	.contacts-map .standart_width,
	.contacts-ask .standart_width {
		padding: 0 20px;
	}

	.contacts-office__inner {
		grid-template-columns: 1fr;
	}

	.contacts-office__media,
	.contacts-office__img {
		min-height: 180px;
	}

	.contacts-office__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.contacts-office__btn {
		width: 100%;
	}

	.contacts-map__frame,
	.contacts-map__frame-wrap {
		min-height: 320px;
		height: 320px;
	}

	.contacts-ask__divider {
		display: none;
	}

	.contacts-ask__title {
		font-size: 22px;
		white-space: normal;
	}

	.contacts-ask__text {
		max-width: none;
	}

	.contacts-ask__btn {
		width: 100%;
	}
}
