@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@400;500;600;700&display=swap');

:root {
    --ff-overpass: 'Overpass', sans-serif;

    /* color */
    --color-primary: #ffffff;
    --color-secondary: #9e3737;
    --color-red: #21e9dd;
    --color-dark: #191919;
    --bg-primary: #ffffff;
    --bg-secondary: #00062e;
    --bg-red: #21cce9;
    --bg-dark: #191919;
}

/* default style */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    scroll-behavior: smooth;
}

ul {
    list-style: none;
}

ol {
    margin-top: 30px;
}

li {
    font-size: 18px;
    line-height: 34px;
}

a {
    color: inherit;
    text-decoration: none;
}

p>a {
    text-decoration: underline;
    color: var(--color-red);
}

img {
    max-width: 100%;
    display: block;
    margin: auto;
}

picture>img {
    border-radius: 68px;
}

article picture img {
    border-radius: 32px;
}

button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.hidden {
    overflow-y: hidden;
}

h1 {
    font-weight: 700;
    font-size: 40px;
    line-height: 56px;
    color: var(--color-red);
    margin: 30px 0;
    text-align: center;
}

h2 {
    font-weight: 600;
    font-size: 36px;
    line-height: 45px;
    text-align: center;
    margin: 40px 0;
    color: var(--color-red);
}

h3 {
    font-weight: 600;
    font-size: 28px;
    line-height: 40px;
    margin: 40px 0;
    text-align: center;
    color: var(--color-red);
}

p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 34px;
    text-indent: 20px;
}

picture+p {
    margin-bottom: 50px;
    margin-top: 30px;
}

footer>p {
    margin-bottom: 0;
    text-indent: 0;
}

/* main style */
body {
    font-family: var(--ff-overpass);
    font-size: 16px;
    line-height: 1;
    font-weight: 400;
    color: var(--color-primary);
    background: var(--bg-secondary);
    padding: 30px 30px 42px 30px;
    overflow-x: hidden;
}

.wrapper {
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    max-width: 1380px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 70px;
    border: 1px solid var(--color-red);
    overflow-x: hidden;
}

/* header */

.header {
    flex: 1 0 auto;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0px;
    border-bottom: 1px solid var(--color-red);
}

.burger-menu {
    display: none;
}

.header__logo {
    display: block;
    width: 74px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 22px;
    line-height: 29px;
    color: var(--color-red);
    cursor: pointer;
}

.menu {
    display: flex;
    gap: 29px;
    margin: 0;
}

.menu__link {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-primary);
}

.header__block {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header__block button {
    width: 150px;
    background: var(--bg-red);
    border: 1px solid var(--color-red);
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: var(--color-primary);
    text-align: center;
    padding: 15px 0;
}

.header__block button:first-child {
    width: 82px;
}

/* end header */

/* main */
main {
    flex: 1 0 auto;
    display: flex;
    justify-content: space-around;
    padding-top: 30px;
}

.aside {
    width: 22%;
}

.aside>ul>li {
    line-height: 50px;
    font-size: 16px;
    color: var(--color-red);
}

/* article */
.art {
    width: 73%;
    padding-bottom: 42px;
}

.art ul:first-of-type {
    /*display: none;*/
}

.art>.spin {
    display: none;
}

.art ul:first-of-type a {
    font-weight: 500;
    font-size: 18px;
    line-height: 50px
}

.art ul:last-of-type {
    list-style-type: disc;
    padding-bottom: 30px;
    padding-left: 20px;
}

.art ul,
.art ol {
    margin-left: 20px;
}

.article ul:first-of-type {
    margin-left: 0;
    margin-bottom: 30px;
}

/* table */

.table {
    max-width: 1040px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0px;
}

tbody tr {
    border-top: 1px solid var(--color-primary);
    display: grid;
    grid-template: auto/repeat(4, 1fr);
    align-items: center;
}

.tabl-2 tbody tr {
    grid-template: auto/repeat(3, 1fr);
}

.tabl-3 tbody tr {
    grid-template: auto/repeat(2, 1fr);
}

tbody tr:last-child {
    border-bottom: 1px solid var(--color-primary);
}

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;
}

/* grid-block */
.grid-block {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 97px;
    padding: 50px 0px;
    border-top: 1px solid var(--color-red);
    border-bottom: 1px solid var(--color-red);
}

.grid-block::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 114px;
    background: var(--bg-red);
}

.circle {
    background: url(../img/card.png) no-repeat left top;
}

.triangle {
    background: url(../img/slot.png) no-repeat left top;
}

.block {
    max-width: 530px;
    padding-left: 112px;
}

.block-title {
    display: block;
    font-family: var(--ff-overpass);
    font-weight: 500;
    font-size: 32px;
    line-height: 38px;
    text-transform: uppercase;
    color: var(--color-dak);
    margin-bottom: 8px;
}

