/* Подвал сайта. Тёмно-синий градиент вместо плоского яркого — не режет глаза. */

.fcrv-footer {
	--f-bg-top:    #002F9D;
	--f-bg-bottom: #002F9D;
	--f-text:      rgba(255, 255, 255, .78);
	--f-title:     #FFFFFF;
	--f-muted:     rgba(255, 255, 255, .5);
	--f-line:      rgba(255, 255, 255, .12);
	--f-accent:    #6FA8FF;

	position: relative;
	margin-top: 0;
	padding: 0 24px;
	color: var(--f-text);
	background: linear-gradient(180deg, var(--f-bg-top) 0%, var(--f-bg-bottom) 100%);
	border-radius: 0;
	font-size: 15px;
	line-height: 1.6;
	overflow: hidden;
}

/* Мягкое свечение сверху слева — чтобы фон не был плоской заливкой */
.fcrv-footer::before {
	content: "";
	position: absolute;
	top: calc(var(--fcrv-wave-h-footer, 150px) - 60px);
	left: -120px;
	width: 620px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(80, 130, 255, .16), transparent);
	pointer-events: none;
}

.fcrv-footer__inner {
	position: relative;
	max-width: var(--content-max, 1390px);
	margin: 0 auto;
	padding: calc(var(--fcrv-wave-h-footer, 150px) + 40px) 0 26px;
}

/* --------------------------------- сетка ---------------------------------
   Верх — знак и контакты, ниже отдельной полосой карта сайта. Раньше
   колонки меню стояли в этом же ряду, но их стало семь: рядом со знаком
   и контактами они сжимались до нечитаемой ширины.                        */

.fcrv-footer__top {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: 40px 48px;
	padding-bottom: 34px;
}

/* ------------------------------- логотип -------------------------------- */

.fcrv-footer__logo { display: inline-block; }
.fcrv-footer__logo img {
	display: block;
	width: 158px;
	height: auto;
	transition: transform var(--dur, .28s) var(--ease, ease);
}
.fcrv-footer__logo:hover img { transform: scale(1.03); }

.fcrv-footer__tagline {
	margin: 16px 0 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--f-muted);
}

.fcrv-footer__socials { display: flex; gap: 10px; }

.fcrv-footer__soc {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--r-xs, 8px);
	color: #fff;
	background: rgba(255, 255, 255, .1);
	text-decoration: none !important;
	transition: background var(--dur, .28s) var(--ease, ease), transform var(--dur, .28s) var(--ease, ease);
}

.fcrv-footer__soc svg { width: 19px; height: 19px; display: block; }
.fcrv-footer__soc:hover { background: var(--soc-accent, var(--f-accent)); transform: translateY(-3px); }

/* -------------------------------- заголовки -------------------------------- */

.fcrv-footer .fcrv-footer__title {
	margin: 0 0 16px;
	font-family: Montserrat, inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--f-title);
}

.fcrv-footer .fcrv-footer__title a {
	color: inherit;
	text-decoration: none !important;
	transition: color var(--dur-fast, .16s) var(--ease, ease);
}
.fcrv-footer .fcrv-footer__title a:hover { color: var(--f-accent); }

/* ------------------------------ карта сайта ------------------------------
   Колонки собираются из меню шапки, поэтому их число заранее не известно:
   сетка раскладывает их сама и выравнивает по верхнему краю.              */

.fcrv-footer__map {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 30px 32px;
	align-items: start;
	padding: 34px 0 38px;
	border-top: 1px solid var(--f-line);
}

.fcrv-footer__group { min-width: 0; }

.fcrv-footer .fcrv-footer__group > .fcrv-footer__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 12px;
	list-style: none;
}

.fcrv-footer__group > summary::-webkit-details-marker { display: none; }

.fcrv-footer__caret {
	display: none;
	flex: none;
	width: 12px;
	height: 8px;
	opacity: .55;
	transition: transform var(--dur-fast, .16s) var(--ease, ease);
}

/* На широком экране колонки всегда раскрыты, заголовок ничего не переключает. */
@media (min-width: 1024px) {
	.fcrv-footer__group > summary { pointer-events: none; }
	.fcrv-footer .fcrv-footer__title a { pointer-events: auto; }
}

/* -------------------------------- ссылки -------------------------------- */

.fcrv-footer__links,
.fcrv-footer__sub { margin: 0; padding: 0; list-style: none; }

.fcrv-footer__links > li { margin: 0 0 2px; }

.fcrv-footer .fcrv-footer__ml {
	position: relative;
	display: block;
	padding: 5px 0;
	font-size: 14.5px;
	color: var(--f-text);
	text-decoration: none !important;
	transition: color var(--dur-fast, .16s) var(--ease, ease), padding-left var(--dur-fast, .16s) var(--ease, ease);
}

