/*
 * _kontakty.css — стили Hub-страницы /kontakty/ (page-kontakty.php).
 *
 * Структура: hero + channels grid + schedule 2-col + full-bleed map + FAQ accordion.
 * Mohawk Industrial: антрацит + жёлтый, mono для tech-info, display для headings,
 * generous negative space, accent borders.
 *
 * Modules:
 *   1. .mh__kontakty-hero          — eyebrow + h1 + lead (reuse .mh__section-head)
 *   2. .mh__kontakty-channels-*    — grid 4 cols карточек каналов связи
 *   3. .mh__kontakty-schedule-*    — 2-col расписание + адрес-детали
 *   4. .mh__kontakty-map           — full-bleed iframe 70vh с overlay CTA
 *   5. .mh__kontakty-faq-*         — accordion на native <details>/<summary>
 *
 * P16 polish 2026-05-20: первая реализация.
 */

/* ═══════════════════════════════════════════════════════════════
   1. HERO — bold asymmetric (P16b polish)
   ═══════════════════════════════════════════════════════════════ */

.mh__kontakty-hero {
	padding-top: 64px;
	padding-bottom: 48px;
}
.mh__kontakty-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 48px;
	align-items: end;
}
.mh__kontakty-hero-l {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.mh__kontakty-hero-h1 {
	font-family: var(--font-mh-display);
	font-size: clamp(48px, 6.5vw, 96px);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.025em;
	color: var(--fg);
	margin: 0;
}
.mh__kontakty-hero-h1 em {
	font-style: normal;
	color: var(--accent);
	font-weight: 800;
	position: relative;
}
.mh__kontakty-hero-h1 em::after {
	content: '';
	position: absolute;
	bottom: 0.05em;
	left: 0;
	right: 0;
	height: 0.08em;
	background: var(--accent);
	opacity: 0.25;
	z-index: -1;
}
.mh__kontakty-hero-lead {
	font-size: var(--text-h3-sm); /* 18px → token */
	line-height: 1.5;
	color: var(--fg-mute);
	max-width: 56ch;
	margin: 16px 0 0;
}

/* Декоративная «печать» (stamp) справа сверху hero — на mono-большом
   числе 04 (= 4 канала связи). Mohawk Industrial accent. */
.mh__kontakty-hero-r {
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
}
.mh__kontakty-hero-stamp {
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 28px 36px 24px;
	text-align: center;
	display: inline-flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
	transform: rotate(-2deg);
	box-shadow: 0 8px 24px -12px rgba(var(--rgb-black), 0.12);
}
.mh__kontakty-hero-stamp::before {
	content: '';
	position: absolute;
	inset: 8px;
	border: 1px solid var(--line);
	pointer-events: none;
}
.mh__kontakty-hero-stamp-num {
	font-family: var(--font-mh-display);
	font-size: 72px;
	font-weight: 200;
	line-height: 0.9;
	color: var(--accent);
	letter-spacing: -0.04em;
}
.mh__kontakty-hero-stamp-label {
	font-size: var(--text-eyebrow); /* 11px → token */
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fg);
	line-height: 1.35;
}
.mh__kontakty-hero-stamp-sub {
	font-size: var(--text-mono-3xs);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px dashed var(--line);
	line-height: 1;
}

@media (max-width: 1024px) {
	.mh__kontakty-hero-grid { grid-template-columns: 1fr; gap: 24px; }
	.mh__kontakty-hero-r { justify-content: flex-start; }
	.mh__kontakty-hero-stamp { padding: 20px 28px 16px; }
	.mh__kontakty-hero-stamp-num { font-size: 56px; }
}

/* ═══════════════════════════════════════════════════════════════
   2. CHANNELS GRID
   ═══════════════════════════════════════════════════════════════ */

.mh__kontakty-channels {
	padding-top: 0;
}

