*, :after, :before {
    box-sizing: inherit;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html {
    box-sizing: border-box
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0
}

p {
    margin: 0
}

picture {
    display: block
}

img {
    display: block;
    border: none
}

img, svg {
    vertical-align: middle
}

a {
    background-color: transparent;
    color: inherit;
    text-decoration: none
}

:focus {
    outline: none
}

button {
    all: unset
}

:root {
    --game-card-border-radius: clamp(12px, 1.5vw, 24px);
}

body {
    line-height: 1;
    text-rendering: optimizeSpeed;
    -webkit-text-decoration-skip: objects;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-family: "Cascadia Mono", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    display: flex;
    flex-direction: column;
    position: relative;
    font-variation-settings: "wdth" 100;
    background: url("../img/bg.svg") no-repeat top center;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-size: cover;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1728px;
    margin: 0 auto;
}

.header {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #fff;
}

.header__content {
    position: relative;
    z-index: 1;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: 0 1rem;
}

.header__content-logo {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: cover;
}

.cta-btn {
    margin: auto;
    width: 100%;
    font-weight: 700;
    font-size: clamp(12px, 2.7vw, 16px);
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    background: #0F62FE;
    cursor: pointer;
    text-align: center;
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cta-btn:hover {
        transform: scale(1.05);
        box-shadow:
                0 0 12px rgba(61, 139, 255, 0.7),
                0 4px 12px rgba(61, 139, 255, 0.35);
    }
}

.cta-btn:active {
    transform: scale(0.98) translateY(1px);
    box-shadow: 0 0 40px rgba(61, 139, 255, 0.6);
}

.header__content-title {
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 400;
    color: #697077;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.games-container {
    padding: 36px 20px 44px;
    display: flex;
    flex-direction: column;
    gap: 46px;
    width: 100%;
    max-width: 1446px;
}

.games-container__title {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 700;
    color: #21272A;
    text-align: center;
}

.games-container__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.games-container__card {
    margin: auto;
    width: 100%;
    max-width: 254px;
    display: flex;
    flex-direction: column;
    border: 1px solid #9A9A9A;
    padding-bottom: 16px;
    border-radius: var(--game-card-border-radius);
    overflow: hidden;
    background: #fff;
}

.games-container__card-img {
    aspect-ratio: 254 / 152;
    width: 100%;
    max-width: 254px;
    height: auto;
    object-fit: fill;
    margin-bottom: 8px;
    display: block;
    border-radius: var(--game-card-border-radius);
}

.games-container__card-label {
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 700;
    color: #21272A;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.games-container__card-btn {
    padding: 16px;
    max-width: 140px;
}

.description {
    width: 100%;
    background: #fff;
}

.description-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 1452px;
    padding: 44px 24px;
}

.description-container__title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: #21272A;
    text-align: center;
}

.description-container__cards {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 3.4vw, 60px);
}

.description-container__card {
    width: 100%;
    max-width: 416px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.description-container__card-img {
    aspect-ratio: 416 / 228;
    width: 100%;
    max-width: 416px;
    height: auto;
}

.description-container__card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.description-container__card-label {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.1;
    color: #21272A;
    margin-bottom: 26px;
}

.description-container__card-description {
    font-size: clamp(8px, 2vw, 10px);
    font-weight: 400;
    line-height: 1.4;
    color: #6A6868;
    margin-bottom: 16px;
}

.description-container__card-btn {
    display: block;
    padding: 19px;
    max-width: 204px;
}

.instruction {
    width: 100%;
    max-width: 1452px;
    padding: 80px 24px;
}

.instruction__title {
    font-size: clamp(24px, 3vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    color: #21272A;
    margin-bottom: clamp(28px, 3vw, 42px);
}

.instruction__paragraph-title {
    font-size: clamp(16px, 1.8vw, 24px);
    font-weight: 700;
    line-height: 1.4;
    color: #21272A;
    text-transform: uppercase;
    margin-bottom: clamp(16px, 1.8vw, 24px);

    &:not(:first-child) {
        margin-top: clamp(16px, 1.8vw, 24px);
    }
}

.instruction__paragraph {
    font-size: clamp(12px, 2vw, 16px);
    font-weight: 400;
    line-height: 1.4;
    color: #21272A;
}

.instruction__paragraph + .instruction__paragraph {
    margin-top: clamp(12px, 2vw, 16px);
}

.table-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 3vw, 52px);
    width: 100%;
    max-width: 1452px;
    padding: 0 24px 80px;
}

