@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

:root {
    --ff-ubuntu: 'Ubuntu', sans-serif;
   

    /* color */
    --color-primary: #000000;
    --color-secondary: #FFFFFF;
    --color-dark-red: #50203A;
    --color-dark: #1D063C;
    --color-gray: #CCCCCC;
    --color-dark-lt: #10292E;
    --color-violet: #A00DFA;

    /* bg-color */
    --bg-primary: #000000;
    --bg-secondary: #FFFFFF;
    --bg-dark: #1D063C;
    --bg-gray: #CCCCCC;
    --bg-body: #283618;
    --bg-dark-red: #50203A;
    --bg-brown: #bc6c25;

}

/* default style */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100vh;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

ol {
    margin-top: 25px;
}

a {
    color: red;
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
    margin: auto;
}

picture>img {
    border-radius: 20px;
}

button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.hidden {
    overflow-y: hidden;
}

h1 {
    font-weight: 700;
    font-size: 30px;
    line-height: 32px;
    color: var(--color-dark-red);
    margin: 25px 0;
    text-align: center;
}

h2 {
    font-weight: 700;
    font-size: 28px;
    line-height: 33px;
    text-align: center;
    margin: 25px 0;
    color: var(--color-dark-red);
}

h3 {
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    margin: 25px 0;
    text-align: center;
    color: var(--color-dark-red);
}

p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 21px;
}

picture+p {
    margin-bottom: 34px;
    margin-top: 25px;
}

footer>p {
    margin-bottom: 0;
    text-indent: 0;
    color: var(--color-secondary);
}

/* main style */
body {
    display: flex;
    flex-direction: column;
    font-family: var(--ff-ubuntu);
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    color: var(--color-primary);
    background: var(--bg-body);
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-gray);
    padding: 25px 50px 40px;
    border-radius: 30px;
}

.wrapp {
    max-width: 1300px;
    margin: 0 auto;
}

/* header */

.header {
    flex: 1 0 auto;
    height: 90px;
    color: var(--color-secondary);
}

.header__fx {
    background: var(--bg-body);
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 0;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.burger-menu {
    display: none;
}

.header__logo {
    display: block;
    width: 57px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 22px;
    line-height: 26px;
    cursor: pointer;
    color: #fefae0;
}

.menu {
    display: flex;
    gap: 55px;
    margin: 0;
}

.menu__link {
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
}

.header__block {
    display: flex;
    justify-content: flex-end;
    gap: 35px;
}

.header__block button {
    width: 150px;
    background: var(--bg-brown);
    box-shadow: 4px 5px 8px rgba(239, 188, 4, 0.5);
    border-radius: 60px;
    font-weight: 700;
    font-size: 18px;
    line-height: 21px;
    color: var(--color-secondary);
    text-align: center;
    padding: 14px 0 15px;
}

/* end header */

/* article */



.article ul,
.article ol {
    margin-left: 50px;
    margin-bottom: 30px;
}

.article ul {
    list-style-type: disc;

}

.article li {
    font-size: 18px;
    line-height: 26px;
}

/* table */

.table {
    max-width: 1040px;
    width: 100%;
    margin: 50px auto 0px;
    border-collapse: collapse;
    border-spacing: 0px;
}

tbody tr {
    border-bottom: 1px solid var(--color-dark-red);
    display: grid;
    grid-template: auto/repeat(4, 1fr);
    align-items: center;
}

.table-snd tbody tr {
    grid-template: auto/repeat(3, 1fr);
}

.table-fs tbody tr {
    grid-template: auto/repeat(2, 1fr);
}

tbody tr:last-child {
    border-bottom: 1px solid var(--color-dark-red);
}

tbody td {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    padding: 19px 10px;
    text-align: center;
}

tbody td:first-child {
    text-align: left;
}

tbody td:last-child {
    text-align: right;
}

/* end table */

.footer {
    flex: 0 0 auto;
    padding: 30px 0;
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* @media style */

@media(max-width:1350px) {
    .wrapp {
        padding: 0 20px;
    }
}

@media(max-width:850px) {
    .container {
        border-radius: 0;
        padding: 20px 15px 30px;
    }

    .header__fx {
        display: flex;
        align-items: center;
    }

    .header__content {
        flex: 1;
    }

    .burger-menu {
        display: block;
        position: relative;
        z-index: 5;
        width: 30px;
        height: 30px;
        background: url(../img/burger.svg) no-repeat center;
        margin: 0 15px 0 30px;
        transition: 0.3s linear;
    }

    .burger-menu.active {
        background: url(../img/close.svg) no-repeat center;
    }

    .nav {
        position: absolute;
        z-index: 3;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: var(--bg-body);
        padding: 180px 0 0 30px;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: 0.3s linear;
    }

    .nav.active {
        transform: translateX(0);
        right: 30%;
    }

    .menu {
        flex-direction: column;
    }

    .menu__link {
        color: white;
    }}


@media(max-width:768px) {

    .table-ls tbody {
        gap: 54px;
    }

    .table-ls tbody tr {
        grid-template: auto/repeat(2, 1fr);
    }

    .table-ls tbody tr td:nth-child(odd) {
        text-align: left;
    }

    .table-ls tbody tr td:nth-child(even) {
        text-align: right;
    }

    .table-ls tbody tr td {
        padding: 19px 10px 9px;
    }

    .table-ls tbody tr td:nth-child(3),
    .table-ls tbody tr td:last-child {
        padding: 9px 10px 19px;
    }
}

@media(max-width:590px) {
    header.header {
        height: 213px;
    }

    .header__content {
        flex-direction: column;
        gap: 27px;
    }

    .header__block button {
        width: 250px;}

    .header__block {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .burger-menu {
        position: absolute;
        z-index: 5;
        top: 25px;
        left: 20px;
        margin: 0;
    }

    tbody td {
        font-size: 14px;
        line-height: 16px;
        padding: 20px 0;
    }

    .footer {
        padding: 15px 0;
    }
}

@media(max-width:450px) {
    

    picture>img {
        border-radius: 30px;
    }

    h1 {
        word-wrap: break-word;
        word-break: break-all;
        margin: 20px 0;
    }

    h2,
    h3 {
        margin: 20px 0;
    }

    p {
        margin-bottom: 20px;
    }

    ol {
        margin-top: 20px;
    }

    .table {
        margin: 20px auto 0px;
    }

    
}

@media(max-width:390px) {
    tbody td {
        font-size: 12px;
    }

    .footer span {
        display: block;
        text-align: center;
    }
}