:root {
    --bg-page: #050814;
    --bg-block: #1a1d23;
    --bg-card: #101524;
    --accent: #ffb347;
    --accent-2: #ff6b6b;
    --accent-soft: rgba(255, 179, 71, 0.35);
    --text-main: #ffffff;
    --text-muted: #a9b3c9;
    --text-soft: #7b8295;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition-fast: 0.2s ease-out;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    background: radial-gradient(circle at top, #1d2845 0, #050814 55%, #03040a 100%);
    color: var(--text-main);
}

.wrapper,
.container,
.container-fluid {
    max-width: 1100px;
}

.hero {
    padding-top: 72px;
    padding-bottom: 64px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero__title,
.page-title {
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero__subtitle {
    margin-top: 10px;
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-muted);
}

.hero__online {
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.hero__bottom-space {
    margin-top: 28px;
}

.hero__actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.servers {
    padding-top: 64px;
    padding-bottom: 56px;
}

.servers__title {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 28px;
}

.servers__list {
    max-width: 640px;
    margin: 0 auto;
}

.server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(10, 14, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.server-item__left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-item__name {
    font-weight: 600;
    font-size: 15px;
}

.server-item__meta {
    font-size: 13px;
    color: var(--text-muted);
}

.server-item__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-item__ip {
    font-size: 13px;
    color: #eceff4;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(12, 18, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.server-item__version {
    font-size: 12px;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b6b, #ffb347);
}

.btn,
button {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #050814;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn--primary:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 0 18px var(--accent-soft);
}

.btn--secondary {
    background: #111318;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn--secondary:hover {
    background: #181b20;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
    transform: translateY(-1px) scale(1.03);
}

.snow-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 20;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.7) 0, transparent 60%),
        radial-gradient(2px 2px at 80% 0, rgba(255, 255, 255, 0.6) 0, transparent 60%),
        radial-gradient(3px 3px at 50% 100%, rgba(255, 255, 255, 0.75) 0, transparent 60%);
    background-size: 200px 200px, 260px 260px, 320px 320px;
    animation: snow-fall 18s linear infinite;
    opacity: 0.8;
}

@keyframes snow-fall {
    0% {
        transform: translateY(-40px);
    }
    100% {
        transform: translateY(40px);
    }
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 28px;
    padding-bottom: 14px;
}

.products-header__title {
    font-size: 24px;
    font-weight: 600;
}

.products-header__search {
    max-width: 260px;
    width: 100%;
}

.products-header__search input[type="text"],
.products-header__search input[type="search"] {
    background: #111318;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    padding: 8px 12px;
}

.product-card,
.item,
.goods-list__item {
    background: #181b20;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.product-card__body,
.item-body,
.goods-list__item-inner {
    padding: 10px 14px 12px;
}

.product-title,
.item-title,
.goods-item__title {
    font-size: 15px;
    font-weight: 600;
}

.product-badge-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #111318;
    color: var(--text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-price,
.item-price,
.goods-item__price {
    margin-top: 6px;
    font-size: 14px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ff4b5c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.cart-fab {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.cart-fab:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Кнопка VK на основе ссылки из блока соцсетей */
a[href="https://vk.com/celestia"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111318;
    color: var(--text-main);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease-out,
                box-shadow 0.2s ease-out,
                background 0.2s ease-out;
}

a[href="https://vk.com/celestia"]:hover {
    background: #181b20;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
    transform: translateY(-1px) scale(1.03);
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 56px;
    }

    .hero {
        padding-top: 56px;
        padding-bottom: 48px;
    }

    .hero__title,
    .page-title {
        font-size: 32px;
    }

    .hero__actions {
        margin-top: 18px;
    }

    .servers {
        padding-top: 48px;
        padding-bottom: 40px;
    }

    .servers__title {
        margin-bottom: 24px;
    }

    .server-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .server-item__right {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .products-header__title {
        font-size: 22px;
    }

    .products-header__search {
        max-width: 100%;
        margin-top: 6px;
    }

    .product-card,
    .item,
    .goods-list__item {
        border-radius: 0;
    }
}
