/* ==========================================================
   Страница выборов 2026
   Файл подключается на странице index.php рядом со style.css
   ========================================================== */

.voting-2026-page {
	--voting-blue: #174a8b;
	--voting-blue-dark: #0f3261;
	--voting-blue-soft: #eaf2fb;
	--voting-sky: #6fb6e9;
	--voting-text: #172033;
	--voting-muted: #5d6b82;
	--voting-border: rgba(23, 74, 139, 0.14);
	--voting-shadow: 0 18px 45px rgba(15, 50, 97, 0.12);

	color: var(--voting-text);
	background:
		linear-gradient(180deg, #f5f8fc 0%, #ffffff 34%, #ffffff 100%);
}

.voting-2026-page *,
.voting-2026-page *::before,
.voting-2026-page *::after {
	box-sizing: border-box;
}

.voting-2026-container {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}


/* ==========================================================
   Первый экран
   ========================================================== */

.voting-2026-hero {
	position: relative;
	overflow: hidden;
	padding: 44px 0 38px;
	background:
		radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.28) 0, rgba(255, 255, 255, 0) 34%),
		linear-gradient(135deg, var(--voting-blue-dark), var(--voting-blue));
	color: #fff;
	border-radius: 0 0 28px 28px;
}

.voting-2026-hero::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -120px;
	width: 310px;
	height: 310px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.09);
	pointer-events: none;
}

.voting-2026-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 34px;
	align-items: center;
}

.voting-2026-label {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-bottom: 16px;
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, 0.36);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 640;
	letter-spacing: 0.02em;
}

/* Селектор усилен специально против стилей шаблона Битрикса:
   .container-white h1, .white-box h1 и т.п. */
.voting-2026-page .voting-2026-hero h1.voting-2026-title,
.container-white .voting-2026-page .voting-2026-hero h1.voting-2026-title,
.white-box .voting-2026-page .voting-2026-hero h1.voting-2026-title {
	margin: 0;
	color: #fff !important;
	font-size: clamp(28px, 4.2vw, 46px);
	line-height: 1.16;
	font-weight: 640;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.voting-2026-lead {
	max-width: 720px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
	line-height: 1.55;
	font-weight: 400;
}

.voting-2026-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.voting-2026-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 640;
	line-height: 1.2;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.voting-2026-button:hover {
	transform: translateY(-1px);
	text-decoration: none !important;
}

.voting-2026-button-primary {
	background: #fff;
	color: var(--voting-blue-dark) !important;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.voting-2026-button-secondary {
	background: rgba(255, 255, 255, 0.13);
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.38);
}

.voting-2026-date-card {
	justify-self: end;
	width: 205px;
	padding: 24px 18px;
	border-radius: 26px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.24);
	box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
	text-align: center;
	backdrop-filter: blur(8px);
}

.voting-2026-date-day {
	color: #fff;
	font-size: 68px;
	line-height: 0.95;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.voting-2026-date-month {
	margin-top: 8px;
	color: #fff;
	font-size: 21px;
	line-height: 1.1;
	font-weight: 640;
}

.voting-2026-date-year {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 18px;
	line-height: 1.2;
	font-weight: 400;
}


/* ==========================================================
   Общие блоки и заголовки
   ========================================================== */

.voting-2026-elections,
.voting-2026-info-grid,
.voting-2026-panel {
	margin-top: 34px;
}

.voting-2026-section-title {
	position: relative;
	margin: 0 0 18px;
	padding-left: 16px;
	color: var(--voting-text);
	font-size: clamp(22px, 3.2vw, 30px);
	line-height: 1.25;
	font-weight: 640;
	letter-spacing: -0.01em;
}

.voting-2026-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.26em;
	width: 4px;
	height: 0.86em;
	border-radius: 999px;
	background: var(--voting-sky);
}

.voting-2026-panel {
	padding: 26px;
	border: 1px solid var(--voting-border);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 50, 97, 0.07);
}

.voting-2026-note {
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--voting-blue-soft);
	border: 1px solid rgba(23, 74, 139, 0.12);
}

.voting-2026-note p {
	margin: 0;
	color: var(--voting-text);
	font-size: 16px;
	line-height: 1.6;
}

.voting-2026-note p + p {
	margin-top: 10px;
}


/* ==========================================================
   Какие выборы пройдут
   ========================================================== */

