@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

/* varibles */

:root {
    --color-white: #fff;
    --color-black: #000;
    --color-dark-grey: #222831;
    --color-l-grey: #393E46;
    --color-orange: #FD7013;
    --color-blue: #491f5b;
    --color-l-blue: #e9da13;;

    --bg-dark-grey: #222831;
    --bg-blue: #491f5b;
    --bg-l-blue: #e9da13;;
    --bg-white: #fff;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--color-black);
    min-width: 320px;
    background-color: var(--bg-bue);
}

.skroll {
    overflow-y: hidden;
}

.burger {
    display: none;
}

article a {
    color: var(--color-l-blue);
    text-decoration: none;
}

h1 {
    font-weight: 700;
    font-size: 44px;
    line-height: 56px;
    text-align: center;
    color: var(--color-l-blue);
    word-wrap: break-word;
    margin: 35px 0;

}

h2 {
    font-weight: 700;
    font-size: 35px;
    line-height: 44px;
    text-align: center;
    color: var(--color-l-blue);
    margin: 33px 0;
}

h3 {

    font-weight: 700;
    font-size: 28px;
    line-height: 38px;
    text-align: center;
    color: var(--color-l-blue);
    margin: 29px 0;
}

p {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    color: var(--color-black);
    text-indent: 20px;
    margin-bottom: 20px;
}

/* main-style */
.wrapper {
    display: flex;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    background-color: black;
}

.aside {
    position: relative;
    width: 400px;
    background: var(--bg-blue);
}

.aside-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 400px;
    padding-top: 60px;
}

.aside-header {
    padding: 50px 0 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* header */

.header {
    height: 64px;
}

.header-content {
    position: fixed;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    padding: 10px 10px;
    background: var(--bg-blue);
}

.burger {
    display: none;
}

.header__wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
}


.menu-list {
    display: flex;
    gap: 30px;

}

.menu-list li,
.menu-list li a {
    font-size: 16px;
    color: var(--color-white);
}


.header-block {
    display: flex;
    gap: 20px;
}

.header-btn {
    background: var(--bg-l-blue);
    border-radius: 12px;
    padding: 10px 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-white);
}

.btn-one {
    background: transparent;
    border: 2px solid var(--color-l-blue);
    color: var(--color-white);
}

.header-btn:first-child {
    width: 80px;
}

.header-btn:last-child {
    width: 150px;
}


/* end header */

.header {
    padding-top: 50px;
}

main {
    max-width: 1040px;
    background: var(--bg-white);
}

.ankor-list {
    display: none;
}


.aside-logo.logo {
    margin-bottom: 50px;
}

.aside-header button:first-of-type {
    margin-bottom: 20px;
}

.aside-list {
    width: 350px;
    margin: 0 auto;
}

.aside-link {
    font-weight: 400;
    line-height: 46px;
    color: var(--color-white);
}


article {
    padding: 40px 70px 30px 70px;
}

.ankor-list ul {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    list-style: none;
    margin: 30px 0 30px 20px;
}

article ul {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    margin: 30px 0 30px 20px;
    list-style: none;
}

