/* =========================================================
   SPECIALISTS PAGE
   ========================================================= */

.specialists-page {
    background: #f8f8fa;
}


/* =========================================================
   HEADER
   ========================================================= */

.specialists-header {
    padding-top: 24px;
}


.specialists-page__title {
    margin: 0;

    color: #23716d;

    font-family: 'Inter', sans-serif;
    font-size: 72px;
    line-height: 1.2;
    font-weight: 700;
}


.specialists-header .page-search {
    margin-top: 24px;
}


/* =========================================================
   LIST
   ========================================================= */

.specialists-list {
    margin-top: 32px;
}


/* =========================================================
   GRID
   ========================================================= */

.specialists-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    grid-area: grid;
    gap: 20px;
}


/* =========================================================
   CARD
   ========================================================= */

.specialist-card {
    height: 490px;

    overflow: hidden;

    border-radius: 24px;

    background: #fff;
}


/* =========================================================
   PHOTO
   ========================================================= */

.specialist-card__photo {
    width: 100%;
    height: 300px;

    overflow: hidden;

    background: rgba(35, 113, 109, .1);
}


.specialist-card__photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.specialist-card__photo--placeholder {
    display: flex;

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


.specialist-card__photo--placeholder img {
    width: 150px;
    height: 150px;

    object-fit: contain;
}


/* =========================================================
   CONTENT
   ========================================================= */

.specialist-card__content {
    padding: 16px;
}


.specialist-card__name {
    margin: 0;

    color: #111122;

    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}


.specialist-card__position {
    width: 100%;

    margin: 10px 0 0;

    color: rgba(17, 17, 34, .75);

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}


.specialist-card__meta {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 14px;
}


.specialist-card__meta-item {
    display: flex;

    align-items: center;

    gap: 10px;

    color: rgba(17, 17, 34, .75);

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}


.specialist-card__dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: #23716d;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.specialists-pagination {
    width: 365px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 24px auto 0;

    padding: 14px;

    box-sizing: border-box;

    border-radius: 12px;

    background: #fff;

    box-shadow:
            0 2px 10px rgba(0, 0, 0, .02);
}


.specialists-pagination__pages {
    display: flex;

    align-items: center;

    gap: 16px;
}


.specialists-pagination__page,
.specialists-pagination__arrow {
    display: flex;

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

    padding: 0;

    border: 0;

    background: transparent;

    font-family: 'Inter', sans-serif;

    cursor: pointer;
}


.specialists-pagination__page {
    width: 24px;
    height: 24px;

    border-radius: 50%;

    color: rgba(17, 17, 34, .25);

    font-size: 18px;

    transition:
            color .2s ease,
            background-color .2s ease,
            transform .2s ease;
}


.specialists-pagination__page:hover {
    color: #23716d;

    background: rgba(35, 113, 109, .1);
}


.specialists-pagination__page:active {
    transform: scale(.94);
}


.specialists-pagination__page--active {
    color: #fff !important;

    background: #23716d !important;
}


.specialists-pagination__arrow {
    width: 18px;
    height: 18px;

    color: #23716d;

    font-size: 18px;

    transition:
            transform .2s ease,
            color .2s ease;
}


.specialists-pagination__arrow:not(:disabled):hover {
    transform: scale(1.1);
}


.specialists-pagination__arrow:disabled {
    color: rgba(17, 17, 34, .2);

    cursor: default;
}


/* =========================================================
   HIDDEN CARD
   ========================================================= */

.specialist-card.is-hidden {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    .specialists-page
    .main-page__container {
        width: calc(100% - 40px);
    }


    .specialists-header {
        padding-top: 80px;
    }


    .specialists-page__title {
        font-size: 56px;
    }


    .specialists-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .specialist-card {
        height: 370px;
    }


    .specialist-card__photo {
        height: 215px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .specialists-page
    .main-page__container {
        width: 100%;
    }


    .specialists-header {
        padding: 0;
    }


    .specialists-page__title {
        font-size: 36px;
        line-height: 1.2;
    }


    .specialists-list {
        margin-top: 20px;
    }


    /* КАРТОЧКИ В ОДНУ КОЛОНКУ */

    .specialists-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .specialist-card {
        width: 100%;

        height: auto;
        min-height: 0;

        border-radius: 16px;
    }


    .specialist-card__photo {
        width: 100%;
        height: 270px;

        border-radius: 16px;
    }


    .specialist-card__photo--placeholder img {
    }


    .specialist-card__content {
        padding: 14px;
    }


    .specialist-card__name {
        font-size: 16px;
        line-height: 1.2;
    }


    .specialist-card__position {
        margin-top: 6px;

        font-size: 13px;
        line-height: 1.4;
    }


    .specialist-card__meta {
        gap: 6px;

        margin-top: 12px;
    }


    .specialist-card__meta-item {
        align-items: flex-start;

        gap: 6px;

        font-size: 11px;
        line-height: 1.4;
    }


    .specialist-card__dot {
        width: 5px;
        height: 5px;

        flex: 0 0 5px;

        margin-top: 4px;
    }


    .specialists-pagination {
        width: 100%;

        margin-top: 20px;
    }

}