* {
    box-sizing: border-box;
}

#gir {
    position: absolute;
    bottom: -45%;
    left: 0;
    background-image: url("http://lh5.googleusercontent.com/-obNunPiVVd4/VJOuk2f29_I/AAAAAAAAE3Y/SOoFIrFTTkk/s800/gerljanda1.png");
    height: 36px;
    width: 100%;
    overflow: hidden;
    z-index: 99;
}
#nums_1 {
    padding: 100px;
}
.gir_1 {
    background-position: 0 0;
}
.gir_2 {
    background-position: 0 -36px;
}
.gir_3 {
    background-position: 0 -72px;
}

:root {
    --bg: #2e94b9;
    --fg: #17181c;
    --dur: 8s;

    --scale: 1;

    --cover-timing: 0.6s;
    --cover-ease: cubic-bezier(0.66, 0.08, 0.19, 0.97);
    --cover-stagger: 0.15s;

    --text-timing: 0.75s;
    --text-stagger: 0.015s;
    --text-ease: cubic-bezier(0.38, 0.26, 0.05, 1.07);

    --title-stagger: 0.05s;
    --highlight: white;

    --white: #ffffff;
    --bg-white: #ffffff;
    --whitesmoke: #f5f5f5;
    --snow: #f1f7f8;
    --white-opacity05: rgba(255, 255, 255, 0.5);
    --black: black;
    --dark-gray: #2f2f2f;
    --light-gray: #c6c6c6;
    --light-gray-opacity05: rgba(198, 198, 198, 0.5);
    --lighten-gray: #bbbbbb;
    --turquoise: #3bb1d1;
    --contrast-turquoise: #3bb1d1;
    --turquoise-opacity08: rgba(59, 177, 209, 0.8);
    --turquoise-opacity05: rgba(59, 177, 209, 0.5);
    --contrast-turquoise-opacity05: rgba(59, 177, 209, 0.5);
    --dark-turquoise: #2e94b9;
    --text-dark-turquoise: #2e94b9;
    --bg-turquoise: #3bb1d1;
    --text-turquoise: #0279a4;
    --c-text-turquoise: #0279a4;
    --link-dark-turquoise: #0b3e50;
    --text-turquoise-opacity08: rgba(2, 121, 164, 0.8);
    --text-turquoise-opacity05: rgba(2, 121, 164, 0.5);
    --link: #05179e;
    --link_hov: #0320f6;
    --red: #ff0000;
    --black-opacity08: rgba(0, 0, 0, 0.8);
    --black-opacity07: rgba(0, 0, 0, 0.7);
    --black-opacity075: rgba(0, 0, 0, 0.75);
    --black-opacity06: rgba(0, 0, 0, 0.6);
    --black-opacity05: rgba(0, 0, 0, 0.5);
    --black-opacity03: rgba(0, 0, 0, 0.3);
    --black-opacity02: rgba(0, 0, 0, 0.2);
    --black-opacity025: rgba(0, 0, 0, 0.25);
    --black-opacity01: rgba(0, 0, 0, 0.1);
    --black-opacity005: rgba(0, 0, 0, 0.05);
}

.relev {
    flex-shrink: inherit;
    min-height: 18px;
    margin: 10px;
}

.img {
    position: fixed;
    z-index: 90;
    top: 80px;
    left: 0px;
    width: 15vw;
}

.img_d {
    position: fixed;
    z-index: 90;
    top: 80px;
    right: 0px;
    width: 15vw;
    transform: scale(-1, 1);
}

.body_hex {
    background: var(--dark-turquoise);
    color: var(--fg);
    font: bold 1em/1.5 "Comfortaa", sans-serif;
    display: grid;
    place-items: center;
    align-content: center;
    height: 100vh;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 1;
    font-size: calc(20px + (30 - 20) * (100vw - 320px) / (1280 - 320));
    position: relative;
    z-index: 101;
}

