* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f3f8ff;
    font-family: Arial, Helvetica, sans-serif;
}

body.modal-open {
    overflow: hidden;
}

.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.promo-modal.is-open {
    display: flex;
}

.promo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 22, 55, 0.72);
    backdrop-filter: blur(8px);
}

.promo-modal__dialog {
    position: relative;
    z-index: 1;
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.promo-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #0a2147;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(4, 35, 88, 0.3);
    transition: background 0.2s ease, transform 0.2s ease;
}

.promo-modal__close:hover {
    background: #f3f7ff;
    transform: scale(1.06);
}

.promo-modal__body {
    display: block;
}

.promo-board {
    position: relative;
    padding: 12px 36px 34px;
    border: 7px solid transparent;
    border-radius: 28px;

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.92) 28%,
            #CEEFFF 100%
        ) padding-box,
        linear-gradient(
            180deg,
            #0040ff 0%,
            #fcc3f4 100%
        ) padding-box,
        linear-gradient(
            to bottom,
            #0040ff 0%,
            #fcc3f4 100%
        ) border-box;
}

.promo-board__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    width: fit-content;
    margin-bottom: 22px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 6px;
    padding-right: 0;
}

.promo-board__header-img {
    display: block;
    height: 49px;
    max-width: 100%;
}

.promo-board__header-picture {
    display: block;
}

.promo-board__header-img--badge {
    flex: 0 0 auto;
}

.promo-board__header-img--title {
    flex: 0 0 auto;
}

.promo-board__header-img--title--mobile {
    flex: 0 0 auto;
    display: none;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.promo-mobile-slider {
    display: none;
}

.promo-card {
    position: relative;
    height: 231px;
    padding: 2px 26px 20px;
    border: 0;
    border-radius: 0;
    background: url("../images/promo-card-frame.png") center / 100% 100% no-repeat;
    text-align: center;
}

.promo-card::before {
    left: -13px;
}

.promo-card::after {
    right: -13px;
}

.promo-card--blue {
    background:
        linear-gradient(90deg, rgba(224, 236, 255, 0.95) 0%, rgba(191, 221, 255, 0.94) 100%);
}

.promo-card--center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-card {
    border: 0;
    border-radius: 0;
    background: url("../images/promo-card-frame.png") center / 100% 100% no-repeat;
    box-shadow: none;
}

.promo-card::before,
.promo-card::after {
    display: none;
}

.promo-card--blue {
    background: url("../images/promo-card-frame.png") center / 100% 100% no-repeat;
}

.promo-card--no-desc .promo-card__headline {
    margin-bottom: 24px;
}

.promo-card__headline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #363636;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: 0%;
    vertical-align: middle;
}

.promo-card__bullet {
    margin-right: -2px;
}

