/* Reset and base styles  */
* {
    padding: 0;
    margin: 0;
    border: none;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
/* Links */
a, a:link, a:visited  {
    text-decoration: none;
}
a:hover  {
    text-decoration: none;
}
/* Common */
aside, nav, footer, header, section, main {
    display: block;
}
h4, h5, h6, p {
    font-size: inherit;
    font-weight: inherit;
}
img {
    vertical-align: top;
}
img, svg {
    max-width: 100%;
    height: auto;
}
address {
    font-style: normal;
}
/* Form */
input, textarea, button, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}
input::-ms-clear {
    display: none;
}
button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background: none;
    cursor: pointer;
}
input:focus, input:active,
button:focus, button:active {
    outline: none;
}
button::-moz-focus-inner {
    padding: 0;
    border: 0;
}
label {
    cursor: pointer;
}
legend {
    display: block;
}
/*------------------------------*/

.wrapper {
    font-family: 'Bitter', sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    background: #006000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.invisible {
    display: none;
}

/*------------------------------HEADER*/
.nav-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.logo-box {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.logo-box > div {
    width: 47%;
}
.logo-box > span {
    display: flex;
    width: 50%;
    font-weight: 700;
}
.menu-img {
    padding: 10px;
    width: 30px;
    height: 30px;
    margin: 30px;
    cursor: pointer;
}
.open-btn {
    background: url("../svg/burgermenu.svg") no-repeat;
}
.close-btn {
    background: url("../svg/close.svg") no-repeat;
}
.nav {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000000;
    min-width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.nav > ul {
    list-style: none;
    margin-top: 50px;
}
.nav > ul > li {
    font-weight: 500;
    padding: 20px 30px;
    margin-bottom: 20px;
    cursor: pointer;
}
.authorization {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.authorization > button {
    width: 250px;
    font-weight: 400;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 20px;
    border: #fe5252 2px solid;
    border-radius: 25px;
    cursor: pointer;
}
.authorization > button:hover {
    background: #6552FE;
}

/*------------------------------MAIN*/
.main {
    margin: 0 15px 0 15px;
}
.main > figure > img {
    min-width: 70%;
    max-width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 30px;
    object-fit: cover;
}
h1 {
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    color: #fe5252;
    margin: 30px 0 15px 0;
    overflow-wrap: break-word;
}
h2 {
    font-weight: 500;
    font-size: 30px;
    line-height: 40px;
    color: #fe5252;
    margin: 30px 0 15px 0;
    overflow-wrap: break-word;
    text-align: center;
}
h3 {
    font-weight: 500;
    font-size: 28px;
    line-height: 34px;
    color: #fe5252;
    margin-top: 30px;
    overflow-wrap: break-word;
    text-align: start;
}
.anchor-menu {
    list-style: none;
    cursor: pointer;
}
.main > ul, ol {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: left;
    align-items: flex-start;
    margin-top: 30px;
}
.main > ul:not(.anchor-menu){
    margin-left: 40px;
}
ol {
    padding-left: 40px;
}
.main li {
    font-weight: 500;
    font-size: 18px;
    line-height: 34px;
    margin-top: 10px;
}
.main > p {
    font-weight: 500;
    font-size: 18px;
    line-height: 34px;
    margin-top: 20px;
    text-align: left;
}
.main > p > a {
    display: inline;
    color: #6552FE;
    text-decoration: underline;
}

/*------------------------------TABLES*/
table {
    width: 95%;
    margin: 50px 0 20px 0;
}
.table {
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
    border-bottom: 1px solid #FFFFFF;
}
.columns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #FFFFFF;
}
.columns > td {
    font-size: 16px;
    word-wrap: break-word;
    width: 33%;
    text-align:center;
    padding: 20px 10px;
}
.columns > td:first-child {
    text-align: left;
}
.columns > td:last-child {
    text-align: right;
}
.four-cells {
    flex-wrap: wrap;
}
.four-cells > td {
    width: 50%;
}
.four-cells > td:nth-child(2n+1){
    text-align: left;
}
.four-cells > td:nth-child(2n+2){
    text-align: right;
}
.invisible-button {
    display: none;
}
.up-button{
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    font-size: 25px;
    color: #FFFFFF;
    height: 100px;
    width: 100px;
    position: fixed;
    bottom: 70px;
    right: 30px;
    border-radius: 50%;
    background: rgb(53 159 63 / 60%);
}
.up-button:hover {
    background: rgba(60, 184, 120, 0.6);
}

/*------------------------------FOOTER*/
.footer > p {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    margin: 40px 15px;
}

@media (min-width: 850px) {
    .invisible {
        display: flex;
    }
    body::before {
        width: 100%;
        height: 100%;
        background: url("../svg/Vector.svg") no-repeat right;
        position: fixed;
        top: -55px;
        right: 0;
        z-index: -1;
        content: "";
    }

    /*------------------------------HEADER*/
    .nav-wrapper {
        flex-direction: row;
        justify-content: space-between;
        background: #373A3F;
        margin: 20px 50px 20px;
        border-radius: 5px;
    }
    .nav-wrapper > div {
        display: flex;
        flex-direction: row;
    }
    .logo-box > span {
        margin: 25px;
    }
    .nav {
        position: relative;
        flex-direction: row;
        background: #373A3F;
        align-items: center;
    }
    .nav > ul {
        display: flex;
        flex-direction: row;
        margin-top: 0;
    }
    .nav > ul > li {
        padding: 0;
        margin: 25px 15px;
        font-size: 15px;
    }
    .authorization > button {
        width: 100%;
        padding: 10px 20px;
        margin: 13px 25px 13px 0;
    }

    /*------------------------------MAIN*/
    .main {
        margin: 0 100px 0 100px;
    }
    figure > img {
        max-width: 100%;
        margin-top: 30px;
        margin-bottom: 30px;
        box-shadow: 5px 20px 80px rgba(129, 126, 255, 0.2);
    }
    h1 {
        font-weight: 700;
        font-size: 44px;
        line-height: 64px;
        margin: 30px 0 0;
    }
    h2 {
        font-weight: 700;
        font-size: 36px;
        line-height: 45px;
        margin: 40px 0 50px;
        text-align: center;
    }
    h3 {
           font-weight: 700;
           font-size: 30px;
           margin: 30px 0 0;
    }
    ul {
        font-size: 20px;
        margin: 30px 0 0;
    }
    ol {
        font-size: 20px;
        margin: 30px 0 0;
    }
    p {
        text-indent: 20px;
        font-size: 20px;
        margin: 30px 0 0;
    }
    .menu-img  {
        display: none;
    }
    .logo-box img {
        display: none;
    }

    /*------------------------------TABLES*/
    table {
        width: 100%;
        padding: 50px 0 20px 0;
        margin: 0;
    }
    .columns > td {
        font-size: 18px;
    }
    .four-cells > td {
        width: 25%;
    }
    .four-cells > td:not(.first-td, .last-td){
        text-align: center;
    }

    /*------------------------------FOOTER*/
    .footer > p {
        border-radius: 5px;
        background: #373A3F;
        padding: 20px 0;
        margin: 40px 50px;
    }
}