.mh__kontakty-channels-grid {
	display: grid;
	/* auto-fit + minmax: карточки заполняют доступную ширину ровно сколько
	   их есть (3, 4 или больше). Не оставляют пустых ячеек grid'а.
	   220px = минимальная читабельная ширина с padding 24px + 32px icon. */
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	background: var(--line);
}

/* Каждая карточка канала — editorial с большим номером */
.mh__kontakty-channel {
	background: var(--paper);
	padding: 24px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	transition: background 200ms var(--ease-out, ease), transform 200ms var(--ease-out, ease);
	min-height: 260px;
	border-top: 2px solid transparent;
}
.mh__kontakty-channel:hover {
	background: var(--bg);
	border-top-color: var(--accent);
	transform: translateY(var(--motion-lift-y));
}

/* Head: большой номер слева + иконка справа */
.mh__kontakty-channel-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 6px;
	min-height: 48px;
}
.mh__kontakty-channel-num {
	font-family: var(--font-mh-display);
	font-size: var(--text-h2-md); /* 36px → token */
	font-weight: 200;
	line-height: 0.85;
	color: var(--fg-quiet);
	letter-spacing: -0.04em;
	transition: color 200ms var(--ease-out, ease);
}
.mh__kontakty-channel:hover .mh__kontakty-channel-num {
	color: var(--accent);
}
.mh__kontakty-channel-icon {
	width: 28px;
	height: 28px;
	color: var(--accent);
	flex-shrink: 0;
}
.mh__kontakty-channel-icon svg {
	width: 100%;
	height: 100%;
}

.mh__kontakty-channel-label {
	font-size: var(--text-mono-2xs);
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	line-height: 1;
}

.mh__kontakty-channel-value {
	font-family: var(--font-mh-display);
	font-size: var(--text-h3-sm); /* 18px → token */
	font-weight: 700;
	color: var(--fg);
	letter-spacing: -0.01em;
	line-height: 1.25;
	word-break: break-word;
}

.mh__kontakty-channel-sub {
	font-size: var(--text-mono-2xs); /* 10px → token */
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	line-height: 1.3;
}

.mh__kontakty-channel-cta {
	margin-top: auto;
	padding-top: 12px;
	font-family: var(--font-mh-mono);
	font-size: var(--text-eyebrow); /* 11px → token */
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap 200ms var(--ease-out, ease);
}
.mh__kontakty-channel-cta:hover {
	gap: 10px;
}
.mh__kontakty-channel-cta .mh__btn-arr {
	font-family: var(--font-mh-mono);
	font-size: var(--text-body-sm);
}

/* ═══════════════════════════════════════════════════════════════
   3. SCHEDULE + ADDRESS (2-col)
   ═══════════════════════════════════════════════════════════════ */

.mh__kontakty-schedule {
	padding-top: 48px;
}

.mh__kontakty-schedule-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--line);
}

.mh__kontakty-schedule-block {
	background: var(--paper);
	padding: 36px 36px 40px;
	display: flex;
	flex-direction: column;
	gap: 22px;
	position: relative;
	overflow: hidden;
}
/* Декоративные диагональные полосы в углу блока — Mohawk pattern */
.mh__kontakty-schedule-block::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	height: 120px;
	background:
		repeating-linear-gradient(
			135deg,
			transparent 0 8px,
			rgba(var(--rgb-graphite-900, 26, 26, 26), 0.04) 8px 16px
		);
	clip-path: polygon(100% 0, 100% 100%, 0 0);
	pointer-events: none;
}

.mh__kontakty-block-eyebrow {
	font-size: var(--text-eyebrow); /* 11px → token */
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.mh__kontakty-block-eyebrow::before {
	content: '';
	width: 24px;
	height: 1px;
	background: var(--accent);
}

/* Schedule rows */
.mh__kontakty-schedule-rows {
	display: grid;
	grid-template-columns: minmax(80px, max-content) 1fr;
	gap: 14px 28px;
	margin: 0;
}
.mh__kontakty-schedule-row {
	display: contents;
}
.mh__kontakty-schedule-row dt {
	font-size: var(--text-mono-sm); /* 12px → token */
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fg);
	margin: 0;
}
.mh__kontakty-schedule-row dd {
	font-size: var(--text-body-sm); /* 14px → token */
	letter-spacing: 0.02em;
	color: var(--fg);
	margin: 0;
}

