/**
 * Главная страница — тёмная графитовая тема, полноширинная
 * Шапка и подвал свои; все ссылки/кнопки без подчёркивания.
 */

/* ========== Принудительно тёмный фон и текст (перебить style.css) ========== */
body.front-page-hub,
body.error404,
body.glossary-page,
body.archive,
body.blog,
body.search {
	background: #161618 !important;
	color: #e4e4e7 !important;
}
body.front-page-hub #content,
body.front-page-hub .site-content,
body.error404 #content,
body.error404 .site-content,
body.glossary-page #content,
body.glossary-page .site-content,
body.archive #content,
body.archive .site-content,
body.blog #content,
body.blog .site-content,
body.search #content,
body.search .site-content {
	background: #161618 !important;
	color: #e4e4e7 !important;
}
body.front-page-hub a,
body.error404 a,
body.glossary-page a,
body.archive a,
body.blog a,
body.search a {
	color: #e4e4e7;
}
body.front-page-hub .front-404__message,
body.error404 .front-404__message {
	color: #e4e4e7 !important;
}
body.front-page-hub .front-404__message h1,
body.error404 .front-404__message h1 {
	color: #e4e4e7 !important;
}
body.error404 .front-404__sections,
body.front-page-hub .front-404__sections {
	background: transparent;
	color: #e4e4e7;
}
body.error404 .front-404__sections .front-section__title,
body.front-page-hub .front-404__sections .front-section__title,
body.error404 .front-404__sections .front-section__caption,
body.front-page-hub .front-404__sections .front-section__caption {
	color: #e4e4e7 !important;
}
.front-hero__title {
	color: #e4e4e7 !important;
}

/* ========== Переменные ========== */
.front-page-hub .front-hub,
.site--front,
body.glossary-page {
	--fp-bg: #161618;
	--fp-bg-soft: #1e1e21;
	--fp-bg-card: #252529;
	--fp-border: rgba(255, 255, 255, 0.06);
	--fp-text: #e4e4e7;
	--fp-text-muted: #a1a1aa;
	--fp-text-dim: #71717a;
	--fp-link: #e4e4e7;
	--fp-link-hover: #fff;
	--fp-accent: #818cf8;
	--fp-accent-soft: rgba(129, 140, 248, 0.15);
	--fp-btn: #2d2d32;
	--fp-btn-hover: #3f3f46;
	--fp-radius: 10px;
	--fp-radius-sm: 6px;
	--fp-font-title: var(--title-font, Quicksand, sans-serif);
	--fp-font-text: var(--text-font, Raleway, sans-serif);
	--fp-width: min(720px, 100% - 2rem);
	--fp-width-wide: min(960px, 100% - 2rem);
}

/* ========== Полная ширина, сброс grid темы, липкий сайдбар ========== */
/* Высота шапки для отступа липкого сайдбара (padding + контент) */
.site--front {
	--front-header-h: 4.5rem;
}
.site--front,
.site--front #page {
	max-width: none !important;
	width: 100% !important;
}
.site--front #content.site-content,
.site--front .site-content.front-page-content,
body.front-page-hub #content,
body.front-page-hub .site-content {
	display: block !important;
	max-width: none !important;
	width: 100% !important;
	padding-left: 0;
	padding-right: 0;
	grid-template-columns: none;
	overflow: visible !important;
}
.front-page-content {
	overflow: visible;
}
.front-page-layout {
	overflow: visible;
}
.site--front .front-header__inner {
	max-width: none;
	padding-left: 1rem;
	padding-right: 1rem;
}
.site--front .front-footer__inner {
	max-width: none;
	padding-left: 1rem;
	padding-right: 1rem;
}
body.front-page-hub,
body.front-page-hub .site.site--front {
	margin: 0;
	padding: 0;
}

body.front-page-hub,
.site--front body {
	background: var(--fp-bg);
}

.front-hub {
	background: var(--fp-bg);
	color: var(--fp-text);
	font-family: var(--fp-font-text);
	width: 100%;
	min-height: 50vh;
}

/* Все ссылки и кнопки на главной — без подчёркивания */
.front-hub a,
.front-header a,
.front-footer a,
.front-cta__btn,
.front-header__menu a,
.front-footer__menu a {
	text-decoration: none !important;
}

.front-hub a:hover,
.front-header a:hover,
.front-footer a:hover {
	text-decoration: none !important;
}

