:root {
    --header-height: 100px;
}

@media screen and (max-width:768px) {
    :root {
        --header-height: 61px;
    }
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.page-main {
    flex-grow: 1;
}

header,
footer {
    flex-shrink: 0;
}

header {
    position: relative;
    background-color: #fff;
    transition: box-shadow 0.2s ease;
}

header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.container {
    width: 100%;
    padding: 0 15px;
    max-width: 1470px;
    margin: 0 auto;

    &>h2:first-child {
        margin-top: 0;
    }

    &>div[id^="bx_incl_area_"]:first-child h2:first-child {
        margin-top: 0;
    }
}

.hero-image {
    margin: calc(var(--size-6) * -1) -15px 50px -15px;
    text-align: center;
}

.no-header .hero-image {
    margin-top: 0px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    max-height: 810px;
    object-fit: cover;
}

.info-panel-wrapper > div > div:first-child {
    margin: 20px 0;
}

.header {
    z-index: 10;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 15px;

    .header__controls {
        display: flex;
        gap: 19px;
    }
}

.header-logo {
    width: 100%;
    max-width: 180px;

    .header-logo__svg {
        width: 100%;
        height: 100%;
    }
}

.header-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17px;

    .header-menu__item {
        display: flex;
        align-items: center;
        transition: color .2s ease;
        position: relative;

        .header-menu__link {
            font-weight: 700;
            text-transform: uppercase;
            text-wrap: nowrap;
            padding: 15px 0;
        }

        .header-menu__arrow {
            font-size: 12px;
            margin-left: 4px;
            color: var(--color-primary);
            transition: color .2s ease;
        }

        .header-menu__submenu {
            display: flex;
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            background: #ffffff;
            box-shadow: 0 0 15px rgba(0,0,0,.1);
            border-radius: 8px;
            padding: 10px;
            flex-direction: column;
            gap: 5px;
            border: 1px solid var(--color-primary);
            width: max-content;
            min-width: 200px;
            pointer-events: none;
            opacity: 0;
            transition: all .3s ease-out;

            .header-menu__submenu-link {
                font-weight: 500;
                padding: 4px 0;
            }
        }

        &:hover {
            color: var(--color-secondary);

            .header-menu__link,
            .header-menu__arrow {
                color: var(--color-secondary);
            }

            .header-menu__submenu {
                pointer-events: all;
                opacity: 1;
                top: calc(100% - 5px);
            }
        }
        &:last-child {
            .header-menu__submenu {
                left: auto;
                right: 0;
            }
        }
    }
}

.header-search {
    .header-search__btn {
        background: none;
        border: none;
        color: var(--color-primary);
        font-size: 16px;
        transition: color .2s ease;

        &:hover {
            color: var(--color-secondary);
            cursor: pointer;
        }
    }
}

.header-language__link {
    font-weight: 700;
}

.header-mobile-menu {
    display: none;
    gap: 9px;
    align-items: center;

    &:hover {
        cursor: pointer;
    }

    .header-mobile-menu__icon {
        font-size: 32px;
    }

    .header-mobile-menu__text {
        text-transform: uppercase;
        font-weight: 700;
        font-size: 16px;
        line-height: 16px;
    }
}

.header-page {
    padding: 20px 0;
    background: var(--color-primary);
    color: #fff;
    margin-bottom: var(--size-6);

    h1 {
        color: var(--color-secondary);
    }
}

h1.index-h1 {
    font-size: 24px;
    font-family: 'PT Root UI';
}

.breadcrumbs {
    display: flex;
    width: 100%;
    max-width: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
    column-gap: var(--size-2);
    row-gap: 30px;
    margin-bottom: 10px;

    & > * {
        position: relative;
        text-wrap: nowrap;
        line-height: 100%;
    }

    .header-page & a {
        color: #fff;

        &:hover {
            text-decoration: underline;
        }
    }

    .header-page & .breadcrumbs__item:not(:first-child):before {
        content: '\2014';
        color: #fff;
        padding-right: var(--size-2);
    }
}

footer {
    background: #E5F0F7;
    margin-top: 50px;
}

.footer {
    padding: var(--size-4) 0 var(--size-4) 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--size-1);
    font-size: 15px;
    font-weight: 500;

    p {
        margin: 0;
        font-size: unset;
    }

    a {
        font-weight: unset;

        &:hover {
            color: unset;
            text-decoration: underline;
        }
    }
}

.footer-menu {
    ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--size-1);
        font-size: 15px;
        font-weight: 500;
        margin: 0;
        padding: 0;
        list-style: none;

        a {
            text-decoration: underline;
        }
    }
    li {
        margin-bottom: 0px;
    }
}

.footer-socials .socials {
    display: flex;
    gap: 15px;
}

.information-mainpage-title {
    font-size: 40px;
    line-height: 1;
    margin-bottom: var(--size-4);
}

.information-mainpage {
    font-size: 24px;
}

@media screen and (max-width:1600px) {
    .header-menu {
        position: relative;
        left: unset;
        transform: unset;
    }
}

@media screen and (max-width: 1200px) {
    .header .header__controls,
    .header-menu {
        display: none;
    }

    .header-mobile-menu {
        display: flex;
    }
}

