.banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.numbers {
    display: flex;
    justify-content: space-evenly;
    margin: 40px auto 0 auto;
    flex-wrap: wrap;
}

.numbers a {
    color: black;
    border: none;
    width: 210px;
}

.numbers a:hover {
    border: none;
}

.numbers ul {
    text-align: center;
    border-radius: 5px;
    font-size: 25px;
    list-style-type: none;
}

.numbers ul li {
    margin-bottom: 20px;
}

.numbers ul li i {
    width: 30px;
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 100%;
    color: #f8f5e7;
}

.number {
    color: var(--primary-color);
    font-weight: 600;
}

.infoblocks {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.infoblocks h2 {
    color: var(--primary-color);
    font-size: 32px;
}

.infoblocks_text {
    flex-basis: 650px;
    flex-grow: 1;
}

.infoblocks .blocks {
    flex-basis: 650px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    grid-gap: 10px;
}

.infoblocks a {
    flex-basis: 320px;
    flex-grow: 1;
    max-height: 300px;
    position: relative;
    color: var(--primary-color);
    overflow: hidden;
    border: none;
}

.infoblocks img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
    opacity: 0.6;
}

.infoblocks a:hover {
    color: var(--primary-color);
    border: none;
}

.infoblocks a:hover img {
    transform: scale(1.2);
}

.infoblocks span {
    width: 100%;
    position: absolute;
    bottom: 95px;
    text-align: center;
    left: 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 28px;
}

.history {
    text-align: center;
    font-weight: 600;
}

.struktura-ul {
    line-height: 2;
    margin-bottom: 20px;
    list-style-type: none;
}

.struktura-ul li {
    margin-left: 30px;
}

.struktura-ul i {
    margin-right: 10px;
}

.ustav i,
.harakteristikaFondov .fa-caret-right,
.prejskurant i {
    margin: 0 10px 0 15px;
}

.nsa-putevoditeli .top {
    font-size: 18px;
    padding: 30px 0 10px 0 !important;
}

.pricelist {
    display: flex;
    max-width: 930px;
    background-color: #72373714;
    padding: 20px;
    margin: 20px 0 20px 20px;
    align-items: center;
    gap: 5px;
}

.pricelist .name {
    width: 430px;
}

.pricelist .view {
    width: 330px;
    text-align: right;
}

.pricelist .price {
    width: 170px;
    text-align: right;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-color);
}

.prejskurant a {
    border: none;
}

.prejskurant a:hover {
    border: none;
}

.ohrana-truda ul {
    list-style-position: inside;
    line-height: 2;
}

.protivodejstvie-korrupcii h2 a {
    border-bottom: 2px solid var(--accent-color);
}

.protivodejstvie-korrupcii h2 a:hover {
    border-bottom: 2px solid var(--link-hover-color);
}

.protivodejstvie-korrupcii ul {
    line-height: 2;
}

.protivodejstvie-korrupcii ul li {
    margin: 10px 0;
}

.protivodejstvie-korrupcii i {
    margin-left: 5px;
}

.protivodejstvie-korrupcii .table {
    width: 1350px;
}

.print-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--accent-color);
    border-bottom: 1px solid currentColor;
}

.print-btn:hover {
    opacity: 0.7;
}

.document-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tab-ul {
    padding-left: 40px;
    line-height: 2;
}

.title {
    margin-top: 30px;
    max-width: 600px;
}

.title-center {
    text-align: center;
}

.signature {
    margin-top: 20px;
    max-width: 600px;
    display: flex;
    justify-content: space-between;
}

.signature-underline {
    text-decoration: underline;
}

#cpravki-korrupciya:before,
#svedeniyadohody-korrupciya:before,
#metodicheskie-korrupciya:before,
#operativnayainfo-korrupciya:before,
#meryprotivodejstviya-korrupciya:before {
    display: block;
    content: "";
    height: 70px;
    margin: -70px 0 0;
}

.kontakty ul {
    line-height: 2;
    list-style-type: none;
    margin-top: 10px;
}

.kontakty .map {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.map div {
    flex-basis: 650px;
}

.zaglushka {
    text-align: center;
    margin-top: 50px;
}

.zaglushka h1 {
    text-transform: uppercase;
}

.perechen-izdanij ol ul {
    margin-left: 15px;
    list-style-type: disc;
}

.perechen-izdanij ol ul li {
    padding-top: 0;
}

.publikacii-online a {
    border: none;
}

.publikacii-online a:hover {
    border: none;
}

.publikacii-online .header-link {
    border-bottom: 2px solid var(--accent-color);
}

.publikacii-online .header-link:hover {
    border-bottom: 2px solid var(--link-hover-color);
}

.publikacii-online .publikacii-2 {
    display: flex;
    align-items: center;
}

.publikacii-online .publikacii-2 img {
    padding: 10px 0 0 40px;
    width: 180px;
    float: right;
}

/* .publikacii-online a img {
    width: 330px;
    height: 330px;
    object-fit: cover;
    padding: 2px;
} */


.publikacii-online .gallery {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 230px;
}

.publikacii-online a {
    overflow: hidden;
}

.publikacii-online img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;

}