.hexagon {
    margin-bottom: 1.5em;
    overflow: hidden;
    position: relative;
    width: 15em;
    height: 15em;
}
.hexagon__group,
.hexagon__sector,
.hexagon__sector:before,
.hexagon__sector:after {
    position: absolute;
}
.hexagon__group {
    width: 100%;
    height: 100%;
}
.hexagon__group:nth-child(2) .hexagon__sector,
.hexagon__group:nth-child(2) .hexagon__sector:before,
.hexagon__group:nth-child(2) .hexagon__sector:after {
    animation-delay: calc(var(--dur) * -1 / 6);
}
.hexagon__group:nth-child(3) .hexagon__sector,
.hexagon__group:nth-child(3) .hexagon__sector:before,
.hexagon__group:nth-child(3) .hexagon__sector:after {
    animation-delay: calc(var(--dur) * -2 / 6);
}
.hexagon__group:nth-child(4) .hexagon__sector,
.hexagon__group:nth-child(4) .hexagon__sector:before,
.hexagon__group:nth-child(4) .hexagon__sector:after {
    animation-delay: calc(var(--dur) * -3 / 6);
}
.hexagon__group:nth-child(5) .hexagon__sector,
.hexagon__group:nth-child(5) .hexagon__sector:before,
.hexagon__group:nth-child(5) .hexagon__sector:after {
    animation-delay: calc(var(--dur) * -4 / 6);
}
.hexagon__group:nth-child(6) .hexagon__sector,
.hexagon__group:nth-child(6) .hexagon__sector:before,
.hexagon__group:nth-child(6) .hexagon__sector:after {
    animation-delay: calc(var(--dur) * -5 / 6);
}
.hexagon__group:nth-child(odd) {
    transform: rotate(30deg);
}
.hexagon__sector,
.hexagon__sector:before,
.hexagon__sector:after {
    animation-duration: var(--dur);
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    /*animation-play-state: paused;*/
    width: 0.2em;
    height: 0.2em;
}
.hexagon__sector {
    animation-name: moveOut1;
    top: calc(50% - 0.1em);
    left: calc(50% - 0.1em);
}
.hexagon__sector:nth-child(2) {
    animation-name: moveOut2;
}
.hexagon__sector:nth-child(3) {
    animation-name: moveOut3;
}
.hexagon__sector:nth-child(4) {
    animation-name: moveOut4;
}
.hexagon__sector:nth-child(5) {
    animation-name: moveOut5;
}
.hexagon__sector:nth-child(6) {
    animation-name: moveOut6;
}
.hexagon__sector:before,
.hexagon__sector:after {
    animation-name: ripple;
    background-color: currentColor;
    border-radius: 0.1em;
    content: "";
    display: block;
    top: 0;
    left: 0;
    transform-origin: 0.1em 0.1em;
}
.hexagon__sector:before {
    transform: rotate(-30deg);
}
.hexagon__sector:after {
    transform: rotate(-150deg);
}

/* Animations */
@keyframes moveOut1 {
    from {
        transform: translateY(0) scale(0);
    }
    3% {
        transform: translateY(0.2em) scale(1);
    }
    97% {
        transform: translateY(7.3em) scale(1);
    }
    to {
        transform: translateY(7.5em) scale(0);
    }
}
@keyframes moveOut2 {
    from {
        transform: rotate(60deg) translateY(0) scale(0);
    }
    3% {
        transform: rotate(60deg) translateY(0.2em) scale(1);
    }
    97% {
        transform: rotate(60deg) translateY(7.3em) scale(1);
    }
    to {
        transform: rotate(60deg) translateY(7.5em) scale(0);
    }
}
@keyframes moveOut3 {
    from {
        transform: rotate(120deg) translateY(0) scale(0);
    }
    3% {
        transform: rotate(120deg) translateY(0.2em) scale(1);
    }
    97% {
        transform: rotate(120deg) translateY(7.3em) scale(1);
    }
    to {
        transform: rotate(120deg) translateY(7.5em) scale(0);
    }
}
@keyframes moveOut4 {
    from {
        transform: rotate(180deg) translateY(0) scale(0);
    }
    3% {
        transform: rotate(180deg) translateY(0.2em) scale(1);
    }
    97% {
        transform: rotate(180deg) translateY(7.3em) scale(1);
    }
    to {
        transform: rotate(180deg) translateY(7.5em) scale(0);
    }
}
@keyframes moveOut5 {
    from {
        transform: rotate(240deg) translateY(0) scale(0);
    }
    3% {
        transform: rotate(240deg) translateY(0.2em) scale(1);
    }
    97% {
        transform: rotate(240deg) translateY(7.3em) scale(1);
    }
    to {
        transform: rotate(240deg) translateY(7.5em) scale(0);
    }
}
@keyframes moveOut6 {
    from {
        transform: rotate(300deg) translateY(0) scale(0);
    }
    3% {
        transform: rotate(300deg) translateY(0.2em) scale(1);
    }
    97% {
        transform: rotate(300deg) translateY(7.3em) scale(1);
    }
    to {
        transform: rotate(300deg) translateY(7.5em) scale(0);
    }
}
@keyframes ripple {
    from,
    to {
        width: 0.2em;
    }
    33% {
        width: 2.4em;
    }
}

