/**
 * Секция "О клинике" - главная страница
 * Соответствует Figma: node-id=4-288
 * Использует переменные из variables.css
 */

.about-section {
	background-color: var(--color-white);
	padding: 0 var(--spacing-4xl) 60px;
}

.about-container {
	max-width: var(--container-content-width);
	margin: 0 auto;
	background-color: var(--color-bg-light);
	border-radius: var(--radius-xl);
	padding: 44px;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2xl);
}

/* Заголовок и главное изображение */
.about-header {
	position: relative;
	min-height: 90px;
	display: flex;
	align-items: flex-start;
}

.about-title {
	font-family: var(--font-heading);
	font-size: var(--font-size-4xl);
	font-weight: 400;
	line-height: var(--line-height-tight);
	color: var(--color-primary);
	text-transform: uppercase;
	margin: 0;
	position: relative;
	z-index: 2;
	max-width: 450px;
	padding-bottom: 100px;
}

.about-header-image {
	position: absolute;
	top: -42px;
	right: -44px;
	width: 875px;
	height: 590px;
	overflow: hidden;
	z-index: 1;
}

.about-header-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

/* Три карточки преимуществ */
.about-features {
	display: flex;
	gap: var(--spacing-lg);
	align-items: stretch;
	z-index: 2;
}

.about-feature-card {
	flex: 1;
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-lg);
	min-height: 200px;
}

.about-feature-title {
	font-family: var(--font-primary);
	font-size: var(--font-size-2xl);
	font-weight: 500;
	line-height: var(--line-height-tight);
	color: var(--color-primary);
	text-align: center;
	margin: 0;
}

.about-feature-text {
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	font-weight: 500;
	line-height: var(--line-height-relaxed);
	color: var(--color-primary);
	text-align: left;
	margin: 0;
}

.about-feature-text--services {
	text-align: center;
}

/* Нижняя часть */
.about-bottom {
	display: flex;
	gap: var(--spacing-lg);
}

/* Блок "О клинике" */
.about-clinic-card {
	width: 628px;
	flex-shrink: 0;
	background-color: var(--color-white);
	border-radius: var(--radius-md);
	display: flex;
	flex-direction: column;
	gap: 33px;
	overflow: hidden;
	justify-content: space-between;
}

.about-clinic-content {
	padding: var(--spacing-lg) var(--spacing-lg) 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-lg);
}

.about-clinic-label {
	font-family: var(--font-primary);
	font-size: var(--font-size-3xl);
	font-weight: 500;
	line-height: var(--line-height-tight);
	color: var(--color-primary);
	text-align: left;
}

.about-clinic-text {
	font-family: var(--font-primary);
	font-size: var(--font-size-xl);
	font-weight: 500;
	line-height: var(--line-height-base);
	color: var(--color-primary);
	margin: 0;
	max-width: 501px;
}

.about-clinic-image-wrapper {
	position: relative;
	height: 471px;

}

.about-clinic-link {
	position: absolute;
	bottom: 41px;
	right: var(--spacing-lg);
	font-family: var(--font-primary);
	font-size: var(--font-size-xl);
	font-weight: 500;
	line-height: var(--line-height-base);
	color: var(--color-accent);
	text-decoration: none;
	transition: opacity var(--transition-base);
	top: 0px;
}

.about-clinic-link:hover {
	opacity: 0.8;
}

/* Правая колонка */
.about-right-column {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

/* Блок статистики "90%" */
.about-stats-card {
	background-color: var(--color-primary);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 11px;
	position: relative;
	overflow: hidden;
}

.about-stats-header {
	display: block;
	width: 100%;
}

.about-stats-text-dark {
	font-family: var(--font-primary);
	font-size: var(--font-size-3xl);
	font-weight: 500;
	line-height: var(--line-height-tight);
	color: var(--color-white);
	text-align: center;
}

.about-stats-text-light {
	font-family: var(--font-primary);
	font-size: var(--font-size-3xl);
	font-weight: 500;
	line-height: var(--line-height-tight);
	color: var(--color-gray);
}

.about-stats-text-white {
	font-family: var(--font-primary);
	font-size: var(--font-size-3xl);
	font-weight: 500;
	line-height: var(--line-height-tight);
	color: var(--color-white);
	text-align: center;
}

.about-stats-decoration {
	position: absolute;
	left: -38px;
	top: 51px;
	width: 426px;
	height: 222px;
	pointer-events: none;
}

.about-stats-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.about-stats-footer {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 286px;
	position: relative;
	z-index: 2;
}

.about-stats-description {
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	font-weight: 500;
	line-height: var(--line-height-relaxed);
	color: var(--color-white);
	margin: 0;
}

.about-stats-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: var(--spacing-sm) var(--spacing-xl);
	background-color: var(--color-accent);
	color: var(--color-primary);
	border: 2px solid var(--color-accent);
	border-radius: var(--radius-pill);
	font-family: var(--font-primary);
	font-size: var(--font-size-xl);
	font-weight: 500;
	text-decoration: none;
	transition: all var(--transition-base);
	width: fit-content;
}

