.publications_container {
    margin: 0 auto;
    width: 80%;
    margin-bottom: 100px;
}

.series_block_div {
    width: 80%;
    margin: 0 auto;
}

.series_title {
    font-family: 'Montserrat';
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    color: #447695;
}

.flex_series_container {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
    justify-content: center;
}

.flex_series_item {
    width: 324px;
    height: 424px;
    background: #E1EAEF;
    box-shadow: 0px 0px 3.06667px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.serie_name {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    color: #447695;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: center;
}

.serie_description {
    font-family: 'Lato';
    margin-top: 5px;
    margin-bottom: 0;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #1E1E1E;
}

.serie_link {
    font-family: 'Montserrat';
    background: #447695;
    border-radius: 10px;
    width: 276px;
    height: 45px;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    color: #FFFFFF;

}


.begin_materials {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
    margin-top: 20px;
    justify-content: space-between;
    /* flex-wrap: wrap; */
}

.search_form_container {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 60px;
}

.materials_title {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    text-align: center;
    color: #447695;
}

.search_string_div {
    position: relative;
    width: 50%;
    margin: 0 auto;
    margin-bottom: 25px;
}

.search_string_input {
    width: 100%;
    padding: 7px 6px 6px 14px;
    background: #FFFFFF;
    border: 2px solid #E1EAEF;
    border-radius: 50px;
}

.search_string_button {
    position: absolute;
    right: -20px;
    top: 3px;
    padding: 4px 13px;
    width: 71px;
    height: 27px;
    background: #447695;
    border-radius: 34px;
    border: none;
    color: #FFFFFF;
    cursor: pointer;
}

.search_string_button:disabled {
    background: #C8D7E0;
}

.search_clear_button {
    position: absolute;
    right: 60px;
    top: 3px;
    padding: 5px 0;
    display: none;
    cursor: pointer;
}

.search_clear_button.show {
    display: block;
}
.author_clear_button, .year_clear_button {
    position: absolute;
    right: 10px;
    top: 28px;
    padding: 5px 0;
    display: none;
    cursor: pointer;
}
.author_clear_button.show, .year_clear_button.show {
    display: block;
}

.search_parameters_div {
    display: block;
    /* width: 100%; */
    background: #FFFFFF;
    box-shadow: 0px 0px 3.06667px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 20px;
}

.filters_title {
    margin: 0;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    color: #447695;
}

.themes_div,
.sectors_div,
.author_div,
.type_div,
.series_div,
.year_div {
    display: flex;
    flex-direction: column;
    /* располагаем элементы вертикально */
    gap: 6.0px;
    flex: 1;
    min-width: 0;
    /* Защита: заставляет flex-элемент сжиматься, даже если внутри длинный текст */
    word-break: break-all;
}
.author_div, .year_div {
    position: relative;
}

.fs_line {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    flex: 3;
    min-width: 0;
    /* Защита: заставляет flex-элемент сжиматься, даже если внутри длинный текст */
    word-break: break-all;
}

.f_line {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
}

.f_line label {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #1E1E1E;
}

.f_line select,
.s_line select {
    padding: 7px 7px 7px 14px;
    border: 2px solid #E1EAEF;
    border-radius: 10px;
}

.f_line input,
.s_line input {
    padding: 7px 7px 7px 14px;
    border: 2px solid #E1EAEF;
    border-radius: 10px;
}

.s_line {
    display: flex;
    flex-direction: row;
    column-gap: 30px;
}

.s_line label {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #1E1E1E;
}

select {
    appearance: none;
    /* Убираем стандартную стрелку браузера */
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 30px;
    /* Место под новую стрелку */
    background-image: url('images/CaretDown.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.search_items_flexible {
    display: flex;
    column-gap: 30px;
    align-items: flex-end;
}

.access_div_subm {
    flex: 1;
    min-width: 0;
    /* Защита: заставляет flex-элемент сжиматься, даже если внутри длинный текст */
    word-break: break-all;
}

.access_title {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #1E1E1E;
    margin-bottom: 18px;
    margin: 0.7rem;
}

.access_div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 5px;
}

.access_item {
    padding: 3px 6px 2px 6px;
    border: 1.55944px solid #D8DFE4;
    border-radius: 21.8322px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.access_item label {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #1E1E1E;
}

.access_item input {
    margin-bottom: 3px;
}

.inp_submit {
    margin-top: 12px;
    background: #447695;
    border-radius: 10px;
    color: #FFFFFF;
    padding: 9px 95px 9px 95px;
    border: none;
    cursor: pointer;
}

.inp_submit:disabled {
    background: #C8D7E0;
}

.material_item {
    width: 208px;
    height: 352px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    row-gap: 5px;
}

.material_item img {
    border-radius: 15px;
}

.begin_data_container {
    margin-bottom: 80px;
}

.begin_author,
.begin_title {
    margin: 0;
    min-height: 18px;
    width: 200px;
    /* или любая другая ширина блока */
    white-space: nowrap;
    /* запрет переноса строк */
    overflow: hidden;
    /* скрытие текста, выходящего за границы */
    text-overflow: ellipsis;
    text-align: center;
    font-family: 'Lato';
}

.type_link {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    text-align: center;
    text-decoration: none;
    color: #447695;
}

.find_items_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.search_item {
    flex: 0 0 calc(50% - 30px);
    display: flex;
    flex-direction: row;
    column-gap: 12px;
    background: #FFFFFF;
    box-shadow: 0px 0px 3.06667px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;

}

.search_item_img {
    border-radius: 10px;
    flex-shrink: 0;
}

.show_filters_flex {
    display: flex;
    flex-direction: row;
    column-gap: 5px;
    margin-bottom: 15px;
}

.total_count {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #447695;
    padding: 3px 4px 3px 12px;
}

.show_filter_span {
    background: rgba(68, 118, 149, 0.06);
    border: 1px solid #447695;
    border-radius: 38px;
    padding: 3px 4px 3px 12px;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #447695;
}

.close_filter {
    text-decoration: none;
    cursor: pointer;
    margin-left: 5px;
    color: #447695;
}

.filters_top_names {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 5px;
    min-height: 20px;
    margin-top: 0px;
}

.filters_top_names span {
    font-family: 'Lato';
    border-radius: 20px;
    padding: 2px 5px;
    background: rgba(165, 199, 220, 0.4);
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #447695;
}

.filters_top_names a {
    font-family: 'Lato';
    text-decoration: none;
    border-radius: 20px;
    padding: 2px 5px;
    background: rgba(165, 199, 220, 0.4);
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #447695;
}

.remove_filters {
    text-decoration: none;
    padding: 3px 12px;
    background: rgba(68, 118, 149, 0.2);
    border-radius: 38px;
    text-align: center;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    color: #447695;
}

.more_button_div {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1px;
    margin: 0 auto;
    margin-top: 37px;
    width: 130px;
    cursor: pointer;
    margin-bottom: 30px;
}

.more_button_div.hide {
    display: none;
}

.more_button_div span {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #ADADAD;
}

.one_publication_container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    margin-top: 150px;
    column-gap: 36px;
    margin-bottom: 80px;
}

.material_search_title {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 5px;
    min-height: 40px;
}

.material_search_author {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #1E1E1E;
    margin-top: 5px;
    margin-bottom: 20px;
}

.read_more {
    display: flex;
    flex-direction: row;
    column-gap: 5px;
    align-items: center;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #447695;
    text-decoration: none;
    /* margin-top: 30px; */
}

.one_type_access_div {
    margin-bottom: 12px;
}

.one_type_span {
    padding: 3px 12px;
    background: rgba(165, 199, 220, 0.4);
    border-radius: 38px;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #447695;
}

.one_access_span {
    padding: 3px 12px;
    border-radius: 38px;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #7D8E98;
}

.one_author {
    margin-bottom: 8px;
}

.one_author span {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #1E1E1E;
}

.one_title {
    margin-bottom: 8px;
}

.one_title span {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    color: #447695;
}

.one_description {
    transition: max-height 0.8s ease;
}

.one_description_text {
    height: auto;
    overflow: visible;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #1E1E1E;
    margin: 0;
    transition: max-height 0.8s ease;
}

.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    /* Ограничение в 5 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Скрывает всё, что не поместилось в 5 строк */
    transition: max-height 0.8s ease;
}