@keyframes scale-up-ver-center {
    0% {
        transform: scaleY(0) translateX(100%);
    }

    100% {
        transform: scaleY(1) translateX(-50%);
    }
}

@keyframes scale-dn-ver-center {
    0% {
        transform: scaleY(1) translateX(0);
    }

    100% {
        transform: scaleY(0) translateX(100%);
    }
}

.anim_up {
    animation: scale-up-ver-center 0.6s both;
}

.anim_down {
    animation: scale-dn-ver-center 0.6s both;
}

header {
    width: 100vw;
    height: 80px;
    background-color: var(--dark-turquoise);
    position: sticky;
    top: 0;
    /* z-index: 500; */
    z-index: 100;
    display: flex;
    align-items: center;
}

h1, .hed {
    font-size: 8px;
    color: var(--white);
}
.h1_w {
    color: #2e94b9;
}

.shirma_mail {
    width: 100vw;
    height: 100vh;
    /* position: absolute; */
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--black-opacity07);
    z-index: 103;
    display: none;
}

.user-box {
    width: clamp(280px, 27vw, 390px);
    display: block;
    margin: 0 auto 20px auto;
}

.text_mail {
    width: 100%;
    height: 25vh;
    min-height: 50px;
    max-height: 500px;
    font-size: 16px;
    line-height: normal;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 20px;
    background-color: var(--whitesmoke);
    border: 1px solid var(--white);
    resize: none;
    color: var(--dark-gray);
}

.text_mail::placeholder {
    color: var(--lighten-gray);
}

.user-box textarea:invalid.error {
    border: 1px solid var(--red);
}

.user-box textarea:invalid.error::placeholder {
    color: var(--red);
    opacity: 0.5;
}

.h2_mail {
    width: 100%;
    margin: 20px 0 30px 0;
    color: var(--white);
    text-align: center;
    font-weight: 500;
    font-size: 36px;
    line-height: 44px;
    text-transform: uppercase;
}

.text_error {
    color: var(--white);
    font-size: 24px;
    justify-content: center;
    width: 100%;
    height: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.login-box {
    /*    width: 84vw;*/
    width: 600px;
    /* padding: 3vw; */
    padding: 15px 30px 30px 30px;
    background-color: var(--bg-turquoise);
    background-image: url("/img/mail_ornament.svg");
    background-position: -380px 240px;
    background-repeat: repeat-x;
    box-shadow: 0 15px 25px var(--black-opacity06);
    border-radius: 10px;
    /*    height: calc(90vh - 100px);*/
}

.logo_mail {
    margin: 15px auto 0;
    display: block;
}

.login-box .user-box {
    position: relative;
}

/*.login-box .user-box input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: var(--white);
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid var(--white);
    outline: none;
    background: transparent;
}*/
.user-box label {
    position: absolute;
    top: 0px;
    left: clamp(40px, 2vw, 10px);
    padding: 10px 0;
    font-size: 16px;
    line-height: 23px;
    color: var(--lighten-gray);

    pointer-events: none;
    transition: 0.5s;
}

.user-box input:focus ~ label,
.user-box input:valid ~ label,
.user-box input:invalid ~ label {
    top: -15px;
    font-size: 12px;
}

.user-box input:placeholder-shown ~ label {
    top: 0px;
    font-size: 16px;
}

.user-box input:valid ~ label:not(.error_invalid) {
    color: var(--light-gray-opacity05);
}

.user-box input:invalid.error {
    border: 1px solid var(--red);
}

.user-box input:invalid.error ~ label {
    color: var(--red);
    opacity: 0.5;
}

input.error_invalid {
    border: 1px solid var(--red);
}

label.error_invalid {
    color: var(--red);
    opacity: 0.5;
}

.name1,
.fio {
    width: 100%;
    height: 50px;
    background: var(--whitesmoke);
    border: 1px solid var(--white);
    border-radius: 100px;
    font-size: 18px;
    padding-left: 20px;
}

.submit {
    width: 280px;
    height: 58px;
    border: 2px solid var(--white);
    border-radius: 60px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s;
    color: var(--white);
}

/*.but {
    width: 13vw;
}*/

form a {
    text-decoration: none;
}

.form_flex {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin: 0 auto;
    /*    flex-direction: column;*/
    align-items: center;
}

.form_main {
    display: none;
    flex-direction: column;
    /* width: clamp(280px, 41vw, 600px); */
    /* position: absolute; */
    position: fixed;
    top: 100px;
    left: 50%;
    justify-content: flex-start;
    gap: 70px;
    align-items: center;
    z-index: 104;
    max-height: 90vh;
}

.close_form_blue,
.close_form {
    /* position: absolute;
    top: 20px;
    right: calc(20px + 2vw); */
    float: right;
    width: 20px;
    height: 20px;
}

.close_form {
    background: url("/img/close.webp") no-repeat;
}

.close_form_blue {
    background: url("/img/close_blue.webp") no-repeat;
}

.container {
    width: calc(100vw - 200px);
    max-width: 1240px;
    margin: 0 auto;
    height: auto;
    position: relative;
}

.min {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    background-color: var(--dark-turquoise);
    align-items: center;
    gap: 80px;
}

.min_w {
    background-color: var(--bg-white);
}
.min img {
    display: block;
    width: 80px;
    object-fit: contain;
}

.min_lo_text {
    color: var(--white);
    font-size: 24px;
    text-align: center;
    padding: 0 20px;
}

.mlt_w {
    color: var(--c-text-turquoise);
}

.container_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    border-bottom: var(--white-opacity05) 1px solid;
}

