* {
    padding: 0;
    margin: 0;
    border: 0;
}

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

:focus,
active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

/* 
html, body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-edjust: 100%;
  -moz-text-size-edjust: 100%;
  -webkit-text-size-edjust: 100%;
} */

input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

nav li {
    list-style: none;
}

img {
    vertical-align: top;
}


:root {
    --accent: #FFD65A;
    /* Ñ‚Ñ‘Ð¿Ð»Ð¾Ðµ Ð·Ð¾Ð»Ð¾Ñ‚Ð¾ */
    --accent-2: #94C9FF;
    /* Ñ…Ð¾Ð»Ð¾Ð´Ð½Ñ‹Ð¹ Ð¿Ð¾Ð´ÑÐ²ÐµÑ‚ */
    --accent-glow: rgba(255, 214, 90, .35);
    --bg: #0A0B0D;
    --bg-2: #0E1014;
    --card: rgba(255, 255, 255, .05);
    --card-solid: #141618;
    --card-hover: rgba(255, 255, 255, .08);
    --border: rgba(255, 255, 255, .10);
    --text: #F6F7F8;
    --muted: #AEB3BA;
    --shadow: 0 10px 30px rgba(0, 0, 0, .55);
    --glass: rgba(255, 255, 255, .06);



    /* Ð¤Ð»ÑŽÐ¸Ð´-Ñ‚Ð¸Ð¿Ð¾Ð³Ñ€Ð°Ñ„Ð¸ÐºÐ° Ð¸ Ð¾Ñ‚ÑÑ‚ÑƒÐ¿Ñ‹ */
    --h1: clamp(2rem, 1.2rem + 3cqi, 3.4rem);
    --h2: clamp(1.25rem, 0.9rem + 1.5cqi, 2rem);
    --lead: clamp(.98rem, .9rem + .5cqi, 1.15rem);
    --radius: 14px;
    --gap: clamp(12px, 6px + 1cqi, 20px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--grad-bg), var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ¹Ð½ÐµÑ€ Ð¸ Ð°Ð´Ð°Ð¿Ñ‚Ð¸Ð²Ð½Ð°Ñ ÑˆÐ¸Ñ€Ð¸Ð½Ð° */
.container {
    max-width: min(1120px, 92vw);
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px);
    overflow: hidden;
}

/* Ð¢Ð¾Ð¿Ð±Ð°Ñ€ ÐºÐ°Ðº ÑÑ‚ÐµÐºÐ»Ð¾ */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .04));
    backdrop-filter: saturate(120%) blur(14px);
    -webkit-backdrop-filter: saturate(120%) blur(14px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
    border-radius: 999px;
    padding: 10px 14px;
}

/* Ð›Ð¾Ð³Ð¾Ñ‚Ð¸Ð¿ Ñ‡Ð¸Ñ‰Ðµ Ð¸ ÑÐ¿Ð¾ÐºÐ¾Ð¹Ð½ÐµÐµ */
.logo img {
    height: 40px;
    filter: none;
}

.small {
    font-size: .9rem;
    color: var(--muted);
}

/* ÐÐ°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ñ â€“ Ð¼Ð¸Ð½Ð¸Ð¼Ð°Ð»Ð¸Ð·Ð¼ */
nav {
    display: flex;
    gap: clamp(10px, 1.2vw, 20px);
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--text);
    opacity: .82;
    letter-spacing: .01em;
    padding: 10px 12px;
    border-radius: 10px;
    transition: opacity .25s ease, color .25s ease, background .25s ease;
}

nav a:hover {
    opacity: 1;
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

#raffles {
    margin-bottom: 80px;
}

.btn {
    background: linear-gradient(90deg, var(--accent), #FFE38E);
    color: #0B0B0B;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn.ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: none;
}

.btn.ghost:hover {
    background: rgba(255, 214, 90, .10);
    color: #fff;
}

/* Hero: Ð±ÐµÐ½Ñ‚Ð¾-ÑÐµÑ‚ÐºÐ° 1fr / 360px Ð¸ ÐºÑ€ÑƒÐ¿Ð½Ñ‹Ð¹ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²Ð¾Ðº */
.hero {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 360px);
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
    padding: clamp(44px, 6vw, 84px) 0;
}

