/* Виджеты ФЦРВ. Все цвета и размеры приходят CSS-переменными
   из контролов Elementor — здесь только геометрия и типографика. */

/* ---------- Круг-показатель ---------- */

.fcrv-circ {
	--size: 185px;
	--c1: #002f9d;
	--c2: #0090c9;
	--angle: 115deg;
	--ring: 5px;
	--ring-c: #fff;

	position: relative;
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	padding: calc(var(--size) * 0.12);
	background: linear-gradient(var(--angle), var(--c1), var(--c2));
	border: var(--ring) solid var(--ring-c);
	box-shadow: 0 18px 44px rgba(0, 18, 80, 0.35);
}

/* Тонкие концентрические линии, как в макете */
.fcrv-circ--rings::before,
.fcrv-circ--rings::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	pointer-events: none;
}

.fcrv-circ--rings::before { inset: 7%; }
.fcrv-circ--rings::after  { inset: 15%; border-color: rgba(255, 255, 255, 0.16); }

.fcrv-circ__num {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	letter-spacing: 0.01em;
}

.fcrv-circ__label {
	font-family: Montserrat, Commissioner, sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

/* ---------- Динамика по годам ---------- */

.fcrv-years {
	--bg: #f5f6f8;
	--title: #002f9d;
	--num: #002f9d;
	--pill: #d0d8e2;
	--cap: #002f9d;
	--r: 14px;

	background-color: var(--bg);
	border-radius: var(--r);
	padding: 16px 26px 18px;
	box-shadow: 0 14px 34px rgba(0, 18, 80, 0.22);
}

/* Едва заметные диагональные штрихи, как на полосе в макете */
.fcrv-years--pattern {
	background-image: repeating-linear-gradient(
		115deg,
		rgba(0, 47, 157, 0.035) 0 2px,
		transparent 2px 16px
	);
}

.fcrv-years__title {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
	color: var(--title);
	margin: 0 0 10px;
}

.fcrv-years__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.fcrv-years__item {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-width: 0;
}

/* Стрелка-шеврон между колонками */
.fcrv-years__item + .fcrv-years__item::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 50%;
	width: 9px;
	height: 9px;
	transform: translateY(-50%) rotate(45deg);
	border-top: 2px solid rgba(0, 47, 157, 0.28);
	border-right: 2px solid rgba(0, 47, 157, 0.28);
}

.fcrv-years__year {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
	font-size: 13px;
	color: var(--cap);
}

.fcrv-years__value {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 800;
	line-height: 1.15;
	color: var(--num);
	background: var(--pill);
	padding: 2px 14px;
	border-radius: 10px;
	white-space: nowrap;
}

.fcrv-years__cap {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cap);
	opacity: 0.85;
}

@media (max-width: 767px) {
	.fcrv-years__row { flex-wrap: wrap; row-gap: 14px; }
	.fcrv-years__item { flex: 1 1 40%; }
	/* при переносе в две строки стрелки теряют смысл */
	.fcrv-years__item + .fcrv-years__item::before { display: none; }
}

/* ---------- Карточка-факт ---------- */

.fcrv-fact {
	--bg: #b4ff00;
	--fg: #0200d4;
	--r: 14px;

	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 6px;
	background-color: var(--bg);
	color: var(--fg);
	border-radius: var(--r);
	box-shadow: 0 14px 34px rgba(0, 18, 80, 0.22);
}

.fcrv-fact__value {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
}

.fcrv-fact__cap {
	font-weight: 500;
	line-height: 1.3;
	opacity: 0.9;
}

/* Виджет в колонке flex-контейнера должен уметь тянуться на всю высоту */
.elementor-widget-fcrv-fact-card,
.elementor-widget-fcrv-fact-card .elementor-widget-container {
	height: 100%;
}

/* ---------- Карточки курсов ---------- */

.fcrv-courses {
	--cols: 3;
	--card-bg: #ffffff;
	--title: #111318;
	--meta: #8b90a0;
	--btn: #292937;
	--btn-h: #1456ff;
	--ratio: 62%;
	--r: 18px;

	display: grid;
	grid-template-columns: repeat(var(--cols), 1fr);
	gap: 20px;
}

.fcrv-course {
	display: flex;
	flex-direction: column;
	background: var(--card-bg);
	border-radius: var(--r);
	padding: 12px 12px 14px;
	box-shadow: 0 10px 30px rgba(9, 20, 60, 0.08);
	text-decoration: none;
	transition: transform var(--dur, .28s) var(--ease, ease), box-shadow var(--dur, .28s) var(--ease, ease);
}

.fcrv-course:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(9, 20, 60, 0.14);
}

.fcrv-course__imgwrap {
	position: relative;
	border-radius: calc(var(--r) - 6px);
	overflow: hidden;
	padding-top: var(--ratio);
}

.fcrv-course__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow, .5s) var(--ease, ease);
}

.fcrv-course:hover .fcrv-course__img { transform: scale(1.05); }

.fcrv-course__img--empty {
	background: linear-gradient(135deg, #002f9d, #1284e7);
}

.fcrv-course__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	color: #111318;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 7px 12px;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(9, 20, 60, 0.18);
}

.fcrv-course__body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 6px 2px;
	flex: 1;
}

.fcrv-course__txt {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.fcrv-course__title {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
	color: var(--title);
}

.fcrv-course__meta {
	font-size: 13px;
	line-height: 1.3;
	color: var(--meta);
}

.fcrv-course__btn {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--btn);
	color: #ffffff;
	transition: background var(--dur, .28s) var(--ease, ease);
}

.fcrv-course:hover .fcrv-course__btn { background: var(--btn-h); }

.fcrv-course__btn svg {
	transition: transform var(--dur, .28s) var(--ease, ease);
}

.fcrv-course:hover .fcrv-course__btn svg { transform: translate(2px, -2px); }

.fcrv-courses__empty {
	grid-column: 1 / -1;
	padding: 24px;
	color: var(--meta);
}

@media (max-width: 1024px) {
	.fcrv-courses { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.fcrv-courses { grid-template-columns: 1fr; }
}

/* ---------- Сетка новостей ---------- */

.fcrv-ngrid {
	--row: 255px;
	--gap: 16px;
	--r: 18px;
	--tsize: 17px;
	--tsize-big: 26px;
	--pill: #1456ff;
	--pill-fg: #ffffff;
	--all-bg: #e2ebff;
	--all-fg: #002f9d;

	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: var(--row);
	gap: var(--gap);
}

.fcrv-ngrid__card {
	position: relative;
	display: block;
	border-radius: var(--r);
	overflow: hidden;
	text-decoration: none;
	background: #002f9d;
	isolation: isolate;
}

/* первая карточка — большая, на два ряда */
.fcrv-ngrid__card:first-child { grid-row: span 2; }

.fcrv-ngrid__card:first-child .fcrv-ngrid__title { font-size: var(--tsize-big); }

.fcrv-ngrid__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-image: linear-gradient(135deg, #002f9d, #1284e7);
	transition: transform var(--dur-slow, .5s) var(--ease, ease);
	z-index: -1;
}

.fcrv-ngrid__card:hover .fcrv-ngrid__bg { transform: scale(1.06); }

/* затемнение сверху, чтобы белое название читалось на любом фото */
.fcrv-ngrid__card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(2, 12, 46, 0.6), rgba(2, 12, 46, 0) 55%);
	pointer-events: none;
}

