/**
 * Блок «О пространстве» (AboutSpace).
 * Макет: Figma «сайт-4444», node 3:364.
 */

.about-space {
	/* Цвета из макета */
	--as-ink: #001a56;
	--as-text: #334155;
	--as-text-2: #475569;
	--as-text-muted: #64748b;
	--as-violet: #7c3aed;
	--as-violet-deep: #6d28d9;
	--as-cyan: #0ea5e9;
	--as-panel-1: #1e1b4b;
	--as-panel-2: #312e81;

	/* Фон секции. В макете он приходит от родительского фрейма — при
	   необходимости поменяйте здесь одно значение. */
	--as-bg: linear-gradient(160deg, #ffffff 0%, #fbfaff 45%, #f0ebfd 100%);

	position: relative;
	box-sizing: border-box;
	overflow: hidden;
	isolation: isolate;

	/* Full-bleed: блок выходит за пределы контейнера темы на всю ширину экрана. */
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);

	padding: 96px 24px;
	background: var(--as-bg);
	color: var(--as-text);
	font-family: Arimo, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.about-space *,
.about-space *::before,
.about-space *::after {
	box-sizing: border-box;
}

/**
 * 100vw включает ширину вертикального скроллбара, поэтому без этого правила
 * может появиться горизонтальная прокрутка. `clip` (в отличие от `hidden`)
 * не создаёт контекст прокрутки — position: sticky в шапке темы продолжает работать.
 */
html:has(.about-space) {
	overflow-x: clip;
}

.about-space__inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* ==========================================================================
   1. Интро
   ========================================================================== */

.about-space__intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: end;
}

.about-space__eyebrow {
	display: inline-block;
	margin: 0;
	padding: 6px 16px;
	border-radius: 999px;
	background: linear-gradient(174.08deg, var(--as-violet) 0%, var(--as-violet-deep) 100%);
	color: #ede9fe;
	font-family: "Golos Text", Arimo, "Helvetica Neue", Arial, sans-serif;
	font-size: 11.52px;
	font-weight: 600;
	line-height: 17.28px;
	letter-spacing: 1.728px;
	text-transform: uppercase;
	filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.35));
}

.about-space__title {
	margin: 24px 0 0;
	font-size: clamp(34px, 4.7vw, 56px);
	font-weight: 700;
	line-height: 1.25;

	/* Сине-фиолетовый градиент по тексту. */
	background: linear-gradient(90deg, var(--as-cyan) 0%, var(--as-violet) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.about-space__title-line {
	display: block;
}

.about-space__intro-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.about-space__lead {
	margin: 0;
	color: var(--as-text);
	font-size: 17.6px;
	font-weight: 400;
	line-height: 28.6px;
}

.about-space__lead--secondary {
	color: var(--as-text-2);
	font-size: 16.8px;
	line-height: 27.3px;
}

/* ==========================================================================
   2. Статистика
   ========================================================================== */

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

.about-space__stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px 16px;
	border: 1px solid rgba(124, 58, 237, 0.12);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 4px 20px 0 rgba(99, 102, 241, 0.08);
	text-align: center;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.about-space__stat-value {
	margin: 0 0 4px;
	color: var(--as-ink);
	font-size: 40px;
	font-weight: 700;
	line-height: 40px;
}

.about-space__stat-unit {
	font-size: 22px;
	line-height: 22px;
}

.about-space__stat-label {
	margin: 0;
	color: var(--as-text-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 16.5px;
}

/* ==========================================================================
   3. Галерея
   ========================================================================== */

.about-space__gallery {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-template-rows: 334px 334px;
	gap: 12px;
	margin-top: 56px;
}

.about-space__shot {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: #001a56;
}

.about-space__shot--main {
	grid-column: 1 / span 7;
	grid-row: 1 / span 2;
	border-radius: 24px;
	box-shadow: 0 16px 48px 0 rgba(99, 102, 241, 0.18);
}

.about-space__shot--side {
	grid-column: 8 / span 5;
	border-radius: 16px;
	box-shadow: 0 8px 28px 0 rgba(99, 102, 241, 0.12);
}

.about-space__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-space__shot-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.about-space__shot--main .about-space__shot-overlay {
	background: linear-gradient(0deg, rgba(0, 26, 86, 0.55) 0%, rgba(0, 26, 86, 0) 55%);
}

.about-space__shot--side .about-space__shot-overlay {
	background: linear-gradient(0deg, rgba(0, 26, 86, 0.45) 0%, rgba(0, 26, 86, 0) 50%);
}

.about-space__shot-caption {
	position: absolute;
	right: 20px;
	bottom: 20px;
	left: 20px;
	color: #ffffff;
}

.about-space__shot--side .about-space__shot-caption {
	right: 16px;
	bottom: 12px;
	left: 16px;
}

.about-space__shot-badge {
	display: inline-block;
	margin-bottom: 9px;
	padding: 3px 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	font-family: "Golos Text", Arimo, "Helvetica Neue", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.about-space__shot-text {
	display: block;
	font-size: 22.4px;
	font-weight: 700;
	line-height: 28px;
	text-wrap: balance;
}

.about-space__shot-label {
	display: block;
	color: rgba(255, 255, 255, 0.9);
	font-family: "Golos Text", Arimo, "Helvetica Neue", Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
}

/* ==========================================================================
   4. Тёмная карточка
   ========================================================================== */

.about-space__panel {
	position: relative;
	margin-top: 64px;
	padding: 48px 56px;
	border-radius: 24px;
	background: linear-gradient(153.69deg, var(--as-panel-1) 0%, var(--as-panel-2) 50%, var(--as-panel-1) 100%);
	box-shadow: 0 20px 60px 0 rgba(30, 27, 75, 0.3);
	overflow: hidden;
	isolation: isolate;
}

.about-space__panel-glow {
	position: absolute;
	z-index: -1;
	display: block;
	border-radius: 50%;
	pointer-events: none;
}

.about-space__panel-glow--violet {
	top: -96px;
	right: -96px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, rgba(124, 58, 237, 0) 70%);
}

.about-space__panel-glow--cyan {
	bottom: -76px;
	left: -51px;
	width: 256px;
	height: 256px;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0) 70%);
}

.about-space__panel-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.about-space__panel-title {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 38.4px);
	font-weight: 700;
	line-height: 1.25;
}