@media screen and (max-width:768px) {
    .header {
        height: 61px;
    }

    .header-mobile-menu {
        gap: 6px;

        .header-mobile-menu__icon {
            font-size: 18px;
        }

        .header-mobile-menu__text {
            font-size: 14px;
            line-height: 14px;
        }
    }

    .footer {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width: 1200px) {
    .about-info p,
    p {
        font-size: 16px;
        line-height: 22px;
    }

    .container {
        padding: 0 15px;
    }
}

@media screen and (max-width:768px) {
    .header-logo {
        .header-logo__svg {
            max-width: 300px;
        }
    }

    .header-page {
        h1 {
            font-size: 32px;
        }
    }
}

/* Анимации */
._animate {
    --delay: 0s;

    &.delay-1 { --delay: .1s; }
    &.delay-2 { --delay: .2s; }
    &.delay-3 { --delay: .3s; }
    &.delay-4 { --delay: .4s; }
    &.delay-5 { --delay: .5s; }
    &.delay-6 { --delay: .6s; }
    &.delay-7 { --delay: .7s; }
    &.delay-8 { --delay: .8s; }
    &.delay-9 { --delay: .9s; }
    &.delay-10 { --delay: .10s; }

    &.fadeUp {
        transition: opacity .5s ease-in var(--delay), transform .5s ease var(--delay);

        &:not(._animated) {
            opacity: 0;
            transform: translateY(20px);
        }
    }

    &.fadeDown {
        transition: opacity .5s ease-in var(--delay), transform .5s ease var(--delay);

        &:not(._animated) {
            opacity: 0;
            transform: translateY(-20px);
        }
    }

    &.fadeRight {
        transition: opacity .5s ease-in var(--delay), transform .5s ease var(--delay);

        &:not(._animated) {
            opacity: 0;
            transform: translateX(-20px);
        }
    }

    &.fadeLeft {
        transition: opacity .5s ease-in var(--delay), transform .5s ease var(--delay);

        &:not(._animated) {
            opacity: 0;
            transform: translateX(20px);
        }
    }
}

/*стили карточки документа - START*/
.doc-card {
    width: 100%;
    max-width: 460px;
    min-height: 118px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    background-color: #E5F0F7;
    border-radius: 20px;
    font-family: var(--font-regular);
    transition: background-color 0.2s ease;
}

.doc-card:hover {
    background-color: #DDEBF5;
}

.doc-card:hover .doc-card__button {
    background-color: #163663;
}

.doc-card:active {
    background-color: #D1E1EE;
}

.doc-card__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 0 24px 24px;
    height: 100%;
    justify-content: space-between;
}

.doc-card__title {
    margin: 0;
    color: #004077;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.doc-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
}

.badge-doc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 20px;
    background-color: #78DEBF;
    border-radius: 4px;
    color: #004077;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.button-round {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: #1d437a;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.doc-card__info {
    color: #686868;
    font-size: 14px;
    white-space: nowrap;
    line-height: normal;
}

.doc-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: #1d437a;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.doc-card:hover .doc-card__button {
    background-color: #163663;
}
/*стили карточки документа - END*/

/* базовые стили для таблиц - START*/
.table-wrapper {
    line-height: 1.5;
    overflow-x: auto;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    color: var(--color-primary);
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    font-weight: 500;
}

.data-table thead th {
    background-color: #E5F0F7;
    text-align: left;
    padding: 20px 15px;
    font-weight: bold;
    border: none;
    vertical-align: middle;
}

.data-table tbody td {
    padding: 18px 15px;
    vertical-align: top;
    border-bottom: 1px solid transparent;
}

.data-table tbody tr:nth-child(even) {
    background-color: #E5F0F7;
}
/* базовые стили для таблиц - END*/

.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.swiper-button-disabled {
    cursor: no-drop;
    filter: grayscale(1);
    background-color: gray;
}


/* Новости - START */
.press-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr));
    column-gap: var(--size-5);
    row-gap: var(--size-5);
    justify-content: center;
    margin: var(--size-6) 0 var(--size-4) 0;
}

@media (min-width: 1470px) {
    .press-news {
        grid-template-columns: repeat(3, minmax(430px, 1fr));
    }
}

.press-news-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    top: 0;
}

.press-news-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.press-news-item__image-wrapper {
    overflow: hidden;
    position: relative;
}

.press-news-item__image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 16 / 9;
    width: 100%;
    transition: transform 0.5s ease;
}

.press-news-item:hover .press-news-item__image {
    transform: scale(1.03);
}

.press-news-item__header {
    padding: 0 var(--size-4);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    margin: var(--size-3) 0;
}

.press-news-item__tag {
    padding: 0 var(--size-4);
    margin: 0 0 var(--size-3) 0;
}

.press-news-item__content {
    padding: 0 var(--size-4);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    flex: 1;
}

.press-news-item__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: var(--size-4);
    margin-top: auto;
    gap: var(--size-2);
}

.press-news-item__link {
    flex-shrink: 0;
}

.press-news-item__date {
    flex-shrink: 0;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}
/* Новости - END */