/*
 * Стили страницы контактов.
 *
 * Этот файл собран из бывших inline-стилей шаблона `contact-3tochki.php`.
 * Теперь фронтовое оформление страницы контактов хранится отдельно от PHP,
 * подключается только на нужной странице и не смешивается с разметкой.
 */

html {
	scroll-behavior: smooth;
}

.contact-local-intro {
	margin: 10px 0 30px;
	padding: 22px 24px;
	border: 1px solid #d9d9d9;
	background: #fafafa;
}

.contact-lead {
	margin: 0 0 24px;
	padding: 18px 20px;
	border-left: 4px solid #d60000;
	background: #fff;
	font-size: 17px;
	line-height: 1.7;
}

.contact-local-intro p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.6;
}

.contact-local-points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.contact-local-points li {
	padding: 0;
	border: 1px solid #d9d9d9;
	background: #fff;
	font-weight: 700;
}

.contact-local-points a {
	display: block;
	padding: 6px 12px;
	color: #2f2f2f;
	text-decoration: none;
}

.contact-local-points a:hover,
.contact-local-points a:focus {
	background: #fff4f4;
	color: #cf2027;
	text-decoration: none;
}

.contact-map-canvas {
	width: 100%;
	height: 400px;
}

.contact-local-grid {
	margin-top: 35px;
}

.contact-local-card {
	height: 100%;
	margin-bottom: 30px;
	padding: 24px;
	border: 1px solid #dedede;
	background: #fff;
	scroll-margin-top: 32px;
	transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}

.contact-local-card:target {
	border-color: #cf2027;
	background: #fff8f8;
	box-shadow: 0 0 0 4px rgba(207, 32, 39, 0.12);
}

.contact-local-card-flash {
	border-color: #cf2027;
	background: #fff8f8;
	box-shadow: 0 0 0 4px rgba(207, 32, 39, 0.12);
}

.contact-local-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.contact-local-number {
	display: inline-block;
	min-width: 40px;
	padding: 6px 10px;
	background: #2f2f2f;
	color: #fff;
	font-weight: 700;
	text-align: center;
}

.contact-local-district {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #c8c8c8;
	background: #f5f5f5;
	font-weight: 700;
	text-transform: uppercase;
}

.contact-local-card h2 {
	margin: 0 0 38px;
	font-size: 26px;
}

.contact-local-meta {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.5;
}

.contact-local-meta strong {
	display: inline-block;
	min-width: 150px;
}

.contact-local-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.contact-local-actions .btn-item {
	margin: 0;
	min-width: 180px;
	padding: 13px 18px;
	text-align: center;
	font-weight: 700;
	border: 1px solid #cf2027;
	background: #cf2027;
	color: #fff;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.contact-local-actions .btn-item:hover,
.contact-local-actions .btn-item:focus {
	background: #a90007;
	border-color: #a90007;
	color: #fff;
	text-decoration: none;
}

.contact-local-actions .btn-item:nth-child(2) {
	background: #2f2f2f;
	border-color: #2f2f2f;
}

.contact-local-actions .btn-item:nth-child(2):hover,
.contact-local-actions .btn-item:nth-child(2):focus {
	background: #1d1d1d;
	border-color: #1d1d1d;
}

.contact-local-actions .btn-item:nth-child(3) {
	background: #fff;
	color: #cf2027;
}

.contact-local-actions .btn-item:nth-child(3):hover,
.contact-local-actions .btn-item:nth-child(3):focus {
	background: #fff4f4;
	border-color: #cf2027;
	color: #a90007;
}

.contact-reviews {
	padding: 56px 0 20px;
	background: #f5f6f8;
}

.contact-reviews__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.contact-reviews__headline {
	max-width: 700px;
}

.contact-reviews__badge {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #ffe082;
	color: #2f2f2f;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.contact-reviews__headline h2 {
	margin: 0 0 32px;
	font-size: 34px;
	line-height: 1.2;
}

.contact-reviews__headline p {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: #555;
}

.contact-reviews__summary {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 260px;
	padding: 18px 20px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(25, 28, 33, 0.08);
}

.contact-reviews__summary-score {
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
	color: #2f2f2f;
}

.contact-reviews__summary-stars {
	margin-bottom: 6px;
	color: #ffb400;
	font-size: 18px;
	letter-spacing: 2px;
}

.contact-reviews__summary-meta,
.contact-reviews__summary-source {
	font-size: 14px;
	color: #666;
}

.contact-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.contact-review-card {
	padding: 22px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(25, 28, 33, 0.08);
}

.contact-review-card__top {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}

.contact-review-card__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #ffcc00;
	color: #2f2f2f;
	font-size: 18px;
	font-weight: 700;
}

.contact-review-card__author {
	font-size: 18px;
	font-weight: 700;
	color: #2f2f2f;
}

.contact-review-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 4px;
	font-size: 13px;
	color: #666;
}

.contact-review-card__rating {
	margin-bottom: 14px;
	color: #ffb400;
	font-size: 18px;
	letter-spacing: 2px;
}

.contact-review-card__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.7;
	color: #2f2f2f;
}

.contact-review-card__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 12px;
	padding-top: 14px;
	border-top: 1px solid #ececec;
	font-size: 13px;
	color: #666;
}

.contact-review-card__source {
	font-weight: 700;
	color: #d60000;
}

@media (max-width: 991px) {
	.contact-reviews__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.contact-local-intro {
		padding: 18px;
	}

	.contact-local-card {
		padding: 18px;
	}

	.contact-local-card h2 {
		font-size: 22px;
	}

	.contact-local-meta strong {
		display: block;
		min-width: 0;
		margin-bottom: 2px;
	}

	.contact-local-actions .btn-item {
		width: 100%;
		min-width: 0;
	}

	.contact-reviews {
		padding-top: 42px;
	}

	.contact-reviews__headline h2 {
		font-size: 28px;
	}

	.contact-reviews__summary {
		width: 100%;
	}

	.contact-reviews__grid {
		grid-template-columns: 1fr;
	}
}