/* Контейнеры контента */
.front-quote__inner,
.front-section__inner,
.front-video__inner,
.front-cta__inner,
.front-question__inner,
.front-latest__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.front-hero__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.front-cta__inner {
	max-width: 960px;
}

/* ========== Раскладка 80:20 на всю главную — слева контент, справа сайдбар со статьями ========== */
.front-page-layout {
	display: block;
	width: 100%;
}

.front-page-main {
	width: 100%;
	min-width: 0;
}

.front-page-sidebar {
	display: none;
}

@media (min-width: 1024px) {
	.front-page-layout {
		display: grid !important;
		grid-template-columns: 1fr 320px !important;
		gap: 0;
		align-items: start;
		width: 100%;
		min-height: 0;
	}

	.front-page-main {
		grid-column: 1;
		min-width: 0;
	}

	.front-page-sidebar {
		display: flex !important;
		flex-direction: column;
		grid-column: 2;
		align-self: stretch;
		position: sticky !important;
		top: var(--front-header-h, 4.5rem) !important;
		width: 100%;
		max-width: 320px;
		min-width: 0;
		min-height: calc(100vh - var(--front-header-h, 4.5rem));
		background: var(--fp-bg-soft);
		border-left: 1px solid var(--fp-border);
		padding: 1rem;
		overflow-y: auto;
		max-height: calc(100vh - var(--front-header-h, 4.5rem));
		scrollbar-width: none;
	}

	.front-page-sidebar::-webkit-scrollbar {
		display: none;
	}
}

/* Блок разделов — одна колонка, без своей сетки */
.front-page-content .front-sections-wrap {
	display: block;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.front-sections-wrap .front-sections {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

@media (min-width: 1024px) {
	.front-sections .front-section {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
}

/* Кнопки разделов в сайдбаре: заполняют строку (3 в первой, 2 во второй — каждая растягивается) */
.front-sidebar-section-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--fp-border);
}

.front-sidebar-section-btn {
	flex: 1 1 0;
	min-width: calc(33.333% - 0.35rem);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.5rem 0.4rem;
	font-size: 0.75rem;
	line-height: 1.3;
	font-family: var(--fp-font-text);
	color: var(--fp-text);
	background: var(--fp-btn);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.front-sidebar-section-btn:hover {
	background: var(--fp-btn-hover);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--fp-link-hover);
}

.front-sidebar-section-btn.is-active {
	background: var(--fp-accent);
	border-color: var(--fp-accent);
	color: #fff;
}

.front-sidebar-panels {
	flex: 1;
	min-height: 0;
}

/* ========== Двухколоночный layout: контент слева, сайдбар справа по наведению ========== */
.front-hub-layout {
	display: block;
	width: 100%;
}

.front-hub-main {
	width: 100%;
}

/* Сайдбар: скрыт на мобильных */
.front-hub-sidebar {
	display: none;
}

@media (min-width: 1024px) {
	.front-hub-layout {
		display: grid;
		grid-template-columns: 1fr 320px;
		gap: 0;
		min-height: 40vh;
	}

	.front-hub-main {
		min-width: 0;
	}

	.front-hub-sidebar {
		display: flex;
		flex-direction: column;
		position: sticky;
		top: 0;
		height: 100vh;
		background: var(--fp-bg-soft);
		border-left: 1px solid var(--fp-border);
		padding: 1.25rem 1rem;
		overflow-y: auto;
	}

	.front-sidebar-placeholder {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 200px;
		color: var(--fp-text-dim);
		font-size: 0.9375rem;
	}

	.front-sidebar-placeholder.is-hidden {
		display: none;
	}

	.front-sidebar-panel {
		display: none;
		flex-direction: column;
		gap: 0.75rem;
	}

	.front-sidebar-panel.is-active {
		display: flex;
	}

	.front-sidebar-panel[hidden] {
		display: none !important;
	}

	.front-sidebar-panel__title {
		font-family: var(--fp-font-title);
		font-size: 1rem;
		font-weight: 500;
		color: var(--fp-text);
		margin: 0 0 0.5rem;
	}

	.front-sidebar-panel__list {
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.front-sidebar-panel__item {
		margin-bottom: 0.5rem;
	}

	.front-sidebar-panel__link {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		padding: 0.5rem 0;
		border-radius: var(--fp-radius-sm);
		color: #d7d9f5;
		text-decoration: none;
		transition: background 0.15s;
	}

	.front-sidebar-panel__link:hover {
		background: var(--fp-btn);
		color: #ffffff;
		text-decoration: underline;
	}

	.front-sidebar-panel__thumb {
		flex-shrink: 0;
		width: 56px;
		height: 42px;
		background: var(--fp-bg-card);
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		border-radius: 4px;
		border: 1px solid var(--fp-border);
	}

	.front-sidebar-panel__name {
		font-size: 0.9375rem;
		line-height: 1.35;
	}

	.front-sidebar-panel__empty {
		margin: 0;
		color: var(--fp-text-dim);
		font-size: 0.9375rem;
	}

	.front-sidebar-panel__more {
		display: inline-block;
		margin-top: 0.75rem;
		font-size: 0.8125rem;
		color: var(--fp-accent);
		text-decoration: none;
	}
	.front-sidebar-panel__more:hover {
		color: var(--fp-link-hover);
	}
}

/* На десктопе список статей внутри раздела скрыт (показывается только в сайдбаре по наведению) */
@media (min-width: 1024px) {
	.front-section__articles--mobile {
		display: none;
	}
}

@media (max-width: 1023px) {
	.front-section__articles--mobile {
		display: block;
	}
}

/* ========== Блоки разделов: слева зона с картинкой (только там), справа текст; затемнение 20%→50%→70% ========== */
.front-section {
	padding: 2.75rem 0;
	border-bottom: 1px solid var(--fp-border);
}

.front-section__wrap {
	display: block;
	position: relative;
	min-height: 200px;
}

.front-section__link-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	text-indent: -9999px;
	overflow: hidden;
}

/* На мобилке: картинка секции — фон всего блока с затемнением 70% */
.front-section__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.front-section__media-bg {
	position: absolute;
	inset: 0;
	background-color: var(--fp-bg);
	background-size: cover;
	background-position: center;
}

.front-section__media-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	pointer-events: none;
}

