/* ========== Страница О нас ========== */
.page-about {
	gap: var(--padding-y);
}

.page-about .title-xl {
	margin-bottom: 20px;
}

.page-about .txt-primary {
	max-width: 590px;
	margin: 0 auto;
}

@media (max-width: 1279px) {
	.page-about .txt-primary {
		max-width: 100%;
	}
}


/* ========== Концепт ========== */
.about__concept {
	margin-top: calc(var(--padding-y) * -1);
}

.about__concept-grid {
	display: grid;
	justify-content: center;
	grid-template-columns: repeat(2, 387px);

	max-width: fit-content;
	margin: 40px auto;
	gap: 20px;
}

.about__concept-grid img {
	display: block;
	width: 100%;
	object-fit: cover;

	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	transform: scale(1);
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about__concept-grid .img-float:hover img {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19);
	transform: scale(1.01);
}

.img-float {
	will-change: transform;
}

.img-float--up {
	transform: translateY(calc(var(--spacing-float-offset) * -1px));
}

.img-float--down {
	transform: translateY(calc(var(--spacing-float-offset) * 1px));
}

@media (max-width: 1279px) {
	.about__concept-grid {
		grid-template-columns: repeat(2, 1fr);

		max-width: 100%;
	}
}

@media (max-width: 767px) {
	.about__concept-grid {
		gap: 16px;
	}
}


/* ========== Линия ========== */
.about__line {
	padding: 12px 0;

	background: var(--color-soft-rose);
}

.about__line-container {
	gap: 40px;
}

.about__line-container div {
	text-align: center;
}

.about__line span {
	display: inline-block;

	animation-duration: 1s;
}

.about__line-dark span {
	color: var(--color-charcoal);
}

.about__line-light span {
	color: var(--color-stone);
}

@media (max-width: 767px) {
	.about__line-container {
		flex-direction: column;
		align-items: center;

		gap: 8px;
	}
}


/* ========== Баннер ========== */
.about_bg {
	position: relative;
	width: 100%;
	height: 21.9vw;
	max-height: 600px;

	overflow: hidden;

	background-color: var(--color-soft-rose);
	background-image: url(/assets/image/about-bg.webp);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;

	transition: filter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform, filter;
}

/* Фоновая вуаль */
.about_bg::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;

	background: linear-gradient(135deg, rgba(255, 230, 150, 0.4) 0%,
			rgba(255, 201, 100, 0.187) 40%,
			rgba(238, 154, 75, 0.169) 100%);

	animation: softBreathe 6s ease-in-out infinite alternate;
}

/* Блик */
.about_bg::before {
	content: '';
	position: absolute;
	top: 30%;
	left: 75%;
	z-index: 2;

	width: 65px;
	height: 65px;

	background:
		radial-gradient(circle 100px at 50% 50%, rgba(255, 240, 100, 0.25) 0%, transparent 70%),
		radial-gradient(circle 50px at 50% 50%, rgba(255, 255, 200, 0.6) 0%, transparent 55%),
		radial-gradient(circle 12px at 50% 50%, rgba(255, 255, 255, 1) 0%, transparent 30%);
	background-repeat: no-repeat;

	border-radius: 50%;
	box-shadow:
		0 0 40px rgba(255, 220, 50, 0.7),
		0 0 80px rgba(255, 180, 20, 0.4);
	mix-blend-mode: screen;
	filter: blur(1px);

	animation: moveFlare 8s ease-in-out infinite alternate,
		softBreathe 6s ease-in-out infinite alternate;
	pointer-events: none;

	transition: box-shadow 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Только движение */
@keyframes moveFlare {
	0% {
		transform: translate(0, 0);
	}

	25% {
		transform: translate(4%, -3%);
	}

	50% {
		transform: translate(-3%, 2%);
	}

	75% {
		transform: translate(-4%, -2%);
	}

	100% {
		transform: translate(2%, 3%);
	}
}

/* Общая анимация прозрачности */
@keyframes softBreathe {
	from {
		opacity: 0;
	}

	to {
		opacity: 0.8;
	}
}

/* Усиление свечения при наведении */
.about_bg:hover {
	filter: brightness(1.12);
}

.about_bg:hover::before {
	box-shadow:
		0 0 60px rgba(255, 220, 50, 0.9),
		0 0 100px rgba(255, 180, 20, 0.6);
}

@media (max-width: 1279px) {
	.about_bg {
		height: 21.9vw;
	}

	.about_bg::before {
		top: 25%;

		width: 50px;
		height: 50px;

		background:
			radial-gradient(circle 80px at 50% 50%, rgba(255, 240, 100, 0.3) 0%, transparent 70%),
			radial-gradient(circle 30px at 50% 50%, rgba(255, 255, 200, 0.7) 0%, transparent 55%),
			radial-gradient(circle 8px at 50% 50%, rgba(255, 255, 255, 1) 0%, transparent 30%);
	}
}

@media (max-width: 767px) {
	.about_bg {
		height: 32vw;
	}

	.about_bg::before {
		top: 20%;
		left: 82%;
	}
}


/* ========== Карточки ценностей ========== */
.about__value-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 40px;
	gap: 20px;
}

