/**
 * «Про нас» page (Figma «mr-about», 342:282).
 *
 * Reuses from main.css: .mv-title-md (section titles), .mv-tag, .mv-btn--primary / --outline,
 * .mv-why__card* (numbers), .mv-dialog (form popup), --mv-gradient-* tokens.
 *
 * 1. Tokens and shared parts
 * 2. Title band
 * 3. Story
 * 4. Numbers, principles, directions, team — cards
 * 5. Process
 * 6. Contact banner
 * 7. Adaptive
 */

/* ==========================================================================
   1. Tokens and shared parts
   ========================================================================== */

.site-main.mv-about {
	max-width: none;
	padding: 0;
}

/* Zero browser margins inside the about sections (not the shared newsletter);
   :where() keeps specificity 0, so .mv-title-md and other classes keep their own margins. */
:where(.mv-about-hero, .mv-about-story, .mv-about-section, .mv-about-cta) :where(h1, h2, h3, p, ul, ol) {
	margin: 0;
}

.mv-about {
	--mva-muted: #637381;
	--mva-shadow: 0 8px 24px -12px rgba(16, 24, 40, 0.04);
	background: var(--mv-gradient-page);
}

.mv-about-section {
	padding-block: 80px;
}

.mv-about-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-about-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mv-about-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 48px;
	margin-bottom: 32px;
}

.mv-about-head .mv-title-md {
	margin-bottom: 0;
}

.mv-about-head__intro {
	flex: 0 1 460px;
	margin: 0;
	color: var(--mva-muted);
	font-size: var(--mv-fs-16);
	line-height: 26px;
}

.mv-about-card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 31px;
	border: 1px solid var(--mv-color-border);
	border-radius: var(--mv-radius-2xl);
	background-color: var(--mv-color-surface);
	box-shadow: var(--mva-shadow);
}

.mv-about-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mv-about-card__title {
	margin: 0;
	color: var(--mv-color-text);
	font-size: var(--mv-fs-18);
	font-weight: 700;
	line-height: 1.3;
}

.mv-about-card__text {
	margin: 0;
	color: var(--mva-muted);
	font-size: var(--mv-fs-14);
	line-height: 1.5;
}

.mv-about-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 22px;
	background-color: var(--mv-color-icon-bg);
}

.mv-about-card__icon .mv-icon {
	width: 20px;
	height: 20px;
}

.mv-about-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* ==========================================================================
   2. Title band (same as the blog band)
   ========================================================================== */

.mv-about-hero {
	padding-block: 48px 56px;
	background-color: var(--mv-color-surface-alt);
	text-align: center;
}

.mv-about-hero__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--mva-muted);
	font-size: var(--mv-fs-13);
	font-weight: 600;
	line-height: 1.3;
}

.mv-about-hero__crumbs li + li::before {
	content: "/";
	margin-inline-end: 6px;
}

.mv-about-hero__crumbs a {
	color: inherit;
	text-decoration: none;
	transition: color var(--mv-transition);
}

.mv-about-hero__crumbs a:hover,
.mv-about-hero__crumbs a:focus-visible {
	color: var(--mv-color-accent);
}

.mv-about-hero__title {
	margin: 12px 0 0;
	color: var(--mv-color-text);
	font-size: 44px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -1px;
}

.mv-about-hero__subtitle {
	max-width: 720px;
	margin: 12px auto 0;
	color: var(--mva-muted);
	font-size: var(--mv-fs-16);
	line-height: 1.3;
}

/* ==========================================================================
   3. Story
   ========================================================================== */

.mv-about-story {
	padding-block: 80px;
}

.mv-about-story__inner {
	display: grid;
	grid-template-columns: 616px minmax(0, 1fr);
	align-items: center;
	gap: 64px;
}

.mv-about-story__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 616 / 480;
	border-radius: var(--mv-radius-2xl);
	background-color: var(--mv-color-hero-bg);
}