.front-section__content {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.front-section__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

@media (min-width: 768px) {
	.front-section__wrap {
		display: grid;
		grid-template-columns: minmax(200px, 36%) 1fr;
		min-height: 220px;
	}
	.front-section__media {
		display: block;
		position: relative;
		min-height: 220px;
		overflow: hidden;
	}
	.front-section__media-bg {
		position: absolute;
		inset: 0;
		background-color: var(--fp-bg);
		background-size: cover;
		background-position: center;
	}
	/* Картинка только в левой зоне; поверх — градиент затемнения: слева 20%, центр 50%, справа 70% */
	.front-section__media-overlay {
		position: absolute;
		inset: 0;
		background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7));
		pointer-events: none;
	}
	.front-section__content {
		display: flex;
		align-items: center;
	}
	.front-section__inner {
		margin: 0;
		padding: 1.25rem 1.5rem 1.25rem 1.75rem;
		max-width: none;
	}
}

/* Фоновые изображения задаются в шаблонах (относительные пути от корня сайта) */

@media (min-width: 1024px) {
	.front-section--hover {
		cursor: pointer;
		transition: opacity 0.2s;
	}
	.front-section--hover:hover {
		opacity: 1;
	}
	.front-section--hover .front-section__media-bg {
		transition: transform 0.3s;
	}
	.front-section--hover:hover .front-section__media-bg {
		transform: scale(1.03);
	}
}

