:root {
    --main-color: #072129;
    --transparent-color: rgba(20, 158, 198, 0.7);
    --section-padding: 100px;
}

* {
    margin: 0;
    padding: 0;
}

/*стили из html*/

.s0 {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
}

.s0B {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
}

.s0C {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
}

.s0BC {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
}

.s1 {
    font-family: "Courier New", monospace;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
    white-space: pre;
}

.s1B {
    font-family: "Courier New", monospace;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
    white-space: pre;
}

.s1C {
    font-family: "Courier New", monospace;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
    white-space: pre;
}

.s1BC {
    font-family: "Courier New", monospace;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
    white-space: pre;
}

.s2 {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
}

.s2B {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
}

.s2C {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
}

.s2BC {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
}

.s3 {
    font-family: "Courier New", monospace;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
    white-space: pre;
}

.s3B {
    font-family: "Courier New", monospace;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
    white-space: pre;
}

.s3C {
    font-family: "Courier New", monospace;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
    white-space: pre;
}

.s3BC {
    font-family: "Courier New", monospace;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
    white-space: pre;
}

.s4 {
    font-family: "Courier New", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
}

.s4B {
    font-family: "Courier New", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
}

.s4C {
    font-family: "Courier New", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
}

.s4BC {
    font-family: "Courier New", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
}

.s5 {
    font-family: "Tahoma", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
}

.s5B {
    font-family: "Tahoma", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
}

.s5C {
    font-family: "Tahoma", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
}

.s5BC {
    font-family: "Tahoma", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
}

.s6 {
    font-family: "Tahoma", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 11pt;
}

.s6B {
    font-family: "Tahoma", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 11pt;
}

.s6C {
    font-family: "Tahoma", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 11pt;
}

.s6BC {
    font-family: "Tahoma", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 11pt;
}

.s7 {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
}

.s7B {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
}

.s7C {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
}

.s7BC {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
}

.s7 {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: normal;
    font-size: 10pt;
}

.s7B {
    font-family: "Arial", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 10pt;
}

.s7C {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: normal;
    font-size: 10pt;
}

.s7BC {
    font-family: "Arial", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 10pt;
}

.aC {
    text-align: center;
}

.aR {
    text-align: right;
}

.aJ {
    text-align: justify;
}

.aL {
    text-align: left;
}

.bH {
    padding: 5pt 0pt 5pt 0pt;
}

.bG {
}

.bC {
}

.bB {
    padding: 5pt 0pt 5pt 0pt;
}

.bD {
    padding: 5pt 2pt 5pt 2pt;
}

.iF {
    text-indent: 40pt;
}

.rC {
    text-decoration: none;
}

.lS {
    height: 2pt;
}

.hC {
    border-left: solid 1pt;
    border-right: solid 1pt;
    border-top: solid 1pt;
    border-bottom: solid 1pt;
}

.tC {
    display: table-cell;
}

.mI {
    text-align: right;
    padding-right: 0.9em;
}

.s5 {
    text-align: center;
}

/*стили из html*/


/* Стили для меню */
.menu {
    background-color: #333;
    overflow: hidden;
}

.menu a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* Стили для футтера */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}

/* Стили для дивов, имитирующих таблицу */
.table {
    width: 80%;
    margin: 20px auto;
}

.row {
    display: flex;
}

