@font-face {
    font-family: 'ProductSans';
    src: url('https://fragment.com/fonts/ProductSansRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ProductSans';
    src: url('https://fragment.com/fonts/ProductSansBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

*:focus {
    outline: none;
}

/* Hide scrollbars globally */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

* {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

:root {
    --bg-primary: rgb(17, 20, 23);
    --bg-secondary: rgb(33, 41, 50);
    --text-primary: #ffffff;
    --text-secondary: rgb(135, 148, 161);
    --text-tertiary: rgb(140, 154, 169);
    --accent-blue: rgb(36, 139, 218);
    --accent-blue-hover: #4db2ff;
    --border-color: #30363d;
    --hover-bg: #21262d;
    --font-family: ProductSans, -apple-system, system-ui, sans-serif;
}

body {
    font-family: var(--font-family);
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
    background-color: rgb(26, 32, 38);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

/* Header Styles */
.header {
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(13, 17, 23, 0.95);
    overflow-x: auto;
}

.header-container {
    display: flex;
    align-items: center;
    height: 56px;
    background-color: rgb(33, 41, 50);
    min-width: fit-content;
}

.logo {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    min-width: calc((100vw - 720px) / 2);
    flex-shrink: 0;
}

.logo:focus,
.logo:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.logo-icon {
    width: 44px;
    height: 44px;
    margin: -10px -11px -10px -9px;
}

.logo-text {
    width: 101px;
    height: 24px;
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-grow: 1;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-link:focus,
.nav-link:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-blue);
}

.new-badge {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    line-height: 14px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    margin: 10px 16px;
    flex-shrink: 0;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    background-color: transparent;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn:focus,
.btn:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-telegram {
    color: var(--text-primary);
    background-color: rgb(41, 52, 64);
    font-weight: 900;
}

.btn-telegram:hover {
    background-color: rgb(63, 78, 96);
}

.btn-ton {
    background-color: rgb(36, 139, 218);
    color: var(--text-primary);
    font-weight: 900;
}

.btn-ton:hover {
    background-color: var(--accent-blue-hover);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    width: 100%;
    padding: 42px 0;
    display: flex;
    justify-content: center;
}

/* Cards Container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* Card Styles */
.stars-card,
.giveaways-card {
    max-width: calc(240px + 60px);
    max-height: calc(330px + 30px);
    width: 100%;
    height: 100%;
    background-color: rgb(36, 46, 56);
    border-radius: 16px;
    padding: 15px 30px;
    margin: 0 15px 15px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.card-icon {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 80px;
    height: 80px;
}

.card-new-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: rgb(36, 139, 218);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.card-description {
    font-size: 15px;
    color: rgb(135, 148, 161);
    height: 66px;
    font-weight: 400;
    margin: 8px 15px 0 15px;
    opacity: 0.9;
    line-height: 1.5;
    overflow: hidden;
}

.btn-giveaway,
.btn-stars {
    background-color: rgb(36, 139, 218);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 24px;
    font-size: 15px;
    margin: 30px 0 21px 0;
    width: 240px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-stars:hover {
    background-color: var(--accent-blue-hover);
}

.btn-giveaway:hover {
    background-color: var(--accent-blue-hover);
}

/* Footer */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    overflow-x: auto;
}

.footer-container {
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-width: fit-content;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 300;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-link:focus,
.footer-link:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Responsive adjustments for 2560px width */
@media (min-width: 2560px) {

    .header-container,
    .main-content,
    .footer-container {
        padding-left: 120px;
        padding-right: 120px;
    }

    .card-title {
        font-size: 32px;
    }

    .card-description {
        font-size: 18px;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 19px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
    flex-shrink: 0;
}

.menu-toggle:focus,
.menu-toggle:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: rgb(26, 32, 38);
    z-index: 999;
    transition: right 0.3s ease;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    display: none;
}

.mobile-menu.active {
    right: 0;
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 54px 2px 19px;
}

.mobile-menu-title {
    font-size: 10px;
    font-weight: 600;
    color: rgb(135, 148, 161);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.menu-close:focus,
.menu-close:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-close svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 0 0 20px 0;
    flex: 1;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px 11px 19px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.mobile-menu-link:focus,
.mobile-menu-link:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu-link svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.mobile-menu-link svg,
.mobile-menu-link svg *,
.mobile-menu-link svg g,
.mobile-menu-link svg path,
.mobile-menu-link svg circle {
    fill: none;
}

.mobile-menu-link:hover svg {
    color: var(--text-primary);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    margin-top: auto;
}

.mobile-menu-buttons-description {
    text-align: center;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.mobile-btn {
    width: 100%;
    justify-content: center;
}

.mobile-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Media Query for 1071px */
@media (max-width: 1071px) {
    .header-buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
    }

    .header-container {
        justify-content: start;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Media Query for 745px */
@media (max-width: 745px) {

    .stars-card,
    .giveaways-card {
        margin-left: 0;
        margin-right: 0;
    }

    .header {
        overflow: visible;
    }

    .header-container {
        position: relative;
        justify-content: space-between;
        max-height: 48px;
        overflow: visible;
    }

    .header-buttons {
        display: flex;
        margin-right: 60px;
        height: 18px;
    }

    .header-buttons>.btn-telegram {
        display: none;
        padding: 5px 9px;
        font-size: 13px;
    }

    .header-buttons>.btn-ton {
        display: flex;
        padding: 5px 9px;
        font-size: 13px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgb(33, 41, 50);
        gap: 24px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        z-index: 99;
        height: 42px;
        padding: 0 17px;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        white-space: nowrap;
    }

    .main-content {
        margin: 42px 0 70px 0;
    }

    .logo {
        height: 48px;
        padding: 15px 14px;
    }

    .logo-icon {
        height: 34px;
        width: 34px;
        margin: -8px;
    }

    .logo-text {
        height: 18px;
        width: 77px;
    }

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

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .btn-stars,
    .btn-giveaway {
        font-size: 14px;
        padding: 10px 20px;
    }
}