.about-space__panel-title-line {
	display: block;
	color: #ffffff;
}

.about-space__panel-title-accent {
	display: block;
	background: linear-gradient(90deg, #38bdf8 0%, #c084fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}

.about-space__panel-lead {
	margin: 20px 0 0;
	color: rgba(203, 213, 225, 0.9);
	font-size: 16.8px;
	font-weight: 400;
	line-height: 27.3px;
}

/* --- Нумерованные пункты --- */

.about-space__items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-space__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.about-space__item-number {
	flex: 0 0 24px;
	min-width: 24px;
	padding-top: 2px;
	color: rgba(167, 139, 250, 0.7);
	font-size: 11.2px;
	font-weight: 700;
	line-height: 16.8px;
	letter-spacing: 0.56px;
}

.about-space__item-body {
	display: block;
	min-width: 0;
}

.about-space__item-title {
	display: block;
	color: #e2e8f0;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.about-space__item-text {
	display: block;
	padding-top: 2px;
	color: rgba(148, 163, 184, 0.85);
	font-size: 12px;
	font-weight: 400;
	line-height: 19.5px;
}

/* --- Низ карточки --- */

.about-space__panel-footer {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Пустой блок слева — в макете он уравновешивает кнопку справа. */
.about-space__panel-spacer {
	flex: 0 0 244px;
	width: 244px;
}

.about-space__panel-footer-title {
	margin: 0;
	color: #f1f5f9;
	font-size: 22.4px;
	font-weight: 700;
	line-height: 33.6px;
}

.about-space__button {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 9.051px;
	align-items: center;
	padding: 18.102px 31.679px;
	border-radius: 999px;
	background: linear-gradient(168.65deg, var(--as-violet) 0%, #5b21b6 100%);
	box-shadow: inset 0 1.131px 0 0 rgba(255, 255, 255, 0.15);
	color: #ffffff;
	font-size: 17.197px;
	font-weight: 700;
	line-height: 25.796px;
	text-decoration: none;
	filter: drop-shadow(0 6.788px 15.839px rgba(124, 58, 237, 0.55));
	transition: transform 0.2s ease, filter 0.2s ease;
}

.about-space__button:hover,
.about-space__button:focus-visible {
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
	filter: drop-shadow(0 10px 22px rgba(124, 58, 237, 0.7));
}

.about-space__button:focus-visible {
	outline: 2px solid #c4b5fd;
	outline-offset: 3px;
}

.about-space__button-icon {
	display: block;
	flex: 0 0 auto;
	width: 20.365px;
	height: 20.365px;
}

.about-space__button-icon svg {
	display: block;
	width: 20.365px;
	height: 20.365px;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1080px) {
	.about-space {
		padding: 72px 20px;
	}

	.about-space__intro {
		grid-template-columns: 1fr;
		gap: 24px;
		align-items: start;
	}

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

	.about-space__gallery {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
	}

	.about-space__shot--main {
		grid-column: 1 / span 2;
		grid-row: auto;
		aspect-ratio: 16 / 10;
	}

	.about-space__shot--side {
		grid-column: auto;
		aspect-ratio: 3 / 2;
	}

	.about-space__panel {
		padding: 40px 32px;
	}

	.about-space__panel-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.about-space__panel-spacer {
		display: none;
	}

	.about-space__panel-footer {
		justify-content: center;
		flex-wrap: wrap;
	}
}

@media (max-width: 680px) {
	.about-space {
		padding: 56px 16px;
	}

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

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

	.about-space__shot--main {
		grid-column: auto;
	}

	.about-space__shot-text {
		font-size: 18px;
		line-height: 24px;
	}

	.about-space__panel {
		padding: 32px 20px;
	}

	.about-space__panel-footer {
		flex-direction: column;
		gap: 20px;
		text-align: center;
	}

	.about-space__button {
		width: 100%;
		justify-content: center;
		padding: 16px 20px;
		font-size: 15px;
	}
}

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

	.about-space__button:hover,
	.about-space__button:focus-visible {
		transform: none;
	}
}
