@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v19-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v19-cyrillic_cyrillic-ext_latin_latin-ext-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v19-cyrillic_cyrillic-ext_latin_latin-ext-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #111;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.8);
}

input, textarea {
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 20px;
}

a {
    color: #267e54;
    text-decoration: none;
}

.scroll-wrapper {
    overflow-y: scroll;
    height: 100%;
}

.main-wrapper {
    position: relative;
    width: 100%;
    min-width: 250px;
    min-height: 100%;
    margin: 0 auto;
    padding-bottom: 70px;
}

/* Main header */
.main-header {
    position: sticky;
    top: 0;
    background-position: center top;
    background-size: cover;
    border-bottom: 1px solid #ddd;
    z-index: 100;
}

.main-header > .upper {
    top: 0;
    background: rgb(255, 255, 255);
    border-bottom: 1px solid #ddd;
    height: 62px;
}

.main-header > .upper > .middle {
    display: block;
    position: sticky;
    max-width: 1280px;
    height: 62px;
    margin: 0 auto;
    text-align: right;
}

.main-header > .slide {
    display: flex;
    flex-flow: column nowrap;
    max-width: 1280px;
    height: 137px;
    margin: 0 auto;
    padding: 0 0 10px 0;
    justify-content: center;
}

.main-header > .slide > .title {
    display: block;
    margin: 0 0 5px 0;
    color: #444;
    font-size: 24px;
    line-height: 26px;
}

.main-header > .slide > .text {
    display: block;
    color: #383936;
    font-size: 15px;
    line-height: 17px;
}

/* Header navigation */
.header-nav > .logo {
    display: flex;
    position: absolute;
    left: 0;
    top: 15px;
    color: #30312e;
    font-size: 32px;
    font-weight: bold;
    line-height: 30px;
}

.header-nav > .logo > .docs {
    font-size: 24px;
    background-color: rgb(1, 102, 83);
    border-radius: 8px;
    padding: 2px 4px;
    margin-left: 10px;
    color: #fff;
}

.header-nav > .menu {
    display: inline-block;
    vertical-align: middle;
    margin-top: 19px;
    font-size: 0;
}

.header-nav > .menu > li {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 10px;
}

.header-nav > .menu > li > a {
    display: block;
    padding: 5px 5px;
    font-size: 14px;
    line-height: 14px;
    color: #444;
    text-transform: uppercase;
    font-weight: bold;
}

.header-nav > .menu > li:first-child {
    margin-left: 0;
}

.header-nav > .menu > li:hover > a {
    color: #111;
}

.header-nav > .menu > li.active > a {
    color: rgb(1, 102, 83);
}

.header-nav > .languages {
    display: inline-block;
    vertical-align: middle;
    margin: 19px 0 0 15px;
    padding: 0 0 0 15px;
    font-size: 0;
    border-left: 1px solid #ccc;
}

.header-nav > .languages > li {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0 0 5px;
}

.header-nav > .languages > li:first-child {
    margin-left: 0;
}

.header-nav > .languages > li > a {
    display: block;
    padding: 3px 3px;
    font-size: 14px;
    line-height: 14px;
    color: #444;
    text-transform: uppercase;
    font-weight: bold;
}

.header-nav > .languages > li:hover > a {
    color: #111;
}

.header-nav > .languages > li.active > a {
    color: rgb(1, 102, 83);
}

.header-nav > .mobile-trigger {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
}

.header-nav > .mobile-trigger {
    font-size: 0;
    cursor: pointer;
}

.header-nav > .mobile-trigger > .language {
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
    padding: 0 3px;
    font-size: 16px;
    line-height: 16px;
    color: #444;
    text-transform: uppercase;
    font-weight: bold;
}