.publikacii-online img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}


.tematicheskie-perechni a {
    color: black;
    border: none;
}

.tematicheskie-perechni a:hover {
    border: none;
}

.tematicheskie-perechni a:hover img {
    opacity: 0.7;
}

.tematicheskie-perechni a:hover p {
    color: var(--link-hover-color);
}

.tematicheskie-perechni .content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin: 30px 0 50px;
}

.tematicheskie-perechni img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
}

.tematicheskie-perechni .card {
    display: flex;
    box-sizing: border-box;
    flex-basis: 415px;
    flex-grow: 1;
    padding: 20px;
    box-shadow: 0px 0px 10px 3px #cfcfcf;
    align-items: center;
}

.tematicheskie-perechni .card p {
    color: var(--accent-color);
}

.spiski-po-starshinstvu-tabel {
    max-width: 1830px;
    /* table-layout: fixed; */
}

.forms-tabel,
.tematicheskie-perechni-table {
    max-width: 1350px;
    table-layout: fixed;
    line-height: 1.5;
}

.spiski-po-starshinstvu-tabel-container {
    padding: 20px;
}

.forms-tabel-filter-container {
    max-width: 1350px;
    margin: 0 auto;
}

.forms-tabel-form {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 5px 20px;
    justify-content: start;
    align-items: center;
    margin-bottom: 20px;
}



.nsa-baza-dannyh {
    max-width: 1600px;
}

.nsa-baza-dannyh ul {
    line-height: 1.5;
}

.nsa-baza-dannyh ul li {
    margin: 10px 0;
}

.nsa-baza-dannyh .table {
    width: 1600px;
}


.nsa-baza-dannyh__vostokgen {
    display: flex;
    gap: 20px 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nsa-baza-dannyh__vostokgen .text {
    flex-basis: 900px;
    flex-grow: 1;
}

.nsa-baza-dannyh__vostokgen img {
    width: 190px;
}

.container-admin {
    width: 100%;
    display: flex;
}

.container-admin .content {
    margin: 0 auto;
    padding: 20px;
}

.container-admin h2 {
    margin: 15px 0;
}

.admin-menu {
    min-width: 250px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
}

.admin-menu a {
    color: white;
}

.admin-menu a:hover {
    opacity: 0.5;
}

.admin-menu h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.admin-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-transform: uppercase;
}

.admin-menu li ul {
    padding-top: 20px;
    padding-left: 40px;
}

.admin-menu .user {
    display: flex;
    justify-content: space-between;
}

.admin-menu .user p {
    display: flex;
    gap: 10px;
}

.admin-menu .user a {
    border-bottom: 1px solid currentColor;
}

.role_list {
    list-style-position: inside;
}

.access_block {
    text-align: center;
}

.access_block h1 {
    font-size: 32px;
}

.access_block p {
    font-size: 20px;
}

.actions-admin {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.error404 h1 {
    font-size: 45px;
    text-align: center;
    text-transform: uppercase;
}


.error404 p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.news-block {
    max-width: 1350px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-block:not(:last-of-type) {
    border-bottom: 1px solid #6c333352;
}

.news-block h2 {
    color: #444;
}

.news-block span {
    color: #444;
    font-size: 14px;
}

.news-block .link-news {
    margin-right: auto;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.btn-news {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.add-news-btn {
    display: flex;
    gap: 10px;
    color: white;
    padding: 10px;
    background-color: var(--accent-color);
    width: 150px;
    cursor: pointer;
    justify-content: center;
    margin-bottom: 20px;
}

.add-news-btn:hover {
    opacity: 0.7;
}

.btn_all_news {
    display: inline-block;
    margin-top: 20px;
}

.layout p {
    margin: 20px 0;
}

@media (width <=768px) {
    .tematicheskie-perechni img {
        width: 100px;
        height: 100px;
    }

    .pricelist .price {
        font-size: 16px;
    }

    .pricelist {
        padding: 10px;
        margin: 20px 0;
    }
}

/* Телефон: в прейскуранте название — отдельной строкой, ниже вид работы и цена; карточки тематических перечней компактнее */
@media (width < 560px) {
    .pricelist {
        flex-wrap: wrap;
    }

    .pricelist .name {
        width: 100%;
    }

    .pricelist .view {
        flex: 1;
        width: auto;
        text-align: left;
    }

    .pricelist .price {
        width: auto;
    }

    .tematicheskie-perechni .card {
        min-width: 0;
        padding: 14px;
    }

    .tematicheskie-perechni .card p {
        hyphens: auto; /* длинные слова («Благотворительность») переносятся по слогам */
    }

    .tematicheskie-perechni img {
        width: 72px;
        height: 72px;
        margin-right: 14px;
    }
}