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

:root {
    --color-bg: #121212;
    --color-bg-soft: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #9a9a9a;
    --color-accent: #e1263f;
    --color-accent-deep: #c91f3d;
    --font-main: "Noto Sans Bengali", system-ui, sans-serif;
    --header-height: 72px;
    --container-pad: clamp(16px, 4vw, 40px);
}

html {
    scroll-behavior: smooth;
}

body.page {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

/* ===== hero ===== */
.hero {
    --wheel-size: min(92vw, 600px);
    position: relative;
    display: flex;
    flex-direction: column;
    background: #0a0a0a url("../assets/bg.webp") center top / cover no-repeat;
    isolation: isolate;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28%;
    background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero__people {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__people-img {
    position: absolute;
    left: 30%;
    bottom: 4%;
    width: auto;
    max-width: 1600px;
    height: auto;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center bottom;
    user-select: none;
}

/* ===== header ===== */
.header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 16px var(--container-pad);
}

.header__brands {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__logo {
    display: flex;
    align-items: center;
    transition: opacity 0.25s ease;
}

.header__logo:hover {
    opacity: 0.85;
}

.header__logo-img {
    width: 110px;
    height: auto;
}

.header__logo-img--lpl {
    width: 78px;
}

.header__divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.header__lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__lang-code {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
}

.header__lang-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== hero content ===== */
.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 8px var(--container-pad) 48px;
    text-align: center;
}

.hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: clamp(4px, 1.5vh, 20px);
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.45);
    animation: hero-fade-in 0.8s ease both;
}

.hero__title-lead {
    font-size: clamp(15px, 2.4vw, 22px);
    font-weight: 600;
}

.hero__title-main {
    font-size: clamp(35px, 6vw, 60px);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    font-style: italic;
}

/* ===== wheel ===== */
.wheel {
    position: relative;
    z-index: 2;
    width: var(--wheel-size);
}

.wheel__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: visible;
    filter: drop-shadow(0 0 28px rgba(225, 38, 63, 0.28))
        drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
}

/*
 * border.png: декоративное кольцо ~63% холста (r≈236–325 из 512).
 * Масштабируем, чтобы кольцо заполнило stage; диск — под обод.
 */
.wheel__disk {
    position: absolute;
    inset: 7%;
    z-index: 1;
    border-radius: 50%;
}

.wheel__disk-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    will-change: transform;
    transform: rotate(0deg);
}

.wheel__border {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    user-select: none;
    pointer-events: none;
}

.wheel__btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.wheel__btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(1.08);
}

.wheel__btn:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.96);
}

.wheel__btn:disabled {
    cursor: default;
}

.wheel__btn-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    user-select: none;
    pointer-events: none;
}

.wheel.is-spinning .wheel__btn {
    pointer-events: none;
}

.wheel.is-won .wheel__stage {
    animation: wheel-win-glow 1.2s ease;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 480px);
    padding: 22px 72px;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(90deg, #fe335b 0%, #c41235 100%);
    color: var(--color-text);
    font-family: inherit;
    font-size: clamp(20px, 2.6vw, 26px);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(196, 18, 53, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: hero-fade-up 0.9s 0.2s ease both;
}

.hero__cta:disabled {
    cursor: default;
    pointer-events: none;
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(254, 51, 91, 0.45);
    filter: brightness(1.05);
}

.hero__cta:active {
    transform: translateY(0);
}

/* ===== partners ===== */
.partners {
    padding: 28px var(--container-pad) 20px;
    background: var(--color-bg);
}

.partners__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
}

.partners__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners__logo {
    width: auto;
    height: 52px;
    object-fit: contain;
}

/* ===== footer ===== */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 36px var(--container-pad) 48px;
    background: var(--color-bg);
    text-align: center;
}

.footer__logo {
    display: inline-flex;
    transition: opacity 0.25s ease;
}

.footer__logo:hover {
    opacity: 0.85;
}