/* Пункт без страницы: тот же текст, что в шапке, но не ссылка. */
.fcrv-footer .fcrv-footer__ml.is-soon { color: rgba(255, 255, 255, .42); cursor: default; }

/* Стрелка выезжает слева при наведении */
a.fcrv-footer__ml::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 10px;
	height: 2px;
	border-radius: 2px;
	background: var(--f-accent);
	opacity: 0;
	transform: translate(-10px, -50%);
	transition: opacity var(--dur-fast, .16s) var(--ease, ease), transform var(--dur-fast, .16s) var(--ease, ease);
}

.fcrv-footer a.fcrv-footer__ml:hover,
.fcrv-footer a.fcrv-footer__ml:focus-visible { color: #fff; padding-left: 18px; }
a.fcrv-footer__ml:hover::before,
a.fcrv-footer__ml:focus-visible::before { opacity: 1; transform: translate(0, -50%); }

/* Третий уровень меню — с отбивкой и потоньше, чтобы читалась вложенность. */
.fcrv-footer__sub {
	margin: 0 0 6px;
	padding-left: 12px;
	border-left: 1px solid var(--f-line);
}

.fcrv-footer .fcrv-footer__sub .fcrv-footer__ml {
	padding: 4px 0;
	font-size: 13.5px;
	color: var(--f-text);
}
.fcrv-footer .fcrv-footer__sub a.fcrv-footer__ml:hover { color: #fff; }

/* -------------------------------- контакты -------------------------------- */

.fcrv-footer__col--contacts { min-width: 0; }

.fcrv-footer__contacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fcrv-footer__contacts li { margin: 0; }

.fcrv-footer__contacts a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding: 10px 12px;
	margin-left: -12px;
	border-radius: var(--r-sm, 12px);
	text-decoration: none !important;
	transition: background var(--dur, .28s) var(--ease, ease);
}

.fcrv-footer__contacts a:hover,
.fcrv-footer__contacts a:focus-visible { background: rgba(255, 255, 255, .07); }

.fcrv-footer__cicon {
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: var(--r-xs, 8px);
	color: var(--f-accent);
	background: rgba(255, 255, 255, .1);
	transition: color var(--dur, .28s) var(--ease, ease), background var(--dur, .28s) var(--ease, ease);
}

.fcrv-footer__contacts a:hover .fcrv-footer__cicon { color: #fff; background: var(--f-accent); }
.fcrv-footer__cicon svg { width: 17px; height: 17px; display: block; }

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

.fcrv-footer__clabel {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--f-muted);
}

.fcrv-footer__cvalue { font-size: 14.5px; line-height: 1.45; color: #fff; }

/* ------------------------------- нижняя строка ------------------------------- */

.fcrv-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--f-line);
}

.fcrv-footer__copy { margin: 0; font-size: 13px; color: var(--f-muted); }

.fcrv-footer__top-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: var(--r-pill, 9999px);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: rgba(255, 255, 255, .1);
	text-decoration: none !important;
	transition: background var(--dur, .28s) var(--ease, ease), transform var(--dur, .28s) var(--ease, ease);
}

.fcrv-footer__top-link svg { width: 16px; height: 16px; }
.fcrv-footer__top-link:hover { background: var(--f-accent); transform: translateY(-2px); }

/* --------------------------------- адаптив --------------------------------- */