article ul li::before {
    content: "\2022";
    color: var(--bg-l-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.ankor-list li::before {
    display: none;
}

article ol {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    list-style: none;
    counter-reset: li;
    margin: 30px 0 30px 20px;
}

article ol li {
    counter-increment: li;
}

article ol li::before {
    content: counter(li);
    color: var(--color-l-blue);
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
    margin-right: 0.5em;
    text-align: right;
    direction: rtl;
}


article img {
    margin: 0 auto 30px;
}

/* table */

table {
    width: 100%;
    margin-top: 50px;
}

table tbody {
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
    width: 100%;
}

.rou {
    display: grid;
    gap: 30px;
    align-items: center;
}

.four-colums {
    grid-template: auto/repeat(4, 1fr);
    color: var(--color-black);
    padding: 20px;
    border-top: 1px solid var(--color-l-blue);
}

.four-colums:last-child {
    border-bottom: 1px solid var(--color-l-blue);
}

.three-colums {
    grid-template: auto/repeat(3, 1fr);
    color: var(--color-black);
    padding: 20px;
    border-top: 1px solid var(--color-l-blue);

}

.two-colums {
    grid-template: auto/repeat(2, 1fr);
    color: var(--color-black);
    padding: 20px;
    border-top: 1px solid var(--color-l-blue);
}

.three-colums:last-child {
    border-bottom: 1px solid var(--color-l-blue);
}

.two-colums:last-child {
    border-bottom: 1px solid var(--color-l-blue);
}

.number {
    justify-self: center;
}

.textEnd {
    justify-self: flex-end;
    text-align: right;
}

footer {
    padding: 26px 10px;
}

.footer_copyright {
    text-align: center;
    text-indent: 0;
    margin-bottom: 0;
    color: var(--color-black);
}

@media(max-width:1200px) {

    article {
        padding: 30px 35px 100px 35px;
    }

}


@media(max-width:1050px) {
    .aside-wrapper{
        padding-left: 40px;
    }
}

@media(max-width:980px) {
    .aside {
        display: none;
    }

    .header {
        padding: 50px 35px 0;
    }


    .ankor-list {
        display: block;
    }

    .header-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header-logo.logo {
        margin-bottom: 10px;
    }

    ul.ankor-list  {
        font-weight: 400;
        font-size: 18px;
        line-height: 34px;
        list-style: none;
        margin: 30px 0 30px 20px;
    }

    a.ankor-link {
        color: var(--color-black);
    }



}

@media(max-width:850px) {
    .menu {
        position: absolute;
        z-index: 3;
        background: #491f5b;
        left: -100%;
        right: 100%;
        top: 65px;
        bottom: 0;
        height: 100vh;
        padding: 170px 30px 30px 30px;
        overflow-x: hidden;
        transition: 0.4s linear;
    }

    .menu.open {
        left: 0;
        right: 0;
    }

    .menu-list {
        flex-direction: column;
        gap: 50px;
    }

    .menu-list li,
    .menu-list li a {
        color: var(--color-white);
    }

    .burger {
        display: block;
        width: 30px;
        height: 30px;
        background-image: url(../img/burger_white.png);
        background-repeat: no-repeat;
        background-position: top center;
        position: relative;
        z-index: 4;
        transition: 0.3s linear;
    }


    .burger.active {
        background-image: url(../img/close.png);
        background-position: center;
    }
}

@media(max-width:768px) {

    h1 {
        width: 98%;
        font-size: 38px;
        line-height: 48px;
        margin: 30px auto;
        word-break: break-word;
    }

    h2 {
        font-size: 34px;
        line-height: 34px;
        margin: 30px 0;
    }

    h3 {
        font-size: 30px;
        line-height: 34px;
        margin: 30px 0;
    }

    .header {
        padding: 50px 25px 0;
    }

    article {
        padding: 30px 25px 50px 25px;
    }

    .three-colums,
    .two-colums {
        padding: 20px 0;
    }

    .four-colums {
        padding: 20px 0 0;
        grid-template: min-content 1px min-content/repeat(2, 1fr);
        gap: 40px 0;
    }

    .four-colums .tx-right {
        justify-self: right;
    }

    .four-colums .tx-left {
        justify-self: left;
    }



}

@media(max-width:590px) {

    .header {
        padding: 50px 14px 0;
    }

    article {
        padding: 30px 14px 30px 14px;
    }
}

@media(max-width:450px) {

    .header {
        height: 221px;
    }

    .header__wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .menu {
        top: 214px;
    }

    .header-content {
        padding: 30px 10px;
    }

    .burger {
        position: absolute;
        top: 30px;
        left: 30px;
    }

    .header-block {
        flex-direction: column;
        align-items: center;
    }

    .header-block .header-btn {
        width: 250px;
    }

    table {
        font-size: 14px;
        line-height: 20px;
    }
}