@import url(https://fonts.googleapis.com/css?family=Playball:regular);
@import url(https://fonts.googleapis.com/css?family=Be+Vietnam+Pro:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);

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

body {
    color: #ffffff;
    background-color: #001F16;
    font-family: "Be Vietnam Pro", sans-serif;
}

/* ─────────────────────────────────────────
   Block: landing
───────────────────────────────────────── */
.landing {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url("img/bg-desktop.webp");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Element: smoke */
.landing__smoke {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 3;
}

.landing__smoke--top {
    top: 0;
    height: 120px;
    background-image: url("img/smoke-top.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
}

.landing__smoke--bottom {
    bottom: 0;
    height: 300px;
    width: calc(100% + 50px);
    margin: 0 -50px;
    overflow-x: clip;
    background-image: url("img/smoke-bottom.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    z-index: 5;
}

/* Element: coin */
.landing__coin {
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

.landing__coin--bl {
    bottom: 5%;
    left: 0;
    width: 280.362px;
}

.landing__coin--br {
    bottom: 5%;
    right: 0;
    width: 258.99px;
}

/* Element: footer */
.landing__footer {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    z-index: 10;
}

/* ─────────────────────────────────────────
   Block: promo
───────────────────────────────────────── */
.promo {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 58px;
    width: 100%;
    max-width: 680px;
    transform: translateX(-200px);
    transition: opacity 0.3s ease;
}

.promo--hidden {
    opacity: 0;
    pointer-events: none;
}

/* Element: logo */
.promo__logo {
    width: 230px;
    margin-bottom: 25px;
}

/* Element: subtitle */
.promo__subtitle {
    font-family: "Playball", cursive;
    font-size: 58px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    background: linear-gradient(180deg, #fef7d5 -207.67%, #fcfbe7 -67.19%, #f5d144 89.48%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

/* Element: offer */
.promo__offer {
    text-align: center;
    font-size: 44px;
    font-style: normal;
    font-weight: 700;
    line-height: 50px; /* 113.636% */
    letter-spacing: 0.44px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

@keyframes btn-pulse {
    0%, 100% {
        box-shadow:
            0 0 28.11px 0 #ff7e7e,
            0 0 14.055px 0 #ff7e7e,
            0 0 5.622px 0 #ff7e7e,
            0 0 2.811px 0 #ffd7d7,
            0 0 1.405px 0 #ffd7d7,
            0 0 0.562px 0 #ffd7d7;
    }
    50% {
        box-shadow:
            0 0 36px 2px #ff7e7e,
            0 0 20px 1px #ff7e7e,
            0 0 8px 0 #ff7e7e,
            0 0 4px 0 #ffd7d7,
            0 0 2px 0 #ffd7d7,
            0 0 1px 0 #ffd7d7;
    }
}

/* Element: btn */
.btn {
    display: block;
    position: relative;
    padding: 4px;
    color: #fff;
    text-align: center;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    text-decoration: none;
    text-transform: uppercase;
    width: 100%;
    max-width: 420px;
    border-radius: 6.315px;
border: 0.632px solid #F2D163;
    background: linear-gradient(176deg, #DD1616 3.49%, #69071E 96.29%);
    box-shadow: 0 6.315px 6.315px 0 rgba(0, 0, 0, 0.25), 4.736px 4.736px 0 0 #360410, 0 0 13.427px 0 #FCD8A7, 0 0 0 0 rgba(252, 216, 167, 0.45), 0 0 1.918px 0 #FCD8A7;
    margin-bottom: 32px;
    cursor: pointer;
    animation: btnShine 3s ease-in-out infinite;
    overflow: hidden;
}

.btn span {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border-radius: 6.315px;
border: 1.579px solid #F2D163;
}

@keyframes btnShine {
    0%, 100% {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25) inset, 3px 3px 0 0 #360410, 0 0 0 0 rgba(251, 216, 167, 0), 4px 4px 0 0 rgba(251, 216, 167, 0), 0 0 0 0 rgba(251, 216, 167, 0), 0 0 0 0 rgba(251, 216, 167, 0);
}
50% {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0) inset, 3px 3px 0 0 #360410, 0 2px 14.5px 0 rgba(251, 216, 167, 0.9), 4px 4px 3.2px 0 rgba(251, 216, 167, 0.7), 0 0 1.8px 0 rgba(251, 216, 167, 0.7), 0 0 7.6px 0 rgba(251, 216, 167, 0.7);
}
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    filter: blur(6px);
    z-index: 4;
    pointer-events: none;
    animation: shineAnimation 3.5s linear infinite;
}

.btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 100%);
    filter: blur(6px);
    z-index: 4;
    pointer-events: none;
    animation: shineAnimation2 3.5s linear infinite;
}

@keyframes shineAnimation {
    0%, 100% {
        left: calc(0% - 150px);
    }
    50% {
        left: calc(100% + 150px);
    }   
}

@keyframes shineAnimation2 {
    0%, 100% {
        right: calc(0% - 150px);
    }
    50% {
        right: calc(100% + 150px);
    }
}

/* Element: tc */
.promo__tc {
    display: block;
    color: #e5dada;
    background: transparent;
    border: none;
    text-decoration: none;
    text-align: center;
    text-shadow: 0 4px 32px #000;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    margin-bottom: 32px;
    cursor: pointer;
}

/* ─────────────────────────────────────────
   Block: steps
───────────────────────────────────────── */
.steps {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Element: item */
.steps__item {
    display: flex;
    align-items: center;
}

@keyframes icon-pop {
    0%   { transform: scale(1); }
    8%   { transform: scale(1.2); }
    16%  { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Element: icon */
.steps__icon {
    width: 55px;
    height: auto;
    flex-shrink: 0;
    /* duration 5s: активна фаза = 16% × 5s = 0.8s → затримки кратні 0.8s */
    animation: icon-pop 5s ease-in-out infinite;
}

.steps__item:nth-child(1) .steps__icon { animation-delay: 0s; }
.steps__item:nth-child(2) .steps__icon { animation-delay: 0.8s; }
.steps__item:nth-child(3) .steps__icon { animation-delay: 1.6s; }

/* Element: label */
.steps__label {
    color: #FFF;
text-shadow: 0 4px 32px #000;
font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: 28px; /* 116.667% */
text-transform: uppercase;
}


.modal {
    inset: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
background: rgba(0, 31, 22, 0.80);
    z-index: 10;
    padding: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.modal__content {
    position: relative;
    max-width: 610px;
    width: 100%;
        padding: 20px 50px 0;
    border-radius: 20px;
border-top: 1px solid var(--Stroke-stroke-primary, #FAD884);
border-right: 1px solid var(--Stroke-stroke-primary, #FAD884);
border-left: 1px solid var(--Stroke-stroke-primary, #FAD884);
background: url(<path-to-image>) lightgray 50% / cover no-repeat;
box-shadow: 0 0 14.836px 0 #EAD38B, 0 0 8.654px 0 #EAD38B;
    background-image: url(./img/modal-bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: translateX(-200px);
}

.modal__logo {
    max-width: 200px;
    width: 100%;
}

.modal__subtitle {
    text-align: center;
    font-size: 24px;
font-style: normal;
font-weight: 700;
line-height: 28px; /* 116.667% */
text-transform: uppercase;
}

.modal__items {
    max-width: 321px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.modal__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal__item-value {
    color: #F5D144;
font-size: 44px;
font-style: normal;
font-weight: 700;
line-height: 50px;
letter-spacing: 0.44px;
text-transform: uppercase;
}

.modal__item-label {
    text-shadow: 0 4px 32px #000;
font-size: 16px;
font-style: normal;
font-weight: 300;
line-height: 24px; /* 150% */
text-transform: uppercase;
}

.modal__bottom-text {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.modal__bottom-text span {
    color: #F5D144;
}

.modal__decor {
    position: absolute;
}

.modal__decor--tl {
    width: 160px;
    height: 160px;
    top: 30px;
    left: -75px;
}

.modal__decor--tr {
    width: 110px;
    height: 110px;
    top: 50px;
    right: -55px;
}

.modal__decor--bl {
    width: 110px;
    height: 110px;
    bottom: 80px;
    left: -45px;
    transform: rotate(-90deg);
}

.modal__decor--br {
    width: 160px;
    height: 160px;
    bottom: 20px;
    right: -75px;
    transform: scaleX(-1) rotate(-25deg);
}

@media (max-width: 1024px) {
    .promo,
    .modal__content {
        transform: translateX(-100px);
    }
}

@media (max-width: 840px) {
    .promo,
    .modal__content {
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .landing {
        background-image: url(/img/bg-mobile.webp);
        background-position: center;
        min-height: 200dvh;
    }

    .landing__smoke,
    .landing__coin {
        display: none;
    }

    .promo {
        padding: 50px 12px;
    }

    .promo__subtitle {
        font-size: 42px;
    }

    .promo__offer {
        font-size: 34px;
    }

    .btn {
        max-width: 320px;
    }

    .promo__tc {
        font-size: 16px;
    }

    .steps {
        width: 100%;
        padding: 0 28px;
        flex-direction: column;
        align-items: flex-start;
    }

    .modal {
        align-items: flex-start;
        padding: 50px 20px;
    }

    .modal__item-value {
        font-size: 32px;
    }

    .modal__bottom-text {
        font-size: 18px;
    }
}