.cell, .cell_otmenen {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.cell_otmenen {
    display: flex;
    align-items: center; /* Выравнивает содержимое по вертикали */
    justify-content: center;
    text-align: center;
}

.header-cell {
    background-color: #f2f2f2;
    text-align: center; /* Центрирование текста в заголовках */
}

/* Задаем ширину столбцов */
.cell:nth-child(1) {
    width: 60px; /* Первый столбец не более 20 пикселей */
}

.cell:nth-child(3), .cell_otmenen {
    width: 80px; /* Последний столбец не более 30 пикселей */
}

.cell:not(:first-child):not(:last-child) {
    flex: 1; /* Второй столбец на все оставшуюся ширину */
    display: flex;
    align-items: center; /* Выравнивает содержимое по вертикали */
    justify-content: center;
    text-align: center;
}

.head_div, .footer_div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.div_linc_top, .div_linc_end {
    display: flex;
    flex-direction: row;
    margin: auto;
    justify-content: center; /* Выравнивание содержимого по горизонтали */
    flex-wrap: wrap;
}

.div_linc_top_in, .div_linc_end_in {
    margin: 2px;
}

.div_linc_end_in_activ, .div_linc_top_in_activ {
    font-weight: bold;
}


.cell_otmenen a {
    color: brown !important;
}


.back_doc a {
    margin-bottom: 20px /* используем !important для усиления приоритета */
}


.div_cat,
.back_doc a {
    width: 100%;
    background-color: #C9C9FC;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 5px;
    min-height: 20px;
    padding: 0 10px 0 10px;


}

/*див для справки*/

/*ширина основного блока*/
.contener_cat_list, .contener_doc, header {
    max-width: 1000px;
    margin: auto;
}

.contener_likbez {
    max-width: 800px;
    margin: auto;
}

/*ширина основного блока*/

body {
    margin: auto 10px;
}

.contener_doc table[style*="width"] {
    width: 100% !important; /* Применяем ширину 100% к таблице */
    table-layout: auto !important; /* Устанавливаем автоматический режим распределения ширины */
    max-width: 100%; /* Ограничиваем максимальную ширину таблицы шириной контейнера */
    hyphens: auto;
    font-size: 3px !important;
}


colgroup col {
    max-width: 5px !important;
    width: 5px !important;
    hyphens: auto;
    font-size: 3px !important;
}

a[href] {
    text-decoration: none; /* Убирает подчеркивание */
    /*color: inherit; !* Применяет цвет текста от родительского элемента *!*/
    color: rgba(35, 64, 182, 0.9);
    /* Дополнительные стили, если необходимо */
}

a[href]:hover {
    border-bottom: 1px dashed #33a3a3;
    color: rgba(7, 76, 70, 0.91);
    /* Дополнительные стили при наведении, если необходимо */
}

/*шапка js*/
/* Start Header */
header {

    /*background-color: rgb(15 116 143 / 70%);*/
    left: 0;
    width: 100%;
    z-index: 2;
    margin-bottom: 10px;
}

.row.header {
    background-color: initial;
    grid-gap: initial;
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 97px;
    padding-right: 15px;
}

header .container::after {
    content: "";
    position: absolute;
    height: 1px;
    background-color: #a2a2a2;
    bottom: 0;
    width: calc(100% - 30px);
    left: 15px;
}

.logo img {
    height: 100%;
    padding-left: 3px;
    padding-top: 3px;
    /*margin-top: 0px;*/
}

header nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

header nav .toggle-menu {
    color: white;
    font-size: 22px;
}

@media (min-width: 768px) {
    header nav .toggle-menu {
        display: none;
    }
}

header nav ul {
    display: flex;
    z-index: 1;
}

header nav ul li a.active,
header nav ul li a:hover {
    color: var(--main-color) !important;
    border-bottom: 1px solid var(--main-color) !important;
    z-index: 1;
}


@media (max-width: 767px) {
    header nav ul {
        display: none;
    }

    .section_one_line,
    .section_two_line {
        flex-basis: calc(33.33% - 10px); /* 3 ячейки в строке при ширине экрана менее 738px */
    }

    header nav .toggle-menu:hover + ul,
    header nav .toggle-menu + ul:hover {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgb(0 0 0 / 80%);
    }

    header nav ul li a {
        padding: 15px !important;
    }

    header nav ul li a.active {
        color: rgba(255, 0, 0, 0.71) !important;
    }

    .table_doc {
        font-size: 12px;
    }

    /* Задаем ширину столбцов */
    .cell:nth-child(1) {
        width: 35px; /* Первый столбец не более 20 пикселей */
    }

    .cell:nth-child(3), .cell_otmenen {
        width: 55px; /* Последний столбец не более 30 пикселей */
    }

    .table_cat {
        font-size: 12px;
    }
}

@media (max-width: 370px) {
    .table_cat {
        font-size: 12px;
    }
}

header nav ul li a {
    padding: 40px 10px;
    display: block;
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    position: relative;
    z-index: 2;
}

header nav .form {
    width: 40px;
    height: 30px;
    position: relative;
    margin-left: 30px;
    border-left: 1px solid white;
}

header nav .form i {
    color: white;
    position: absolute;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

/*поиск див*/

.search_div {
    display: none;
    margin-bottom: 10px;
    max-width: 1000px;
    width: 100%;
    height: 30px;
    border: solid 1px #b18a8a;
    margin-left: auto;
    margin-right: auto;
}


ul {
    list-style: none;
}

.fa-search:before {
    content: "\f002"
}

.fa-bars:before {
    content: "\f0c9"
}

.logo img {
    height: 100%;
    padding-left: 3px;
    padding-top: 3px;
    /*margin-top: 0px;*/
}

.form {
    cursor: pointer;
}


@media (max-width: 810px) {
    header nav ul li a {
        font-size: 12px;
    }
}

@font-face {
    font-family: "Font Awesome 5 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(../webfonts/fa-brands-400.eot);
    src: url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"), url(../webfonts/fa-brands-400.woff2) format("woff2"), url(../webfonts/fa-brands-400.woff) format("woff"), url(../webfonts/fa-brands-400.ttf) format("truetype"), url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")
}

.fab {
    font-family: "Font Awesome 5 Brands", serif
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(../webfonts/fa-regular-400.eot);
    src: url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"), url(../webfonts/fa-regular-400.woff2) format("woff2"), url(../webfonts/fa-regular-400.woff) format("woff"), url(../webfonts/fa-regular-400.ttf) format("truetype"), url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")
}