.hero h1 {
    font-size: var(--h1);
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: var(--lead);
}

/* Ð¡Ñ‚Ð°Ñ‚Ð¸ÑÑ‚Ð¸ÐºÐ° â€“ Ñ‡Ð¸Ð¿Ñ‹-ÑÑ‚ÐµÐºÐ»Ð¾ */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.stat {
    background: var(--glass);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

/* ÐŸÑ€Ð°Ð²Ñ‹Ð¹ ÑÐ°Ð¹Ð´ â€“ ÑÑ‚ÐµÐºÐ»ÑÐ½Ð½Ñ‹Ðµ ÐºÐ°Ñ€Ñ‚Ñ‹ */
aside>div {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: var(--shadow);
}

aside>div:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
}

/* Ð¢Ð°Ð±Ð»Ð¸Ñ†Ð°: ÐºÐ¾Ð¼Ð¿Ð°ÐºÑ‚Ð½Ñ‹Ðµ Ñ€ÑÐ´Ñ‹, Ñ…Ð¾Ð²ÐµÑ€-Ð¿Ð¾Ð´ÑÐ²ÐµÑ‚ÐºÐ° */
#raffles table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 12px;
}

#raffles th,
#raffles td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

#raffles th {
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .06em;
}

#raffles td {
    font-size: .96rem;
}



#raffles .price {
    font-weight: 700;
    color: var(--accent);
}

#raffles .completed {
    opacity: .55;
    filter: saturate(.85);
}

/* Steps: Ð±ÐµÐ½Ñ‚Ð¾-ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ Ñ Ð¼ÑÐ³ÐºÐ¸Ð¼ Ñ€ÐµÐ»ÑŒÐµÑ„Ð¾Ð¼ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin: clamp(28px, 4vw, 50px) 0;
}

.step {
    background: var(--card-solid);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 10px 24px rgba(0, 0, 0, .35);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.step:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
}

.step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(100% 100% at 50% 0%, #FFE38E 0%, var(--accent) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    font-size: 1.05rem;
    box-shadow: 0 0 0 3px rgba(255, 214, 90, .18), 0 0 12px var(--accent-glow);
}

/* ÐŸÐ¾Ð±ÐµÐ´Ð¸Ñ‚ÐµÐ»Ð¸ â€” Ñ‡Ð¸Ð¿-ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ */
#winners .card {
    background: var(--card-solid);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Ð¤ÑƒÑ‚ÐµÑ€ â€“ Ð³Ð»Ð°Ð´ÐºÐ¸Ð¹, Ñ Ð¼ÑÐ³ÐºÐ¾Ð¹ ÑÐµÐ¿Ð°Ñ€Ð°Ñ†Ð¸ÐµÐ¹ */
footer {
    padding: 26px 0;
    background: #0D0F13;
    border-top: 1px solid var(--border);
    margin-top: 60px;
    color: var(--muted);
}

/* ÐœÐ¾Ð´Ð°Ð»ÐºÐ° â€“ ÑÑ‚ÐµÐºÐ»Ð¾ Ð¸ Ñ†ÐµÐ½Ñ‚Ñ€Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .45);
}

.modal.open {
    display: grid;
}

.modal__box {
    background: linear-gradient(180deg, rgba(26, 26, 26, .9), rgba(18, 18, 18, .9));
    border-radius: 16px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px);
    width: 50vw;
}

input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #141618;
    color: var(--text);
    width: 100%;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 214, 90, .15);
}

/* Ð‘Ð¸Ð»ÐµÑ‚Ñ‹ ÑÐµÑ‚ÐºÐ¾Ð¹ */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 30px;
}

.ticket {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}

.ticket:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
}

.ticket.selected {
    background: rgba(255, 214, 90, .14);
    color: white;
    border-color: var(--accent);
}

/* ÐœÐ¸ÐºÑ€Ð¾Ð´Ð²Ð¸Ð¶ÐµÐ½Ð¸Ðµ Ð´Ð»Ñ Ð¿Ð¾ÑÐ²Ð»ÐµÐ½Ð¸Ñ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__box {
    animation: fadeIn .24s ease;
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð² */
@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        padding: clamp(28px, 6vw, 50px) 0;
    }

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

