@font-face {
    font-family: Google Sans;
    src: url('fonts/GoogleSans-Regular.woff2') format(woff2),
    url('fonts/GoogleSans-Regular.woff') format(woff),
    url('fonts/GoogleSans-Regular.ttf') format(ttf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    src: url('fonts/GilroyRegular.woff2') format(woff2),
    url('fonts/GilroyRegular.woff') format(woff);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    src: url('fonts/GilroyMedium.woff2') format(woff2),
    url('fonts/GilroyMedium.woff') format(woff);
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    src: url('fonts/GilroyBold.woff2') format(woff2),
    url('fonts/GilroyBold.woff') format(woff);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: Gilroy;
    src: url('fonts/GilroyExtraBold.woff2') format(woff2),
    url('fonts/GilroyExtraBold.woff') format(woff);
    font-weight: 800;
    font-style: normal;
}

:root {
    --indent: 14.4rem;
    --angle: -5deg;
    --negative-indent: -9.6rem;
    --font-family: 'Gilroy', sans-serif;
}

html,
body {
    height: 100%;
    font-size: 10px;
    overflow: hidden;
}

body {
    background: url('img/bg_mobile.png');
    background-position: -32rem 50%;
    background-repeat: no-repeat;
    margin: 0;
    background-color: #122ABE;
    font-family: var(--font-family);
    color: #111111;
    display: flex;
}

#bg {
    display: none;
}

.main {
    padding-right: 0;
}

.diagonal {
    background-color: white;
    transform-origin: 0 0;
    transform: rotate(var(--angle)) translate(-2rem);
    backface-visibility: hidden;
    position: fixed;
    height: 150%;
    width: 99%;
    padding-bottom: 16rem;
    transition: all .2s linear;
    top:0;
    left:0;
}

.page {
    transform-origin: 0 0;
    transform: rotate(var(--angle)) translate(-2rem);
    backface-visibility: hidden;
    height: 100%;
    z-index: 10;
    overflow: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem 0 26rem;
    width: 100%;
    flex: 1 0 100%;
    scrollbar-width: none;
}

.page::-webkit-scrollbar {
    display: none;
}

.main a:not([class]) {
    color: #122ABE;
    text-decoration: none;
}

.main a:not([class]):hover {
    text-decoration: underline;
}

.header_logo {
    margin: 1.5rem 0 1.7rem 3rem;
    width: 22rem;
    rotate: 8deg;
}

.header_title {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    max-width: 64rem;
    box-sizing: border-box;
    margin-left: 1.8rem;
}

.header_title h2 {
    font: 700 3rem var(--font-family);
    letter-spacing: -0.03em;
    color: white;
    display: inline;
    vertical-align: top;
    padding: .3rem 0;
    background: #122ABE;
    box-shadow: -1.8rem 0 0 #122ABE, 1.8rem 0 0 #122ABE;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.content {
    color: inherit;
    width: 99%;
}

blockquote {
    margin-inline: 2.4rem;
}

.cite {
    font: bold 2.4rem/3rem var(--font-family);
    letter-spacing: -0.02em;
    color: #111111;
}