.fcrv-ngrid__title {
	position: absolute;
	top: 16px;
	left: 18px;
	right: 18px;
	color: #ffffff;
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 700;
	font-size: var(--tsize);
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fcrv-ngrid__date {
	position: absolute;
	left: 14px;
	bottom: 14px;
	background: var(--pill);
	color: var(--pill-fg);
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 11px;
	border-radius: 8px;
	white-space: nowrap;
}

.fcrv-ngrid__all {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	padding: 18px 20px;
	border-radius: var(--r);
	background: var(--all-bg);
	color: var(--all-fg);
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: transform var(--dur, .28s) var(--ease, ease);
}

.fcrv-ngrid__all:hover { transform: translateY(-3px); }

.fcrv-ngrid__all svg { flex: 0 0 auto; }

.fcrv-ngrid__empty { padding: 24px; color: #8b90a0; }

@media (max-width: 1024px) {
	.fcrv-ngrid { grid-template-columns: 1fr 1fr; }
	.fcrv-ngrid__card:first-child { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 640px) {
	.fcrv-ngrid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
	.fcrv-ngrid__card:first-child { grid-column: span 1; }
}

/* ---------- Плитки разделов ---------- */

.fcrv-tiles {
	--cols: 3;
	--h: 200px;
	--gap: 16px;
	--r: 18px;
	--ov1: rgba(91, 63, 214, 0.72);
	--ov2: rgba(18, 132, 231, 0.45);
	--plate: rgba(94, 72, 220, 0.9);
	--plate-fg: #ffffff;
	--lsize: 13px;

	display: grid;
	grid-template-columns: repeat(var(--cols), 1fr);
	gap: var(--gap);
}

.fcrv-tile {
	position: relative;
	display: block;
	height: var(--h);
	border-radius: var(--r);
	overflow: hidden;
	text-decoration: none;
	isolation: isolate;
}

.fcrv-tile__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: #002f9d;
	background-size: cover;
	background-position: center;
	transition: transform var(--dur-slow, .5s) var(--ease, ease);
}

/* цветной градиент поверх фото, как в макете */
.fcrv-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, var(--ov1), var(--ov2));
	pointer-events: none;
}

.fcrv-tile:hover .fcrv-tile__bg { transform: scale(1.06); }

.fcrv-tile__label {
	position: absolute;
	left: 14px;
	bottom: 14px;
	max-width: calc(100% - 28px);
	background: var(--plate);
	color: var(--plate-fg);
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 700;
	font-size: var(--lsize);
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 10px 15px;
	border-radius: 9px;
	transition: transform var(--dur, .28s) var(--ease, ease);
}

.fcrv-tile:hover .fcrv-tile__label { transform: translateY(-3px); }

@media (max-width: 1024px) {
	.fcrv-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.fcrv-tiles { grid-template-columns: 1fr; }
}

/* ---------- Возможности ---------- */

.fcrv-perks {
	--cols: 3;
	--gap: 18px;
	--card: #ffffff;
	--line: #e6ebf5;
	--r: 18px;
	--ic-box: 58px;
	--ic-size: 24px;
	--ic-bg: #eaf1ff;
	--ic-bg-h: #1456ff;
	--ic: #1456ff;
	--ic-h: #ffffff;
	--title: #111a33;
	--text: #5b6580;
	--tsize: 18px;
	--xsize: 15px;

	display: grid;
	grid-template-columns: repeat(var(--cols), 1fr);
	gap: var(--gap);
}

.fcrv-perk {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	text-decoration: none;
	transition: transform var(--dur, .28s) var(--ease, ease),
	            box-shadow var(--dur, .28s) var(--ease, ease),
	            border-color var(--dur, .28s) var(--ease, ease);
}

.fcrv-perk:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 18px 40px rgba(9, 20, 60, 0.12);
}

.fcrv-perk__ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ic-box);
	height: var(--ic-box);
	border-radius: 15px;
	background: var(--ic-bg);
	color: var(--ic);
	transition: background var(--dur, .28s) var(--ease, ease),
	            color var(--dur, .28s) var(--ease, ease);
}

.fcrv-perk:hover .fcrv-perk__ic {
	background: var(--ic-bg-h);
	color: var(--ic-h);
}

.fcrv-perk__ic i,
.fcrv-perk__ic svg {
	font-size: var(--ic-size);
	width: var(--ic-size);
	height: var(--ic-size);
	fill: currentColor;
}

.fcrv-perk__title {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
	font-size: var(--tsize);
	line-height: 1.3;
	color: var(--title);
}

.fcrv-perk__text {
	font-size: var(--xsize);
	line-height: 1.55;
	color: var(--text);
}

@media (max-width: 1024px) {
	.fcrv-perks { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.fcrv-perks { grid-template-columns: 1fr; }
}

/* ---------- Афиша мероприятий ---------- */

.fcrv-evs {
	--cols: 2;
	--gap: 18px;
	--card: #ffffff;
	--r: 18px;
	--h: 190px;
	--poster: 38%;
	--title: #111a33;
	--date: #5b6580;
	--accent: #1456ff;
	--tsize: 17px;
	--st-soon: #1456ff;
	--st-now: #12a45c;
	--st-past: #8b90a0;

	display: grid;
	grid-template-columns: repeat(var(--cols), 1fr);
	gap: var(--gap);
}

a.fcrv-ev {
	display: flex;
	min-height: var(--h);
	background: var(--card);
	border-radius: var(--r);
	overflow: hidden;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(9, 20, 60, 0.08);
	transition: transform var(--dur, .28s) var(--ease, ease),
	            box-shadow var(--dur, .28s) var(--ease, ease);
}

a.fcrv-ev:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(9, 20, 60, 0.15);
}

.fcrv-ev__poster {
	flex: 0 0 var(--poster);
	background-color: #002f9d;
	background-image: linear-gradient(135deg, #002f9d, #1284e7);
	background-size: cover;
	background-position: center;
	transition: transform var(--dur-slow, .5s) var(--ease, ease);
}

.fcrv-ev:hover .fcrv-ev__poster { transform: scale(1.05); }

.fcrv-ev__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 20px 22px;
	min-width: 0;
}

.fcrv-ev__status {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--st-past);
}

.fcrv-ev__status--soon { background: var(--st-soon); }
.fcrv-ev__status--now  { background: var(--st-now); }

