:root {
    --text-color-default: #253350;
    --h1-color: rgb(224, 123, 4);
    --link-color: rgb(46, 119, 185);
    --sub-menu-link-color: #3F3F3F;
    --blue-line-bg: #83B6DB;
    --selectable-line-hover-bg: #eee;
    --form-link-bg: #f9fbfd;
    --form-link-hover-bg: #eef5fb;
    --form-link-focus-border: #1a5e9e;
    --closed-group-bg: #ffe0e0;
    --closed-group-border: #d60000;
    --document-closed-text: #b00000;
    --document-closed-icon: #d60000;
    --ball-link-bg: #e3f2fd;
    --ball-link-border: #1a5e9e;
    --ball-link-hover-bg: var(--form-link-hover-bg);
    --footer2-text: #232323;
    --footer-bg: #444444;
    --footer-text: white;
    --header-bg: #1d233a;
    --menu-bg: #ffffff;
    --menu-link-bg: #464e6a;
    --menu-link-hover-bg: #6a7a9a;
    --button-arrow-bg: #5a6a8a;
    --button-links-bg: #2a324a;
    --button-links-hover-bg: #3a4a6a;
    --light-stripe-bg: #ffffff;
}

body {
    color: var(--text-color-default);
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    overflow-x: hidden;
}

#main {
    background: white;
    color: var(--text-color-default);
    min-height: 100vh;
}

#container {
    width: 100%;
    margin: 0 auto;
    background: white;
    box-sizing: border-box;
}

.header {
    background: #1d233a;
    padding: 20px 0;
    width: 100%;
}

.header__wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.logo {
    height: 60px;
    max-width: 100%;
}

.header__links {
    background: var(--button-links-bg);
    color: white;
    font-size: 16px;
    font-weight: normal;
    padding: 10px 20px;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

    .header__links:hover {
        background: url(img/button-corner.svg) top left no-repeat var(--button-links-hover-bg);
        background-size: contain;
    }

.button {
    background: var(--menu-link-bg);
    border: none;
    color: #f9fcff;
    font-weight: bold;
    padding: 7px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button--corner {
    background: url(img/button-corner.svg) top left no-repeat var(--button-links-bg);
    background-size: contain;
    padding-left: 30px;
}

.header__links-circle {
    border-radius: 100%;
    background: var(--button-arrow-bg);
    display: flex;
    margin-left: 5px;
    justify-content: center;
    align-items: center;
    padding: 4px;
    width: 20px;
    height: 20px;
}

.header__links-arrow {
    width: 12px;
    height: 12px;
}

.menu {
    background: var(--menu-link-bg);
    padding: 0;
    width: 100%;
}

.menu__wrapper {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.menu__block {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

    .menu__block li {
        flex: 1;
        text-align: center;
    }

.menu__link {
    background: none;
    color: white;
    font-weight: 600;
    padding: 16px 0;
    text-decoration: none;
    display: block;
    border: none;
    margin: 0;
    font-size: 15px;
    transition: background 0.2s ease;
}

    .menu__link:hover {
        background: rgba(255, 255, 255, 0.1);
    }

#content {
    max-width: 990px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    text-align: left;
    box-sizing: border-box;
}

    #content h1 {
        animation: fadeIn 0.8s ease-out both;
        font-size: 26px;
    }

    #content strong {
        display: inline-block;
        text-align: left;
        font-size: 18px;
        margin: 1rem 0;
        padding: 0.5rem 1rem;
        background-color: #F4FAFF;
        border-left: 4px solid var(--header-bg);
        animation: fadeIn 1s ease-out both 0.2s;
    }

#footer2 {
    background: var(--menu-link-bg);
    min-height: 60px;
    text-align: center;
    color: var(--footer-text);
    width: 100%;
}

#foot2 {
    background: none repeat scroll 0 0 var(--footer2-bg);
    line-height: 22px;
    margin: auto;
    padding: 0;
}

    #foot2 p {
        font-size: 14px;
        line-height: 22px;
        margin: 0;
        padding: 12px 15px;
        text-align: center;
        color: var(--footer-text);
        width: 100%;
        box-sizing: border-box;
    }

#footer {
    background: var(--footer-bg);
    min-height: 40px;
    text-align: center;
    width: 100%;
}

#foot {
    background: none repeat scroll 0 0 var(--footer-bg);
    line-height: 22px;
    margin: auto;
    padding: 0;
}

    #foot p {
        color: var(--footer-text);
        font-size: 12px;
        line-height: 22px;
        margin: 0;
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
    }

