:root {
    --bg: #090909;
    --panel: rgba(255, 255, 255, 0.06);
    --text: #f8f3eb;
    --muted: #c9bea7;
    --accent: #ff8a1f;
    --accent-dark: #c85b00;
    --border: rgba(255, 255, 255, 0.12);
    --topbar-height: 92px;
}

#loader {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: #0b0b0b;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff7a00;
    font-size: 32px;
    font-weight: 700;
    font-family: Arial, sans-serif;
}

.loader-text {
    animation: loading 1s infinite;
}

@keyframes loading {
    50% {
        opacity: 0.4;
    }
}

* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}


::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 10px;
}


::-webkit-scrollbar-thumb {
    background: #f57905;
    border-radius: 10px;
}


::-webkit-scrollbar-thumb:hover {
    background: #f57905;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #090909;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .8s ease, transform .8s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(135deg,
            transparent 49.6%,
            rgba(255, 138, 31, .05) 50%,
            transparent 50.4%),
        linear-gradient(-135deg,
            transparent 49.6%,
            rgba(255, 255, 255, .03) 50%,
            transparent 50.4%);
    background-size:
        80px 80px,
        80px 80px,
        420px 420px,
        520px 520px;
    background-position:
        center,
        center,
        0 0,
        200px 150px;
    opacity: .9;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='208' viewBox='0 0 240 208'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'%3E%3Cpolygon points='120,0 240,69 240,208 120,139 0,208 0,69'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 240px 208px;
    opacity: .35;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%,
            rgba(255, 138, 31, .18),
            transparent 30%),
        radial-gradient(circle at 80% 70%,
            rgba(255, 138, 31, .12),
            transparent 25%),
        linear-gradient(120deg,
            transparent 30%,
            rgba(255, 255, 255, .04),
            transparent 70%);
    filter: blur(40px);
    animation:
        bgPulse 12s ease-in-out infinite alternate;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background-image:
        linear-gradient(120deg,
            transparent 48%,
            rgba(255, 255, 255, .06) 49%,
            transparent 50%),
        linear-gradient(240deg,
            transparent 48%,
            rgba(255, 138, 31, .08) 49%,
            transparent 50%);
    background-size: 350px 350px, 500px 500px;
    background-position: 0 0, 200px 300px;
    opacity: .5;
    animation: gridMove 30s linear infinite;
}

.page-shell {
    position: relative;
}

.page-shell::after {
    content: "";
    position: fixed;
    width: 300px;
    height: 300px;
    left: -120px;
    bottom: 20%;
    border: 1px solid rgba(255, 255, 255, .08);
    clip-path:
        polygon(20% 0,
            100% 20%,
            80% 100%,
            0 70%);
    transform: rotate(20deg);
    z-index: -3;
    animation: floatShape 22s ease-in-out infinite reverse;
}

@keyframes bgPulse {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes gridMove {
    from {
        background-position: 0 0, 200px 300px;
    }

    to {
        background-position: 350px 200px, -200px 500px;
    }
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(15deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes floatBg {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-3%, 2%) scale(1.05);
    }

    100% {
        transform: translate(3%, -2%) scale(1.08);
    }
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: 40px;

    background:
        linear-gradient(135deg,
            rgba(255, 138, 31, .18),
            transparent);

    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    filter: blur(2px);
    opacity: .6;
}

.hero::after {
    width: 220px;
    height: 220px;
    left: -40px;
    bottom: 80px;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, .05),
            transparent);

    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    transform: rotate(18deg);
}

.bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.bg-shapes span {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .06);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.bg-shapes span:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 18%;
    right: 14%;
    transform: rotate(15deg);
}

.bg-shapes span:nth-child(2) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 10%;
    border-color: rgba(255, 138, 31, .2);
}

.bg-shapes span:nth-child(3) {
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 30%;
    opacity: .4;
}

body.loaded {
    opacity: 1;
    transform: translateY(0);
}

.page-shell {
    width: 100%;
    margin: 0;
    padding: 0;
}

