.to-filter {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #c20f1b;
    cursor: pointer;
    -webkit-transition: all ease 0.3s;
    transition: all ease 0.3s;
    z-index: 200;
}

.to-filter svg {
  fill: #fff;
}

.radio-group__label:nth-child(4):not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.radio-group__label:nth-child(6) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

#price-group span {
    margin-right: 8px;
}

.sorting {
    padding: 0 0 15px 0;
    /* background: #fff; */
    margin-right: 2%;
    margin-bottom: 0;
    font-size: 13px;
    /* font-weight: 700; */
}

.sorting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.sorting__reset.sorting__item--reboot {
    margin-left: auto;
    padding-left: 18px;
    text-decoration: none;
    position: relative;
}

.sorting__reset.sorting__item--reboot::before, .sorting__reset.sorting__item--reboot::after {content: '';display: block;position: absolute;width: 12px;height: 2px;background: #c20f1b;left: 0;}

.sorting__reset.sorting__item--reboot::before {
    transform: rotate(45deg);
    top: 7px;
}

.sorting__reset.sorting__item--reboot::after {
    top: 7px;
    transform: rotate(135deg);
}

.sorting__item {
font-size: 13px;
line-height: 22px;
display: inline-block;
padding: 0;
/* border: 1px solid #ccc; */
/* border-radius: 20px; */
margin-left: 10px;
text-decoration: none;
border-bottom: 1px solid #ccc;
}

.sorting__item.sorting__item--active {
    border-color: #c20f1b;
    border-width: 1px;
}

.radio-group__label,
.btn--category-filter,
.reviews-filter-select, .selectbox {
  background: #fff;
}

.courses-filter__fields-wrapper {
      margin: 0 0 15px;
}
/*
.courses-filter {
    padding: 22px 2% 0 2%;
    margin-bottom: 20px;
    background: #fff;
}
*/

.courses-filter {
    width: 107%;
    margin-left: -4%;
    padding: 25px 2% 15px 2%;
    margin-bottom: 20px;
    background: #fff;
}

.title--h1.title--bg {
    padding: 0;
    border: none;
}

.content--gray-list {
    background-color: #efefef;
}

.title.title--h1.title--bg + .smart-desc {
    padding: 0;
    background: none;
}

.title .breadcrumbs {
    margin-top: 0;
}

.title .breadcrumbs__list-item {
    color: #000;
}

.title--h1 {
    color: #000;
    margin-bottom: 20px;
}

.smart-desc h2 {
    margin: 20px 0;
    font-size: 22px;
}

.smart-desc ul, p {
    margin: 10px 0 14px;
}

.smart-desc h3 {
    font-size: 18px;
    margin-bottom: 14px;
    line-height: 22px;
}

.content--gray-list {
    padding-left: 4%;
}

.courses-filter__form {
  flex-direction: column;
}

#smart-filter > .city-list--filter {
    flex-direction: row;
}

#smart-filter > .city-list--filter li {
    width: auto;
    margin-right: 10px;
}


.radio-group__label {
  padding: 8px 16px;
  font-size: 13px;
  color: #303447;
  border: 1px solid #dddddd;
  border-radius: 16px;
  background-color: #f9f9f9;
  cursor: pointer;
  height: 33px;
  margin-bottom: 7px;
  transition: all ease 0.3s;
}

.radio-group {
  display: flex;
}

.radio-group__item {
  display: none;
}

.radio-group__item:checked + label {
  background: #c20f1b;
  color: #fff;
  border-color: #c20f1b;
}

.radio-group__label:nth-child(2) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.radio-group__label:nth-child(4) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

.courses-filter__fields-wrapper--add {
  display: none;
  margin-top: -25px;
  justify-content: flex-start;
}

.selectBox-dropdown-menu.selectBox-options li a {
  padding: 0 16px;
  font-size: 12px;
  line-height: 36px;
  background: #f8f8f8;
}

