@import url('https://fonts.googleapis.com/css2?family=Manrope: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;
    margin: 0 auto;
}
address {
    font-style: normal;
}
button {
    color: inherit;
    background-color: transparent;
}
/*------------------------------*/

:root {
    --background-color: #845d73;
    --button-background: linear-gradient(180deg, #900188 0%, #dfbaee 100%);
    --text-color: #FFFFFF;
    --border-color: #deb9ee;
    --table-bg: #1D212D;
    --text-font-weight: 400;
    --title-font-weight: 700;
    --normal-font-size: 16px;
    --small-mob-font-size: 14px;
    --big-font-size: 18px;
}
body {
    font-family: 'Manrope', 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;
}
.invisible {
    display: none;
}

/*------------------------------HEADER*/
header {
    width: 100%;
}
header > div {
    width: 100%;
    max-width: 1250px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
header span {
    font-size: 25px;
    margin: 20px;
    font-weight: 700;
 }
.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.logo div {
    display: flex;
}
.burger-menu {
    width: 40px;
    height: 30px;
    margin: 30px;
    cursor: pointer;
}
.open-img {
    background: url("../svg/burger.svg") no-repeat;
}
.close-img {
    background: url("../svg/close.svg") no-repeat;
    position: absolute;
    top: 0;
    right: 0;
}
nav {
    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;
    z-index: 2;
}
nav::after {
    content: url("../img/bg1.webp");
    position: absolute;
    bottom: 170px;
    left: calc((100vw - 194px)/2);
}
nav ul {
    list-style: none;
    margin-top: 100px;
}
nav li {
    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;
}
nav li:hover {
    color: var(--text-color);
    background: var(--button-background);
    border-radius: 16px;
}
.user {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.user::after {
    width: 40px;
    height: 40px;
    content: "";
    background: url("../img/bg1.webp") no-repeat center;
    background-size: contain;
    position: absolute;
    bottom: -50px;
    right: 0;
    z-index: -1;
}
.user button {
    width: 250px;
    font-size: var(--small-mob-font-size);
    padding: 15px 0;
    margin-top: 20px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.user button:last-child {
    color: var(--text-color);
    border: 1px solid transparent;
    background: var(--button-background);
}
.user button:hover {
    background: var(--button-background);
    color: var(--background-color);
}

/*------------------------------MAIN*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 25px;
}
article {
    margin: 0 15px;
    display: flex;
    flex-direction: column;
}
figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}
img {
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
figure {
    margin-top: 10px;
    margin-bottom: 15px;
}
figure:first-child {
    margin-top: 30px;
    border-radius: 8px;
}
h1, h2, h3 {
    font-weight: var(--title-font-weight);
    text-align: center;
    margin-top: 32px;
    margin-bottom: 32px;
}
h1 {
    font-size: 48px;
    line-height: 56px;
}
h2 {
    font-size: 38px;
    line-height: 48px;
}
h3 {
    font-size: 32px;
    line-height: 44px;
}
main ul, ol {
    text-align: start;
    margin-bottom: 15px;
}
article > ul, ol {
    margin-left: 40px;
}
li {
    padding: 8px;
}
a {
    color: var(--border-color);
    text-decoration: none;
}
p {
    font-weight: var(--text-font-weight);
    margin-bottom: 15px;
    line-height: 34px;
    text-align: start;
}

/*------------------------------TABLES*/
table {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: 30px;
    padding: 0 15px 15px 15px;
    font-size: var(--small-mob-font-size);
}
tr {
    flex-wrap: wrap;
    display: flex;
}
tr td:first-child {
    min-width: 100%;
    text-align: center;
    font-size: var(--normal-font-size);

}
tr:nth-child(2n+1) {
    background: var(--table-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
}
td {
    word-wrap: break-word;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 5px;
}
td:first-child {
    font-weight: var(--title-font-weight);
}
.table4 td {
    width: 33%;
}
.table3 td {
    width: 50%;
}
.table2 td {
    width: 100%;
}
.uper-up {
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    font-size: 21px;
    color: #FFFFFF;
    height: 71px;
    width: 71px;
    position: fixed;
    bottom: 70px;
    right: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #900188 0%, #dfbaee 100%);
}
.uper-up:hover {
    background: rgba(81, 105, 225, 0.7);
}

/*------------------------------FOOTER*/
footer {
    position: relative;
}
footer::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background: url("../svg/text-svg.svg") no-repeat right;
    background-size: contain;
    top: -70px;
    z-index: -1;
}
footer p {
    font-size: 12px;
    line-height: 15px;
    margin: 30px 15px;
    text-align: center;
}

@media (min-width: 950px) {
    .invisible {
        display: flex;
        font-size: 24px;
        font-weight: 700;
    }

    /*------------------------------HEADER*/
    header {
        display: flex;
        justify-content: center;
    }
    header::after {
        content: none;
    }
    header > div {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .header {
        border-bottom: none;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    header span {
        color: var(--text-color);
        margin: 25px;
        width: auto;
    }
    nav {
        min-width: auto;
        background: none;
        position: relative;
        flex-direction: row;
        align-items: center;
    }
    nav::after {
        content: none;
    }
    nav ul {
        display: flex;
        flex-direction: row;
        margin-top: 0;
    }
    nav li {
        color: var(--text-color);
        font-size: var(--normal-font-size);
        padding: 0;
        margin: 21px;
    }
    nav li:hover {
        background: none;
        color: var(--border-color);
    }
    .logo {
        display: none;
        border-bottom: none;
    }
    .close-img {
        display: none;
    }
    .user {
        flex-direction: row;
        margin-bottom: 0;
        margin-right: 20px;
    }
    .user::after {
        content: none;
    }
    .user button {
        width: 100%;
        padding: 12px 30px;
        margin: 13px 0;
    }
    .user button:first-child {
        margin-right: 15px;
    }

    /*------------------------------MAIN*/
    article {
        position: relative;
        max-width: 1250px;
        margin: 0 40px;
    }
    article::before {
        position: absolute;
        top: 30px;
        left: -95px;
        width: auto;
        height: auto;
        content: url("../img/bg1.webp");
        background: none;
        z-index: -1;
    }
    article::after {
        position: absolute;
        content: url("../svg/footer.svg");
        width: auto;
        height: auto;
        background: none;
        bottom: -85px;
        left: -85px;
        z-index: -1;
    }
    h3 {
        position: relative;
    }
    h3::after {
        position: absolute;
        content: url("../svg/text-svg.svg");
        right: 0;
        bottom: -300px;
        z-index: -1;
    }

    /*------------------------------TABLES*/
    table {
        font-size: var(--big-font-size);
        padding: 0 30px 30px;
    }
    tr {
        font-size: var(--big-font-size);
        justify-content: center;
    }
    .table4 td {
        width: 25%;
    }
    .table3 td {
        width: 33%;
    }
    .table2 td {
        width: 50%;
    }
    tr td:first-child {
        font-size: var(--big-font-size);
        min-width: 25%;
        padding-left: 0;
        padding-top: 0;
    }

    /*------------------------------FOOTER*/
    footer::after {
        content: none;
    }
}

