/**
 * 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;
}

/* --- Price on the first screen (SO-ARM101 page) ---------------------- */

/* The hero is a dark section, so the price has to carry itself without a
   card behind it: size and weight, with the delivery note deliberately quiet
   next to it. */
.schools-landing .sl-hero__price {
	/*
	 * Bottom margin as well as top: the buttons follow immediately in the
	 * markup and carry no margin of their own, so without this the price sits
	 * directly on top of "Купить набор" — line-height:1 on the figure leaves
	 * no descender space either, which makes the collision worse than the
	 * numbers alone suggest.
	 */
	margin: clamp(20px, 3vw, 28px) 0 clamp(20px, 3vw, 28px);
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 22px;
}

.schools-landing .sl-hero__price-value {
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-size: clamp(2rem, 4.5vw, 2.9rem);
	font-weight: 700;
	line-height: 1;
	color: var(--sl-white);
	/*
	 * The thousands separator is a no-break space, which Space Grotesk sets
	 * far too tight at this size — "29 990" reads as one run of digits.
	 * word-spacing opens the separator without touching the figures.
	 */
	word-spacing: 0.16em;
}

.schools-landing .sl-hero__price-note {
	font-size: 0.95rem;
	color: var(--sl-on-dark);
}

/* --- Specification table --------------------------------------------- */

/*
 * index.css styles every <table> on the site for pasted article markup:
 * `display: block`, `width: max-content !important` and a 1px black border on
 * each cell. All three have to be undone here, the width with !important
 * because that is the only way to outrank it — otherwise the specification
 * collapses to a narrow boxed grid instead of a full-width row list.
 */
.schools-landing .lp-specs__table {
	display: table;
	width: 100% !important;
	max-width: 100%;
	border: 0;
	border-collapse: collapse;
	margin-top: clamp(24px, 3vw, 36px);
}

.schools-landing .lp-specs__table th,
.schools-landing .lp-specs__table td {
	text-align: left;
	vertical-align: top;
	padding: 14px 16px 14px 0;
	border: 0;
	border-bottom: 1px solid var(--sl-line-strong);
	font-size: 0.98rem;
	line-height: 1.5;
}

.schools-landing .lp-specs__table th {
	width: 34%;
	font-weight: 600;
	color: var(--sl-muted);
	white-space: normal;
}

.schools-landing .lp-specs__table td {
	color: var(--sl-ink);
}

/* Link out to the product page's long description, under the table. */
.schools-landing .lp-specs__more {
	margin: 20px 0 0;
}

.schools-landing .lp-specs__more a {
	color: var(--sl-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 640px) {
	.schools-landing .lp-specs__table th,
	.schools-landing .lp-specs__table td {
		display: block;
		width: auto;
		padding: 0;
		border: 0;
	}
	.schools-landing .lp-specs__table th {
		padding-top: 14px;
	}
	.schools-landing .lp-specs__table td {
		padding-bottom: 14px;
		border-bottom: 1px solid var(--sl-line-strong);
	}
}

/* Buy line above the closing form (SO-ARM101 page). */
.schools-landing .lp-form__buy {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin: clamp(20px, 3vw, 30px) 0 0;
}

.schools-landing .lp-form__buy-price {
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1;
	color: var(--sl-ink);
	word-spacing: 0.16em;
}

/* --- SO-ARM101: keep the offer above the fold on a phone ---------------- */

/*
 * schools.css lifts the hero photograph above the copy below 860px. On the
 * other landings that is right — the picture sells the idea. Here the brief is
 * explicit that the price and the buy button must be visible without
 * scrolling on a 414px screen, and the photograph pushes them roughly 380px
 * down: far enough that a phone with its address bar showing opens on the
 * picture alone. The photograph moves below the buttons instead.
 */
@media (max-width: 860px) {
	.page-template-page-landing-makers .sl-hero__media {
		order: 1;
	}
}

/*
 * Olympiad list — the organisation's mark before its name.
 *
 * A fixed 28px box with the image contained inside it, because the seven marks
 * arrive in different aspect ratios: a square roundel next to a tall emblem
 * next to a wide wordmark. Sizing by height alone would make the wide ones
 * dominate the column.
 *
 * The marks sit on their own colours, so they are left alone in dark mode
 * rather than inverted — inverting a coat of arms produces a mess.
 */
.schools-landing .lp-specs__key {
	display: flex;
	align-items: center;
	gap: 12px;
}

.schools-landing .lp-specs__logo {
	flex: 0 0 auto;
	/*
	 * Wider than tall, and contained rather than cropped. The seven marks are a
	 * square roundel, a tall emblem and two wide wordmarks; a 28x28 box shrinks
	 * a 976x268 wordmark to a 7px sliver. Giving the box width lets the wide
	 * ones use it while the square ones stay 28 tall.
	 */
	width: 46px;
	height: 30px;
	object-fit: contain;
	object-position: left center;
}

@media (max-width: 640px) {
	.schools-landing .lp-specs__logo {
		width: 34px;
		height: 24px;
	}
}
