.nr-materials-component,
.nr-materials-component * {
    box-sizing: border-box;
}

.nr-materials-component {
    width: 100%;
    font-family: inherit;
}

.nr-materials-component__filter {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: center;
    gap: 24px;
    background: #d7f0f2;
    border-radius: 34px;
    padding: 18px 20px 18px 28px;
    margin-bottom: 10px;
}

.nr-materials-component__label {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;
    color: #000;
}

.nr-materials-component__selects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.nr-materials-component__select-wrap {
    position: relative;
}

.nr-materials-component__select-wrap:after {
    content: "";
    position: absolute;
    right: 23px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 3px solid #07959d;
    border-bottom: 3px solid #07959d;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.nr-materials-component__select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    display: block;
    width: 100%;
    height: 43px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 28px !important;
    background: #fff !important;
    padding: 0 54px 0 20px !important;
    font-size: 15px !important;
    line-height: 43px !important;
    color: #111 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
}

.nr-materials-component__tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 10px;
}

.nr-materials-component__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 55px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid #07959d !important;
    border-radius: 28px !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 17px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    box-shadow: none !important;
    transition: .2s ease;
}

.nr-materials-component__tab:hover,
.nr-materials-component__tab.is-active {
    background: #07959d !important;
    color: #fff !important;
}

.nr-materials-component__results-wrap {
    background: #d7f0f2;
    border-radius: 34px;
    padding: 18px;
    min-height: 250px;
    transition: opacity .2s ease;
}

.nr-materials-component.is-loading .nr-materials-component__results-wrap {
    opacity: .55;
    pointer-events: none;
}

.nr-materials-component__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nr-materials-component__card {
    display: flex;
    flex-direction: column;
    min-height: 440px;
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    overflow: hidden;
}

.nr-materials-component__image-link {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    text-decoration: none !important;
}

.nr-materials-component__image {
    display: block;
    width: 100%;
    height: 255px;
    object-fit: cover;
    border-radius: 8px;
}

.nr-materials-component__placeholder {
    width: 100%;
    height: 255px;
    border-radius: 8px;
    background: #dbe7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
}

.nr-materials-component__title {
    margin: 0 0 18px !important;
    padding: 0 !important;
    color: #000 !important;
    font-size: 17px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    text-transform: none !important;
}

.nr-materials-component__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.nr-materials-component__more {
    align-self: flex-end;
    margin-top: auto;
    color: #07959d !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    text-underline-offset: 7px;
}

.nr-materials-component__more span {
    display: inline-block;
    margin-left: 8px;
    text-decoration: none !important;
}

.nr-materials-component__empty {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    color: #000;
    font-size: 16px;
    line-height: 1.4;
}

.nr-materials-component__select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

.nr-custom-select {
    position: relative;
    width: 100%;
    z-index: 20;
}

.nr-custom-select.is-open {
    z-index: 50;
}

.nr-custom-select__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 43px;
    padding: 0 54px 0 20px;
    border: 0;
    border-radius: 28px;
    background: #fff;
    color: #111;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-align: left;
    box-shadow: none;
    outline: none;
}

.nr-custom-select__button:after {
    content: "";
    position: absolute;
    right: 23px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 3px solid #07959d;
    border-bottom: 3px solid #07959d;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;
}

.nr-custom-select.is-open .nr-custom-select__button {
    border-radius: 22px 22px 0 0;
}

.nr-custom-select.is-open .nr-custom-select__button:after {
    transform: translateY(-35%) rotate(225deg);
}

.nr-custom-select__dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    z-index: 100;
}

.nr-custom-select.is-open .nr-custom-select__dropdown {
    display: block;
}

.nr-custom-select__option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    background: #fff;
    color: #111;
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: .15s ease;
}

.nr-custom-select__option:hover,
.nr-custom-select__option.is-selected {
    background: #07959d;
    color: #fff;
}

.nr-materials-component__select-wrap:after {
    display: none !important;
}

.nr-materials-component__filter,
.nr-materials-component__selects,
.nr-materials-component__select-wrap {
    overflow: visible !important;
}

.nr-materials-component__filter {
    position: relative;
    z-index: 30;
}

