.ap-ds-filter {
	position: relative;
	margin: 0 0 18px;
}

.ap-ds-filter-row .ap-ds-filter {
	flex: 1 1 auto;
	margin-bottom: 0;
}

.ap-ds-filter-row .ap-ds-toolbar {
	flex: 0 0 auto;
	margin-left: auto;
}

.ap-ds-filter .ap-ds-filter__bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
	height: auto;
	min-height: 48px;
}

.ap-ds-filter .ap-filter,
.ap-ds-filter .ap-ds-filter__panel {
	display: none !important;
}

.ap-ds-filter__statuses {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.ap-ds-filter__status {
	border: none;
	background: none;
	padding: 4px 0;
	font-size: 13px;
	cursor: pointer;
	color: #1a1a1a;
	border-bottom: 1px solid transparent;
}

.ap-ds-filter__status:hover {
	color: #e2001a;
}

.ap-ds-filter__status_active {
	color: #e2001a;
	font-weight: 700;
	border-bottom-color: #e2001a;
}

/* ---- раскрывающаяся панель (двухколоночная) ---- */
.ap-ds-filter__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 90;
	width: min(920px, calc(100vw - 32px));
	max-height: 74vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #e0e0e0;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
	padding: 18px 22px 16px;
}

.ap-ds-filter__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: none;
	background: none;
	font-size: 15px;
	cursor: pointer;
	display: none;
}

.ap-ds-filter__cols {
	display: flex;
	align-items: flex-start;
	gap: 30px;
}

.ap-ds-filter__col {
	min-width: 0;
}

.ap-ds-filter__col_noms {
	flex: 0 0 40%;
}

.ap-ds-filter__col_contests {
	flex: 1 1 auto;
	padding-left: 30px;
	border-left: 1px solid #ececec;
}

.ap-ds-filter__col-title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #1a1a1a;
}

.ap-ds-filter__hint {
	margin: 0 0 14px;
	font-size: 12px;
	line-height: 1.5;
	color: #4d4d4d;
}

.ap-ds-filter__hint-strong {
	color: #e2001a;
}

.ap-ds-filter__noms-label {
	margin: 0;
	font-size: 11px;
	color: #808080;
}

.ap-ds-filter__noms-contest {
	margin: 2px 0 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
	color: #e2001a;
}

/* ---- правая колонка: список конкурсов ---- */
.ap-ds-filter__contest-btn {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	border: none;
	background: none;
	padding: 6px 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
	text-align: left;
	color: #1a1a1a;
	cursor: pointer;
	border-bottom: 1px solid #f4f4f4;
}

.ap-ds-filter__contest-arrow {
	flex: 0 0 auto;
	margin-top: 2px;
	font-size: 9px;
	color: #b0b0b0;
	transition: transform .15s, color .15s;
}

.ap-ds-filter__contest-name {
	flex: 1 1 auto;
}

.ap-ds-filter__contest-count {
	flex: 0 0 auto;
	color: #e2001a;
	white-space: nowrap;
}

.ap-ds-filter__contest-btn:hover .ap-ds-filter__contest-name {
	color: #e2001a;
}

.ap-ds-filter__contest-btn_selected .ap-ds-filter__contest-name {
	color: #e2001a;
}

.ap-ds-filter__contest-btn_active .ap-ds-filter__contest-arrow {
	transform: rotate(180deg);
	color: #e2001a;
}

.ap-ds-filter__contest-btn_active .ap-ds-filter__contest-name {
	color: #e2001a;
}

.ap-ds-filter__check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
	flex: 1 1 auto;
	margin: 0;
}

.ap-ds-filter__check input {
	flex: 0 0 auto;
	margin: 2px 0 0;
}

.ap-ds-filter__check input:checked + span {
	color: #e2001a;
}

.ap-ds-filter__check_all {
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
	font-weight: 700;
}

.ap-ds-filter__partner-mark {
	font-style: normal;
	font-weight: 400;
	text-transform: none;
	font-size: 11px;
	color: #e2001a;
}

/* ---- подвал: категории + кнопки ---- */
.ap-ds-filter__footer {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e0e0e0;
}

.ap-ds-filter__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
}

.ap-ds-filter__check_category {
	flex: 0 0 auto;
	font-size: 12px;
}

.ap-ds-filter__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
}

.ap-ds-filter__show {
	background: #e2001a;
	color: #fff;
	border: none;
	padding: 10px 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
}

.ap-ds-filter__show:hover {
	background: #c40017;
}

.ap-ds-filter__reset {
	border: none;
	background: none;
	font-size: 12px;
	color: #808080;
	text-decoration: underline;
	cursor: pointer;
}

.ap-ds-filter__reset:hover {
	color: #e2001a;
}

@media (max-width: 767px) {
	.ap-ds-filter__bar {
		flex-wrap: wrap;
		gap: 10px;
	}

	.ap-ds-filter__panel {
		position: fixed;
		inset: 0;
		width: auto;
		max-height: none;
		z-index: 1050;
		border: none;
		padding: 44px 16px 20px;
	}

	.ap-ds-filter__close {
		display: block;
	}

	body.ap-ds-filter-open {
		overflow: hidden;
	}

	.ap-ds-filter__cols {
		flex-direction: column;
		gap: 16px;
	}

	.ap-ds-filter__col_noms,
	.ap-ds-filter__col_contests {
		flex: 1 1 auto;
	}

	.ap-ds-filter__col_contests {
		order: -1;
		padding-left: 0;
		border-left: none;
		border-bottom: 1px solid #ececec;
		padding-bottom: 12px;
	}

	.ap-ds-filter__actions {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.ap-ds-filter__show {
		width: 100%;
	}
}
