:root {
    --bg: #08090b;
    --bg-deep: #07080a;
    --card: #111318;

    --text: #f4f4f5;
    --muted: #959aa6;
    --muted-light: #b7bbc5;

    --gold: #d6a43e;
    --gold-light: #e6b451;
    --gold-soft: rgba(214,164,62,.08);
    --gold-border: rgba(214,164,62,.36);

    --border: rgba(255,255,255,.08);
    --border-hover: rgba(255,255,255,.15);

    --green: #35d58a;

    --container: 1180px;
}


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


html {
    scroll-behavior: smooth;
}


body {
    min-width: 320px;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}


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


img,
svg {
    display: block;
}


.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin: 0 auto;
}


/* HEADER */

.buy-header {
    position: sticky;
    top: 0;

    z-index: 100;

    height: 80px;

    background: rgba(8,9,11,.90);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


.header-inner {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


.brand {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    font-size: 15px;
    font-weight: 750;

    letter-spacing: -.025em;
}


.brand img {
    width: 40px;
    height: 40px;

    object-fit: cover;

    border-radius: 11px;
}


.header-actions {
    display: flex;

    gap: 9px;
}


/* BUTTONS */

.btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.btn:hover {
    transform: translateY(-2px);
}


.btn-primary {
    color: #090a0b;

    background:
        linear-gradient(
            135deg,
            #e8b95c,
            #d5a13c
        );

    border-color:
        rgba(239,194,99,.4);
}


.btn-primary:hover {
    box-shadow:
        0 12px 35px
        rgba(214,164,62,.16);
}


.btn-secondary {
    color: var(--text);

    background:
        rgba(255,255,255,.025);
}


.btn-secondary:hover {
    border-color:
        var(--gold-border);

    background:
        rgba(214,164,62,.035);
}


/* HERO */

.buy-hero {
    position: relative;

    min-height: 520px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-bottom:
        1px solid var(--border);
}


.hero-grid {
    position: absolute;
    inset: 0;

    opacity: .11;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}


.hero-glow {
    position: absolute;

    width: 700px;
    height: 500px;

    left: 20%;
    top: -300px;

    border-radius: 50%;

    background:
        rgba(214,164,62,.08);

    filter: blur(150px);
}


.buy-hero-inner {
    position: relative;
    z-index: 2;

    padding-top: 75px;
    padding-bottom: 75px;
}


.hero-badge {
    width: fit-content;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 8px 13px;

    color: var(--gold-light);

    background: var(--gold-soft);

    border:
        1px solid var(--gold-border);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .15em;
}


.hero-badge span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 9px
        rgba(53,213,138,.55);
}


.buy-hero h1 {
    max-width: 860px;

    margin-top: 26px;

    font-size:
        clamp(47px,7vw,78px);

    line-height: .99;

    letter-spacing: -.055em;
}


.buy-hero h1 em {
    color: var(--gold-light);

    font-style: normal;
}


.buy-hero p {
    max-width: 700px;

    margin-top: 27px;

    color: var(--muted-light);

    font-size: 17px;
    line-height: 1.75;
}


.hero-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 30px;
}


.hero-tags span {
    padding: 7px 11px;

    color: var(--muted-light);

    border: 1px solid var(--border);

    border-radius: 8px;

    font-size: 10px;
}


/* BUY */

.buy-section {
    padding: 105px 0;
}


.section-heading {
    max-width: 710px;

    margin-bottom: 48px;
}


.section-label {
    display: block;

    margin-bottom: 15px;

    color: var(--gold-light);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .17em;
}


.section-heading h2 {
    font-size:
        clamp(36px,5vw,55px);

    line-height: 1.05;

    letter-spacing: -.045em;
}


.section-heading p {
    margin-top: 18px;

    color: var(--muted-light);

    font-size: 15px;
    line-height: 1.75;
}


.buy-grid {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 16px;
}


.buy-card {
    min-height: 470px;

    display: flex;
    flex-direction: column;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            #121419,
            #0f1115
        );

    border: 1px solid var(--border);
    border-radius: 21px;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.buy-card:hover {
    transform: translateY(-4px);

    border-color: var(--border-hover);
}


.buy-card.featured {
    border-color: var(--gold-border);

    background:
        radial-gradient(
            circle at 0 0,
            rgba(214,164,62,.12),
            transparent 38%
        ),
        #111318;
}


.buy-card.featured:hover {
    box-shadow:
        0 22px 55px
        rgba(214,164,62,.05);
}


.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}


.card-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 7px;

    background:
        rgba(214,164,62,.05);

    border: 1px solid var(--gold-border);
    border-radius: 14px;
}


.card-icon img {
    width: 36px;
    height: 36px;

    object-fit: cover;

    border-radius: 8px;
}


.telegram-icon svg {
    width: 31px;
    height: 31px;

    fill: var(--gold-light);
}


.marketplace-logo {
    min-width: 70px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 13px;

    color: var(--gold-light);

    background:
        rgba(214,164,62,.05);

    border:
        1px solid var(--gold-border);

    border-radius: 12px;

    font-size: 15px;
    font-weight: 800;
}


.card-badge {
    padding: 6px 10px;

    color: var(--gold-light);

    background:
        rgba(214,164,62,.08);

    border-radius: 999px;

    font-size: 9px;
}