.courses-filter__price--indiv {
  display: none;
}

.courses-filter__fx {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}

.city-list .checkbox-mult {
  width: 50%;
}

.checkbox-mult__input {
  display: none;
}

.checkbox-mult__label {
  position: relative;
  padding: 2px 24px 2px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all ease 0.3s;
}

.checkbox-mult__label::before,
.checkbox-mult__label::after {
  content: '';
  display: block;
  position: absolute;
  width: 10px;
  height: 2px;
  background: #fff;
  opacity: 0;
}

.checkbox-mult__label::before {
  right: 9px;
  transform: rotate(-45deg);
  top: 10px;

}

.checkbox-mult__label::after {
  right: 9px;
  transform: rotate(-135deg);
  top: 10px;

}

.checkbox-mult__input:checked + .checkbox-mult__label {
  background: #a50d17;
  color: #fff;
}

.checkbox-mult__input:checked + .checkbox-mult__label::before,
.checkbox-mult__input:checked + .checkbox-mult__label::after {
  opacity: 1;
}

.checkbox-mult__label:hover {
  color: #a50d17;
}

.city-list--filter {
  margin-left: -10px;
}

.modal-overlay__row {
  width: 100%;
}

.modal-overlay__bottom {
  position: absolute;
  bottom: 10px;
  padding-top: 40px;
  text-align: center;
  width: 100%;
  left: 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.modal-overlay--filter-district .modal-overlay__inner {
  padding-bottom: 120px;
      max-width: 890px;
}

@media (max-width: 880px) {
    .city-list{
	margin-bottom: 50px;
    }
}

@media (min-width: 320px) and (max-width: 840px) {

.courses-filter {
    width: 104%;
}

.city-list.city-list--filter {
    height: auto;
}

.city-list .checkbox-mult {
    width: 100%;
}

  .checkbox-mult__label {
      display: inline-block;
}

}

@media (max-width: 550px) {
  .modal-overlay.modal-overlay--filter-district .modal-overlay__inner {
  top: 0;
    padding-bottom: 60px;
}

.modal-overlay__bottom {
    position: fixed;
    bottom: 0;
    background: #fff;
    padding-bottom: 30px;
    padding-top: 30px;
}

.city-list.city-list--filter {
  margin-bottom: 60px;
}

}

@media only screen and (max-width: 767px) {
	.to-filter {
		top: auto;
		bottom: 140px;
		right: 20px;
	}
}

@media only screen and (max-width: 550px) {
	.to-filter {
		bottom: 160px;
	}
}

/*
	Проверка заказчика 25.09, п.16. Фильтр каталога на телефоне. Два пустых
	списка выбранных районов и станций держали по 60 пикселей отступа,
	и между «Показать» и сортировкой было 145 пикселей пустоты. Выберет
	пользователь районы - список заполнится, и отступ вернётся.

	Сортировка - сеткой 2х2 (решение 28.09) вместо трёх рядов вразнобой.
	Подпись и «Сбросить фильтры» - на всю ширину. Правила стоят здесь,
	а не в new-changes.css: этот файл подключается позже и своим
	`.sorting { display: flex }` перебивал сетку.
*/
@media (max-width: 550px) {
	.city-list.city-list--filter:empty {
		margin-bottom: 0;
	}

	.sorting {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		margin-right: 0;
	}

	.sorting__label {
		grid-column: 1 / -1;
		margin-bottom: 2px;
	}

	.sorting .sorting__item {
		margin: 0;
		border: 1px solid #d9d9d9;
		border-radius: 16px;
		padding: 8px 10px;
		text-align: center;
		line-height: 16px;
	}

	.sorting .sorting__item.sorting__item--active {
		border-color: #2c2c2c;
	}

	.sorting .sorting__reset {
		grid-column: 1 / -1;
		justify-self: start;
		margin: 4px 0 0 0;
		border: 0;
		padding: 0 0 0 18px;
	}
}