@media (max-width: 640px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

/* Ð‘Ð°Ð·Ð¾Ð²Ñ‹Ðµ Ñ‚Ð¾ÐºÐµÐ½Ñ‹ */
:root {
    --accent: #FFD65A;
    --accent-glow: rgba(255, 214, 90, .35);
    --bg: #0A0B0D;
    --card: rgba(255, 255, 255, .05);
    --card-solid: #141618;
    --card-hover: rgba(255, 255, 255, .08);
    --border: rgba(255, 255, 255, .10);
    --text: #F6F7F8;
    --muted: #c9ced6;
    --grad-bg:
        radial-gradient(1200px 600px at 15% -10%, rgb(255 255 255 / 10%), transparent),
        radial-gradient(900px 500px at 85% -15%, rgba(148, 201, 255, .10), transparent),
        linear-gradient(180deg, #08090B 0%, #0C0E12 40%, #0E1116 100%);

    --h1: clamp(2rem, 0rem + 3.2cqi, 3.4rem);
    --lead: clamp(.98rem, .9rem + .5cqi, 1rem);
    --radius: 14px;
    --gap: clamp(12px, 6px + 1cqi, 20px);
}

/* Ð‘Ð°Ð·Ð° */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--grad-bg), var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .25s ease;
}

a:hover {
    color: #fff;
}

.small {
    font-size: .9rem;
    color: var(--muted);
}

header {
    position: sticky;
    top: 10px;
    z-index: 999;
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ¹Ð½ÐµÑ€ */
.container {
    max-width: min(1120px, 94vw);
    margin: 0 auto;
    padding: clamp(14px, 2vw, 24px);
}

/* Ð¢Ð¾Ð¿Ð±Ð°Ñ€ */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap);
    background: linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(74 74 74 / 10%));
    backdrop-filter: saturate(120%) blur(14px);
    -webkit-backdrop-filter: saturate(120%) blur(14px);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
    border-radius: 999px;
    padding: 10px 14px;
}

/* ÐÐ°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ñ/ÐºÐ½Ð¾Ð¿ÐºÐ¸ */
nav {
    display: flex;
    gap: clamp(10px, 1.2vw, 20px);
    align-items: center;
}

nav a {
    font-weight: 500;
    color: var(--text);
    opacity: .82;
    letter-spacing: .01em;
    padding: 10px 12px;
    border-radius: 10px;
    transition: opacity .25s ease, color .25s ease, background .25s ease;
}

nav a:hover {
    opacity: 1;
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.btn {
    background: linear-gradient(90deg, var(--accent), #FFE38E);
    color: #0B0B0B;
    padding: 12px 18px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .25s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn.ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn.ghost:hover {
    background: rgba(255, 214, 90, .10);
    color: #fff;
}

.btn.disabled {
    pointer-events: none;
    opacity: .5
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 380px);
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
    padding: clamp(44px, 6vw, 84px) 0;
}

.hero h1 {
    font-size: var(--h1);
    line-height: 1.2;
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.hero p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: var(--lead);
}

/* Ð¡Ñ‚Ð°Ñ‚Ð¸ÑÑ‚Ð¸ÐºÐ° */
.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.stat {
    background: rgba(255, 255, 255, .06);
    padding: 10px 14px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.action-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-note {
    margin-top: 30px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border-radius: 40px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.card__title {
    margin: 0 0 8px;
}

.card__image {
    width: 100%;
    border-radius: 30px;
    height: 160px;
    object-fit: cover;
}

.card__meta {
    margin-top: 10px;
}

.card__meta-title {
    font-weight: 600;
}

.card__actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.card--solid {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    padding: 24px;
    border-radius: 40px;
    border: 1px solid var(--border);
}

.card--pill-title {
    font-weight: 600;
}

/* Ð¢Ð°Ð±Ð»Ð¸Ñ†Ð° */
#raffles h2 {
    margin-bottom: 12px;
}

#raffles table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    overflow: hidden;
    border-radius: 8px;
}

#raffles th,
#raffles td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

#raffles th {
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .06em;
}

#raffles td {
    font-size: .96rem;
}


