.person__list {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    margin-left: 15px;
    margin-right: 15px;
}

.person__item {
    width: 33.333333%;
    padding: 0 15px;
    margin-bottom: 40px;
    text-align: center;
}

.person__item-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) darkgrey;
}

.person__item-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f2f2f2;
    margin: 0 auto 12px;
}

.person__item-img--empty {
    visibility: hidden;
    pointer-events: none;
}

.person__item-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.person__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.person__item-img a:hover img {
    transform: scale(1.03);
}

.person__item-name {
    color: #3E5A68;
    font-family: var(--f-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-top: 5px;
    display: block;
    cursor: pointer;
}

.person__item-name:hover {
    color: #CEA056;
}

.person__item-post {
    color: #CEA056;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-top: 5px;
}

.person__item.is-hidden,
.person__item.is-filter-hidden,
.person__item.is-page-hidden {
    display: none !important;
}

.person-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 15px 35px;
    padding: 18px 20px;
    border: 1px solid rgba(193, 156, 85, 0.35);
    background: #fffdf8;
}

.person-filter__field {
    min-width: 220px;
    flex: 1 1 220px;
}

.person-filter__label {
    display: block;
    margin-bottom: 6px;
    color: #3E5A68;
    font-family: var(--f-text);
    font-size: 14px;
    line-height: 20px;
}

.person-filter__select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(193, 156, 85, 0.65);
    background: #ffffff;
    color: #3E5A68;
    font-family: var(--f-text);
    font-size: 15px;
}

.person-filter__select:focus {
    outline: none;
    border-color: #CEA056;
}

@media (max-width: 991px) {
    .person__item {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .person__item {
        width: 100%;
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
    }

    .person-filter {
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
    }

    .person-filter__field {
        min-width: 100%;
    }
}

/* Кнопки фильтра персон */
    .person-filter__actions {
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 12px;
        flex: 1 1 100%;
        margin-top: 6px;
    }

    .person-filter__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 24px;
        border: 1px solid #3E5A68;
        background: #3E5A68;
        color: #ffffff;
        font-family: var(--f-text);
        font-size: 15px;
        font-weight: 400;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .person-filter__button:hover,
    .person-filter__button:focus {
        border-color: #CEA056;
        background: #CEA056;
        color: #ffffff;
        outline: none;
    }

    .person-filter__button--reset {
        border-color: rgba(193, 156, 85, 0.75);
        background: #ffffff;
        color: #3E5A68;
    }

    .person-filter__button--reset:hover,
    .person-filter__button--reset:focus {
        border-color: #CEA056;
        background: #f7f0e3;
        color: #3E5A68;
    }

    /* Скрытие карточек при фильтрации и пагинации */
    .person__item.is-hidden,
    .person__item.is-filter-hidden,
    .person__item.is-page-hidden {
        display: none !important;
    }

    @media (max-width: 767px) {
        .person-filter__actions {
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .person-filter__button {
            width: 100%;
        }
    }


/* Пагинация персон */
.person-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 15px 35px;
}

.person-pagination__button {
    min-width: 42px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(193, 156, 85, 0.75);
    background: #ffffff;
    color: #3E5A68;
    font-family: var(--f-text);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.person-pagination__button:hover,
.person-pagination__button:focus,
.person-pagination__button.is-active {
    border-color: #3E5A68;
    background: #3E5A68;
    color: #ffffff;
    outline: none;
}

.person-pagination__button:disabled {
    opacity: 0.45;
    cursor: default;
}

.person-pagination__button:disabled:hover,
.person-pagination__button:disabled:focus {
    border-color: rgba(193, 156, 85, 0.75);
    background: #ffffff;
    color: #3E5A68;
}

.person-pagination__count {
    flex: 1 1 100%;
    margin-top: 4px;
    color: #8f6f35;
    font-family: var(--f-text);
    font-size: 14px;
    text-align: center;
}


@media (max-width: 767px) {
    .person-pagination {
        margin-left: 0;
        margin-right: 0;
    }

    .person-pagination__button {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
    }
}
