@import url('https://fonts.googleapis.com/css2?family=Golos+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: #4e3c0e;
    --header-background-color: #744a0b;
    --text-color: #e8e7e7;
    --title-color: #FFF;
    --button-color: #091baa;
    --button-extra-color: linear-gradient(145deg, #0100ff 0.01%, #49ff57 100%);
    --table-title-bg: #000000;
    --table-background-color: #222;
    --table-extra-bg-color: #2F2F2F;
    --text-font-weight: 400;
    --button-font-weight: 500;
    --title-font-weight: 600;
    --logo-font-weight: 700;
    --big-font-size: 16px;
    --normal-font-size: 14px;
    --small-font-size: 12px;
}

body {
    font-family: 'Golos 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;
}
.changer {
    display: none;
}
/*------------------------------HEADER*/
header {
    color: var(--title-color);
    min-width: 100%;
    background: var(--header-background-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.25);
}
.head-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}
.logo-wrap-ty {
    display: flex;
    align-items: center;
}
header span {
    font-size: 20px;
    font-weight: var(--logo-font-weight);
    line-height: 20px;
    text-transform: uppercase;
    padding: 10px 10px;
    margin: 10px;
}
.item-ty {
    width: 36px;
    height: 30px;
    margin: 10px;
    cursor: pointer;
}
.open-item {
    background: url("../svg/burger.svg") no-repeat center;
}
.close-item {
    background: url("../svg/close.svg") no-repeat center;
}
.navigation-ty {
    min-width: 100%;
    position: fixed;
    top: 80px;
    left: 0;
    background: var(--background-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.navigation-ty::after {
    content: "";
    position: absolute;
    width: 100%;
    bottom: 60px;
    right: 0;
    background: url("../svg/nav-bg.svg") no-repeat left;
    height: 85%;
    z-index: -1;
}
.navigation-ty ul {
    list-style: none;
    margin: 15px;
    text-transform: uppercase;
}
.navigation-ty li {
    font-weight: var(--button-font-weight);
    font-size: var(--big-font-size);
    text-align: start;
    line-height: 32px;
    padding: 15px 10px;
    margin-top: 16px;
    cursor: pointer;
}
.navigation-ty li:hover {
    color: var(--button-color);
}
.user-ty {
    display: flex;
    align-items: center;
}
.user-ty button {
    padding: 14px 18px;
    font-size: var(--small-font-size);
    font-weight: var(--logo-font-weight);
    background: var(--button-color);
    margin: 5px;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
}
.user-ty button:last-child {
    background: var(--button-extra-color);
}

/*------------------------------MAIN*/
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px;
    position: relative;
}
.main-box {
    margin: 10px 15px 0 15px;
}
main > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}
main figure:first-child {
    padding-bottom: 10px;
}
img {
    margin: 15px auto;
    border-radius: 16px;
}
article {
    position: relative;
}
h1 {
    color: var(--title-color);
    font-size: 36px;
    font-weight: var(--title-font-weight);
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}
h2 {
    color: var(--title-color);
    font-size: 26px;
    font-weight: var(--title-font-weight);
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}
h3 {
    color: var(--title-color);
    font-weight: var(--title-font-weight);
    font-size: 20px;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}
main ul, ol {
    text-align: start;
    margin-bottom: 15px;
}
article > ul, ol {
    margin-left: 40px;
}
li {
    padding: 8px;
}
a {
    color: var(--button-color);
}
p {
    font-size: var(--normal-font-size);
    margin-bottom: 15px;
    line-height: 24px;
    text-align: start;
}

/*------------------------------TABLES*/
table {
    color: var(--title-color);
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
}
tr {
    background: var(--table-background-color);
}
tr:nth-child(2n+3) {
    background: var(--table-extra-bg-color);
}
td {
    font-size: var(--normal-font-size);
    word-wrap: break-word;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
}
th {
    word-wrap: break-word;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 18px;
    font-weight: var(--title-font-weight);
    background: var(--table-title-bg);
}
.tabl4 td {
    width: 25%;
}
.tabl3 td {
    width: 33%;
}
.tabl2 td {
    width: 50%;
}

.uper-btn {
    display: none;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    font-size: 22px;
    height: 71px;
    width: 71px;
    position: fixed;
    bottom: 70px;
    right: 30px;
    border-radius: 50%;
    background: rgba(104, 154, 104, 0.55);
    cursor: pointer;
}
.uper-btn:hover {
    color: var(--title-color);
    background: rgba(255, 200, 73, 0.6);
}

/*------------------------------FOOTER*/
footer {
    background: var(--header-background-color);
    margin-top: 30px;
}
footer p {
    font-size: var(--small-font-size);
    line-height: 15px;
    margin: 30px 15px;
    text-align: center;
}

@media (min-width: 850px) {
    .changer {
        display: flex;
    }

    /*------------------------------HEADER*/
    header span {
        margin-right: 40px;
    }
    .head-box {
        justify-content: space-around;
    }
    .logo-wrap-ty {
        width: 55%;
        justify-content: space-between;
    }
    .items-ty {
        display: none;
    }
    .navigation-ty {
        min-width: auto;
        background: none;
        position: relative;
        top: 0;
        flex-direction: row;
        align-items: center;
    }
    .navigation-ty::after {
        content: none;
    }
    .navigation-ty ul {
        display: flex;
        flex-direction: row;
        margin: 0;
    }
    .navigation-ty li {
        color: var(--text-color);
        font-size: 13px;
        padding: 0;
        margin: 10px 40px;
    }
    .user-ty {
        margin-left: 20px;
    }

    /*------------------------------MAIN*/
    main {
        padding-top: 60px;
    }
    .main-box {
        margin: 20px 40px 0 40px;
    }
    main > div {
        max-width: 1150px;
    }
    main::after {
        content: "";
        width: 100%;
        height: 850px;
        position: absolute;
        top: 90px;
        right: 0;
        background: url("../svg/article-bg.svg") no-repeat right;
        background-size: cover;
        z-index: -1;
    }
    main figure:first-child {
        padding-bottom: 25px;
    }
    h1 {
        font-size: 45px;
        line-height: 54px;
    }
    h2 {
        font-size: 38px;
        line-height: 48px;
    }
    h3 {
        font-size: 26px;
    }
    p {
        font-size: var(--big-font-size);
    }

    /*------------------------------TABLES*/
    td {
        font-size: var(--big-font-size);
        padding: 15px;
    }
    th {
        padding: 20px;
    }
}