.footer__logo-img {
    width: 150px;
    height: auto;
}

.footer__link {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.footer__link:hover {
    color: var(--color-text);
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wheel-win-glow {
    0%,
    100% {
        filter: drop-shadow(0 0 28px rgba(225, 38, 63, 0.28))
            drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
    }
    50% {
        filter: drop-shadow(0 0 48px rgba(225, 38, 63, 0.65))
            drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
    }
}

/* ===== prize modal ===== */
body.is-modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[hidden] {
    display: none;
}

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

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.modal__dialog {
    --modal-accent: #ff345c;
    --modal-glow:  rgb(232 60 96 / 25%);
    --modal-stroke: rgba(56, 56, 56, 0.85);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding-bottom: 16px;
    border: 1px solid var(--modal-stroke);
    border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, var(--modal-glow) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 100% 100%, var(--modal-glow) 0%, transparent 55%),
        #212121;
    box-shadow: 0 20px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal__dialog {
    transform: translateY(0) scale(1);
}

.modal__banner {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-bottom: 1px solid var(--modal-stroke);
    border-radius: 20px 20px 0 0;
    background: #0a0a0a;
}

.modal__banner-img {
    position: absolute;
    left: 0;
    top: -8px;
    width: 100%;
    height: calc(100% + 22px);
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

.modal__top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 16px;
}

.modal__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.22;
    text-align: center;
}

.modal__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 518px;
    padding: 0 16px;
    text-align: center;
}

.modal__rewards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.modal__reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 72px;
    padding: 12px 8px;
    border: 1px solid var(--modal-stroke);
    border-radius: 14px;
    background:
        radial-gradient(ellipse 90% 80% at 100% 50%, var(--modal-glow) 0%, transparent 55%),
        linear-gradient(180deg, #2e2e2e 0%, #1d1d1d 100%);
}

.modal__reward-label {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
}

.modal__reward-value {
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--modal-accent);
    letter-spacing: 0.01em;
}

.modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.modal__cta--primary {
    background: var(--modal-accent);
    color: #fff;
}

.modal__cta--primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.modal__cta--secondary {
    background: #fff;
    color: #000;
}

