/* STYLES FOR HTML-ELEMENTS */
body {
    /* font-family: 'Inter'; */
    font-size: 16px;
}

p {
    padding: 0 0;
}

input[type='checkbox'] {
    display: inline;
}
/*  */

/* SPECIAL CLASSES */
.overflow-hidden {
    overflow: hidden;
}

.display-none {
    display: none;
}
/*  */

.header {
    width: 100%;
    height: 65px;
    background-color: white;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 100%;
}

.header__group {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.header__favorite-link {
    width: 32px;
    height: 32px;

    background: #F8F5F5;
    border-radius: 3px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header__favorite-count {
    width: 32px;
    height: 32px;

    background: #FF5353;
    border-radius: 3px;

    font-weight: 900;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header__menu {
    cursor: pointer;
}

.header__login {
    width: 32px;
    height: 32px;

    background: #F8F5F5;
    border-radius: 3px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header__user {
    position: relative;
}

.user-auth {
    width: 32px;
    height: 32px;

    background: #868686;
    border-radius: 3px;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.user-menu {
    position: absolute;
    top: 32px;
    right: 0;
}

.user-menu {
    background-color: white;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    border: 1px solid rgb(172, 172, 172);
    z-index: 3;
    gap: 3px;
}

.user-menu-link {
    color: rgb(185, 13, 13);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.user-menu-link:hover {
    color: rgb(138, 9, 9);
    text-decoration: underline;
}

.left-group {
    gap: 16px;
    /* margin-left: 15px; */
}

.right-group {
    gap: 16px;
    /* margin-right: 15px; */
}

.catalog__headline {
    font-weight: 500;
    font-size: 22px;
    line-height: 22px;

    color: #000000;
}

.catalog__headline_not-main {
    margin-bottom: 53px;
}

.catalog__services-info {
    font-weight: 400;
    font-size: 14px;
    line-height: 15px;

    min-height: 15px;

    color: #595959;

    margin-bottom: 30px;
}

.catalog__service-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;

    margin-bottom: 30px;

}

.catalog__section-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.catalog__section-group-main {
    display: flex;
    flex-direction: row;
}

.section-link {
    font-weight: 400;
    line-height: 19px;
    text-decoration-line: underline;

    color: #1a6892;
}

.section-link_active {
    font-weight: 400;
    line-height: 19px;
    pointer-events: none;
    color: #08496b;
    text-decoration: none;
}

.section-item {
    display: flex;
    flex-direction: row;
    gap: 7px;
    /*border: 1px solid #C1C1C1;
    border-radius: 3px;
    padding: 10px 5px;*/
}

.catalog__filter-group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    margin-bottom: 30px;
}

.filter-btn {
    background: #FFFFFF;
    border: 1px solid #C1C1C1;
    border-radius: 3px;

    font-weight: 700;
    font-size: 14px;
    line-height: 17px;

    color: #000000;

    display: flex;
    gap: 9px;
    align-items: center;
}

.map-btn {
    padding-left: 5px;
    padding-right: 5px;
}

.filter {
    display: flex;
    flex-direction: row;
}

.count-filters {
    width: 32px;
    height: 32px;

    background: #FF5353;
    border-radius: 3px;

    font-weight: 900;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;

    display: flex;
    align-items: center;
    justify-content: center;
}

.city-info {
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;

    color: #000000;

    margin-bottom: 30px;
}

.vip-catalog {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.vip-catalog__title {
    width: 100%;
    height: 35px;
    background: #28A745;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vip-catalog__content {
    background: #FFFFFF;
    border-width: 0px 1px 1px 1px;
    border-style: solid;
    border-color: #28A745;
    width: 100%;
    height: 700px;
    padding: 15px 15px;
    overflow: hidden;
}

.vip-services-wrapper {
    max-width: 200px;
    height: 600px;
    display: flex;
    flex-direction: column;
    box-sizing: content-box;
}

.vip-service__img-container {
    position: relative;
    overflow: hidden;
    height: 300px; /* чётко задано для резки изображений */
    padding-bottom: 0; /* исправлен всплеск на мобильных */
    cursor: pointer;
}

.vip-service-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    color: #000000;
    margin-bottom: 10px;
    cursor: pointer;
}

.vip-service-avatar {
    width: 100%;             
    height: 100%;             /* Занимает полную высоту контейнера */
    object-fit: cover;       
    margin: 0 auto;          
    display: block;          
}

/* Медиазапрос для мобильных устройств */
@media (max-width: 768px) {
    .vip-service__img-container {
        min-height: unset;   /* убираем min-height */
        padding-bottom: unset; /* убираем padding-bottom который создавал всплеск */
        height: 300px;       /* фиксируем высоту, чтобы было как на ПК */
    }

    .vip-service-avatar {
        height: 100%;        /* полная высота контейнера */
        max-width: unset;    /* отменяем max-width, чтобы ширина была на 100% */
        object-fit: cover;   /* режем картинку, сохраняем пропорции */
    }
}

@media (min-width: 769px) {
    .vip-service-avatar {
        max-width: 255px;
        height: 300px;
    }

    .vip-service__img-container {
        min-height: unset; /* для идентичности с мобилой */
        padding-bottom: unset; /* убираем лишний padding-bottom */
        height: 300px; /* явно задано одинаково с мобилой */
    }
}

.vip-service-location {
    margin-bottom: 20px;
    min-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vip-service-description {
    background: #F3FFEE;
    margin-bottom: 10px;
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
}

.vip-service__group {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.vip-service-price {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #000000;
}

.price-number {
    font-size: 20px;
}

.btn-go {

    /* padding: 10px 15px; */

    background: #28A745;
    border: none;
    outline: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 30px;

    color: #FFFFFF;

    padding: 0 5px;
}

.btn-go:hover {
    background: #1c8d36;
    color: white;
}

.vip-button-prev {
    position: absolute;
    top: calc(50% - 25px);
    left: 0;
    width: 15px;
    height: 50px;
    background-color: #FF0000;
}

.vip-button-next {
    position: absolute;
    top: calc(50% - 25px);
    right: 0;
    width: 15px;
    height: 50px;
    background-color: #FF0000;
}

/* MENU_CITY */

.header-without-shadow {
    box-shadow: none;
    border: none;
}

.menu__cities {

    display: flex;
    flex-direction: column;
    align-items: center;  
  
    position: fixed;
    bottom: 0;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 10;

    background-color: white;

}

.menu__close {
    cursor: pointer;
}

.select-cities {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items:start;
}

.menu__title {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;

    padding-left: 0;

    color: #000000;
}

.dropdown_city-menu {
    position: relative;
}

.menu__input {
    width: 340px;
    height: 51px;
    background: #FFFFFF;
    border: 1px solid #C1C1C1;
    width: 100%;
    padding-left: 15px;
}

.prompt-cities-wrapper {
    position: absolute;
    left: 0;

    width: 340px;
    max-height: 80vh;
    overflow: auto;

    display: flex;
    flex-direction: column;
    background-color: rgb(197, 197, 197);
}

.prompt-city {
    display: flex;
    height: 30px;
    flex-direction: row;
    color: #cc3f3f;
    font-size: 16px;
    font-weight:500;
    /* border: 1px solid #595959; */
    align-items: center;
    padding-left: 15px;
}

.menu__content {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: start;
}

.list_title {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;

    color: #000000;
}

.cities-list {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
    width: 100%;
}

.city-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;

    align-items: center;
}

.city-link {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-decoration-line: underline;
    
    color: #2F80ED;
}

.city__count-services {
    background: #F5F5F5;
    border-radius: 3px;
    width: 32px;
    height: 32px;
    font-style: normal;
    font-weight: 900;
    font-size: 14px;
    line-height: 17px;

    color: #000000;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* */

/* FILTER */

.filter-window {

    display: flex;
    flex-direction: column;  
  
    position: fixed;
    bottom: 0;
    left: 0;
    top: 65px;
    width: 100%;
    z-index: 5;

    background-color: white;
}

.filter-panel {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;

    margin-top: 31px;

}

.title {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;

    cursor: pointer;

    color: #000000;
}

.btn-cancel-filter {
    border: none;
    outline: none;
    background-color: white;

    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;

    text-decoration-line: underline;

    color: #2F80ED;
}

.filter-content {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 2fr 3fr;
}

.grid-col {
    max-height: calc(100vh - 218px);
    overflow-y: auto;
} 

.tab-wrapper {
    background-color: #F3F3F3;
    height: 540px;
}

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

.tab-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 54px;
    background-color: #F3F3F3;

    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;

    color: #000000;

    padding-left: 15px;
    cursor: pointer;
}

.tab-item_active {
    background-color: white;
}

.option-wrapper {

}

.filter-panel__container {
    padding-left: 15px;
    padding-right: 15px;
}

.btn-go-filter {
    height: 63px;
    width: 100%;

    position: absolute;
    bottom: 0;
    left: 0;

    border: none;
    outline: none;
    background: #28A745;

    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;

    color: #FFFFFF;
}

.option-item__title {
    margin-left: 25px;
    margin-bottom: 30px;

    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;

    color: #000000;
}

.radio-group {
    margin-bottom: 20px;
}

.option-label {
    margin-left: 25px;
    padding: 0;
}

.number-input {
    width: 170px;
    height: 40px;
    background: #F3F3F3;
    border-radius: 6px;
    border: none;
    padding-left: 20px;
}

.number-input::placeholder {
    font-weight: 400;
    font-size: 16px;
    line-height: 15px;
   
    color: #A6A6A6;
}

.letter {
    font-size: 18px;
    font-weight: 600px;
    color: #FF5353;
    margin-right: 0;
    margin-bottom: 10px;
    margin-top: 20px;
    margin-left: 25px;
}

.tab-name_active {
    color: #FF0000;
}

.tab-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    padding-right: 15px;
}

.count-filter {
    width: 25px;
    height: 25px;

    background: #FF5353;
    border-radius: 3px;

    font-weight: 900;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* */

/* NEW BANNERS */
.banners-container {
    width: 260px;
    height: auto;
    /* border: 1px solid red; */
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.banner-item {
    display: block;
    width: 100%;
    height: 390px;
    background-size: cover;
}
/*  */

.vip-service__group {
    margin-top: auto;
    order: 2;
}

@media(max-width: 576px) {
    .price-number {
        font-size: 16px;
    }

    .vip-service-price {
        font-size: 14px;
    }

    .vip-catalog__content {
        height: 540px !important;
        max-height: 540px !important;
    }
}

@media(max-width: 992px) {
    .catalog__section-group-main {
        justify-content: space-between;
    }
}

@media(min-width: 576px) {
    .left-group {
        gap: 18px;
        /* margin-left: 33px; */
    }

    .right-group {
        gap: 18px;
        /* margin-right: 33px; */
    }

    .vip-catalog__content {
        height: 569px !important;
        max-height: 569px !important;
    }
}

@media(min-width: 768px) {
    .left-group {
        gap: 20px;
        /* margin-left: 40px; */
    }

    .right-group {
        gap: 20px;
        /* margin-right: 40px; */
    }

    .catalog__service-sections {
        width: 60%;
    }

    .banners-swiper-wrapper {
        display: block !important;
    }

    .banners-container {
        width: 200px;
    }

    .banner-item {
        height: 300px;
        margin-bottom: 20px;
    }
}

@media(min-width: 992px) {

    .catalog__section-group-main {
        gap: 10px;
    }

    .left-group {
        gap: 20px;
        /* margin-left: 31px; */
    }

    .right-group {
        gap: 20px;
        /* margin-right: 31px; */
    }

    .catalog__service-sections {
        width: 50%;
    }

    .banners-container {
        width: 200px;
    }

    .banner-item {
        height: 300px;
    }
}

@media(min-width: 1200px) {
    .left-group {
        gap: 22px;
        /* margin-left: 31px; */
    }

    .right-group {
        gap: 22px;
        /* margin-right: 31px; */
    }

    .catalog__service-sections {
        width: 40%;
    }

    .banners-container {
        width: 260px;
    }

    .banner-item {
        height: 390px;
    }
}