.page_links {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

    .page_links li {
        clear: both;
    }

.forms_list {
    list-style: none;
    text-align: left;
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

    .forms_list li {
        margin-top: 12px;
        display: block;
    }

        .forms_list li.has-ball a:hover {
            background-color: var(--form-link-hover-bg);
        }

    .forms_list a {
        display: block;
        padding: 6px 16px;
        background-color: var(--form-link-bg);
        color: #333;
        text-decoration: none;
        font-size: 15px;
        border-left: 4px solid var(--menu-link-bg);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

        .forms_list a:hover {
            background-color: var(--form-link-hover-bg);
            transform: translateX(4px);
        }

        .forms_list a:focus {
            outline: none;
            box-shadow: 0 0 0 2px rgba(131, 182, 219, 0.5);
            border-left-color: var(--form-link-focus-border);
        }

    .forms_list strong.info {
        display: block;
        margin-top: 24px;
        font-size: 14px;
        color: #2d344d;
    }

    .forms_list .ball-link {
        background-color: var(--ball-link-bg);
        border-left-color: var(--ball-link-border);
        transition: all 0.3s ease;
    }

.stat-group li.has-ball:nth-of-type(2) > a {
    font-weight: 600;
    font-style: italic;
}


.forms_list .ball-link:hover {
    background-color: var(--ball-link-hover-bg);
    transform: translateX(4px);
}

.closed-group .document-closed {
    margin: 12px 0 0 32px;
    color: var(--document-closed-text);
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

    .closed-group .document-closed::before {
        content: "";
        position: absolute;
        left: -26px;
        top: 2px;
        width: 16px;
        height: 16px;
        background: var(--document-closed-icon);
        border-radius: 4px;
        box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
    }

.closed-group .forms_list a {
    border-left-color: var(--closed-group-border) !important;
}

.stat-group {
    margin-bottom: 20px;
}

    .stat-group + .stat-group {
        margin-bottom: 20px;
    }


    .stat-group:has(.has-ball) {
        margin-bottom: 30px;
    }

table {
    text-align: center;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #C0DCF9;
    width: 100%;
    box-sizing: border-box;
}

td, th {
    padding: 4px 8px;
    border: 1px solid #E3ECF7;
}

tr:nth-child(even):not(.all):not(.itogo):not(.tehn):not(.econom):not(.thead) {
    background-color: #F4FAFF;
}

tr:hover:not(.all):not(.itogo):not(.tehn):not(.econom):not(.thead) td:not([rowspan]) {
    background-color: #EBF4FD;
}

tr.all {
    background-color: #BEE3F9;
    font-weight: 600;
}

tr.itogo {
    background-color: #2A7FAB;
    font-weight: 600;
    color: #fff;
}

tr.tehn,
tr.econom {
    font-weight: 600;
}

    tr.tehn td,
    tr.econom td {
        background-color: #A6D7F0;
    }

    tr.tehn:hover td,
    tr.econom:hover td {
        background-color: #A6D7F0;
    }

tr.thead {
    background-color: #D9E7F7;
    font-weight: 600;
}

    tr.thead + tr.thead {
        background-color: #ffffff;
        color: #333;
    }

        tr.thead + tr.thead td,
        tr.thead + tr.thead th {
            border-bottom: 1px solid #C0DCF9;
        }

        tr.thead + tr.thead:hover td {
            background-color: #EBF4FD;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header__wrapper,
    .menu__wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .header__links {
        padding: 8px 12px;
        margin-right: 10px;
        font-size: 14px;
        border-radius: 0;
    }

    .logo {
        height: 40px;
    }

    .button {
        height: 27px;
    }

    .menu__block {
        flex-direction: column;
        width: 100%;
    }

        .menu__block li {
            width: 100%;
        }

    .menu__link {
        width: 100%;
        margin: 10px 0;
        padding: 4px 16px;
        text-align: center;
        box-sizing: border-box;
        font-size: 15px;
    }

    #footer2,
    #footer {
        width: 100%;
        box-sizing: border-box;
    }

    #foot2 p,
    #foot p {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        line-height: 22px;
        box-sizing: border-box;
    }

    .page_links {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

    .forms_list {
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }

        .forms_list a {
            padding: 8px 14px;
            font-size: 14px;
        }

        .forms_list strong.info {
            font-size: 13px;
            margin-top: 20px;
        }

    .closed-group .document-closed {
        margin: 12px 0 0 30px;
        font-size: 13px;
    }

        .closed-group .document-closed::before {
            left: -24px;
            width: 14px;
            height: 14px;
        }

    .forms_list a:hover {
        background-color: var(--form-link-bg);
        transform: none;
    }

    .forms_list .ball-link:hover {
        background-color: var(--ball-link-bg);
        transform: none;
    }
}
