section.new-team {
    margin: 30px 5% !important;
    margin-bottom: 0px !important;
}

.main-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #003543;
}

.new-team .breadcrumb {
    background-color: #fff;
    margin-bottom: 40px;
    padding: 0px;
}

.new-team .container-article {
    margin: 0;
}

.new-team .breadcrumb a {
    color: #003543;
}

.new-team .breadcrumb span.archive.post-team-archive.current-item,
.new-team .breadcrumb .bread_space {
    color: #99AEB4;
}

.doctors-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.new-team .filter-btn {
    border: 1px solid #C0D8DF;
    color: #000;
    padding: 10px 20px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.new-team .filter-btn.active {
    background: #0196BB;
    color: #fff;
    border-color: #0196BB;
}

.new-team .filter-group.specialty-group {
    margin-bottom: 20px;
}

.filter-group {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-clear {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    color: #0196BB;
    white-space: nowrap;
    cursor: pointer;
}

.filter-clear.is-visible {
    display: inline-flex;
}

.filter-clear span {
    font-size: 18px;
    line-height: 1;
}

.doctors-filters {
    width: 100%;
    background: #F0F5F7;
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 30px;
}

.doctor-search-wrap {
    position: relative;
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.doctor-search-wrap input {
    display: block;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 16px 0 40px;
    border: 0;
    outline: none;
    background: #fff;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    line-height: 40px;
    color: #577B84;
}

.search-clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    border: none;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    color: #577B84;
    cursor: pointer;
}

.search-clear.is-visible {
    display: block;
}

.doctor-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}



.doctor-search-wrap input::placeholder {
    color: #6f8b96;
    opacity: 1;
}

.new-team .all-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.new-team .swiper-slide__name {
    justify-content: flex-start;
}

/* =========================================
   SELECT
   ========================================= */

.all-filters .filter-group {
    margin: 0;
    padding: 0;
}

.all-filters .filter-select {
    display: block;
    padding: 8px 0px 8px 14px;
    border-radius: 10px;
    background-color: #dce8ec;
    color: #62808c;
    font-size: 16px;
    cursor: pointer;
    outline: none;
}

/* Hover */

.all-filters .filter-select:hover {
    background-color: #d5e4e9;
}


/* Focus */

.all-filters .filter-select:focus {
    box-shadow: none;
}


/* ---------- Сетка карточек ---------- */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.new-team .team-item .swiper-slide__pic img {
    min-height: auto;
    border-radius: 8px;
}

.new-team .doctor-item .swiper-slide__pic img {
    height: 100%;
}

/* Карточка — копия стилей из слайдера */
.doctor-item .team-item {
    height: 100%;
}

.doctor-item {
    margin-bottom: 60px;
}

.doctor-item .swiper-slide__pic {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.doctor-item .swiper-slide__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* Кнопка «Записаться» — выезжает при наведении */
.doctor-item .swiper-slide__btn {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #0196BB;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.3s ease;
    cursor: auto;
    z-index: 2;
    text-align: center;
    border-radius: 8px;
    color: #fff;
    padding: 8px 0px;
    border: 1px solid #0196BB;
}


.doctor-item .swiper-slide__btn:hover {
    background: #fff;
    color: #0196BB;
    border: 1px solid #0196BB;
}

.doctor-item .swiper-slide__btn a,
.doctor-item .swiper-slide__btn span {
    display: block;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: currentColor;
    cursor: pointer;
}

.doctor-item:hover .swiper-slide__btn {
    transform: translateY(0);
    opacity: 1;
}

/* Имя и должность */
.doctor-item .swiper-slide__name {
    text-align: left;
    font-size: 19px;
    font-weight: 500;
    color: #003543;
    margin: 10px 0 5px 0;
}

.doctor-item .swiper-slide__position {
    text-align: left;
    font-weight: 400;
    font-size: 14px;
    color: #0196BB;
}

button.custom-select-trigger,
button#all-filters-clear {
    outline: none !important;
    border: none !important;
}
/* Кнопки специализации */
.new-team .specialty-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.new-team .specialty-buttons .filter-btn {
    border: 1px solid #C0D8DF;
    color: #116C83;
    padding: 8px 14px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
}

.new-team .specialty-buttons .filter-btn:hover {
    border: 1px solid #0196BB;
    color: #0196BB;
}


.new-team .specialty-buttons .filter-btn.active {
    background: #0196BB;
    color: #fff;
    border-color: #0196BB;
}

/* Ссылка, оборачивающая всю карточку */
.doctor-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.doctor-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Пагинация */
.pagination {
    margin-top: 20px;
    text-align: center;
}

/* =========================================
   КАСТОМНЫЕ SELECT
========================================= */

.custom-filter {
    position: relative;
}


/* Кнопка фильтра */

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #dce8ec;
    color: #62808c;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
    white-space: nowrap;
}