.table__title {
    font-size: clamp(18px, 3vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    color: #21272A;
    text-align: center;
}

.table__header {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: clamp(10px, 2vw, 36px);
    line-height: 1.03;
    text-transform: uppercase;
    color: #21272A;
    background: rgba(217, 217, 217, 0.25);
    border: 1px solid #5F5F5F;
}

.table__header-row-cell {
    display: flex;
    align-items: center;
    width: auto;
    padding: 16px 12px;
    flex: 1 1 0;
}

.table__header-row-cell:first-child {
    flex: 0 1 35%;
    max-width: 35%;
}

.table__header-row-cell:not(:last-child) {
    border-right: 1px solid #5F5F5F;
}

.table__body-row {
    width: 100%;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #5F5F5F;
}

.table__body-row > .table__body-row-cell:not(:last-child) {
    border-right: 1px solid #5F5F5F;
}

.table__body-row .table__body-row-cell:first-child {
    font-size: clamp(10px, 1.2vw, 24px);
    flex: 0 1 35%;
    max-width: 35%;
    flex-shrink: 0;
    color: #6A6868;
}

.table__body-row .table__body-row-cell {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    width: auto;
    background: transparent;
    font-weight: 700;
    font-size: clamp(8px, 1.2vw, 18px);
    line-height: 1.4;
    color: #21272A;
    padding: 27px 12px;
}

.footer {
    position: relative;
    width: 100%;
    background: #697077;
}

.footer__content {
    position: relative;
    z-index: 1;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.footer__content-title {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
}

.scroll-to-top-btn {
    position: fixed;
    right: 32px;
    bottom: 80px;
    width: fit-content;
    padding: 11px 49px;
    visibility: hidden;
    z-index: 9999;
}

.scroll-to-top-btn--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

@media (min-width: 600px) {
    .header__content {
        justify-content: flex-start;
        padding: 0 80px;
    }

    .games-container {
        padding: 36px 20px 54px;
        gap: 38px;
    }

    .games-container__title {
        font-size: clamp(36px, 3vw, 64px);
        text-align: left;
        padding-left: clamp(16px, 3vw, 80px);
    }

    .games-container__cards {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: clamp(40px, 5vw, 80px) clamp(8px, 2vw, 32px);
    }

    .games-container__card {
        margin: 0;
        padding-bottom: 8px;
    }

    .games-container__card-img {
        margin-bottom: 4px;
    }

    .games-container__card-label {
        font-size: 10px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .games-container__card-btn {
        padding: 11px;
        max-width: 110px;
    }







    .description-container {
        gap: clamp(30px, 3vw, 60px);
        padding: 58px clamp(24px, 10vw, 94px);
    }

    .description-container__title {
        font-size: clamp(36px, 3vw, 64px);
        text-align: left;
    }

    .description-container__card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: clamp(14px, 2vw, 32px);
        margin: 0;
        max-width: 100%;
    }

    .description-container__card-img {
        width: 40%;
        margin-bottom: 0;
        flex: 1 1 0;
    }

    .description-container__card-content {
        flex: 1 1 0;
        min-width: 0;
    }

    .description-container__card-label {
        font-size: clamp(16px, 2.4vw, 36px);
        margin-bottom: 24px;
    }

    .description-container__card-description {
        font-size: clamp(10px, 1.3vw, 16px);
    }

    .description-container__card-btn {
        padding: 20px;
        margin: 0;
    }

    .instruction {
        padding: 54px clamp(24px, 10vw, 94px) 80px;
    }

    .table-wrapper {
        padding: 0 clamp(24px, 10vw, 94px) 180px;
    }

    .table__title {
        text-align: left;
    }

    .table__header-row-cell {
        padding: 15px 16px 9px;
    }

    .table__body-row .table__body-row-cell {
        padding: 16px;
    }

    .footer__content {
        padding: 0 80px;
    }
}

@media (min-width: 1440px) {
    .hero {
        border-radius: 30px;
        padding: 0 71px;
    }

    .hero__content {
        padding: 102px 0;
        background-position-x: right;
    }

    .games-container {
        padding: 80px 20px 80px;
        gap: 60px;
    }

    .games-container__card {
        padding-bottom: 16px;
    }

    .games-container__card-img {
        margin-bottom: 8px;
    }

    .games-container__card-label {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .games-container__card-btn {
        padding: 16px;
        max-width: 140px;
    }

    .description-container__card {
        gap: clamp(32px, 4vw, 126px);
    }

    .description-container__card-content {
        padding: clamp(16px, 1vw, 32px) 0;
    }

    .instruction {
        padding: 80px 94px 96px;
    }

    .table-wrapper {
        padding: 0 94px 180px;
    }

    .table__header-row-cell {
        padding: 30px 32px;
    }

    .table__body-row .table__body-row-cell {
        padding: 24px 36px;
    }

    .scroll-to-top-btn {
        padding: 20px 49px;
    }
}