.about-stats-btn:hover {
	background-color: var(--color-accent-hover);
	border-color: var(--color-accent-hover);
}

/* Блок "Наши фотографии" */
.about-gallery-card {
	background-color: var(--color-white);
	border-radius: var(--radius-md);
	padding: var(--spacing-lg) 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-xl);
	height: 512px;
	overflow: hidden;
}

.about-gallery-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 363px;
}

.about-gallery-title {
	font-family: var(--font-primary);
	font-size: var(--font-size-3xl);
	font-weight: 500;
	line-height: var(--line-height-tight);
	color: var(--color-primary);
	text-align: center;
	margin: 0;
	height: 51px;
	display: flex;
	align-items: center;
}

.about-gallery-link {
	font-family: var(--font-primary);
	font-size: var(--font-size-xl);
	font-weight: 500;
	line-height: var(--line-height-base);
	color: var(--color-primary);
	text-decoration: none;
	transition: opacity var(--transition-base);
}

.about-gallery-link:hover {
	opacity: 0.7;
}

.about-gallery-preview {
	position: relative;
	width: 100%;
	height: 360px;
	display: flex;
	justify-content: center;
}

.about-gallery-img {
	position: absolute;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

.about-gallery-img--1 {
	width: 360px;
	height: 360px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
}

.about-gallery-img--2 {
	width: 113px;
	height: 310px;
	left: calc(50% - 180px - 30px);
	top: 24px;
	z-index: 2;
}

.about-gallery-img--3 {
	width: 113px;
	height: 310px;
	right: calc(50% - 180px - 30px);
	top: 24px;
	z-index: 2;
}

/* Адаптивность */
@media (max-width: 1280px) {
	.about-section {
		padding: 0 var(--spacing-2xl) var(--spacing-3xl);
	}

	.about-container {
		padding: var(--spacing-2xl);
		gap: 60px;
	}

	.about-header-image {
		top: -30px;
	}

	.about-clinic-card {
		width: 50%;
	}

	.about-bottom {
		gap: var(--spacing-md);
	}
}

@media (max-width: 1024px) {
	.about-header {
		min-height: auto;
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.about-header-image {
		position: relative;
		top: auto;
		right: auto;
		width: 100%;
	}

	.about-features {
		flex-direction: column;
		margin-top: -100px;
	}

	.about-feature-card {
		min-height: auto;
	}

	.about-bottom {
		flex-direction: column;
	}

	.about-clinic-card {
		width: 100%;
	}

	.about-right-column {
		flex-direction: row;
	}

	.about-stats-card,
	.about-gallery-card {
		flex: 1;
	}
}

@media (max-width: 768px) {
	.about-section {
		padding: 0 var(--spacing-md) var(--spacing-2xl);
		margin-top: 30px;
	}

	.about-container {
		padding: var(--spacing-lg);
		gap: var(--spacing-lg);
	}

	.about-title {
		font-size: var(--font-size-2xl);
	}

	.about-feature-title {
		font-size: 22px;
	}

	.about-clinic-label {
		font-size: var(--font-size-xl);
	}

	.about-clinic-text {
		font-size: var(--font-size-md);
	}

	.about-clinic-image-wrapper {
		height: 300px;
	}

	.about-clinic-image {
		height: 350px;
		margin-top: -30px;
	}

	.about-clinic-link {
		font-size: var(--font-size-lg);
		bottom: var(--spacing-lg);
		top: -20px;
	}

	.about-right-column {
		flex-direction: column;
	}

	.about-stats-text-dark,
	.about-stats-text-white {
		font-size: var(--font-size-xl);
	}

	.about-stats-footer {
		width: 100%;
	}

	.about-stats-btn {
		font-size: var(--font-size-lg);
	}

	.about-gallery-card {
		height: auto;
		padding-bottom: var(--spacing-lg);
	}

	.about-gallery-title {
		font-size: var(--font-size-xl);
	}

	.about-gallery-link {
		font-size: var(--font-size-lg);
	}

	.about-gallery-preview {
		height: 280px;
	}

	.about-gallery-img--1 {
		width: 280px;
		height: 280px;
	}

	.about-gallery-img--2,
	.about-gallery-img--3 {
		width: 80px;
		height: 220px;
	}
}

@media (max-width: 480px) {
	.about-title {
		padding-bottom: 0;
		font-size: var(--font-size-xl);
	}

	.about-header-image {
		height: 250px;
	}

	.about-gallery-img--2,
	.about-gallery-img--3 {
		display: none;
	}

	.about-gallery-img--1 {
		width: 100%;
		max-width: 300px;
		height: auto;
		aspect-ratio: 1;
	}
}
