.animals-catalog-page {
    margin-top: 30px;
    color: #212121;
}

.animals-catalog-container {
    width: min(100% - 32px, 1320px);
    margin: 0 auto;
}

.animals-catalog-hero {
    position: relative;
    padding: 0 0 38px;
    border-bottom: 1px solid rgba(33, 33, 33, 0.08);
    overflow: hidden;
}

.animals-catalog-hero__content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding-top: 8px;
}

.animals-catalog-hero__content h1 {
    margin: 0 0 12px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #00794b;
    font-weight: 800;
}

.animals-catalog-hero__content p {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    max-width: 620px;
}

.animals-catalog-section {
    padding: 20px 0 48px;
}

.animals-catalog-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) repeat(4, minmax(170px, 1fr)) auto;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 22px;
    position: relative;
    z-index: 5;
    padding: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(33, 33, 33, 0.08);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(33, 33, 33, 0.06);
}
.animals-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 121, 75, 0.18);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(33, 33, 33, 0.05);
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease;
}

.animals-search-field:focus-within {
    border-color: #00794b;
    box-shadow: 0 0 0 4px rgba(0, 121, 75, 0.12);
}

.animals-search-field__icon {
    display: inline-flex;
    color: #00794b;
    flex: 0 0 auto;
}

.animals-search-field input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    color: #212121;
}

.animals-search-field input::placeholder {
    color: rgba(33, 33, 33, 0.55);
}

.animals-filter-select {
    position: relative;
    display: block;
    min-width: 0;
}

.animals-filter-select select {
    width: 100%;
    height: 52px;
    padding: 0 46px 0 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 121, 75, 0.18);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(33, 33, 33, 0.05);
    color: #212121;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
}

.animals-filter-select select:hover {
    border-color: rgba(0, 121, 75, 0.45);
    box-shadow: 0 10px 26px rgba(33, 33, 33, 0.08);
}

.animals-filter-select select:focus {
    border-color: #00794b;
    box-shadow: 0 0 0 4px rgba(0, 121, 75, 0.12);
}

.animals-filter-select::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 121, 75, 0.08);
    transform: translateY(-50%);
    pointer-events: none;
    transition: background-color 0.2s ease;
}

.animals-filter-select:hover::before {
    background: rgba(0, 121, 75, 0.14);
}

.animals-filter-select::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #00794b;
    border-bottom: 2px solid #00794b;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.animals-filter-select select option {
    font-weight: 500;
    color: #212121;
    background: #ffffff;
}

.animals-reset-button {
    height: 52px;
    padding: 0 18px;
    background: #00794b;
    border: 1px solid #00794b;
    border-radius: 12px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    white-space: nowrap;
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
}

.animals-reset-button:hover {
    background: #00623d;
    box-shadow: 0 10px 24px rgba(0, 121, 75, 0.22);
    transform: translateY(-1px);
}

.animals-reset-button:active {
    transform: translateY(0);
}

.animals-catalog-result {
    position: relative;
    min-height: 260px;
}

.animals-catalog-result.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.animals-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.animal-card {
    background: #ffffff;
    border: 1px solid rgba(33, 33, 33, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(33, 33, 33, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.animal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(33, 33, 33, 0.1);
}

.animal-card__image {
    display: block;
    height: 150px;
    overflow: hidden;
    background: #e9ddc6;
}

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

.animal-card:hover .animal-card__image img {
    transform: scale(1.04);
}

.animal-card__content {
    padding: 14px 16px 16px;
}

.animal-card__title {
    margin: 0 0 3px;
    font-size: 19px;
    line-height: 1.15;
    color: #00794b;
}

.animal-card__title a {
    color: inherit;
    text-decoration: none;
}

.animal-card__original {
    margin-bottom: 8px;
    font-size: 14px;
    font-style: italic;
    color: #212121;
}

.animal-card__meta {
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.35;
    color: #212121;
}

.animal-card__description {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: #212121;
}

.animal-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00794b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.animals-empty {
    padding: 34px 20px;
    background: #ffffff;
    border: 1px solid rgba(33, 33, 33, 0.1);
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    color: rgba(33, 33, 33, 0.7);
}

.animals-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.animals-pagination__item,
.animals-pagination__dots {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.animals-pagination__item {
    background: #ffffff;
    border: 1px solid rgba(33, 33, 33, 0.12);
    color: #00794b;
    transition: 0.2s ease;
}

.animals-pagination__item:hover,
.animals-pagination__item.is-active {
    background: #00794b;
    border-color: #00794b;
    color: #ffffff;
}

.animals-pagination__dots {
    color: rgba(33, 33, 33, 0.5);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1200px) {
    .animals-catalog-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .animals-search-wrap {
        grid-column: span 2;
    }

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

@media (max-width: 820px) {
    .animals-catalog-filters {
        grid-template-columns: 1fr 1fr;
    }

    .animals-search-wrap {
        grid-column: span 2;
    }

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

@media (max-width: 560px) {
    .animals-catalog-container {
        width: min(100% - 20px, 1320px);
    }

    .animals-catalog-hero {
        padding-bottom: 28px;
    }

    .animals-catalog-hero__content h1 {
        font-size: 34px;
    }

    .animals-catalog-hero__content p {
        font-size: 16px;
    }

    .animals-catalog-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .animals-search-wrap {
        grid-column: auto;
    }

    .animals-grid {
        grid-template-columns: 1fr;
    }

    .animal-card__image {
        height: 190px;
    }
}
