/**
 * Лендинг «Тести на урок» — /testy-na-urok/.
 * Система «Теплий зошит»: змінні й кнопки дає тема, тут лише розкладка.
 */

.lt { padding-bottom: clamp(40px, 6vw, 72px); }

.lt-section { margin-top: clamp(44px, 7vw, 84px); }

.lt-section .z-h2 { max-width: 30ch; }

.lt-section__sub {
	margin: 10px 0 0;
	max-width: 60ch;
	color: var(--ink-2);
}

.lt-section__cta { margin: 26px 0 0; }

/* ── 1. Перший екран ────────────────────────────────────────────────── */

.lt-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
	margin-top: clamp(18px, 3vw, 34px);
}

.lt-badge {
	display: inline-block;
	margin: 0 0 14px;
	padding: 7px 14px;
	border-radius: 999px;
	background: rgba(194, 84, 10, 0.1);
	color: var(--ochre);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lt-hero__lead {
	margin: 18px 0 0;
	max-width: 56ch;
	color: var(--ink-2);
	font-size: 1.125rem;
	line-height: 1.65;
}

.lt-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.lt-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
	color: var(--ink-2);
	font-size: 0.9375rem;
}

.lt-hero__trust li { display: flex; align-items: center; gap: 8px; }

.lt-hero__trust li::before {
	content: "✓";
	color: var(--green, #2f7d4f);
	font-weight: 700;
}

/* Демо «один тест — різні числа» */

.lt-hero__demo {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--paper-2);
	box-shadow: 0 24px 50px rgba(25, 33, 46, 0.08);
}

.lt-demo__title {
	margin: 0 0 14px;
	color: var(--ink-3);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.lt-demo__cards { display: grid; gap: 12px; }

.lt-demo__card {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #ffffff;
}

/* Друга картка трохи зсунута — читається як дві різні парти, а не список */
.lt-demo__card:nth-child(2) { transform: translateX(14px); }

.lt-demo__pupil {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	color: var(--ink-2);
	font-size: 0.875rem;
	font-weight: 600;
}

.lt-demo__task { margin: 0; font-size: 0.9675rem; }
.lt-demo__task b { color: var(--ochre); }

.lt-demo__answer {
	margin: 8px 0 0;
	color: var(--ink-2);
	font-size: 0.875rem;
}

.lt-demo__ok { color: var(--green, #2f7d4f); font-weight: 700; }

.lt-demo__note {
	margin: 14px 0 0;
	color: var(--ink-3);
	font-size: 0.875rem;
	text-align: center;
}

/* ── 2. Цифри ───────────────────────────────────────────────────────── */

.lt-stats { margin-top: clamp(34px, 5vw, 56px); }

.lt-stats__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	padding: 20px clamp(16px, 3vw, 34px);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--paper-3);
}

.lt-stats__row p { display: grid; gap: 2px; margin: 0; text-align: center; }

.lt-stats__row b {
	font-family: var(--font-display, inherit);
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
}

.lt-stats__row span { color: var(--ink-3); font-size: 0.8438rem; }

/* ── 3. Болі → рішення ─────────────────────────────────────────────── */

.lt-pains {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 26px;
}

.lt-pain {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #ffffff;
}

.lt-pain h3 { margin: 0 0 10px; font-size: 1.0625rem; }
.lt-pain p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.65; }

/* ── 4. Кроки ───────────────────────────────────────────────────────── */

.lt-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.lt-steps li {
	position: relative;
	padding: 22px;
	border: 1px dashed var(--line);
	border-radius: 18px;
	background: var(--paper-2);
}

.lt-steps__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--ink);
	color: #ffffff;
	font-weight: 700;
}

.lt-steps h3 { margin: 0 0 8px; font-size: 1.0625rem; }
.lt-steps p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }

/* ── 5. Предмети ────────────────────────────────────────────────────── */

.lt-subjects {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.lt-subject {
	display: grid;
	gap: 4px;
	height: 100%;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #ffffff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

a.lt-subject:hover {
	transform: translateY(-2px);
	border-color: var(--ochre);
	box-shadow: 0 12px 26px rgba(25, 33, 46, 0.09);
}

.lt-subject__title { font-weight: 600; }
.lt-subject__meta { color: var(--ink-3); font-size: 0.8438rem; }

.lt-subject--soon { background: none; border-style: dashed; }
.lt-subject--soon .lt-subject__title { color: var(--ink-3); }

.lt-section__more { margin: 20px 0 0; }
.lt-section__more a { color: var(--ochre); font-weight: 600; }

/* ── 6. Порівняння ──────────────────────────────────────────────────── */

.lt-compare__scroll { margin-top: 26px; overflow-x: auto; }

.lt-compare {
	width: 100%;
	min-width: 640px;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #ffffff;
	font-size: 0.9375rem;
}

.lt-compare th,
.lt-compare td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--line-soft, var(--line));
	text-align: left;
	vertical-align: top;
}

.lt-compare thead th {
	color: var(--ink-3);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lt-compare tbody th { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.lt-compare tbody tr:last-child th,
.lt-compare tbody tr:last-child td { border-bottom: 0; }
.lt-compare td { color: var(--ink-2); }

.lt-compare .lt-compare__us {
	background: rgba(194, 84, 10, 0.07);
	color: var(--ink);
	font-weight: 600;
}

.lt-compare thead .lt-compare__us { color: var(--ochre); }

.lt-compare__note {
	margin: 14px 0 0;
	max-width: 70ch;
	color: var(--ink-2);
	font-size: 0.9375rem;
}

/* ── 7. Місток до презентацій ───────────────────────────────────────── */

.lt-bridge {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(44px, 7vw, 84px);
	padding: 22px clamp(18px, 3vw, 30px);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--paper-3);
}

.lt-bridge p { margin: 0; max-width: 56ch; color: var(--ink-2); }

/* ── 8. Текст і FAQ ─────────────────────────────────────────────────── */

.lt-text p {
	margin: 14px 0 0;
	max-width: 74ch;
	color: var(--ink-2);
	line-height: 1.72;
}

.lt-faq { display: grid; gap: 10px; margin-top: 24px; max-width: 820px; }

.lt-faq__item {
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #ffffff;
}

.lt-faq__item summary {
	padding: 16px 18px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.lt-faq__item summary::-webkit-details-marker { display: none; }

.lt-faq__item summary::after {
	content: "+";
	float: right;
	color: var(--ochre);
	font-size: 1.25rem;
	line-height: 1;
}

.lt-faq__item[open] summary::after { content: "–"; }

.lt-faq__item p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--ink-2);
	line-height: 1.65;
}

.lt-final { margin-top: clamp(44px, 7vw, 84px); }

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

@media (max-width: 960px) {
	.lt-hero { grid-template-columns: 1fr; }
	.lt-hero__demo { max-width: 460px; }
	.lt-pains, .lt-steps { grid-template-columns: 1fr 1fr; }
	.lt-subjects { grid-template-columns: repeat(3, 1fr); }
	.lt-stats__row { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
}

@media (max-width: 640px) {
	.lt-pains, .lt-steps { grid-template-columns: 1fr; }
	.lt-subjects { grid-template-columns: 1fr 1fr; }
	.lt-demo__card:nth-child(2) { transform: none; }
	.lt-hero__cta .z-btn { width: 100%; }
	.lt-bridge { flex-direction: column; align-items: stretch; text-align: center; }
}