#toggle-btn {
    text-decoration: none;
    margin-top: 5px;
    margin-bottom: 25px;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #447695;
}

.bibl_div {
    margin-top: 5px;
    margin-bottom: 18px;
    position: relative;
    cursor: pointer;
}

.bibl_div span {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    text-decoration-line: underline;
    color: rgba(125, 142, 152, 0.75);
}

.one_competent {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    display: none;
    background-color: #FFFFFF;
    width: 324px;
    height: auto;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
}

.one_competent.show {
    display: block;
    padding: 8px;
}

.competent_close_div {
    position: relative;
}

.close_competent {
    position: absolute;
    top: 0;
    right: 5px;
    margin: 0;
    cursor: pointer;
}

.copy_yes {
    display: flex;
    align-items: center;
    column-gap: 9px;
}

.copy_yes p {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    color: #447695;
    margin: 0;
}

.one_competent.show p {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
}

.one_year {
    margin-top: 24px;
}

table.dop_info_table {
    width: 50%;
    border-collapse: collapse;
    /* убирает двойные линии и зазоры */
}

.dop_info_table th,
.dop_info_table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px dashed #ddd;
    /* нижний бортик для каждой ячейки */
}

.table_left {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: rgba(125, 142, 152, 0.75);
}

.table_right {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #000000;
}

