/**
 * Corporate pages and three-column footer refinement for release 0.1.30.
 * Loaded after the v0.1.28 corporate layer on both front end and editor.
 */

:is(.et-page--corporate-details, .et-page--corporate-contacts)
	.et-page-content
	.wp-block-post-content:has(> .et-corporate-section),
.editor-styles-wrapper .wp-block-post-content:has(> .et-corporate-section) {
	max-width: none !important;
	width: 100%;
}

body:is(.et-page--corporate-details, .et-page--corporate-contacts)
	.et-page-content .wp-block-post-content > .et-corporate-section,
/* Repeated editor scope deliberately outranks the v0.1.21 Site Editor rule. */
.editor-styles-wrapper.editor-styles-wrapper.editor-styles-wrapper.editor-styles-wrapper
	.et-corporate-section {
	box-sizing: border-box;
	padding-block: clamp(2rem, 3vw, 3rem) !important;
}

body:is(.et-page--corporate-details, .et-page--corporate-contacts)
	.et-page-content .wp-block-post-content > .et-corporate-section + .et-corporate-section,
.editor-styles-wrapper.editor-styles-wrapper.editor-styles-wrapper.editor-styles-wrapper
	.et-corporate-section + .et-corporate-section {
	margin-block-start: 0 !important;
}

.et-corporate-section > .alignwide,
.editor-styles-wrapper .et-corporate-section > .alignwide {
	box-sizing: border-box;
	max-width: var(--et-layout-wide, 81.5rem) !important;
	width: 100%;
}

.et-corporate-heading,
.editor-styles-wrapper .et-corporate-heading {
	margin-inline: auto !important;
	max-width: var(--et-layout-wide, 81.5rem) !important;
	width: 100%;
}

.et-corporate-heading > *,
.editor-styles-wrapper .et-corporate-heading > * {
	max-width: 52rem !important;
	width: 100%;
}

.et-corporate-heading > *,
.et-corporate-map-heading > *,
.et-corporate-registry-heading > *,
.editor-styles-wrapper :is(.et-corporate-heading, .et-corporate-map-heading, .et-corporate-registry-heading) > * {
	margin-inline: 0 !important;
	text-align: left !important;
}

.et-corporate-heading > :first-child,
.et-corporate-map-heading > :first-child,
.et-corporate-registry-heading > :first-child,
.editor-styles-wrapper :is(.et-corporate-heading, .et-corporate-map-heading, .et-corporate-registry-heading) > :first-child {
	margin-block-start: 0 !important;
}

.et-corporate-heading > :last-child,
.et-corporate-map-heading > :last-child,
.et-corporate-registry-heading > :last-child,
.editor-styles-wrapper :is(.et-corporate-heading, .et-corporate-map-heading, .et-corporate-registry-heading) > :last-child {
	margin-block-end: 0 !important;
}

.et-corporate-heading h2,
.et-corporate-map-heading h2,
.et-corporate-registry-heading h2,
.editor-styles-wrapper :is(.et-corporate-heading, .et-corporate-map-heading, .et-corporate-registry-heading) h2 {
	max-width: none !important;
	text-wrap: balance;
}

.et-corporate-heading .has-lead-font-size,
.editor-styles-wrapper .et-corporate-heading .has-lead-font-size {
	max-width: 49rem;
}

.et-corporate-contact-grid,
.et-corporate-data-grid,
.et-corporate-registry-grid,
.editor-styles-wrapper :is(.et-corporate-contact-grid, .et-corporate-data-grid, .et-corporate-registry-grid) {
	align-items: stretch;
	display: grid;
	gap: clamp(1rem, 1.8vw, 1.35rem);
	grid-template-columns: minmax(0, 1fr);
	margin-block-start: clamp(1.5rem, 2.7vw, 2.25rem) !important;
}

.et-corporate-contact-grid > *,
.et-corporate-data-grid > *,
.et-corporate-registry-grid > *,
.editor-styles-wrapper :is(.et-corporate-contact-grid, .et-corporate-data-grid, .et-corporate-registry-grid) > * {
	align-self: stretch;
	margin: 0 !important;
	min-width: 0;
	width: 100%;
}