.cf_hw {
    border-bottom: var(--text-turquoise-opacity05) 1px solid;
}

.cf_h {
    border-bottom: var(--white-opacity05) 1px solid;
}

.logo {
    /* width: 9.2%; */
    width: clamp(120px, 5vw, 9.2%);
    min-width: 135px;
}

.menu_section,
.menu_section_w, .menu_section_sved {
    display: flex;
    justify-content: space-between;
    gap: 1vw;
}

#burger,
[for="burger"] {
    display: none;
    width: 40px;
}

.header_b [for="burger"]::before {
    color: var(--white);
}

.header_w [for="burger"]::before {
    color: rgb(2, 121, 164);
}

[for="burger"]::before {
    font-size: 35px;
}

.nav_item {
    color: var(--white);
}

.nav_item,
.nav_item_w {
    font-size: 16px;
    font-weight: 400;
    position: relative;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.7s;
    text-wrap: nowrap;
    /*    padding: 10px 0 0 0;*/
}

.current_nav_item {
    text-decoration: underline;
    text-underline-position: under;
}

.service {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang_w {
    color: var(--text-dark-turquoise);
}

.service_mail,
.service_mail_vert {
    background-color: var(--white);
    color: var(--dark-turquoise);
    cursor: pointer;
}

.service_mail,
.service_mail_w,
.service_mail_vert {
    width: clamp(100px, 17.1vw, 226px);
    /* height: 40px; */
    padding: 10px 5px;
    font-size: 18px;
    border-radius: 100px;
    /* display: flex;
    justify-content: center;
    align-items: center; */
    text-align: center;
    transition: all 0.35s;
}

.service_mail_vert {
    width: 250px;
    margin: 0 auto;
}

.header_w {
    background-color: var(--bg-white);
    width: 100vw;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav_item_w {
    color: var(--c-text-turquoise);
}

.lang_w {
    color: var(--text-turquoise);
}

.service_mail_w {
    background-color: var(--bg-turquoise);
    color: var(--white);
}

.nav_mobil {
    /* position: absolute; */
    top: 0;
    right: 0;
    position: fixed;
    top: 80px;
    /*    right: -100%;*/
    width: 300px;
    max-width: 100vw;
    height: calc(100vh - 80px);
    background-color: var(--c-text-turquoise);
    z-index: 12;
    display: none;
    /*    display: block;*/
    overflow-y: scroll;
    padding-bottom: 10px;
}

.nav_mobil_vis {
    /*    right: 0%;*/
    display: block;
}

.menu_section_vert {
    width: 100%;
    height: auto;
    margin-top: 50px;
    height: 600px;
}

.nav_item_vert {
    margin-bottom: 40px;
    color: var(--white);
    margin-left: 50px;
    transition: all 0.7s;
}

.shirma,
.shirma_modal,
.shirma_burger {
    width: 100vw;
    height: 150vh;
    background-color: var(--black-opacity08);
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 113;
    display: none;
    margin-top: calc(-80px * var(--scale));
}

.shirma_burger {
    position: fixed;
    top: 80px;
    z-index: 10;
}

.shirma_vis {
    display: block;
}

.scale-up-hor-right {
    animation: scale-up-hor-right 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.theme_toggle {
    margin-right: 7px;
    width: 24px;
}

#icon-sun {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 3px;
    display: none;
}

#icon-moon {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 5px;
    display: none;
}

.sect_bas-min svg {
    flex-shrink: 0;
}

.sect_bas-min {
    align-items: baseline;
}

.sect_bas-min a {
    white-space: nowrap;
}

.hleb {
    border-bottom: var(--turquoise) solid 1px;
    display: flex;
    align-items: end;
    white-space: nowrap;
}

.sect_bas-min-hleb {
    width: fit-content;
}

.logo_agpu_minpros {
    height: 80px;
}

.logo_agpu_minpros_min {
    display: none;
}

.bg {
    background-color: var(--dark-turquoise);
    position: relative;
    z-index: 13;
    /*display: flex;
    justify-content: space-between;*/
}

.bg_w {
    background-color: var(--bg-white);
    position: relative;
    z-index: 13;
}

.container_min {
    height: 100px;
    display: flex;
    align-items: center;
}

.min_none {
    display: none !important;
}

/* @keyframes scale-up-hor-right {
    0% {
        transform: scaleX(0);
        transform-origin: 100% 100%;
    }
    100% {
        transform: scaleX(1);
        transform-origin: 100% 100%;
    }
} */

@keyframes scale-up-hor-right {
    0% {
        transform: rotateY(90deg);
        transform-origin: 100% 100%;
    }
    100% {
        transform: rotateY(0deg);
        transform-origin: 100% 100%;
    }
}

.scale-down-hor-right {
    animation: scale-down-hor-right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)
        both;
}

