@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&display=swap');

/* Reset and base styles  */
* {
    padding: 0;
    margin: 0;
    border: none;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
/* Links */
a:hover  {
    text-decoration: none;
}
/* Common */
aside, nav, footer, header, section, main {
    display: block;
}
h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
    font-weight: inherit;
}
img {
    vertical-align: top;
}
img, svg {
    max-width: 100%;
    display: block;
    height: auto;
}
address {
    font-style: normal;
}
button {
    color: inherit;
    background-color: transparent;
}
/*------------------------------*/
:root {
    --background-color: #EEE4DA;
    --text-color: #2F4858;
    --extra-color: #5F9AF4;

    --text-font-weight: 400;
    --title-font-weight: 700;

    --normal-font-size: 16px;
    --small-mob-font-size: 14px;
    --big-font-size: 18px;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: var(--text-font-weight);
    color: var(--text-color);
    background: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.vanishing {
    display: none;
}

/*------------------------------HEADER*/
header::after {
    content: " ";
    width: 100%;
    height: 100%;
    background-size: cover;
    position: fixed;
    top: 0;
    right: 0;
    z-index: -1;
}
header > div {
    display: flex;
    flex-direction: column;
    text-align: center;
}
header span {
    color: var(--extra-color);
     font-weight: var(--title-font-weight);
     font-size: 18px;
     margin: 30px;
 }
.l-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--text-color);
}
.l-box div {
    display: flex;
}
.navigator-menu {
    width: 40px;
    height: 30px;
    margin: 30px;
    cursor: pointer;
}
.open {
    background: url("../svg/burger.svg") no-repeat;
}
.cross {
    background: url("../svg/close.svg") no-repeat;
    position: absolute;
    top: 0;
    right: 0;
}
.mob-navigator {
    background: url("../svg/background-mob.svg");
    background-size: cover;
    width: 100%;
    height: 100%;
}
.navigator {
    min-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-size: cover;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    flex-direction: column;
}
.navigator ul {
    list-style: none;
    margin-top: 100px;
}
.navigator li {
    color: var(--extra-color);
    font-weight: var(--title-font-weight);
    font-size: var(--big-font-size);
    line-height: 32px;
    padding: 15px 30px;
    margin: 30px 25px 60px 25px;
    cursor: pointer;
}
.navigator li:hover {
    color: var(--background-color);
    background: var(--extra-color);
    border-radius: 40px;
}
.usertWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    background: url("../svg/background-desk.svg");
    background-size: cover;
}
.usertWrap button {
    width: 250px;
    font-size: var(--small-mob-font-size);
    font-weight: var(--title-font-weight);
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 20px;
    cursor: pointer;
    border: 1px solid var(--extra-color);
    border-radius: 40px;
}
.usertWrap button:hover {
    background: var(--extra-color);
    color: var(--background-color);
}

/*------------------------------MAIN*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url("../svg/background-desk.svg");
    background-size: contain;
    padding-bottom: 80px;
}
main > div {
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}
img {
    margin-top: 10px;
    border-radius: 16px;
    margin-bottom: 15px;
}
img:first-child {
    margin-top: 30px;
    border-radius: 8px;
}
h1 {
    font-size: 48px;
    line-height: 56px;
    font-weight: var(--title-font-weight);
    text-align: start;
    margin-top: 25px;
    margin-bottom: 15px;
}
h2 {
    font-size: 38px;
    line-height: 64px;
    font-weight: var(--title-font-weight);
    text-align: start;
    margin: 15px 0;
}
h3 {
    font-weight: var(--title-font-weight);
    font-size: 32px;
    line-height: 64px;
    text-align: start;
}
main ul, ol {
    text-align: start;
    margin-bottom: 15px;
}
article > ul, ol {
    margin-left: 20px;
}
li {
    padding: 8px;
}
a {
    color: var(--extra-color);
}
p {
    margin-bottom: 15px;
    line-height: 24px;
    text-align: start;
}
.anchors-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}
.anchors-menu li {
    font-weight: var(--title-font-weight);
    color: var(--background-color);
    background: var(--extra-color);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    text-align: center;
    list-style: none;
    cursor: pointer;
    border-radius: 40px;
    padding: 15px 30px;
}

/*------------------------------TABLES*/
table {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 30px;
    padding: 0 15px 15px 15px;
}
tr {
    display: flex;
    background: var(--background-color);
}
tr:nth-child(2n+1) {
    background: var(--extra-color);
    border-radius: 10px;
}
td {
    word-wrap: break-word;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 5px;
}
.one {
    font-weight: var(--title-font-weight);
}
.line {
    flex-wrap: wrap;
}
.line td:first-child {
    min-width: 100%;
    text-align: center;
}
.four-column td {
    width: 33%;
}
.three-column td {
    width: 50%;
}
.two-column td {
    width: 100%;
}
.up-BTN {
    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: rgba(94, 93, 88, 0.55);
}
.up-BTN:hover {
    background: rgba(95, 154, 244, 0.65);
}

/*------------------------------FOOTER*/
footer {
    color: var(--background-color);
    background: var(--text-color);
}
footer p {
    font-size: 12px;
    line-height: 15px;
    margin: 30px 15px;
    text-align: center;
}

@media (min-width: 850px) {
    .vanishing {
        display: flex;
    }

    /*------------------------------HEADER*/
    header::after {
        min-width: 100%;
        height: 100%;
        top: -40px;
        left: 0;
        background-size: cover;
    }
    header > div {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        border-bottom: 1px solid var(--text-color);
    }
    .mobi {
        min-width: 50%;
        border-bottom: none;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    header span {
        margin: 25px;
        width: auto;
    }
    .mob-navigator {
        background: none;
    }
    .navigator {
        min-width: auto;
        background: none;
        position: relative;
        flex-direction: row;
        align-items: center;
    }
    .navigator ul {
        display: flex;
        flex-direction: row;
        margin-top: 0;
    }
    .navigator li {
        color: var(--text-color);
        font-size: var(--normal-font-size);
        padding: 0;
        margin: 30px;
        border-bottom: 4px solid var(--background-color);
    }
    .navigator li:hover {
        background: none;
        color: var(--text-color);
        border-radius: 0;
        border-right: none;
        border-left: none;
        border-top: none;
        border-bottom: 4px solid var(--extra-color);
    }
    .l-box {
        display: none;
        border-bottom: none;
    }
    .cross {
        display: none;
    }
    .usertWrap {
        flex-direction: row;
        margin: 0;
    }
    .usertWrap button {
        width: 100%;
        border-radius: 20px;
        padding: 10px 20px;
        margin: 13px 25px 13px 0;
    }

    /*------------------------------MAIN*/

    main > div {
        max-width: 1150px;
        margin: 0 40px;
    }
    .img {
        max-width: 50%;
        margin-bottom: 40px;
    }
    .right-float {
        float: right;
        margin-left: 20px;
    }
    .left-float {
        float: left;
        margin-right: 20px;
    }
    .anchors-menu-wrap {
        display: flex;
        flex-direction: column-reverse;
    }
    .anchors-menu ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        margin-bottom: 40px;
    }
    .anchors-menu li {
        border-radius: 30px;
        width: auto;
        margin: 5px 10px;
    }


    /*------------------------------TABLES*/
    table {
        padding: 0 30px 30px;
    }
    tr {
        font-size: var(--big-font-size);
        justify-content: center;
    }
    .four-column td {
        width: 25%;
    }
    .three-column td {
        width: 33%;
    }
    .two-column td {
        width: 50%;
    }
    .line td:first-child {
        min-width: 25%;
        padding-left: 0;
        padding-top: 0;
    }
}