.et-corporate-contact-card,
.et-corporate-card,
.et-corporate-registry-item,
.editor-styles-wrapper :is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item) {
	background: #fff;
	border: 1px solid rgba(10, 35, 66, 0.14);
	border-radius: 1rem;
	box-shadow: 0 0.65rem 1.8rem rgba(10, 35, 66, 0.06);
	box-sizing: border-box;
	display: grid;
	gap: 0.2rem 1rem;
	grid-template-columns: 3.7rem minmax(0, 1fr);
	height: 100%;
	padding: clamp(1.2rem, 2vw, 1.55rem);
	text-align: left;
}

.et-corporate-contact-card::before,
.et-corporate-card::before,
.et-corporate-registry-item::before,
.editor-styles-wrapper :is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item)::before {
	align-self: center;
	background-color: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 2.35rem 2.35rem;
	border: 0;
	border-radius: 0;
	content: "";
	grid-column: 1;
	grid-row: 1 / span 3;
	height: 3.7rem;
	width: 3.7rem;
}

.et-corporate-contact-card > *,
.et-corporate-card > *,
.et-corporate-registry-item > *,
.editor-styles-wrapper :is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item) > * {
	grid-column: 2;
	margin-inline: 0 !important;
	min-width: 0;
	text-align: left !important;
}

