@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Text: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: #442e2b;
    --text-color: #FFFFFF;
    --footer-background: #741004;
    --table-background: #fb1f1f;
    --button-hover-background: linear-gradient(90deg, #fb1f1f 0%, #F6791E 100%);
    --anchor-hover-background: linear-gradient(180deg, #fb1f1f 0%, #F6791E 100%);
    --text-font-weight: 400;
    --button-font-weight: 600;
    --title-font-weight: 700;
    --normal-font-size: 16px;
    --small-font-size: 14px;
    --big-font-size: 18px;
}

body {
    font-family: 'Wix Madefor Text', 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;
}
.in-ble {
    display: none;
}

/*------------------------------HEADER*/
.head-section {
    display: flex;
    flex-direction: column;
    text-align: center;
}
.head-section span {
     color: var(--table-background);
     font-weight: var(--title-font-weight);
    font-size: 24px;
     margin: 30px;
 }
.logotype-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.logotype-section div {
    display: flex;
}
.burger-section {
    width: 40px;
    height: 30px;
    margin: 30px;
    cursor: pointer;
}
.open-section {
    background: url("../svg/burger.svg") no-repeat;
}
.close-section {
    background: url("../svg/close.svg") no-repeat;
    position: absolute;
    top: 0;
    right: 0;
}
.navigation-section {
    min-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--background-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.navigation-section ul {
    list-style: none;
    margin-top: 200px;
}
.navigation-section li {
    text-transform: uppercase;
    font-weight: var(--title-font-weight);
    font-size: var(--big-font-size);
    line-height: 32px;
    padding: 15px 30px;
    margin: 30px 25px 50px 25px;
    cursor: pointer;
}
.navigation-section li:hover {
    color: var(--table-background);
    text-shadow: 0 0 24px #FBBB1F;
}
.client-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.client-section button {
    width: 250px;
    font-size: var(--normal-font-size);
    font-weight: var(--title-font-weight);
    padding-top: 15px;
    padding-bottom: 15px;
    margin-top: 20px;
    cursor: pointer;
    border: 1px solid var(--text-color);
    border-radius: 20px;
}
.client-section button:hover {
    background: var(--button-hover-background);
    box-shadow: 0 0 24px #F6791E;
    border-radius: 20px;
    border: 1px solid var(--table-background);
}

/*------------------------------MAIN*/
main {
    margin: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
}
.main-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}
img {
    margin: 15px auto;
    border-radius: 10px;

}
h1 {
    font-size: 48px;
    line-height: 58px;
    font-weight: var(--title-font-weight);
    text-align: center;
    margin: 20px 0;
    hyphens: auto;
}
h2 {
    font-size: 40px;
    line-height: 55px;
    font-weight: var(--title-font-weight);
    text-align: center;
    margin: 25px 0;
}
h3 {
    font-weight: var(--title-font-weight);
    font-size: 36px;
    line-height: 50px;
    text-align: center;
    margin: 25px 0;
}
article ul, ol {
    font-size: var(--big-font-size);
    margin-left: 40px;
    text-align: start;
    margin-bottom: 15px;
}
li {
    padding: 8px;
}
a {
    color: var(--table-background);
}
p {
    font-size: var(--big-font-size);
    line-height: 34px;
    margin: 18px 0;
    text-align: start;
}
.anchors-section {
    display: flex;
    justify-content: center;
    align-items: center;
}
.anchors-section li {
    font-size: var(--big-font-size);
    font-weight: var(--button-font-weight);
    background: var(--table-background);
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    list-style: none;
    cursor: pointer;
    border-radius: 30px;
    padding: 15px 30px;
    box-shadow: 3px 4px 7px rgba(0, 0, 0, 0.15);
}
.anchors-section li:hover {
    color: var(--text-color);
    box-shadow: 0 0 24px #F6791E;
    background: var(--anchor-hover-background);
}
ul span {
    margin-right: 5px;
}

/*------------------------------TABLES*/
table {
    width: 100%;
    margin: 30px 0;
    border-radius: 30px;
    padding: 0 15px 15px 15px;
    font-size: var(--small-font-size);
}
tr {
    display: flex;
}
tr:nth-child(2n+1) {
    background: var(--table-background);
    border-radius: 10px;
}
td {
    word-wrap: break-word;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0 5px;
}
.first-section {
    font-size: var(--normal-font-size);
    font-weight: var(--title-font-weight);
}
.string-section {
    flex-wrap: wrap;
}
.string-section td:first-child {
    min-width: 100%;
    text-align: center;
}
.four-section td {
    width: 33%;
}
.three-section td {
    width: 50%;
}
.two-section td {
    width: 100%;
}
.up-section {
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    font-size: 22px;
    color: #FFFFFF;
    height: 70px;
    width: 68px;
    position: fixed;
    bottom: 70px;
    right: 30px;
    border-radius: 50%;
    background: rgb(128 81 81 / 70%);
}
.up-section:hover {
    background: var(--table-background);
    box-shadow: 0 0 24px #F6791E;
}

/*------------------------------FOOTER*/
footer {
    display: flex;
    flex-direction: column;
    background: var(--footer-background);
    padding: 30px 15px;
}
footer span {
    font-size: 12px;
    line-height: 15px;
    padding: 2px;
    text-align: center;
}

@media (min-width: 850px) {
    .in-ble {
        display: flex;
    }

    /*------------------------------HEADER*/
    .head-section {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        padding: 0 20px;
    }
    .head-section > div {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    .head-section > div:first-child {
        min-width: 70%;
    }
    .head-section span {
        margin: 25px;
        width: auto;
    }
    .navigation-section {
        min-width: auto;
        background: none;
        position: relative;
        flex-direction: row;
        align-items: center;
    }
    .navigation-section ul {
        display: flex;
        flex-direction: row;
        margin-top: 0;
    }
    .navigation-section li {
        font-size: 13px;
        padding: 0;
        margin: 30px;
        border-bottom: 1px solid transparent;
    }
    .navigation-section li:hover {
        color: var(--table-background);
        text-shadow: 0 0 24px #FBBB1F;
        border-bottom: 1px solid var(--table-background);
    }
    .logotype-section {
        display: none;
    }
    .close-section {
        display: none;
    }
    .client-section {
        margin: 0;
    }
    .client-section button {
        width: 100%;
        padding: 10px 20px;
        margin: 13px 25px 13px 0;
    }

    /*------------------------------MAIN*/
    main {
        margin: 0;
    }
    main::after {
        content: " ";
        height: 100%;
        width: 100%;
        background: url("../svg/back.png") no-repeat right;
        position: absolute;
        top: 70%;
        right: 0;
        z-index: -1;
    }
    .main-section {
        margin: 0 20px;
        max-width: 1150px;
    }
    .main-section > figure > img {
        border-radius: 20px;
    }
    h1 {
        font-size: 48px;
    }
    h2 {
        font-size: 40px;
    }
    h3 {
        font-size: 28px;
    }
    .anchors-section ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        margin: 20px 0;
    }
    .anchors-section li {
        border-radius: 30px;
        width: auto;
        margin: 8px 10px;
    }

    /*------------------------------TABLES*/
    table {
        width: calc(100% - 80px);
        margin: 20px 40px;
        font-size: var(--big-font-size);
        padding: 0;
    }
    tr {
        justify-content: center;
    }
    .first-section {
        font-size: var(--big-font-size);
    }
    .four-section td {
        width: 25%;
    }
    .three-section td {
        width: 33%;
    }
    .two-section td {
        width: 50%;
    }
    .string-section td:first-child {
        min-width: 25%;
        padding-left: 0;
        padding-top: 0;
    }
}

@media (max-width: 550px) {
    h1 {
        font-size: 36px;
        line-height: 45px;
    }
    h2 {
        font-size: 30px;
        line-height: 40px;
    }
    h3 {
        font-size: 26px;
        line-height: 34px;
    }
}