@keyframes scale-down-hor-right {
    0% {
        transform: scaleX(1);
        transform-origin: 100% 100%;
    }
    100% {
        transform: scaleX(0);
        transform-origin: 100% 100%;
    }
}

.pob {
    display: block;
    position: fixed;
    top: 14vh;
    left: 0;
    width: clamp(140px, 10vw, 200px);
    object-fit: contain;
    z-index: 101;
}
.lent {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    object-fit: cover;
}

@media (max-width: 820px) {
    .min {
        flex-direction: column;
        gap: 10px;
        height: 120px;
    }
}
@media (max-width: 730px) {
    .may {
        display: none;
    }
    .lent {
        display: block;
    }
}
@media (max-width: 780px) {
    .pob {
        display: none;
    }
}

@media (max-width: 630px) {
    .min {
        height: 140px;
    }
}

@media (max-width: 400px) {
    .lent {
        width: 20vw;
    }
}

@media (max-width: 365px) {
    .min_lo_text {
        font-size: 20px;
    }

    .min img {
        width: 60px;
    }

    .min {
        gap: 0;
    }
}

@media (max-width: 330px) {
    .lent {
        display: none;
    }
}

@media screen and (max-width: 1355px) {
    .nav_item,
    .nav_item_w {
        font-size: 14px;
    }
}