/* ========== Шапка ========== */
.front-header {
	background: var(--fp-bg-soft);
	border-bottom: 1px solid var(--fp-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.front-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.front-header__brand {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.front-header__logo {
	color: var(--fp-text) !important;
	font-family: var(--fp-font-title);
	font-size: 1.25rem;
	font-weight: 500;
}

.front-header__logo:hover {
	color: var(--fp-link-hover) !important;
}

.front-header .custom-logo-link {
	color: var(--fp-text) !important;
}

.front-header .custom-logo-link:hover {
	color: var(--fp-link-hover) !important;
}

.front-header__logo img,
.front-header .custom-logo-link img {
	max-height: 40px;
	width: auto;
	vertical-align: middle;
}

.front-header__desc {
	color: var(--fp-text-muted);
	font-size: 0.875rem;
}

.front-header__nav {
	display: flex;
	align-items: center;
}

.front-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.front-header__menu a {
	color: var(--fp-text-muted);
	font-size: 0.9375rem;
	padding: 0.35rem 0;
}

.front-header__menu a:hover {
	color: var(--fp-link) !important;
}

/* Подменю в шапке: десктоп — выпадающая панель, мобилка — вложенный список */
.front-header__menu > li {
	position: relative;
}

.front-header__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: 12rem;
	background: var(--fp-bg-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.front-header__menu .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--fp-text) !important;
	font-size: 0.9375rem;
	border-bottom: 1px solid var(--fp-border);
	white-space: nowrap;
}

.front-header__menu .sub-menu li:last-child > a {
	border-bottom: none;
}

.front-header__menu .sub-menu a:hover {
	background: var(--fp-bg-soft);
	color: var(--fp-accent) !important;
}

/* Вложенные уровни */
.front-header__menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
	margin-top: -1px;
}

.front-header__menu > li > .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	margin-top: 0.25rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.front-header__menu > li:hover > .sub-menu,
.front-header__menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.front-header__menu .sub-menu .menu-item-has-children {
	position: relative;
}

.front-header__menu .sub-menu .menu-item-has-children > .sub-menu {
	position: absolute;
	left: 100%;
	top: 0;
	margin-left: 0.25rem;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.front-header__menu .sub-menu .menu-item-has-children:hover > .sub-menu,
.front-header__menu .sub-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

/* Стрелка у пункта с подменю отключена — используем только SVG-иконку */
.front-header__menu > .menu-item-has-children > a::after {
	content: none;
}

.front-header__toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}

.front-header__toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--fp-text);
	margin: 4px 0;
	border-radius: 1px;
}

@media (max-width: 768px) {
	.front-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--fp-bg-soft);
		border-bottom: 1px solid var(--fp-border);
		padding: 1rem 1.5rem;
		display: none;
	}

	.front-header__nav.is-open {
		display: block;
	}

	.front-header__menu {
		flex-direction: column;
		gap: 0.5rem;
	}

	/* На мобилке подменю — вложенный список, без выпадалки */
	.front-header__menu > li > .sub-menu,
	.front-header__menu .sub-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		margin: 0.25rem 0 0 1rem;
		box-shadow: none;
		border: 1px solid var(--fp-border);
		border-radius: var(--fp-radius-sm);
	}

	.front-header__menu .sub-menu a {
		padding: 0.5rem 0.75rem;
		font-size: 0.875rem;
	}

	.front-header__menu > .menu-item-has-children > a::after {
		display: none;
	}

	.front-header__toggle {
		display: block;
	}
}

/* ========== Hero: две колонки — слева «О проекте», справа цитата ========== */
.front-hero {
	position: relative;
	padding: 3.5rem 0 4rem;
	border-bottom: 1px solid var(--fp-border);
	overflow: hidden;
}

.front-hero__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
	z-index: 1;
}

@media (min-width: 768px) {
	.front-hero__inner {
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		align-items: start;
	}
}

.front-hero__project {
	min-width: 0;
}

.front-hero__label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fp-accent);
	margin-bottom: 0.75rem;
}

.front-hero__title {
	font-family: var(--fp-font-title);
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 400;
	color: var(--fp-text);
	margin: 0 0 1rem;
	line-height: 1.3;
}

.front-hero__text {
	color: var(--fp-text-muted);
	line-height: 1.75;
	margin: 0 0 0.875rem;
	font-size: 1.0625rem;
}

.front-hero__text--muted {
	color: var(--fp-text-dim);
	font-size: 0.9375rem;
}

.front-hero__text:last-of-type {
	margin-bottom: 0;
}

/* Правая колонка — цитата */
.front-hero__quote-wrap {
	min-width: 0;
}

.front-hero__quote {
	margin: 0;
	padding: 1.5rem 1.25rem;
	background: var(--fp-bg-soft);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	border-left: 3px solid var(--fp-accent);
	transition: border-color 0.25s, box-shadow 0.25s;
}

.front-hero__quote:hover {
	border-left-color: var(--fp-link);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.front-hero__quote-term {
	display: block;
	font-style: normal;
	font-family: var(--fp-font-title);
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--fp-text);
	margin-bottom: 0.75rem;
}

.front-hero__quote-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--fp-text-muted);
}

.front-hero__quote-text em {
	color: var(--fp-text);
	font-style: italic;
}