figure {
    margin-inline-start: 0;
    margin-inline-end: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.media {
    display: flex;
    flex-direction: column;
    background: white;
    align-items: center;
}

.media_image {
    align-self: center;
    width: 100%;
}

.media_description {
    box-sizing: border-box;
    background-color: inherit;
    color: rgba(18, 42, 190, 0.6);
    font: 1.4rem/2.4rem 'Google Sans', sans-serif;
    width: 82%;
    align-self: end;
    padding: 2rem 2.4rem;
    margin-top: -7.2rem;
    margin-bottom: -1rem;
}

.media_description p {
    margin: 0;
}

.media_title {
    font:600 2.4rem/3rem var(--font-family);
    color: #111111;
    width: min-content;
    margin-bottom: 1.2rem;
}

.media--big {
    padding: 0 2.4rem 0 0;
}

.media--big .media_description {
    margin: 0;
    width: auto;
}

.media--big .media_title {
    width: auto;
}

.media_tagline {
    padding: 2.4rem;
    background: #122ABE;
    margin: -2rem -2.4rem 2.4rem;
    font: 700 2.4rem/3rem var(--font-family);
    color: #fff;
}

.text {
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 2.6rem;
    color: #333333;
    margin-block: 0;
    margin: 2.4rem;
}


.presentation {
    background: #F2F2F2;
    display: grid;
    grid-template-columns: 7.2rem auto;
    grid-auto-rows: min-content;
    align-items: center;
    margin: 2.4rem;
    padding: 2.4rem;
    text-decoration: none;
}

.presentation_title {
    font-size: 2rem;
    line-height: 2.4rem;
    grid-row: 1;
    grid-column: 2;
    margin: 0 0 0 2.4rem;
    color: #111;
}

.presentation_icon {
    width: 7.2rem;
    height: 7.6rem;
    justify-self: left;
    grid-row: 1/ span 2;
}

.presentation_meta {
    font: 400 1.4rem/2.4rem var(--font-family);
    color: rgba(18, 42, 190, 0.6);
    grid-row: 2;
    grid-column: 2;
    margin: 0 0 0 2.4rem;
}

/* Sidebar ========================= */
.sidebar {
    display: none;
    width: 36rem;
}

.news {
    margin-bottom: 3.6rem;
}

.news:last-child {
    margin-bottom: 0;
}

.news_title {
    margin: 1.2rem 0;
    font: 600 2rem/3rem var(--font-family);
}

.news_date {
    font: 1.4rem/2.4rem var(--font-family);
    color: rgba(18, 42, 190, 0.6);
}

.news_content {
    font: 1.6rem/2.8rem var(--font-family);
    color: #666;
    margin: 1.2rem 0;
}


/* Footer ========================== */

.footer {
    display: grid;
    grid-template-columns: 7.2rem auto;
    grid-auto-rows: unset;
    align-items: center;
    padding: 4.3rem 0 9.5rem 2.4rem;
}

.footer_icons,
.footer_nav {
    list-style: none;
    grid-row: 1;
    grid-column: 2;
    display: flex;
    padding: 0;
    margin: 1.6rem 0 0 4.8rem;
}

.footer_icons {
    justify-content: space-between;
    align-self: start;
    width: 16.8rem;
    margin-top: .6rem;
}

.footer_icons li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer_icons .icon {
    display: block;
    width: 2.4rem;
    height: 2.4rem;
    background-color: #767886;
}

.footer_icons .icon:hover {
    opacity: .8;
}

.footer_nav {
    align-self: end;
    list-style: none;
    display: flex;
    font-size: 1.4rem;
    line-height: 2.4rem;
    flex-direction: column;
}

.footer_nav a {
    text-decoration: none;
    color: rgba(0, 0, 0, .2);
}

.footer_nav li {
    margin-right: 1.2rem;
    padding-right: 1.2rem;
}

.footer_nav li:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

.footer_logo {
    width: 7.2rem;
    height: 8.7rem;
}

.copyright {
    display: none;
}

/* Desktop ========================== */
@media screen and (min-width: 980px) {
    :root {
        --angle: -8deg;
    }

    body {
        background-image: none;
    }

    #bg {
        outline: none;
        display: block;
        position: fixed;
        left: -20rem;
        top: -26rem;
        height: 172.8vh !important;
        width: 80vh !important;
        min-height: 135rem;
        min-width: 62.5rem;
    }

    .copyright {
        position: absolute;
        left: 3.5rem;
        top: 50%;
        font-size: 1.4rem;
        line-height: 2.4rem;
        color: rgba(255, 255, 255, .3);
        transform: rotate(-90deg) translate(-50%, 0);
        transform-origin: 0 0;
        display: inline;
    }

    .page {
        transform: rotate(var(--angle)) translate(11.2rem);
        padding: 2rem 0 26rem 9.6rem;
    }

    .diagonal {
        transform: rotate(var(--angle)) translate(20.8rem);
        width: 100%;
    }

    .header_logo {
        margin: 4rem 0 4rem var(--indent);
        padding-top: 5rem;
        width: 36.4rem;
        height: 13.3rem;
    }

    .header_title {
        margin-left: var(--negative-indent);
        padding-left: 1.8rem;
    }

    .header_title h2 {
        font: 700 4.8rem/6rem var(--font-family);
    }

    .header_title:after {
        content: '';
        border-bottom: 0 solid transparent;
        border-left: 9.6rem solid transparent;
        border-right: 0 transparent;
        border-top: 7.8rem solid #0F218D;
        left: 0;
        top: 100%;
        width: 0;
        height: 0;
        position: absolute;
    }

    .main {
        width: 48rem;
        padding-right: 7.2rem;
    }

    .content {
        padding-left: var(--indent);
        display: flex;
    }

    .cite {
        width: 48rem;
        font-size: 2.6rem;
        line-height: 3.4rem;
        margin: 2.4rem 0;
    }

    .media {
        flex-direction: row;
        width: 72rem;
        transform: translate(calc(var(--indent) * -1));
        margin: -2.4rem 0;
        margin-left: var(--negative-indent);
    }

    .media_image {
        align-self: start;
        width: 26.4rem;
        height: 26.4rem;
        object-fit: contain;
        margin: 4.8rem;
    }

    .media_title {
        width: auto;
    }

    .media_description {
        display: flex;
        flex-direction: column;
        align-self: flex-end;
        position: inherit;
        padding: 0;
        margin: 0 0 4.8rem;
    }

    .media:after {
        content: '';
        border-bottom: 0 solid transparent;
        border-left: 9.6rem solid transparent;
        border-right: 0 transparent;
        border-top: 7.8rem solid #0F218D;
        left: 0;
        top: 100%;
        width: 0;
        height: 0;
        position: absolute;
    }

    .media--big {
        display: grid;
        padding: 0;
        grid-template-columns: 1fr 40.8rem;
        grid-template-rows: 1fr 40.8rem;
    }

    .media--big .media_image {
        display: inline;
        width: auto;
        height: auto;
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .media--big .media_description {
        grid-column: 2;
        grid-row: 2;
        padding:0 0 4.8rem 4.8rem;
    }

    .media_tagline {
        margin: 0;
        padding: 4.8rem 2.4rem 4.8rem 7.2rem;
        margin-left: calc(-1 * (4.8rem + 7.2rem));
        margin-bottom: 4.8rem;
        position: relative;
    }

    .media_tagline:after {
        content: '';
        border-bottom: 0 solid transparent;
        border-left: 7.2rem solid transparent;
        border-right: 0 transparent;
        border-top: 5.4rem solid #0F218D;
        left: 0;
        top: 100%;
        width: 0;
        height: 0;
        position: absolute;
    }

    .text {
        margin: 2.4rem 0;
    }

    .presentation {
        margin: 0;
    }

    .footer {
        transform:translate(var(--indent));
        padding-left: 0;
    }

    .footer_icons,
    .footer_nav {
        margin: 1.6rem 0 0 4.8rem;
    }

    .footer_nav {
        flex-direction: row;
    }

    .footer_nav li {
        border-right: .1rem solid rgba(0, 0, 0, .1);
    }
}

/* Desktop Large ===================== */
@media screen and (min-width: 1420px) {
    .sidebar {
        display: block;
        width: auto;
        max-width: 36rem;
        position: sticky;
        border-left: .1rem solid #E5E5E5;
        padding-left: 7.2rem;
        align-self: flex-start;
        top: 20rem;
        right: 0;
    }
}

/* Desktop Extra Large =============== */
@media screen and (min-width: 1600px) {
    html,
    body {
        font-size: .7vw;
    }
}


/* Menu ============================== */
.menu_button {
    background: none;
    padding: 0;
    border: none;
    position: fixed;
    z-index: 11;
    transition: all .2s linear;
}

.menu_button img {
    width: 100%;
    height: 100%;
}

.menu_open {
    transform: scale(37%);
    transform-origin: 100% 0;
    top: 1rem;
    right: -.2rem;
}

.menu_close {
    top: 2.4rem;
    right: 100%;
    width: 7.7rem;
    height: 4.4rem;
}

.is-menu-open .menu_open {
    right: -100%;
}

.is-menu-open .menu_close {
    right: 1.4rem;
}

.is-menu-open .diagonal {
    left: 120%;
}

.menu_page {
    transform: rotate(var(--angle));
    color: #fff;
    height: 100%;
    width: 100vw;
    flex: 1 0 auto;
    margin-left: -100%;
    transition: margin .2s linear;
    display: flex;
    flex-direction: row-reverse;
}

.is-menu-open .menu_page {
    margin-left: 0;
}

nav.menu {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.menu_block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 1rem;
    padding-left: 0;
    margin-block: 0;
}

.menu_block li {
    list-style: none;
    display: inline;
    padding-inline-start: 0;
    margin: 0 0 .6rem;
}

.menu_block a {
    text-decoration: none;
    color: #fff;
}

.menu_language {
    display: block;
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 2.4rem;
    margin: 0 0 3rem -1rem;
}

.menu_language li {
    padding: 0 1rem;
    border-right: solid 0.1rem rgba(255, 255, 255, .15);
}

.menu_language li:last-child {
    border-right: none;
}

.menu_language a:not(.active):hover {
    text-decoration: underline;
}

.menu_navigation {
    letter-spacing: 0.01em;
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 6rem;
}

.menu_cooperation {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 3.4rem;
    margin: 2.4rem 0;
}

.menu_footer {
    display: inline;
}

.menu_nav.footer_nav,
.menu_footer_adress {
    font-size: 1.6rem;
    line-height: 2.6rem;
    color: rgba(255, 255, 255, .5);
}

.menu_footer_adress {
    margin: 0;
}

.menu_nav.footer_nav a {
    color: inherit;
}

.menu_copyright a,
.menu_nav.footer_nav a:not([class]) {
    color: #fff;
    text-decoration: none;
}
.menu_copyright a:hover,
.menu_nav.footer_nav a:not([class]):hover {
    text-decoration: underline;
}

.menu_nav {
    margin: 0;
    flex-direction: row;
}

.menu_nav.footer_nav li {
    border-right: 0.1rem solid rgba(255, 255, 255, .15);
}

.menu_nav.footer_nav li:last-child {
    border-right: none;
}

.menu_nav a:hover {
    opacity: 100%;
}

.menu_block a.active {
    color: rgba(255, 255, 255, .5);
    cursor: default;
    pointer-events: none;
}

.menu_block a.active::after {
    content: none;
}

.menu_icons {
    margin: 1.8rem 0;
    padding-bottom: 1.8rem;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.15);
    padding-right: 30%;
}

