* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Handvetica Neue';
    src: url('fonts/HelveticaNeueMedium.woff2') format('woff2'),
        url('fonts/HelveticaNeueMedium.woff') format('woff'),
        url('fonts/HelveticaNeueMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Handvetica Neue';
    src: url('fonts/HelveticaNeueBold.woff2') format('woff2'),
        url('fonts/HelveticaNeueBold.woff') format('woff'),
        url('fonts/HelveticaNeueBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Handvetica Neue';
    src: url('fonts/HelveticaNeueThin.woff2') format('woff2'),
        url('fonts/HelveticaNeueThin.woff') format('woff'),
        url('fonts/HelveticaNeueThin.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

body {
    background: rgb(228, 234, 244);
    background-image: url('img/bg.png'), linear-gradient(315deg, rgba(228, 234, 244, 1) 0%, rgba(247, 248, 250, 1) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Handvetica Neue', sans-serif;
    color: #0C172C;
}

.wrapper {
    margin: 40px;
    display: grid;
    grid-template-columns: 1fr 720px;
    height: calc(100vh - 80px);
}

.wrapper .main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-right: 60px;
}

.wrapper .rule {
    padding-left: 60px;
    border-left: 1px solid #9DA6B5;
    display: flex;
    gap: 66px;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.main__title h1 {
    color: #2A67DC;
    font-weight: bold;
    font-size: 4.875rem;
    margin-bottom: 26px;
    line-height: 100%;
}

.main__title h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 32px;
    max-width: 898px;
    line-height: 150%;
}

.main__title h3 {
    font-weight: 500;
    font-size: 1.25rem;
    padding: 12px 24px;
    border: 1px solid #E3E4E6;
    border-radius: 60px;
    display: inline-block;
}

.main__footer {
    display: flex;
    flex-direction: column;
    align-items: start;
    font-size: 2rem;
    font-weight: 500;
    gap: 10px;
}

.main__footer img {
    height: 70px;
}

.rule .rule__title {
    color: #2A67DC;
    font-size: 3.188rem;
    line-height: 100%;
    font-weight: bold;
}

.rule .rule__list {
    margin: 0;
    padding: 0 20px 0 0;
    overflow-y: auto;
}

.rule .rule__list .list-item {
    list-style: none;
    border-bottom: 1px solid #9DA6B5;
    padding: 42px 0;
}

.rule .rule__list .list-item:first-child {
    padding-top: 0;
}

.rule .rule__list .list-item:last-child {
    border: 0;
    padding-bottom: 0;
}

.rule .rule__list .list-item .list-item-title {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 150%;
    margin-bottom: 12px;
    position: relative;
    display: flex;
    text-transform: uppercase;
    padding-left: 50px;
}

.rule .rule__list .list-item p {
    padding: 0;
    color: #4A576F;
    font-size: 1.5rem;
    line-height: 150%;
}

.rule .rule__list .list-item .list-item-title::before {
    content: '';
    width: 34px;
    height: 34px;
    background: #d2dcf2 url('img/mark.svg') no-repeat;
    background-size: 80%;
    background-position: center;
    position: absolute;
    border-radius: 50%;
    left: 0;
}

.rule .rule__list::-webkit-scrollbar {
    width: 5px;
}

.rule .rule__list::-webkit-scrollbar-track {
    background-color: #dedede;
}

.rule .rule__list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

.rule .rule__list::-webkit-scrollbar-button {
    background-color: #dedede;
}

.rule .rule__list::-webkit-scrollbar-corner {
    background-color: black;
}

@media (max-width: 767.98px) {
    body {
        background: rgb(228, 234, 244);
        background-image: url('img/bg-m.png'), linear-gradient(-90deg, rgba(228, 234, 244, 1) 0%, rgba(247, 248, 250, 1) 100%);
        background-size: 100%;
        background-repeat: no-repeat;
    }

    .wrapper {
        margin: 40px 16px;
        display: block;
        height: auto;
        padding-bottom: 140px;
        position: relative;
    }

    .wrapper .main {
        display: block;
        padding: 0;
        height: 400px;
    }

    .wrapper .rule {
        padding: 0;
        border: none;
        gap: 36px;
        height: auto;
    }

    .main__title {
        display: flex;
        flex-direction: column;
        align-items: baseline;
    }

    .main__title h1 {
        font-size: 1.75rem;
        margin-bottom: 16px;
        line-height: 125%;
        order: 2;
    }

    .main__title h2 {
        font-size: 1.063rem;
        max-width: 100%;
        line-height: 125%;
        order: 3;
    }

    .main__title h3 {
        font-size: 0.875rem;
        padding: 6px 17px;
        margin-bottom: 20px;
        order: 1;
    }

    .rule .rule__title {
        font-size: 1.75rem;
        line-height: 125%;
    }

    .rule .rule__list .list-item {
        padding: 20px 0;
    }

    .rule .rule__list .list-item .list-item-title {
        font-size: 1.063rem;
        margin-bottom: 8px;
        padding-left: 40px;
    }

    .rule .rule__list .list-item p {
        font-size: 0.938rem;
    }

    .rule .rule__list .list-item .list-item-title::before {
        content: '';
        width: 24px;
        height: 24px;
        background: #d2dcf2 url('img/mark.svg') no-repeat;
        background-size: 80%;
        background-position: center;
        position: absolute;
        border-radius: 50%;
        left: 0;
    }

    .main__footer {
        font-size: 1.063rem;
        gap: 6px;
        position: absolute;
        bottom: 0;
    }

    .main__footer img {
        height: 36px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .wrapper {
        grid-template-columns: 1fr 1fr;
    }

    .main__title h1 {
        font-size: 2rem;
        line-height: 125%;
        margin-bottom: 15px;
    }

    .main__title h2 {
        font-size: 1.2rem;
        line-height: 125%;
        margin-bottom: 20px;
    }

    .main__title h3 {
        font-size: 1rem;
    }

    .wrapper .rule {
        gap: 30px;
    }

    .rule .rule__title {
        font-size: 2rem;
    }

    .rule .rule__list .list-item .list-item-title {
        font-size: 1rem;
        padding-left: 40px;
    }

    .rule .rule__list .list-item p {
        font-size: 1rem;
    }

    .rule .rule__list .list-item .list-item-title::before {
        content: '';
        width: 24px;
        height: 24px;
        background: #d2dcf2 url('img/mark.svg') no-repeat;
        background-size: 80%;
        background-position: center;
        position: absolute;
        border-radius: 50%;
        left: 0;
    }

    .rule .rule__list .list-item {
        padding: 25px 0;
    }

    .main__footer {
        font-size: 1rem;
    }

    .main__footer img {
        height: 40px;
    }
}