/* Декоративный акцент (градиентная полоса) */
.front-hero__accent {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--fp-accent) 0%, transparent 50%, var(--fp-accent) 100%);
	opacity: 0.6;
	pointer-events: none;
}

/* ========== Цели и ценности проекта — 4 колонки на ПК: цели, ценности, стих (2 колонки) ========== */
.front-goals {
	padding: 2.5rem 0;
	background: var(--fp-bg-soft);
	border-bottom: 1px solid var(--fp-border);
}

.front-goals__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.front-goals__title {
	font-family: var(--fp-font-title);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fp-text);
	margin: 0 0 1.5rem;
}

.front-goals__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 640px) {
	.front-goals__grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem 2.5rem;
	}
}

@media (min-width: 900px) {
	.front-goals__grid {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		gap: 1.75rem 2rem;
	}
	.front-goals__verse-col {
		grid-column: span 2;
	}
}

.front-goals__col {
	min-width: 0;
}

.front-goals__row-title {
	font-family: var(--fp-font-title);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fp-text-dim);
	margin: 0 0 0.75rem;
}

.front-goals__badges {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.front-goals__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--fp-text);
	background: var(--fp-bg-card);
	border: 1px solid var(--fp-border);
	border-radius: 999px;
	transition: border-color 0.2s, background 0.2s;
	width: fit-content;
}

.front-goals__badge:hover {
	background: var(--fp-btn);
	border-color: rgba(255, 255, 255, 0.1);
}

.front-goals__icon {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--fp-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.front-goals__icon svg {
	width: 100%;
	height: 100%;
}

.front-goals__badges--values .front-goals__badge {
	color: var(--fp-text);
	border-color: var(--fp-border);
}

.front-goals__badges--values .front-goals__icon {
	color: var(--fp-accent);
}

.front-goals__verse-col {
	min-width: 0;
}

/* Общая подложка на 3–4 колонку: стиль как у цитаты, внутри — заголовок в стиле Цели/Ценности и стих в две колонки */
.front-goals__verse-box {
	margin: 0;
	padding: 1.25rem 1.25rem;
	background: var(--fp-bg-soft);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
	border-left: 3px solid var(--fp-accent);
	transition: border-color 0.25s, box-shadow 0.25s;
}

.front-goals__verse-box:hover {
	border-left-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.front-goals__verse-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem 0;
}

@media (min-width: 500px) {
	.front-goals__verse-cols {
		grid-template-columns: 1fr 1fr;
		gap: 0 1.5rem;
	}
}

.front-goals__verse {
	margin: 0;
	min-width: 0;
}

.front-goals__verse-line {
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--fp-text-muted);
	font-style: italic;
}

.front-goals__verse-line:last-child {
	margin-bottom: 0;
}

/* ========== Навигационный блок «Начните путь» — крупный призыв к разделам ========== */
.front-start-path {
	padding: 3rem 0;
	border-bottom: 1px solid var(--fp-border);
	background: linear-gradient(180deg, var(--fp-bg) 0%, var(--fp-bg-soft) 100%);
}

.front-start-path__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 1.5rem;
	text-align: center;
}

.front-start-path__heading {
	font-family: var(--fp-font-title);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 500;
	line-height: 1.3;
	color: var(--fp-text);
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.front-start-path__sub {
	margin: 0;
	font-size: 1rem;
	color: var(--fp-text-muted);
	line-height: 1.5;
}

/* ========== Идея проекта: символы (Тигр, Слон, Гора, Дерево, Лотос) ========== */
.front-idea {
	padding: 3rem 0;
	border-bottom: 1px solid var(--fp-border);
	background: var(--fp-bg);
}

.front-idea__inner {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.front-idea__title {
	font-family: var(--fp-font-title);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--fp-text);
	margin: 0 0 2rem;
	text-align: center;
}

.front-idea__symbols {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem 2rem;
	margin-bottom: 2rem;
}

.front-idea-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--fp-radius);
	cursor: pointer;
	color: var(--fp-text-muted);
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.front-idea-item:hover {
	color: var(--fp-text);
	background: var(--fp-bg-soft);
	border-color: var(--fp-border);
}

.front-idea-item.is-active {
	color: var(--fp-accent);
	border-color: var(--fp-accent);
	background: var(--fp-accent-soft);
}

