/**
 * Corporate information pages and verified footer contacts for v0.1.28.
 * The same selectors are mirrored in the editor so every content card remains
 * directly editable with native Gutenberg blocks.
 */

: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%;
}

.et-corporate-section,
.editor-styles-wrapper .et-corporate-section {
	box-sizing: border-box;
	padding-block: clamp(2.5rem, 4.4vw, 4rem);
}

.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: 0 auto !important;
	max-width: 48rem !important;
	width: 100%;
}

.et-corporate-heading > :first-child,
.editor-styles-wrapper .et-corporate-heading > :first-child {
	margin-block-start: 0;
}

.et-corporate-heading > :last-child,
.editor-styles-wrapper .et-corporate-heading > :last-child {
	margin-block-end: 0;
}

.et-corporate-heading h2,
.editor-styles-wrapper .et-corporate-heading h2,
.et-corporate-registry > h2,
.editor-styles-wrapper .et-corporate-registry > h2 {
	margin-inline: 0 auto !important;
	max-width: 50rem;
	text-align: left;
}

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

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

.et-corporate-card,
.et-corporate-contact-card,
.et-corporate-registry-item,
.editor-styles-wrapper :is(.et-corporate-card, .et-corporate-contact-card, .et-corporate-registry-item) {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(10, 35, 66, 0.14);
	border-radius: 1rem;
	box-shadow: 0 0.8rem 2rem rgba(10, 35, 66, 0.07);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.et-corporate-card h3,
.et-corporate-contact-card h3,
.editor-styles-wrapper :is(.et-corporate-card, .et-corporate-contact-card) h3 {
	color: var(--wp--preset--color--transit-navy, #0a2342);
	font-size: clamp(1.05rem, 1rem + 0.18vw, 1.2rem);
	margin-block: 0 0.75rem;
	text-align: left;
}

.et-corporate-card > :last-child,
.et-corporate-contact-card > :last-child,
.et-corporate-registry-item > :last-child,
.editor-styles-wrapper :is(.et-corporate-card, .et-corporate-contact-card, .et-corporate-registry-item) > :last-child {
	margin-block-end: 0;
}

.et-corporate-value,
.editor-styles-wrapper .et-corporate-value {
	color: var(--wp--preset--color--transit-navy, #0a2342);
	font-size: clamp(1.1rem, 1rem + 0.35vw, 1.4rem);
	font-weight: 760;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.et-corporate-value--registry,
.editor-styles-wrapper .et-corporate-value--registry {
	font-size: clamp(0.98rem, 0.9rem + 0.28vw, 1.2rem);
}

.et-corporate-address,
.editor-styles-wrapper .et-corporate-address {
	font-style: normal;
	line-height: 1.65;
}

.et-corporate-contact-card,
.editor-styles-wrapper .et-corporate-contact-card {
	border-top: 0.22rem solid var(--wp--preset--color--eurasia-teal, #009ca6);
}

.et-corporate-contact-link,
.editor-styles-wrapper .et-corporate-contact-link {
	margin-block-start: auto;
}

.et-corporate-contact-link a,
.et-corporate-map-link a,
.editor-styles-wrapper :is(.et-corporate-contact-link, .et-corporate-map-link) a {
	color: var(--et-teal-text, #007780);
	font-weight: 750;
	text-underline-offset: 0.2em;
}

.et-corporate-registry,
.editor-styles-wrapper .et-corporate-registry {
	background: var(--wp--preset--color--transit-navy, #0a2342);
	border-radius: 1.1rem;
	box-shadow: 0 1rem 2.5rem rgba(10, 35, 66, 0.14);
	box-sizing: border-box;
	color: var(--wp--preset--color--document-white, #ffffff);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.et-corporate-registry > :is(.et-kicker, h2),
.editor-styles-wrapper .et-corporate-registry > :is(.et-kicker, h2) {
	color: var(--wp--preset--color--document-white, #ffffff);
}

.et-corporate-registry-item,
.editor-styles-wrapper .et-corporate-registry-item {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.18);
	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--document-white, #ffffff);
}

.et-corporate-label,
.editor-styles-wrapper .et-corporate-label {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	margin-block: 0 0.55rem;
	text-transform: uppercase;
}

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

.et-corporate-heading--map,
.editor-styles-wrapper .et-corporate-heading--map {
	align-self: center;
	margin: 0 !important;
	max-width: 36rem !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 1rem 2.4rem rgba(10, 35, 66, 0.1);
	min-height: clamp(20rem, 42vw, 28.75rem);
	overflow: hidden;
	position: relative;
}

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

.et-home-corporate,
.editor-styles-wrapper .et-home-corporate {
	padding-block: clamp(2.5rem, 4vw, 4rem);
}

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

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

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

.et-site-footer--v028 .et-footer-contact-icon,
.editor-styles-wrapper .et-site-footer--v028 .et-footer-contact-icon {
	flex: 0 0 1.375rem;
	margin: 0.05rem 0 0 !important;
	width: 1.375rem;
}

.et-site-footer--v028 .et-footer-contact-icon img,
.editor-styles-wrapper .et-site-footer--v028 .et-footer-contact-icon img {
	display: block;
	height: 1.375rem;
	width: 1.375rem;
}

.et-site-footer--v028 .et-footer-contact-item p,
.editor-styles-wrapper .et-site-footer--v028 .et-footer-contact-item p {
	font-size: 0.78rem;
	line-height: 1.5;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

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

.et-site-footer--v028 .et-footer-contact-item a:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--document-white, #ffffff);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

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

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

@media (min-width: 64rem) {
	.et-corporate-map-layout,
	.editor-styles-wrapper .et-corporate-map-layout {
		align-items: center;
		grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.5fr);
	}
}

@media (max-width: 35.99rem) {
	.et-corporate-section,
	.editor-styles-wrapper .et-corporate-section {
		padding-block: 2.25rem;
	}

	.et-corporate-card,
	.et-corporate-contact-card,
	.et-corporate-registry-item,
	.editor-styles-wrapper :is(.et-corporate-card, .et-corporate-contact-card, .et-corporate-registry-item) {
		border-radius: 0.8rem;
		padding: 1.1rem;
	}

	.et-corporate-registry,
	.editor-styles-wrapper .et-corporate-registry {
		border-radius: 0;
		box-shadow: 0 0 0 100vmax var(--wp--preset--color--transit-navy, #0a2342);
		clip-path: inset(0 -100vmax);
		padding-inline: 0;
	}

	.et-yandex-map,
	.editor-styles-wrapper .et-yandex-map {
		border-radius: 0.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.et-corporate-card,
	.et-corporate-contact-card,
	.et-corporate-registry-item {
		transition: none !important;
	}
}

