*{
    box-sizing: border-box;
}

html {
    height: 100%;
}

body{
    background-color: #fff;
    display: flex;
    height: 100%;
    flex-direction: column;
    font-family: "Arial", sans-serif ;
    font-size: 16px;
    color: #333;
}

.root{
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
}

.header-wrapper{
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
}

h1{
    margin: 0 0 32px 0;
    font-size: 28px;
    line-height: 32px;
    font-weight: normal;
}

.h1-bold{
    font-weight: bold;
    color: #be0000;
}

h2{
    font-size: 22px;
    line-height: 24px;
    font-weight: normal;
    margin-top: 40px;
}

.header-wrapper{
    padding: 15px 20px;
}

.header-wrapper a{
    text-decoration: none;
}

.header{
    height: 60px;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid rgb(98, 202, 98);
}

.logo{
    width: 120px;
    height: auto;
}

.authorization{
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.main {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-index{
    height: 100%;
    display: grid;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 30px;
}

.authorization{
    background-color: white;
    border-radius: 8px;
    box-shadow: rgb(0 0 0 / 20%) 0px 2px 1px -1px, rgb(0 0 0 / 14%) 0px 1px 1px 0px, rgb(0 0 0 / 12%) 0px 1px 3px 0px;
    padding: 60px 40px;
    width: 500px;
}

.submit-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 0 0;
    padding: 10px 40px;
    background-color: #0285CA;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    user-select: none;
    color: #fff;
    border-style: none;
    box-shadow: rgb(0 0 0 / 20%) 0px 3px 1px -2px, rgb(0 0 0 / 14%) 0px 2px 2px 0px, rgb(0 0 0 / 12%) 0px 1px 5px 0px;
    transition: background-color 250ms;
}

.submit-btn:hover{
    background-color: #006398;
    transition: ease 0.5s;
}

.message-popup__node h2 {
    text-align: center;
    margin: 60px 0;
}

input{
    background: none;
    outline: none;
    border: 1px solid #aaa;
    border-radius: 5px;
    font: inherit;
    color: currentColor;
    display: block;
    padding: 10px 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

input:focus{
    border-color: #999;
}

input::placeholder{
    color: #ccc;
    font-size: 14px;
}

input:valid{
    border-color: #1fa037;
}
.authorization-form span{
    color: red;
    display: inline-block;
    font-size: 14px;
    margin-bottom: 20px;
    height: 18px;
}
label{
    display: block;
    padding: 0;
    color: #4e4e4e;
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.message-popup{
    visibility: hidden;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255, 0.8);
}

.message-popup-active{
    visibility: visible;
}

.message-popup__wrapper{
    background-color: #242424;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    color: #fff;
    position: relative;
    box-sizing: border-box;
    margin: 0 30px;
}

.message-popup__wrapper p{
    font-size: 18px;
    text-align: center;
}

.close-button{
    background-image: url('../images/close.svg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 40px;
    height: 40px;
    right: -18px;
    top: -18px;
    position: absolute;
    border: 0;
    padding: 0;
    background-color: #242424;
    border-radius: 50%;
    cursor: pointer;
}

.footer__wrapper{
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 14px;
    color: #999;
}

.loader{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: grid;
    visibility: hidden;
    align-items: center;
    background-color: rgba(255,255,255, 0.8);
}

.loader-active{
    visibility: visible;
}

.loader__wrapper{
    width: 100px;
    margin: 0 auto;
}

.loader__wrapper img{
    width: 100px;
    height: auto;
}

.table-title{
    font-weight: bold;
    padding-bottom: 5px;
    margin-top: 15px;
}

.table-node{
    display: grid;
    grid-template-columns: repeat(4, auto);
    width: 970px;
}

.table-title-blue{
    padding: 10px;
    color: #fff;
    background-color: #0285CA;
}

.table-text{
    padding: 10px;
}

.main-index  p{
    font-size: 18px;
}

.content-block{
    margin-top: 40px;
    display: grid;
    grid-template-columns: 70% auto;
    align-items: center;
    gap: 30px;
    padding-top: 60px;
}

.content-block__link{
    margin: 20px 0 0 0;
    padding: 10px 20px;
    background-color: #0285CA;
    border-radius: 8px;
    line-height: 20px;
    cursor: pointer;
    user-select: none;
    color: #fff;
    border-style: none;
    box-shadow: rgb(0 0 0 / 20%) 0px 3px 1px -2px, rgb(0 0 0 / 14%) 0px 2px 2px 0px, rgb(0 0 0 / 12%) 0px 1px 5px 0px;
    transition: background-color 250ms;
    display: inline-block;
    text-decoration: none;
    font-size: 16px;
    width: 100%;
    text-align: center;
}

.content-block__link:hover{
    background-color: #006398;
    transition: ease 0.5s;
}

@media (max-width:1024px){
    .table-node{
        width: 100%;
    }
    
    .table-title-blue{
        height: 60px;
        display: flex;
        align-items: center;
    }
}

@media (max-width:900px) {
    .content-block{
        grid-template-columns: 1fr;
    }
    
    .content-block__link{
        width: 70%;
        margin: 20px auto;
        display: block;
    }
}

@media (max-width:640px) {
    body{
        font-size: 14px;
    }
    h1{
        font-size: 24px;
    }
    .authorization{
        margin: 0 20px;
    }
    input::placeholder{
        font-size: 12px;
    }

    .main-index{
        padding: 10px;
    }
    .main-index p, .table-title-blue, .table-text{
        font-size: 16px;
    }

    .footer__wrapper{
        padding: 20px 10px;
    }
    
}

@media (max-width:520px) {
    .authorization{
        margin: 0 30px;
        padding: 50px 20px;
    }

    .main-index p, .table-title-blue, .table-text{
        font-size: 14px;
    }

    .content-block__link{
        font-size: 14px;
    }
}

@media (max-width:460px) {
    .main-index p, .table-title-blue, .table-text{
        font-size: 12px;
    }
}