/* Страница конкурса эскизов витражного светильника.
   Токены — DESIGN.md (как в шаблонах блога gb-blog-single): медь для акцентов,
   глубокая медь для действий и мелкого текста, Quiet Surface полосами, плоско. */

.gb-ct-page {
	--gb-ink: #252525;
	--gb-muted: #5f625e;
	--gb-copper: #b18b66;
	--gb-copper-deep: #765033;
	--gb-surface: #f6f7f5;
	--gb-line: #dde0db;
	--gb-sage: #e8f0ea;
	--gb-sage-ink: #2c4a35;
	--gb-display: "Roboto Slab", Georgia, serif;
	--gb-text: Roboto, "Helvetica Neue", Arial, sans-serif;
	--gb-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.gb-ct {
	background: #fff;
	color: var(--gb-ink);
	font-family: var(--gb-text);
	font-size: 17px;
	line-height: 1.62;
	padding-bottom: 72px;
}

.gb-ct *,
.gb-ct *::before,
.gb-ct *::after {
	box-sizing: border-box;
}

.gb-ct-wrap {
	max-width: 1080px; /* как .container Flatsome: края совпадают с шапкой и подвалом */
	margin: 0 auto;
	padding: 0 15px;
}

.gb-ct p {
	margin: 0 0 16px;
	text-wrap: pretty;
}

/* Типографика gb_blog_typo_html склеивает «e-mail», телефон, диапазоны — правило из стилей блога. */
.gb-ct .gb-nobr {
	white-space: nowrap;
}

/* Адрес почты длиннее узкой колонки — пусть переносится, а не вылезает за край. */
.gb-ct a[href^="mailto:"] {
	overflow-wrap: anywhere;
}

.gb-ct figcaption {
	text-wrap: pretty;
}

.gb-ct .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.gb-ct a {
	color: var(--gb-copper-deep);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.gb-ct a:hover {
	color: var(--gb-ink);
}

.gb-ct a:focus-visible {
	outline: 3px solid var(--gb-copper);
	outline-offset: 3px;
	border-radius: 2px;
}

.gb-ct h1,
.gb-ct h2,
.gb-ct h3 {
	font-family: var(--gb-display);
	font-weight: 700;
	color: var(--gb-ink);
	letter-spacing: -0.01em;
	text-transform: none;
	text-wrap: balance;
}

.gb-ct h2 {
	margin: 0 0 16px;
	font-size: 28px;
	line-height: 1.2;
}

.gb-ct h3 {
	margin: 0 0 6px;
	font-size: 19px;
	line-height: 1.3;
}

.gb-ct-intro {
	max-width: 38em;
	color: var(--gb-ink);
}

.gb-ct-note {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--gb-muted);
}

/* ── Кнопки ─────────────────────────────────────────────── */

.gb-ct-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gb-ct .gb-ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--gb-line);
	border-radius: 2px;
	background: #fff;
	color: var(--gb-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s var(--gb-ease), border-color 0.2s var(--gb-ease);
}

.gb-ct .gb-ct-btn:hover {
	border-color: var(--gb-copper-deep);
	color: var(--gb-ink);
}

.gb-ct .gb-ct-btn--primary {
	border-color: var(--gb-copper-deep);
	background: var(--gb-copper-deep);
	color: #fff;
}

.gb-ct .gb-ct-btn--primary:hover {
	border-color: var(--gb-ink);
	background: var(--gb-ink);
	color: #fff;
}

/* ── Первый экран ───────────────────────────────────────── */

.gb-ct-hero {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 56px;
	align-items: center;
	padding-top: 48px;
}

.gb-ct-title {
	margin: 0 0 18px;
	font-size: 42px;
	line-height: 1.12;
}

.gb-ct .gb-ct-lead {
	max-width: 32em;
	margin: 0 0 28px;
	font-size: 20px;
	line-height: 1.5;
}

.gb-ct-hero__media {
	margin: 0;
}

.gb-ct-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: 8px;
	background: var(--gb-surface);
}

.gb-ct-hero__media figcaption {
	margin-top: 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--gb-muted);
}

/* ── Разделы ─────────────────────────────────────────────── */

.gb-ct-section {
	margin-top: 72px;
}

.gb-ct-band {
	margin-top: 72px;
	padding: 56px 0;
	background: var(--gb-surface);
	border-top: 1px solid var(--gb-line);
	border-bottom: 1px solid var(--gb-line);
}

/* Шаги: номер — маркер списка, не подпись над заголовком. */
.gb-ct-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: gb-ct-step;
}

.gb-ct-steps li {
	position: relative;
	margin: 0;
	padding: 18px 0 0 56px;
	border-top: 1px solid var(--gb-line);
	counter-increment: gb-ct-step;
}

.gb-ct-steps li::before {
	content: counter(gb-ct-step);
	position: absolute;
	left: 0;
	top: 16px;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--gb-copper-deep);
	color: #fff;
	font-family: var(--gb-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 40px;
	text-align: center;
}

.gb-ct-steps p {
	margin: 0;
}

/* Пример: лента из четырёх граней и подписи под каждой четвертью. */
.gb-ct-example {
	margin: 28px 0 0;
}

.gb-ct-example img {
	display: block;
	width: 100%;
	height: auto;
}

