/* Онлайн-сервисы: пометка NEW в главном меню и витрина 9 сервисов на главной (mod_custom в позиции ritual).
   Шрифты, цвета и кнопки — как в остальном шаблоне custom. */

/* ---------- Пункт меню «Онлайн-сервисы» (класс ссылки menu-new в настройках пункта) ---------- */
#header .menu-list a.menu-new {
	position: relative;
	display: inline-block;
	color: #e6c587;
}
#header .menu-list a.menu-new::after {
	content: 'NEW';
	position: absolute;
	top: -13px;
	right: -14px;
	padding: 2px 6px;
	border-radius: 20px;
	background: linear-gradient(0deg, #e9c889 0%, #ab8859 100%);
	color: #1f1f1f;
	font-family: 'Open Sans', sans-serif;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1.2;
}
@media (min-width: 1000px) {
	#header .menu-list a.menu-new {
		margin: -6px 0;
		padding: 6px 14px;
		border: 1px solid rgba(224, 191, 130, 0.75);
		border-radius: 50px;
	}
	#header .menu-list a.menu-new::after {
		right: 10px;
	}
}

/* ---------- Витрина сервисов ---------- */
/* тёмная витрина стыкуется с первым экраном без белого отступа */
#about:has(+ #ritual .os) {
	margin-bottom: 0;
}
section#ritual:has(.os) {
	margin-bottom: 85px; /* отступ до следующего блока — раньше его давал #about */
	padding: 80px 0 70px;
	background: #141414 radial-gradient(ellipse 60% 45% at 50% 0%, rgba(171, 136, 89, 0.16), transparent 70%);
	color: #fff;
}
.os {
	max-width: 1100px;
	margin: 0 auto;
}
.os__head {
	text-align: center;
	margin-bottom: 44px;
}
.os__ornament {
	display: block;
	margin: 0 auto 18px;
	color: #e6c587;
}
.os .os__title {
	margin: 0 0 12px;
	font-size: 36px;
	text-transform: uppercase;
	letter-spacing: .08em;
	background: linear-gradient(0deg, #e9c889 0%, #ab8859 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: #e6c587;
	-webkit-text-fill-color: transparent;
}
.os__lead {
	max-width: 620px;
	margin: 0 auto;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	color: #bdbdbd;
}
.os__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.os__card {
	position: relative;
	display: flex;
	gap: 18px;
	padding: 26px 22px 24px;
	background: linear-gradient(180deg, rgba(36, 33, 40, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
	border: 1px solid rgba(230, 197, 135, 0.22);
	border-radius: 16px;
	color: #fff;
	text-decoration: none;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.os__card:hover,
.os__card:focus-visible {
	border-color: #e6c587;
	box-shadow: 0 0 18px rgba(220, 187, 127, 0.35);
	transform: translateY(-3px);
	color: #fff;
}
.os__card:focus-visible {
	outline: 2px solid #ab8859;
	outline-offset: 3px;
}
.os__card--accent {
	border-color: rgba(230, 197, 135, 0.8);
	box-shadow: 0 0 14px rgba(220, 187, 127, 0.25);
}
.os__badge {
	position: absolute;
	top: -10px;
	right: 18px;
	padding: 3px 10px;
	border-radius: 20px;
	background: linear-gradient(0deg, #e9c889 0%, #ab8859 100%);
	color: #1f1f1f;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.os__icon {
	flex: 0 0 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(230, 197, 135, 0.4);
	border-radius: 50%;
	background: rgba(20, 20, 20, 0.6);
	color: #e6c587;
}
.os__icon svg {
	width: 24px;
	height: 24px;
}
.os__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.os .os__name {
	margin: 2px 0 8px;
	font-size: 21px;
	color: #f3e3c3;
}
.os__text {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	color: #a9a9a9;
}
.os__btn {
	align-self: flex-start;
	margin-top: auto;
	padding: 7px 16px;
	border: 1px solid rgba(224, 191, 130, 0.8);
	border-radius: 50px;
	color: #e6c587;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	transition: box-shadow .25s ease;
}
.os__card--accent .os__btn {
	border-color: transparent;
	background: linear-gradient(0deg, #e9c889 0%, #ab8859 100%);
	color: #1f1f1f;
}
.os__card:hover .os__btn {
	box-shadow: 0 0 12px rgba(220, 187, 127, 0.6);
}
.os__foot {
	margin: 36px 0 0;
	text-align: center;
	font-size: 14px;
	color: #9a9a9a;
}
.os__foot a {
	color: #e6c587;
	font-weight: 600;
}
.os__foot a:hover {
	text-decoration: underline;
}

@media (max-width: 991px) {
	.os__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.os .os__title {
		font-size: 30px;
	}
}
@media (max-width: 639px) {
	section#ritual:has(.os) {
		margin-bottom: 60px;
		padding: 60px 0 50px;
	}
	.os__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.os .os__title {
		font-size: 24px;
		letter-spacing: .04em;
	}
	.os__card {
		padding: 22px 18px 20px;
		gap: 14px;
	}
	.os__icon {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}
}
