.showcase {
	display: flex;
	flex-direction: column;
	gap: var(--vk-row-gap);
	padding: var(--vk-section-pad-y) 20px;
	background: #ffffff;
	font-family: var(--vk-font);
}

.showcase__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
	max-width: 1160px;
	margin: 0 auto;
}

.showcase__media {
	grid-area: 1 / 1 / 2 / 2;
	min-width: 0;
	aspect-ratio: 14 / 15;
}

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

.showcase__panel {
	/* Панель заходит на фото и обязана быть выше него. Без z-index фото
	   всплывает наверх, пока на нём висит transform анимации появления. */
	position: relative;
	z-index: 2;
	grid-area: 1 / 2 / 2 / 3;
	justify-self: end;
	display: flex;
	align-items: center;
	width: 120%;
	margin-top: 10%;
	aspect-ratio: 28 / 25;
	border-radius: 10px;
	background: #efefef;
}

.showcase__content {
	min-width: 0;
	padding: 60px 80px 60px 60px;
}

.showcase__title {
	margin: 0 0 16px;
	font-size: 42px;
	font-weight: 600;
	line-height: 1.23;
	color: #000000;
	overflow-wrap: anywhere;
}

.showcase__line {
	margin-bottom: 28px;
	width: 50px;
	height: 3px;
	background: var(--vk-accent);
	opacity: 0.6;
}

.showcase__descr {
	margin: 0 0 60px;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.55;
	color: #474747;
	overflow-wrap: anywhere;
}

.showcase__button {
	min-height: 60px;
	padding: 8px 60px;
}

/* Зеркальный вариант: фото справа, панель слева */

.showcase__row--mirror .showcase__media {
	grid-area: 1 / 2 / 2 / 3;
	aspect-ratio: 28 / 25;
}

.showcase__row--mirror .showcase__panel {
	grid-area: 1 / 1 / 2 / 2;
	justify-self: start;
	aspect-ratio: auto;
}

/* Media */

@media (max-width: 959px) {
	.showcase__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.showcase {
		gap: var(--vk-section-pad-y);
	}

	.showcase__media,
	.showcase__row--mirror .showcase__media {
		grid-area: auto;
		aspect-ratio: 3 / 2;
	}

	.showcase__panel,
	.showcase__row--mirror .showcase__panel {
		grid-area: auto;
		justify-self: stretch;
		width: 100%;
		margin-top: 0;
		aspect-ratio: auto;
	}

	.showcase__row--mirror .showcase__panel {
		order: -1;
	}

	.showcase__content {
		padding: 40px 30px;
	}

	.showcase__title {
		font-size: 30px;
	}
}

@media (max-width: 639px) {
	.showcase__title {
		font-size: 26px;
	}

	.showcase__descr {
		margin-bottom: 30px;
		font-size: 18px;
	}

	.showcase__button {
		padding: 8px 40px;
	}
}
