: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);
}

.shop-link {
	flex: 0 0 auto;
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.shop-link-icon {
	display: block;
	width: 22px;
	height: 22px;
}

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

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

.course-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.course-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 20px;
	background: var(--card-bg);
	border: 1px solid var(--line);
	border-radius: 10px;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.course-row:hover {
	border-color: #d8d3cb;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.course-row-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.course-title {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.course-desc {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--ink-soft);
}

.course-open {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--brand-red);
	color: #fff;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.15s ease;
}

.course-open svg {
	display: block;
	width: 24px;
	height: 24px;
}

.course-open:hover {
	background: var(--brand-red-dark);
	transform: translateX(2px);
}

.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 {
		gap: 14px;
	}
}

@media (max-width: 540px) {
	.course-row {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.course-open {
		align-self: flex-end;
	}
}