#raffles .price {
    font-weight: 700;
    color: var(--accent);
}

#raffles .completed {
    opacity: .55;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin: 40px 0;
}

.step {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    padding: 24px;
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 24px rgba(0, 0, 0, .35);
    transition: transform .25s ease, background .25s ease;
}

.step:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
}

.step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 12px;
    background: radial-gradient(100% 100% at 50% 0%, #FFE38E 0%, var(--accent) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    font-size: 1.05rem;
    box-shadow: 0 0 0 3px rgba(255, 214, 90, .18), 0 0 12px var(--accent-glow);
}

.step__title {
    margin-top: 10px;
    font-weight: 600;
}

/* Winners */
#winners {
    margin-top: 24px;
}

.winners-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.winner-card {
    background: var(--card);
    padding: 12px;
    border-radius: 40px;
    border: 1px solid var(--border);
    min-width: 200px;
}

/* Footer */
.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ÐœÐ¾Ð´Ð°Ð»ÐºÐ° */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, .45);
    z-index: 999999;
}

.modal.open {
    display: grid;
}

.modal__box {
    background: linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(74 74 74 / 10%));
    border-radius: 16px;
    padding: 26px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
    backdrop-filter: blur(18px);
    animation: fadeIn .24s ease;
}

.modal__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 1.2rem;
}

.modal__body {}

.form-vertical {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mt-10 {
    margin-top: 10px;
}

input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #141618;
    color: var(--text);
    width: 100%;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 214, 90, .15);
}


.ticket {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}

.ticket:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
}

/* Ð”Ð¾Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ðµ Ðº Ð²Ð°ÑˆÐµÐ¹ Ð´Ð¸Ð·Ð°Ð¹Ð½-ÑÐ¸ÑÑ‚ÐµÐ¼Ðµ Ð¿Ð¾Ð´ Ð›Ðš */
.dashboard {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: clamp(18px, 3vw, 28px);
    padding: clamp(28px, 4vw, 40px) 0;
}

.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(16px, 2vw, 22px);
}

.panel+.panel {
    margin-top: clamp(12px, 2vw, 16px);
}

.panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.panel__title {
    font-size: var(--h2);
    font-weight: 800;
    letter-spacing: -.01em;
}

.profile {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: start;
}

.avatar {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    display: grid;
    place-items: center;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar__upload {
    position: absolute;
    inset: auto 8px 8px auto;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: .85rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label {
    font-size: .9rem;
    color: var(--muted);
}

.value {
    background: #141618;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    color: var(--text);
}

.value[contenteditable="true"] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 214, 90, .12);
    border-color: var(--accent);
}

.row-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ÐÐºÑ‚Ð¸Ð²Ð½Ñ‹Ðµ Ñ€Ð¾Ð·Ñ‹Ð³Ñ€Ñ‹ÑˆÐ¸: ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ */
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 16px);
}

.raffle-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.raffle-card:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}

.raffle-card__title {
    font-weight: 700;
    margin-bottom: 6px;
}

.raffle-card__meta {
    color: var(--muted);
    font-size: .92rem;
}

.raffle-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* Ð˜ÑÑ‚Ð¾Ñ€Ð¸Ñ: Ñ‚Ð°Ð±Ð»Ð¸Ñ†Ð° ÑÐ¾Ð²Ð¼ÐµÑÑ‚Ð¸Ð¼Ð° Ñ #raffles table ÑÑ‚Ð¸Ð»ÑÐ¼Ð¸ */
.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table th {
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .06em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass);
    font-weight: 600;
}

.badge--won {
    color: #12d48a;
    border-color: rgba(18, 212, 138, .35);
    background: rgba(18, 212, 138, .08);
}

.badge--lost {
    color: #ff7a7a;
    border-color: rgba(255, 122, 122, .35);
    background: rgba(255, 122, 122, .08);
}

.badge--pending {
    color: var(--accent);
    border-color: var(--accent-glow);
    background: rgba(255, 214, 90, .10);
}

