:root {
	--bg: #f6f7ff;
	--surface: #eef1ff;
	--surface-strong: #ffffff;
	--text: #17212b;
	--muted: #617083;
	--line: #dfe4ff;
	--brand: #5865f2;
	--brand-dark: #3b45b9;
	--coral: #ff7a59;
	--yellow: #ffd65c;
	--green: #57f287;
	--dark: #23272a;
	--shadow: 0 20px 55px rgba(35, 39, 42, 0.16);
	--radius: 8px;
	--max: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(circle at 12% 18%, rgba(87, 242, 135, 0.24), transparent 24rem),
		radial-gradient(circle at 86% 12%, rgba(255, 214, 92, 0.3), transparent 24rem);
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--brand-dark);
}

p,
ul,
ol,
h1,
h2,
h3 {
	margin-top: 0;
}

p {
	color: var(--muted);
}

h1,
h2,
h3 {
	line-height: 1.12;
	letter-spacing: 0;
}

h1 {
	font-size: clamp(2.4rem, 5.4vw, 4.7rem);
	margin-bottom: 1.25rem;
}

h2 {
	font-size: clamp(2rem, 4vw, 3.4rem);
	margin-bottom: 1rem;
}

h3 {
	font-size: 1.25rem;
	margin-bottom: 0.65rem;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.9rem clamp(1rem, 4vw, 3rem);
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(16px);
	box-shadow: 0 8px 24px rgba(35, 39, 42, 0.08);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 220px;
}

.brand-mark {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border-radius: 50%;
	background: var(--dark);
	color: #fff;
	font-weight: 800;
	overflow: hidden;
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand strong,
.brand small {
	display: block;
}

.brand strong {
	font-size: 1.05rem;
}

.brand small {
	color: var(--muted);
	font-size: 0.78rem;
	line-height: 1.2;
}

.top-nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
	justify-content: center;
}

.top-nav a {
	padding: 0.55rem 0.75rem;
	border-radius: 999px;
	color: #314151;
	font-weight: 700;
	font-size: 0.92rem;
}

.top-nav a:hover {
	background: #eef1ff;
	color: var(--brand-dark);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.2rem;
	border: 2px solid var(--dark);
	border-radius: 999px;
	background: var(--dark);
	color: #fff;
	font-weight: 800;
	box-shadow: 0 8px 0 rgba(23, 33, 43, 0.16);
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 0 rgba(23, 33, 43, 0.12);
	background: var(--brand-dark);
	color: #fff;
}

.button-small {
	min-height: 42px;
	padding: 0.65rem 1rem;
	font-size: 0.92rem;
	white-space: nowrap;
}

.button-ghost {
	background: #ffffff;
	color: var(--dark);
	box-shadow: none;
}

.button-ghost:hover {
	background: #fff;
	color: var(--brand-dark);
	box-shadow: none;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
	gap: clamp(2rem, 4vw, 4.2rem);
	align-items: center;
	max-width: 1380px;
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 3rem);
	color: #fff;
	position: relative;
	background: #5865f2;
	box-shadow: 0 0 0 100vmax #5865f2;
	clip-path: inset(0 -100vmax);
}

.hero::after {
	display: none;
}

.hero-copy {
	max-width: 760px;
}

.eyebrow {
	position: relative;
	display: inline-block;
	min-height: 1.2rem;
	padding-left: 3rem;
	margin-bottom: 0.9rem;
	color: var(--brand-dark);
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--coral);
	box-shadow: 16px 0 0 var(--yellow), 32px 0 0 var(--green);
}

.lead {
	max-width: 660px;
	font-size: 1.22rem;
	color: #3f4c5a;
}

.hero .eyebrow,
.hero .lead {
	color: rgba(255, 255, 255, 0.92);
}

.hero .button {
	border-color: #fff;
	background: #fff;
	color: var(--dark);
}

.hero .button:hover {
	border-color: var(--dark);
	background: var(--dark);
	color: #fff;
}

