@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@400;600&display=swap');

:root {
    --bg-dark: #0b0f0b;
    --card-bg: rgba(18, 26, 20, 0.9);
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.3);
    --green-accent: #2d5a3b;
    --text-main: #e0e0e0;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    
    /* ЭТИ СТРОКИ ПРИЖИМАЮТ ФУТЕР: */
    min-height: 100vh;      /* Высота body = 100% высоты экрана */
    display: flex;          /* Включаем Flexbox */
    flex-direction: column; /* Элементы идут сверху вниз */
}

/* ФОН */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        linear-gradient(to bottom, rgba(11, 15, 11, 0.85), rgba(11, 15, 11, 0.98)),
        url('https://cdn.hytale.com/media/wallpapers/hytale-summer-wallpaper_1920x1080.jpg');
    background-size: cover;
    background-position: center;
}

/* НАВИГАЦИЯ */
nav {
    background: rgba(11, 15, 11, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

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

/* КОНТЕЙНЕР */
.container {
    max-width: 1000px;
    margin: 40px auto; /* Отступы сверху/снизу и по центру */
    padding: 0 15px;
    
    /* ЭТА СТРОКА ЗАСТАВЛЯЕТ КОНТЕЙНЕР РАСТЯГИВАТЬСЯ */
    flex: 1; 
    width: 100%; /* На всякий случай, чтобы не сжимался */
}

h1.page-title {
    font-family: 'Cinzel', serif;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(45, 90, 59, 0.6);
}

/* БАННЕР FREEKASSA */
.fk-banner {
    text-align: center;
    margin-bottom: 40px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border: 1px dashed #333;
}

.fk-banner img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.fk-banner img:hover {
    transform: scale(1.02);
}

/* КАРТОЧКИ СЕРВЕРОВ */
.server-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    height: 130px; /* Фиксированная высота */
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* PREMIUM СТИЛИ */
.server-card.premium {
    border: 1px solid var(--gold);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, rgba(18, 26, 20, 0.9) 40%);
    box-shadow: 0 0 15px var(--gold-glow);
}

.premium-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: #000;
    font-weight: bold;
    font-size: 0.6rem;
    padding: 3px 8px;
    border-bottom-left-radius: 6px;
    font-family: 'Cinzel', serif;
    z-index: 10;
}

/* Элементы карточки */
.server-img {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
    background: #000;
}
.server-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-content {
    flex-grow: 1;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.server-name {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

.server-points {
    font-size: 0.75rem;
    color: var(--gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.server-desc {
    color: #bbb;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.server-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
}

.copy-ip {
    cursor: pointer;
    border-bottom: 1px dashed #666;
    color: var(--gold);
}
.copy-ip:hover { color: #fff; border-color: #fff; }

/* КНОПКИ И ФОРМЫ */
.btn {
    padding: 10px 20px;
    background: var(--gold);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    transition: 0.3s;
    font-size: 0.9rem;
}
.btn:hover { background: #fff; }

.form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
}

input, textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid #444;
    padding: 10px;
    color: #fff;
    margin-bottom: 15px;
    box-sizing: border-box;
    border-radius: 4px;
}
input:focus, textarea:focus { border-color: var(--gold); outline: none; }

/* === ФУТЕР (ПОДВАЛ) === */
footer {
    background: rgba(5, 8, 5, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0 20px 0; /* Отступ снизу уменьшил до 20px (внутри футера) */
    text-align: center;
    position: relative;
    z-index: 10;
    
    /* УБИРАЕМ ЛЮБЫЕ ВНЕШНИЕ ОТСТУПЫ */
    margin-top: auto; 
    margin-bottom: 0;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Ссылки (Правила, ТГ и т.д.) */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

/* Баннер FreeKassa в футере */
.fk-banner-footer img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    transition: 0.3s;
}

.fk-banner-footer img:hover {
    opacity: 1;
    transform: scale(1.02);
}

.copyright {
    color: #444;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* СКРЫВАЕМ СТАНДАРТНЫЙ ИНПУТ */
.custom-file-input {
    display: none;
}

/* КРАСИВАЯ КНОПКА */
.custom-file-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed #444;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-sizing: border-box; /* Чтобы не вылезало за рамки */
}

.custom-file-label:hover {
    border-color: var(--gold);
    color: #fff;
    background: rgba(255, 215, 0, 0.1);
}

.custom-file-label i {
    margin-right: 8px;
    color: var(--gold);
}