.fab, .far {
    font-weight: 400
}

@font-face {
    font-family: "Font Awesome 5 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url(../webfonts/fa-solid-900.eot);
    src: url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"), url(../webfonts/fa-solid-900.woff2) format("woff2"), url(../webfonts/fa-solid-900.woff) format("woff"), url(../webfonts/fa-solid-900.ttf) format("truetype"), url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")
}

.fa, .far, .fas {
    font-family: "Font Awesome 5 Free", serif;
    font-weight: 900;
    font-style: normal;
}


/*поиск див*/

/*шапка js*/

/* Start Footer */
.footer {
    padding-top: calc(var(--section-padding) / 2);
    padding-bottom: calc(var(--section-padding) / 2);
    background-image: url("../images/subscribe.jpg");
    background-size: cover;
    position: relative;
    color: white;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

.footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 70%);
}

.footer img {
    margin-bottom: 20px;
    padding-top: 20px;
}

.footer p:not(.copyright) {
    text-transform: uppercase;
    padding: 20px;
    border-bottom: 1px solid white;
    font-size: 22px;
    width: fit-content;
    margin: 20px auto;
}

.footer .social-icons i {
    padding: 10px 15px;
}

.footer .copyright {
    margin-top: 60px;
}

.footer .copyright span {
    font-weight: bold;
    color: var(--transparent-color);
}

.footer .container {
    position: relative;
}


/* End Footer */

.row > .cell:first-child,
.row > .cell:last-child {
    display: flex;
    align-items: center; /* Выравнивает содержимое по вертикали */
    justify-content: center;
    text-align: center;
 }

.table_doc {
    hyphens: auto;
}

/*две строчки шапки*/

.container_two_line {
    max-width: 1000px;
    margin: 0 auto 5px;
}