.hero .button-ghost {
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.hero-actions,
.contact-actions {
	display: flex;
	gap: 0.85rem;
	flex-wrap: wrap;
	margin: 1.8rem 0 0;
}

.hero-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	padding: 0;
	margin: 2rem 0 0;
	list-style: none;
}

.hero-facts li {
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.13);
	backdrop-filter: blur(10px);
}

.hero-facts strong,
.hero-facts span {
	display: block;
}

.hero-facts strong {
	margin-bottom: 0.25rem;
	font-size: 1.25rem;
}

.hero-facts span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
	line-height: 1.35;
}

.hero-media {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	isolation: isolate;
	padding: 1rem;
	border-radius: 24px;
	background: rgba(35, 39, 42, 0.16);
}

.hero-media::before {
	content: "";
	position: absolute;
	inset: 0.2rem;
	z-index: -1;
	border-radius: 20px;
	background: var(--yellow);
}

.hero-course {
	position: relative;
	display: block;
	border: 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #eef1ff;
	transition: opacity 0.45s ease, box-shadow 0.25s ease;
}

.hero-course:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.95);
	outline-offset: 4px;
}

.hero-course.is-changing {
	opacity: 0;
}

.hero-course img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.hero-course-title {
	position: absolute;
	left: 0.55rem;
	right: 0.55rem;
	bottom: 0.55rem;
	display: flex;
	align-items: center;
	min-height: 34px;
	padding: 0.42rem 0.62rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(35, 39, 42, 0.68);
	color: #fff;
	box-shadow: 0 10px 24px rgba(35, 39, 42, 0.18);
	backdrop-filter: blur(12px);
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.12;
	opacity: 0.9;
	transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.hero-course:hover .hero-course-title,
.hero-course:focus-visible .hero-course-title {
	opacity: 1;
	background: rgba(35, 39, 42, 0.82);
}

.hero-course:nth-child(1) {
	grid-column: auto;
	aspect-ratio: 4 / 3;
}

.section,
.page-hero,
.course-detail,
.contact,
.site-footer {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.intro {
	margin-top: 2.4rem;
}

.section-heading {
	max-width: 760px;
	margin-bottom: 2rem;
}

.intro-grid,
.course-grid,
.mission-grid {
	display: grid;
	gap: 1rem;
}

.intro-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intro-grid article,
.course-card,
.mission,
.process,
.contact,
.course-detail {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 18px 42px rgba(35, 39, 42, 0.08);
}

.intro-grid article {
	padding: 1.4rem;
}

.intro-grid article:nth-child(1) {
	border-top: 6px solid var(--coral);
}

.intro-grid article:nth-child(2) {
	border-top: 6px solid var(--brand);
}

.intro-grid article:nth-child(3) {
	border-top: 6px solid var(--yellow);
}

.course-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-card {
	position: relative;
	overflow: hidden;
	background: var(--surface-strong);
	box-shadow: 0 12px 34px rgba(23, 33, 43, 0.06);
	cursor: pointer;
	--image-scale: 1.012;
	--image-shift-x: 0px;
	--image-shift-y: 0px;
	--image-rotate: 0deg;
	--image-saturate: 1.03;
	transition: box-shadow 0.25s ease, opacity 0.35s ease;
}

.course-window-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 34px;
	padding: 0.42rem 5.5rem;
	border-bottom: 1px solid #cfd3dc;
	background: linear-gradient(180deg, #f9fafc 0%, #e9ecf2 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.course-detail > .course-window-bar {
	grid-column: 1 / -1;
}

.course-window-controls {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
}

.window-dot {
	display: inline-grid;
	place-items: center;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	color: rgba(95, 40, 36, 0.62);
	font-size: 8px;
	font-weight: 800;
	line-height: 1;
	box-shadow:
		inset 0 0 0 1px rgba(35, 39, 42, 0.12),
		inset 0 -1px 1px rgba(35, 39, 42, 0.18),
		0 1px 0 rgba(255, 255, 255, 0.9);
}

.window-dot-red {
	background: radial-gradient(circle at 35% 30%, #ff9d97 0 18%, #ff5f57 42%, #e0443e 100%);
	cursor: default;
}

.course-window-controls:hover .window-dot-red::before {
	content: "x";
}

.window-dot-yellow {
	padding: 0;
	border: 0;
	background: radial-gradient(circle at 35% 30%, #ffd989 0 18%, #ffbd2e 42%, #dea123 100%);
	cursor: pointer;
}

.window-dot-yellow:hover,
.window-dot-yellow:focus-visible {
	outline: 2px solid rgba(255, 189, 46, 0.48);
	outline-offset: 2px;
}

.course-window-controls:hover .window-dot-yellow::before {
	content: "-";
	transform: translateY(-1px);
}

.window-dot-green {
	background: radial-gradient(circle at 35% 30%, #83ef92 0 18%, #28c840 42%, #1ba934 100%);
	cursor: default;
}

.course-window-controls:hover .window-dot-green::before {
	content: "+";
}

.course-window-title {
	min-width: 0;
	overflow: hidden;
	color: #59616c;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.1;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.18s ease;
}

.course-detail.is-collapsed .course-window-title {
	opacity: 1;
}

.course-detail.is-collapsed > img,
.course-detail.is-collapsed > div:not(.course-window-bar) {
	display: none;
}

.course-detail.is-collapsed {
	display: block;
	align-self: start;
}

.course-card:focus-visible {
	outline: 3px solid rgba(255, 214, 92, 0.95);
	outline-offset: 5px;
}

.course-card[data-duration]::before {
	content: attr(data-duration);
	position: absolute;
	left: 1rem;
	top: 3.55rem;
	z-index: 4;
	max-width: calc(100% - 2rem);
	padding: 0.55rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: rgba(35, 39, 42, 0.9);
	color: #fff;
	box-shadow: 0 14px 34px rgba(35, 39, 42, 0.2);
	font-size: 0.78rem;
	font-weight: 900;
	line-height: 1.1;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.course-card[data-duration]::after {
	content: "";
	position: absolute;
	left: 2rem;
	top: 5.7rem;
	z-index: 4;
	width: 12px;
	height: 12px;
	background: rgba(35, 39, 42, 0.9);
	transform: rotate(45deg);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease;
}

.course-card[data-duration]:hover::before,
.course-card[data-duration]:focus-within::before,
.course-card[data-duration]:hover::after,
.course-card[data-duration]:focus-within::after {
	opacity: 1;
}

.course-card:hover {
	box-shadow: 0 20px 46px rgba(35, 39, 42, 0.13);
}

.course-card.is-dissolving {
	opacity: 0.16;
}

.course-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background: #eef1ff;
	transition: none;
}

.course-card div {
	position: relative;
	padding: 1.15rem;
}

.course-card div::after {
	content: "";
	position: absolute;
	left: 1.15rem;
	right: 1.15rem;
	bottom: 0;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--brand));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.course-card:hover div::after {
	transform: scaleX(1);
}

.course-card p {
	min-height: 5.1rem;
	font-size: 0.98rem;
}

.course-card a {
	display: inline-flex;
	font-weight: 900;
	color: var(--brand-dark);
}

.tag {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0.2rem 0.62rem;
	margin-bottom: 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(88, 101, 242, 0.28);
	background: #ffffff;
	color: #29304d;
	box-shadow: 0 6px 16px rgba(35, 39, 42, 0.08);
	font-size: 0.8rem;
	font-weight: 900;
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	padding: 0;
	margin: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	position: relative;
	padding: 1.4rem 1.4rem 1.4rem 4.4rem;
	border-radius: var(--radius);
	background: #fff;
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 1.2rem;
	top: 1.25rem;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	font-weight: 900;
}

.steps strong,
.steps span {
	display: block;
}

.steps span {
	color: var(--muted);
}

.page-hero {
	color: #fff;
	background: #5865f2;
	box-shadow: 0 0 0 100vmax #5865f2;
	clip-path: inset(0 -100vmax);
	padding-top: clamp(4rem, 8vw, 7rem);
	padding-bottom: clamp(2rem, 5vw, 4rem);
}

.page-hero h1 {
	max-width: 940px;
}

.page-hero .eyebrow,
.page-hero .lead {
	color: rgba(255, 255, 255, 0.92);
}

.mission-grid {
	grid-template-columns: 0.9fr 1.1fr;
	align-items: start;
}

.check-list {
	display: grid;
	gap: 0.7rem;
	padding: 0;
	margin: 0 0 1.4rem;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 1.8rem;
	color: #394858;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 3px;
	background: var(--brand);
}

.course-detail {
	display: grid;
	grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
	gap: 0;
	align-items: center;
	width: min(calc(100% - 2rem), var(--max));
	margin-top: 1.5rem;
	background: var(--surface-strong);
	overflow: hidden;
	padding: 0;
	box-shadow:
		0 26px 70px rgba(23, 33, 43, 0.13),
		0 1px 0 rgba(255, 255, 255, 0.95) inset;
	--window-pad: clamp(1.25rem, 3vw, 2.5rem);
}

.course-detail img {
	transition: none;
}

.course-detail:nth-of-type(even) {
	background: var(--surface-strong);
}

.course-detail img {
	width: calc(100% - (var(--window-pad) * 2));
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: var(--window-pad);
	border-radius: var(--radius);
	background: #eef1ff;
}

.course-detail > div:not(.course-window-bar) {
	padding: var(--window-pad) var(--window-pad) var(--window-pad) 0;
}

.contact {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 2rem;
	align-items: center;
	margin-top: 3rem;
	margin-bottom: 2rem;
	background: var(--dark);
	color: #fff;
}

.contact p {
	color: #d9e1e8;
}

.contact .eyebrow {
	color: #9ee7ee;
}

address {
	display: grid;
	gap: 0.85rem;
	padding: 1.3rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius);
	font-style: normal;
	background: rgba(255, 255, 255, 0.06);
}

address a,
address span {
	color: #eef6f8;
}

.site-footer {
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
	padding-top: 1.2rem;
	padding-bottom: 2rem;
	color: var(--muted);
	font-size: 0.92rem;
}

.site-footer a {
	font-weight: 800;
	color: var(--brand-dark);
}

@media (max-width: 1100px) {
	.site-header {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.top-nav {
		order: 3;
		width: 100%;
		justify-content: flex-start;
	}

	.hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.hero-course {
		aspect-ratio: 4 / 3;
	}

	.hero-course:nth-child(1) {
		aspect-ratio: 4 / 3;
	}

	.course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	body {
		font-size: 16px;
	}

	.site-header {
		position: static;
	}

	.brand {
		min-width: 0;
	}

	.site-header > .button {
		width: 100%;
	}

	.top-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.4rem;
	}

	.top-nav a {
		background: #fff;
		text-align: center;
	}

	.hero-facts,
	.intro-grid,
	.steps,
	.mission-grid,
	.course-detail,
	.contact {
		grid-template-columns: 1fr;
	}

	.course-grid {
		grid-template-columns: 1fr;
	}

	.course-card p {
		min-height: 0;
	}

	.course-detail {
		padding: 0;
	}

	.course-detail img {
		aspect-ratio: 16 / 10;
		margin-bottom: 1rem;
	}

	.course-detail > div:not(.course-window-bar) {
		padding: 0 var(--window-pad) var(--window-pad);
	}

	.site-footer {
		flex-wrap: wrap;
		justify-content: flex-start;
	}
}

@media (hover: none), (pointer: coarse) {
	.course-card,
	.course-card:hover {
		transform: none;
	}

	.course-card:hover img,
	.course-detail:hover img {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

}

@media (max-width: 430px) {
	h1 {
		font-size: 2.25rem;
	}

	.hero-actions .button,
	.contact-actions .button {
		width: 100%;
	}

	.brand small {
		display: none;
	}
}