.block-text {
    font-family: var(--ff-overpass);
    font-weight: 400;
    font-size: 20px;
    line-height: 34px;
    color: var(--color-dak);
    text-align: left;
    margin-bottom: 0px;
    text-indent: 0;
}

.footer {
    flex: 0 0 auto;
    padding: 36px 0;
    border-radius: 0 0 14px 14px;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* @media style */
@media(max-width:1350px) {
    .wrapper {
        padding: 0 45px;
    }

    main {
        gap: 20px;
    }

    .aside>ul>li {
        line-height: 45px;
    }
}

@media(max-width:1250px) {
    .wrapper {
        padding: 0 25px;
    }

    .aside>ul>li {
        line-height: 35px;
    }
}

@media(max-width:1100px) {
    .aside {
        width: 24%;
    }

    .aside>ul>li {
        font-size: 16px;
    }

}


@media(max-width:980px) {
    body {
        padding: 0px 14px 42px 20px;
    }

    .wrapper {
        padding: 0 0px;
        border: none;
    }

    .header {
        height: 103px;
    }

    main {
        gap: 0;
        flex-direction: column;
        padding-top: 0;
    }

    .aside {
        display: none;
    }

    .art {
        width: 100%;
        padding: 30px 14px 87px;
    }

    .art ul:first-of-type {
        display: block;
        margin-bottom: 30px;
        margin-left: 35px;
    }

    .header__content {
        flex: 1;
        position: fixed;
        z-index: 3;
        top: 0;
        left: 0px;
        right: 0;
        background: black;
        padding: 25px 30px;
    }

    .burger-menu {
        display: block;
        position: relative;
        z-index: 5;
        width: 30px;
        height: 30px;
        background: url(../img/burger.svg) no-repeat center;
        margin: 0 30px 0 0px;
        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-red);
        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;
        gap: 50px;
    }

    .menu__link {
        color: white;
    }

    .grid-block {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .grid-block::after {
        width: 50%;
        height: 1px;
    }

}

@media(max-width:768px) {
    body {
        padding: 0;
    }

    .header {
        height: 113px;
    }

    .header__content {
        background: var(--bg-secondary);
        position: fixed;
        z-index: 3;
        top: 0;
        left: 0;
        right: 0;
        padding: 30px 14px 30px;
    }

    .art {
        padding: 30px 14px 50px;
    }

    .tabl-1 tbody {
        gap: 54px;
    }

    .tabl-1 tbody tr {
        grid-template: auto/repeat(2, 1fr);
    }

    .tabl-1 tbody tr td:nth-child(odd) {
        text-align: left;
    }

    .tabl-1 tbody tr td:nth-child(even) {
        text-align: right;
    }

    .tabl-1 tbody tr td {
        padding: 19px 10px 9px;
    }

    .tabl-1 tbody tr td:nth-child(3),
    .tabl-1 tbody tr td:last-child {
        padding: 9px 10px 19px;
    }

    .grid-block {
        gap: 60px;
        padding: 30px 14px;
    }

    .block {
        width: 100%;
        padding-left: 0;
        padding-top: 112px;
    }

}

@media(max-width:590px) {
    .header {
        height: 242px;
    }

    .header__content {
        flex-direction: column;
        gap: 30px;
    }

    .header__block {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .header__block button:first-child {
        width: 150px;
    }

    .burger-menu {
        position: absolute;
        z-index: 5;
        top: 25px;
        left: 20px;
        margin: 0;
    }

    .article {
        padding: 0px 14px 0px;
    }

    h1 {
        word-wrap: break-word;
        font-size: 30px;
        line-height: 42px;
    }

    .table {
        margin: 0px auto 50px;
    }

    tbody td {
        font-size: 14px;
        line-height: 16px;
        padding: 20px 0;
    }

    .footer {
        padding: 40px 0;
    }
}

@media(max-width:450px) {
    .header__block button {
        width: 250px;
        border-radius: 10px;
    }

    .header__block button:first-child {
        width: 250px;
    }

    picture>img {
        border-radius: 30px;
    }

    h1 {
        margin: 30px 0;
    }

    h2 {
        margin: 30px 0;
        font-size: 26px;
        line-height: 40px;
    }

    h3 {
        margin: 30px 0;
        font-size: 22px;
        line-height: 34px;
    }

    p {
        margin-bottom: 30px;
    }

    ol {
        margin-top: 30px;
    }

    .article ul:first-of-type {
        margin-left: 30px;
        margin-bottom: 30px;
    }

    .art>.spin {
        width: 95%;
    }

    .grid-block {
        border: 1px solid var(--color-red);
    }
}

@media(max-width:390px) {
    tbody td {
        font-size: 12px;
    }

    .block-yellow {
        width: 80%;
    }

    .footer span {
        display: block;
        text-align: center;
    }

}