.front-idea-symbol {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
}

.front-idea-symbol__svg,
.front-idea-symbol svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	transition: fill 0.25s, stroke 0.25s;
}

.front-idea-item:hover .front-idea-symbol__svg,
.front-idea-item:hover .front-idea-symbol svg,
.front-idea-item.is-active .front-idea-symbol__svg,
.front-idea-item.is-active .front-idea-symbol svg {
	fill: var(--fp-accent);
	stroke: var(--fp-accent);
}

.front-idea-label {
	font-size: 0.8125rem;
	line-height: 1.35;
	text-align: center;
	max-width: 140px;
}

.front-idea__texts {
	min-height: 4rem;
	padding: 1.25rem 1.5rem;
	background: var(--fp-bg-soft);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius);
}

.front-idea-text {
	display: none;
	margin: 0;
}

.front-idea-text.is-active {
	display: block;
}

.front-idea-text__p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--fp-text-muted);
}

/* ========== Цитата ========== */
.front-quote {
	padding: 2.5rem 0;
	background: var(--fp-bg-soft);
	border-bottom: 1px solid var(--fp-border);
}

.front-quote__text {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.6;
	color: var(--fp-text-muted);
	font-style: italic;
	border-left: 3px solid var(--fp-accent);
	padding-left: 1.25rem;
}

/* ========== Блоки разделов (типографика и бейджи) ========== */
.front-section__title {
	font-family: var(--fp-font-title);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fp-text);
	margin: 0 0 0.75rem;
}

.front-section__importance {
	color: var(--fp-text-muted);
	line-height: 1.65;
	margin: 0 0 1rem;
	font-size: 1rem;
}

.front-section__link-btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
	color: var(--fp-text);
	background: var(--fp-btn);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}
.front-section__link-btn:hover {
	background: var(--fp-btn-hover);
	border-color: rgba(255, 255, 255, 0.12);
	color: var(--fp-link-hover);
}

/* Блок «Человеческие качества» — тот же стиль, что и остальные разделы */
.front-section--qualities .front-section__media-overlay {
	background: rgba(0, 0, 0, 0.6);
}
.front-section--qualities .front-section__content {
	color: var(--fp-text);
}

.front-section__badges {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.front-section__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	font-size: 0.875rem;
	line-height: 1.3;
	color: var(--fp-text);
	background: var(--fp-bg-card);
	border: 1px solid var(--fp-border);
	border-radius: 999px;
}

.front-section__badge-icon {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	color: var(--fp-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.front-section__badge-icon svg {
	width: 100%;
	height: 100%;
}

.front-section__articles {
	list-style: none;
	margin: 0;
	padding: 0;
}

.front-section__article {
	margin-bottom: 0;
	padding: 1rem 0;
	border-bottom: 1px solid var(--fp-border);
}

.front-section__article:last-child {
	border-bottom: none;
}

.front-section__article a {
	color: var(--fp-link);
	font-weight: 500;
}

.front-section__article a:hover {
	color: var(--fp-link-hover);
}

.front-section__caption {
	display: block;
	color: var(--fp-text-dim);
	font-size: 0.9375rem;
	margin-top: 0.35rem;
	line-height: 1.4;
}

/* ========== Видео-блок ========== */
.front-video {
	padding: 2.75rem 0;
	background: var(--fp-bg-soft);
	border-bottom: 1px solid var(--fp-border);
}

.front-video__title {
	font-family: var(--fp-font-title);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fp-text);
	margin: 0 0 0.5rem;
}

.front-video__lead {
	color: var(--fp-text-muted);
	margin: 0 0 1.5rem;
	font-size: 1rem;
}

.front-video__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
	.front-video__inner {
		max-width: none;
		width: 100%;
		padding: 0 2rem;
	}
	.front-video__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.front-video__card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--fp-bg-card);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.front-video__card:hover {
	border-color: rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.front-video__card:focus {
	outline: 2px solid var(--fp-accent);
	outline-offset: 2px;
}

.front-video__card-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: var(--fp-bg);
	flex-shrink: 0;
}

.front-video__card-thumb {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.front-video__card-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 50%;
	transition: background 0.2s, transform 0.2s;
}

.front-video__card-play::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -12px 0 0 -8px;
	border: 12px solid transparent;
	border-left-color: #fff;
	border-width: 10px 0 10px 18px;
}

