/* ============================================================
   СТРАНИЦА "ВСЕ ВОПРОСЫ" (/voprosy/)
   Заголовок, панель тегов, категории слева, список вопросов,
   пагинация, дисклеймер
   ============================================================ */

/* ---------- Заголовок раздела ---------- */
.voprosy-hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	position: relative;
	gap: 4px;
	margin-bottom: 4px;
}

.voprosy-hero h1 {
	font-size: 34px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.voprosy-lead {
	font-size: 15px;
	color: #7a7a7a;
	line-height: 1.6;
	max-width: 760px;
	margin-top: 6px;
	margin-bottom: 8px;
}

.voprosy-ask-btn {
	margin-top: 4px;
}

/* ---------- Панель тегов (верх) ---------- */
.tag-loading {
	font-size: 13px;
	color: #9a9a9a;
}

/* ---------- Общая раскладка: сайдбар + контент ---------- */
.voprosy-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	align-items: start;
	gap: 24px;
	width: 100%;
}

/* ---------- Сайдбар с категориями ---------- */
.voprosy-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 110px;
}

.sidebar-card {
	padding: 20px;
}

.sidebar-card .section-header-title {
	padding-left: 0;
	margin-bottom: 12px;
}

.category-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.category-link {
	font-size: 14px;
	font-weight: 500;
	color: #444;
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 10px;
	transition: background 0.2s, color 0.2s;
	line-height: 1.35;
}

.category-link:hover {
	background: #f0f9ff;
	color: #0088cc;
}

.category-link.active {
	background: #00c4ff;
	color: #fff;
	font-weight: 700;
}

.sidebar-cta {
	padding: 20px;
}

.sidebar-cta .lawyer-cta-btn {
	margin-top: 10px;
}

/* ---------- Основная колонка ---------- */
.voprosy-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.list-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 0 4px;
}

.list-total {
	font-size: 14px;
	color: #7a7a7a;
}

.list-total strong {
	color: #1a1a1a;
}

.sort-buttons {
	display: flex;
	gap: 8px;
}

.sort-btn {
	font-size: 13px;
	font-weight: 600;
	color: #7a7a7a;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.sort-btn:hover {
	border-color: rgba(0, 196, 255, 0.4);
	color: #0088cc;
}

.sort-btn.active {
	background: #00c4ff;
	border-color: #00c4ff;
	color: #fff;
}

.questions-list-card {
	padding: 8px 24px;
}

/* ---------- Пагинация ---------- */
.pagination-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
}

.pagination-info {
	font-size: 13px;
	color: #9a9a9a;
}

.pagination {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.page-btn {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
	border-color: rgba(0, 196, 255, 0.4);
	color: #0088cc;
}

.page-btn.active {
	background: #00c4ff;
	border-color: #00c4ff;
	color: #fff;
	cursor: default;
}

.page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.page-btn-nav {
	font-weight: 700;
}

.page-dots {
	color: #b0b0b0;
	font-weight: 700;
	padding: 0 4px;
}

/* ---------- Дисклеймер ---------- */
.legal-disclaimer {
	font-size: 12.5px;
	color: #9a9a9a;
	line-height: 1.6;
	text-align: center;
	max-width: 900px;
	margin: 24px auto 0;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================================
   МОБИЛЬНЫЙ ФИЛЬТР
   ============================================================ */
.mobile-filter-fab {
	display: none;
	position: relative;
	margin-top: 10px;
	min-width: 96px;
	height: 38px;
	padding: 0 14px;
	background: #fff;
	color: #00c4ff;
	border: 1px solid #00c4ff;
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	transition: color 0.2s;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.mobile-filter-fab:hover {
	background: #f0f9ff;
	border-color: #0099dd;
	color: #0099dd;
}

.mobile-filter-fab svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
}

.mobile-filter-badge {
	position: absolute;
	top: -7px;
	right: -7px;
	background: #16b24b;
	color: #fff;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(22, 178, 75, 0.4);
}

/* МОБИЛЬНАЯ ПАНЕЛЬ ФИЛЬТРОВ */
.mobile-filters-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1099;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}

.mobile-filters-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-filters-panel {
	position: fixed;
	bottom: -100%;
	left: 0;
	width: 100%;
	max-height: 85vh;
	background: #fff;
	border-radius: 20px 20px 0 0;
	z-index: 1100;
	transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
}

.mobile-filters-panel.open {
	bottom: 0;
}

.mobile-filters-header {
	padding: 16px 20px;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 10;
	border-radius: 20px 20px 0 0;
}

.mobile-filters-handle {
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 4px;
	background: #ddd;
	border-radius: 2px;
}

.mobile-filters-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
}

