main {
    isolation: isolate;
    background: url(../images/account/promo.webp) top center / 100% auto no-repeat;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        aspect-ratio: 19 / 9;
        pointer-events: none;
        background: linear-gradient(0deg, #1C1D31 0%, rgba(28, 29, 49, 0.906249) 19.91%, rgba(28, 29, 49, 0.761946) 36.54%, rgba(28, 29, 49, 0) 100%) left bottom / 100% 100px no-repeat;
        z-index: -1;
    }
}
.promo {
    padding-top: 301px;
    .box {
        display: flex;
        flex-direction: column;
        align-items: end;
        .tag {
            margin-bottom: 20px;
        }
        h1,
        p {
            text-align: right;
        }
        h1 {
            margin-block: -10px 10px;
        }
        p {
            max-width: 590px;
            margin-bottom: 50px;
            font-size: 24px;
            line-height: 133%;
        }
    }
}
.standard,
.vip {
    .top {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 20px;
        margin-bottom: 36px;
        p {
            font-size: 24px;
            line-height: 120%;
        }
    }
    .item {
        display: flex;
        flex-direction: column;
        padding: 39px;
        border: 1px solid #8D8BA3;
        &:not(:last-child) {
            border-right: none;
        }
        h3 {
            font: 700 70px 'Mazzard';
            text-transform: uppercase;
        }
        ul {
            display: flex;
            flex-direction: column;
            gap: 12px;
            list-style: none;
            margin-block: auto;
            li {
                &:not(.box) {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    line-height: 120%;
                    color: #C6C8DD;
                    &::before {
                        content: '\e903';
                        font: 24px icon;
                        color: inherit;
                    }
                }
                &.box {
                    padding: 25px;
                    border: 1px solid #8D8BA3;
                    text-align: center;
                    font: 700 24px 'Mazzard';
                    color: #8D8BA3;
                    span {
                        font: inherit;
                    }
                }
            }
        }
        p {
            font-size: 12px;
            line-height: 120%;
            text-transform: uppercase;
            color: #8D8BA3;
        }
        > b {
            margin-bottom: 20px;
            font: 700 32px 'Mazzard';
            text-transform: uppercase;
            color: #E6E9F8;
        }
        .btn {
            --width: 4px;
            max-width: initial;
        }
        .info {
            line-height: 136%;
            text-transform: uppercase;
            background: linear-gradient(0deg, rgba(254, 254, 255, 0.3) 0%, rgba(28, 29, 49, 0.1) 100%);
            border-bottom: 1px solid #8D8BA3;
        }
    }
}
.standard {
    margin-top: 58px;
    .items {
        display: flex;
        height: 578px;
    }
    h2 {
        margin-block: -6px 6px;
    }
    .item {
        position: relative;
        flex: 1 1 25%;
        transition: flex-basis .3s;
        will-change: flex-basis;
        isolation: isolate;
        overflow: hidden;
        &::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            background: url(../images/account/i.webp) center center / 580px auto no-repeat;
            opacity: 0;
            pointer-events: none;
            transition: opacity .3s linear .2s;
        }
        .toggle {
            display: none;
        }
        .info {
            margin: -40px -20px 0 auto;
            padding: 46px 6px 9px 6px;
            font-size: 14px;
        }
        h3 {
            position: absolute;
            top: 40px;
            left: 40px;
            transform-origin: top left;
            transform: rotate(-90deg) translate3d(-100%, -15%, 0);
            transition: transform .3s linear .1s;
        }
        ul {
            opacity: 0;
            transform: translate3d(100%, 0, 0);
            transition: transform .4s linear, opacity .3s linear;
            li {
                white-space: nowrap;
            }
        }
        p {
            margin-bottom: 2px;
        }
        &:hover {
            flex-basis: 52.57%;
            &::before {
                opacity: 1;
            }
            h3 {
                transform: rotate(0) translate3d(0, 0, 0);
            }
            ul {
                opacity: 1;
                transform: translate3d(0, 0, 0);
                transition-delay: .1s .2s;
            }
        }
    }
    .tags {
        display: flex;
        justify-content: center;
        gap: 100px;
        margin-top: 44px;
    }
}
.vip {
    position: relative;
    margin-top: -58px;
    padding-bottom: 39px;
    isolation: isolate;
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        z-index: -1;
        pointer-events: none;
        border-bottom: 1px solid #E6E9F880;
        background: url(../images/account/l.webp) top center/ cover;
    }
    h2 {
        margin-block: -6px 6px;
    }
    .items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .item {
        display: grid;
        grid-template-columns: auto 53px 1fr;
        transition: background-color .3s linear;
        h3 {
            margin-block: -10px 3px;
            width: 70px;
            writing-mode: sideways-lr;
        }
        .info {
            align-content: end;
            text-align: center;
            margin-top: -40px;
            font-weight: 900;
        }
        ul {
            grid-column: 3/4;
            margin-top: 13px;
            margin-left: 46px;
            ~ * {
                grid-column: 1/-1;
            }
        }
        p {
            margin-block: 38px 3px;
        }
    }
    > p {
        margin-top: 40px;
        font-size: 20px;
        line-height: 135%;
        text-align: center;
        color: #8D8BA3;
    }
}
@media screen and (max-width: 1840px) {
    .promo {
        padding-top: 201px;
        .box {
            .tag {
                margin-bottom: 12px;
            }
            h1 {
                margin-block: -6px 6px;
            }
            p {
                max-width: 410px;
                margin-bottom: 30px;
                font-size: 16px;
            }
        }
    }
    .standard,
    .vip {
        .top p {
            font-size: 16px;
        }
        .item {
            padding: 29px;
            h3 {
                font-size: 44px;
            }
            ul {
                gap: 8px;
                li {
                    &:not(.box) {
                        gap: 6px;
                        font-size: 14px;
                        &::before {
                            font-size: 18px;
                        }
                    }
                    &.box {
                        font-size: 18px;
                    }
                }
            }
            > b {
                margin-bottom: 10px;
                font-size: 24px;
            }
            .btn {
                --width: 2px;
            }
        }
    }
    .standard {
        margin-top: 27px;
        .top {
            margin-bottom: 60px;
        }
        .items {
            height: 450px;
        }
        h2 {
            margin-block: -5px 5px;
        }
        .item {
            .info {
                margin: -30px -19px 0 auto;
                padding-top: 49px;
                font-size: 12px;
            }
            h3 {
                top: 30px;
                left: 30px;
            }
            ul {
                min-width: 256px;
                li {
                    white-space: initial;
                }
            }
            p {
                margin-bottom: 6px;
            }
            &:hover {
                flex-basis: 42.24%;
            }
        }
        .tags {
            margin-top: 33px;
            span {
                font-size: 14px;
            }
        }
    }
    .vip {
        margin-top: -46px;
        padding-bottom: 30px;
        .top {
            margin-bottom: 28px;
        }
        h2 {
            margin-block: -6px 6px;
        }
        .item {
            grid-template-columns: auto 41px 1fr;
            h3 {
                width: 46px;
                margin-block: -7px 0;
                margin-bottom: auto;
            }
            .info {
                margin-top: -30px;
                font-size: 14px;
                padding: 0 2px 5px;
            }
            ul {
                margin-top: 2px;
                margin-left: 11px;
            }
            p {
                margin-block: 31px 5px;
            }
        }
        > p {
            margin-top: 30px;
            font-size: 16px;
        }
    }
}
@media screen and (max-width: 1279px) {
    .promo {
        padding-top: 120px;
        padding-right: 10px;
        .box h1 {
            margin-block: -4px 4px;
        }
    }
    .standard,
    .vip {
        .item {
            padding: 19px;
            &:not(:last-child) {
                border-right: 1px solid #8D8BA3;
                border-bottom: none;
            }
            ul li.box {
                margin-bottom: 6px;
                padding: 19px;
            }
        }
    }
    .standard {
        margin-top: -16px;
        .top {
            margin-bottom: 20px;
            p {
                max-width: 462px;
            }
        }
        .items {
            height: initial;
            flex-direction: column;
        }
        h2 {
            margin-block: -4px 4px;
        }
        .item {
            display: grid;
            grid-template-columns: 1fr auto auto;
            grid-template-rows: 33px;
            will-change: max-height;
            transition: max-height .5s linear;
            gap: 10px 20px;
            &:nth-child(1) {
                max-height: 175px;
            }
            &:nth-child(2) {
                max-height: 154px;
            }
            &:nth-child(3) {
                max-height: 142px;
            }
            &:nth-child(4) {
                max-height: 202px;
            }
            &:nth-child(5) {
                max-height: 196px;
            }
            .toggle {
                --color: transparent;
                grid-area: 1/3/3/4;
                display: flex;
                margin-left: auto;
                width: 40px;
                height: 40px;
                min-height: initial;
                &::before {
                    content: '\e902';
                    font: 14px icon;
                    transition: transform .3s linear
                }
            }
            &::before {
                background-size: 100%;
            }
            .info {
                grid-area: 1/2/3/3;
                margin: -19px 0 auto;
                padding-top: 35px;
                font-size: 12px;
            }
            h3 {
                top: 20px;
                left: 20px;
                font-size: 28px;
            }
            ul {
                position: relative;
                grid-area: 2/1/3/-1;
                max-width: 400px;
                min-width: initial;
                margin-block: 10px;
                .box {
                    min-width: initial;
                }
                ~ * {
                    position: relative;
                    max-width: 400px;
                    opacity: 0;
                    transform: translate3d(-100%, 0, 0);
                    transition: opacity .3s linear, transform .3s linear;
                }
            }
            p {
                grid-area: 3/1/4/-1;
                margin-bottom: 0;
            }
            b {
                grid-area: 4/1/5/-1;
                margin-bottom: 0;
            }
            a.btn {
                grid-area: 5/1/6/-1;
                max-width: 400px;
            }
            &:hover {
                flex-basis: initial;
                &::before {
                    opacity: 0;
                }
                h3 {
                    transform: rotate(-90deg) translate3d(-100%, -15%, 0);
                }
                ul {
                    opacity: 0;
                    transform: translate3d(100%, 0, 0);
                }
            }
            &.open {
                &::before {
                    opacity: 1;
                }
                &:nth-child(1) {
                    max-height: 320px;
                }
                &:nth-child(2),
                &:nth-child(3),
                &:nth-child(4),
                &:nth-child(5) {
                    max-height: 315px;
                }
                h3 {
                    transform: rotate(0deg) translate3d(0, 0, 0);
                }
                ul {
                    opacity: 1;
                    transform: translate3d(0, 0, 0);
                    ~ * {
                        opacity: 1;
                        transform: translate3d(0, 0, 0);
                    }
                }
                .toggle {
                    --color: #FEFEFF;
                    &::before {
                        transform: rotate(180deg);
                    }
                }
            }
        }
        .tags {
            margin-top: 20px;
        }
    }
    .vip {
        margin-top: -15px;
        padding-bottom: 22px;
        .top {
            margin-bottom: 20px;
        }
        h2 {
            margin-block: -4px 4px;
        }
        .items {
            grid-template-columns: 1fr;
        }
        .item {
            background: rgba(141, 139, 163, 0.1);
            .info {
                margin-top: -19px;
            }
            ul {
                margin-left: 20px;
            }
            p {
                margin-top: 20px;
            }
        }
        > p {
            margin-top: 20px;
        }
    }
}
@media screen and (max-width: 767px) {
    main {
        background: url(../images/account/promo2.webp) top left / max(657px, 100%) auto no-repeat;
        &::before {
            min-height: 440px;
            aspect-ratio: 357 / 440px;
        }
    }
    .promo {
        padding-top: 190px;
        padding-right: 0;
        .box {
            h1 {
                margin-top: -3px;
            }
        }
    }
    .standard,
    .vip {
        .top {
            grid-template-columns: 1fr;
            .tag {
                order: -1;
                margin-bottom: 10px;
            }
        }
        .item {
            padding: 9px;
        }
    }
    .standard {
        margin-top: -17px;
        .top .tag {
            margin-left: auto;
        }
        .item {
            gap: 10px;
            &:nth-child(1) {
                max-height: 155px;
            }
            &:nth-child(2) {
                max-height: 134px;
            }
            &:nth-child(3) {
                max-height: 122px;
            }
            &:nth-child(4) {
                max-height: 182px;
            }
            &:nth-child(5) {
                max-height: 176px;
            }
            .info {
                margin-top: -9px;
                padding-top: 25px;
            }
            h3 {
                top: 10px;
                left: 10px;
            }
            &.open {
                &:nth-child(1),
                &:nth-child(2),
                &:nth-child(3),
                &:nth-child(4),
                &:nth-child(5) {
                    max-height: 360px;
                }
            }
        }
        .tags {
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }
    }
    .vip {
        margin-top: -26px;
        .top {
            margin-bottom: 20px;
        }
        h2 {
            margin-block: -3px 3px;
        }
        .items {
            grid-template-columns: 1fr;
        }
        .item {
            h3 {
                padding-top: 10px;
            }
            .info {
                margin-top: -19px;
            }
            ul {
                grid-column: 1/-1;
                margin-top: 20px;
                margin-left: 0;
            }
        }
        > p {
            margin-top: 23px;
        }
    }
}
@media (hover: hover) {
    .vip .item:hover {
        background-color: rgba(141, 139, 163, 0.2);
    }
}