@media (max-width: 1100px) {
	.fcrv-footer__top { grid-template-columns: 1fr; gap: 30px; }
	.fcrv-footer__contacts { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

/* Телефон и планшет: карта сайта складывается в гармошку. Ссылок три
   десятка, в один ряд колонки уже не встают, а два ряда сетки оставляют
   под короткими колонками пустоту высотой с саму колонку. */
@media (max-width: 1023px) {
	.fcrv-footer__map {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 22px 0 26px;
	}

	.fcrv-footer__group { border-bottom: 1px solid var(--f-line); }
	.fcrv-footer__group:first-child { border-top: 1px solid var(--f-line); }

	.fcrv-footer .fcrv-footer__group > .fcrv-footer__title {
		margin: 0;
		padding: 14px 0;
		cursor: pointer;
	}

	.fcrv-footer__caret { display: block; }
	.fcrv-footer__group[open] .fcrv-footer__caret { transform: rotate(180deg); }
	.fcrv-footer__group[open] .fcrv-footer__links { padding-bottom: 10px; }
}

@media (max-width: 600px) {
	/* поля как у остальных секций; скругление сверху убрано — с волной оно спорит */
	.fcrv-footer { padding: 0 20px; border-radius: 0; }
	.fcrv-footer__inner { padding: 40px 0 22px; }
	.fcrv-footer__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 26px; }
	.fcrv-footer__contacts { grid-template-columns: 1fr; }
	.fcrv-footer__bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.fcrv-footer__logo img, .fcrv-footer__soc, .fcrv-footer__ml,
	.fcrv-footer__contacts a, .fcrv-footer__cicon, .fcrv-footer__top-link,
	.fcrv-footer__caret { transition: none !important; }
	.fcrv-footer__soc:hover, .fcrv-footer__top-link:hover, .fcrv-footer__logo:hover img { transform: none; }
}

/* Набор Elementor задаёт цвета по тегам h1-h6 и p — перебиваем их
   более специфичными селекторами, иначе в подвале текст остаётся тёмным. */
.fcrv-footer .fcrv-footer__title { color: #FFFFFF; }
.fcrv-footer .fcrv-footer__tagline { color: var(--f-muted); }
.fcrv-footer .fcrv-footer__copy { color: var(--f-muted); }
.fcrv-footer .fcrv-footer__cvalue { color: #FFFFFF; }
.fcrv-footer .fcrv-footer__clabel { color: var(--f-muted); }

/* Волна по верхней кромке подвала. Белая часть закрывает фон,
   остальное прозрачно — под ней виден градиент. */
.fcrv-footer__wave {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--fcrv-wave-h-footer, 150px);
	line-height: 0;
	pointer-events: none;
}

.fcrv-footer__wave svg {
	width: 100%;
	height: 100%;
	display: block;
}


/* Логотип и контакты переехали под карту сайта. */
.fcrv-footer__map { border-top: 0; padding-top: 6px; }
.fcrv-footer__top { padding: 32px 0 30px; border-top: 1px solid var(--f-line); }
.fcrv-footer__org { max-width: 360px; margin: 14px 0 10px; font-size: 14px; font-weight: 700; line-height: 1.45; color: #fff; }
/* Строки © больше нет — кнопка «Наверх» остаётся справа. */
.fcrv-footer__bottom .fcrv-footer__top-link { margin-left: auto; }

/* Нижний ряд — два знака, каждый со своим названием, во всю ширину. */
.fcrv-footer .fcrv-footer__top { display: block; }
.fcrv-footer__brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.fcrv-footer .fcrv-footer__unit { display: flex; align-items: center; gap: 20px; min-width: 0; color: inherit; text-decoration: none !important; }
.fcrv-footer__unit + .fcrv-footer__unit { padding-left: 56px; border-left: 1px solid var(--f-line); margin-left: -28px; }
.fcrv-footer__mark { display: block; flex: none; width: auto; }
.fcrv-footer__mark--smena { height: 50px; }
.fcrv-footer__mark--fcrv { height: 58px; }
.fcrv-footer__unit .fcrv-footer__org { max-width: none; margin: 0; font-size: 15px; line-height: 1.45; }
.fcrv-footer__unit .fcrv-footer__tagline { margin: 0; padding: 0; border: 0; font-size: 14.5px; line-height: 1.45; }
@media (max-width: 1023px) {
	.fcrv-footer__brand { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.fcrv-footer__unit + .fcrv-footer__unit { padding-left: 0; margin-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid var(--f-line); }
	.fcrv-footer__unit .fcrv-footer__org br, .fcrv-footer__unit .fcrv-footer__tagline br { display: none; }
	.fcrv-footer__mark--smena { height: 42px; }
	.fcrv-footer__mark--fcrv { height: 48px; }
}
/* Размер знаков — сильнее общих правил для картинок. */
.fcrv-footer .fcrv-footer__unit img.fcrv-footer__mark { width: auto !important; max-width: none !important; }
.fcrv-footer .fcrv-footer__unit img.fcrv-footer__mark--smena { height: 50px !important; }
.fcrv-footer .fcrv-footer__unit img.fcrv-footer__mark--fcrv { height: 58px !important; }
@media (max-width: 1023px) { .fcrv-footer .fcrv-footer__unit img.fcrv-footer__mark--smena { height: 40px !important; } .fcrv-footer .fcrv-footer__unit img.fcrv-footer__mark--fcrv { height: 46px !important; } .fcrv-footer .fcrv-footer__unit { gap: 16px; } }
.fcrv-footer .fcrv-footer__unit .fcrv-footer__tagline { color: rgba(255,255,255,.82); }
@media (min-width: 1024px) { .fcrv-footer__brand { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .fcrv-footer__unit .fcrv-footer__org { font-size: 14.5px; white-space: nowrap; } }
@media (min-width: 1024px) and (max-width: 1279px) { .fcrv-footer__unit .fcrv-footer__org { white-space: normal; } }

/* Оба названия в подвале — одинаково: белым жирным. */
.fcrv-footer .fcrv-footer__unit .fcrv-footer__org,
.fcrv-footer .fcrv-footer__unit .fcrv-footer__tagline { color: #fff; font-weight: 700; font-size: 14.5px; line-height: 1.45; }
