@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono: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: #030507;
    --button-background: #E7E7E7;
    --text-color: #FFFFFF;
    --extra-color: #7727FB;

    --text-font-weight: 400;
    --title-font-weight: 700;

    --normal-font-size: 16px;
    --small-mob-font-size: 14px;
    --big-font-size: 18px;
}

body {
    font-family: 'Roboto Mono', monospace;
    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;
}

.vanish {
    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-size: 18px;
    margin: 30px;
}

.box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #4D4E59;
}

.box div {
    display: flex;
}

.burger {
    width: 40px;
    height: 30px;
    margin: 30px;
    cursor: pointer;
}

.op {
    background: url("../svg/burger.svg") no-repeat;
}

.cr {
    background: url("../svg/close.svg") no-repeat;
    position: absolute;
    top: 0;
    right: 0;
}

.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 {
    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(--button-background);
    border-radius: 10px;
}

.customer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.customer 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(--button-background);
    border-radius: 10px;
}

.customer button:hover {
    background: var(--button-background);
    color: var(--background-color);
}

/*------------------------------MAIN*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    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: 44px;
    line-height: 56px;
    font-weight: var(--title-font-weight);
    text-align: center;
    margin-top: 25px;
    margin: 50px 0;
    color: var(--extra-color);
}

h2 {
    font-size: 38px;
    line-height: 64px;
    font-weight: var(--title-font-weight);
    text-align: left;
    margin: 40px 0;
    color: var(--extra-color);
}

h3 {
    font-weight: var(--text-font-weight);
    font-size: 28px;
    line-height: 34px;
    text-align: left;
    color: var(--extra-color);
    margin: 30px 0;
}

main ul,
ol {
    text-align: start;
    margin-bottom: 15px;
}

article>ul,
ol {
    margin-left: 30px;
}

li {
    padding: 8px;
    line-height: 34px;
}

a {
    color: var(--extra-color);
}

p {
    margin-bottom: 26px;
    line-height: 34px;
    text-align: start;
}

.anchors-ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.anchors-ul li {
    font-weight: var(--title-font-weight);
    color: var(--background-color);
    background: var(--button-background);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    text-align: center;
    list-style: none;
    cursor: pointer;
    border-radius: 10px;
    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;
}

.firstCell {
    font-weight: var(--title-font-weight);
}

.first-line {
    flex-wrap: wrap;
}

.first-line td:first-child {
    min-width: 100%;
    text-align: center;
}

.four-col td {
    width: 33%;
}

.three-col td {
    width: 50%;
}

.two-col td {
    width: 100%;
}

.up-up {
    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-up:hover {
    background: rgba(119, 39, 251, 0.6);
}

/*------------------------------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) {
    .vanish {
        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 #4D4E59;
    }

    .header-part {
        min-width: 50%;
        border-bottom: none;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    header span {
        margin: 25px;
        width: auto;
        font-weight: 700;
        text-transform: uppercase;
        font-size: 22px;
    }

    .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);
    }

    .box {
        display: none;
        border-bottom: none;
    }

    .cr {
        display: none;
    }

    .customer {
        flex-direction: row;
        margin: 0;
    }

    .customer button {
        width: 100%;
        padding: 10px 20px;
        margin: 13px 25px 13px 0;
    }

    /*------------------------------MAIN*/
    main>div {
        max-width: 1150px;
        margin: 0 40px;
    }

    .picture {
        max-width: 50%;
        margin-bottom: 40px;
    }

    .right-img {
        float: right;
        margin-left: 20px;
    }

    .left-img {
        float: left;
        margin-right: 20px;
    }

    .anchorWrap {
        display: flex;
        flex-direction: column-reverse;
    }

    .anchors-ul ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        margin-bottom: 40px;
    }

    .anchors-ul li {
        width: auto;
        margin: 5px 10px;
    }

    /*------------------------------TABLES*/
    table {
        padding: 0 30px 30px;
    }

    tr {
        font-size: var(--big-font-size);
        justify-content: center;
    }

    .four-col td {
        width: 25%;
    }

    .three-col td {
        width: 33%;
    }

    .two-col td {
        width: 50%;
    }

    .first-line td:first-child {
        min-width: 25%;
        padding-left: 0;
        padding-top: 0;
    }
}