.mh__kontakty-schedule-note {
	font-size: var(--text-eyebrow); /* 11px → token */
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	padding-top: 14px;
	margin: 0;
	border-top: 1px dashed var(--line);
	line-height: 1.4;
}

/* Address */
.mh__kontakty-address {
	font-size: var(--text-body);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--fg);
	line-height: 1.3;
	margin: 0;
}

.mh__kontakty-address-details {
	font-family: var(--font-mh-body);
	font-size: var(--text-body-sm); /* 14px → token */
	line-height: 1.55;
	color: var(--fg-mute);
}

/* ═══════════════════════════════════════════════════════════════
   4. MAP (full-bleed, 70vh)
   ═══════════════════════════════════════════════════════════════ */

.mh__kontakty-map {
	position: relative;
	height: clamp(400px, 70vh, 720px);
	margin: 32px 0 0;
	background: var(--bg);
	overflow: hidden;
}

.mh__kontakty-map-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Scroll-jacking fix: пока map-locked=true, iframe pointer-events:none
   (вся wheel прокручивает страницу). Overlay-кнопка ловит первый клик
   → переключает в map-locked=false, iframe становится интерактивной. */
.mh__kontakty-map[data-map-locked="true"] .mh__kontakty-map-iframe {
	pointer-events: none;
}
.mh__kontakty-map-overlay {
	position: absolute;
	inset: 0;
	background: rgba(var(--rgb-graphite-900, 26, 26, 26), 0.05);
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font: inherit;
	z-index: 1;
	transition: background 200ms var(--ease-out, ease);
}
.mh__kontakty-map-overlay:hover {
	background: rgba(var(--rgb-graphite-900, 26, 26, 26), 0.12);
}
.mh__kontakty-map[data-map-locked="false"] .mh__kontakty-map-overlay {
	display: none;
}
.mh__kontakty-map-overlay-hint {
	background: var(--paper);
	color: var(--fg);
	padding: 12px 20px;
	font-size: var(--text-eyebrow); /* 11px → token */
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border: 1px solid var(--line);
	box-shadow: 0 8px 24px -8px rgba(var(--rgb-black), 0.18);
	transition: transform 200ms var(--ease-out, ease);
}
.mh__kontakty-map-overlay:hover .mh__kontakty-map-overlay-hint {
	transform: translateY(var(--motion-lift-y-md));
	border-color: var(--accent);
	color: var(--accent);
}