/* Ð¡Ð°Ð¹Ð´Ð±Ð°Ñ€ Ð›Ðš */
.sidebar {
    display: grid;
    gap: 12px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.stat-label {
    color: var(--muted);
    font-size: .9rem;
}

/* ÐœÐ¾Ð´Ð°Ð»ÐºÐ° Ð·Ð°Ð¼ÐµÐ½Ñ‹ Ð°Ð²Ð°Ñ‚Ð°Ñ€Ð° â€” Ð¿ÐµÑ€ÐµÐ¸ÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÐµÑ‚ Ð²Ð°ÑˆÑƒ .modal */
.hidden {
    display: none !important;
}

@media (max-width: 960px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .fields {
        grid-template-columns: 1fr;
    }
}

/* Motion */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð² */
@media (max-width:960px) {
    .hero {
        grid-template-columns: 1fr;
        padding: clamp(28px, 6vw, 50px) 0;
    }

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

@media (max-width:640px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

/* Ð”Ð¾Ð¿Ð¾Ð»Ð½ÑÐµÐ¼ Ð²Ð°Ñˆ style.css Ð»Ð¾ÐºÐ°Ð»ÑŒÐ½Ñ‹Ð¼Ð¸ Ð±Ð»Ð¾ÐºÐ°Ð¼Ð¸ ÑÑ‚Ñ€Ð°Ð½Ð¸Ñ†Ñ‹ Ñ€Ð¾Ð·Ñ‹Ð³Ñ€Ñ‹ÑˆÐ° */
.raffle-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--gap);
    align-items: stretch;
    margin: clamp(20px, 4vw, 36px) 0;
}

.raffle-hero .cover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid var(--border);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: 220px auto;
}

.raffle-hero .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raffle-meta {
    padding: 18px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.pill-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--muted);
}

.price {
    color: var(--accent);
    font-weight: 800;
}

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

.count-card {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
}

.count-card .t {
    color: var(--muted);
    font-size: .9rem;
}

.count-card .v {
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 6px;
}

.progress {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 14px;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar>span {
    display: block;
    height: 100%;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, var(--accent), #FFE38E);
    box-shadow: 0 0 12px var(--accent-glow);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--muted);
    font-size: .92rem;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--gap);
    align-items: start;
    margin-top: 20px;
}

.card {
    border-radius: 40px;
}

.tickets {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.tickets h3 {
    margin: 0 0 6px;
}

.tickets .sub {
    color: var(--muted);
    font-size: .95rem;
}

.tickets-toolbar {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.tickets-toolbar input[type="number"] {
    width: 120px;
}

.ticket.selected {
    background: rgba(255, 214, 90, .14);
    color: #fff;
    border-color: var(--accent);
}

.ticket.disabled {
    opacity: .45;
    pointer-events: none;
}

.faq details {
    background: var(--card-solid);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
}

.faq details+details {
    margin-top: 8px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
}

.faq p {
    margin: 8px 0 0;
    color: var(--muted);
}

.card.tickets__sidebar {
    position: sticky;
    top: 120px;
}

.form-vertical-error {
    font-size: 16px;
    color: #ff3131;
    font-weight: 500;
    text-align: center;
}

.ticket-cell {
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
}

.ticket-cell.active {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.ticket-cell.sold {
    opacity: 0.2;
    cursor: default;
}

.ticket-cell.unpaid {
    opacity: 0.4;
}

.ticket-unpaid-icon {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 14px;
    line-height: 1;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
    background: rgba(255, 214, 90, 0.2);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.card__meta {
    font-size: .9rem;
    color: var(--muted);
}

.card__meta ul {
    display: flex;
    flex-direction: column;
    gap: 0.3vw;
    padding-left: 1vw;
    margin-bottom: 1vw;
}

.card__meta p {
    margin-bottom: 1vw;
}

.card__meta b {
    font-weight: 700;
    color: white;
}

.card__meta ul li {
    position: relative;
}

.card__meta ul li:before {
    content: '';
    width: 0.5vw;
    height: 0.5vw;
    background: #ffd75a;
    border-radius: 50%;
    position: absolute;
    top: 0.35vw;
    left: -1vw;
}

.card__meta-title.last_gift_title {
    color: var(--text);
    font-weight: 600;
    font-size: 1.1vw;
    margin-bottom: 0.625vw;
    line-height: 120%;
}

.small ol {
    padding-left: 15px;
}

.small ol strong {
    color: #ffd75a;
}

.buy_buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0px);
    background: linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(74 74 74 / 10%));
    backdrop-filter: saturate(120%) blur(14px);
    -webkit-backdrop-filter: saturate(120%) blur(14px);
    border: 1px solid var(--border);
    padding: 18px 24px;
    border-radius: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    box-sizing: border-box;
}

.buy_buttons.active {
    opacity: 1;
    visibility: visible;
}

.raffle-meta h1 {
    line-height: 120%;
}

/* Burger */
.header__burger {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    display: none;
}

.header__burger svg {
    width: 100%;
    height: 100%;
}

a.burger-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: #192a42;
    padding: 30px 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    transition: right .35s ease;
    z-index: 9999;
    background: linear-gradient(180deg, rgb(255 255 255 / 10%), rgb(74 74 74 / 10%));
    backdrop-filter: saturate(120%) blur(14px);
    -webkit-backdrop-filter: saturate(120%) blur(14px);
    border-radius: 40px 0 0;
    height: 100vh;
    box-sizing: border-box;
}