/* Активный фильтр */

.custom-select-trigger.is-active {
    background: #0196BB;
    color: #fff;
}


/* Стрелка */

.custom-select-arrow {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease;
}


/* Открытый select */

.custom-filter.is-open .custom-select-arrow {
    transform: rotate(225deg);
    margin-top: 4px;
}


/* =========================================
   ВЫПАДАЮЩИЙ СПИСОК
========================================= */

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid #0196BB;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 53, 67, 0.12);
    z-index: 50;

    /* скрыто */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;
}


/* Открытый список */

.custom-filter.is-open
.custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}


/* =========================================
   OPTION
========================================= */

.custom-select-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #577B84;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #d7e3e7;
}


.custom-select-option:last-child {
    border-bottom: none;
}


.custom-select-option:hover {
    background: #f5f9fa;
}


/* Прячем настоящий radio */

.custom-select-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* =========================================
   RADIO
========================================= */

.custom-radio {
    position: relative;
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid #A9BEC5;
    border-radius: 50%;
}


/* Активный radio */

.custom-select-option
input:checked
+ .custom-radio {
    border-color: #0196BB;
}


/* Точка */

.custom-select-option
input:checked
+ .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0196BB;
    transform: translate(-50%, -50%);
}

/* Крестик выбранной специализации */
.new-team .specialty-buttons .filter-btn-close {
    display: none;
    margin-left: 10px;
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
}

.new-team .specialty-buttons .filter-btn.active .filter-btn-close {
    display: inline-block;
}

/* Блок ничего не найдено */
.doctors-not-found {
    display: none;
    padding: 60px 0px;
}

.doctors-not-found.is-visible {
    display: block;
}

.doctors-not-found h2 {
    margin-bottom: 16px;
    color: #0196BB;
    font-size: 28px;
    font-weight: 600;
}

.doctors-not-found p {
    max-width: 620px;
    margin-bottom: 16px;
    color: #49585B;
    font-size: 16px;
    line-height: 1.4;
}

.doctors-not-found__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 10px 40px;
    background: #0196BB;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s ease;
    border: 1px solid;
}

.doctors-not-found__btn:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    border-color: #0196BB;
}

/* =========================================
   ОБЩАЯ ОЧИСТКА ФИЛЬТРОВ
========================================= */

.all-filters-clear {
    display: none;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    padding: 0 8px;
    font-family: inherit;
    font-size: 14px;
    color: #577B84;
    cursor: pointer;
    white-space: nowrap;
}


/* Показываем только если есть выбранный фильтр */

.all-filters-clear.is-visible {
    display: inline-flex;
}


.all-filters-clear span {
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
}

button.custom-select-trigger {
    outline: none;
}

@media screen and (max-width: 1200px) {
    .doctors-grid {
    grid-template-columns: repeat(3, 1fr);
}
}

@media screen and (max-width: 800px) {
    .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
}

.main-title {
    font-size: 30px;
}

.doctors-filters {
    padding: 12px;
}
}

@media screen and (max-width: 546px) {
    .doctors-grid {
    grid-template-columns: 1fr;
}
}