/* Раздел «Мастера» — кнопка меню, карточки, страница мастера */

#topnavi ul li.item-113 {
	z-index: 3;
	animation: masters-nav-bob 1.7s ease-in-out infinite;
}

#topnavi ul li.item-113 a {
	color: #1f6b1f;
	animation: masters-nav-glow 1.7s ease-in-out infinite;
}

#topnavi ul li.item-113:hover,
#topnavi ul li.item-113.current,
#topnavi ul li.item-113.active,
#topnavi ul li.item-113#current {
	animation: none;
}

#topnavi ul li.item-113:hover a,
#topnavi ul li.item-113.current a,
#topnavi ul li.item-113.active a,
#topnavi ul li.item-113#current a {
	animation: none;
	color: #fff;
}

@keyframes masters-nav-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

@keyframes masters-nav-glow {
	0%, 100% { color: #1f6b1f; text-shadow: 0 0 0 rgba(80, 160, 40, 0); }
	50% { color: #2f8f22; text-shadow: 0 0 8px rgba(90, 190, 50, 0.75); }
}

@media (prefers-reduced-motion: reduce) {
	#topnavi ul li.item-113,
	#topnavi ul li.item-113 a {
		animation: none;
	}
}

body.itemid-113 #maincol,
body.itemid-114 #maincol {
	overflow: visible;
}

.masters-page,
.master-profile {
	padding: 6px 8px 24px;
}

.masters-page p,
.master-profile p {
	text-indent: 0 !important;
	text-align: left !important;
}

.masters-theme {
	margin: 0 0 28px;
}

.masters-theme > h2,
.master-profile h3 {
	color: #4fa62a !important;
	font-size: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 14px !important;
	text-align: left;
}

.masters-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 22px;
	align-items: stretch;
}

#maincol a.master-card,
#maincol a.master-card:link,
#maincol a.master-card:visited,
.master-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 168px;
	padding: 12px 10px 14px;
	background: #e4edc8;
	border: 1px solid #c5d49a;
	border-radius: 12px;
	box-shadow: 0 2px 0 rgba(90, 110, 40, 0.12);
	text-decoration: none !important;
	color: #2c3a18 !important;
	transition: transform 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.master-card--static {
	cursor: default;
}

.master-card__visual {
	width: 132px;
	height: 132px;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f7e4;
	border: 3px solid #8fbf4a;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.35s ease, border-color 0.35s ease;
}

.master-card__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.master-card__visual svg {
	width: 86px;
	height: 86px;
}

.master-card__name {
	display: block;
	margin-top: 10px;
	font-weight: bold;
	font-size: 14px;
	text-align: center;
	line-height: 1.25;
}

.master-card__role {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #5a6b3a;
	text-align: center;
}

#maincol a.master-card:hover,
#maincol a.master-card:focus,
.master-card:hover,
.master-card:focus {
	transform: translateY(-8px) scale(1.06);
	background: #cbe67a;
	filter: saturate(1.25);
	box-shadow: 0 10px 18px rgba(70, 110, 20, 0.22);
	color: #1e2c0c !important;
	text-decoration: none !important;
}

.master-card:hover .master-card__visual,
.master-card:focus .master-card__visual {
	transform: scale(1.08);
	border-color: #5ea01a;
}

.master-profile__hero {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	margin: 8px 0 28px;
}

.master-profile__photo {
	width: 210px;
	height: 210px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #7eb83c;
	background: #eef3d8;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(60, 90, 20, 0.18);
}

.master-profile__text {
	flex: 1;
	min-width: 0;
}

.master-profile__text ul {
	margin: 0 0 16px 18px;
	padding: 0;
	list-style: disc;
}

.master-profile__text li {
	margin: 0 0 6px;
	text-align: left;
}

.master-contacts {
	margin-top: 14px;
	padding: 12px 14px;
	background: #e7f0cc;
	border-radius: 8px;
	border-left: 4px solid #5ea01a;
}

.master-contacts a {
	color: #2f6b14;
	font-weight: bold;
}

.master-works {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.master-work {
	display: block;
	width: 210px;
	background: #dce8b8;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #c0d090;
	transition: transform 0.35s ease, background-color 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.master-work img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.master-work:hover,
.master-work:focus {
	transform: translateY(-8px) scale(1.04);
	background: #c4e06c;
	filter: saturate(1.2);
	box-shadow: 0 10px 16px rgba(70, 110, 20, 0.2);
}

.master-work:hover img,
.master-work:focus img {
	transform: scale(1.08);
}

@media (max-width: 720px) {
	.master-profile__hero {
		flex-direction: column;
		align-items: center;
		text-align: left;
	}
}
