.filter {
	font-family: var(--vk-font);
}

.filter__group {
	margin-bottom: 30px;
}

.filter > :last-child {
	margin-bottom: 0;
}

.filter__title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: #000000;
}

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

.filter__option {
	display: block;
	width: 100%;
	padding: 5px 8px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.2;
	text-align: left;
	color: #000000;
	cursor: pointer;
	transition: background-color var(--vk-transition);
}

.filter__option:hover {
	background: #f0f0f0;
}

.filter__option[aria-pressed="true"] {
	background: #ededed;
	font-weight: 500;
}

/* Диапазон цены: два ползунка на одной дорожке */

.filter__range {
	position: relative;
	height: 30px;
	margin-bottom: 4px;
}

.filter__track {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 2px;
	margin-top: -1px;
	border-radius: 4px;
	background: #dddddd;
}

.filter__track-fill {
	position: absolute;
	top: 0;
	height: 100%;
	border-radius: 4px;
	background: #111111;
}

/* Дорожку рисует .filter__track, поэтому сами input прозрачны и не ловят
   клики — иначе верхний перекрыл бы ползунок нижнего по всей ширине.

   Высота поля равна ползунку и центрируется по дорожке: браузер прижимает
   ползунок к верху поля, и на высоком поле он вставал бы над линией. */
.filter__slider {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 14px;
	margin: -7px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	pointer-events: none;
	appearance: none;
}

.filter__slider::-webkit-slider-runnable-track {
	height: 100%;
	background: transparent;
}

.filter__slider::-moz-range-track {
	height: 100%;
	background: transparent;
}

.filter__slider::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	border: 1px solid #999999;
	border-radius: 50%;
	background: #ffffff;
	cursor: pointer;
	pointer-events: auto;
	appearance: none;
}

.filter__slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 1px solid #999999;
	border-radius: 50%;
	background: #ffffff;
	cursor: pointer;
	pointer-events: auto;
}

.filter__inputs {
	display: flex;
	align-items: center;
	gap: 6px;
}

.filter__input {
	min-width: 0;
	flex: 1 1 auto;
	height: 27px;
	padding: 0 6px;
	border: 1px solid #dddddd;
	border-radius: 0;
	background: #f8f8f8;
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	color: #000000;
}

.filter__dash {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 300;
	color: #000000;
}

.filter__reset {
	margin-top: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 300;
	color: #666666;
	text-decoration: underline;
	cursor: pointer;
}

.filter__reset:hover {
	color: #111111;
}

.filter :focus-visible {
	outline: 2px solid var(--vk-accent);
	outline-offset: 3px;
}

/* Media */

@media (max-width: 1023px) {
	.filter {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 30px;
		align-items: start;
	}

	.filter__reset {
		grid-column: 1 / -1;
		justify-self: start;
		margin-top: 0;
	}
}

@media (max-width: 559px) {
	.filter {
		grid-template-columns: minmax(0, 1fr);
	}
}
