/* ============================================================
   FORESTOR — contact-us.css
   Постраничные стили страницы «Контакты» (slug: contact-us).
   Токены и общие компоненты — из main.css (.container,.btn,.gbox…).
   Брейкпоинты 1024px и 680px как в main.css.
   ============================================================ */

/* ---------- Ширина контента страницы (как в эталоне ~1308px по центру) ---------- */
.p-contact-us__hero > .container,
.p-contact-us__crumbs-wrap > .container {
	max-width: none;
	width: min(100% - 40px, 1308px);
	padding-inline: 0;
	margin-inline: auto;
}

/* ---------- Заголовок страницы ---------- */
.p-contact-us__hero {
	padding-block: clamp(14px, 1.4vw, 18px) 0;
}
.p-contact-us__back {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0 0 clamp(8px, 1vw, 14px) -6px;
	color: var(--ink);
	transition: color .2s ease, transform .2s ease;
}
.p-contact-us__back:hover {
	color: var(--red);
	transform: translateX(-3px);
}
.p-contact-us__title {
	margin: 0 0 clamp(18px, 2vw, 28px);
	font-size: clamp(36px, 4.6vw, 72px);
	font-weight: 600;
	line-height: 1.02;
	color: var(--ink);
}
.p-contact-us__cta {
	/* базовый вид — .btn.btn--dark из main.css */
}

/* ---------- Хлебные крошки ---------- */
.p-contact-us__crumbs-wrap {
	padding-block: clamp(20px, 2.4vw, 34px) clamp(14px, 1.6vw, 22px);
}
.p-contact-us__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
}
.p-contact-us__crumbs li {
	display: inline-flex;
	align-items: center;
}
.p-contact-us__crumbs a {
	color: var(--ink);
	font-weight: 500;
	transition: color .2s ease;
}
.p-contact-us__crumbs a:hover {
	color: var(--red);
}
.p-contact-us__crumbs-sep {
	display: inline-flex;
	color: var(--muted);
}
.p-contact-us__crumbs-current {
	color: var(--muted);
}

/* ---------- Карта + реквизиты (полноширинная секция) ---------- */
.p-contact-us__contact {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	align-items: stretch;
}

/* карта */
.p-contact-us__map {
	position: relative;
	min-height: 572px;
	height: 100%;
	overflow: hidden;
	background: var(--bg-soft);
}
.p-contact-us__map-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.p-contact-us__map-cover {
	position: absolute;
	inset: 0;
	z-index: 10;
	background: transparent;
	cursor: pointer;
}

/* колонки-реквизиты */
.p-contact-us__col {
	display: flex;
	flex-direction: column;
	padding: clamp(40px, 6.5vh, 84px) clamp(28px, 3.4vw, 56px);
}
.p-contact-us__col--a {
	background: var(--bg-soft);
}
.p-contact-us__col--b {
	background: var(--bg-soft);
}

.p-contact-us__badge {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: clamp(20px, 2.4vw, 30px);
	border-radius: 50%;
	background: var(--line);
	color: var(--ink);
}

.p-contact-us__col-title {
	margin: 0 0 14px;
	font-size: clamp(20px, 1.4vw, 24px);
	font-weight: 600;
	color: var(--ink);
}

.p-contact-us__phone {
	align-self: flex-start;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--red);
	transition: color .2s ease;
}
.p-contact-us__phone:hover {
	color: var(--ink);
}
.p-contact-us__email {
	align-self: flex-start;
	margin-bottom: clamp(18px, 2vw, 26px);
	font-size: 16px;
	line-height: 1.5;
	color: var(--red);
	transition: color .2s ease;
}
.p-contact-us__email:hover {
	color: var(--ink);
}

