/**
 * Contact page and footer geometry hardening for release 0.1.31.
 *
 * This layer is intentionally late: it normalises the front end and Site
 * Editor without changing the confirmed contact content or Yandex embed.
 */

/* Contact cards: one alignment model at every breakpoint. */
body.et-page--corporate-contacts .et-corporate-contact-grid,
.editor-styles-wrapper .et-corporate-contact-grid {
	align-items: stretch;
	grid-auto-rows: 1fr;
	gap: clamp(0.85rem, 1.65vw, 1.3rem);
}

body.et-page--corporate-contacts .et-corporate-contact-grid > *,
.editor-styles-wrapper .et-corporate-contact-grid > * {
	min-width: 0;
}

body.et-page--corporate-contacts .et-corporate-contact-card,
.editor-styles-wrapper .et-corporate-contact-card {
	align-content: center;
	align-items: center;
	column-gap: 0.75rem;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	grid-template-rows: auto auto;
	min-height: 8.5rem;
	padding: clamp(1.05rem, 1.55vw, 1.3rem);
	row-gap: 0.25rem;
	text-align: left;
}

body.et-page--corporate-contacts .et-corporate-contact-card::before,
.editor-styles-wrapper .et-corporate-contact-card::before {
	align-self: center;
	background-size: 2.25rem 2.25rem;
	grid-column: 1;
	grid-row: 1 / -1;
	height: 2.75rem;
	justify-self: center;
	width: 2.75rem;
}

body.et-page--corporate-contacts .et-corporate-contact-card > *,
.editor-styles-wrapper .et-corporate-contact-card > * {
	box-sizing: border-box;
	grid-column: 2;
	justify-self: stretch;
	margin-inline: 0 !important;
	max-width: 100% !important;
	min-width: 0;
	text-align: left !important;
	width: auto;
}

body.et-page--corporate-contacts .et-corporate-contact-card h3,
.editor-styles-wrapper .et-corporate-contact-card h3 {
	align-self: end;
	font-size: clamp(0.95rem, 0.91rem + 0.14vw, 1.06rem);
	line-height: 1.3;
	margin-block: 0 !important;
	overflow-wrap: normal;
	word-break: normal;
}

body.et-page--corporate-contacts .et-corporate-contact-link,
.editor-styles-wrapper .et-corporate-contact-link {
	align-self: start;
	font-size: clamp(0.94rem, 0.91rem + 0.1vw, 1.02rem);
	line-height: 1.4;
	margin-block: 0 !important;
	max-width: 100%;
	overflow-wrap: normal;
	word-break: normal;
}

body.et-page--corporate-contacts .et-corporate-contact-link a,
.editor-styles-wrapper .et-corporate-contact-link a {
	display: inline-block;
	max-width: 100%;
	overflow-wrap: normal;
	text-align: left;
	word-break: normal;
}

body.et-page--corporate-contacts .et-corporate-contact-link--nowrap,
body.et-page--corporate-contacts .et-corporate-contact-link--nowrap a,
.editor-styles-wrapper .et-corporate-contact-link--nowrap,
.editor-styles-wrapper .et-corporate-contact-link--nowrap a {
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.012em;
	white-space: nowrap;
}

/* The map is a true wide child, not a content-width child of the constrained group. */
body.et-page--corporate-contacts .et-corporate-map-layout,
.editor-styles-wrapper .et-corporate-map-layout {
	box-sizing: border-box;
	max-width: var(--et-layout-wide, 81.5rem) !important;
	width: 100%;
}

body.et-page--corporate-contacts .et-yandex-map,
.editor-styles-wrapper .et-yandex-map {
	box-sizing: border-box;
	height: clamp(24rem, 38vw, 32rem);
	margin-inline: 0 !important;
	max-width: none !important;
	min-height: 0;
	width: 100% !important;
}

body.et-page--corporate-contacts .et-yandex-map iframe,
.editor-styles-wrapper .et-yandex-map iframe {
	display: block;
	height: 100% !important;
	max-width: none !important;
	min-height: 0;
	width: 100% !important;
}

/* Footer contacts: centre every 24x24 drawing on the first text line. */
.et-site-footer--v030 .et-footer-contact-item,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item {
	align-items: start !important;
	display: grid !important;
	grid-template-columns: 1.35rem minmax(0, 1fr);
	column-gap: 0.65rem;
	justify-content: stretch;
	min-width: 0;
}

.et-site-footer--v030 .et-footer-contact-icon,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-icon {
	align-self: start;
	box-sizing: border-box;
	display: block;
	grid-column: 1;
	height: 1.35rem;
	line-height: 0;
	margin: -0.06rem 0 0 !important;
	max-width: none !important;
	width: 1.35rem !important;
}

.et-site-footer--v030 .et-footer-contact-icon img,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-icon img {
	display: block;
	height: 1.35rem !important;
	margin: 0 !important;
	max-width: none !important;
	object-fit: contain;
	object-position: 50% 50%;
	width: 1.35rem !important;
}

.et-site-footer--v030 .et-footer-contact-item p,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item p {
	box-sizing: border-box;
	grid-column: 2;
	font-size: 0.8rem;
	line-height: 1.5;
	margin: 0 !important;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: normal;
	text-align: left;
	word-break: normal;
}

.et-site-footer--v030 .et-footer-contact-item--nowrap,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item--nowrap {
	min-width: 0;
}

.et-site-footer--v030 .et-footer-contact-item--nowrap p,
.et-site-footer--v030 .et-footer-contact-item--nowrap a,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item--nowrap p,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item--nowrap a {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.et-site-footer--v030 .et-footer-address-link,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-address-link {
	display: block;
	hyphens: none;
	overflow-wrap: normal;
	word-break: normal;
}

.et-site-footer--v030 .et-footer-address-link .et-address-part,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-address-link .et-address-part {
	display: inline-block;
	white-space: nowrap;
}

@media (min-width: 80rem) {
	body.et-page--corporate-contacts .et-corporate-contact-card,
	.editor-styles-wrapper .et-corporate-contact-card {
		min-height: 8.75rem;
	}

	body.et-page--corporate-contacts .et-corporate-contact-link,
	.editor-styles-wrapper .et-corporate-contact-link {
		font-size: 0.95rem;
	}
}

@media (max-width: 39.99rem) {
	body.et-page--corporate-contacts .et-corporate-contact-card,
	.editor-styles-wrapper .et-corporate-contact-card {
		grid-template-columns: 2.6rem minmax(0, 1fr);
		min-height: 7.75rem;
		padding: 1rem;
	}

	body.et-page--corporate-contacts .et-corporate-contact-card::before,
	.editor-styles-wrapper .et-corporate-contact-card::before {
		background-size: 2.1rem 2.1rem;
		height: 2.6rem;
		width: 2.6rem;
	}

	body.et-page--corporate-contacts .et-yandex-map,
	.editor-styles-wrapper .et-yandex-map {
		height: clamp(16rem, 75vw, 22rem);
	}
}

@media (max-width: 22rem) {
	body.et-page--corporate-contacts .et-corporate-contact-card,
	.editor-styles-wrapper .et-corporate-contact-card {
		column-gap: 0.6rem;
		grid-template-columns: 2.35rem minmax(0, 1fr);
		padding-inline: 0.85rem;
	}

	body.et-page--corporate-contacts .et-corporate-contact-card::before,
	.editor-styles-wrapper .et-corporate-contact-card::before {
		background-size: 1.95rem 1.95rem;
		height: 2.35rem;
		width: 2.35rem;
	}

}