@media screen and (max-width: 1400px) {
    [for="burger"] {
        display: block;
        cursor: pointer;
    }

    /* [for="burger"]::before {
        content: "☰";
    } */

    [for="burger"] .burger_cross {
        display: none;
    }

    [for="burger"] .burger_three_line {
        display: block;
    }

    .menu_section,
    .menu_section_w, .menu_section_sved {
        display: none;
    }

    /*#burger:checked + .menu_section,
    #burger:checked + .menu_section_w {
        display: block;
        position: relative;
        top: 70px;
        border-radius: 0 0 15px 15px;
        padding: 20px 10px 0px 10px;
    }

    #burger:checked + .menu_section_w {
        border: 1px var(--dark-turquoise) solid;
        border-top: none;
        background-color: var(--white);
    }

    #burger:checked + .menu_section {
        border: 1px var(--white) solid;
        border-top: none;
        background-color: var(--dark-turquoise);
    }*/

    /* #burger:checked + .menu_section + .service [for="burger"]::before,
    #burger:checked + .menu_section_w + .service [for="burger"]::before {
        content: "✕";
    } */

    #burger:checked + .menu_section + .service [for="burger"] .burger_cross,
    #burger:checked + ..menu_section_sved + .service [for="burger"] .burger_cross,
    #burger:checked + .menu_section_w + .service [for="burger"] .burger_cross {
        display: block;
    }

    #burger:checked
        + .menu_section
        + .service
        [for="burger"]
        .burger_three_line,
        #burger:checked
        + .menu_section_sved
        + .service
        [for="burger"]
        .burger_three_line,
    #burger:checked
        + .menu_section_w
        + .service
        [for="burger"]
        .burger_three_line {
        display: none;
    }

    .service_mail,
    .service_mail_w {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    .relev:hover {
        fill: var(--black);
        cursor: pointer;
    }

    .close_form:hover {
        cursor: pointer;
    }

    .submit:hover {
        background: var(--white);
        color: var(--text-turquoise);
        transition: all 0.6s;
        cursor: pointer;
    }

    .nav_item:hover,
    .nav_item_w:hover,
    .nav_item_vert:hover {
        transition: all 0.7s;
        cursor: pointer;
        color: var(--dark-gray);
    }

    .service_mail:hover,
    .slide_button:hover,
    .service_mail_vert:hover {
        cursor: pointer;
        transition: all 0.5s;
        color: var(--white);
        background-color: var(--dark-gray);
        border-color: var(--dark-gray);
    }

    .service_mail_w:hover {
        cursor: pointer;
        transition: all 0.5s;
        background-color: var(--dark-gray);
        border-color: var(--dark-gray);
    }
}

@media screen and (max-width: 1080px) {
    .flag {
        display: none;
    }
}
@media screen and (max-width: 980px) {
    .service_mail,
    .service_mail_w {
        font-size: 14px;
    }
}

@media screen and (max-width: 820px) {
    .logo_agpu_minpros {
        height: 9.5vw;
    }
}

@media screen and (max-width: 710px) {
    .container {
        width: calc(100vw - 40px);
    }

    .name1,
    .fio,
    .text_mail {
        font-size: 16px;
    }

    .login-box {
        width: 90vw;
        min-width: 280px;
    }
}

@media screen and (max-width: 550px) {
    .logo_agpu_minpros:not(.logo_agpu_minpros_min) {
        display: none;
    }

    .logo_agpu_minpros_min {
        display: block;
        height: 80px;
    }
}

@media screen and (max-width: 445px) {
    .h2_mail {
        font-size: 26px;
    }

    .img,
    .img_d {
        display: none;
    }
}

@media screen and (max-width: 420px) {
    .login-box {
        padding: 35px;
    }

    .user-box {
        width: 100%;
    }
}

@media screen and (max-width: 390px) {
    .form_flex {
        flex-direction: column;
    }
    .submit {
        margin-top: 10px;
    }
}

@media screen and (max-width: 350px) {
    .h2_mail {
        font-size: 22px;
    }

    .logo_agpu_minpros_min {
        display: block;
        height: 23vw;
    }
}

@media screen and (max-height: 800px) {
    /* .login-box {
        margin-top: -35px;
    } */

    .logo_mail {
        display: none;
    }
}

@media screen and (max-height: 645px) {
    .text_mail {
        height: 20vh;
    }

    .h2_mail {
        margin: -15px 0 15px 0;
        font-size: 18px;
    }
}

@media screen and (max-height: 600px) {
    .logo_mail {
        height: 70px;
        width: auto;
    }

    .user-box {
        margin: 0 auto 15px auto;
    }
}