.read_material {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    column-gap: 12px;
}

.read_material_button {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    color: #FFFFFF;
    background: #447695;
    border-radius: 10px;
    padding: 15px 53px 12px 53px;
    border: 1px solid #447695;
    cursor: pointer;
}

.read_material_a {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    color: #7D8E98;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 15px 53px 12px 53px;
    border: 1px solid #E1EAEF;
    text-decoration: none;
    cursor: pointer;
}

.share_network_button {
    background: #FFFFFF;
    border: 1px solid #E1EAEF;
    border-radius: 10px;
    padding: 10px 9px 8px 9px;
    cursor: pointer;
}

.nothing_find {
    text-align: center;
    width: 100%;
}

.nothing_find_p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 28px;
    line-height: 34px;
    text-align: center;
    color: #000000;
    margin-bottom: 10px;
}

.nothing_find_span {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #1E1E1E;
}

.settings_button {
    display: none;
}

.close_settings_span {
    display: none;
}

.one_type_access_div_mobile {
    display: none;
}

.bibl_a_small {
    display: none;
}

.bibl_a_big {
    display: block;
    text-decoration: none;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    text-align: right;
    color: rgba(125, 142, 152, 0.75);
}

.more_buttons {
    display: flex;
    margin-top: 30px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.item_div {
    width: 100%;
}
.relative_div {
    position: relative;
}

@media (max-width: 1200px) {
    .publications_container {
        width: 96%;
    }

    .begin_materials {
        overflow-x: hidden;
    }

    .inp_submit {
        padding: 5px 30px 5px 30px;
    }
}

@media (max-width: 768px) {
    .publications_container {
        width: 96%;
        margin: 0 auto;
        padding: 5px;
        margin-bottom: 40px;
    }

    .serie_description {
        text-align: center;
        font-size: 13px;
    }

    .serie_link {
        margin: 0 auto;
        padding: 7.5px 25px 7.5px 25px;
        font-size: 13px;
        width: auto;
        height: auto;
        margin: 0 10px 10px 10px;
    }

    .serie_img {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .series_title {
        font-size: 20px;
        line-height: 24px;
        text-align: center;
    }

    .serie_name {
        font-size: 16px;
    }

    .materials_title {
        font-size: 20px;
    }

    .search_parameters_div {
        position: relative;
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: 100%;
        padding: 5px;
        padding-top: 20px;
        z-index: 1000;
    }

    .search_string_div {
        width: 96%;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        column-gap: 5px;
    }

    .type_link {
        font-size: 20px;
    }

    .begin_materials {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;

    }

    .begin_materials::-webkit-scrollbar {
        display: none;
        width: 0 !important;
        height: 0 !important;
    }

    .search_form_container {
        padding: 5px;
        width: 96%;
    }

    .settings_button {
        display: block;
        background: #E1EAEF;
        border-radius: 34.0278px;
        border: none;
        padding-top: 4px;
    }

    .search_string_button {
        right: 42px;
    }

    .filters_title {
        text-align: center;
    }

    .fs_line {
        flex-direction: column;
        width: 98%;
        row-gap: 0;
    }

    .f_line {
        flex-direction: column;
    }

    .s_line {
        flex-direction: column;
    }

    .search_items_flexible {
        flex-direction: column;
        align-items: center;
        display: block;
        padding: 10px;
    }

    .inp_submit {
        width: 98%;
    }

    body.no_scroll {
        overflow-y: hidden;
    }

    .themes_div,
    .sectors_div,
    .author_div,
    .type_div,
    .series_div,
    .year_div,
    .access_title {
        gap: 0;
        margin-top: 5px;
    }

    .close_settings_span {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    .close_settings_span img {
        width: 18px;
    }

    .find_items_container {
        flex-direction: column;
    }

    .search_item_img {
        /* height: 140px; */
    }

    .show_filter_span {
        font-size: 10px;
        white-space: nowrap;
    }

    .total_count {
        font-size: 13px;
        white-space: nowrap;
    }

    .remove_filters {
        display: none;
    }

    .show_filters_flex {
        flex-wrap: wrap;
        row-gap: 3px;
    }

    .filters_top_names {
        font-size: 10px;
        row-gap: 3px;
        width: 100%;
        /* Заставляет контейнер занять всю доступную ширину */
        max-width: 90%;
        /* Запрещает контейнеру становиться шире родительского блока */
        box-sizing: border-box;
        margin-bottom: 4px;
        margin-top: 0;
    }

    .filters_top_names a {
        /* flex: 1; */
        /* Позволяет элементу гибко сжиматься и расширяться */
        min-width: 0;
        /* Снимает ограничение на минимальный размер содержимого */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }

    .search_item {
        max-width: 96%;
    }

    .material_search_title {
        font-size: 12px;
        line-height: 15px;
        margin-top: 4px;
        margin-bottom: 2px;
        min-height: auto;
    }

    .material_search_author {
        font-size: 10px;
        margin-top: 2px;
        margin-bottom: 4px;

    }

    .read_more {
        /* margin-top: 10px; */
        font-size: 12px;
    }

    .read_more img {
        height: 16px;
        column-gap: 3px;
    }

    .one_publication_container {
        flex-direction: column;
        width: 96%;
        margin-top: 20px;
        margin-bottom: 42px;
    }

    .read_material_button {
        font-size: 15px;
        padding: 10px 20px 9px 20px;
    }

    .read_material_a {
        font-size: 15px;
        padding: 10px 20px 9px 20px;
    }

    .share_network_button {
        padding: 10px 20px 9px 20px;
    }

    .share_network_button img {
        height: 16px;
        width: 16px;
    }

    .one_publ_image {
        margin: 0 auto;
        margin-bottom: 10px;
    }

    .one_publ_image img {
        max-width: 100%;
        height: 240px;
    }

    .one_title {
        text-align: center;
    }

    .one_title span {
        font-size: 18px;
        text-align: center;
        line-height: 22px;
    }

    .one_author span {
        font-size: 13px;
    }

    .bibl_div span {
        font-size: 13px;
    }

    .one_description_text {
        font-size: 13px;
    }

    #toggle-btn {
        font-size: 13px;
    }

    .access_div {
        flex-wrap: wrap;
        column-gap: 20px;
    }

    .f_line label,
    .s_line label {
        font-size: 14px;
    }

    .one_type_access_div_mobile {
        display: block;
        text-align: center;
        margin-bottom: 7px;
    }

    .one_type_access_div {
        display: none;
    }

    .author_title_div {
        display: flex;
        flex-direction: column-reverse;
    }

    .search_clear_button {
        right: 120px;
    }

    .slick-dots li {
        width: 10px !important;
        margin: 0 !important;
    }

    .slick-dots li button:before {
        width: 6px !important;
        height: 6px !important;
        font-size: 6px !important;
    }

    .bibl_a_small {
        display: block;
        font-family: 'Lato';
        font-style: normal;
        font-weight: 400;
        font-size: 10px;
        line-height: 12px;
        color: rgba(125, 142, 152, 0.75);
        margin-top: 2px;
        margin-bottom: 10px;
    }

    .bibl_a_big {
        display: none;
    }

    .more_buttons {
        margin-top: 10px;
    }
    .one_competent {
        width: 90%;
    }
    .author_clear_button, .year_clear_button {
        top: 23px;
    }
}