.p-contact-us__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-bottom: clamp(24px, 2.8vw, 34px);
}
.p-contact-us__social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	transition: opacity .2s ease;
}
.p-contact-us__social:hover {
	opacity: .78;
}
.p-contact-us__social-ic {
	display: inline-flex;
}
.p-contact-us__social-ic img {
	border-radius: 4px;
}
.p-contact-us__social--tg {
	color: var(--tg);
}
.p-contact-us__social--max {
	color: var(--max);
}

.p-contact-us__hours {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
}
.p-contact-us__hours p {
	margin: 0 0 12px;
}
.p-contact-us__hours p:last-child {
	margin-bottom: 0;
}

.p-contact-us__addr {
	margin: 0 0 clamp(16px, 1.8vw, 24px);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
}
.p-contact-us__maplink {
	align-self: flex-start;
	font-size: 16px;
	font-weight: 700;
	color: var(--red);
	transition: color .2s ease;
}
.p-contact-us__maplink:hover {
	color: var(--ink);
}

/* ---------- Модалка «Заказать звонок» (CF7 id=20711) ---------- */
.p-contact-us-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.p-contact-us-modal[hidden] {
	display: none;
}
.p-contact-us-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 16, 19, .55);
	backdrop-filter: blur(2px);
}
.p-contact-us-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 20px;
	padding: clamp(26px, 3vw, 40px);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
}
.p-contact-us-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--bg-soft);
	color: var(--ink);
	cursor: pointer;
	transition: .2s ease;
}
.p-contact-us-modal__close:hover {
	background: var(--ink);
	color: #fff;
}
.p-contact-us-modal__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: var(--ink);
}
.p-contact-us-modal__lead {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--muted);
}

/* ---------- Оформление полей Contact Form 7 ---------- */
.p-contact-us-modal .wpcf7-form p {
	margin: 0 0 14px;
}
.p-contact-us-modal input[type="text"],
.p-contact-us-modal input[type="tel"],
.p-contact-us-modal input[type="email"],
.p-contact-us-modal textarea,
.p-contact-us-modal select {
	width: 100%;
	padding: 14px 16px;
	font-family: var(--font);
	font-size: 15px;
	color: var(--text);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	transition: border-color .2s ease;
}
.p-contact-us-modal input[type="text"]:focus,
.p-contact-us-modal input[type="tel"]:focus,
.p-contact-us-modal input[type="email"]:focus,
.p-contact-us-modal textarea:focus,
.p-contact-us-modal select:focus {
	outline: none;
	border-color: var(--ink);
}
.p-contact-us-modal .wpcf7-list-item {
	display: block;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--muted);
}
.p-contact-us-modal .wpcf7-list-item a {
	color: var(--red);
}
.p-contact-us-modal .wpcf7-list-item a:hover {
	text-decoration: underline;
}
.p-contact-us-modal .wpcf7-submit {
	width: 100%;
	margin-top: 6px;
	padding: 16px 24px;
	font-family: var(--font);
	font-weight: 600;
	font-size: 15.5px;
	color: #fff;
	background: var(--ink);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background .2s ease;
}
.p-contact-us-modal .wpcf7-submit:hover {
	background: var(--red);
}
.p-contact-us-modal .wpcf7-spinner {
	margin: 10px auto 0;
	display: block;
}
.p-contact-us-modal .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 12px;
	color: var(--red);
}
.p-contact-us-modal .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.4;
	border-radius: 8px;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
	.p-contact-us__contact {
		grid-template-columns: 1fr 1fr;
	}
	.p-contact-us__map {
		grid-column: 1 / -1;
		min-height: 0;
		height: clamp(360px, 46vw, 480px);
	}
	.p-contact-us__col {
		padding-block: clamp(36px, 5vw, 56px);
	}
}

@media (max-width: 680px) {
	.p-contact-us__contact {
		grid-template-columns: 1fr;
	}
	.p-contact-us__map {
		height: clamp(300px, 62vw, 380px);
	}
	.p-contact-us__title {
		font-size: clamp(40px, 12vw, 60px);
	}
	.p-contact-us__col {
		padding: 32px 20px;
	}
}