.mobile-filters-close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.mobile-filters-close:hover {
	background: #e0e0e0;
}

.mobile-filters-close svg {
	width: 18px;
	height: 18px;
	stroke: #666;
}

.mobile-filters-content {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.mobile-filter-section {
	margin-bottom: 24px;
}

.mobile-filter-section-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mobile-filter-section-title svg {
	width: 18px;
	height: 18px;
	stroke: #00c4ff;
}

.mobile-filter-categories {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mobile-filter-category {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: #fafaf9;
	border: 1px solid #f0f0f0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #444;
	text-decoration: none;
	transition: all 0.2s;
}

.mobile-filter-category:active {
	background: #f0f9ff;
	border-color: #00c4ff;
	color: #00c4ff;
	transform: scale(0.98);
}

.mobile-filter-category.active {
	background: #00c4ff;
	border-color: #00c4ff;
	color: #fff;
	font-weight: 600;
}

.mobile-filter-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mobile-filter-tag {
	padding: 8px 14px;
	background: #fafaf9;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #444;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
}

.mobile-filter-tag:active {
	background: #f0f9ff;
	border-color: #00c4ff;
	color: #00c4ff;
	transform: scale(0.95);
}

.mobile-filter-tag.active {
	background: #00c4ff;
	border-color: #00c4ff;
	color: #fff;
	font-weight: 600;
}

.mobile-filters-footer {
	padding: 16px 20px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	gap: 10px;
	background: #fafaf9;
	position: sticky;
	bottom: 0;
}

.mobile-filter-reset {
	flex: 0 0 auto;
	padding: 12px 20px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.2s;
}

.mobile-filter-reset:active {
	background: #f5f5f5;
	transform: scale(0.98);
}

.mobile-filter-apply {
	flex: 1;
	padding: 12px 20px;
	background: linear-gradient(135deg, #00c4ff, #0099dd);
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 14px rgba(0, 196, 255, 0.3);
}

.mobile-filter-apply:active {
	background: linear-gradient(135deg, #00b3ee, #0088cc);
	transform: scale(0.98);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
	.voprosy-layout {
		grid-template-columns: 220px 1fr;
		gap: 18px;
	}
}

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

	.voprosy-sidebar {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.sidebar-card,
	.sidebar-cta {
		flex: 1 1 260px;
	}

	.category-list {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.category-link {
		flex: 0 0 auto;
	}
}

@media (max-width: 768px) {
	.voprosy-hero h1 {
		font-size: 24px;
	}

	.voprosy-lead {
		font-size: 13.5px;
	}

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

	/* Показываем мобильную кнопку фильтров */
	.mobile-filter-fab {
		display: inline-flex;
		position: relative;
		margin-top: 10px;
		min-width: 96px;
		width: auto;
		padding: 0 14px;
		border-radius: 10px;
	}

	.mobile-filter-category.active,
	.mobile-filter-tag.active {
		background: #00c4ff;
		border-color: #00c4ff;
		color: #fff;
	}

	/* Теги доступны в фильтрах: не дублируем их перед списком. */
	.tags-bar {
		display: none;
	}

	.active-tag-bar {
		display: none !important;
	}

	.questions-list-card {
		padding: 6px 14px;
	}

	.list-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.sort-buttons {
		display: none;
	}

	.sort-btn {
		flex: 1;
		text-align: center;
	}

	.legal-disclaimer {
		font-size: 12px;
		margin-top: 16px;
	}
}
