main {
	padding-bottom: 5rem;
}

.cv-section {
	width: min(1120px, calc(100% - 2rem));
	margin: 0 auto;
	color: #f6f8ff;
}

.cv-section > h1 {
	font-size: clamp(2.4rem, 5vw, 4.2rem);
	line-height: 1;
	letter-spacing: -0.04em;
	margin: 1.25rem 0 0.85rem;
}

.cv-section > p {
	max-width: 68ch;
	margin: 0 auto 1.75rem;
	color: rgba(240, 244, 255, 0.82);
	line-height: 1.7;
	font-size: 1.05rem;
}

.cv-layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
}

.cv-layout > h1,
.cv-layout > p {
	grid-column: 1 / -1;
}

.cv-card {
	position: relative;
	overflow: hidden;
	padding: 1.4rem 1.35rem 1.25rem;
	border-radius: 26px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.07)),
		rgba(10, 14, 30, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	backdrop-filter: blur(14px);
	text-align: left;
}

.cv-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(125, 211, 252, 0.14), transparent 40%, rgba(168, 85, 247, 0.1));
	pointer-events: none;
}

.cv-card > * {
	position: relative;
	z-index: 1;
}

.cv-card h2 {
	margin: 0 0 0.95rem;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.cv-card ul {
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.cv-card li {
	padding: 0.9rem 1rem;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(240, 244, 255, 0.9);
	line-height: 1.55;
}

.education-list {
	list-style: none;
	display: grid;
	gap: 0.85rem;
	width: min(100%, 760px);
	margin: 0 auto;
}

.cv-education {
	grid-column: 1 / -1;
	justify-self: center;
	width: min(100%, 760px);
}

.education-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 88px;
	align-items: center;
	gap: 0.95rem;
	padding: 0.9rem 1rem;
	min-height: 92px;
}

.education-item span {
	min-width: 0;
}

.education-item img {
	width: 100px;
	height: 100px;
	max-width: 100px;
	justify-self: flex-end;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.cv-card img {
	display: block;
	width: 100%;
	height: 88px;
	object-fit: contain;
	margin: 0;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.cv-skills {
	grid-column: 1 / 2;
}

.cv-projects,
.cv-experience,
.cv-languages {
	grid-column: span 1;
}

.cv-card {
	opacity: 1;
	transform: none;
}

@supports (animation-timeline: view()) {
	.cv-card {
		opacity: 0;
		transform: translateY(28px) scale(0.98);
		animation-name: cv-card-reveal;
		animation-duration: 1s;
		animation-timing-function: ease-out;
		animation-fill-mode: both;
		animation-timeline: view();
		animation-range: entry 10% cover 35%;
	}

	.cv-card:nth-of-type(2) {
		animation-range: entry 8% cover 32%;
	}

	.cv-card:nth-of-type(3) {
		animation-range: entry 8% cover 34%;
	}

	.cv-card:nth-of-type(4) {
		animation-range: entry 8% cover 36%;
	}

	.cv-card:nth-of-type(5) {
		animation-range: entry 8% cover 38%;
	}
}

@keyframes cv-card-reveal {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (max-width: 900px) {
	.cv-layout {
		grid-template-columns: 1fr;
	}

	.cv-education {
		grid-column: auto;
		width: 100%;
	}

	.cv-skills,
	.cv-projects,
	.cv-experience,
	.cv-languages {
		grid-column: auto;
	}

	.cv-card {
		padding: 1.2rem 1rem;
	}

	.education-item {
		grid-template-columns: minmax(0, 1fr) 72px;
	}

	.education-item img {
		width: 64px;
		height: 64px;
		max-width: 64px;
	}
}

@media (max-width: 640px) {
	.education-item {
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.education-item img {
		width: 72px;
		height: 72px;
		max-width: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cv-card {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}