.fcrv-ev__title {
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
	font-size: var(--tsize);
	line-height: 1.3;
	color: var(--title);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fcrv-ev__date {
	font-size: 13px;
	color: var(--date);
}

/* прижимаем ссылку к низу карточки */
.fcrv-ev__more {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
}

.fcrv-ev__more svg { transition: transform var(--dur, .28s) var(--ease, ease); }
.fcrv-ev:hover .fcrv-ev__more svg { transform: translateX(3px); }

.fcrv-evs__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid var(--accent, #1456ff);
	color: var(--accent, #1456ff);
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background var(--dur, .28s) var(--ease, ease),
	            color var(--dur, .28s) var(--ease, ease);
}

.fcrv-evs__all:hover {
	background: var(--accent, #1456ff);
	color: #ffffff;
}

.fcrv-evs__empty { padding: 24px; color: #8b90a0; }

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

@media (max-width: 560px) {
	a.fcrv-ev { flex-direction: column; }
	.fcrv-ev__poster { flex: 0 0 150px; }
}
/* ---------- Поиск-лупа ---------- */

.fcrv-search {
	--size: 44px;
	--ic: 20px;
	--r: 22px;
	--c: #1f2933;
	--bg: transparent;
	--c-h: #1456ff;
	--bg-h: #f3f9fe;
	--panel-w: 340px;
	--go: #002f9d;
	--go-h: #1456ff;

	position: relative;
	display: inline-flex;
}

.fcrv-search .fcrv-search__btn {
	box-shadow: none;   /* сброс кнопки темы */
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--size);
	height: var(--size);
	padding: 0;
	border: 0;
	border-radius: var(--r);
	background: var(--bg);
	color: var(--c);
	cursor: pointer;
	transition: background var(--dur-fast, .16s) var(--ease, ease),
	            color var(--dur-fast, .16s) var(--ease, ease);
}

.fcrv-search .fcrv-search__btn:hover,
.fcrv-search .fcrv-search__btn:focus-visible,
.fcrv-search.is-open .fcrv-search__btn {
	background: var(--bg-h);
	color: var(--c-h);
}

.fcrv-search .fcrv-search__btn svg {
	width: var(--ic);
	height: var(--ic);
	display: block;
}

.fcrv-search__panel {
	position: absolute;
	top: calc(100% + 14px);
	right: 0;
	z-index: 950;
	width: min(var(--panel-w), calc(100vw - 32px));
	padding: 10px;
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--shadow-lift, 0 12px 32px rgba(0, 47, 157, 0.14));
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	transition: opacity var(--dur, .28s) var(--ease, ease),
	            transform var(--dur, .28s) var(--ease, ease);
}

.fcrv-search--left .fcrv-search__panel { right: auto; left: 0; }

.fcrv-search.is-open .fcrv-search__panel {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.fcrv-search__form { display: flex; gap: 8px; }

.fcrv-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid #e3ecf7;
	border-radius: 10px;
	font-size: 15px;
	color: #1f2933;
	background: #fff;
}

.fcrv-search__input:focus {
	outline: none;
	border-color: var(--c-h, #1456ff);
}

.fcrv-search .fcrv-search__go {
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 10px;
	background: var(--go);
	color: #fff;
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background var(--dur-fast, .16s) var(--ease, ease);
}

.fcrv-search .fcrv-search__go:hover { background: var(--go-h); }

/* На телефоне лупа прячется — поле поиска встроено в выдвижное меню */
@media (max-width: 1024px) {
	.fcrv-search--hm { display: none; }
}

/* ------------------------------------------------------------------
   Поиск в шапке: полоса раскрывается вправо от лупы и перекрывает меню,
   а не выпадает вниз. Правила идут после исходных и перекрывают их.
   Ширину задаёт search.js — от лупы до правого края меню.
   ------------------------------------------------------------------ */

.fcrv-search__panel {
	top: 50%;
	left: calc(100% + 10px);
	right: auto;
	width: auto;                 /* ставится скриптом */
	max-width: calc(100vw - 24px);
	padding: 6px;
	transform: translateY(-50%);
	/* Разворачиваем полосу слева направо: clip-path не конфликтует
	   с центрированием по вертикали, в отличие от scaleX. */
	clip-path: inset(0 100% 0 0 round 14px);
	transition: opacity var(--dur, .28s) var(--ease, ease),
	            clip-path var(--dur, .28s) var(--ease, ease);
}

.fcrv-search--left .fcrv-search__panel { left: calc(100% + 10px); right: auto; }

/* Лупа стоит после меню: полоса раскрывается влево и накрывает пункты.
   Класс ставит search.js по фактическому положению виджета. */
.fcrv-search--to-left .fcrv-search__panel {
	left: auto;
	right: calc(100% + 10px);
	clip-path: inset(0 0 0 100% round 14px);
}

.fcrv-search--to-left.is-open .fcrv-search__panel { clip-path: inset(0 0 0 0 round 14px); }

.fcrv-search.is-open .fcrv-search__panel {
	opacity: 1;
	transform: translateY(-50%);
	clip-path: inset(0 0 0 0 round 14px);
	pointer-events: auto;
}

/* Поле тянется на всю полосу, кнопка «Найти» прижата вправо. */
.fcrv-search__panel .fcrv-search__form { gap: 6px; }
.fcrv-search__panel .fcrv-search__input { height: 40px; }
.fcrv-search .fcrv-search__go { height: 40px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.fcrv-search__panel { transition: opacity var(--dur-fast, .16s) linear; clip-path: none; }
}

/* ------------------ запасная картинка для карточек без фото ------------------
   Виджет подставляет background-image инлайном только когда у мероприятия
   есть миниатюра. Без неё оставалась голая синяя заливка — крупная карточка
   выглядела пустым прямоугольником.

   Кладём в основание нейтральный снимок: инлайновый стиль перекрывает всё
   свойство целиком, поэтому у мероприятий с фото ничего не меняется.
   Путь относительный — от этого файла до wp-content/uploads.
   ---------------------------------------------------------------------------- */

.fcrv-ev__poster {
	background-image:
		linear-gradient(135deg, rgba(0, 47, 157, .34), rgba(18, 132, 231, .34)),
		url("../../../uploads/075a2096-768x512.jpg");
	background-size: cover, cover;
	background-position: center, center;
}

/* Такая же подстраховка для плиток новостей на главной */
.fcrv-ngrid__bg {
	background-image:
		linear-gradient(135deg, rgba(0, 47, 157, .34), rgba(18, 132, 231, .34)),
		url("../../../uploads/075a2096-768x512.jpg");
	background-size: cover, cover;
	background-position: center, center;
}

/* ------------------- поле поиска в шапке: полукруглое -------------------
   Заодно перебиваем набор Elementor, красивший кнопку «Найти»
   в тёмный квадрат (.elementor-kit-133 button, вес 0,1,1). */

.fcrv-search .fcrv-search__input { border-radius: var(--r-pill, 9999px); padding: 0 18px; }

.fcrv-search button.fcrv-search__go {
	border-radius: var(--r-pill, 9999px);
	background: var(--go, #002f9d);
	color: #fff;
	font-family: Montserrat, Commissioner, sans-serif;
	font-weight: 600;
}

.fcrv-search button.fcrv-search__go:hover,
.fcrv-search button.fcrv-search__go:focus {
	background: var(--go-h, #1456ff);
	color: #fff;
	border-radius: var(--r-pill, 9999px);
}

/* Поле в выдвижном мобильном меню — та же форма */
.fcrv-mega .fcrv-mega__search-input { border-radius: var(--r-pill, 9999px); }

/* Закрытая полоса поиска не должна расширять страницу: она невидима,
   но абсолютно позиционирована и попадает в область прокрутки.
   Пока скрипт не выбрал сторону, держим её в пределах экрана. */
.fcrv-search:not(.is-open) .fcrv-search__panel {
	max-width: 100vw;
	pointer-events: none;
}

.fcrv-search { contain: layout; }

/* ------------------- проекты Мастерской (виджет главной) ------------------- */
/* Карточки повторяют каталог Мастерской: вуаль в цвете проекта поверх
   обложки, номер и формат в углу, название на снимке. */

.fcrv-mvp {
	--cols: 3;
	--gap: 18px;
	--art-h: 186px;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: var(--gap);
}

.fcrv-mvp .fcrv-mvp__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--r-md, 20px);
	background: #fff;
	color: #1F2933;
	text-decoration: none !important;
	box-shadow: 0 10px 30px rgba(9, 20, 60, .08);
	transition: transform var(--dur, .28s) var(--ease, ease), box-shadow var(--dur, .28s) var(--ease, ease);
}
.fcrv-mvp .fcrv-mvp__card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(9, 20, 60, .16); }

.fcrv-mvp__art {
	position: relative;
	display: block;
	height: var(--art-h);
	background: var(--mvp-accent, #6D3ADB) center / cover no-repeat;
}
/* Штриховка поверх вуали — тот же приём, что в Мастерской: снимок
   остаётся фактурой, а не спорит с белым названием. */
.fcrv-mvp__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .085) 0 7px, rgba(255, 255, 255, 0) 7px 16px),
		linear-gradient(150deg,
			rgb(var(--mvp-accent-rgb, 109 58 219) / .95) 0%,
			rgb(var(--mvp-accent-rgb, 109 58 219) / .84) 48%,
			rgb(var(--mvp-accent-rgb, 109 58 219) / .55) 100%),
		linear-gradient(150deg, rgba(8, 0, 40, .34), rgba(8, 0, 40, 0));
}