.modal__cta--secondary:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.modal__cta-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.modal__help {
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal__help:hover {
    opacity: 0.85;
}

/* ===== promo help modal ===== */
body.is-promo-modal-open {
    overflow: hidden;
}

.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-modal[hidden] {
    display: none;
}

.promo-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.promo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.promo-modal__dialog {
    --promo-accent: #ff345c;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    max-height: calc(100dvh - 32px);
    padding: 40px 16px 20px;
    border: 1px solid rgba(56, 56, 56, 0.85);
    border-radius: 20px;
    background: #212121;
    box-shadow: 0 20px 8px rgba(0, 0, 0, 0.25);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.promo-modal.is-open .promo-modal__dialog {
    transform: translateY(0) scale(1);
}

.promo-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.promo-modal__close:hover {
    opacity: 0.75;
}

.promo-modal__title {
    width: 100%;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.promo-modal__tabs {
    display: flex;
    gap: 8px;
    width: 100%;
}

.promo-modal__tab {
    flex: 1;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.promo-modal__tab.is-active {
    background: var(--promo-accent);
    color: #fff;
}

.promo-modal__step {
    width: 100%;
    min-height: 40px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.promo-modal__slider {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.promo-modal__viewport {
    flex: 1;
    min-width: 0;
    touch-action: pan-y;
}

.promo-modal__img {
    width: 100%;
    max-height: min(52dvh, 420px);
    margin: 0 auto;
    border-radius: 12px;
    object-fit: contain;
}

.promo-modal__nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.promo-modal__nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.promo-modal__nav:not(:disabled):hover {
    opacity: 0.75;
}

.promo-modal__dots {
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 280px;
    margin-top: 4px;
}

.promo-modal__dot {
    flex: 1;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.promo-modal__dot.is-active {
    background: var(--promo-accent);
}

@media (max-width: 768px) {
    .hero {
        background-image: url("../assets/mob-bg.webp");
    }

    .hero__content {
        flex: 1;
        min-height: 0;
        padding-bottom: clamp(20px, 4vh, 36px);
    }

    .hero__title {
        margin-top: 0;
        flex-shrink: 0;
    }

    .wheel {
        margin-top: 200px;
        flex-shrink: 0;
    }

    .hero__cta {
        flex-shrink: 0;
        margin-top: clamp(12px, 2.5vh, 20px);
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 64px;
    }

    .header__brands {
        gap: 10px;
    }

    .header__logo-img {
        width: 88px;
    }

    .header__logo-img--lpl {
        width: 62px;
    }

    .header__divider {
        height: 22px;
    }

    .hero__cta {
        min-width: 100%;
        padding: 18px 28px;
        font-size: 18px;
    }

    .partners__list {
        gap: 5px;
    }

    .partners__logo {
        height: 30px;
    }

    .footer__logo-img {
        width: 130px;
    }
}

@media (max-width: 1023px) {
    .hero__people {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .modal__dialog {
        width: 80%;
        max-width: none;
    }

    .modal__banner {
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .hero__content {
        align-items: center;
        margin-left: auto;
        margin-right: 0;
        padding-bottom: 64px;
        text-align: center;
    }

    .hero__title {
        align-items: center;
    }

    .modal__dialog {
        gap: 20px;
        width: 682px;
        max-width: 682px;
        height: 620px;
        max-height: 620px;
        overflow: hidden;
        padding-bottom: 24px;
        border-radius: 28px;
    }

    .modal__banner {
        height: 246px;
        border-radius: 28px 28px 0 0;
    }

    .modal__banner-img {
        top: -14px;
    }

    .modal__top {
        padding: 0 16px;
        min-height: 46px;
    }

    .modal__title {
        font-size: 18px;
        line-height: 22px;
    }

    .modal__body {
        gap: 20px;
    }

    .modal__rewards {
        grid-template-columns: 242fr 264fr;
    }

    .modal__reward {
        min-height: 90px;
        padding: 19px 12px;
        border-radius: 16px;
    }

    .modal__reward-label {
        font-size: 14px;
        line-height: 1.4;
    }

    .modal__reward:first-child .modal__reward-label {
        font-size: 15px;
        line-height: 23px;
    }

    .modal__reward:last-child {
        gap: 3px;
    }

    .modal__reward:last-child .modal__reward-label {
        font-size: 13px;
        line-height: 14px;
    }

    .modal__reward-value {
        font-size: 28px;
        line-height: 29px;
    }

    .modal__reward:last-child .modal__reward-value {
        font-size: 30px;
        line-height: 35px;
    }

    .modal__cta {
        min-height: 50px;
        font-size: 17px;
        border-radius: 10px;
    }

    .modal__cta-icon {
        width: 24px;
        height: 24px;
    }

    .modal__help {
        font-size: 14px;
        line-height: 22px;
    }

    .promo-modal {
        padding: 24px;
    }

    .promo-modal__dialog {
        gap: 16px;
        max-width: 520px;
        padding: 48px 24px 24px;
        border-radius: 24px;
    }

    .promo-modal__title {
        font-size: 18px;
        line-height: 1.3;
    }

    .promo-modal__tab {
        min-height: 40px;
        font-size: 14px;
    }

    .promo-modal__step {
        min-height: 44px;
        font-size: 14px;
    }

    .promo-modal__img {
        max-height: min(58dvh, 480px);
        border-radius: 14px;
    }

    .promo-modal__dots {
        max-width: 360px;
    }

    .partners {
        padding-top: 36px;
        padding-bottom: 28px;
    }

    .partners__list {
        gap: 12px;
        flex-wrap: nowrap;
    }
}
