/* SK1 W3: страница Kontakt по макетам 2.5 и 2.6 (inc/contact-page.php).
   Мобайл до 767: колонки раскрыты (display: contents), порядок через order.
   Планшет 768..1023 и десктоп от 1024: две колонки, низ справа (фото) тянется до низа слева.
   Правило DF1: overflow-x: hidden на html и body не ставим. */

.nl-kt { font-family: var(--wp--preset--font-family--open-sans, "Open Sans", sans-serif); color: var(--nl-ink, #222222); }
.nl-kt__h1 { font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.nl-kt__lead { max-width: 560px; font-size: 15px; line-height: 1.7; color: var(--nl-mute, #6e6e6e); margin: 14px 0 0; }

.nl-kt-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--nl-mute, #6e6e6e); margin: 0; }
.nl-kt a { color: var(--nl-ink, #222222); }

.nl-kt-grid { display: flex; flex-direction: column; margin-top: 32px; }
.nl-kt-left, .nl-kt-right { display: contents; }

/* Порядок на мобайле: кнопки, адрес и часы, карта, как добраться, Instagram, фото. */
.nl-kt-btns { order: 1; display: flex; flex-direction: column; gap: 10px; }
.nl-kt-main { order: 2; margin-top: 32px; border-top: 1px solid var(--nl-ink, #222222); }
.nl-kt-map { order: 3; margin: 32px 0 0; }
.nl-kt-right__maps { order: 4; margin-top: 12px; }
.nl-kt-how { order: 5; margin-top: 36px; border-top: 1px solid var(--nl-ink, #222222); padding-top: 14px; }
.nl-kt-insta { order: 6; }
.nl-kt-photo { order: 7; margin: 28px 0 0; }

.nl-kt-btn {
	box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 56px; padding: 0 18px; border: 1px solid var(--nl-ink, #222222); border-radius: 0;
	font: 700 14px/1.2 var(--wp--preset--font-family--open-sans, "Open Sans", sans-serif); text-decoration: none;
}
.nl-kt a.nl-kt-btn--call { background: var(--nl-ink, #222222); color: #fff; }
.nl-kt a.nl-kt-btn--write { background: none; color: var(--nl-ink, #222222); }
.nl-kt-btn__v { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.nl-kt-btn svg { flex: 0 0 auto; }

.nl-kt-big-wrap { display: none; }
.nl-kt-big { display: block; font-size: 30px; font-weight: 300; line-height: 1.2; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-decoration: none; }
.nl-kt-big:hover { text-decoration: underline; }
.nl-kt-label--gap { margin-top: 26px; }

.nl-kt-row { padding: 14px 0; border-bottom: 1px solid var(--nl-line, #e6e3dc); }
.nl-kt-row .nl-kt-label { margin-bottom: 6px; }
.nl-kt-addr { display: block; font-size: 15px; font-weight: 600; }
.nl-kt-row__maps { display: block; margin-top: 8px; }
.nl-kt-maplink { font-size: 13px; font-weight: 600; text-decoration: underline; }
.nl-kt-hours { margin: 0; font-size: 14px; line-height: 1.9; }
.nl-kt-hours__row { display: flex; justify-content: space-between; gap: 16px; max-width: 260px; }
.nl-kt-hours dt { margin: 0; }
.nl-kt-hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.nl-kt-map { position: relative; }
.nl-kt-map__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nl-surface, #f7f5f1); }
.nl-kt-map__attr { font-size: 10.5px; color: var(--nl-mute, #6e6e6e); margin-top: 6px; }

.nl-kt-how p { font-size: 14px; line-height: 1.7; color: var(--nl-mute, #6e6e6e); margin: 10px 0 0; }

.nl-kt-insta {
	display: flex; align-items: center; gap: 12px; margin-top: 28px; padding: 16px 0;
	border-top: 1px solid var(--nl-line, #e6e3dc); border-bottom: 1px solid var(--nl-line, #e6e3dc); text-decoration: none;
}
.nl-kt-insta__t { flex: 1; font-size: 14px; font-weight: 600; }
.nl-kt-insta__h { font-size: 13px; color: var(--nl-mute, #6e6e6e); }

.nl-kt-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.nl-kt-photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nl-kt-photo--ph {
	display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; box-sizing: border-box;
	background: repeating-linear-gradient(135deg, var(--nl-surface, #f7f5f1) 0 14px, var(--nl-warm, #faf7f2) 14px 28px);
	border: 1px dashed var(--nl-line, #e6e3dc); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nl-mute, #6e6e6e);
}

.nl-kt .nl-rev--contact { margin-top: 40px; }

.nl-kt-links { display: flex; flex-direction: column; margin-top: 40px; }
.nl-kt-links__a { display: flex; justify-content: space-between; padding: 15px 0; border-top: 1px solid var(--nl-line, #e6e3dc); font-size: 14px; font-weight: 600; text-decoration: none; }
.nl-kt-links__a:last-child { border-bottom: 1px solid var(--nl-line, #e6e3dc); }

@media (min-width: 768px) {
	.nl-kt__h1 { font-size: 38px; }
	.nl-kt__lead { font-size: 16px; margin-top: 18px; }
	.nl-kt-label { font-size: 11px; }

	.nl-kt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: stretch; margin-top: 44px; }
	.nl-kt-left { display: flex; flex-direction: column; gap: 44px; max-width: 560px; }
	.nl-kt-right { display: flex; flex-direction: column; gap: 12px; }
	.nl-kt-btns { display: none; }
	.nl-kt-main { margin-top: 0; padding-top: 18px; }
	.nl-kt-big-wrap { display: block; }
	.nl-kt-big { font-size: 26px; }
	.nl-kt-rows { margin-top: 32px; border-top: 1px solid var(--nl-line, #e6e3dc); }
	.nl-kt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: baseline; }
	.nl-kt-row .nl-kt-label { margin-bottom: 0; }
	.nl-kt-row__maps { display: none; }
	.nl-kt-hours { font-size: 15px; line-height: 1.8; }
	.nl-kt-how { margin-top: 0; padding-top: 18px; }
	.nl-kt-how p { font-size: 15px; }
	.nl-kt-left > .nl-kt-how + .nl-kt-insta { margin-top: -16px; }
	.nl-kt-insta { margin-top: 0; }
	.nl-kt-insta__t { font-size: 15px; }
	.nl-kt-map { margin: 0; }
	.nl-kt-right__maps { margin-top: 0; }
	/* Фото тянется: низ правой колонки совпадает с низом левой. */
	.nl-kt-photo { flex: 1 1 auto; min-height: 220px; aspect-ratio: auto; margin-top: 20px; }
	/* Без фото (прод, пока клиент не дал фото): тянется карта, колонки всё равно кончаются вместе. */
	.nl-kt-right--nophoto .nl-kt-map { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
	.nl-kt-right--nophoto .nl-kt-map__img { flex: 1 1 auto; height: 100%; min-height: 300px; aspect-ratio: auto; object-fit: cover; }

	.nl-kt .nl-rev--contact { margin-top: 56px; }
	.nl-kt-links { flex-direction: row; flex-wrap: wrap; gap: 12px 40px; border-top: 1px solid var(--nl-line, #e6e3dc); padding-top: 20px; margin-top: 44px; }
	.nl-kt-links__a, .nl-kt-links__a:last-child { display: inline; padding: 0; border: 0; }
}

@media (min-width: 1024px) {
	.nl-kt__h1 { font-size: 46px; line-height: 1.08; }
	.nl-kt__lead { font-size: 18px; }
	.nl-kt-grid { gap: 56px; margin-top: 56px; }
	.nl-kt-left { gap: 56px; }
	.nl-kt-big { font-size: 30px; }
	.nl-kt .nl-rev--contact { margin-top: 72px; }
	.nl-kt-links { margin-top: 56px; }
}