.gb-ct-faces {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.gb-ct-faces li {
	margin: 0;
	font-size: 14px;
	color: var(--gb-muted);
	text-align: center;
}

.gb-ct-example figcaption {
	max-width: 38em;
	margin-top: 16px;
	font-size: 16px;
	color: var(--gb-ink);
}

/* Советы: пара схем «нельзя / можно», заголовок, текст. */
.gb-ct-tips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.gb-ct-tip {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.gb-ct-tip__pair {
	order: -1;
}

.gb-ct-tip__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.gb-ct-tip__case {
	margin: 0;
}

.gb-ct-tip__case svg {
	display: block;
	width: 100%;
	height: auto;
}

.gb-ct-tip__case figcaption {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
}

.gb-ct-tip__case.is-no figcaption,
.gb-ct-tip__case.is-warn figcaption {
	color: var(--gb-copper-deep);
}

.gb-ct-tip__case.is-yes figcaption {
	color: var(--gb-sage-ink);
}

.gb-ct-tip p {
	margin: 0;
	font-size: 16px;
}

/* Заметка про свет — тонкой линией сверху, как шаги и список отправки, без цветной полосы сбоку. */
.gb-ct .gb-ct-light {
	max-width: 38em;
	margin: 40px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--gb-line);
}

/* Два способа — бумага и компьютер — равноправными колонками, ниже общая отправка. */
.gb-ct-ways {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
	margin-top: 28px;
}

.gb-ct-way h3,
.gb-ct-send h3 {
	margin-bottom: 8px;
}

.gb-ct-send {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 56px;
	align-items: start;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--gb-line);
}

.gb-ct-send__text p {
	max-width: 36em;
}

.gb-ct-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gb-ct-checklist li {
	position: relative;
	margin: 0;
	padding: 12px 0 12px 32px;
	border-top: 1px solid var(--gb-line);
}

.gb-ct-checklist li::before {
	content: "✓";
	position: absolute;
	left: 4px;
	top: 12px;
	color: var(--gb-sage-ink);
	font-weight: 700;
}

.gb-ct-send__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Курс: живой блок по образцу карточки МК (DESIGN.md §8). */
.gb-ct-course {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px;
	padding: 24px;
	background: var(--gb-surface);
	border-radius: 8px;
}

.gb-ct .gb-ct-course__media {
	display: block;
	align-self: start;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
}

.gb-ct .gb-ct-course__name {
	margin: -8px 0 8px;
	font-family: var(--gb-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--gb-copper-deep);
}

.gb-ct-course__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gb-ct .gb-ct-course h2 {
	font-size: 24px;
}

.gb-ct .gb-ct-course__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 20px;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}

.gb-ct-chip {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--gb-sage);
	color: var(--gb-sage-ink);
	font-size: 14px;
	font-weight: 600;
}

/* ── Планшет ─────────────────────────────────────────────── */

@media (max-width: 960px) {
	.gb-ct-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 32px;
	}

	.gb-ct-title {
		font-size: 34px;
	}

	.gb-ct-steps {
		grid-template-columns: 1fr;
		gap: 0;
		max-width: 38em;
	}

	.gb-ct-steps li {
		padding-bottom: 16px;
	}

	.gb-ct-tips {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.gb-ct-tip {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: 28px;
		padding: 20px 0;
		border-top: 1px solid var(--gb-line);
	}

	.gb-ct-tip__pair {
		grid-row: 1 / span 2;
		margin-bottom: 0;
	}

	.gb-ct-send {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.gb-ct-send__actions {
		max-width: 420px;
	}
}

/* ── Телефон ─────────────────────────────────────────────── */

@media (max-width: 640px) {
	.gb-ct {
		font-size: 16px;
		padding-bottom: 56px;
	}

	.gb-ct-wrap {
		padding: 0 16px;
	}

	.gb-ct-hero {
		grid-template-columns: 1fr;
		gap: 24px;
		padding-top: 28px;
	}

	.gb-ct-title {
		font-size: 28px;
		line-height: 1.16;
	}

	.gb-ct .gb-ct-lead {
		font-size: 18px;
		margin-bottom: 22px;
	}

	.gb-ct-hero__media img {
		max-height: 420px;
	}

	.gb-ct .gb-ct-btn {
		flex: 1 1 100%;
	}

	.gb-ct h2 {
		font-size: 22px;
	}

	.gb-ct-section,
	.gb-ct-band {
		margin-top: 48px;
	}

	.gb-ct-band {
		padding: 40px 0;
	}

	.gb-ct-steps,
	.gb-ct-tips,
	.gb-ct-ways {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.gb-ct-way + .gb-ct-way {
		margin-top: 24px;
	}

	.gb-ct-steps li {
		padding-bottom: 16px;
	}

	.gb-ct-tip {
		display: flex;
		padding: 20px 0;
		border-top: 1px solid var(--gb-line);
	}

	.gb-ct-tip__pair {
		margin-bottom: 16px;
	}

	.gb-ct-tip__pair {
		max-width: 300px;
	}

	.gb-ct-faces li {
		font-size: 13px;
	}

	.gb-ct-send__actions {
		max-width: none;
	}

	.gb-ct-course {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 18px;
	}

	.gb-ct .gb-ct-course h2 {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gb-ct * {
		transition: none !important;
	}
}

@media print {
	.gb-ct-actions,
	.gb-ct-send__actions {
		display: none;
	}
}