.burger-menu.active {
    right: 0;
}

.burger-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.burger-logo img {
    width: 140px;
    margin-bottom: 20px;
}

.burger-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: auto;
}

.burger-nav a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.burger-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.ticket-item {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 14px;
    display: inline-block;
    margin: 2px 4px;
}

.ticket-paid {
    background: #e6ffe6;
    border: 1px solid #3cc23c;
    color: #2e8b2e;
}

.ticket-unpaid {
    background: #ffecec;
    border: 1px solid #d66;
    color: #c33;
}

.tickets-block {
    margin-bottom: 6px;
}

.tickets-block.paid::before {
    content: "Оплаченные:";
    display: block;
    font-size: 13px;
    color: #2e8b2e;
    margin-bottom: 3px;
}

.tickets-block.unpaid::before {
    content: "Не оплаченные:";
    display: block;
    font-size: 13px;
    color: #c33;
    margin-bottom: 3px;
}


.recent-purchases-swiper .swiper-pagination{
    margin-top: 60px;
}



@media(min-width:767px) {
    #raffles tr:hover td {
        background: rgba(255, 214, 90, .05);
        transition: background .25s ease;
    }

    #raffles tr:hover td {
        background: rgba(255, 214, 90, .05);
        transition: background .25s ease;
    }
}

@media (max-width: 1024px) {
    .raffle-hero {
        grid-template-columns: 1fr;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .count-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .count-row {
        grid-template-columns: 1fr;
    }

    #rafflesTable tr {
        display: flex !important;
        flex-wrap: wrap;
        background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
        border-radius: 30px;
    }


    header nav a {
        display: none;
    }

    #rafflesTable thead {
        display: none;
    }

    #raffles th,
    #raffles td {
        border-bottom: 0;
    }

    .card__meta-title.last_gift_title {
        font-size: 16px;
    }

    .modal__box {
        width: 90%;
    }

    header {
        padding: 0 14px;
    }

    .card.tickets__sidebar {
        order: -1;
        top: 0;
        position: relative;
    }

    .card__meta ul {
        padding-left: 20px;
        gap: 10px;
    }

    .card__meta ul li:before {
        content: '';
        width: 8px;
        height: 8px;
        background: #ffd75a;
        border-radius: 50%;
        position: absolute;
        top: 7px;
        left: -17px;
    }

    .card__meta ul {
        margin-bottom: 20px;
    }

    .card__meta p {
        margin-bottom: 20px;
    }

    .raffle-hero .cover {
        background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
        border: 1px solid var(--border);
        border-radius: 40px;
        overflow: hidden;
        box-shadow: var(--shadow);
        display: grid;
        grid-template-rows: auto;
    }

    .raffle-meta h1 {
        line-height: 120%;
    }

    .buy_buttons {
        width: 92%;
    }

    .action-row {
        justify-content: space-between;
    }

    .action-row .small {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .header__burger {
        display: flex;
    }

    .hero__badge{
        display: none!important;
    }

    header nav{
        order: -1;
    }
}