main {
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: var(--topbar-height);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: rgba(9, 9, 9, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 10px 35px rgba(0, 0, 0, 0.25);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: transform 0.25s ease;
}

.brand:hover {
    transform: translateX(4px);
}

.brand-text {
    color: #fff;
}

.brand-accent {
    color: var(--accent);
    transition: transform 0.25s ease;
}

.brand:hover .brand-accent {
    transform: translateX(4px);
}

.nav-links {
    display: flex;
    gap: 18px;
}

.nav-links a,
.top-actions a {
    text-decoration: none;
    color: var(--text);
}

.nav-links a {
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-btn {
    padding: 10px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: center;
    padding: 78px clamp(24px, 4vw, 80px) 54px;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}


.hero h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

.hero-copy {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 620px;
    margin: 16px 0 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 12px 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 10px 25px rgba(255, 138, 31, 0.2);
}

.ghost-btn {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.primary-btn:hover,
.ghost-btn:hover,
.card-link:hover {
    transform: translateY(-2px);
}

.hero-card,
.news-card,
.start-card {
    border: 1px solid var(--border);
    background: var(--panel);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.hero-card {
    padding: 24px;
}

.hero-card h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.hero-card ul {
    padding-left: 18px;
    line-height: 1.9;
    color: var(--muted);
}

.donate-container {
    max-width: 1280px;
    margin: 70px auto;
    padding: 0 25px;
}

.donate-title {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 55px;
    letter-spacing: .05em;
}

.donate-wrapper {
    display: grid;
    grid-template-columns: 1fr 470px;
    gap: 35px;
}

.donate-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(18px);
    padding: 38px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}

.card-subtitle {
    font-size: .95rem;
    letter-spacing: .12em;
    margin-bottom: 30px;
    font-weight: 700;
}

.donate-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group select {
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    padding: 0 55px;
    font-size: 15px;
    outline: none;
    transition: .25s;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(255, 138, 31, .18);
}

.input-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .45);
    pointer-events: none;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.method-item input {
    display: none;
}

.method-box {
    height: 95px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .04);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .25s;
}

.method-box img {
    max-width: 70px;
    max-height: 35px;
    filter: brightness(0) invert(1);
}

.method-box:hover {
    border-color: var(--accent);
}

.method-item input:checked+.method-box {
    border-color: var(--accent);
    background: rgba(255, 138, 31, .08);
    box-shadow: 0 0 20px rgba(255, 138, 31, .18);
}

.method-box i {
    font-size: 34px;
    color: var(--text);
}

.method-img {
    max-width: 70px;
    max-height: 35px;
    filter: brightness(0) invert(1);
}

.checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.checkout-summary span:first-child {
    color: var(--muted);
    font-weight: 600;
}

.total-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
}

.btn-submit {
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    transition: .25s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 138, 31, .25);
}

.terms-text {
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
}

.terms-text a {
    color: var(--accent);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}



@media (max-width:1000px) {

    .donate-wrapper {
        grid-template-columns: 1fr;
    }

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

}

@media (max-width:650px) {

    .donate-card {
        padding: 25px;
    }

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

    .donate-title {
        font-size: 2rem;
    }

}



.footer {
    background: #060806;
    padding: 50px 8% 25px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-info {
    max-width: 420px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 45px;
}

.footer-desc {
    color: #555c55;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.footer-partners {
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 28px;
    margin-top: 20px;
    justify-items: end;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.partner-item img {
    height: 28px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
}

.partner-item img[src*="sbp"] {
    height: 42px;
    filter: grayscale(100%);
}


.footer-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 20px 0;
    border: none;
}

.footer-middle {
    margin-bottom: 20px;
}

.legal-text {
    font-size: 10px;
    line-height: 1.5;
    color: #3a3f3a;
    max-width: 800px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 10px;
    color: #3a3f3a;
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 11px;
    color: #555c55;
    text-decoration: none;
    transition: 0.2s;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #f57905;
    background: rgba(186, 255, 0, 0.08);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    text-decoration: none;
}

.footer-social a i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
}


@media (max-width: 900px) {

    .topbar {
        padding: 14px 20px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .wallet-btn {
        font-size: 13px;
        padding: 9px 13px;
    }
}


@media (max-width: 650px) {

    .topbar {
        min-height: 64px;
        height: 64px;
        padding: 10px 14px;
        gap: 10px;
    }

    .brand {
        font-size: 1rem;
        letter-spacing: .04em;
    }

    .nav-links {
        display: none;
    }

    .top-actions {
        margin-left: auto;
        gap: 7px;
    }

    .wallet-btn {
        padding: 8px 11px;
        font-size: 11px;
        white-space: nowrap;
    }

    .social-link {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
}

.mobile-menu-btn {
    width: 38px;
    height: 38px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 5px;
    transition: .25s ease;
}


@media (max-width: 650px) {

    .mobile-menu-btn {
        display: flex;
    }

    .topbar {
        position: sticky;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 80px 20px 40px;
        border: none;
        border-radius: 0;
        background:
            radial-gradient(circle at 50% 35%,
                rgba(255, 138, 31, .12),
                transparent 35%),
            rgba(9, 9, 9, .98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-20px);
        transition:
            opacity .3s ease,
            transform .3s ease,
            visibility .3s ease;
        z-index: 100;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 420px;
        min-height: 58px;
        padding: 12px 20px;
        border-radius: 14px;
        color: var(--text);
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        transition:
            color .2s ease,
            background .2s ease,
            transform .2s ease;
    }

    .nav-links a:hover {
        color: var(--accent);
        background: rgba(255, 138, 31, .08);
        transform: translateY(-2px);
    }

    .nav-links a.active {
        color: var(--accent);
        background: rgba(255, 138, 31, .08);
        border-bottom: none;
        padding-bottom: 12px;
    }

    .topbar.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .topbar.menu-open .mobile-menu-btn {
        position: relative;
        z-index: 110;
    }

    .topbar.menu-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .topbar.menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .topbar.menu-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}


.news-card .news-image { margin: -22px -22px 16px; width: calc(100% + 44px); }

.donate-title-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 55px;
}
.donate-title-row .donate-title {
    margin-bottom: 0;
}
.bonus-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(255, 138, 31, .25);
}
@media (max-width: 600px) {
    .donate-title-row {
        flex-wrap: wrap;
        margin-bottom: 40px;
    }
}
