@import url(css2);

:root {
    --ff-monserat: 'Montserrat', sans-serif;
    --ff-roboto: 'Roboto', sans-serif;
    --ff-oswald: 'Oswald', 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: #10292E;
    --bg-dark-red: #50203A;

}

/* 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: #ff00ff;
    text-decoration: none;
}

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: #ff00ff;
    margin: 25px 0;
    text-align: center;
}

h2 {
    font-weight: 700;
    font-size: 28px;
    line-height: 33px;
    text-align: center;
    margin: 25px 0;
    color: #ff00ff;
}

h3 {
    font-weight: 700;
    font-size: 26px;
    line-height: 30px;
    margin: 25px 0;
    text-align: center;
    color: #ff00ff;
}

p {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 21px;
}

picture+p {
    margin-bottom: 34px;
    margin-top: 25px;
}

footer>p {
    margin-bottom: 0;
}

/* main style */
body {
    display: flex;
    flex-direction: column;
    font-family: var(--ff-roboto);
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    color: var(--color-primary);
    background: white;
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-gray);
    padding: 25px 50px 169px;
    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: white;
    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: 85px;
    cursor: pointer;
}

.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: #ff00ff;
    box-shadow: 4px 5px 8px rgba(204, 45, 111, 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:first-of-type {
    margin-bottom: 25px;
}

.article ul:first-of-type li {
    padding-left: 10px;
    position: relative;
}

.article ul:first-of-type li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 25px;
    background: #ff00ff;
    transform: translateY(-50%);
}

.article ul:first-of-type li:not(:last-child) {
    margin-bottom: 13px;
}

.article ul:first-of-type a {
    font-weight: 600;
    font-size: 18px;
    line-height: 21px
}

.article ul:last-of-type {
    list-style-type: disc;
}

.article ul,
.article ol {
    margin-left: 20px;
}

.article li {
    font-size: 18px;
    line-height: 21px;
}

/* table */

.table {
    max-width: 1040px;
    width: 100%;
    margin: 25px auto 0px;
    border-collapse: collapse;
    border-spacing: 0px;
}

tbody tr {
    border-bottom: 1px solid #ff00ff;
    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 #ff00ff;
}

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 169px;
    }
    .header__fx {
        display: flex;
        align-items: center;
        background: var(--bg-gray);
        border-bottom: 1px solid #ff00ff;
    }

    .header__content {
        flex: 1;
    }

    .burger-menu {
        display: block;
        position: relative;
        z-index: 5;
        width: 30px;
        height: 30px;
        background: url(burger.svg) no-repeat center;
        margin: 0 15px 0 30px;
        transition: 0.3s linear;
    }

    .burger-menu.active {
        background: url(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;
    }

    .footer{
        background: var(--bg-gray);
    }
}


@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 {
        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) {
    .header__block button {
        width: 250px;
        background: var(--bg-dark-red);
        box-shadow: 4px 5px 8px rgba(80, 32, 58, 0.5);
        border-radius: 10px;
    }

    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;
    }
}