.menu_icons.footer_icons .icon {
    width: 2.4rem;
    height: 2.4rem;
    background-color: #3054FF;
}

.menu_copyright {
    font-size: 1.6rem;
    line-height: 2.6rem;
    color: rgba(255, 255, 255, .5);
    text-decoration: none;
}
.menu_copyright p {
    margin: 0;
}

@media screen and (min-width: 980px) {
    .menu_open {
        width: 11.4rem;
        height: 11.7rem;
        transform: none;
        right: 2rem;
        top: 2.4rem;
    }

    .menu_close {
        top: 1rem;
        width: 14.9rem;
        height: 8.6rem;
    }

    .is-menu-open .menu_close {
        right: 25%;
    }

    .menu_page {
        width: 75%;
        flex: 1 0 75%;
        margin-left: -75%;
    }


    .is-menu-open .diagonal {
        transform: rotate(var(--angle)) translate(0);
        left: 75%;
        display: block;
    }

    .is-menu-open .page {
        display: block;
        margin-left: -21rem;
    }

    .menu_navigation a,
    .menu_cooperation a {
        position: relative;
    }

    .menu_navigation a::after,
    .menu_cooperation a::after {
        display: block;
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 2.3rem;
        left: 0;
        bottom: .3rem;
        background-color: #0f218d;
        transform-origin: bottom left;
        transition: transform 0.25s cubic-bezier(0.39, 0.37, 0.68, 0.86);
        z-index: -10;
    }

    .menu_cooperation a::after {
        height: 1.25rem;
        bottom: 0;
    }

    .menu_cooperation a:hover::after,
    .menu_navigation a:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }
}

/* Error ============================= */
.error_page {
    color: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.error_page .error {
    transform: rotate(var(--angle));
    transform-origin: 0 0;
    width: 33.5rem;
}

.error_message {
    font-size: 4.8rem;
    line-height: 1;
    margin: 0 0 2.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.error_explain {
    max-width: 75%;
    font-size: 1.6rem;
    line-height: 2.6rem;
    font-weight: 500;
    margin: 2.4rem 0;
    opacity: .5;
}

.error_footer {
    font-size: 2.6rem;
    line-height: 3.4rem;
    font-weight: 700;
}

.error_footer a {
    color: #fff;
    text-decoration: none;
}

@media screen and (min-width: 980px) {
    .error_page .error {
        position: relative;
        left: 10%;
        width: 36rem;
    }

    .error_message {
        font-size: 6rem;
    }

    .error_footer {
        max-width: 50%;
    }
}