/*
 * ОТДЕЛЬНАЯ СТРАНИЦА КЕЙСА — «ТЕПЛИЦЫ НА ШКОЛЬНОЙ».
 * Разметка: template-case.php. Зависит от landing/tokens.css и
 * landing/base.css (страница входит в smd_lp_is_target и получает их
 * автоматически); эта таблица подключается самим шаблоном и только на нём.
 *
 * ЯЗЫК — ЧЕРТЁЖНЫЙ, КАК У ВСЕЙ ПОСАДОЧНОЙ: координатная метка-eyebrow,
 * осмысленная линейка фактов с засечками, скриншот в тонкой рамке с
 * уголками-засечками. Монументы — Oswald, текст — основной гарнитурой.
 */

.lp .lp-case {
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: var(--lp-section-y);
}

.lp .lp-case__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(2.5rem, 5vw, 4.5rem);
}

/* ---------------------------------------------------------------------- */
/* Шапка кейса                                                            */
/* ---------------------------------------------------------------------- */

.lp .lp-case__head {
	max-width: 52rem;
}

.lp .lp-case__eyebrow {
	margin: 0 0 1.2rem;
}

.lp .lp-case__title {
	margin: 0;
	font-family: var(--lp-font-display);
	font-weight: var(--lp-display-weight);
	font-size: clamp(2.4rem, 5.5vw, 4.2rem);
	line-height: 1.04;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.lp .lp-case__lead {
	margin: 1.4rem 0 0;
	font-size: clamp(1.02rem, 1.4vw, 1.2rem);
	line-height: 1.6;
	color: var(--lp-ink-muted);
	max-width: 40rem;
}

.lp .lp-case__site {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.4rem;
	font-size: 1rem;
	color: var(--lp-crimson);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s ease;
}

.lp .lp-case__site:hover,
.lp .lp-case__site:focus-visible {
	border-bottom-color: var(--lp-crimson);
}

/* ---------------------------------------------------------------------- */
/* Линейка фактов                                                         */
/* ---------------------------------------------------------------------- */

.lp .lp-case__facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 2.5vw, 2.5rem);
	margin: 0;
	padding: clamp(1.4rem, 2.6vw, 2.2rem) 0;
	border-top: 1px solid var(--lp-line-strong);
	border-bottom: 1px solid var(--lp-line-strong);
}

.lp .lp-case__fact {
	position: relative;
	margin: 0;
	padding-left: 1.1rem;
}

/* Алая засечка у каждого факта. */
.lp .lp-case__fact::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35rem;
	bottom: 0.35rem;
	width: 2px;
	background: var(--lp-crimson);
}

.lp .lp-case__fact-label {
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--lp-ink-muted);
}

.lp .lp-case__fact-value {
	margin: 0.35rem 0 0;
	font-family: var(--lp-font-display);
	font-weight: var(--lp-display-weight);
	font-size: clamp(1.5rem, 2.6vw, 2.2rem);
	line-height: 1.1;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------- */
/* Скриншот                                                               */
/* ---------------------------------------------------------------------- */

.lp .lp-case__shot {
	position: relative;
	margin: 0;
	padding: clamp(0.8rem, 1.6vw, 1.4rem);
	border: 1px solid var(--lp-line-strong);
	background: rgba(255, 255, 255, 0.02);
}

/* Уголки-засечки по краям рамки. */
.lp .lp-case__shot::before,
.lp .lp-case__shot::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	border: 1px solid var(--lp-crimson);
}

.lp .lp-case__shot::before {
	top: -1px;
	left: -1px;
	border-right: 0;
	border-bottom: 0;
}

.lp .lp-case__shot::after {
	bottom: -1px;
	right: -1px;
	border-left: 0;
	border-top: 0;
}

.lp .lp-case__shot img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------------- */
/* Тело: состав и маршрут                                                 */
/* ---------------------------------------------------------------------- */

.lp .lp-case__body {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: clamp(2rem, 4vw, 4rem);
}

.lp .lp-case__block-title {
	margin: 0 0 1.3rem;
	font-family: var(--lp-font-display);
	font-weight: var(--lp-display-weight);
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	line-height: 1.15;
	text-transform: uppercase;
}

.lp .lp-case__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.lp .lp-case__list li {
	position: relative;
	padding-left: 1.4rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--lp-ink-muted);
}

.lp .lp-case__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 0.55rem;
	height: 2px;
	background: var(--lp-crimson);
}

.lp .lp-case__list strong {
	color: var(--lp-ink);
	font-weight: 600;
}

.lp .lp-case__path {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
}

.lp .lp-case__path li {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--lp-line);
	font-size: 1rem;
	color: var(--lp-ink);
}

.lp .lp-case__path li:first-child {
	border-top: 1px solid var(--lp-line);
}

.lp .lp-case__path span {
	font-family: var(--lp-font-num);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	color: var(--lp-crimson);
}

/* ---------------------------------------------------------------------- */
/* Панель услуги                                                          */
/* ---------------------------------------------------------------------- */

.lp .lp-case__service {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	padding: clamp(1.6rem, 3vw, 2.6rem);
	border: 1px solid var(--lp-line-strong);
	background: linear-gradient(135deg, rgba(247, 49, 60, 0.07), rgba(247, 49, 60, 0.02));
}

.lp .lp-case__service-text {
	margin: 0;
	max-width: 34rem;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--lp-ink-muted);
}

.lp .lp-case__service-actions {
	display: flex;
	gap: 0.9rem;
	flex-wrap: wrap;
	margin: 0;
}

/* ---------------------------------------------------------------------- */
/* Подвал кейса                                                           */
/* ---------------------------------------------------------------------- */

.lp .lp-case__foot {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	flex-wrap: wrap;
}

.lp .lp-case__back {
	color: var(--lp-ink-muted);
	text-decoration: none;
	border-bottom: 1px solid var(--lp-line-strong);
	transition: color 0.3s ease, border-color 0.3s ease;
}

.lp .lp-case__back:hover,
.lp .lp-case__back:focus-visible {
	color: var(--lp-ink);
	border-bottom-color: var(--lp-crimson);
}

.lp .lp-case__note {
	margin: 0 0 0 auto;
	font-size: 0.85rem;
	color: var(--lp-ink-muted);
}

/* ---------------------------------------------------------------------- */
/* Узкий экран                                                            */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px) {
	.lp .lp-case__body {
		grid-template-columns: 1fr;
	}

	.lp .lp-case__facts {
		grid-template-columns: 1fr;
		gap: 1.2rem;
	}

	.lp .lp-case__note {
		margin-left: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lp .lp-case__site,
	.lp .lp-case__back {
		transition: none;
	}
}
