.header__actions-container {
    flex-wrap: wrap;
}

@media (max-width: 1240px) {
    .header__action {
        margin: 0;
        position: static;
    }

    .header__action_city,
	.header__action_district,
    .header__action_plus,
    .header__action_metro {
        width: 33.33%;
    }

    .header__actions-container form {
        order: 5;
        margin: 10px auto;
    }

    .card__btns-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .card__phone-btn {
        width: 100%;
        order: 1;
    }

    .main-nav__logo {
        align-self: flex-end;
        position: relative;
        z-index: 1;
    }
    
    .logo {
        min-width: 253px;
    }
}

@media (max-width: 1024px) {
    .card {
        width: 33.3%;
    }
    
    .footer__logo {
        min-width: 144px;
        margin-right: 20px;
    }

    .main-nav__link:first-child::before {
        display: inline-block;
    }
    
    .reviews__form-additional {
        flex-wrap: wrap;
    }

    .profile-form__field_photo {
        width: 40%;
    }
    
    .profile-form__field_photo-info {
        width: 60%;
    }
    
    #reviews-slider .slider-arrow_right {
        right: 0;
    }
    
    #reviews-slider .slider-arrow_left {
        left: 0;
    }
	
	
}

@media (max-width: 920px) {
    .categories-page__content .card {
        width: 50%;
    }
}

