.servers-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    width: 100%;
}

/* Страница серверов — одна колонка, без сайдбара content-main */
.servers-page .content-main,
.servers-page-inner.content-main {
    display: block;
    grid-template-columns: none;
}

body.inner-page .servers-page .servers-page-inner {
    margin-top: 32px;
}

.servers-hero {
    text-align: center;
    margin-bottom: 48px;
}

.servers-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.servers-hero-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto 32px;
}

.servers-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.servers-stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 20px;
}

.servers-stat-live {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.3);
}

.servers-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
}

.servers-stat-num {
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}

.servers-stat-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
    width: 100%;
    justify-items: stretch;
}

/* 3+ серверов */
.servers-grid:not(.servers-grid--single):not(.servers-grid--duo) {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.servers-grid:not(.servers-grid--single):not(.servers-grid--duo) .server-card-link {
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

/* 2 сервера — пара по центру */
.servers-grid--duo {
    grid-template-columns: repeat(2, minmax(280px, 480px));
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.servers-grid--duo .server-card-link {
    width: 100%;
    max-width: 480px;
    justify-self: center;
}

/* 1 сервер — крупная карточка по центру */
.servers-grid--single {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.servers-grid--single .server-card-link {
    width: 100%;
    max-width: 720px;
    min-height: 280px;
    justify-self: center;
}

.servers-grid--single .server-card-body {
    bottom: 56px;
    left: 28px;
    right: 28px;
    gap: 20px;
}

.servers-grid--single .server-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.servers-grid--single .server-card-name {
    font-size: 28px;
}

.servers-grid--single .server-card-desc {
    font-size: 14px;
    max-width: 420px;
    margin-top: 6px;
}

.server-card,
a.server-card-link {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    min-height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
}

a.server-card-link:hover {
    color: inherit;
}

a.server-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(231, 76, 60, 0.25);
    border-color: rgba(231, 76, 60, 0.35);
}

.server-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.server-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 8, 20, 0.2) 0%, rgba(10, 8, 20, 0.85) 70%, rgba(10, 8, 20, 0.95) 100%);
}

.server-card-tags {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.server-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
}

.server-tag-type {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.server-tag-promo {
    color: #fff;
}

.server-tag-promo.promo-recommend {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.server-tag-promo.promo-new {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.server-tag-promo.promo-popular {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.server-tag-beta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #F0264B 0%, #c41e3a 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(240, 38, 75, 0.4);
    animation: sp-beta-pulse 2.5s ease-in-out infinite;
}

.server-tag-beta__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.sp-hero-beta-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.55em;
    height: 0.55em;
    margin-left: 10px;
    vertical-align: super;
    font-size: 0.45em;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #F0264B, #c41e3a);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(240, 38, 75, 0.45);
    line-height: 1;
    padding: 0.15em;
}

@keyframes sp-beta-pulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(240, 38, 75, 0.35); }
    50% { box-shadow: 0 2px 18px rgba(240, 38, 75, 0.55); }
}

.server-card-body {
    position: absolute;
    bottom: 48px;
    left: 20px;
    right: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.server-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.server-card-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.server-card-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 4px 0 0;
}

.server-card-online {
    position: absolute;
    bottom: 14px;
    left: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.servers-cta {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
}

.servers-cta-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.servers-cta-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

/* Footer v2 */
.footer-main-v2 .footer-columns-v2 {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-socials-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.footer-social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
    min-width: 180px;
}

.footer-social-card:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-social-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-social-name {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-social-count {
    margin-left: auto;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.footer-support-v2 {
    text-align: center;
    margin-bottom: 28px;
}

.footer-support-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 14px;
}

.footer-support-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-support-btn:hover {
    color: #fff;
    opacity: 0.9;
}

.footer-legal-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-legal-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 900px) {
    .servers-grid,
    .servers-grid--duo {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .servers-grid .server-card-link,
    .servers-grid--duo .server-card-link,
    .servers-grid:not(.servers-grid--single):not(.servers-grid--duo) .server-card-link {
        max-width: 100%;
    }
    .servers-grid--single .server-card-link {
        min-height: 240px;
    }
    .servers-grid--single .server-card-name {
        font-size: 22px;
    }
    .footer-main-v2 .footer-columns-v2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-main-v2 .footer-columns-v2 {
        grid-template-columns: 1fr;
    }
    .footer-social-card {
        width: 100%;
        justify-content: flex-start;
    }
}

/* === Server detail page (RedNet style) === */
.server-detail-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.sp-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
}
.sp-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.sp-breadcrumb a:hover { color: #e74c3c; }

.sp-hero {
    position: relative;
    border-radius: 20px;
    padding: 40px 36px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(30, 20, 25, 0.95), rgba(15, 12, 20, 0.98));
    border: 1px solid rgba(231, 76, 60, 0.25);
    overflow: hidden;
}
.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--sp-banner, none);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    pointer-events: none;
}
.sp-hero > * { position: relative; z-index: 1; }

.sp-hero-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }

.sp-hero-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
.sp-hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.15;
}
.sp-hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    margin: 0 0 16px;
    line-height: 1.5;
}
.sp-hero-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}
.sp-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(231, 76, 60, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sp-stats-section {
    margin-bottom: 32px;
    display: grid;
    gap: 12px;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.sp-stats-online-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sp-stats-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
}

.sp-stats-online-pill strong {
    font-size: 18px;
    color: #fff;
}

.sp-stats-online-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.sp-stats-list {
    display: grid;
    gap: 10px;
}

.sp-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-stat-row-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
}

.sp-stat-row-value {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.sp-stats-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sp-stat-meta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-stat-meta-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
}

.sp-stat-meta-value.sp-stat-version {
    color: #F0264B;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sp-stat-pvp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sp-stat-pvp-badge--on {
    color: #fff;
    background: linear-gradient(135deg, #F0264B 0%, #c41e3a 100%);
    box-shadow: 0 4px 18px rgba(240, 38, 75, 0.35);
}

.sp-stat-pvp-badge--off {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .sp-stats-meta {
        grid-template-columns: 1fr;
    }

    .sp-stat-row,
    .sp-stat-meta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .sp-stat-row-value {
        text-align: left;
    }
}

.sp-content-blocks { margin-bottom: 48px; }

/* RedNet frame for text content */
.sp-content-frame {
    position: relative;
    border-radius: 22px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(240, 38, 75, 0.55) 0%, rgba(231, 76, 60, 0.15) 40%, rgba(255, 255, 255, 0.06) 100%);
    box-shadow: 0 0 0 1px rgba(240, 38, 75, 0.12), 0 20px 60px rgba(0, 0, 0, 0.35);
}

.sp-content-frame__glow {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(240, 38, 75, 0.22), transparent 60%),
        radial-gradient(ellipse 40% 30% at 100% 50%, rgba(240, 38, 75, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.sp-content-frame__inner {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    padding: 28px 32px 12px;
    background:
        linear-gradient(180deg, rgba(22, 14, 18, 0.97) 0%, rgba(12, 10, 16, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-content-frame__inner::before,
.sp-content-frame__inner::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(240, 38, 75, 0.45);
    border-style: solid;
    pointer-events: none;
}

.sp-content-frame__inner::before {
    top: 14px;
    left: 14px;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}

.sp-content-frame__inner::after {
    bottom: 14px;
    right: 14px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
}

.sp-content-panel {
    margin-bottom: 8px;
}

.sp-content-panel__body {
    padding: 4px 4px 8px 12px;
    border-left: 2px solid rgba(240, 38, 75, 0.25);
    margin-left: 4px;
}

.sp-section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    color: #fff;
    margin: 28px 0 18px;
    padding: 0 0 12px 14px;
    border-bottom: none;
    position: relative;
}

.sp-section-title::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(240, 38, 75, 0.75) 0%, rgba(240, 38, 75, 0.15) 55%, transparent 100%);
}

.sp-content-panel:first-child .sp-section-title,
.sp-content-frame__inner > .sp-section-title:first-child,
.sp-content-frame__inner > section:first-child .sp-section-title {
    margin-top: 0;
}
.sp-block-text, .sp-richtext-block p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 14px;
}
.sp-block-heading { color: #fff; margin: 20px 0 12px; }
.sp-block-list { color: rgba(255, 255, 255, 0.75); margin-bottom: 16px; padding-left: 20px; }
.sp-block-delimiter {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.5), transparent);
    margin: 28px 0;
}
.sp-block-quote {
    border-left: 3px solid #e74c3c;
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 0 12px 12px 0;
    color: rgba(255, 255, 255, 0.8);
}

.sp-split { margin: 32px 0; }
.sp-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.sp-split-img img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.sp-split-left .sp-split-inner { direction: rtl; }
.sp-split-left .sp-split-inner > * { direction: ltr; }

.sp-mods-section { margin-bottom: 48px; }
.sp-mods-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}
.sp-mods-group + .sp-mods-group { margin-top: 28px; }
.sp-mods-subtitle {
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 14px;
}
.sp-mods-list { display: flex; flex-direction: column; gap: 14px; }

.sp-mod-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 22px;
    transition: border-color 0.2s;
}
.sp-mod-card:hover { border-color: rgba(231, 76, 60, 0.35); }

.sp-mod-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.sp-mod-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}
.sp-mod-name {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.sp-mod-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    margin-top: 4px;
}
.sp-mod-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.sp-mod-addons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sp-mod-addon {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}

.sp-detail-cta { margin-top: 16px; }
.servers-empty { text-align: center; color: rgba(255,255,255,0.5); padding: 40px; }

@media (max-width: 768px) {
    .sp-hero-grid { grid-template-columns: 1fr; }
    .sp-hero-visual { display: none; }
    .sp-split-inner { grid-template-columns: 1fr; }
    .sp-content-frame__inner {
        padding: 20px 18px 8px;
    }
    .sp-content-panel__body {
        padding-left: 10px;
        margin-left: 0;
    }
}