@media screen and (max-height: 460px) {
    .h2_mail {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .submit {
        margin-top: 20px;
    }

    .login-box .user-box input {
        margin-bottom: 15px;
    }
    .login-box {
        padding-top: 10px;
        height: calc(90vh - 70px);
    }

    .text_error {
        height: 70px;
        font-size: 20px;
    }

    .form_main {
        top: 50px;
    }
}

@media screen and (max-height: 414px) {
    .container {
        width: calc(100vw - 40px);
    }
}

@media screen and (max-height: 500px) and (min-width: 500px) {
    .small_height_flex {
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }

    .login-box {
        height: 95vh;
        width: 90vw;
        background-position: -380px 50%;
    }

    .user-box {
        width: 100%;
    }

    .text_mail {
        width: 100%;
    }

    .h2_mail {
        font-size: 26px;
    }

    .form_main {
        top: 20px;
    }
}

@media screen and (max-height: 460px) and (min-width: 500px) {
    .logo_mail {
        display: none;
    }
}

@media screen and (max-height: 375px) and (min-width: 500px) {
    /* .login-box {
        margin-top: -45px;
    } */

    .user-box {
        margin: 0;
    }

    .name1,
    .fio {
        height: 40px;
    }

    .user-box input:focus ~ label,
    .user-box input:valid ~ label,
    .user-box input:invalid ~ label {
        top: -18px;
    }

    .user-box label,
    .user-box input:placeholder-shown ~ label {
        top: -5px;
    }

    .form_main {
        top: 10px;
    }
}

@media screen and (max-height: 320px) {
    .submit {
        height: 40px;
    }
}

@media screen and (min-width: 1900px) {
    .menu_section,
    .menu_section_w,
    .menu_section_sved {
        gap: 20px;
    }

    header {
        height: calc(80px * var(--scale));
    }

    .container_flex {
        transform: scale(var(--scale));
    }

    .global > .container {
        max-width: calc(1240px * var(--scale));
    }

    .login-box {
        transform-origin: top;
        transform: scale(var(--scale));
    }

    #gir {
        height: calc(36px * var(--scale));
        background-size: calc(100px * var(--scale));
    }

    .gir_2 {
        background-position: 0 calc(-36px * var(--scale));
    }
    .gir_3 {
        background-position: 0 calc(-72px * var(--scale));
    }

    .img,
    .img_d {
        top: calc(80px * var(--scale));
    }

    .min {
        height: calc(80px * var(--scale));
    }

    .min img {
        width: calc(80px * var(--scale));
    }

    .min_lo_text {
        font-size: calc(24px * var(--scale));
    }

    .container_min {
        height: calc(100px * var(--scale));
        transform: scale(var(--scale));
    }

    /* urovni */
    .min_text {
        font-size: calc(12px * var(--scale));
    }

    .hleb svg,
    .sect_bas-min svg {
        transform: scale(var(--scale));
        transform-origin: left;
    }

    .hleb svg {
        transform-origin: bottom left;
    }

    .sect_bas:not(.marg_bot100, .no_padding, .no_padding_news) {
        padding-bottom: calc(133px * var(--scale));
    }

    h2 {
        font-size: calc(36px * var(--scale));
        line-height: calc(44px * var(--scale));
    }

    .marg_top60 {
        margin-top: calc(60px * var(--scale));
    }

    .marg_bot60,
    .form_lern_flex {
        margin-bottom: calc(60px * var(--scale));
    }

    .marg_bot67 {
        margin-bottom: calc(67px * var(--scale));
    }

    .marg_bot20 {
        margin-bottom: calc(20px * var(--scale));
    }

    .slide_button {
        border-radius: calc(100px * var(--scale));
    }

    .fb_edukat,
    .fb_edukat .faculty_block-flex,
    .faculty_block {
        max-width: none;
    }

    .faculty_block-text,
    .faculty_block-number,
    .entrant_doc-text {
        font-size: calc(16px * var(--scale));
        line-height: calc(20px * var(--scale));
    }

    .but1 {
        width: calc(30px * var(--scale));
        height: calc(30px * var(--scale));
    }

    .tfl,
    .li_text,
    .li_zagolovok,
    .sect_bas_text-item,
    .form_lern_flex-item-text {
        font-size: calc(16px * var(--scale));
        line-height: calc(23px * var(--scale));
    }

    .cfl {
        font-size: calc(18px * var(--scale));
        line-height: calc(22px * var(--scale));
    }

    .background_ornament {
        transform-origin: top;
        transform: scale(var(--scale));
    }

    .edi_min a,
    .edi_null {
        max-width: calc(232px * var(--scale));
        max-height: calc(232px * var(--scale));
        margin-bottom: calc(20px * var(--scale));
        padding-right: calc(10px * var(--scale));
    }

    .entrant_doc-text {
        max-width: calc(262px * var(--scale));
        margin-bottom: calc(25px * var(--scale));
        margin-left: calc(17px * var(--scale));
    }

    .entrant_doc-item svg,
    .edi_min a svg {
        transform-origin: top left;
        transform: scale(var(--scale));
    }

    .radius_bot_left,
    .radius_bot_left a {
        border-bottom-left-radius: calc(20px * var(--scale));
    }
    .radius_top_left,
    .radius_top_left a {
        border-top-left-radius: calc(20px * var(--scale));
    }
    .radius_bot_right,
    .radius_bot_right a {
        border-bottom-right-radius: calc(20px * var(--scale));
    }

    .radius_top_right,
    .radius_top_right a {
        border-top-right-radius: calc(20px * var(--scale));
    }

    .entrant_doc-item,
    .entrant_doc-item a {
        height: calc(296px * var(--scale));
        max-height: none;
    }

    .entrant_doc-item:not(.big),
    .entrant_doc-item a {
        width: calc(285px * var(--scale));
        max-width: none;
    }

    .emblema {
        width: calc(285px * var(--scale));
        height: calc(295px * var(--scale));
        max-width: none;
        max-height: none;
        background-size: contain;
    }

    .marg_bot100 {
        margin-bottom: calc(100px * var(--scale));
    }

    .entrant_doc {
        margin-top: calc(70px * var(--scale));
    }

    .form_lern_flex,
    .form_lern_flex-item-form {
        margin-top: calc(40px * var(--scale));
    }

    .flflf-div {
        min-height: calc(50px * var(--scale));
    }

    .cl-btn-6 {
        transform-origin: top left;
        transform: scale(var(--scale));
        right: calc(-50px * var(--scale));
    }

    .vrezka {
        border-top-left-radius: calc(20px * var(--scale));
        border-top-right-radius: calc(20px * var(--scale));
    }
    /* urovni */
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17181c;
        --fg: #2e94b9;

        /* --highlight: white; */
        --highlight: #282828;
        /* --white: #ffffff; */
        --bg-white: #e5e5e5;
        /* --whitesmoke: #f5f5f5; */
        --whitesmoke: #d8d8d8;
        --snow: #15191a;
        /* --white-opacity05: rgba(255, 255, 255, 0.5); */
        /* --black: black; */
        --black: #c2c2c2;
        /* --dark-gray: #2f2f2f; */
        --dark-gray: #000000;
        /* --light-gray: #c6c6c6; */
        /* --light-gray-opacity05: rgba(198, 198, 198, 0.5); */
        --light-gray-opacity05: rgba(128, 128, 128, 0.5);
        --lighten-gray: #808080;
        /* --lighten-gray: #bbbbbb; */
        /* --turquoise: #3bb1d1; */
        --turquoise: #aae3f3;
        /* --turquoise-opacity05: rgba(59, 177, 209, 0.5); */
        --turquoise-opacity05: rgba(156, 231, 252, 0.5);
        /* --dark-turquoise: #2e94b9; */
        --dark-turquoise: #1e6883;
        --text-dark-turquoise: #82c5dd;
        --contrast-turquoise: #1e6883;
        --contrast-turquoise-opacity05: #1e6883;
        --bg-turquoise: #016d94;
        /* --text-turquoise: #0279a4; */
        --text-turquoise: #82deff;
        /* --text-turquoise-opacity08: rgba(2, 121, 164, 0.8); */
        --text-turquoise-opacity08: #9ae2fc;
        /* --text-turquoise-opacity05: rgba(2, 121, 164, 0.5); */
        --text-turquoise-opacity05: #dbf5ff;
        --link-dark-turquoise: #82acff;
        /* --red: #ff0000;
        --black-opacity08: rgba(0, 0, 0, 0.8);
        --black-opacity07: rgba(0, 0, 0, 0.7);
        --black-opacity075: rgba(0, 0, 0, 0.75);
        --black-opacity06: rgba(0, 0, 0, 0.6);
        --black-opacity05: rgba(0, 0, 0, 0.5);
        --black-opacity03: rgba(0, 0, 0, 0.3);
        --black-opacity02: rgba(0, 0, 0, 0.2);
        --black-opacity025: rgba(0, 0, 0, 0.25);
        --black-opacity01: rgba(0, 0, 0, 0.1);
        --black-opacity005: rgba(0, 0, 0, 0.05); */
    }

    @media (hover: hover) and (pointer: fine) {
        .submit:hover {
            background: var(--dark-gray);
            color: var(--white);
        }

        .mt_hov:hover {
            color: var(--white);
        }

        .nav_item:hover {
            color: var(--turquoise);
        }
    }

    .close_form_blue {
        background: url("/img/close.webp") no-repeat;
    }
}