.promo-card__accent {
    background: linear-gradient(180deg, #3655ff 0%, #f036d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 54px;
}

.promo-card__accent--zero {
    font-size: 54px;
    font-weight: 900;
}

.promo-card__accent--k {
    font-size: 42px;
}

.promo-card__tail {
    font-size: 18px;
    font-weight: 500;
}

.promo-card__split {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 14px 0px 12px;
}

.promo-card__split--stack {
    margin: 12px 0px 0px;
}

.promo-card__value {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 54px;
    font-weight: 900;
    background: linear-gradient(180deg, #3655ff 0%, #f036d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.promo-card__value span {
    font-size: 24px;
}

.promo-card__desc {
    margin: 0 0 4px;
    color: #363636;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.promo-card__desc--tight {
    margin-bottom: 0;
    text-align: left;
}

.promo-card__note {
    margin: 0 0 8px;
    color: #363636;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
}

.promo-card__note span {
    font-weight: 700;
}

.promo-card__note--stack {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.promo-card__note--stack--margin {
    margin-bottom: 26px;
}

.promo-card__coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 228px;
    min-height: 48px;
    padding: 10px 24px;
    border-radius: 0;
    background: url("../images/promo-coupon-bg.svg") center / 100% 100% no-repeat;
    color: #111111;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.promo-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    margin-top: 12px;
}

.promo-card__action {
    padding: 0;
    border: 0;
    background: transparent;
    color: #0E33FA;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.promo-card__eyebrow {
    margin: 12px 0 4px;
    color: #404040;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.promo-card__gift-title {
    margin: 0;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(180deg, #2d58ff 0%, #f036d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.promo-card__gift-subtitle {
    margin: 4px 0 4px;
    color: #363636;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.promo-card__helper {
    margin: 0;
    color: #363636;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.promo-card__link {
    display: inline-block;
    margin-top: 2px;
    color: #0E33FA;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.flash-sale {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #eef8ff url("../images/bg-main.png") center center / cover no-repeat;
}

.flash-sale__wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px;
}

.flash-sale__header {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: max-content;
    max-width: calc(100% - 24px);
}

.header-logo {
    display: block;
    height: auto;
    max-width: 100%;
}

.header-logo--main {
    width: 150px;
}

.header-logo--item {
    width: 50px;
}

.item {
    position: absolute;
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.year-top {
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    z-index: 5;
}

.title-main {
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 610px;
    z-index: 6;
}

.firework-left {
    top: 40px;
    left: 13%;
    z-index: 4;
}

.firework-right {
    top: 36px;
    right: 13%;
    z-index: 4;
}

.center-wrap {
    position: absolute;
    top: 380px;
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    z-index: 5;
}

.center-wrap-mid {
    position: relative;
}

.center-box-trigger {
    position: absolute;
    inset: 0;
    z-index: 11;
    border: 0;
    background: transparent;
    border-radius: 24px;
    cursor: pointer;
}

.center-box-trigger:focus-visible,
.flash-sale__cta:focus-visible,
.promo-modal__close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.center-box {
    display: block;
    width: 100%;
    height: auto;
}

.center-title-blink {
    position: absolute;
    top: 114px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    aspect-ratio: 376 / 164.4;
    z-index: 10;
    animation: centerTitleShake 2.8s ease-in-out infinite;
    transform-origin: 50% 85%;
}


.center-title {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes centerTitleShake {
    0%,
    100% {
        transform: translateX(-50%) rotate(0deg);
    }

    12% {
        transform: translateX(calc(-50% - 3px)) rotate(-2deg);
    }

    24% {
        transform: translateX(calc(-50% + 3px)) rotate(2deg);
    }

    36% {
        transform: translateX(calc(-50% - 2px)) rotate(-1.4deg);
    }

    48% {
        transform: translateX(calc(-50% + 2px)) rotate(1.4deg);
    }

    60% {
        transform: translateX(calc(-50% - 1px)) rotate(-0.8deg);
    }

    72% {
        transform: translateX(calc(-50% + 1px)) rotate(0.8deg);
    }

    84% {
        transform: translateX(-50%) rotate(-0.3deg);
    }
}

.tag-1 {
    top: 286px;
    left: 20%;
    width: 260px;
    z-index: 4;
}

.tag-2 {
    top: 420px;
    left: 6%;
    width: 366px;
    z-index: 4;
}

.tag-3 {
    top: 700px;
    left: 26%;
    width: 174px;
    z-index: 20;
}

.tag-4 {
    top: 270px;
    right: 22%;
    width: 260px;
    z-index: 4;
}

.tag-5 {
    top: 380px;
    right: 6%;
    width: 366px;
    z-index: 4;
}

.tag-6 {
    top: 688px;
    right: 26%;
    width: 174px;
    z-index: 20;
}

.top-cloud {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 150px;
    z-index: 1;
}

.bottom-cloud {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 200px;
    z-index: 10;
}

.flash-sale__cta {
    position: absolute;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
    z-index: 20;
    min-width: 220px;
    padding: 14px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe86b 0%, #ff9d1f 100%);
    box-shadow: 0 18px 30px rgba(252, 113, 18, 0.35);
    color: #7a1f00;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flash-sale__cta:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 22px 34px rgba(252, 113, 18, 0.42);
}

.flash-sale__bottom-text {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 10;
    width: calc(100% - 32px);
    text-align: center;
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    font-style: Bold;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
    text-decoration: none;
}

.flash-sale__bottom-text span {
    color: #0040FF;
}

@media (max-width: 1440px) {
    .top-cloud {
        height: 100px;
    }

    .firework-left {
        width: 120px;
    }

    .firework-right {
        width: 80px;
    }

    .tag-1 {
        top: 284px;
        left: 11%;
        width: 200px;
    }

    .tag-2 {
        top: 416px;
        left: 0%;
        width: 300px;
    }

    .tag-3 {
        top: 666px;
        left: 20%;
        width: 140px;
    }

    .tag-4 {
        top: 280px;
        right: 14%;
        width: 200px;
    }

    .tag-5 {
        top: 396px;
        right: 0%;
        width: 300px;
    }

    .tag-6 {
        top: 660px;
        right: 18%;
        width: 140px;
    }
}

@media (max-width: 1024px) {
    .promo-board {
        padding: 28px 24px 24px;
    }

    .promo-board__header {
        gap: 18px;
        margin-bottom: 20px;
    }

    .promo-board__header-img--badge {
        width: 214px;
    }

    .promo-board__header-img--title {
        width: 470px;
    }

    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-card {
        min-height: 220px;
    }

    .promo-card__headline {
        font-size: 26px;
    }

    .promo-card__accent--zero,
    .promo-card__value {
        font-size: 48px;
    }

    .promo-card__coupon {
        min-width: 210px;
        font-size: 17px;
    }

    .logo-top {
        width: 260px;
    }

    .year-top {
        top: 10%;
        width: 46%;
    }

    .title-main {
        top: 24%;
        width: 80%;
    }

    .tag-1,
    .tag-2,
    .tag-3,
    .tag-4,
    .tag-5,
    .tag-6,
    .center-wrap {
        top: initial;
    }

    .center-wrap {
        bottom: -60px;
        width: 516px;
    }

    .center-title-blink {
        top: 126px;
    }

    .tag-1 {
        bottom: 374px;
        left: 152px;
        width: 160px;
    }

    .tag-2 {
        bottom: 160px;
        left: -30px;
        width: 260px;
    }

    .tag-3 {
        bottom: 100px;
        left: 158px;
        width: 114px;
    }

    .tag-4 {
        bottom: 374px;
        right: 152px;
        width: 160px;
    }

    .tag-5 {
        bottom: 198px;
        right: -30px;
        width: 256px;
    }

    .tag-6 {
        bottom: 84px;
        right: 166px;
        width: 114px;
    }

    .bottom-cloud {
        height: 22%;
        width: initial;
        max-width: initial;
    }

    .flash-sale__cta {
        bottom: 56px;
        min-width: 200px;
        padding: 13px 24px;
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .promo-modal {
        padding: 16px;
    }

    .promo-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 32px);
    }

    .promo-modal__close {
        top: 6px;
        right: 6px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .promo-board {
        border-width: 4px;
        border-radius: 22px;
        padding: 4px 8px 12px;
    }

    .promo-board__header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 8px;
    }

    .promo-board__header-img--title {
        display: none;
    }

    .promo-board__header-img--title--mobile {
        display: block;
        height: 89px;
    }

    .promo-grid {
        display: none;
    }

    .promo-mobile-slider {
        display: block;
        margin-top: 4px;
    }

    .promo-mobile-track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -ms-overflow-style: none;
        scrollbar-width: none;
        /* touch-action: pan-x pinch-zoom; */
    }

    .promo-mobile-track::-webkit-scrollbar {
        display: none;
    }

    .promo-mobile-page {
        flex: 0 0 100%;
        display: grid;
        gap: 4px;
        scroll-snap-align: start;
    }

    .promo-mobile-page .promo-card {
        min-height: auto;
        width: 321px;
        margin: 0 auto ;
    }

    .promo-mobile-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 14px;
    }

    .promo-mobile-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(101, 164, 255, 0.38);
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    }

    .promo-mobile-dot.is-active {
        background: linear-gradient(180deg, #4f8dff 0%, #2f56ff 100%);
        box-shadow: 0 0 0 2px rgba(180, 216, 255, 0.75);
        transform: scale(1.15);
    }

    .promo-card {
        min-height: auto;
        padding: 12px 18px 16px;
        height: 228px;
    }

    .promo-card__split {
        width: fit-content;
        margin: 0 auto 10px;
        gap: 10px;
    }

    .promo-card__coupon {
        min-width: 0;
        width: 100%;
        font-size: 16px;
    }

    .promo-card--no-desc .promo-card__headline {
        margin-bottom: 10px;
    }

    .promo-card__actions {
        gap: 70px;
        margin-top: 16px;
    }

    .promo-mobile-page:nth-child(1) .promo-card:nth-child(1) .promo-card__actions {
        margin-top: 10px;
    }

    .promo-card__eyebrow {
        margin: 0px;
    }

    .promo-card__split--stack {

    }

    .flash-sale__cta {
        bottom: 72px;
        min-width: 176px;
        padding: 12px 20px;
        font-size: 14px;
    }

    .flash-sale {
        min-height: 100vh;
        background: #eef8ff url("../images/bg-main-mobile2.png") center center / cover no-repeat;
    }

    .flash-sale__wrap {
        min-height: 100vh;
        padding: 12px;
    }

    .flash-sale__header {
        gap: 8px;
        max-width: calc(100% - 16px);
    }

    .header-logo--main {
        width: 150px;
    }

    .header-logo--item {
        width: 50px;
    }

    .year-top {
        top: 12%;
        width: 46%;
    }

    .title-main {
        top: 24%;
        width: 86%;
    }

    .firework-left,
    .firework-right {
        display: none;
    }

    .tag-1,
    .tag-2,
    .tag-3,
    .tag-4,
    .tag-5,
    .tag-6,
    .center-wrap {
        top: initial;
    }

    .center-wrap {
        bottom: 0px;
        width: 80%;
    }

    .center-title {
        top: -24px;
        width: 82%;
    }

    .center-title-blink {
        top: 61px;
        width: 50%;
        left: 56%;
    }

    .tag-1 {
        bottom: 310px;
        left: 44px;
        width: 18%;
    }

    .tag-2 {
        bottom: 200px;
        left: -30px;
        width: 28%;
    }

    .tag-3 {
        bottom: 130px;
        left: 60px;
        width: 14%;
    }

    .tag-4 {
        bottom: 306px;
        right: 44px;
        width: 18%;
    }

    .tag-5 {
        bottom: 196px;
        right: -24px;
        width: 28%;
    }

    .tag-6 {
        bottom: 130px;
        right: 60px;
        width: 14%;
    }

    .bottom-cloud {
        height: 22%;
        width: initial;
        max-width: initial;
    }

    .flash-sale__bottom-text {
        bottom: 20px;
        font-size: 13px;
    }
}

@media (min-height: 1080px) {
    .flash-sale {
        min-height: 100vh;
    }

    .flash-sale__wrap {
        min-height: 100vh;
    }
}
