:root {
	--brand-red: #a21e21;
	--brand-red-dark: #80161a;
	--brand-red-tint: rgba(162, 30, 33, 0.07);
	--ink: #1d2125;
	--ink-soft: #5b6168;
	--header-bg: #15191c;
	--main-bg: #f1efec;
	--card-bg: #fff;
	--line: #e6e3de;
	--radius: 12px;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	background: var(--main-bg);
	-webkit-font-smoothing: antialiased;
}

body {
	display: flex;
	flex-direction: column;
}

.topbar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 72px;
	padding: 12px 28px;
	background: linear-gradient(180deg, #1a1f23 0%, var(--header-bg) 100%);
	border-bottom: 3px solid var(--brand-red);
	color: #fff;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.brand-logo {
	width: 52px;
	height: 52px;
	flex: 0 0 auto;
	display: block;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.brand-name {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.brand-claim {
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

.page-title {
	flex: 1 1 auto;
	text-align: center;
	min-width: 0;
}

.page-title h1 {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
}

.page-title p {
	margin: 4px 0 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
}

.shop-link {
	flex: 0 0 auto;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.shop-link:hover {
	background: var(--brand-red);
	border-color: var(--brand-red);
}

main {
	flex: 1 1 auto;
	width: min(920px, 100%);
	margin: 0 auto;
	padding: 36px 24px 48px;
}

.intro {
	margin: 0 0 28px;
	padding: 20px 22px;
	background: var(--card-bg);
	border: 1px solid var(--line);
	border-left: 4px solid var(--brand-red);
	border-radius: var(--radius);
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-soft);
}

.intro-hint {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	color: var(--ink-soft);
}

.course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

.course-card {
	display: flex;
	flex-direction: column;
	background: var(--card-bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.course-card:hover {
	border-color: #d8d3cb;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.course-card-body {
	flex: 1 1 auto;
	padding: 22px 22px 16px;
}

.course-card h2 {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.35;
}

.badge {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--brand-red);
	border-radius: 4px;
}

.course-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ink-soft);
}

.course-card-footer {
	padding: 0 22px 22px;
}

.course-card a {
	display: block;
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--brand-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background 0.15s ease;
}

.course-card a:hover {
	background: var(--brand-red-dark);
}

.empty-state {
	padding: 32px;
	text-align: center;
	color: var(--ink-soft);
	background: var(--card-bg);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}

.site-footer {
	flex: 0 0 auto;
	padding: 16px 24px 24px;
	text-align: center;
	font-size: 12px;
	color: var(--ink-soft);
}

@media (max-width: 720px) {
	.topbar {
		flex-wrap: wrap;
		justify-content: center;
		gap: 14px;
	}

	.page-title {
		order: 3;
		width: 100%;
	}

	.shop-link {
		margin-left: auto;
	}
}