.fcrv-mvp__badge,
.fcrv-mvp__name { position: absolute; z-index: 1; color: #fff; }

.fcrv-mvp__badge {
	top: 14px;
	left: 16px;
	padding: 5px 11px;
	border-radius: var(--r-pill, 9999px);
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(6px);
	font-size: 12px;
	font-weight: 700;
}

.fcrv-mvp__name {
	left: 18px;
	right: 18px;
	bottom: 16px;
	font-size: clamp(19px, 1.5vw, 23px);
	font-weight: 800;
	line-height: 1.12;
	text-wrap: balance;
}

.fcrv-mvp__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex: 1;
	padding: 16px 18px 18px;
}

.fcrv-mvp__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: #3d4665;
}

.fcrv-mvp__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}
.fcrv-mvp__foot i { font-style: normal; font-size: 12.5px; color: #8b95ab; }
.fcrv-mvp__foot b {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--mvp-accent, #6D3ADB);
}
.fcrv-mvp__foot svg { transition: transform var(--dur, .28s) var(--ease, ease); }
.fcrv-mvp__card:hover .fcrv-mvp__foot svg { transform: translateX(4px); }

/* Последняя плитка — вход в саму Мастерскую. Тёмная, с узором из точек
   и цифрами раздела: пунктирная рамка читалась как пустое место. */
.fcrv-mvp .fcrv-mvp__card--all {
	position: relative;
	justify-content: flex-end;
	border: 0;
	background: linear-gradient(150deg, #0B1A5C 0%, #22307F 55%, #4B2FA8 100%);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.fcrv-mvp .fcrv-mvp__card--all::before {
	content: "";
	position: absolute;
	inset: 0 0 auto auto;
	width: 75%;
	height: 60%;
	background: radial-gradient(rgba(255, 255, 255, .16) 1.4px, transparent 1.6px) 0 0 / 16px 16px;
	-webkit-mask-image: linear-gradient(225deg, #000 10%, transparent 75%);
	        mask-image: linear-gradient(225deg, #000 10%, transparent 75%);
	z-index: -1;
}
.fcrv-mvp .fcrv-mvp__card--all::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -100px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(126, 92, 255, .55), transparent 70%);
	z-index: -1;
}
.fcrv-mvp .fcrv-mvp__card--all:hover { color: #fff; box-shadow: 0 18px 40px rgba(20, 20, 90, .28); }

.fcrv-mvp__all-in { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 26px 24px 24px; }
.fcrv-mvp__all-k {
	align-self: flex-start;
	margin-bottom: auto;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.fcrv-mvp__all-t { margin-top: 18px; font-family: Montserrat, Commissioner, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.15; color: #fff; }
.fcrv-mvp__all-s { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.fcrv-mvp__all-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fcrv-mvp__all-stats span {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .1);
	font-size: 12.5px;
	color: rgba(255, 255, 255, .8);
}
.fcrv-mvp__all-stats b { font-size: 16px; font-weight: 800; color: #fff; }
.fcrv-mvp__all-go {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: #fff;
	font-size: 13.5px;
	font-weight: 700;
	color: #22307F;
	transition: gap var(--dur, .28s) var(--ease, ease);
}
.fcrv-mvp__card--all:hover .fcrv-mvp__all-go { gap: 12px; }

@media (max-width: 1024px) {
	.fcrv-mvp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
	.fcrv-mvp { grid-template-columns: minmax(0, 1fr); }
	.fcrv-mvp__art { height: 165px; }
}

/* ---------- Карусель карточек ---------- */
/* Лента — тот же grid, но в одну строку с привязкой прокрутки: карточки
   остаются прежними, на телефоне листается пальцем без скрипта. */

.fcrv-carousel { position: relative; }

.fcrv-courses--carousel {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--cols) - 1) * 20px) / var(--cols));
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 0;
	padding-bottom: 6px;
	scrollbar-width: thin;
	scrollbar-color: #c7d3e8 transparent;
	overscroll-behavior-x: contain;
}
.fcrv-courses--carousel > * { scroll-snap-align: start; }
.fcrv-courses--carousel::-webkit-scrollbar { height: 6px; }
.fcrv-courses--carousel::-webkit-scrollbar-thumb { border-radius: 3px; background: #c7d3e8; }
.fcrv-courses--carousel::-webkit-scrollbar-track { background: transparent; }

/* Селектор с типом элемента: набор Elementor (.elementor-kit-133 button)
   красит любую кнопку в синий и вешает розовую рамку. */
.fcrv-carousel button.fcrv-carousel__nav {
	position: absolute;
	top: 34%;
	z-index: 2;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--c-blue-900, #002f9d);
	box-shadow: 0 10px 26px rgba(9, 20, 60, .18);
	cursor: pointer;
	transition: background var(--dur, .28s) var(--ease, ease), color var(--dur, .28s) var(--ease, ease),
	            opacity var(--dur, .28s) var(--ease, ease);
}
.fcrv-carousel button.fcrv-carousel__nav--prev { left: 8px; }
.fcrv-carousel button.fcrv-carousel__nav--next { right: 8px; }
.fcrv-carousel button.fcrv-carousel__nav:hover:not(:disabled),
.fcrv-carousel button.fcrv-carousel__nav:focus:not(:disabled) { background: var(--c-blue-600, #1456ff); color: #fff; }
.fcrv-carousel button.fcrv-carousel__nav:disabled { opacity: 0; pointer-events: none; }
.fcrv-carousel.is-static button.fcrv-carousel__nav { display: none; }

@media (max-width: 1024px) {
	.fcrv-courses--carousel { grid-auto-columns: calc((100% - 20px) / 2); }
	.fcrv-carousel button.fcrv-carousel__nav { display: none; }
}
@media (max-width: 640px) {
	.fcrv-courses--carousel { grid-auto-columns: 84%; }
}

/* Плашка перехода в раздел — последней карточкой. */
/* Подчёркивание из набора Elementor (.elementor-kit-133 a) снимаем явно —
   на карточках оно превращало заголовки в ссылки-строки. */
.fcrv-courses .fcrv-course,
.fcrv-courses .fcrv-course__title,
.fcrv-courses .fcrv-course__meta { text-decoration: none !important; }

.fcrv-course--all {
	display: flex;
	align-items: stretch;
	padding: 0;
	border: 0;
	background: linear-gradient(150deg, var(--c-blue-900, #002f9d), var(--c-blue-600, #1456ff));
	color: #fff;
	overflow: hidden;
}
.fcrv-course--all:hover { transform: translateY(-4px); }

.fcrv-course__all-in {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	padding: 26px 24px 24px;
}
.fcrv-courses .fcrv-course--all { color: #fff; }
.fcrv-course__all-t {
	font-family: Montserrat, Commissioner, sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
}
.fcrv-course__all-x { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.fcrv-course__all-go {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-top: auto;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	transition: background var(--dur, .28s) var(--ease, ease), transform var(--dur, .28s) var(--ease, ease);
}
.fcrv-course--all:hover .fcrv-course__all-go { background: #fff; color: var(--c-blue-900, #002f9d); transform: translateX(4px); }

/* ---------- Плитка «Все новости» ---------- */
/* Была бледная плашка того же тона, что и карточки: на сетке из фотографий
   она читалась как пустое место. Делаем её акцентом раздела. */

/* Подчёркивание снимаем явно: правило набора (.elementor-kit-133 a)
   весит больше одноклассового и возвращало линию под текстом. */
.fcrv-ngrid .fcrv-ngrid__all { color: #fff; text-decoration: none !important; }
.fcrv-ngrid .fcrv-ngrid__all:hover { color: #fff; }

.fcrv-ngrid__all {
	position: relative;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 14px;
	padding: 24px;
	background: linear-gradient(150deg, var(--c-blue-900, #002f9d) 0%, var(--c-blue-600, #1456ff) 100%);
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	overflow: hidden;
	transition: transform var(--dur, .28s) var(--ease, ease), box-shadow var(--dur, .28s) var(--ease, ease);
}
/* Штриховка — тот же приём, что на обложках проектов Мастерской. */
.fcrv-ngrid__all::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 8px, rgba(255, 255, 255, 0) 8px 18px);
}
.fcrv-ngrid__all:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(20, 86, 255, .35); }

.fcrv-ngrid__all > * { position: relative; z-index: 1; }

.fcrv-ngrid__all svg {
	display: grid;
	place-items: center;
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 13px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	transition: background var(--dur, .28s) var(--ease, ease), color var(--dur, .28s) var(--ease, ease),
	            transform var(--dur, .28s) var(--ease, ease);
}
.fcrv-ngrid__all:hover svg { background: #fff; color: var(--c-blue-900, #002f9d); transform: translateX(4px); }

/* ---------- Возможности: карточки-строки ---------- */
/* Иконка сверху и текст под ней читались как шесть одинаковых квадратов.
   Ставим иконку в строку с заголовком — взгляд идёт по заголовкам. */

.fcrv-perks { --ic-box: 52px; }

.fcrv-perk {
	display: grid;
	grid-template-columns: var(--ic-box) minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	gap: 6px 16px;
	padding: 24px 26px 26px;
}

.fcrv-perk__ic {
	grid-row: 1;
	border-radius: 14px;
	background: linear-gradient(150deg, var(--c-blue-900, #002f9d), var(--c-blue-600, #1456ff));
	color: #fff;
}
.fcrv-perk:hover .fcrv-perk__ic { background: linear-gradient(150deg, var(--c-blue-600, #1456ff), #1284e7); color: #fff; }

.fcrv-perk__title { grid-column: 2; grid-row: 1; font-size: 20px; line-height: 1.25; }
.fcrv-perk__text  { grid-column: 1 / -1; grid-row: 2; margin-top: 6px; }

@media (max-width: 640px) {
	.fcrv-perk { padding: 20px; }
	.fcrv-perk__title { font-size: 18px; }
}

/* «Все мероприятия» — справа под сеткой; подчёркивание от набора Elementor убираем. */
.fcrv-evs .fcrv-evs__all, a.fcrv-evs__all { display: flex; width: max-content; margin-left: auto; text-decoration: none !important; }

/* ---------- Возможности v2: бенто-сетка с акцентами ---------- */
/* Ритм вместо шести одинаковых плашек: две карточки залиты фирменным
   градиентом, у каждой свой цвет иконки, номер и крупный водяной знак. */
.fcrv-perks--v2 { gap: 18px; }
.fcrv-perks--v2 .fcrv-perk {
	--pc: #1456ff; --pc2: #002f9d; --pt: rgba(20, 86, 255, .10);
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
	min-height: 230px; padding: 28px 28px 30px;
	border: 1px solid #e6ebf5; border-radius: 22px; background: #fff;
	box-shadow: 0 10px 30px rgba(9, 20, 60, .06);
}
.fcrv-perks--v2 .fcrv-perk:nth-child(2) { --pc: #0e9f6e; --pc2: #0b7a4b; --pt: rgba(14, 159, 110, .12); }
.fcrv-perks--v2 .fcrv-perk:nth-child(3) { --pc: #6d3adb; --pc2: #4b1fb0; --pt: rgba(109, 58, 219, .12); }
.fcrv-perks--v2 .fcrv-perk:nth-child(4) { --pc: #e2660a; --pc2: #b84f05; --pt: rgba(226, 102, 10, .12); }
.fcrv-perks--v2 .fcrv-perk:nth-child(6) { --pc: #c2367a; --pc2: #9b2260; --pt: rgba(194, 54, 122, .12); }

/* Иконка — цветной квадрат своего оттенка */
.fcrv-perks--v2 .fcrv-perk__ic {
	width: 56px; height: 56px; border-radius: 16px;
	background: var(--pt); color: var(--pc);
	transition: background var(--dur, .28s) var(--ease, ease), color var(--dur, .28s) var(--ease, ease), transform var(--dur, .28s) var(--ease, ease);
}
.fcrv-perks--v2 .fcrv-perk__ic svg, .fcrv-perks--v2 .fcrv-perk__ic i { width: 26px; height: 26px; font-size: 26px; fill: currentColor; }
.fcrv-perks--v2 .fcrv-perk__title { grid-column: auto; grid-row: auto; margin-top: 6px; font-size: 21px; line-height: 1.25; color: #111a33; }
.fcrv-perks--v2 .fcrv-perk__text  { grid-column: auto; grid-row: auto; margin-top: 0; font-size: 15px; line-height: 1.6; color: #5b6580; }

/* Номер в углу */
.fcrv-perks--v2 .fcrv-perk__num {
	position: absolute; top: 22px; right: 26px;
	font-family: Montserrat, Commissioner, sans-serif; font-size: 42px; font-weight: 800; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px var(--pt); text-stroke: 1.5px var(--pt);
}
.fcrv-perks--v2 .fcrv-perk__num { -webkit-text-stroke-color: color-mix(in srgb, var(--pc) 35%, transparent); }

/* Водяной знак — та же иконка, крупно, в правом нижнем углу */
.fcrv-perks--v2 .fcrv-perk__mark {
	position: absolute; z-index: -1; right: -18px; bottom: -26px;
	width: 150px; height: 150px; color: var(--pc); opacity: .06;
	transition: transform .5s var(--ease, ease), opacity .3s;
}
.fcrv-perks--v2 .fcrv-perk__mark svg, .fcrv-perks--v2 .fcrv-perk__mark i { width: 150px; height: 150px; font-size: 150px; fill: currentColor; }

/* Полоса-акцент снизу, растёт при наведении */
.fcrv-perks--v2 .fcrv-perk::after {
	content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 4px;
	border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--pc), var(--pc2));
	transform: scaleX(.18); transform-origin: left; transition: transform .45s var(--ease, ease);
}
.fcrv-perks--v2 .fcrv-perk:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 22px 48px rgba(9, 20, 60, .13); }
.fcrv-perks--v2 .fcrv-perk:hover::after { transform: scaleX(1); }
.fcrv-perks--v2 .fcrv-perk:hover .fcrv-perk__ic { background: var(--pc); color: #fff; transform: rotate(-6deg); }
.fcrv-perks--v2 .fcrv-perk:hover .fcrv-perk__mark { transform: scale(1.12) rotate(-8deg); opacity: .1; }

/* Акцентные карточки: 1-я, 3-я и 5-я залиты фирменным градиентом (узор «галочкой») */
.fcrv-perks--v2 .fcrv-perk:nth-child(1),
.fcrv-perks--v2 .fcrv-perk:nth-child(3),
.fcrv-perks--v2 .fcrv-perk:nth-child(5) {
	border-color: transparent;
	background: radial-gradient(120% 90% at 100% 0%, rgba(18, 132, 231, .55), transparent 60%),
	            linear-gradient(150deg, #002f9d 0%, #1456ff 100%);
	box-shadow: 0 18px 40px rgba(20, 86, 255, .28);
}
.fcrv-perks--v2 .fcrv-perk:nth-child(5) {
	background: radial-gradient(120% 90% at 100% 0%, rgba(109, 58, 219, .55), transparent 60%),
	            linear-gradient(150deg, #2a1478 0%, #6d3adb 100%);
	box-shadow: 0 18px 40px rgba(109, 58, 219, .28);
}
/* 3-я — бирюзовая (цвет шестигранников с афиш), блик слева — зеркально 1-й */
.fcrv-perks--v2 .fcrv-perk:nth-child(3) {
	background: radial-gradient(120% 90% at 0% 0%, rgba(46, 211, 183, .5), transparent 60%),
	            linear-gradient(210deg, #045d6e 0%, #0e9f9a 100%);
	box-shadow: 0 18px 40px rgba(14, 159, 154, .28);
}
.fcrv-perks--v2 .fcrv-perk:nth-child(3):hover .fcrv-perk__ic { color: #045d6e; }
.fcrv-perks--v2 .fcrv-perk:nth-child(1) .fcrv-perk__title,
.fcrv-perks--v2 .fcrv-perk:nth-child(3) .fcrv-perk__title,
.fcrv-perks--v2 .fcrv-perk:nth-child(5) .fcrv-perk__title { color: #fff; }
.fcrv-perks--v2 .fcrv-perk:nth-child(1) .fcrv-perk__text,
.fcrv-perks--v2 .fcrv-perk:nth-child(3) .fcrv-perk__text,
.fcrv-perks--v2 .fcrv-perk:nth-child(5) .fcrv-perk__text { color: rgba(255, 255, 255, .85); }
.fcrv-perks--v2 .fcrv-perk:nth-child(1) .fcrv-perk__ic,
.fcrv-perks--v2 .fcrv-perk:nth-child(3) .fcrv-perk__ic,
.fcrv-perks--v2 .fcrv-perk:nth-child(5) .fcrv-perk__ic { background: rgba(255, 255, 255, .16); color: #fff; }
.fcrv-perks--v2 .fcrv-perk:nth-child(1) .fcrv-perk__num,
.fcrv-perks--v2 .fcrv-perk:nth-child(3) .fcrv-perk__num,
.fcrv-perks--v2 .fcrv-perk:nth-child(5) .fcrv-perk__num { -webkit-text-stroke-color: rgba(255, 255, 255, .35); }
.fcrv-perks--v2 .fcrv-perk:nth-child(1) .fcrv-perk__mark,
.fcrv-perks--v2 .fcrv-perk:nth-child(3) .fcrv-perk__mark,
.fcrv-perks--v2 .fcrv-perk:nth-child(5) .fcrv-perk__mark { color: #fff; opacity: .12; }
.fcrv-perks--v2 .fcrv-perk:nth-child(1)::after,
.fcrv-perks--v2 .fcrv-perk:nth-child(3)::after,
.fcrv-perks--v2 .fcrv-perk:nth-child(5)::after { background: rgba(255, 255, 255, .7); }
.fcrv-perks--v2 .fcrv-perk:nth-child(1):hover .fcrv-perk__ic,
.fcrv-perks--v2 .fcrv-perk:nth-child(3):hover .fcrv-perk__ic,
.fcrv-perks--v2 .fcrv-perk:nth-child(5):hover .fcrv-perk__ic { background: #fff; color: #002f9d; }

@media (max-width: 640px) {
	.fcrv-perks--v2 .fcrv-perk { min-height: 0; padding: 22px 22px 26px; }
	.fcrv-perks--v2 .fcrv-perk__num { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.fcrv-perks--v2 .fcrv-perk, .fcrv-perks--v2 .fcrv-perk * , .fcrv-perks--v2 .fcrv-perk::after { transition: none !important; }
}

/* Номера карточек — обычные цифры без контура: контурные выглядели искусственно. */
.fcrv-perks--v2 .fcrv-perk__num { font-weight: 700; color: color-mix(in srgb, var(--pc) 30%, #fff); -webkit-text-stroke: 0; text-stroke: 0; letter-spacing: -.01em; }
.fcrv-perks--v2 .fcrv-perk:nth-child(1) .fcrv-perk__num,
.fcrv-perks--v2 .fcrv-perk:nth-child(3) .fcrv-perk__num,
.fcrv-perks--v2 .fcrv-perk:nth-child(5) .fcrv-perk__num { color: rgba(255, 255, 255, .32); }

/* ---------- Сетка новостей: варианты вида ----------
   Выбираются в админке «Новости → Вид на главной» (news-layout.php)
   или в самом виджете. Разметка карточки у всех вариантов одна. */

.fcrv-ngrid .fcrv-ngrid__card { text-decoration: none !important; }

/* 1. Только фото: название остаётся для экранных чтецов и подсказки при наведении. */
.fcrv-ngrid--images .fcrv-ngrid__card::before { display: none; }
.fcrv-ngrid--images .fcrv-ngrid__title {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* 2. Название на фото: дата вверху, название внизу на тёмной подложке. */
.fcrv-ngrid--overlay .fcrv-ngrid__card::before,
.fcrv-ngrid--list .fcrv-ngrid__card:first-child::before {
	background: linear-gradient(0deg, rgba(2, 12, 46, .9) 0%, rgba(2, 12, 46, .55) 40%, rgba(2, 12, 46, 0) 72%);
}
.fcrv-ngrid--overlay .fcrv-ngrid__title,
.fcrv-ngrid--list .fcrv-ngrid__card:first-child .fcrv-ngrid__title {
	top: auto; bottom: 18px; left: 20px; right: 20px;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.fcrv-ngrid--overlay .fcrv-ngrid__date,
.fcrv-ngrid--list .fcrv-ngrid__card:first-child .fcrv-ngrid__date { top: 16px; bottom: auto; left: 16px; }

/* 3. Карточки с подписью: фото сверху, дата и тёмное название на белом. */
.fcrv-ngrid--below .fcrv-ngrid__card,
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) {
	background: #fff;
	border: 1px solid #e1e7f5;
	transition: transform var(--dur, .28s) var(--ease, ease), box-shadow var(--dur, .28s) var(--ease, ease), border-color var(--dur, .28s);
}
.fcrv-ngrid--below .fcrv-ngrid__card:hover,
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child):hover {
	transform: translateY(-3px);
	border-color: #c9d6fb;
	box-shadow: 0 14px 34px rgba(0, 47, 157, .12);
}
.fcrv-ngrid--below .fcrv-ngrid__card::before,
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child)::before { display: none; }

.fcrv-ngrid--below .fcrv-ngrid__card { display: flex; flex-direction: column; }
.fcrv-ngrid--below .fcrv-ngrid__bg { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; z-index: 0; }
.fcrv-ngrid--below .fcrv-ngrid__card:hover .fcrv-ngrid__bg,
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child):hover .fcrv-ngrid__bg { transform: none; }
.fcrv-ngrid--below .fcrv-ngrid__date { position: static; order: 1; align-self: flex-start; margin: 14px 16px 0; }
.fcrv-ngrid--below .fcrv-ngrid__title {
	position: static; order: 2; flex: none;
	margin: 8px 16px 16px;
	color: #0b1b4d;
	font-size: 15px;
	-webkit-line-clamp: 2;
	min-height: 2.5em;
}
.fcrv-ngrid--below .fcrv-ngrid__card:first-child .fcrv-ngrid__title { font-size: 21px; margin: 10px 20px 20px; }
.fcrv-ngrid--below .fcrv-ngrid__card:first-child .fcrv-ngrid__date { margin: 18px 20px 0; }

/* 4. Главная + список: крупная новость слева, остальные строками справа. */
.fcrv-ngrid--list { grid-template-columns: 1.35fr 1fr; grid-auto-rows: auto; }
.fcrv-ngrid--list .fcrv-ngrid__card:first-child {
	grid-row: span var(--rows, 4);
	min-height: calc(var(--row) * 2 + var(--gap));
}
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) {
	display: grid;
	grid-template-columns: minmax(110px, 40%) 1fr;
	grid-template-rows: auto auto;
	align-content: center;
	column-gap: 16px;
	row-gap: 6px;
	padding: 10px;
}
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) .fcrv-ngrid__bg {
	position: relative; inset: auto; z-index: 0;
	grid-row: 1 / span 2;
	height: 100%;
	min-height: 96px;
	border-radius: calc(var(--r) - 6px);
}
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) .fcrv-ngrid__date {
	position: static; grid-column: 2; align-self: end; justify-self: start;
	background: none; padding: 0;
	color: var(--pill);
	font-size: 12px;
}
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) .fcrv-ngrid__title {
	position: static; grid-column: 2; grid-row: 2; align-self: start;
	color: #0b1b4d;
	font-size: 15px;
}
.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) .fcrv-ngrid__date { grid-row: 1; }
.fcrv-ngrid--list .fcrv-ngrid__all { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 20px; font-size: 18px; }
.fcrv-ngrid--list .fcrv-ngrid__all svg { padding: 10px; }

@media (max-width: 1024px) {
	/* подпись снизу — высоту карточек задаёт фото, а не ряд сетки */
	.fcrv-ngrid--below { grid-auto-rows: auto; }
	.fcrv-ngrid--below .fcrv-ngrid__bg { flex: none; aspect-ratio: 16 / 10; }
	.fcrv-ngrid--below .fcrv-ngrid__card:first-child .fcrv-ngrid__bg { aspect-ratio: 16 / 8; }
	.fcrv-ngrid--below .fcrv-ngrid__all { min-height: 90px; }

	.fcrv-ngrid--list { grid-template-columns: 1fr; }
	.fcrv-ngrid--list .fcrv-ngrid__card:first-child { grid-column: auto; grid-row: auto; min-height: 340px; }
}

@media (max-width: 640px) {
	.fcrv-ngrid--below .fcrv-ngrid__card:first-child .fcrv-ngrid__bg { aspect-ratio: 16 / 10; }
	.fcrv-ngrid--below .fcrv-ngrid__card:first-child .fcrv-ngrid__title { font-size: 18px; }
	.fcrv-ngrid--overlay .fcrv-ngrid__card:first-child .fcrv-ngrid__title,
	.fcrv-ngrid--list .fcrv-ngrid__card:first-child .fcrv-ngrid__title { font-size: 20px; }
	.fcrv-ngrid--list .fcrv-ngrid__card:first-child { min-height: 260px; }
	.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) { grid-template-columns: 38% 1fr; column-gap: 12px; }
	.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) .fcrv-ngrid__bg { min-height: 84px; }
	.fcrv-ngrid--list .fcrv-ngrid__card:not(:first-child) .fcrv-ngrid__title { font-size: 14px; }
}

/* ---------- «Все мероприятия» справа от заголовка раздела ----------
   Кнопка живёт в виджете, а заголовок — отдельный виджет над ним,
   поэтому поднимаем её из виджета вверх на уровень заголовка. */
.elementor-widget:has(> .elementor-widget-container > .fcrv-evs__all--top),
.elementor-widget:has(> .fcrv-evs__all--top) { position: relative; }
@media (min-width: 641px) {
	.fcrv-evs .fcrv-evs__all--top, a.fcrv-evs__all--top {
		position: absolute;
		right: 0;
		bottom: calc(100% + var(--evs-all-shift, 16px));
		margin: 0;
	}
}

/* «Только фото»: у отдельных новостей (галочка в записи) название внизу плитки,
   прямо над пилюлей с датой. */
.fcrv-ngrid--images .fcrv-ngrid__card--title {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 10px;
	padding: 18px 18px 14px 14px;
}
.fcrv-ngrid--images .fcrv-ngrid__card--title::before {
	display: block;
	background: linear-gradient(0deg, rgba(2, 12, 46, .88) 0%, rgba(2, 12, 46, .5) 40%, rgba(2, 12, 46, 0) 70%);
}
.fcrv-ngrid--images .fcrv-ngrid__card--title .fcrv-ngrid__title {
	position: relative !important;
	inset: auto;
	width: auto; height: auto; margin: 0 0 0 4px;
	clip: auto; clip-path: none; white-space: normal;
	overflow: hidden;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.fcrv-ngrid--images .fcrv-ngrid__card--title .fcrv-ngrid__date { position: relative; left: auto; bottom: auto; }

/* ---------- Афиша мероприятий: карусель страницами ----------
   Каждая страница — обычная сетка .fcrv-evs, лента прокручивается
   с привязкой к странице. Стрелки по бокам, точки снизу. */
.fcrv-evcar { position: relative; }
.fcrv-evcar__track {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	/* запас сверху и снизу — под подъём карточки и тень при наведении */
	margin: -8px 0 -22px;
	padding: 8px 0 22px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	box-sizing: content-box !important; /* высоту страницы ставит скрипт — без учёта отступов */
	transition: height .3s var(--ease, ease);
}
.fcrv-evcar__track::-webkit-scrollbar { display: none; }
.fcrv-evcar__track:focus-visible { outline: 2px solid var(--c-blue-600, #1456ff); outline-offset: 6px; border-radius: 12px; }
.fcrv-evcar .fcrv-evcar__page { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }

/* тип элемента в селекторе — набор Elementor красит любые кнопки */
.fcrv-evcar button.fcrv-evcar__nav {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 3;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0 !important;
	border-radius: 50% !important; /* набор Elementor на :focus делает кнопки квадратными */
	background: #fff;
	color: var(--c-blue-900, #002f9d);
	box-shadow: 0 10px 26px rgba(9, 20, 60, .18);
	cursor: pointer;
	transition: background .2s, color .2s, opacity .2s, transform .2s;
}
.fcrv-evcar button.fcrv-evcar__nav--prev { left: -24px; }
.fcrv-evcar button.fcrv-evcar__nav--next { right: -24px; }
.fcrv-evcar button.fcrv-evcar__nav:hover:not(:disabled),
.fcrv-evcar button.fcrv-evcar__nav:focus-visible:not(:disabled) { background: var(--c-blue-600, #1456ff); color: #fff; transform: scale(1.06); }
.fcrv-evcar button.fcrv-evcar__nav:disabled { opacity: 0; pointer-events: none; }
.fcrv-evcar:not(.is-ready) .fcrv-evcar__nav { display: none; }

@media (min-width: 1560px) {
	.fcrv-evcar button.fcrv-evcar__nav--prev { left: -72px; }
	.fcrv-evcar button.fcrv-evcar__nav--next { right: -72px; }
}

.fcrv-evcar__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.fcrv-evcar__dots:empty { display: none; }
.fcrv-evcar button.fcrv-evcar__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #c9d5ee;
	cursor: pointer;
	transition: width .25s var(--ease, ease), background .25s;
}
.fcrv-evcar button.fcrv-evcar__dot:hover { background: #8fa8e6; }
.fcrv-evcar button.fcrv-evcar__dot.is-on { width: 28px; background: var(--c-blue-600, #1456ff); }

@media (max-width: 1024px) {
	.fcrv-evcar button.fcrv-evcar__nav { display: none; }
	.fcrv-evcar__track { gap: 16px; }
}

/* ---------- Контакты: сведения об организации (HTML-блок на странице /c/) ----------
   Две карточки — учреждение и наше подразделение (синяя), под ними адреса. */
.fcrv-org2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin-top: 4px;
}
.fcrv-org2__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 30px;
	overflow: hidden;
	border: 1.5px solid #e3ebf8;
	border-radius: 24px;
	background: linear-gradient(160deg, #f5f8ff 0%, #ffffff 60%);
}
/* мягкий круг-блик в углу */
.fcrv-org2__card::after {
	content: "";
	position: absolute;
	top: -70px;
	right: -70px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(20, 86, 255, .10), rgba(20, 86, 255, 0) 70%);
	pointer-events: none;
}
.fcrv-org2__card--accent {
	border-color: transparent;
	background: radial-gradient(120% 90% at 100% 0%, rgba(18, 132, 231, .55), transparent 60%),
	            linear-gradient(150deg, #002f9d 0%, #1456ff 100%);
	box-shadow: 0 18px 40px rgba(20, 86, 255, .25);
	color: #fff;
}
.fcrv-org2__card--accent::after { background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%); }

.fcrv-org2__eyebrow {
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(20, 86, 255, .10);
	color: #1456ff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.fcrv-org2__card--accent .fcrv-org2__eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }

.fcrv-org2 .fcrv-org2__name {
	margin: 0;
	color: #0b1b4d;
	font-family: Montserrat, Commissioner, sans-serif;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	text-wrap: balance;
}
.fcrv-org2__card--accent .fcrv-org2__name { color: #fff; }

.fcrv-org2__list { display: grid; gap: 12px; margin: 0; }
.fcrv-org2__list dt { margin: 0 0 2px; color: #7a84a0; font-size: 12.5px; font-weight: 600; }
.fcrv-org2__list dd { margin: 0; color: #26304f; font-size: 15px; line-height: 1.5; }

.fcrv-org2__person {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px dashed #d6e0f3;
}
.fcrv-org2__card--accent .fcrv-org2__person { border-top-color: rgba(255, 255, 255, .25); }
.fcrv-org2__ava {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1456ff, #1284e7);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .02em;
}
.fcrv-org2__card--accent .fcrv-org2__ava { background: #fff; color: #002f9d; }
.fcrv-org2__person > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.fcrv-org2__person b { color: #0b1b4d; font-size: 16px; font-weight: 700; }
.fcrv-org2__person i { color: #7a84a0; font-size: 13px; font-style: normal; }
.fcrv-org2__card--accent .fcrv-org2__person b { color: #fff; }
.fcrv-org2__card--accent .fcrv-org2__person i { color: rgba(255, 255, 255, .75); }

.fcrv-org2__addr {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 22px;
	border-radius: 18px;
	background: #f4f7fd;
	color: #3b4563;
	font-size: 14.5px;
	line-height: 1.55;
}
.fcrv-org2__addr b { display: block; margin-bottom: 2px; color: #0b1b4d; font-size: 14px; font-weight: 700; }
.fcrv-org2__pin {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #fff;
	color: #1456ff;
	box-shadow: 0 4px 12px rgba(0, 47, 157, .08);
}

.fcrv-org2__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fcrv-org2 .fcrv-org2__chips a {
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(20, 86, 255, .08);
	color: #1456ff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.fcrv-org2 .fcrv-org2__chips a:hover { background: #1456ff; color: #fff; }

@media (max-width: 860px) {
	.fcrv-org2 { grid-template-columns: 1fr; gap: 14px; }
	.fcrv-org2__card { padding: 22px 20px; }
	.fcrv-org2 .fcrv-org2__name { font-size: 19px; }
}
