@import url('https://fonts.googleapis.com/css2?family=Rubik: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: #8C5AFF;
    --anchor-background: #F0EFEF;
    --lists-background: #151515;
    --table-background: #D7FC51;
    --text-color: #FFFFFF;

    --text-font-weight: 400;
    --table-font-weight: 500;
    --user-font-weight: 600;
    --title-font-weight: 700;

    --normal-font-size: 16px;
    --big-font-size: 18px;
}

body {
    font-family: 'Rubik', 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;
}
.invis {
    display: none;
}

/*------------------------------HEADER*/
.head-d {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.head-d span {
     font-weight: var(--title-font-weight);
     font-size: 24px;
     margin: 30px;
 }
.logotype-d {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logotype-d div {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
}
.burger-d {
    width: 40px;
    height: 30px;
    margin: 40px;
    cursor: pointer;
}
.op-d {
    background: url("../svg/burger.svg") no-repeat;
}
.cl-d {
    background: url("../svg/close.svg") no-repeat;
    position: absolute;
    top: 0;
    left: 0;
}
.navig-d {
    color: var(--lists-background);
    min-width: 80%;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--text-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.navig-d ul {
    list-style: none;
    margin-top: 120px;
}
.navig-d li {
    font-weight: var(--table-font-weight);
    font-size: var(--big-font-size);
    line-height: 24px;
    padding: 15px 30px;
    margin: 30px 10px 50px 5px;
    cursor: pointer;
    text-align: start;
}
.client-d {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.client-d button {
    color: var(--lists-background);
    border: 1px solid var(--lists-background);
    width: 250px;
    line-height: 22px;
    font-size: var(--normal-font-size);
    font-weight: var(--user-font-weight);
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 10px;
}
.client-d button:hover {
    border: 1px solid var(--text-color);
    background: var(--text-color);
    color: var(--background-color);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

/*------------------------------MAIN*/
main {
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 80px;
}
.main-d {
    display: flex;
    flex-direction: column;
    align-items: center;
}
figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}
img {
    border-radius: 30px;
    margin: 30px auto;
}

h2, h3 {
    color: var(--table-background);
}

h1 {
    font-weight: var(--title-font-weight);
    font-size: 32px;
    line-height: 50px;
    margin: 30px 0;
    hyphens: auto;
}
h2 {
    font-size: 30px;
    line-height: 40px;
    font-weight: var(--title-font-weight);
    margin: 30px 0;
}
h3 {
    font-size: 28px;
    line-height: 34px;
    font-weight: var(--title-font-weight);
    margin: 30px 0;
}
article ul, ol {
    font-size: var(--big-font-size);
    margin-left: 20px;
    text-align: start;
    margin-bottom: 15px;
}
li {
    padding: 10px;
    line-height: 34px;
}
a {
    color: var(--table-background);
}
p {
    font-size: var(--big-font-size);
    line-height: 34px;
    margin-bottom: 24px;
    text-align: start;
}
.anchor-section {
    margin-top: 30px;
    padding: 30px 12px;
    color: var(--lists-background);
    background: var(--anchor-background);
    border-radius: 20px;
}
.lists-section {
    margin-top: 30px;
    padding: 30px 12px;
    background: var(--lists-background);
    color: var(--anchor-background);
    border-radius: 20px;
}
.anchors-d {
    list-style:none;
    margin-left: 0;
}

/*------------------------------TABLES*/
.tables-d {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
table {
    color: var(--lists-background);
    background: var(--table-background);
    border-radius: 10px;
    font-weight: var(--table-font-weight);
    width: 95%;
    margin: 35px 0 20px 0;
}
tbody {
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
}
tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
tr:not(.tr-d) {
    border-bottom: 1px solid var(--lists-background);
}
td {
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    word-wrap: break-word;
    width: 33%;
    text-align:center;
    padding: 25px 10px;
}
td:first-child {
    text-align: left;
}
td:last-child {
    text-align: right;
}
.desk-d {
    display: none;
}

.up-d {
    background: var(--table-background);
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    font-size: 25px;
    height: 56px;
    width: 56px;
    position: fixed;
    bottom: 70px;
    right: 30px;
    border-radius: 50%;
    border: 1px solid var(--lists-background);
}
.up-up {
    width: 20px;
    height: 25px;
    background: url("../svg/Vector.svg") no-repeat center;
}

/*------------------------------FOOTER*/
footer {
    font-size: var(--big-font-size);
    padding: 30px 15px;
    position: relative;
}
footer span {
    font-size: 12px;
    line-height: 15px;
    padding: 2px;
    text-align: center;
}

@media (min-width: 850px) {
    .invis {
        display: flex;
    }

    /*------------------------------HEADER*/
    .head-d {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        padding: 0 20px;
    }
    .head-d > div {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    .head-d > div:first-child {
        min-width: 70%;
    }
    .head-d span {
        margin: 25px;
        width: auto;
    }
    .navig-d {
        min-width: auto;
        background: none;
        position: relative;
        flex-direction: row;
        align-items: center;
        border-right: none;
    }
    .navig-d ul {
        display: flex;
        flex-direction: row;
        margin-top: 0;
    }
    .navig-d li {
        color: var(--text-color);
        font-size: var(--normal-font-size);
        padding: 0;
        margin: 30px;
    }
    .logotype-d {
        display: none;
    }
    .cl-d {
        display: none;
    }
    .client-d {
        margin: 0;
    }
    .client-d button {
        width: 100%;
        padding: 10px 20px;
        margin: 13px 25px 13px 0;
    }

    /*------------------------------MAIN*/
    main {
        margin: 0;
    }
    .main-d {
        margin: 0 40px;
    }
    h1 {
        font-size: 44px;
        line-height: 64px;
        margin: 40px 0;
    }
    h2 {
        font-size: 44px;
        margin: 40px 0;
    }
    h3 {
        font-size: 32px;
        margin: 40px 0;
    }
    p {
        text-indent: 20px;
    }
    .anchor-section, .lists-section {
        padding: 70px;
        margin-top: 70px;
    }

    /*------------------------------TABLES*/
 
    td {
        font-size: 18px;
    }
    .four-d td {
        width: 25%;
    }
    .four-d td:not(.first-d, .last-d){
        text-align: center;
    }
    .mob-d {
        display: none;
    }
    .desk-d {
        display: flex;
        justify-content: center;
    }
}