.voting-2026-election-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.voting-2026-election-card {
	display: flex;
	gap: 14px;
	min-height: 128px;
	padding: 18px;
	border: 1px solid var(--voting-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(15, 50, 97, 0.07);
}

.voting-2026-election-number {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: var(--voting-blue-soft);
	color: var(--voting-blue-dark);
	font-size: 15px;
	font-weight: 700;
}

.voting-2026-election-text {
	min-width: 0;
	font-size: 17px;
	line-height: 1.42;
	font-weight: 500;
}


/* ==========================================================
   Верхние карточки навигации
   ========================================================== */

.voting-2026-info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.voting-2026-info-card {
	display: flex;
	flex-direction: column;
	min-height: 170px;
	padding: 22px;
	border: 1px solid var(--voting-border);
	border-radius: 24px;
	background:
		linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	box-shadow: 0 14px 34px rgba(15, 50, 97, 0.08);
	color: var(--voting-text) !important;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.voting-2026-info-card:hover {
	transform: translateY(-2px);
	border-color: rgba(23, 74, 139, 0.32);
	box-shadow: var(--voting-shadow);
	text-decoration: none !important;
}

.voting-2026-info-card-title {
	display: block;
	font-size: 21px;
	line-height: 1.25;
	font-weight: 640;
}

.voting-2026-info-card-text {
	display: block;
	margin-top: 10px;
	color: var(--voting-muted);
	font-size: 15px;
	line-height: 1.5;
	font-weight: 400;
}

.voting-2026-info-card-link {
	display: block;
	margin-top: auto;
	padding-top: 18px;
	color: var(--voting-blue);
	font-size: 15px;
	font-weight: 640;
}

.voting-2026-info-card-link::after {
	content: " →";
}


/* ==========================================================
   Полезные ссылки
   ========================================================== */

.voting-2026-voter-links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.voting-2026-voter-links a {
	display: flex;
	flex-direction: column;
	min-height: 128px;
	padding: 18px;
	border: 1px solid var(--voting-border);
	border-radius: 18px;
	background: #fff;
	color: var(--voting-text) !important;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(15, 50, 97, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.voting-2026-voter-links a:hover {
	transform: translateY(-1px);
	border-color: rgba(23, 74, 139, 0.28);
	box-shadow: 0 14px 30px rgba(15, 50, 97, 0.1);
	text-decoration: none !important;
}

.voting-2026-voter-link-title {
	display: block;
	color: var(--voting-blue);
	font-size: 17px;
	line-height: 1.25;
	font-weight: 640;
}

.voting-2026-voter-link-text {
	display: block;
	margin-top: 8px;
	color: var(--voting-muted);
	font-size: 14px;
	line-height: 1.45;
	font-weight: 400;
}


/* ==========================================================
   Компоненты Битрикса: документы и новости
   ========================================================== */

.voting-2026-component-wrap {
	min-width: 0;
}

.voting-2026-component-wrap img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

.voting-2026-component-wrap a {
	overflow-wrap: anywhere;
	word-break: normal;
}

.voting-2026-documents .voting-2026-component-wrap a {
	display: inline-flex;
	align-items: flex-start;
	max-width: 100%;
	margin: 4px 0;
	padding: 8px 0;
	color: var(--voting-blue);
	font-weight: 640;
	line-height: 1.35;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.voting-2026-news .voting-2026-component-wrap {
	overflow: hidden;
}

.voting-2026-component-wrap .news-date-time,
.voting-2026-component-wrap .date {
	color: var(--voting-muted);
	font-size: 14px;
}

.voting-2026-component-wrap table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
}

.voting-2026-component-wrap iframe,
.voting-2026-component-wrap video {
	max-width: 100%;
}


/* ==========================================================
   Адаптация
   ========================================================== */

@media (max-width: 900px) {
	.voting-2026-hero-inner {
		grid-template-columns: 1fr;
	}

	.voting-2026-date-card {
		justify-self: start;
		display: flex;
		align-items: baseline;
		gap: 10px;
		width: auto;
		max-width: 100%;
		padding: 16px 18px;
		border-radius: 20px;
		text-align: left;
	}

	.voting-2026-date-day {
		font-size: 44px;
	}

	.voting-2026-date-month {
		margin-top: 0;
		font-size: 18px;
	}

	.voting-2026-date-year {
		margin-top: 0;
		font-size: 17px;
	}

	.voting-2026-election-grid,
	.voting-2026-info-grid,
	.voting-2026-voter-links {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.voting-2026-container {
		width: min(100% - 22px, 1120px);
	}

	.voting-2026-hero {
		padding: 30px 0 28px;
		border-radius: 0 0 22px 22px;
	}

	.voting-2026-page .voting-2026-hero h1.voting-2026-title,
	.container-white .voting-2026-page .voting-2026-hero h1.voting-2026-title,
	.white-box .voting-2026-page .voting-2026-hero h1.voting-2026-title {
		font-size: 28px;
		line-height: 1.18;
		font-weight: 640;
	}

	.voting-2026-lead {
		font-size: 16px;
		line-height: 1.5;
	}

	.voting-2026-hero-actions {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.voting-2026-button {
		width: 100%;
		min-height: 46px;
	}

	.voting-2026-date-card {
		width: 100%;
		justify-content: center;
	}

	.voting-2026-elections,
	.voting-2026-info-grid,
	.voting-2026-panel {
		margin-top: 22px;
	}

	.voting-2026-section-title {
		margin-bottom: 14px;
		font-size: 23px;
		line-height: 1.25;
	}

	.voting-2026-section-title::before {
		top: 0.27em;
		width: 4px;
		height: 0.82em;
	}

	.voting-2026-election-card {
		min-height: auto;
		padding: 16px;
		border-radius: 18px;
	}

	.voting-2026-election-number {
		width: 38px;
		height: 38px;
		border-radius: 12px;
	}

	.voting-2026-election-text {
		font-size: 16px;
		line-height: 1.42;
	}

	.voting-2026-info-card {
		min-height: auto;
		padding: 18px;
		border-radius: 20px;
	}

	.voting-2026-info-card-title {
		font-size: 21px;
		line-height: 1.25;
	}

	.voting-2026-panel {
		padding: 18px;
		border-radius: 22px;
	}

	.voting-2026-note {
		padding: 15px;
		border-radius: 16px;
	}

	.voting-2026-note p {
		font-size: 15px;
	}

	.voting-2026-voter-links a {
		min-height: auto;
		padding: 16px;
		border-radius: 16px;
	}
}

@media (max-width: 420px) {
	.voting-2026-page .voting-2026-hero h1.voting-2026-title,
	.container-white .voting-2026-page .voting-2026-hero h1.voting-2026-title,
	.white-box .voting-2026-page .voting-2026-hero h1.voting-2026-title {
		font-size: 25px;
	}

	.voting-2026-date-card {
		gap: 8px;
		padding: 14px;
	}

	.voting-2026-date-day {
		font-size: 38px;
	}

	.voting-2026-date-month,
	.voting-2026-date-year {
		font-size: 16px;
	}
}
/* ==========================================================================
   Раздел "Сведения о кандидатах"
   ========================================================================== */

.voting-2026-candidates .voting-2026-note {
    background: #f0f4ff;
    border-left: 4px solid var(--accent-color, #2a5c8a);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

/* Общие стили для карточек-ссылок кандидатов (наследуются от .voting-2026-voter-links, но донастраиваются) */
.voting-2026-candidates .voting-2026-voter-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.voting-2026-candidates .voting-2026-candidate-doc {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.voting-2026-candidates .voting-2026-candidate-doc:hover {
    border-color: var(--accent-color, #2a5c8a);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Ярлычок "Скачать DOCX" */
.voting-2026-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color, #2a5c8a);
    background: #f0f4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-top: 0.5rem;
    width: fit-content;
    transition: background 0.2s;
}

.voting-2026-candidate-doc:hover .voting-2026-doc-badge {
    background: var(--accent-color, #2a5c8a);
    color: #fff;
}

.voting-2026-doc-badge svg {
    width: 15px;
    height: 15px;
}

/* Маркер "Новое" для свежих данных (если захотите выделить) */
.doc-new::before {
    content: "Обновлено";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color, #2a5c8a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 1rem;
    border-radius: 0 12px 0 8px;
}

/* Адаптивность */
@media (max-width: 600px) {
    .voting-2026-candidates .voting-2026-voter-links {
        grid-template-columns: 1fr;
    }
    .voting-2026-candidates .voting-2026-candidate-doc {
        padding: 1.2rem;
    }
}