.header-nav > .mobile-trigger > .icon {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

.header-nav > .mobile-trigger > .icon > img {
    width: 100%;
}

.next-previous-post-nav {
    display: flex;
    align-items: center;
    align-self: flex-end;
    width: 928px;
    margin-top: 40px;

    .button {
        width: 50%;
        margin: 10px 0;
        display: flex;
        border: 1px solid rgb(28 29 29 / 0.15);
        padding: 15px;
        border-radius: 3px;
        transition: all 0.1s ease-out;

        .upper-text {
            font-size: 12px;
            line-height: 20px;
            color: rgb(28 29 29 / 0.64);
        }

        .lower-text {
            font-size: 16px;
            line-height: 20px;
            color: rgb(28 29 29 / 0.87);
        }
    }

    .button:hover {
        border: 1px solid #aaa;
        z-index: 1;
    }

    .next-post {
        color: green;
        flex-direction: column;
        align-items: flex-start;
        margin-left: auto;
    }

    .previous-post {
        color: red;
        flex-direction: column;
        align-items: flex-end;
        margin-right: 16px;
    }

    .button {
        position: relative;
    }

    .next-post::after,
    .previous-post::after {
        content: "";
        position: absolute;
        width: 15px;
        height: 15px;
        opacity: 0.4;
        top: 50%;
        transform: translateY(-50%);
    }

    .next-post::after {
        right: 10px;
        bottom: 10px;
        background: url("../images/icons/right-arrow.svg") no-repeat center center;
    }

    .previous-post::after {
        left: 10px;
        bottom: 10px;
        background: url("../images/icons/left-arrow.svg") no-repeat center center;
    }
}

/* Mobile navigation */
.mobile-nav {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 270px;
    height: 100%;
    padding: 25px 25px;
    background: #f5f5f5;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 3px rgba(0, 0, 0, 0.15);
    z-index: 999;
    overflow-y: auto;
}

.mobile-nav.opened {
    display: block;
}

.mobile-nav > .close {
    position: absolute;
    right: 21px;
    top: 25px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 1;
}

.mobile-nav > .close > img {
    width: 100%;
}

.mobile-nav > .section {
    display: block;
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 24px;
    color: rgb(1, 102, 83);
    font-weight: bold;
    text-transform: uppercase;
}

.mobile-nav > .menu {
    margin: 0 0 35px 0;
}

.mobile-nav > .menu > li {
    display: block;
}

.mobile-nav > .menu > li > a {
    display: block;
    margin: 2px 0;
    padding: 10px 0;
    font-size: 16px;
    line-height: 16px;
    color: #444;
    text-transform: uppercase;
    font-weight: bold;
}

.mobile-nav > .menu > li:hover > a {
    color: rgb(1, 102, 83);
}

.mobile-nav > .menu > li.active > a {
    color: rgb(1, 102, 83);
}

.mobile-nav > .menu .sub-menu {
    margin-left: 20px;
    margin-bottom: 15px;
}

.mobile-nav > .menu .sub-menu li {
    margin-top: 15px;
}

.mobile-nav > .languages > li {
    display: inline-block;
    vertical-align: middle;
}

.mobile-nav > .languages > li > a {
    display: block;
    padding: 5px 12px;
    font-size: 16px;
    line-height: 16px;
    color: #444;
    text-transform: uppercase;
    font-weight: bold;
}

.mobile-nav > .languages > li:first-child > a {
    padding-left: 0;
}

.mobile-nav > .languages > li.active > a {
    color: rgb(1, 102, 83);
}

/* Breadcrumbs */

.breadcrumbs-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 5px;
    padding-bottom: 5px;
}

.breadcrumbs-nav > a {
    color: #444;
}

.breadcrumbs-nav > a:hover {
    color: #111;
}

.breadcrumbs-nav > a.active {
    color: rgb(1, 102, 83);
}

.breadcrumbs-nav > a:not(.active)::after {
    content: "•";
    padding: 0 10px;
    color: #444;
}

/* Main content */
.main-content {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 0;

    .content-wrapper {
        width: 100%;
    }
}

.main-content .page-title {
    display: block;
    margin: 0 0 25px 0;
    font-size: 35px;
    line-height: 35px;
    color: #333;
}

.main-content.with-sidebar {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
}

.main-content.with-sidebar > .module-content {
    display: block;
    flex: 1 1 auto;
    padding-right: 45px;
    width: 500px;
}

.main-content.with-sidebar > .module-sidebar {
    display: block;
    flex: 0 0 auto;
    width: 280px;
}

/* Post list sidebar */
.post-list-sidebar {
    position: sticky;
    top: 93px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    flex: 0 0 270px;
    margin: 0 82px 0 0;
}

.post-list-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.post-list-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.post-list-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.post-list-sidebar > .submenu {
    width: 100%;
}

.post-list-sidebar .submenu .collapse-trigger {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 5px;
}

.post-list-sidebar .submenu li.expanded > a .collapse-trigger {
    transform: rotate(90deg);
}

.post-list-sidebar > .submenu > li {
    width: 100%;
}

.post-list-sidebar > .submenu > li:last-child {
    margin-bottom: 0;
}

.post-list-sidebar > .submenu > li:first-child > p {
    padding-top: 0;
}