.mv-about-story__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mv-about-story__badge {
	position: absolute;
	left: 24px;
	bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 16px 20px;
	border-radius: var(--mv-radius-lg);
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 8px 24px -6px rgba(15, 23, 41, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.mv-about-story__badge-title {
	color: var(--mv-color-text);
	font-family: var(--mv-font-display);
	font-size: var(--mv-fs-28);
	font-weight: 800;
	line-height: 1.26;
}

.mv-about-story__badge-text {
	color: var(--mva-muted);
	font-size: var(--mv-fs-13);
	line-height: 1.3;
}

.mv-about-story__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	min-width: 0;
}

.mv-about-story__title {
	margin: 0;
	color: var(--mv-color-text);
	font-family: var(--mv-font-display);
	font-size: var(--mv-fs-40);
	font-weight: 800;
	line-height: 1.1;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.mv-about-story__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
	color: var(--mva-muted);
	font-size: var(--mv-fs-16);
	line-height: 26px;
}

.mv-about-story__text p {
	margin: 0;
}

.mv-about-story__points {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mv-about-story__points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--mv-color-text);
	font-size: var(--mv-fs-15);
	font-weight: 600;
	line-height: 20px;
}

.mv-about-story__points .mv-icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--mv-color-accent);
}

/* ==========================================================================
   4. Cards: numbers, principles, directions, team
   ========================================================================== */

.mv-about-stats .mv-why__card {
	height: 100%;
}

.mv-about-values {
	padding-block: 96px;
	background-image: var(--mv-gradient-hits);
}

.mv-about-directions .mv-about-direction {
	gap: 20px;
	padding: 15px 15px 23px;
	transition: box-shadow var(--mv-transition), border-color var(--mv-transition);
}

.mv-about-direction {
	position: relative;
}

.mv-about-direction:hover,
.mv-about-direction:focus-within {
	border-color: transparent;
	box-shadow: var(--mv-shadow-card);
}

.mv-about-direction__photo {
	display: block;
	overflow: hidden;
	height: 190px;
	border-radius: var(--mv-radius-lg);
	background-color: var(--mv-color-photo-bg);
}

.mv-about-direction__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.mv-about-direction:hover .mv-about-direction__img {
	transform: scale(1.04);
}

.mv-about-direction__body {
	flex: 1;
	padding-inline: 8px;
}

.mv-about-direction__link {
	color: inherit;
	text-decoration: none;
}

/* The whole card is clickable. */
.mv-about-direction__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.mv-about-direction__link:focus-visible {
	outline: none;
}

.mv-about-direction:focus-within {
	outline: 2px solid var(--mv-color-focus);
	outline-offset: 2px;
}

.mv-about-direction__more {
	margin-top: auto;
	color: var(--mv-color-accent);
	font-size: var(--mv-fs-14);
	font-weight: 700;
	line-height: 1.3;
}

.mv-about-person {
	align-items: center;
	gap: 16px;
	text-align: center;
}

.mv-about-person__photo {
	flex: none;
	width: 96px;
	height: 96px;
	border: 4px solid #ffffff;
	border-radius: 50%;
	object-fit: cover;
	background-color: var(--mv-color-icon-bg);
	box-shadow: 0 8px 20px -6px rgba(9, 177, 231, 0.18);
}

.mv-about-person__photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mv-color-accent);
	font-family: var(--mv-font-display);
	font-size: var(--mv-fs-28);
	font-weight: 800;
}

.mv-about-person__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mv-about-person__role {
	margin: 0;
	color: var(--mv-color-accent);
	font-size: var(--mv-fs-13);
	font-weight: 600;
	line-height: 1.3;
}

/* ==========================================================================
   5. Process
   ========================================================================== */

.mv-about-process .mv-title-md {
	margin-bottom: 40px;
}

.mv-about-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.mv-about-step__marker {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.mv-about-step__marker::after {
	content: "";
	flex: 1;
	height: 2px;
	border-radius: 1px;
	background-color: var(--mv-color-border);
}

.mv-about-step:last-child .mv-about-step__marker::after {
	visibility: hidden;
}

.mv-about-step__number {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-image: var(--mv-gradient-brand);
	color: #ffffff;
	font-family: var(--mv-font-display);
	font-size: var(--mv-fs-18);
	font-weight: 800;
	line-height: 1;
}

/* ==========================================================================
   6. Contact banner
   ========================================================================== */

.mv-about-cta {
	padding-top: 80px;
}

.mv-about-cta__card {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 55px;
	border: 1px solid var(--mv-color-border-soft);
	border-radius: var(--mv-radius-2xl);
	background-image: linear-gradient(90deg, #f8fafc 0%, #edf2f7 100%);
	box-shadow: 0 12px 32px -12px rgba(16, 24, 40, 0.08);
}

.mv-about-cta__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
}

.mv-about-cta__badge {
	margin: 0;
	padding: 7px 12px;
	border-radius: 999px;
	background-image: var(--mv-gradient-brand);
	color: #ffffff;
	font-size: var(--mv-fs-12);
	font-weight: 700;
	line-height: 16px;
}

.mv-about-cta__heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	color: var(--mv-color-text);
	font-weight: 400;
}

