.catalog-page-header {
    padding-top: 120px;
    padding-bottom: 40px;
    background-color: #FBF7EF;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.catalog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 300;
    color: #2B2420;
}

.catalog-breadcrumb a {
    color: #96774B;
    transition: color 0.3s ease;
}

.catalog-breadcrumb a:hover {
    color: #6B4F2C;
}

.catalog-page-desc {
    margin-top: 6px;
    color: #2B2420;
    font-weight: 300;
    font-size: 18px;
    max-width: 750px;
}

.catalog-section {

}

.contacts-requisites-section {

}

.contacts-section--page {

}

.requisites-card {
    margin-top: 24px;
    padding: 32px;
    background-color: #FBF7EF;
    border-radius: 24px;
}

.requisites-grid {
    row-gap: 24px;
}

.requisites-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.requisites-label {
    color: #96774B;
    font-size: 16px;
    font-weight: 400;
}

.requisites-value {
    color: #2B2420;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.catalog-filters {
    margin-bottom: 32px;
    padding: 24px;
    background-color: #FBF7EF;
    border-radius: 24px;
}

.catalog-filters__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.catalog-filters__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
    flex: 1;
}

.catalog-filters__field--search {
    flex: 2;
    min-width: 220px;
}

.catalog-filters__field label {
    font-size: 14px;
    font-weight: 400;
    color: #2B2420;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background-color: #F4EDE0;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 300;
    color: #2B2420;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    font-family: "Jost", sans-serif;
}

.custom-select.is-open .custom-select__trigger,
.custom-select__trigger:hover {
    border-color: #96774B;
}

.custom-select__current {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.custom-select.is-open .custom-select__icon {
    transform: rotate(180deg);
}

.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #FBF7EF;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(43, 36, 32, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    max-height: 260px;
    overflow-y: auto;
}

.custom-select.is-open .custom-select__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select__option {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 300;
    color: #2B2420;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-family: "Jost", sans-serif;
}

.custom-select__option:hover,
.custom-select__option.is-selected {
    background-color: #96774B;
    color: #FBF7EF;
}

.catalog-select,
.catalog-input {
    background-color: #F4EDE0;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 16px;
    font-weight: 300;
    color: #2B2420;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
    font-family: "Jost", sans-serif;
}

.catalog-select:focus,
.catalog-input:focus {
    border-color: #96774B;
}

.catalog-filters__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.catalog-btn--primary {
    background-color: #96774B;
    color: #FBF7EF;
}

.catalog-btn--primary:hover {
    background-color: #6B4F2C;
    color: #FBF7EF;
}

.catalog-btn--secondary {
    background-color: transparent;
    color: #2B2420;
    border: 1px solid #96774B;
}

.catalog-btn--secondary:hover {
    background-color: #96774B;
    color: #FBF7EF;
}

.catalog-cases-grid {
    row-gap: 24px;
    margin-top: 24px;
}

.catalog-case-col {
    display: flex;
}

.catalog-empty {
    text-align: center;
    color: #2B2420;
    font-size: 18px;
    font-weight: 300;
    padding: 48px 0;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.catalog-pagination__btn {
    background-color: #96774B;
    color: #FBF7EF;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.catalog-pagination__btn:hover {
    background-color: #6B4F2C;
    color: #FBF7EF;
}

.catalog-pagination__btn--disabled {
    background-color: #FBF7EF;
    color: #707070;
    cursor: not-allowed;
    opacity: 0.7;
}

.catalog-pagination__pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalog-pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
    color: #2B2420;
    background-color: #FBF7EF;
    transition: all 0.3s ease;
}

.catalog-pagination__page:hover {
    background-color: #96774B;
    color: #FBF7EF;
}

.catalog-pagination__page--active {
    background-color: #96774B;
    color: #FBF7EF;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.detail-layout__media {
    position: sticky;
    top: 120px;
    width: 100%;
    min-width: 0;
    align-self: start;
}

.detail-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    background-color: #FBF7EF;
}

.detail-text {
    color: #2B2420;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
}

.detail-text p {
    margin-bottom: 16px;
}

.detail-text p:last-child {
    margin-bottom: 0;
}

.detail-cta-btn {
    background-color: #96774B;
    border: 1px solid #96774B;
    outline: none;
    box-shadow: none;
    color: #FBF7EF;
    font-size: 20px;
    padding: 12px 30px;
    margin-top: 32px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.detail-cta-btn:hover {
    background-color: #6B4F2C;
    border-color: #6B4F2C;
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.detail-meta--header {
    margin-top: 16px;
}

.detail-meta__service {
    color: #96774B;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.detail-meta__service:hover {
    color: #6B4F2C;
}

.detail-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(150, 119, 75, 0.2);
}

.detail-related__title {
    font-family: "EB Garamond", serif;
    font-size: 40px;
    font-weight: 600;
    color: #2B2420;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.detail-related__link-wrap {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.detail-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 44px;
}

.detail-paragraph-description {
    color: #2B2420;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 991px) {
    .catalog-page-header {
        padding-top: 100px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-layout__media {
        position: static;
    }

    .detail-image {
        height: 320px;
    }

    .detail-related__title {
        font-size: 32px;
    }

    .catalog-filters__actions {
        width: 100%;
    }

    .catalog-btn {
        flex: 1;
    }
    .detail-cta-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    .catalog-filters__field {
        min-width: 100%;
    }

    .catalog-pagination {
        flex-wrap: wrap;
    }
    .catalog-filters {
        padding: 16px;
        border-radius: 16px;
    }
    .detail-paragraphs {
        margin-top: 24px;
    }
    .detail-related {
        margin-top: 40px;
        padding-top: 24px;
    }
    .requisites-card {
        padding: 16px;
        border-radius: 16px;
    }
    .requisites-grid {
        row-gap: 16px;
    }

}

@media (max-width: 575px) {
    .catalog-page-desc {
        font-size: 16px;
    }
    .catalog-section {
        padding-top: 30px;
    }
    .detail-related__link-wrap {
        margin-top: 30px;
    }
    .detail-related__title {
        font-size: 24px;
    }
}