.inner-container_one_line,
.inner-container_two_line {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.section_one_line,
.section_two_line {

    flex: 1 0 calc(12% - 10px); /* 6 ячеек в строке */
    height: 40px;
    margin: 2px;
}

.inner-container_one_line a,
.inner-container_two_line a {
    background-color: var(--transparent-color);
    box-sizing: border-box;
    text-align: justify;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 12px;
    height: 100%;
    width: 100%;
    font-weight: bold;

    &:hover {
        background-color: rgba(8, 84, 104, 0.7);
    }
}

/* Медиа-запрос для уменьшения количества ячеек в строке при ширине экрана менее 738px */
@media (max-width: 767px) {
    .section_one_line,
    .section_two_line {
        flex: 1 0 calc(20% - 10px); /* Каждая ячейка занимает 50% ширины строки с учетом отступов */
    }

    .section_two_line {
        display: none;
    }

    .inner-container_one_line a,
    .inner-container_two_line a {
        font-size: 10px;
        text-align: justify;
        justify-content: center;
        align-items: center;
        padding-right: 2px;
        padding-left: 2px;
    }
}

@media (max-width: 400px) {
    .inner-container_one_line a,
    .inner-container_two_line a {
        font-size: 8px;
    }
}

/*две строчки шапки*/

/*код для справки по документу*/
.open_likbez {
    max-width: 100%; /* Ширина контейнера */
    margin: 0 auto; /* Центрируем контейнер по горизонтали */
    text-align: center; /* Центрируем содержимое по центру */
}


summary::-webkit-details-marker { display: none; }
summary::-moz-list-bullet { list-style-type: none; }
summary::marker { display: none; }

.details_norm {
    margin-bottom: .5rem;
    border-radius: 5px !important; /* скругляем углы */
    box-shadow: none !important;
}

.summary_norm {
    padding: .3em 2em .3em 2em; /* Добавляем больший padding, чтобы было место для иконок */
    display: inline-block;
    font-size: 1.2em;
    cursor: pointer;
    position: relative;
    text-align: center; /* Центрируем текст в summary */
    background-color: #C9C9FC !important; /* устанавливаем цвет фона */
    border-radius: 5px !important; /* скругляем углы */
    border: 1px solid black !important; /* устанавливаем границу */
    width: auto;
    margin-top: 5px;
}

summary:before, summary:after {
    color: transparent;
    background: url("data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjM0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz48L3N2Zz4=") no-repeat 50% 50% / 1em 1em;
    width: 1em;
    height: 1em;
    content: "";
    position: absolute;
    transition: transform .5s;
}

summary:before {
    left: 0; /* Позиционируем иконку слева */
    top: 50%;
    transform: translateY(-50%); /* Центрируем иконку по вертикали */
}

summary:after {
    right: 0; /* Позиционируем иконку справа */
    top: 50%;
    transform: translateY(-50%) rotateZ(180deg); /* Центрируем иконку по вертикали и разворачиваем на 180 градусов */
}

details[open] > summary:before, details[open] > summary:after {
    transform: translateY(-50%) rotateZ(90deg); /* Поворачиваем иконки на 90 градусов при раскрытии */
}

summary ~ * {
    padding: 0 1em 0 1em;
}

details[open] summary ~ * {
    animation: sweep .5s ease-in-out;
}

@keyframes sweep {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

summary:focus {
    outline: 0;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 2px rgba(0, 0, 0, 0.3);
    /*margin-bottom: 1em;*/
}

summary:hover {
    background-color: #9090ff !important; /* устанавливаем цвет фона */
    border-radius: 5px !important; /* скругляем углы */
    border: 1px solid black !important; /* устанавливаем границу */
}
/*код для справки по документу*/

/*код для таблиц, которые шире экрана*/
.table-container {
    width: 100%;
    overflow-x: auto;
}

/*код для таблиц, которые шире экрана*/

/*код для спана с крошками*/
.crumbs_span {
    margin-bottom: 10px
}
/*код для спана с крошками*/


 .red_list a {
     display: block;
 }
