/* –âåòîâàß ïàëèòðà è áàçîâûå ïåðåìåííûå */
:root {
    --bg-main: #0F0F0F;
    --bg-card: #2B2B2B;
    --accent-orange: #E8641C;
    --accent-orange-hover: #F07A3A;
    --accent-purple: #5B2C82;
    --accent-purple-hover: #7A3DA8;
    --accent-green: #7FD13B;
    --text-main: #E0E0E0;
    --text-muted: #999999;
    --border-color: #3A3A3A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

/* ˜àïêà ñàéòà */
header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 24px;
    color: var(--accent-orange);
}

header nav a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--accent-orange);
}

.btn-steam {
    display: inline-block;
    background: var(--accent-purple);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-steam:hover {
    background: var(--accent-purple-hover);
}

.user-link {
    color: #fff !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.user-link:hover {
    background: rgba(255,255,255,0.2);
}

/* Žñíîâíîé êîíòåíò */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.about, .news-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.03);
}

.about h2, .news-item h3 {
    margin-bottom: 10px;
    color: #fff;
}

.about p, .news-content {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-main);
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-image {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Šàðòî÷êè òîâàðîâ */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.03);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(232, 100, 28, 0.15);
}

/* „åëàåì êàðòèíêó êâàäðàòíîé è óáèðàåì çóì */
.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
}

.product-card:hover img {
    transform: none; /* “áèðàåò ýôôåêò óâåëè÷åíèß */
}

.product-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #fff;
}

.product-card p {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    flex-grow: 1;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.btn-buy {
    width: 100%;
    background: var(--accent-orange);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: var(--accent-orange-hover);
}

.login-hint {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ‹åâàß ïàíåëü (‘àéäáàð) */
.layout-with-sidebar {
    display: flex;
    gap: 25px;
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.layout-with-sidebar main {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-block {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.03);
}

.sidebar-block h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: bold;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-links a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--accent-orange);
}

.sidebar-links a svg {
    color: var(--accent-orange);
}

/* ‘òàòóñ ñåðâåðîâ â ñàéäáàðå */
.server-status {
    display: flex;
    justify-content: space-between; /* �àçíîñèò èìß âëåâî, îíëàéí âïðàâî */
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.server-status:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.server-name {
    font-weight: bold;
    font-size: 14px;
    color: var(--text-main);
}

.server-online {
    font-size: 13px;
    color: var(--text-muted);
}

.server-online .online-count {
    color: var(--accent-green);
    font-weight: bold;
}

.server-online .status-offline {
    color: #e74c3c;
}

@media (max-width: 900px) {
    .layout-with-sidebar { flex-direction: column; }
    .sidebar { width: 100%; }
}