.mh__kontakty-map-cta {
	position: absolute;
	top: 16px;
	right: 24px;
	z-index: 2;
	box-shadow: 0 8px 24px -8px rgba(var(--rgb-black), 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   5. FAQ accordion (native <details>/<summary>)
   ═══════════════════════════════════════════════════════════════ */

.mh__kontakty-faq {
	padding-top: 96px;
	padding-bottom: 88px;
}
.mh__kontakty-faq .mh__h2 {
	font-size: clamp(40px, 5vw, 64px);
	letter-spacing: -0.02em;
}

.mh__kontakty-faq-list {
	display: flex;
	flex-direction: column;
	border-top: 2px solid var(--ink);
	margin-top: 32px;
}

.mh__kontakty-faq-item {
	border-bottom: 1px solid var(--line);
}

.mh__kontakty-faq-q {
	cursor: pointer;
	padding: 22px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-family: var(--font-mh-display);
	font-size: var(--text-h3-sm);
	font-weight: 600;
	color: var(--fg);
	letter-spacing: -0.005em;
	line-height: 1.35;
	list-style: none;
	transition: color 200ms var(--ease-out, ease);
}
.mh__kontakty-faq-q::-webkit-details-marker { display: none; }

.mh__kontakty-faq-q:hover { color: var(--accent); }

.mh__kontakty-faq-q-text {
	flex: 1;
}

.mh__kontakty-faq-q-icon {
	width: 28px;
	height: 28px;
	border: 1px solid var(--line);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-h3-sm); /* 18px → token */
	font-weight: 400;
	color: var(--fg-quiet);
	transition: transform 240ms var(--ease-out, ease), color 240ms var(--ease-out, ease), border-color 240ms var(--ease-out, ease);
	flex-shrink: 0;
}
.mh__kontakty-faq-item[open] .mh__kontakty-faq-q-icon {
	transform: rotate(45deg);
	color: var(--accent);
	border-color: var(--accent);
}

.mh__kontakty-faq-a {
	padding: 0 0 24px;
	max-width: 64ch;
	font-size: var(--text-body);
	line-height: 1.65;
	color: var(--fg-mute);
}

/* ═══════════════════════════════════════════════════════════════
   6. LEGAL (Реквизиты) — Mohawk technical bento
   ═══════════════════════════════════════════════════════════════ */

.mh__kontakty-legal {
	padding-top: 64px;
	padding-bottom: 72px;
	background: var(--bg-deep);
	margin-top: 32px;
}

.mh__kontakty-legal-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	margin: 24px 0 0;
}

.mh__kontakty-legal-cell {
	background: var(--paper);
	padding: 28px 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	min-height: 160px;
}

.mh__kontakty-legal-num {
	font-family: var(--font-mh-display);
	font-size: var(--text-h2-sm); /* 28px → token */
	font-weight: 200;
	color: var(--fg-quiet);
	line-height: 1;
	letter-spacing: -0.04em;
}

.mh__kontakty-legal-label {
	font-size: var(--text-mono-2xs); /* 10px → token */
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	margin: 0;
	line-height: 1;
}

.mh__kontakty-legal-value {
	font-family: var(--font-mh-mono);
	font-size: var(--text-body-sm);
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--fg);
	line-height: 1.4;
	margin: auto 0 0;
	word-break: break-word;
}

@media (max-width: 1024px) {
	.mh__kontakty-legal-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.mh__kontakty-legal-grid { grid-template-columns: 1fr; }
	.mh__kontakty-legal-cell { padding: 20px; min-height: auto; }
	.mh__kontakty-legal { padding-top: 48px; padding-bottom: 56px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.mh__kontakty-channels-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mh__kontakty-channel { min-height: 200px; }
	.mh__kontakty-map { height: clamp(360px, 60vh, 600px); }
}

@media (max-width: 640px) {
	.mh__kontakty-channels-grid {
		grid-template-columns: 1fr;
	}
	.mh__kontakty-channel {
		min-height: auto;
		padding: 24px 20px;
	}
	.mh__kontakty-schedule-grid {
		grid-template-columns: 1fr;
	}
	.mh__kontakty-schedule-block {
		padding: 24px 20px 28px;
	}
	.mh__kontakty-schedule-rows {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.mh__kontakty-schedule-row {
		display: grid;
		gap: 6px;
	}
	.mh__kontakty-map {
		height: 60vh;
		margin-top: 24px;
	}
	.mh__kontakty-map-cta {
		top: 12px;
		right: 12px;
		padding: 8px 14px;
		font-size: var(--text-eyebrow); /* 11px → token */
	}
	.mh__kontakty-faq {
		padding-top: 56px;
		padding-bottom: 56px;
	}
	.mh__kontakty-faq-q {
		font-size: var(--text-body);
		padding: 18px 0;
	}
	.mh__kontakty-faq-a {
		font-size: var(--text-body-sm); /* 14px → token */
		padding-bottom: 20px;
	}
}