.front-video__card:hover .front-video__card-play {
	background: rgba(0, 0, 0, 0.85);
	transform: scale(1.05);
}

.front-video__card-body {
	padding: 0.875rem 1rem;
	flex: 1;
	min-width: 0;
}

.front-video__card.is-loaded .front-video__card-thumb-wrap,
.front-video__card.is-loaded .front-video__card-body {
	display: none;
}

.front-video__card.is-loaded {
	min-height: 280px;
}

.front-video__card.is-loaded iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.front-video__card-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--fp-text);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.front-video__card-author {
	display: block;
	font-size: 0.75rem;
	color: var(--fp-text-muted);
	margin-top: 0.35rem;
}

.front-video__card iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.front-video__all {
	display: inline-block;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.25);
}

.front-video__all:hover {
	color: #fff;
	background: var(--fp-btn-hover);
	border-color: rgba(255, 255, 255, 0.35);
}

/* ========== CTA + Оставьте вопрос: на ПК — две колонки, на мобильном — друг за другом ========== */
.front-cta-question-wrap {
	display: block;
	padding: 0 1.5rem;
}

.front-cta-question-wrap .front-cta {
	border-bottom: none;
}

.front-cta-question-wrap .front-question {
	border-bottom: none;
}

.front-cta-question-wrap {
	border-bottom: 1px solid var(--fp-border);
}

@media (min-width: 768px) {
	.front-cta-question-wrap {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0;
		align-items: start;
		max-width: none;
		margin: 0;
		padding: 0 1.5rem;
	}
	.front-cta-question-wrap .front-cta,
	.front-cta-question-wrap .front-question {
		min-width: 0;
	}
	.front-cta-question-wrap .front-cta {
		border-right: 1px solid var(--fp-border);
		padding-right: 2.5rem;
	}
	.front-cta-question-wrap .front-question {
		padding-left: 2.5rem;
	}
	.front-cta-question-wrap .front-question .front-question__inner {
		max-width: none;
		width: 100%;
	}
	.front-cta-question-wrap .front-question {
		width: 100%;
	}
}

/* ========== CTA — кнопки без подчёркивания, цвет текста белый ========== */
.front-cta {
	padding: 3rem 0;
	border-bottom: 1px solid var(--fp-border);
}

.front-cta__title {
	font-family: var(--fp-font-title);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fp-text);
	margin: 0 0 0.25rem;
}

.front-cta__lead {
	color: var(--fp-text-muted);
	margin: 0 0 1.5rem;
	font-size: 1rem;
}

.front-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.front-cta__btn {
	display: inline-block;
	padding: 0.65rem 1.35rem;
	border-radius: var(--fp-radius-sm);
	font-size: 0.9375rem;
	font-weight: 500;
	border: 1px solid transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	cursor: pointer;
	color: #fff !important;
}

.front-cta__btn:hover {
	color: #fff !important;
}

.front-cta__btn--tg,
.front-cta__btn--yt,
.front-cta__btn--vk {
	background: var(--fp-btn);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.2);
}

.front-cta__btn--tg:hover,
.front-cta__btn--yt:hover,
.front-cta__btn--vk:hover {
	background: var(--fp-btn-hover);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

.front-cta__btn--donate {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.front-cta__btn--donate:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}

.front-cta__btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.25);
}

.front-cta__btn--outline:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}

/* ========== Блок «Поддержка проекта» (оформление как на референсе: блоки с рамкой, компактно) ========== */
.front-donate {
	padding: 2rem 0;
	background: var(--fp-bg);
	border-bottom: 1px solid var(--fp-border);
}

.front-donate__inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 1.75rem 1.75rem 2rem;
	position: relative;
	background: url('/wp-content/uploads/ocean-znanii-banner.webp') center center / cover no-repeat;
	border-radius: 16px;
	overflow: hidden;
}

.front-donate__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 0;
}

.front-donate__inner > * {
	position: relative;
	z-index: 1;
}

.front-donate__title {
	font-family: var(--fp-font-title);
	font-size: 1.375rem;
	font-weight: 500;
	color: #f8f8ff;
	margin: 0 0 0.5rem;
}

.front-donate__lead {
	color: rgba(248, 248, 255, 0.9);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0 0 1rem;
}

