/**
 * Paid-traffic landings (lp-*) — the last layer on top of schools.css,
 * course.css and home.css.
 *
 * The three Yandex.Direct landings reuse the home sections verbatim, so this
 * sheet only carries what those sections cannot express: the lead-form block,
 * a light-background variant of the hero's trust strip, and a two-column tier
 * grid for the pages that show two tiers instead of three.
 *
 * Hand-written for the same reason as schools.css — the theme's precompiled
 * tailwind.min.css only contains classes that existed at build time, so new
 * Tailwind utilities would silently do nothing. Scoped under .schools-landing
 * like the rest of the landing CSS.
 *
 * @package Robo9
 */

/* Two tiers in a three-column grid would leave a hole on the right. */
.schools-landing .cl-tiers--pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 860px;
	margin-inline: auto;
}

/* --- Lead form ------------------------------------------------------- */

.schools-landing .lp-form__box {
	max-width: 846px;
	margin: clamp(28px, 4vw, 44px) auto 0;
}

/* The CF7 markup ships with Tailwind classes from wp-admin; give the fields a
   predictable look here so the form matches the landing rather than the older
   block pages it was modelled on. */
.schools-landing .lp-form__box .custom-input,
.schools-landing .lp-form__box .custom-textarea,
.schools-landing .lp-form__box select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--sl-line-strong);
	border-radius: var(--sl-radius);
	background: var(--sl-white);
	color: var(--sl-ink);
	font-family: "Manrope", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.4;
}

.schools-landing .lp-form__box .custom-input:focus,
.schools-landing .lp-form__box .custom-textarea:focus,
.schools-landing .lp-form__box select:focus {
	outline: 2px solid var(--sl-black);
	outline-offset: 1px;
	border-color: var(--sl-black);
}

.schools-landing .lp-form__box .custom-textarea {
	min-height: 120px;
	resize: vertical;
}

.schools-landing .lp-form__box .form-button {
	margin-top: 20px;
	padding: 14px 28px;
	border: 0;
	border-radius: var(--sl-radius);
	background: var(--sl-black);
	color: var(--sl-white);
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.schools-landing .lp-form__box .form-button:hover {
	background: var(--sl-ink);
}

/* Contact Form 7 disables the submit button until a required acceptance is
   ticked. Without a visual cue the button simply does nothing when clicked,
   which reads as a broken page rather than as "tick the consent box". */
.schools-landing .lp-form__box .form-button:disabled {
	background: var(--sl-line-strong);
	color: var(--sl-muted);
	cursor: not-allowed;
}

/* Consent line (152-ФЗ): smaller than a field label, and the checkbox must sit
   on the same line as the text it agrees to. */
.schools-landing .lp-form__consent .wpcf7-list-item {
	margin: 0;
}

.schools-landing .lp-form__consent .wpcf7-list-item-label {
	font-size: 0.85rem;
	color: var(--sl-muted);
	line-height: 1.45;
}

.schools-landing .lp-form__consent input[type="checkbox"] {
	margin-right: 8px;
	vertical-align: top;
	margin-top: 3px;
}

.schools-landing .lp-form__consent a {
	color: var(--sl-ink);
	text-decoration: underline;
}

.schools-landing .lp-form__note,
.schools-landing .lp-form__fallback {
	margin: 22px 0 0;
	text-align: center;
	color: var(--sl-muted);
}

.schools-landing .lp-form__note a {
	color: var(--sl-ink);
	text-decoration: underline;
}

/* --- Facts strip on a light section ---------------------------------- */

/* sl-trust is authored for the dark hero: white text on a translucent rule.
   On the light education landing it needs the inverse. */
.schools-landing .lp-facts .sl-trust {
	justify-content: center;
	margin-top: 0;
	border-top-color: var(--sl-line-strong);
}

.schools-landing .lp-facts .sl-trust__item {
	color: var(--sl-ink);
}

.schools-landing .lp-facts .sl-trust__item::before {
	background: var(--sl-black);
}

@media (max-width: 900px) {
	.schools-landing .cl-tiers--pair {
		grid-template-columns: 1fr;
		max-width: 480px;
	}
}

/* Caption under a self-hosted video (landings only — the homepage has none). */
.schools-landing .hl-video__caption {
	margin: 18px auto 0;
	max-width: 760px;
	text-align: center;
}

/* A single priced tier: centred and capped, so it does not read as a column
   that lost its neighbours. */
.schools-landing .cl-tiers--single {
	grid-template-columns: minmax(0, 420px);
	justify-content: center;
}

/* One priced tier plus the "what an organisation gets" column. The card keeps
   its natural width on the right; the argument fills the space that a lone
   card would otherwise leave empty. */
.schools-landing .cl-tiers--aside {
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.schools-landing .cl-aside__title {
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 600;
	color: var(--sl-ink);
	margin: 0 0 18px;
}

.schools-landing .cl-aside__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.schools-landing .cl-aside__list li {
	position: relative;
	padding-left: 26px;
	color: var(--sl-ink);
}

.schools-landing .cl-aside__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 8px;
	height: 8px;
	background: var(--sl-black);
}

.schools-landing .cl-aside__cta {
	margin-top: 28px;
}

@media (max-width: 900px) {
	.schools-landing .cl-tiers--aside {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin-inline: auto;
	}
}

.schools-landing .cl-tiers__cta {
	margin: clamp(24px, 3vw, 36px) 0 0;
	text-align: center;
}