.nr-materials-component__tabs,
.nr-materials-component__results-wrap {
    position: relative;
    z-index: 1;
}

.nr-materials-component__select-wrap {
    position: relative;
    z-index: 10;
}

.nr-materials-component__select-wrap:has(.nr-custom-select.is-open) {
    z-index: 100;
}

.nr-custom-select.is-open {
    z-index: 999;
}

.nr-custom-select__dropdown {
    background: #fff !important;
    border: 1px solid rgba(7, 149, 157, .25);
}

.nr-custom-select__option {
    background: #fff !important;
    color: #111 !important;
}

.nr-custom-select__option:hover,
.nr-custom-select__option.is-selected {
    background: #07959d !important;
    color: #fff !important;
}

@media (max-width: 1199px) {
    .nr-materials-component__filter {
        grid-template-columns: 180px 1fr;
    }

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

@media (max-width: 767px) {
    .nr-materials-component__filter {
        display: block;
        padding: 18px 14px;
        border-radius: 24px;
    }

    .nr-materials-component__label {
        margin-bottom: 12px;
        color: #777;
        font-size: 16px;
        font-weight: 700;
    }

    .nr-materials-component__selects {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nr-materials-component__select-wrap {
        border-radius: 18px;
        overflow: visible !important;
    }

    .nr-materials-component__select {
        height: 48px;
        line-height: 48px !important;
        border-radius: 18px !important;
        font-size: 16px !important;
        padding: 0 46px 0 16px !important;
    }

    .nr-materials-component__tabs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 0 10px;
        padding: 0 0 2px;
    }

    .nr-materials-component__tab {
        flex: 0 0 auto;
        height: 46px;
        min-height: 46px;
        padding: 0 16px !important;
        border: 1px solid #07959d !important;
        border-radius: 22px !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 15px !important;
        line-height: 1 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        white-space: nowrap;
    }

    .nr-materials-component__tab:hover,
    .nr-materials-component__tab.is-active {
        background: #07959d !important;
        color: #fff !important;
    }

    .nr-materials-component__results-wrap {
        padding: 14px;
        border-radius: 24px;
    }

    .nr-materials-component__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nr-materials-component__card {
        min-height: auto;
        padding: 14px;
        border-radius: 18px;
        background: #fff;
    }

    .nr-materials-component__image,
    .nr-materials-component__placeholder {
        height: 220px;
        min-height: 220px;
        border-radius: 8px;
    }

    .nr-materials-component__title {
        margin: 0 0 14px !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }

    .nr-materials-component__more {
        align-self: flex-end;
        margin-top: auto;
        color: #07959d !important;
        font-size: 15px !important;
        text-decoration: underline !important;
        text-underline-offset: 6px;
    }

    .nr-materials-component__more span {
        display: inline-block;
    }

    .nr-custom-select__button {
        height: 48px;
        border-radius: 18px;
        font-size: 16px;
        padding: 0 46px 0 16px;
    }

    .nr-custom-select.is-open .nr-custom-select__button {
        border-radius: 18px 18px 0 0;
    }

    .nr-custom-select__dropdown {
        border-radius: 0 0 18px 18px;
        max-height: 220px;
    }

    .nr-custom-select__option {
        font-size: 16px;
        padding: 13px 16px;
    }
}

/* Стили для заблокированного материала */
.nr-materials-component__card.is-disabled .nr-materials-component__image-link,
.nr-materials-component__card.is-disabled .nr-materials-component__title a,
.nr-materials-component__card.is-disabled .nr-materials-component__more {
    pointer-events: none; /* Полностью отключает кликабельность в браузере */
    cursor: default;
}

/* Делаем кнопку "Подробнее" серой */
.nr-materials-component__card.is-disabled .nr-materials-component__more {
    color: #9e9e9e !important; /* Серый цвет текста */
    text-shadow: none !important;
}

/* Приглушаем стрелочку */
.nr-materials-component__card.is-disabled .nr-materials-component__more span {
    opacity: 0.4;
}

/* Опционально: можно слегка приглушить картинку, чтобы карточка выглядела "архивной" */
.nr-materials-component__card.is-disabled .nr-materials-component__image {
    filter: grayscale(30%) opacity(0.8);
}