@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');

:root {
    --ff-el_messiri: 'El Messiri', sans-serif;

    /* color */
    --color-yellow: #356bf7;
    --color-violet: #A00DFA;
    --color-secondary: #FFFFFF;
    --color-primary: #fff;
    --color-brown: #0c2613;
    --color-pink: #FFE4FA;

    /* bg-color */
    --bg-yellow: #356bf7;
    --bg-secondary: #FFFFFF;
    --bg-primary: #000000;
    --bg-brown: #0c2613;
    --bg-pink: #FFE4FA;
}

/* 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: 30px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
    margin: auto;
    border-radius: 30px;
}

button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.hidden {
    overflow-y: hidden;
}

h1 {
    font-weight: 700;
    font-size: 42px;
    line-height: 64px;
    margin: 50px 0;
    text-align: center;
    color: var(--color-yellow);
    text-transform: uppercase;
}

h2 {
    font-weight: 600;
    font-size: 34px;
    line-height: 48px;
    text-align: center;
    margin: 40px 0;
    color: var(--color-yellow);
}

h3 {
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;
    margin: 40px 0;
    text-align: center;
    color: var(--color-yellow);
}

p {
    margin-bottom: 15px;
    text-indent: 15px;
    font-size: 18px;
    line-height: 36px;
}

h2+p {
    margin-bottom: 20px;
}

picture+p {
    margin-top: 30px;
}

p>a {
    color: var(--color-yellow);
    text-decoration: underline;
}


/* main style */

body {
    font-family: var(--ff-el_messiri);
    font-size: 16px;
    line-height: 1;
    font-weight: 300;
    color: var(--color-primary);
    background-color: var(--bg-brown);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
}

header {
    padding: 15px 0;
}

.header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.burger {
    display: none;
}

.logo {
    display: block;
    width: 120px;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    color: var(--color-yellow);
    cursor: pointer;
}

.header__nav {
    display: flex;
    gap: 50px;
    margin: 0;
}

.header__nav__link {
    font-size: 16px;
    line-height: 24px;
}

.header__btn {
    width: 290px;
    display: flex;
    justify-content: space-between;
}

.signin-btn {
    border: 1px solid var(--color-yellow);
    border-radius: 25px;
    width: 90px;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    padding: 12px 0;
    color: var(--color-yellow);
    font-family: var(--ff-el_messiri);
}

.signup-btn {
    background: var(--color-yellow);
    border-radius: 25px;
    width: 180px;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--bg-primary);
    font-family: var(--ff-el_messiri);
    padding: 12px 0;

}

.hero {
    padding: 30px 0 0px;
    position: relative;
    background-image: url(../img/Parts.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.hero__wrapper {

}

.hero__wrapper::before {
    content: "";
    width: 180px;
    height: 153px;
    position: absolute;
    left: 0;
    top: 24px;
}

.hero li {
    font-size: 16px;
    line-height: 40px;
}

article {
    padding-bottom: 10px;
}

article ul,
article ol {
    list-style-type: disc;
    padding-left: 50px;
    padding-bottom: 20px;
}

article li {
    font-size: 16px;
    line-height: 34px;
}

table {
    max-width: 1040px;
    width: 100%;
    margin: 50px auto 0;
    border-collapse: collapse;
    border-spacing: 0px;
}

table:not(:last-child) {
    margin-bottom: 50px;
}

tbody tr {
    border-top: 1px solid var(--color-primary);
    display: grid;
    grid-template: auto/repeat(4, 1fr);
    align-items: center;
}

.grid_3 tbody tr {
    grid-template: auto/repeat(3, 1fr);
}

.grid_2 tbody tr {
    grid-template: auto/repeat(2, 1fr);
}

tbody tr:last-child {
    border-bottom: 1px solid var(--color-primary);
}

tbody td {
    font-weight: 300;
    font-size: 16px;
    line-height: 22px;
    padding: 20px;
    text-align: center;
}

tbody td:first-child {
    text-align: left;
}

tbody td:last-child {
    text-align: right;
}

footer {
    padding: 36px 0;
}

footer>p {
    margin-bottom: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
    text-indent: 0;
}

@media(max-width:1250px) {
    .container {
        padding: 0 14px;
    }

    article ul,
    article ol {
        margin-left: 0px;

    }
}

@media(max-width:950px) {
    .hero {
        background-image: none;
    }

    h1 {
        font-size: 32px;
        line-height: 54px;
    }

    h2 {
        font-size: 28px;
        line-height: 44px;
    }

    h3 {
        font-size: 24px;
        line-height: 44px;
    }

}

@media(max-width:768px) {
    header {
        display: flex;
        align-items: center;
    }

    .header__top {
        flex: 1;
    }

    .burger {
        display: block;
        position: relative;
        z-index: 5;
        width: 30px;
        height: 30px;
        background: url(../img/burger.svg) no-repeat center;
        margin: 0 30px;
        transition: 0.3s linear;
        transform: rotate(0deg);
    }

    .burger.active {
        background: url(../img/close.svg) no-repeat center;
        transform: rotate(180deg);
    }

    nav {
        position: absolute;
        z-index: 3;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: var(--bg-primary);
        padding: 180px 0 0 30px;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: 0.3s linear;
    }

    nav.active {
        transform: translateX(0);
        right: 30%;
    }

    .header__nav {
        flex-direction: column;
    }

    .header__nav__link {
        color: white;
    }

    .hero__wrapper {
        background: transparent;
    }

    .grid_4 tbody tr {
        grid-template: auto/repeat(2, 1fr);
    }

    .grid_4 tbody tr td:first-child,
    .grid_4 tbody tr td:nth-child(3) {
        text-align: left;
    }

    .grid_4 tbody tr td:nth-child(2),
    .grid_4 tbody tr td:last-child {
        text-align: right;
    }

    .grid_4 tbody tr td:nth-child(3),
    .grid_4 tbody tr td:last-child {
        padding: 10px 20px 20px 20px;
    }

    .grid_4 tbody tr td:first-child,
    .grid_4 tbody tr td:nth-child(2) {
        padding: 20px 20px 10px;
    }
}

@media(max-width:590px) {
    h1 {
        font-size: 26px;
        line-height: 40px;
    }

    tbody td {
        font-size: 14px;
        line-height: 16px;
        padding: 20px 0;
    }
}

@media(max-width:495px) {
    header {
        padding: 30px 0;
    }

    .header__top {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .header__btn {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .burger {
        position: absolute;
        z-index: 5;
        top: 30px;
        left: 30px;
        margin: 0;
    }

    .signup-btn {
        width: 250px;
    }

    .signin-btn {
        width: 250px;
    }

}

@media(max-width:450px) {
    .hero {
        padding: 0px 0 0px;
    }

    h1 {
        margin: 30px 0;
        word-wrap: break-word;
        word-break: break-all;
    }

    h2 {
        font-size: 30px;
        line-height: 40px;
        margin: 30px 0;
    }

    h3 {
        font-size: 28px;
        line-height: 34px;
        margin: 30px 0;
    }

    p {
        text-indent: 0px;
    }
}

@media(max-width:390px) {
    h1 {
        font-size: 23px;
        line-height: 30px;
    }

    tbody td {
        font-size: 12px;
    }

    footer p span {
        display: block;
    }
}