.about__value-card {
	height: 100%;
	padding: 40px;
	border-radius: 0 120px 0 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
		box-shadow 0.45s ease,
		border-radius 0.45s ease;
}

.about__value-card .title-l {
	margin: 34px 0 4px;
}

.about__value-card.one {
	background: var(--color-card-one);
}

.about__value-card.two {
	background: var(--color-card-two);
}

.about__value-card.three {
	background: var(--color-card-three);
}

/* Анимация иконок */
.about__value-card svg {
	transform-origin: center;
	animation: breatheIcon 5s ease-in-out infinite;
}

@keyframes breatheIcon {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}
}

.about__value-card.two svg {
	animation-delay: 0.8s;
}

.about__value-card.three svg {
	animation-delay: 1.6s;
}

.about__value-card:hover {
	border-radius: 0 140px 0 0;
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
	transform: translateY(-8px);
}

@media (max-width: 1279px) {
	.about__value-cards {
		grid-template-columns: 1fr;
	}

	.about__value-card .title-l {
		margin: 8px 0 4px;
	}
}

@media (max-width: 767px) {
	.about__value-card {
		padding: 40px 24px;
	}
}


/* ========== Коллекция ========== */
.about__collection-slider {
	margin-top: 40px;
}

.about__collection-slider .swiper {
	padding: 0 var(--padding-x);
}

.about__collection-slider .swiper.few-slides .swiper-wrapper {
	justify-content: center;
}

/* Карточка */
.about__collection-card picture {
	position: relative;
	display: block;
	overflow: hidden;

	background: var(--color-soft-rose);
}

.about__collection-card img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;

	object-fit: cover;
}

/* Состояния при наведении */
@media (hover: hover) and (pointer: fine) {
	.about__collection-card picture::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		z-index: 1;

		width: 100%;
		height: 100%;

		background: radial-gradient(ellipse 30% 70% at center,
				rgba(0, 0, 0, 0.01) 40%,
				rgba(0, 0, 0, 0.3) 100%);
		opacity: 0;

		transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
		pointer-events: none;
	}

	.about__collection-card:hover picture::before {
		opacity: 1;
	}

	.about__collection-card:hover img {
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
		transition: box-shadow 0.5s ease;
	}
}

.about__collection-title {
	display: block;
	margin: 12px auto 0 auto;

	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: 1.92px;
	text-align: center;
	color: var(--color-charcoal);
	text-transform: uppercase;
}

/* Пагинация слайдера */
.about__collection-slider-pagination .swiper-pagination {
	margin-top: var(--padding-x);
}

.about__collection-slider-pagination .swiper-pagination-bullet {
	background-color: var(--color-cloud);
}

/* Для неинициализированного слайдера */
.swiper:not(.swiper-initialized) .swiper-wrapper {
	display: grid;
	justify-content: center;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
}

.swiper:not(.swiper-initialized) .about__collection-card {
	width: 100%;
	max-width: 300px;
	margin-left: auto;
	margin-right: auto;
}

.swiper:not(.swiper-initialized) .about__collection-card picture,
.swiper:not(.swiper-initialized) .about__collection-card img {
	width: 100%;
	height: auto;
	object-fit: cover;
}