.mv-about-cta__eyebrow {
	color: var(--mv-color-muted);
	font-size: var(--mv-fs-28);
	line-height: 1.3;
	text-transform: uppercase;
}

.mv-about-cta__title {
	font-size: var(--mv-fs-56);
	font-weight: 900;
	line-height: 1.3;
	text-transform: uppercase;
	overflow-wrap: break-word;
}

.mv-about-cta__subline {
	font-size: var(--mv-fs-24);
	line-height: 1.3;
}

.mv-about-cta__text {
	max-width: 620px;
	margin: 0;
	color: var(--mv-color-muted);
	font-size: var(--mv-fs-16);
	line-height: 26px;
}

.mv-about-cta__note {
	color: var(--mva-muted);
	font-size: var(--mv-fs-13);
	line-height: 1.3;
}

.mv-about-cta__media {
	flex: none;
	overflow: hidden;
	width: 340px;
	height: 260px;
	border-radius: var(--mv-radius-2xl);
	background-color: var(--mv-color-surface);
}

.mv-about-cta__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================================================
   7. Adaptive
   ========================================================================== */

@media (max-width: 1279.98px) {
	.mv-about-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mv-about-story__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px;
	}

	.mv-about-story__title {
		font-size: var(--mv-fs-32);
	}

	.mv-about-cta__media {
		width: 280px;
		height: 220px;
	}

	.mv-about-cta__title {
		font-size: var(--mv-fs-40);
	}
}

@media (min-width: 768px) and (max-width: 1279.98px) {
	/* Two steps per row: the right one has nothing to connect to. */
	.mv-about-step:nth-child(2n) .mv-about-step__marker::after {
		visibility: hidden;
	}
}

@media (max-width: 1023.98px) {
	.mv-about-hero__title {
		font-size: var(--mv-fs-32);
	}

	.mv-about-story__inner {
		grid-template-columns: 1fr;
	}

	.mv-about-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.mv-about-head__intro {
		flex-basis: auto;
	}

	.mv-about-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mv-about-cta__media {
		display: none;
	}
}

@media (max-width: 767.98px) {
	.mv-about-hero {
		padding-block: 32px 36px;
	}

	.mv-about-hero__title {
		font-size: var(--mv-fs-28);
	}

	.mv-about-hero__subtitle {
		font-size: var(--mv-fs-15);
	}

	.mv-about-section,
	.mv-about-story,
	.mv-about-values {
		padding-block: 48px;
	}

	.mv-about-cta {
		padding-top: 48px;
	}

	.mv-about-head {
		margin-bottom: 24px;
	}

	.mv-about-process .mv-title-md {
		margin-bottom: 24px;
	}

	.mv-about-grid,
	.mv-about-grid--3 {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mv-about-card {
		padding: 23px;
	}

	.mv-about-story__title {
		font-size: var(--mv-fs-28);
	}

	.mv-about-story__badge {
		left: 16px;
		bottom: 16px;
		padding: 12px 16px;
	}

	.mv-about-story__badge-title {
		font-size: var(--mv-fs-20);
	}

	.mv-about-steps {
		gap: 24px;
	}

	.mv-about-step__marker::after {
		display: none;
	}

	.mv-about-cta__card {
		padding: 23px;
		gap: 24px;
	}

	.mv-about-cta__eyebrow {
		font-size: var(--mv-fs-20);
	}

	.mv-about-cta__title {
		font-size: var(--mv-fs-32);
	}

	.mv-about-cta__subline {
		font-size: var(--mv-fs-18);
	}

	.mv-about-actions .mv-btn {
		flex: 1 1 auto;
	}
}

@media (max-width: 479.98px) {
	.mv-about-actions .mv-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mv-about-direction__img {
		transition: none;
	}
}
