/* Kevarto: архив мастеров /masters/ */

.masters-hero {
	background-color: #0f0e17;
	background-image:
		radial-gradient(640px 320px at 8% 115%, rgba(253, 90, 55, 0.16), transparent 62%),
		radial-gradient(500px 260px at 94% -30%, rgba(253, 90, 55, 0.09), transparent 60%);
	padding: 34px 0 56px;
}

.masters-hero .ct-container {
	animation: mastersHeroFade 0.5s ease-out both;
}

.masters-breadcrumbs {
	animation: mastersHeroFade 0.5s ease-out both;
	font-size: 13px;
	margin-top: 26px;
	margin-bottom: 0;
}

.masters-breadcrumbs a,
.masters-breadcrumbs .ct-separator {
	color: rgba(236, 235, 242, 0.6);
}

.masters-breadcrumbs a:hover {
	color: #fd5a37;
}

.masters-breadcrumbs .last-item span {
	color: #f4f4f5;
}

.masters-hero__title {
	font-size: 38px;
	font-weight: 700;
	line-height: 1.15;
	color: #ffffff;
	margin: 0;
	animation: mastersHeroFade 0.5s ease-out 0.08s both;
}

.masters-hero__title::before {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: #fd5a37;
	border-radius: 2px;
	margin-bottom: 14px;
	transform-origin: left center;
	animation: mastersHeroLine 0.4s ease-out 0.35s both;
}

.masters-hero__subtitle {
	max-width: 560px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	color: rgba(236, 235, 242, 0.72);
	margin: 12px 0 0;
	animation: mastersHeroFade 0.5s ease-out 0.18s both;
}

.masters-listing {
	padding: 56px 0 70px;
}

.masters-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.master-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid rgba(3, 3, 6, 0.06);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(3, 3, 6, 0.04), 0 12px 32px -14px rgba(3, 3, 6, 0.12);
	padding: 26px 24px 22px;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.master-card:hover {
	transform: translateY(-5px);
	border-color: rgba(253, 90, 55, 0.35);
	box-shadow: 0 2px 4px rgba(3, 3, 6, 0.05), 0 20px 40px -16px rgba(3, 3, 6, 0.18);
}

.master-card:focus-visible {
	outline: 2px solid #fd5a37;
	outline-offset: 3px;
}

.master-card__name {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: #0f0e17;
	margin: 0 0 12px;
	transition: color 0.25s ease;
}

.master-card:hover .master-card__name {
	color: #fd5a37;
}

.master-card__quote {
	font-size: 14px;
	line-height: 1.6;
	color: #70707e;
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.master-card__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
	color: #fd5a37;
	transition: gap 0.25s ease;
}

.master-card:hover .master-card__more {
	gap: 11px;
}

.masters-empty {
	font-size: 16px;
	color: #70707e;
	background: #ffffff;
	border: 1px solid rgba(3, 3, 6, 0.06);
	border-radius: 16px;
	padding: 40px;
	text-align: center;
}

@keyframes mastersHeroFade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mastersHeroLine {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@media (max-width: 1200px) {
	.masters-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 992px) {
	.masters-hero {
		padding: 28px 0 48px;
	}

	.masters-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.masters-hero__title {
		font-size: 26px;
	}

	.masters-hero__title::before {
		margin-bottom: 10px;
	}

	.masters-listing {
		padding: 40px 0 50px;
	}
}

@media (max-width: 576px) {
	.masters-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.masters-hero .ct-container,
	.masters-breadcrumbs,
	.masters-hero__title,
	.masters-hero__title::before,
	.master-card {
		animation: none;
		transition: none;
	}
}