.card-badge.neutral {
    color: var(--muted-light);

    background:
        rgba(255,255,255,.025);
}


.card-content {
    margin-top: 48px;
}


.card-type {
    color: #6e7480;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .18em;
}


.card-content h3 {
    margin-top: 7px;

    font-size: 29px;

    letter-spacing: -.035em;
}


.card-content p {
    max-width: 480px;

    margin-top: 13px;

    color: var(--muted-light);

    font-size: 14px;
    line-height: 1.75;
}


.protocol-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 23px;
}


.protocol-list span {
    padding: 6px 9px;

    color: var(--muted);

    border: 1px solid var(--border);
    border-radius: 8px;

    font-size: 9px;
}


.card-main-button {
    width: 100%;

    margin-top: auto;
}


.market-links {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 26px;
}


.market-links a {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 10px 14px;

    background:
        rgba(255,255,255,.018);

    border: 1px solid var(--border);
    border-radius: 11px;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.market-links a:hover {
    transform: translateX(2px);

    background:
        rgba(214,164,62,.03);

    border-color:
        rgba(214,164,62,.24);
}


.market-links strong {
    display: block;

    font-size: 13px;
}


.market-links small {
    display: block;

    margin-top: 1px;

    color: var(--muted);

    font-size: 9px;
}


.market-links b {
    color: var(--gold-light);

    font-size: 14px;
}


.market-note {
    margin-top: auto;
    padding-top: 20px;

    color: #686e79;

    font-size: 10px;
}


/* HELP */

.buy-help {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    margin-top: 70px;

    padding: 35px;

    background:
        radial-gradient(
            circle at 0 50%,
            rgba(214,164,62,.09),
            transparent 40%
        ),
        #101216;

    border:
        1px solid var(--gold-border);

    border-radius: 20px;
}


.buy-help .section-label {
    margin-bottom: 8px;
}


.buy-help h3 {
    font-size: 25px;

    letter-spacing: -.03em;
}


.buy-help p {
    max-width: 620px;

    margin-top: 8px;

    color: var(--muted-light);

    font-size: 13px;
}


/* FOOTER */

.buy-footer {
    padding: 55px 0 25px;

    background: var(--bg-deep);

    border-top:
        1px solid var(--border);
}


.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 50px;
}


.footer-inner p {
    margin-top: 13px;

    color: var(--muted);

    font-size: 11px;
}


.footer-links {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.footer-links a {
    color: var(--muted);

    font-size: 12px;
}


.footer-links a:hover {
    color: var(--gold-light);
}


.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;

    color: #686d77;

    border-top:
        1px solid var(--border);

    font-size: 10px;
}


/* RESPONSIVE */

@media (max-width: 800px) {

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


    .buy-help {
        align-items: flex-start;
        flex-direction: column;
    }


    .header-actions .btn:first-child {
        display: none;
    }

}


@media (max-width: 600px) {

    .container {
        width:
            min(
                calc(100% - 30px),
                var(--container)
            );
    }


    .buy-header {
        height: 68px;
    }


    .brand img {
        width: 34px;
        height: 34px;
    }


    .brand span {
        font-size: 11px;
    }


    .header-actions .btn {
        min-height: 38px;

        padding: 0 12px;

        font-size: 11px;
    }


    .buy-hero {
        min-height: 470px;
    }


    .buy-hero-inner {
        padding-top: 60px;
        padding-bottom: 60px;
    }


    .buy-hero h1 {
        font-size:
            clamp(42px,13vw,60px);
    }


    .buy-section {
        padding: 75px 0;
    }


    .buy-card {
        min-height: auto;

        padding: 24px;
    }


    .card-content {
        margin-top: 37px;
    }


    .card-main-button {
        margin-top: 30px;
    }


    .footer-inner {
        flex-direction: column;
    }

}

/* =========================================================
   CABINET
========================================================= */

.btn-cabinet {
    white-space: nowrap;

    color: var(--gold-light);

    background:
        linear-gradient(
            135deg,
            rgba(214, 164, 62, .11),
            rgba(214, 164, 62, .035)
        );

    border-color: rgba(214, 164, 62, .52);

    box-shadow:
        0 0 18px rgba(214, 164, 62, .04);
}


.btn-cabinet:hover {
    color: #f0c66e;

    background:
        linear-gradient(
            135deg,
            rgba(214, 164, 62, .17),
            rgba(214, 164, 62, .06)
        );

    border-color: rgba(230, 180, 81, .8);

    box-shadow:
        0 8px 28px rgba(214, 164, 62, .09);
}


.account-icon svg {
    width: 29px;
    height: 29px;

    fill: var(--gold-light);
}


.account-actions {
    display: grid;

    grid-template-columns: 1.25fr 1fr;

    gap: 8px;

    margin-top: auto;
    padding-top: 28px;
}


.account-actions .btn {
    width: 100%;
}


@media (max-width: 800px) {

    /*
       На планшете Telegram в хедере убираем,
       но кабинет оставляем.
    */
    .header-actions > a:first-child {
        display: none;
    }

}


@media (max-width: 600px) {

    .header-actions .btn-cabinet {
        display: inline-flex;

        min-height: 38px;

        padding: 0 11px;

        font-size: 10px;
    }


    .account-actions {
        grid-template-columns: 1fr;
    }

}