.et-corporate-contact-card h3,
.editor-styles-wrapper .et-corporate-contact-card h3 {
	align-self: end;
	color: var(--wp--preset--color--transit-navy, #0a2342);
	font-size: clamp(1rem, 0.96rem + 0.18vw, 1.15rem);
	line-height: 1.35;
	margin-block: 0 0.35rem !important;
}

.et-corporate-contact-link,
.editor-styles-wrapper .et-corporate-contact-link {
	align-self: start;
	line-height: 1.45;
	margin-block: 0 !important;
}

.et-corporate-contact-link a,
.editor-styles-wrapper .et-corporate-contact-link a {
	color: var(--et-teal-text, #007780);
	font-weight: 720;
	text-decoration: none !important;
}

.et-corporate-contact-link a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--transit-navy, #0a2342);
	text-decoration: none !important;
}

.et-corporate-contact-link--nowrap,
.et-corporate-contact-link--nowrap a,
.editor-styles-wrapper .et-corporate-contact-link--nowrap,
.editor-styles-wrapper .et-corporate-contact-link--nowrap a {
	white-space: nowrap;
}

.et-corporate-contact-card--phone::before,
.editor-styles-wrapper .et-corporate-contact-card--phone::before {
	background-image: url("../images/icons/corporate-v030/phone.svg");
}

.et-corporate-contact-card--email::before,
.editor-styles-wrapper .et-corporate-contact-card--email::before {
	background-image: url("../images/icons/corporate-v030/email.svg");
}

.et-corporate-contact-card--telegram::before,
.editor-styles-wrapper .et-corporate-contact-card--telegram::before {
	background-image: url("../images/icons/corporate-v030/telegram.svg");
}

.et-corporate-contact-card--vk::before,
.editor-styles-wrapper .et-corporate-contact-card--vk::before {
	background-image: url("../images/icons/corporate-v030/vk.svg");
}

.et-corporate-card--inn::before,
.editor-styles-wrapper .et-corporate-card--inn::before {
	background-image: url("../images/icons/corporate-v030/identity.svg");
}

.et-corporate-card--address::before,
.editor-styles-wrapper .et-corporate-card--address::before {
	background-image: url("../images/icons/corporate-v030/location.svg");
}

.et-corporate-registry-item--number::before,
.editor-styles-wrapper .et-corporate-registry-item--number::before {
	background-image: url("../images/icons/corporate-v030/registry.svg");
}

.et-corporate-registry-item--date::before,
.editor-styles-wrapper .et-corporate-registry-item--date::before {
	background-image: url("../images/icons/corporate-v030/calendar.svg");
}

.et-corporate-label,
.editor-styles-wrapper .et-corporate-label {
	color: #607086;
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.055em;
	line-height: 1.4;
	margin-block: 0 0.35rem !important;
	text-transform: uppercase;
}

.et-corporate-value,
.editor-styles-wrapper .et-corporate-value {
	color: var(--wp--preset--color--transit-navy, #0a2342);
	font-size: clamp(1.05rem, 0.98rem + 0.27vw, 1.28rem);
	font-weight: 760;
	line-height: 1.4;
	margin-block: 0 !important;
	overflow-wrap: anywhere;
}

.et-corporate-value--registry,
.editor-styles-wrapper .et-corporate-value--registry {
	font-size: clamp(0.92rem, 0.86rem + 0.24vw, 1.12rem);
}

.et-corporate-address,
.editor-styles-wrapper .et-corporate-address {
	font-style: normal;
	line-height: 1.65;
	margin-block: 0 !important;
}

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

.et-corporate-data-grid,
.editor-styles-wrapper .et-corporate-data-grid {
	grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1.38fr);
}

.et-corporate-registry,
.editor-styles-wrapper .et-corporate-registry {
	background: #fff;
	border: 1px solid rgba(10, 35, 66, 0.14);
	border-top: 0.25rem solid var(--wp--preset--color--eurasia-teal, #009ca6);
	border-radius: 1.1rem;
	box-shadow: 0 0.8rem 2.2rem rgba(10, 35, 66, 0.08);
	box-sizing: border-box;
	color: inherit;
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.et-corporate-registry > *,
.editor-styles-wrapper .et-corporate-registry > * {
	margin-inline: 0 !important;
}

.et-corporate-registry-heading,
.editor-styles-wrapper .et-corporate-registry-heading {
	max-width: 52rem !important;
}

.et-corporate-registry > :is(.et-kicker, h2),
.editor-styles-wrapper .et-corporate-registry > :is(.et-kicker, h2),
.et-corporate-registry-heading > :is(.et-kicker, h2),
.editor-styles-wrapper .et-corporate-registry-heading > :is(.et-kicker, h2) {
	color: var(--wp--preset--color--transit-navy, #0a2342);
}

.et-corporate-registry-grid,
.editor-styles-wrapper .et-corporate-registry-grid {
	margin-block-end: 0 !important;
}

.et-corporate-registry-item,
.editor-styles-wrapper .et-corporate-registry-item {
	background: #f4f8fb;
	border-color: rgba(10, 35, 66, 0.12);
	box-shadow: none;
}

.et-corporate-registry-item .et-corporate-value,
.editor-styles-wrapper .et-corporate-registry-item .et-corporate-value {
	color: var(--wp--preset--color--transit-navy, #0a2342);
}

.et-corporate-map-layout,
.editor-styles-wrapper .et-corporate-map-layout {
	display: grid;
	gap: clamp(1.3rem, 2.5vw, 2rem);
	grid-template-columns: minmax(0, 1fr);
}

.et-corporate-map-heading,
.editor-styles-wrapper .et-corporate-map-heading {
	box-sizing: border-box;
	margin: 0 !important;
	max-width: 58rem !important;
	padding-inline-start: 4.75rem;
	position: relative;
}

.et-corporate-map-heading::before,
.editor-styles-wrapper .et-corporate-map-heading::before {
	background: transparent url("../images/icons/corporate-v030/location.svg") center / 2.7rem 2.7rem no-repeat;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	content: "";
	height: 3.75rem;
	left: 0;
	position: absolute;
	top: 0.15rem;
	width: 3.75rem;
}

.et-corporate-map-heading .et-corporate-address,
.editor-styles-wrapper .et-corporate-map-heading .et-corporate-address {
	margin-block-start: 0.65rem !important;
}

.et-yandex-map,
.editor-styles-wrapper .et-yandex-map {
	background: #dbe6ee;
	border: 1px solid rgba(10, 35, 66, 0.14);
	border-radius: 1rem;
	box-shadow: 0 0.8rem 2rem rgba(10, 35, 66, 0.09);
	min-height: clamp(30rem, 47vw, 40rem);
	overflow: hidden;
	position: relative;
}

.et-yandex-map iframe,
.editor-styles-wrapper .et-yandex-map iframe {
	border: 0;
	display: block;
	height: clamp(30rem, 47vw, 40rem);
	width: 100%;
}

/* v0.1.30 footer: brand area plus exactly three semantic columns. */
.et-site-footer--v030 .et-footer-grid,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-grid {
	align-items: start;
	display: grid;
	gap: clamp(1.6rem, 3vw, 3.25rem);
	grid-template-columns: minmax(0, 1fr);
}

.et-site-footer--v030 .et-footer-grid > *,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-grid > * {
	margin: 0 !important;
	min-width: 0;
}

.et-site-footer--v030 .et-footer-contact-list,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-list {
	display: grid;
	gap: 0.65rem;
}

.et-site-footer--v030 .et-footer-contact-list > *,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-list > * {
	margin: 0 !important;
}

.et-site-footer--v030 .et-footer-contact-item,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item {
	align-items: flex-start;
	display: flex;
	gap: 0.65rem;
	justify-content: flex-start;
}

.et-site-footer--v030 .et-footer-contact-icon,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-icon {
	flex: 0 0 1.35rem;
	margin: 0.08rem 0 0 !important;
	width: 1.35rem;
}

.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;
	object-fit: contain;
	width: 1.35rem;
}

.et-site-footer--v030 .et-footer-contact-item p,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item p {
	font-size: 0.78rem;
	line-height: 1.52;
	margin: 0 !important;
	min-width: 0;
}

.et-site-footer--v030 .et-footer-contact-item a,
.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item a {
	color: rgba(255, 255, 255, 0.84);
	text-decoration: none !important;
}

.et-site-footer--v030 .et-footer-contact-item a:is(:hover, :focus-visible) {
	color: #fff;
	text-decoration: none !important;
}

.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 {
	white-space: nowrap;
}

.et-site-footer--v030 .et-footer-address-link {
	display: inline;
}

@media (min-width: 40rem) {
	.et-corporate-contact-grid,
	.et-corporate-registry-grid,
	.editor-styles-wrapper :is(.et-corporate-contact-grid, .et-corporate-registry-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.et-site-footer--v030 .et-footer-grid,
	.editor-styles-wrapper .et-site-footer--v030 .et-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 40rem) and (max-width: 63.99rem) {
	.et-site-footer--v030 .et-footer-contacts,
	.editor-styles-wrapper .et-site-footer--v030 .et-footer-contacts {
		grid-column: 1 / -1;
	}

	.et-site-footer--v030 .et-footer-contact-list,
	.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.et-site-footer--v030 .et-footer-contact-item--address,
	.editor-styles-wrapper .et-site-footer--v030 .et-footer-contact-item--address {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) and (max-width: 79.99rem) {
	.et-site-footer--v030 .et-footer-grid,
	.editor-styles-wrapper .et-site-footer--v030 .et-footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 80rem) {
	.et-corporate-contact-grid,
	.editor-styles-wrapper .et-corporate-contact-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.et-site-footer--v030 .et-footer-grid,
	.editor-styles-wrapper .et-site-footer--v030 .et-footer-grid {
		grid-template-columns: minmax(15rem, 1.05fr) minmax(9rem, 0.62fr) minmax(12rem, 0.82fr) minmax(22rem, 1.35fr);
	}

	.et-site-footer--v030 .et-footer-brand {
		max-width: 18rem;
	}
}

@media (max-width: 47.99rem) {
	.et-corporate-data-grid,
	.editor-styles-wrapper .et-corporate-data-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 35.99rem) {
	body:is(.et-page--corporate-details, .et-page--corporate-contacts)
		.et-page-content .wp-block-post-content > .et-corporate-section,
	.editor-styles-wrapper.editor-styles-wrapper.editor-styles-wrapper.editor-styles-wrapper
		.et-corporate-section {
		padding-block: 2rem !important;
	}

	.et-corporate-contact-card,
	.et-corporate-card,
	.et-corporate-registry-item,
	.editor-styles-wrapper :is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item) {
		grid-template-columns: 3.2rem minmax(0, 1fr);
		padding: 1.05rem;
	}

	.et-corporate-contact-card::before,
	.et-corporate-card::before,
	.et-corporate-registry-item::before,
	.editor-styles-wrapper :is(.et-corporate-contact-card, .et-corporate-card, .et-corporate-registry-item)::before {
		background-size: 2rem 2rem;
		height: 3.2rem;
		width: 3.2rem;
	}

	.et-corporate-registry,
	.editor-styles-wrapper .et-corporate-registry {
		border-radius: 0.9rem;
		clip-path: none;
		padding: 1.2rem;
	}

	.et-corporate-map-heading,
	.editor-styles-wrapper .et-corporate-map-heading {
		padding-inline-start: 0;
		padding-block-start: 4.4rem;
	}

	.et-corporate-map-heading::before,
	.editor-styles-wrapper .et-corporate-map-heading::before {
		top: 0;
	}

	.et-yandex-map,
	.editor-styles-wrapper .et-yandex-map,
	.et-yandex-map iframe,
	.editor-styles-wrapper .et-yandex-map iframe {
		height: 28rem;
		min-height: 28rem;
	}
}
