@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600;700&display=swap');


/* varibles */

:root {
    --color-white: #fff;
    --color-black: #000000;
    --color-dark-blue: #0F103F;
    --color-blue: #1C1C65;
    --color-l-blue: #00FFF0;
    --bg-main: #472d30;
    --color-link: #f8563e;
    --color-primary: #ffe1a8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    font-size: 18px;
    color: var(--color-primary);
    min-width: 320px;
    background-color: var(--bg-main);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.btn {
    border: none;
    background: transparent;
    cursor: pointer;

}

.container {
    max-width: 1040px;
    margin: 0 auto;
}

.header {
    padding: 28px 140px;
}

.header__wrapper {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
span.header-logo {
    font-weight: 700;
    font-size: 22px;
}

.header-block {
    display: flex;
    gap: 20px;
}

.header-btn {
    font-family: 'Roboto Mono', monospace;

    background: var(--color-l-blue);
    border-radius: 30px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.05em;
    color: var(--color-black);
}

.header-btn:first-child {
    width: 91px;
}

.header-btn:last-child {
    width: 158px;
}

.hero {
    padding: 50px 0;
    position: relative;
    background-image: url(../img/top.png);
    background-repeat: no-repeat;
    background-position: left -32px top;
}


.hero-img {
    display: flex;
    justify-content: center;
}

.hero-list li a {
    font-weight: 500;
    font-size: 22px;
    line-height: 40px;
    color: var(--color-l-blue);
}

article a {
    color: var(--color-link);
    text-decoration: underline;
}

.content {
    padding: 0 0 50px 0;
}

h1 {
    font-weight: 700;
    font-size: 54px;
    line-height: 64px;
    text-align: center;
    color: var(--color-link);
    margin: 50px 0;
    word-wrap: break-word;
}

h2 {
    font-weight: 600;
    font-size: 34px;
    line-height: 44px;
    text-align: center;
    color: var(--color-link);
    margin: 40px 0;
}

h3 {
    font-weight: 500;
    font-size: 26px;
    line-height: 44px;
    text-align: center;
    color: var(--color-link);
    margin: 40px 0;
}

p {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.content ul {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    color: var(--color-primary);
    margin: 30px 0 30px 40px;
    list-style-type: circle;
}

.content ol {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    color: var(--color-primary);
    margin: 30px 0 30px 40px;
    list-style-type: decimal;
}

.content img {
    display: block;
    margin: 30px auto;
    border-radius: 30px;
    border: 1px dashed var(--color-link);
    padding: 15px;
}

/* table */

table {
    width: 100%;
    margin-top: 40px;
}

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-white);
    padding: 20px;
    border-top: 1px solid var(--color-white);
}

.four-colums:last-child {
    border-bottom: 1px solid var(--color-white);
}

.three-colums {
    grid-template: auto/repeat(3, 1fr);
    color: var(--color-white);
    padding: 20px;
    border-top: 1px solid var(--color-white);

}

.two-colums {
    grid-template: auto/repeat(2, 1fr);
    color: var(--color-white);
    padding: 20px;
    border-top: 1px solid var(--color-white);
}

.three-colums:last-child {
    border-bottom: 1px solid var(--color-white);
}

.two-colums:last-child {
    border-bottom: 1px solid var(--color-white);
}

.number {
    justify-self: center;
}

.textEnd {
    justify-self: flex-end;
    text-align: right;
}

/*  footer */

footer {
    background-color: var(--color-black);
    padding: 20px 10px;
    display: flex;
    justify-content: center;
}

.footer_copyright {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: var(--color-link);
    margin-bottom: 0;
    text-align: center;
}

/*  media quwery  */

@media (max-width: 1200px) {
    .header {
        padding: 28px 10px;
    }

    .hero__wrapper {
        padding: 0 14px;
    }

    .content {
        padding: 0 14px 50px 14px;

    }
}

@media(max-width:850px) {
    h1 {
        font-size: 42px;
        line-height: 58px;
        margin: 40px 0;
    }

    h2 {
        font-size: 36px;
        line-height: 58px;
        margin: 30px 0;
    }

    h3 {
        font-size: 28px;
        line-height: 44px;
        margin: 30px 0;
    }

    .hero {
        padding: 50px 0 30px 0;
    }
}

@media(max-width:590px) {
    .four-colums {
        padding: 20px 0 0;
        grid-template: min-content 1px min-content/repeat(2, 1fr);
        gap: 40px 0;
    }

    .three-colums {
        padding: 20px 0;

    }

    .two-colums {
        padding: 20px 0;
    }

    .four-colums .tx-right {
        justify-self: right;
    }

    .four-colums .tx-left {
        justify-self: left;
    }
}


@media(max-width:450px) {
    .header__wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .header-block {
        flex-direction: column;
        align-items: center;
    }

    .header-btn:first-child {
        width: 200px;
    }

    .header-btn:last-child {
        width: 200px;
    }

    .hero {
        padding: 0 0 30px 0;
    }

    .header {
        padding: 30px 0 50px 0;
    }

    p {
        margin-bottom: 30px;
    }

    table {
        font-size: 18px;
    }

}