.post-list-sidebar > .submenu > li > a {
    display: flex;
    padding: 6px 12px;
    justify-content: space-between;
    font-size: 14px;
    line-height: 20px;
    color: rgb(28 29 29 / 0.64);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.post-list-sidebar > .submenu > li > p {
    padding: 24px 12px 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 16px;
    color: #1c1d1d;
}

.post-list-sidebar .submenu li:hover > a {
    color: #000;
    background-color: #f3f3f3;
    border-radius: 6px;
}

.post-list-sidebar .submenu li:has(.submenu-child li:hover) > a {
    color: color-mix(in oklab, rgb(0 0 0) 64%, transparent) !important;
    background-color: transparent !important;
}

.post-list-sidebar > .submenu > li.active > a {
    color: rgb(1, 102, 83);
    font-weight: 600;
}

.post-list-sidebar > .submenu > li > .icon {
    height: 100%;
    align-content: center;
}

.post-list-sidebar > .submenu-child .collapse-trigger {
    transition: transform 0.2s ease;
    margin-left: 5px;
}

.post-list-sidebar > .submenu-child li.collapsed .collapse-trigger {
    transform: rotate(-90deg);
}

.post-list-sidebar > .submenu > li > a > span > img {
    width: 12px;
    height: 100%;
}

/*submenu-child*/
.post-list-sidebar .submenu-child {
    transition: height 0.2s cubic-bezier(0.33, 1, 0.68, 1);
    overflow: hidden;
    will-change: height;
    padding: 5px 0 5px 22px;
}

.post-list-sidebar .submenu-child > li > a {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 20px;
    color: rgb(28 29 29 / 0.64);
    width: 100%;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.post-list-sidebar .submenu-child > li:hover > a {
    color: #000;
    background-color: #f3f3f3;
    border-radius: 0 6px 6px 0;
    border-left-color: rgb(1, 102, 83);
}

.post-list-sidebar .submenu-child > li.active > a {
    color: rgb(1, 102, 83);
    border-color: rgb(1, 102, 83);
    font-weight: 600;
}

/* Post list levels */
.post-list-sidebar > .submenu > li[data-level="2"] a,
.post-list-sidebar .submenu-child > li[data-level="2"] a {
    padding: 6px 12px 6px 20px;
    border-left: 1px solid color-mix(in oklab, rgb(0 0 0) 14%, transparent);
}

.post-list-sidebar > .submenu > li[data-level="2"] a:hover,
.post-list-sidebar .submenu-child > li[data-level="2"] a:hover,
.post-list-sidebar .submenu-child > li[data-level="2"].active a {
    border-color: rgb(1, 102, 83);
}

.post-list-sidebar > .submenu > li[data-level="3"] a,
.post-list-sidebar .submenu-child > li[data-level="3"] a {
    padding: 6px 12px 6px 20px;
    border-left: 1px solid color-mix(in oklab, rgb(0 0 0) 14%, transparent);
}

.post-list-sidebar > .submenu > li[data-level="3"] a:hover,
.post-list-sidebar .submenu-child > li[data-level="3"] a:hover,
.post-list-sidebar .submenu-child > li[data-level="3"].active a {
    border-color: rgb(1, 102, 83);
}

.post-list-sidebar > .submenu > li[data-level="4"] a,
.post-list-sidebar .submenu-child > li[data-level="4"] a {
    padding: 6px 12px 6px 20px;
    border-left: 1px solid color-mix(in oklab, rgb(0 0 0) 14%, transparent);
}

.post-list-sidebar > .submenu > li[data-level="4"] a:hover,
.post-list-sidebar .submenu-child > li[data-level="4"] a:hover,
.post-list-sidebar .submenu-child > li[data-level="4"].active a {
    border-color: rgb(1, 102, 83);
}

/* Sidebar */
.module-sidebar > .submenu > li {
    display: block;
    margin: 0 0 3px 0;
}

.module-sidebar > .submenu > li:last-child {
    margin-bottom: 0;
}

.module-sidebar > .submenu > li > a {
    display: block;
    padding: 15px 18px;
    font-size: 15px;
    line-height: 17px;
    color: #192853;
    background: #f5f6f6;
    border-left: 4px solid #ddd;
}

.module-sidebar > .submenu > li:hover > a {
    color: #001040;
    border-left-color: rgb(1, 102, 83);
}

.module-sidebar > .submenu > li.active > a {
    color: #001040;
    border-left-color: rgb(1, 102, 83);
}

/* Mobile submenu */
.mobile-submenu {
    display: none;
    margin: 0 0 25px 0;
}

.mobile-submenu > li {
    display: block;
    margin: 0 0 3px 0;
}

.mobile-submenu > li:last-child {
    margin-bottom: 0;
}

.mobile-submenu > li > a {
    display: block;
    padding: 15px 18px;
    font-size: 15px;
    line-height: 17px;
    color: #192853;
    background: #f5f6f6;
    border-left: 4px solid #ddd;
}

.mobile-submenu > li:hover > a {
    color: #001040;
    border-left-color: rgb(1, 102, 83);
}

.mobile-submenu > li.active > a {
    color: #001040;
    border-left-color: rgb(1, 102, 83);
}

/* Main footer */
.main-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #222;
    padding: 15px 0;
}

.main-footer > .bottom {
    display: block;
    max-width: 1280px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    text-align: center;
}

/* cookies */

body > .cookie-popup {
    max-width: 670px;
    padding-inline: clamp(5px, 4vw, 54px);
    padding-block: clamp(5px, 4vw, 40px) clamp(5px, 4vw, 50px);
    border-radius: 8px;
    box-shadow: 0 10px 19px 0 rgba(0, 0, 0, 0.11);
    background: white;
    position: fixed;
    z-index: 100;
    --margin: clamp(5px, 2.5vw, 30px);
    right: var(--margin);
    bottom: var(--margin);
    margin-inline-start: var(--margin);
    margin-block-start: var(--margin);
}

body > .cookie-popup p {
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.69;
    letter-spacing: normal;
    color: #333;
    margin-block-end: 35px;
}

body > .cookie-popup .actions,
body > .cookie-popup .actions button {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: normal;
    letter-spacing: normal;
}

body > .cookie-popup .actions {
    flex-wrap: wrap;
}

body > .cookie-popup .actions button {
    flex-wrap: nowrap;
    height: 42px;
    text-align: center;
    padding-inline: 22px;
    border-radius: 27px;
    border: 0;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-block-start: 20px;
}

body > .cookie-popup .actions button.close {
    background-color: #e5e5e5;
    color: #000;
    margin-inline-end: 10px;
}

body > .cookie-popup .actions button.close:hover {
    background-color: #c5c5c5;
}

body > .cookie-popup .actions button.accept {
    background-color: rgb(1, 102, 83);
    color: white;
}

body > .cookie-popup .actions button.accept:hover {
    background-color: rgb(1, 102, 83);
}

body > .cookie-popup .actions a {
    margin-block-start: 20px;
    margin-inline-start: auto;
    color: rgb(1, 102, 83);
}

body > .cookie-popup .actions a:hover {
    text-decoration: underline;
    color: rgb(1, 102, 83);
}

/* media */

@media all and (max-width: 1300px) {
    .main-header > .upper > .middle {
        width: 100%;
        padding: 0 20px;
    }

    .main-header > .slide {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .header-nav > .logo {
        left: 20px;
    }

    .main-content {
        width: 100%;
        padding: 20px 20px;
    }

    .main-footer > .bottom {
        width: 100%;
        padding: 0 20px;
    }

    .next-previous-post-nav {
        width: 100%;
    }
}

@media all and (max-width: 800px) {
    .header-nav > .menu {
        display: none;
    }

    .header-nav > .languages {
        display: none;
    }

    .header-nav > .mobile-trigger {
        display: block;
    }

    .main-content.with-sidebar > .module-content {
        padding-right: 0;
    }

    .main-content.with-sidebar > .module-sidebar {
        display: none;
    }

    .mobile-submenu {
        display: block;
    }

    .post-list-sidebar {
        display: none;
    }

    .next-previous-post-nav {
        .button {
            height: -webkit-fill-available;
        }

        .previous-post {
            .lower-text {
                text-align: end;
            }
        }
    }
}

@media all and (max-width: 500px) {
    .main-header > .slide > .title {
        font-size: 20px;
        line-height: 22px;
        margin-bottom: 7px;
    }

    .main-header > .slide > .text {
        font-size: 14px;
        line-height: 16px;
    }

    .main-footer > .bottom {
        font-size: 13px;
    }
}

@media all and (max-width: 400px) {
    .mobile-nav {
        width: 75%;
    }

    body > .cookie-popup .actions {
        justify-content: center;
    }

    body > .cookie-popup .actions a {
        margin-inline: 0;
    }
}
