:root {
    --bg-body: #121418;
    --bg-header: #181b22;
    --bg-card: #1c212c;
    --border-color: #2b313e;
    --accent-green: #22c55e;
    --accent-hover: #16a34a;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Верхняя панель уведомлений */
.top-banner {
    background: linear-gradient(90deg, #16a34a, #15803d);
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-green);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #121418;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.3);
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

nav a:hover {
    color: var(--text-main);
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.05);
}

.hero {
    padding: 6rem 2rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #121418;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.15s, transform 0.1s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Статистика сервера полосой */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    max-width: 1000px;
    margin: 3rem auto 0;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.stat-item {
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-card);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Секция тарифов / возможностей */
.features {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: #4b5563;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Модальное окно капчи (строгий стиль reCAPTCHA v2 / Cloudflare) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.captcha-modal {
    background-color: #f9f9f9;
    color: #222;
    border-radius: 4px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.captcha-header {
    background: #15803d;
    color: white;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.captcha-body {
    padding: 20px;
    text-align: center;
}

.captcha-body p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}

.recaptcha-box-inner {
    background: #fff;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.recaptcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recaptcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recaptcha-text {
    font-size: 13px;
    color: #222;
    font-weight: 400;
}

.recaptcha-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #555;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #15803d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.captcha-footer {
    padding: 10px 20px;
    background: #f1f1f1;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-cancel-modal {
    background: transparent;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    color: #333;
}

.btn-cancel-modal:hover {
    background: #e5e5e5;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    background-color: var(--bg-header);
    margin-top: 5rem;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    nav { display: none; }
}