@font-face {
    font-family: 'Jost';
    src: url(/fonts/Jost-Regular.ttf) format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Jost';
    src: url(/fonts/Jost-Medium.ttf) format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Jost';
    src: url(/fonts/Jost-VariableFont_wght.ttf) format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background-color: rgb(255, 255, 255);
    color: black;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

main {
    display: flex;
    flex: 1 0 auto;
}

.aside-desktop {
    width: 25%;
    padding-top: 2%;
    padding-right: 3%;
    margin-bottom: 50px;
    padding-left: 3%;
    box-sizing: border-box;
}

.aside-desktop h1 a{
    font-family: "Jost";
    font-weight: 500;
    font-size: 30px;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
}

.aside-desktop h1{
    margin-bottom: 50px;
}

.aside-desktop ul {
    padding-left: 0;
    list-style: none;
    padding-bottom: 12%;
}

.aside-desktop ul li{
    margin-bottom: 7px;
}

.aside-desktop a {
    font-family: "Jost";
    font-weight: 500;
    color: black;
    text-decoration: none;
    font-size: 145%;
}
.aside-desktop a:hover {
    color: rgb(30, 43, 157);
    transition: color 0.3s ease;
}

.header-mobile{
    display: none;
}

.logo {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin-bottom: 15%;
}

section {
    width: 50%;
    padding-top: 0.8%;
    padding-right: 0px;
    margin-left: 5%;
}

p{
    word-wrap: break-word;
    display: flex;
    font-size: 1.2rem;
}

.side-menu {
    display: none;
}

.button-section{
    flex: 1;
    display: flex;
    justify-content: center;
}
.exit-btn{
    background-color: rgba(255, 255, 255, 0);
    border: 3px solid black;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Jost';
    font-size: 17px;
    font-weight: 450;
    color: black;
    margin-top: 50px;
    width: 80px;
    height: 40px;
    cursor: pointer;
}
.exit-btn:hover{
    transform: scale(1.02);
    border: 3px solid rgba(54, 68, 191, 1);
    color: rgba(54, 68, 191, 1);
}

@media (max-width: 599px) {
    * {
        box-sizing: border-box;
    }
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden; /* отключаем горизонтальный скролл */
    }
    html {
        scrollbar-gutter: auto;
    }
    main {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .aside-desktop {
        display: none;
    }
    .header-mobile {
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-family: "Jost";
        align-items: center;
        padding: 15px 20px;
        position: relative;
        z-index: 1001;
    }
    .logo {
        width: 60%;
        height: auto;
        display: block;
        margin-bottom: 0;
    }
    .menu-button {
        width: 20%;
        height: auto;
        background: none;
        border: none;
    }
    .menu-button img{
        width: 100%;
        height: auto;
        transition: transform 0.2s ease;
    }
    .menu-button.active img {
        transform: scale(0.9);
    }
    section {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    .divBox{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    /* Скрытое меню */
    .side-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        padding-top: 35%;
        transition: left 0.2s ease-in-out;
        z-index: 1000;
    }

    .side-menu ul {
        width: 100%;
        padding-left: 0;
        list-style: none;
        padding-bottom: 5%;
    }

    .side-menu a{
        font-family: 'Jost';
        font-weight: 500;
        font-size: 200%;
        margin-left: 20px;
        color: black;
        text-decoration: none;
    }

.side-menu.active {
    left: 0;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 18px;
    background: none;
    border: none;
    color: black;
    font-size: 65px;
    font-weight: 100;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    padding-left: 30px;
    margin: 80px 0 0;
    width: 50%;
}

.menu-list li {
    margin-bottom: 1px;
}

.menu-list a {
    color: black;
    font-family: "Jost";
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    transition: color 0.2s;
}
}
@media (min-width: 600px) and (max-width: 1200px) and (orientation: portrait){
        * {
        box-sizing: border-box;
    }
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    html {
        scrollbar-gutter: auto;
    }
    main {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .aside-desktop {
        display: none;
    }
    .header-mobile {
        width: 100%;
        display: flex;
        justify-content: space-between;
        font-family: "Jost";
        align-items: center;
        padding: 25px 20px;
        position: relative;
        z-index: 1001;
    }
    .logo {
        width: 40%;
        height: auto;
        display: block;
        margin-bottom: 0;
        margin-left: 60px;
    }
    .menu-button {
        width: 14%;
        height: auto;
        background: none;
        border: none;
        margin-right: 40px;
    }
    .menu-button img{
        width: 100%;
        height: auto;
        transition: transform 0.2s ease;
    }
    .menu-button.active img {
        transform: scale(0.9);
    }
    section {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    .divBox{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    /* Скрытое меню */
    .side-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        padding-top: 35%;
        transition: left 0.2s ease-in-out;
        z-index: 1000;
    }

    .side-menu ul {
        width: 100%;
        padding-left: 0;
        list-style: none;
        padding-bottom: 5%;
    }

    .side-menu a{
        font-family: 'Jost';
        font-weight: 500;
        font-size: 200%;
        margin-left: 20px;
        color: black;
        text-decoration: none;
    }

.side-menu.active {
    left: 0;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 18px;
    background: none;
    border: none;
    color: black;
    font-size: 65px;
    font-weight: 100;
    cursor: pointer;
}

.menu-list {
    list-style: none;
    padding-left: 30px;
    margin: 80px 0 0;
    width: 50%;
}

.menu-list li {
    margin-bottom: 1px;
}

.side-menu a {
    color: black;
    font-family: "Jost";
    text-decoration: none;
    font-size: clamp(40px, 7vw, 70px);
    font-weight: 500;
    padding-left: 30px;
    transition: color 0.2s;
}
}