@media (max-width: 768px) {
	.card__photo img {
		max-width: 100%;
		width: 100%;
		max-height: 500px;
	}
    .main-nav__links {
        padding-bottom: 10px;
        padding-top: 0;
    }

    .main-nav__link {
        display: block;
    }

    .main-nav__links_right {
        text-align: right;
    }

    .main-nav__links_right .main-nav__link::before {
        display: none;
    }

    .main-nav__links_right .main-nav__link::after {
        display: inline-block;
        content: "•";
        padding: 0 3px 0 5px;
        color: #e6635f;
    }

    .categories__container {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 100px;
    }

    .categories__link {
        max-width: 150px;
        margin-bottom: 10px;
    }

    .categories__link_icon_bdsm {
        margin-left: 10px;
        margin-right: 10px;
    }

    .categories__link_icon_services {
        margin-left: 10px;
        margin-right: 10px;
    }

    .card {
        width: 50%;
    }

    .footer {
        height: auto;
        background-color: #db5e6e;
        background-position: 0 bottom;
    }

    .footer__wrap {
        flex-wrap: wrap;
    }

    .footer__copyright {
        width: 100%;
        min-width: 100%;
        margin: 27px 0;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    
    .footer__copyright a {
        display: inline;
    }

    .card__wrap {
        margin-left: 10px;
        margin-right: 10px;
    }

    .profiles__list {
        margin-left: 0;
        margin-right: 0;
    }
    
    .filters__label_range {
        display: block;
    }
    
    .filters__key {
        padding-left: 0;
        padding-bottom: 5px;
        display: inline-block;
    }
    
    .profile__photo {
        min-width: 120px;
    }
    
    .profile__params-grid {
        flex-wrap: wrap;
    }
    
    .profile__params,
    .profile__prices {
        margin-bottom: 20px;
    }
    
    .check-icons {
        display: flex;
        align-items: flex-start;
    }
    
    .check-icon_new {
        margin-left: 20px;
        margin-right: 10px;
    }
    
    .review__rating_action {
        margin: 0 0 10px 10px;
    }
    
    .reviews__form-additional {
        align-items: center;
    }

    .categories__link-title {
        font-size: 18px;
    }
    
    .names-list__item {
        width: 33.33%;
    }

    .profile-form__field_photo {
        width: 50%;
    }

    .profile-form__field_photo-info {
        width: 50%;
    }

    .categories-page__content .card {
        width: 50%;
    }
    
    .categories__category.categories__category_services {
        margin-right: 0;
    }
    
    .services__wrap {
        justify-content: flex-start !important;
    }
}

@media (max-width: 665px) {
	.profile__info-phone {
		background-size: 18px !important;
	}	
	.profile__info-okrug {
		margin-left: 20px !important;
		background-size: 18px !important;
	}
	.profile__info-metro {
		background-size: 18px !important;
	}
	.profile__info-area {
		background-size: 18px !important;
	}
}

@media (max-width: 600px) {
    .logo.main-nav__logo {
        display: none;
    }
    
    .profile-form__field {
        width: 50%;
    }
    
    .main-nav__container {
        justify-content: space-between;
    }
    
    .header__actions-container {
        justify-content: center;
    }

    .header__action_city, .header__action_plus, .header__action_metro, .header__action_district {
        width: auto;
        margin: 10px 20px;
        max-width: 100%;
    }

    .categories__container {
        margin-top: 0;
    }
    
    .categories {
        padding-bottom: 20px;
        padding-top: 20px;
    }
    
    .filters__label_range {
        display: flex;
    }
    
    .filters__key {
        padding-left: 0;
        padding-bottom: 5px;
        display: inline-block;
    }

    .filters__row {
        flex-wrap: wrap;
    }
    
    .filters__col {
        width: 100%;
        max-width: 100%;
    }
    
    .filters__form-field {
        margin-bottom: 12px;
    }
    
    .account__tabs {
        flex-wrap: wrap;
    }
    
    .account__tab {
        margin-bottom: 10px;
    }
    
    .profile-form__btn-container {
        text-align: center;
    }
    
    .profile__grid {
        display: block;
    }
    
    .profile__contacts {
        margin-right: 20px;
    }
    
    .profile__prices {
        margin-left: 0;
        width: 100%;
    }
    
    .articles {
        flex-direction: column;
    }
    
    .articles__sidebar {
        min-width: 180px;
        order: 0;
        margin: 0 20px 20px;
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
    }
    
    .articles__list {
        order: 1;
    }

    .profile-form__field_photo {
        width: 100%;
        margin-bottom: 10px;
    }

    .profile-form__field_photo-info {
        width: 100%;
    }

    .categories-page {
        flex-wrap: wrap;
    }
    
    .categories-page__content {
        order: 2;
        padding-left: 20px;
        padding-right: 20px;
    }

    .categories-page__sidebar {
        order: 1;
        width: 240px;
        margin: 0 auto;
    }
}

@media (max-width: 500px) {
    .card {
        width: 100%;
    }
    
    .footer__navs {
        flex-wrap: wrap;
    }

    .footer__nav {
        margin-bottom: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
        background: none;
        box-shadow: none;
    }
    
    .pagination li a, .pagination li span {
      background: rgb(255, 255, 255); /* Old browsers */
      background: -moz-linear-gradient(
        top,
        rgba(255, 255, 255, 1) 0%,
        rgba(243, 243, 243, 1) 100%
      ); /* FF3.6-15 */
      background: -webkit-linear-gradient(
        top,
        rgba(255, 255, 255, 1) 0%,
        rgba(243, 243, 243, 1) 100%
      ); /* Chrome10-25,Safari5.1-6 */
      background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(243, 243, 243, 1) 100%
      ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
      filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f3f3f3',GradientType=0 ); /* IE6-9 */
      -webkit-border-radius: 4px;
      -moz-border-radius: 4px;
      border-radius: 4px;
    }

    .pagination li {
        border: 1px solid #e0e0e0 !important;
        -webkit-border-radius: 4px;
        -moz-border-radius: 4px;
        border-radius: 4px;
        margin: 5px;
    }
    
    .photo-gallery__photo {
        width: 50%;
    }
    
    .metro-modal__label {
        width: 50%;
    }
    
    .profile__card {
        display: block;
    }
    
    .profile__photo {
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
    .profile__card-col {
        margin-left: 0 !important;
    }
    
    .profile__contacts {
        min-width: 200px;
        margin-bottom: 20px;
    }

    .main-nav {
        padding-top: 0;
    }
    
    .main-nav__actions {
        display: flex;
        padding: 10px 20px 5px;
    }
    
    .main-nav__actions-title {
        font-size: 18px;
        line-height: 1;
    }

    .main-nav__actions .burger {
        margin-left: auto;
    }
    
    .burger {
        text-align: right;
        border: 0;
        margin: 0;
        padding: 0;
        display: none;
    }
    
    .burger.is-active {
        display: block;
    }
    
    .burger__line {
        display: block;
        width: 30px;
        border: 2px solid #000;
        margin-bottom: 4px;
    }
    
    .burger.burger_white-lines .burger__line {
        border-color: #fff;
    }
    
    .burger__close {
        border: none;
        padding: 0;
        margin: 0;
        font-size: 40px;
        line-height: 20px;
        margin-top: 3px;
        display: none;
        margin-left: auto;
    }

    .burger__close.is-active {
        display: block;
    }
    
    .main-nav__container {
        display: none;
    }
    
    .main-nav__container.is-active {
        display: flex;
    }

    .filters__container {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    .filters__header {
        display: flex;
        padding: 10px 20px 5px;
        background: #f17183;
        color: #fff;
    }

    .filters__header .burger {
        margin-left: auto;
    }
    
    .filters__header-title {
        font-size: 18px;
        line-height: 1;
    }
    
    .filters__container {
        display: none;
    }
    .filters__container.is-active {
        display: block;
    }
    
    .categories {
        padding-top: 0;
        padding-bottom: 0;
    }

    .categories__container {
        padding: 20px 0;
        display: none;
    }
    .categories__container.is-active {
        display: flex;
    }

    .categories__header {
        display: flex;
        padding: 10px 20px 5px;
        background: #4e4e4e;
        color: #fff;
    }
    
    .categories__header .burger {
        margin-left: auto;
    }
    
    .categories__header-title {
        font-size: 18px;
        color: #fff;
        line-height: 1;
    }
    
    .categories__services {
        display: block;
        position: static;
        min-width: 150px;
    }
    
    .categories__link {
        max-width: 100%;
    }
    
    .categories__category {
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 10px;
    }
    
    .profile__card-col {
        margin-bottom: 20px;
    }
    
    .categories-page {
        flex-direction: column;
    }
    
    .account__tabs {
        padding-top: 20px;
    }
    
    .auth-form {
        flex-wrap: wrap;
        justify-content: center;
    }

    .alphab-list__item {
        width: 33.33%;
    }
	
	.profiles-slider-container#metro-slider,
	.profiles-slider-container#districts-slider {
		overflow: hidden;
	}
	
	#metro-slider .slider-arrow_right,
	#districts-slider .slider-arrow_right {
		right: -5px;
	}
}


@media (max-width: 425px) {
    .header__nav {
        flex-wrap: wrap;
    }

    .header__nav-link {
        width: 100%;
        margin: 0;
        border-right: 0 !important;
        border-left: 0 !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .header__nav-link_icon_like {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        text-align: center;
    }

    .header__nav-link_icon_photo {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        margin: 0;
    }

    .header__nav-link_icon_map {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
        border-left: 0;
    }
    
    .header__action_city, .header__action_plus, .header__action_metro, .header__action_district {
        width: 100%;
    }
    
    .header__actions-container form {
        margin: 0 20px;
        width: calc(100% - 40px);
    }

    .header__action_search {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }

    .header__action-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .header__action-btn {
        flex: 0 0 auto;
    }

    .header__action_plus {
        order: 6 ;
    }
    
    .review {
        display: block;
    }
    
    .review__photo {
        justify-content: flex-end;
    }
    
    .review__title,
    .review__content {
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }
    
    .header__nav {
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .header__nav-link {
        margin-right: 1px;
        background-position: center 10px;
        width: 33.3%;
        display: block;
        padding: 20px 0 10px;
    }
    
    .header__nav-link:last-child {
        margin-right: 0;
    }

    .header__nav-link-text {
        display: block;
        text-align: center;
        padding-top: 10px;
    }
    
    .header__nav-link_icon_like {
        background-position: center -3px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .header__action-value,
    .header__action-label,
    .header__action-plus-btn-text {
        display: none;
    }
    
    .header__action_city,
    .header__action_plus,
    .header__action_metro,
	.header__action_district,
    .header__action-plus-btn {
        width: 40px;
        height: 40px;
    }
    
    .header__action_city {
        order: 1;
    }
	
	.header__action_district {
		order: 1;
	}

    .header__action_metro {
        order: 2;
    }

    .header__action_plus {
        order: 3;
    }

    .profile__location {
        flex-direction: column;
        padding-top: 0;
        padding-bottom: 5px;
    }
    
    .profile__info-metro,
    .profile__info-phone,
    .profile__info-area,
    .profile__info-okrug{
        margin-left: 0 !important;
        margin-right: 0;
        margin-bottom: 5px;
        margin-top: 10px;
    }

    .names-list__item {
        width: 50%;
    }

    .categories-page__content .card {
        width: 100%;
    }
    
    .header__favorites-count {
        padding-top: 10px;
        padding-right: 5px;
        font-weight: bold;
    }
}

@media (max-width: 375px) {
    .main-nav__links_right {
        text-align: left;
    }

    .main-nav__links_right .main-nav__link::after {
        display: none;
    }

    .main-nav__links_right .main-nav__link::before {
        display: inline;
        margin-left: 10px;
    }

    .header__actions {
        overflow: hidden;
    }

    .header__action-input {
        width: 150px;
    }

    .header__action_city, .header__action_plus, .header__action_metro, .header__action_district {
        margin: 0 0 10px 20px;
    }
    
    .header__action_plus {
        margin-bottom: 10px;
    }
    
    .header__action-label,
    .header__action-plus-btn,
    .header__action-value select {
        font-size: 14px;
    }
    
    .main-nav__link {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .footer__logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer__nav {
        width: 100%;
        text-align: center;
    }
    
    .footer__copyright {
        min-width: auto;
        text-align: center;
    }
    
    .profiles {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card__wrap {
        margin: 0;
    }
    
    .header__action-plus-btn {
        padding-bottom: 14px;
    }
    
    .profile-form__field {
        width: 100%;
    }
}























