:root {
    --green: #158f5b;
    --green-dark: #076752;
    --green-light: #bff3c8;
    --ink: #111b27;
    --muted: #dfe4ea;
    --white: #fff;
    --black: #030504;
    --radius: 12px;
    --page-width: 600px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background: #f3f5f7;
    color: var(--ink);
    font-size: 16px;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 88px;
    background: rgba(2, 4, 3, .96);
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.header-inner {
    position: relative;
    width: min(var(--page-width), calc(100% - 24px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    width: 164px;
    height: 48px;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.brand img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: left center; }

.menu-button {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    background: #080c0a;
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
}
.menu-button span { width: 21px; height: 2px; border-radius: 4px; background: #fff; transition: .25s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-menu {
    position: absolute;
    top: 76px;
    right: 0;
    width: min(300px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: #0a0e0c;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    display: grid;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
}
.main-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.main-menu a { color: #fff; text-decoration: none; padding: 13px 14px; border-radius: 9px; }
.main-menu a:hover, .main-menu a:focus-visible { background: var(--green); outline: none; }

.page-shell {
    width: min(var(--page-width), 100%);
    min-height: calc(100vh - 88px);
    margin: 0 auto;
    padding-bottom: 26px;
    background: var(--muted);
    box-shadow: 0 0 45px rgba(27, 39, 50, .08);
}

.hero {
    position: relative;
    height: 310px;
    overflow: hidden;
    isolation: isolate;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transform: scale(1.025); transition: opacity .6s ease, transform 2s ease; }
.slide.is-active { opacity: 1; transform: scale(1); }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.slide-counter {
    position: absolute;
    z-index: 3;
    top: 16px;
    right: 16px;
    padding: 8px 13px;
    border-radius: 10px;
    background: rgba(28,31,33,.62);
    color: #fff;
    font-size: .9rem;
    backdrop-filter: blur(4px);
}
.slide-counter span { margin-left: 7px; font-size: .72rem; opacity: .78; }
.hero-copy { position: absolute; z-index: 3; left: 10px; right: 74px; bottom: 16px; color: #fff; }
.ending-badge { display: inline-block; padding: 5px 8px; border-radius: 6px; background: var(--green); font-size: .68rem; font-weight: 800; }
.hero-copy h1 { margin: 6px 0 1px; font-size: 1.06rem; line-height: 1.1; }
.hero-copy p { margin: 0; font-size: .82rem; opacity: .85; }
.dots { position: absolute; z-index: 3; right: 12px; bottom: 15px; display: flex; gap: 5px; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.dot.is-active { width: 18px; border-radius: 8px; background: #fff; }

.my-titles {
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg, #000, #2c2d2d);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: .92rem;
}

.draw-strip {
    min-height: 38px;
    padding: 6px 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 7px 10px;
    font-size: .78rem;
}
.draw-strip strong { padding: 3px 7px; border-radius: 5px; background: #fff; }
.draw-strip b { padding: 3px 9px; border-radius: 6px; background: #040404; color: #fff; font-size: 1.06rem; }

.offer-card { margin: 0 10px 5px; padding: 12px 14px; border-radius: 10px; background: linear-gradient(115deg, var(--green), var(--green-dark)); color: #fff; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,.12); }
.offer-card h2 { margin: 0 0 6px; font-size: 1.13rem; }
.countdown-line { height: 33px; margin: 0 auto 5px; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 5px; background: linear-gradient(90deg, rgba(255,255,255,.03) 68%, rgba(194,255,210,.82) 68%); font-size: 1rem; }
.countdown-line strong { font-size: 1.08rem; }
.offer-card p { margin: 3px 0; font-size: 1rem; line-height: 1.2; }
.offer-card small { font-size: .68rem; }

.purchase-card { margin: 0 10px; }
.purchase-hint { margin: 0 0 6px; padding: 9px; border-radius: 16px; background: #fff; text-align: center; font-size: .79rem; }
.quantity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.quantity-option {
    position: relative;
    min-height: 77px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #020202;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .15s, border-color .15s, background .15s;
}
.quantity-option:active { transform: scale(.985); }
.quantity-option strong { font-size: 1.5rem; line-height: 1; }
.quantity-option span { margin-top: 7px; font-size: .78rem; text-transform: uppercase; }
.quantity-option em { position: absolute; top: -2px; padding: 2px 16px; border-radius: 0 0 8px 8px; background: var(--green); color: #fff; font-size: .6rem; font-style: normal; }
.quantity-option.popular { border-color: var(--green); background: var(--green-light); color: #0d251a; }

.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 5px; }
.quantity-control { height: 60px; padding: 8px; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 6px; border-radius: 9px; background: #fff; }
.quantity-control button { width: 28px; height: 28px; padding: 0; border: 2px solid #9eabb8; border-radius: 50%; background: transparent; color: #314150; font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.quantity-control button:hover, .quantity-control button:focus-visible { border-color: var(--green); background: var(--green); color: #fff; outline: none; }
.quantity-control button:active { transform: scale(.9); }
.quantity-control button:disabled { opacity: .35; cursor: not-allowed; background: transparent; color: #314150; border-color: #9eabb8; }
.quantity-control input { width: 100%; height: 40px; border: 1px solid #d8dee5; border-radius: 8px; text-align: center; outline: none; -moz-appearance: textfield; }
.quantity-control input::-webkit-outer-spin-button, .quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-control input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,143,91,.12); }
.participate-button { min-height: 60px; border: 0; border-radius: 8px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 8px 14px; text-align: left; cursor: pointer; }
.participate-button:hover { background: #107d4f; }
.participate-button span:last-child { display: flex; flex-direction: column; font-size: 1rem; line-height: 1.1; }
.participate-button strong { margin-top: 5px; font-size: 1.18rem; }
.check-icon { width: 22px; height: 22px; border: 1px solid #fff; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }

.rules { margin: 5px 10px 0; }
.rules-toggle { width: 100%; height: 37px; border: 0; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }
.rules-toggle span { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 3px; background: var(--ink); color: #fff; transition: transform .2s; }
.rules-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.rules-content { padding: 12px 14px; margin-top: 5px; border-radius: 10px; background: #fff; font-size: .82rem; line-height: 1.5; }
.rules-content p { margin: 0; }

.prizes { padding: 7px 10px 0; }
.prizes-heading { display: flex; align-items: center; justify-content: space-between; }
.prizes-heading h2 { margin: 0 0 6px; font-size: 1.08rem; }
.prizes-heading span { padding: 2px 8px; border: 1px solid var(--green); border-radius: 6px; color: var(--green); font-weight: 800; font-size: .82rem; }
.prize-list { display: grid; gap: 4px; }
.prize-row[hidden] { display: none !important; }
.prize-row { min-height: 30px; padding: 3px; display: grid; grid-template-columns: 115px 1fr 95px; align-items: center; gap: 5px; border: 3px solid var(--green); border-radius: 9px; background: var(--green); color: #fff; font-size: .72rem; }
.prize-row strong { min-height: 22px; padding: 3px 8px; border-radius: 6px; display: grid; place-items: center; background: #fff; color: #050806; }
.prize-row span { min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prize-row small { min-width: 0; font-size: .72rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prize-row.is-available { border-color: #fff; background: #fff; color: #27313b; }
.prize-row.is-available strong { background: #9aa9b9; color: #fff; }
.show-more { margin: 14px auto 5px; padding: 7px 20px; border: 0; background: transparent; color: var(--green); display: block; font-weight: 800; cursor: pointer; }
.show-more span { display: inline-block; transition: transform .2s; }
.show-more[aria-expanded="true"] span { transform: rotate(180deg); }

.share { display: flex; justify-content: center; gap: 9px; margin: 5px 0 14px; }
.share a { width: 32px; height: 32px; border-radius: 7px; color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 900; font-size: 1.12rem; }
.facebook { background: #4267a9; }.twitter { background: #16181c; }.telegram { background: #229ed9; }.whatsapp { background: #159e62; }
.footer { padding: 15px 16px 5px; text-align: center; font-size: .75rem; color: #6c7781; }
.footer strong { color: #26323c; }
.footer p { margin: 4px 0 0; }

.modal-open { overflow: hidden; }
.checkout-modal[hidden] { display: none !important; }
.checkout-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .2s ease;
}
.checkout-modal.is-open { opacity: 1; }
.checkout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 25, 34, .73);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.checkout-dialog {
    position: relative;
    width: min(600px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .36);
    transform: translateY(12px) scale(.985);
    transition: transform .22s ease;
    outline: none;
}
.checkout-modal.is-open .checkout-dialog { transform: translateY(0) scale(1); }
.checkout-modal-header {
    min-height: 72px;
    padding: 0 22px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.checkout-modal-header h2 { margin: 0; display: flex; align-items: center; gap: 15px; color: #27313d; font-size: 1.18rem; }
.checkout-modal-header svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checkout-close { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6f7882; font-size: 2rem; line-height: 1; cursor: pointer; }
.checkout-close:hover, .checkout-close:focus-visible { background: #f0f3f5; color: #1d2731; outline: none; }
.checkout-modal-body { padding: 16px; }
.checkout-info {
    min-height: 66px;
    padding: 13px 18px;
    border-radius: 8px;
    background: #c9f0ff;
    color: #285694;
    display: flex;
    align-items: center;
    gap: 14px;
}
.checkout-info p { margin: 0; font-size: .82rem; line-height: 1.45; }
.checkout-info strong { color: #123f80; }
.info-icon { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: #349cf2; color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 900; }
.phone-field { position: relative; margin-top: 15px; }
.phone-field > label { position: absolute; z-index: 2; left: 13px; top: -8px; padding: 0 5px; background: #fff; color: #9aa7b5; font-size: .78rem; }
.phone-control { height: 58px; padding: 0 13px; border: 1px solid #d8dee5; border-radius: 9px; display: flex; align-items: center; background: #fff; transition: border-color .15s, box-shadow .15s; }
.phone-control:focus-within { border-color: #349cf2; box-shadow: 0 0 0 3px rgba(52,156,242,.12); }
.phone-control.is-invalid { border-color: #e35353; box-shadow: 0 0 0 3px rgba(227,83,83,.1); }
.country-flag { font-size: 1.35rem; line-height: 1; }
.country-arrow { margin-left: 5px; color: #8b98a5; font-size: 1rem; }
.phone-divider { width: 1px; height: 28px; margin: 0 13px 0 10px; background: #dbe0e5; }
.phone-control input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #27313d; font-size: 1rem; }
.phone-control input::placeholder { color: #9da9b7; }
.checkout-step-two[hidden] { display: none !important; }
.checkout-step-two { opacity: 0; transform: translateY(-8px); }
.checkout-step-two.is-visible { opacity: 1; transform: translateY(0); transition: opacity .22s ease, transform .22s ease; }
.checkout-step-two .phone-field { margin-top: 15px; }
.name-control { width: 100%; height: 56px; margin-top: 16px; padding: 0 13px; border: 1px solid #d8dee5; border-radius: 9px; outline: 0; background: #fff; color: #27313d; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.name-control::placeholder { color: #9da9b7; }
.name-control:focus { border-color: #349cf2; box-shadow: 0 0 0 3px rgba(52,156,242,.12); }
.name-control.is-invalid { border-color: #e35353; box-shadow: 0 0 0 3px rgba(227,83,83,.1); }
.checkout-alert { min-height: 50px; margin-top: 16px; padding: 12px 16px; border-radius: 8px; background: #fff4c8; color: #9b7620; display: flex; align-items: center; gap: 14px; font-size: .88rem; }
.checkout-alert.is-error { background: #ffe3e3; color: #a63d3d; }
.checkout-alert.is-success { background: #d8f6e7; color: #14744a; }
.alert-icon { width: 22px; height: 20px; flex: 0 0 auto; border-radius: 5px; background: #ffbf18; color: #fff; display: grid; place-items: center; font-weight: 900; }
.checkout-alert.is-error .alert-icon { background: #e35353; }
.checkout-alert.is-success .alert-icon { border-radius: 50%; background: #1a9b62; }
.checkout-terms { margin: 17px 10px 22px; color: #828d98; font-size: .68rem; line-height: 1.45; text-align: center; }
.checkout-terms a { color: var(--green); font-weight: 800; text-decoration: none; }
.checkout-terms a:hover { text-decoration: underline; }
.complete-reservation { width: 100%; min-height: 49px; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--green); color: #fff; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-weight: 800; cursor: pointer; box-shadow: 0 3px 6px rgba(21,143,91,.17); }
.complete-reservation > span:first-child { grid-column: 2; }
.reservation-arrow { grid-column: 3; justify-self: start; width: 20px; height: 20px; margin-left: 16px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; font-size: .9rem; line-height: 1; }
.complete-reservation:hover, .complete-reservation:focus-visible { background: #107d4f; outline: 3px solid rgba(21,143,91,.18); }
.complete-reservation:disabled { opacity: .7; cursor: wait; }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 20px; width: min(430px, calc(100% - 30px)); padding: 13px 16px; border-radius: 10px; background: #0a0e0c; color: #fff; text-align: center; box-shadow: 0 15px 45px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: .25s; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.meta-consent[hidden] { display: none !important; }
.meta-consent { position: fixed; z-index: 1200; right: 18px; bottom: 18px; width: min(440px, calc(100% - 28px)); padding: 17px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #0b0f0d; color: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.35); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.meta-consent strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.meta-consent p { margin: 0; color: #cbd3cf; font-size: .73rem; line-height: 1.42; }
.meta-consent-actions { display: flex; gap: 7px; }
.meta-consent-actions button { min-height: 38px; padding: 0 12px; border: 1px solid #2b3932; border-radius: 8px; background: transparent; color: #fff; font-size: .72rem; font-weight: 800; cursor: pointer; }
.meta-consent-actions button:last-child { border-color: var(--green); background: var(--green); }
.meta-consent-actions button:focus-visible { outline: 3px solid rgba(34,181,115,.25); outline-offset: 2px; }

@media (max-width: 620px) {
    .meta-consent { right: 10px; bottom: 10px; width: calc(100% - 20px); grid-template-columns: 1fr; gap: 12px; }
    .meta-consent-actions { justify-content: flex-end; }
    .meta-consent-actions button { flex: 1; }
    .site-header { height: 68px; }
    .header-inner { width: calc(100% - 24px); }
    .main-menu { top: 60px; }
    .page-shell { min-height: calc(100vh - 68px); }
    .hero { height: clamp(245px, 67vw, 310px); }
}

@media (max-width: 430px) {
    body { background: var(--muted); }
    .brand { width: 148px; height: 43px; }
    .hero-copy { right: 58px; bottom: 17px; }
    .hero-copy h1 { font-size: .98rem; }
    .slide-counter { top: 10px; right: 10px; }
    .draw-strip { padding-inline: 8px; gap: 6px; font-size: .72rem; }
    .offer-card h2 { font-size: 1rem; }
    .offer-card p { font-size: .88rem; }
    .quantity-option { min-height: 72px; }
    .quantity-option strong { font-size: 1.35rem; }
    .checkout-row { grid-template-columns: 1fr; }
    .quantity-control { height: 54px; }
    .participate-button { justify-content: center; min-height: 56px; }
    .prize-row { grid-template-columns: 82px minmax(0, 1fr) 72px; gap: 4px; font-size: .64rem; }
    .prize-row strong { padding-inline: 4px; }
    .prize-row small { grid-column: auto; margin-top: 0; font-size: .64rem; text-align: right; }
    .checkout-modal { padding: 12px; }
    .checkout-dialog { max-height: calc(100vh - 24px); border-radius: 14px; }
    .checkout-modal-header { min-height: 62px; padding: 0 14px; }
    .checkout-modal-header h2 { gap: 10px; font-size: 1.05rem; }
    .checkout-modal-header svg { width: 23px; height: 23px; }
    .checkout-modal-body { padding: 14px; }
    .checkout-info { padding: 11px 13px; gap: 10px; }
    .checkout-info p { font-size: .76rem; }
    .phone-control { height: 56px; }
    .checkout-alert { padding: 11px 13px; font-size: .8rem; }
    .checkout-terms { margin-inline: 2px; }
}

@media (max-width: 350px) {
    .prize-row { grid-template-columns: 74px minmax(0, 1fr) 65px; gap: 3px; font-size: .6rem; }
    .prize-row small { font-size: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