.front-donate__goals {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.front-donate__goal {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0.75rem;
	background: rgba(0, 0, 0, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--fp-radius-sm);
	color: rgba(248, 248, 255, 0.92);
	font-size: 0.875rem;
	line-height: 1.35;
}

.front-donate__goal-icon {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--fp-accent);
}

.front-donate__goal-icon svg {
	width: 100%;
	height: 100%;
}

.front-donate__banks {
	margin-bottom: 1rem;
}

.front-donate__banks-title {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fp-text-dim);
	margin: 0 0 0.5rem;
}

.front-donate__banks-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

@media (max-width: 480px) {
	.front-donate__banks-grid {
		grid-template-columns: 1fr;
	}
}

.front-donate__bank {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background: var(--fp-bg-soft);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
}

.front-donate__bank-name {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--fp-text);
	margin-bottom: 0.25rem;
}

.front-donate__bank-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.front-donate__bank-label {
	font-size: 0.75rem;
	color: var(--fp-text-dim);
	width: 100%;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.front-donate__bank-number {
	font-family: ui-monospace, "SF Mono", monospace;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--fp-text);
	letter-spacing: 0.02em;
}

.front-donate__copy {
	padding: 0.35rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--fp-text);
	background: var(--fp-btn);
	border: 1px solid var(--fp-border);
	border-radius: var(--fp-radius-sm);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}

.front-donate__copy:hover {
	background: var(--fp-btn-hover);
	border-color: rgba(255, 255, 255, 0.15);
}

.front-donate__copy--done {
	background: #2f855a;
	border-color: #38a169;
	color: #f8f8ff;
}

.front-donate__sub {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--fp-text-dim);
	font-size: 0.875rem;
	margin: 0;
}

.front-donate__sub-icon {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	color: var(--fp-accent);
}

/* Dropdown icons size in front-page header menu */
.front-header__menu .menu-item-has-children > a > svg {
	width: 14px;
	height: 14px;
	margin-left: 0.35rem;
	vertical-align: -1px;
	stroke: rgba(248, 248, 255, 0.9);
	stroke-width: 1.6;
}

.front-donate__sub-icon svg {
	width: 100%;
	height: 100%;
}

/* ========== Блок «Оставьте вопрос» ========== */
.front-question {
	padding: 2.75rem 0;
	background: var(--fp-bg-soft);
	border-bottom: 1px solid var(--fp-border);
}

.front-question__title {
	font-family: var(--fp-font-title);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fp-text);
	margin: 0 0 0.5rem;
}

.front-question__lead {
	color: var(--fp-text-muted);
	margin: 0 0 1.25rem;
	font-size: 1rem;
}

/* ========== Последние статьи ========== */
.front-latest {
	padding: 3rem 0 4rem;
}

.front-latest__title {
	font-family: var(--fp-font-title);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fp-text);
	margin: 0 0 1.25rem;
}

.front-latest__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.front-latest__item {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--fp-border);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}

.front-latest__link {
	color: var(--fp-link);
	font-weight: 500;
}

.front-latest__link:hover {
	color: var(--fp-link-hover);
}

.front-latest__meta {
	color: var(--fp-text-dim);
	font-size: 0.875rem;
}

.front-latest__more {
	margin: 1.5rem 0 0;
}

.front-latest__empty {
	color: var(--fp-text-muted);
	margin: 0;
}

/* ========== Подвал ========== */
.front-footer {
	background: var(--fp-bg-soft);
	border-top: 1px solid var(--fp-border);
	padding: 2rem 0 1.5rem;
}

.front-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.front-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.front-footer__brand {
	font-family: var(--fp-font-title);
}

.front-footer__logo {
	color: var(--fp-text) !important;
	font-size: 1rem;
}

.front-footer__logo:hover {
	color: var(--fp-link) !important;
}

.front-footer__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.25rem;
}

.front-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.front-footer__menu a,
.front-footer__nav > a {
	color: var(--fp-text-muted);
	font-size: 0.9375rem;
}

.front-footer__menu a:hover,
.front-footer__nav > a:hover {
	color: var(--fp-link) !important;
}

.front-footer__bottom {
	padding-top: 1rem;
	border-top: 1px solid var(--fp-border);
}

.front-footer__copy {
	margin: 0;
	color: var(--fp-text-dim);
	font-size: 0.875rem;
}

/* Мобильное меню: класс .is-open добавляется скриптом в footer-front.php */
